@xatlas/rainbow-core 2.2.8 → 2.3.0

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.
@@ -6,7 +6,7 @@
6
6
  */
7
7
  return t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function r(t){if(255===(t>>24&255)){var e=t>>16&255,r=t>>8&255,n=255&t;255===e?(e=0,255===r?(r=0,255===n?n=0:++n):++r):++e,t=0,t+=e<<16,t+=r<<8,t+=n}else t+=1<<24;return t}function n(t){return 0===(t[0]=r(t[0]))&&(t[1]=r(t[1])),t}var o=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,o=r.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0),n(a);var s=a.slice(0);r.encryptBlock(s,0);for(var c=0;c<o;c++)t[e+c]^=s[c]}});return e.Decryptor=o,e}(),t.mode.CTRGladman}))},"0d6e":function(t,e,r){},"101a":function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){return function(){if("function"==typeof ArrayBuffer){var e=t,r=e.lib,n=r.WordArray,o=n.init,i=n.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,r=[],n=0;n<e;n++)r[n>>>2]|=t[n]<<24-n%4*8;o.call(this,r,e)}else o.apply(this,arguments)};i.prototype=n}}(),t.lib.WordArray}))},"13e9":function(t,e,r){"use strict";r("784f")},"143b":function(t,e,r){"use strict";r("881c")},"15a5":function(t,e){
8
8
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
9
- e.read=function(t,e,r,n,o){var i,a,s=8*o-n-1,c=(1<<s)-1,l=c>>1,u=-7,f=r?o-1:0,h=r?-1:1,d=t[e+f];for(f+=h,i=d&(1<<-u)-1,d>>=-u,u+=s;u>0;i=256*i+t[e+f],f+=h,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=n;u>0;a=256*a+t[e+f],f+=h,u-=8);if(0===i)i=1-l;else{if(i===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),i-=l}return(d?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,s,c,l=8*i-o-1,u=(1<<l)-1,f=u>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:i-1,p=n?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),e+=a+f>=1?h/c:h*Math.pow(2,1-f),e*c>=2&&(a++,c/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(e*c-1)*Math.pow(2,o),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[r+d]=255&s,d+=p,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;t[r+d]=255&a,d+=p,a/=256,l-=8);t[r+d-p]|=128*v}},"1aba":function(t,e,r){"use strict";if(r.r(e),r.d(e,"App",(function(){return ew})),r.d(e,"createStore",(function(){return mw})),r.d(e,"create",(function(){return Ut})),r.d(e,"template",(function(){return xe})),r.d(e,"WebRouters",(function(){return ww})),r.d(e,"WebViews",(function(){return sb})),r.d(e,"Descriptions",(function(){return es})),r.d(e,"Frame",(function(){return ss})),r.d(e,"Clipboard",(function(){return Sw})),r.d(e,"Collection",(function(){return Kw})),r.d(e,"FormItem",(function(){return Ri})),r.d(e,"FormBase",(function(){return hn})),r.d(e,"encrypt",(function(){return Zw})),"undefined"!==typeof window){var n=window.document.currentScript,o=r("dc36");n=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var a=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.$store.state.loading}},[e("Router",{on:{routed:function(e){t.spinning=!1}}})],1)},s=[],c=function(){var t=this,e=t._self._c;return e("router-view")},l=[],u=r("5880"),f=r.n(u),h=r("cebe"),d=r.n(h);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function v(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */v=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),s=new A(n||[]);return o(a,"_invoke",{value:N(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",y="executing",m="completed",g={};function b(){}function w(){}function _(){}var x={};l(x,a,(function(){return this}));var k=Object.getPrototypeOf,O=k&&k(k(T([])));O&&O!==r&&n.call(O,a)&&(x=O);var E=_.prototype=b.prototype=Object.create(x);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==p(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function N(e,r,n){var o=h;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=L(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?m:d,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function L(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(p(e)+" is not iterable")}return w.prototype=_,o(E,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:w,configurable:!0}),w.displayName=l(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(j.prototype),l(j.prototype,s,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new j(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,c,"Generator"),l(E,a,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach((function(e){g(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function g(t,e,r){return e=b(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b(t){var e=w(t,"string");return"symbol"==p(e)?e:String(e)}function w(t,e){if("object"!=p(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function _(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function x(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){_(i,n,o,a,s,"next",t)}function s(t){_(i,n,o,a,s,"throw",t)}a(void 0)}))}}var k=d.a.create({timeout:6e5,withCredentials:!0}),O={axios:d.a,instance:k,install:function(t){t.prototype.$api=O},setDefaults:function(t){Object.keys(t).forEach((function(e){k.defaults[e]=t[e]}))},request:function(t,e,r,n){return x(v().mark((function o(){var i;return v().wrap((function(o){while(1)switch(o.prev=o.next){case 0:return o.next=2,k.request(m(m({},n),{},{method:t,url:e,data:r}));case 2:return i=o.sent,o.abrupt("return",i);case 4:case"end":return o.stop()}}),o)})))()},get:function(t){var e=arguments;return x(v().mark((function r(){var n,o,i;return v().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.length>1&&void 0!==e[1]?e[1]:null,o=e.length>2&&void 0!==e[2]?e[2]:null,r.next=4,O.request("get",t,o,n);case 4:return i=r.sent,r.abrupt("return",i);case 6:case"end":return r.stop()}}),r)})))()},post:function(t,e){var r=arguments;return x(v().mark((function n(){var o,i;return v().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=r.length>2&&void 0!==r[2]?r[2]:null,n.next=3,O.request("post",t,e,o);case 3:return i=n.sent,n.abrupt("return",i);case 5:case"end":return n.stop()}}),n)})))()},put:function(t,e){var r=arguments;return x(v().mark((function n(){var o,i;return v().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=r.length>2&&void 0!==r[2]?r[2]:null,n.next=3,O.request("put",t,e,o);case 3:return i=n.sent,n.abrupt("return",i);case 5:case"end":return n.stop()}}),n)})))()},delete:function(t,e){var r=arguments;return x(v().mark((function n(){var o,i;return v().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=r.length>2&&void 0!==r[2]?r[2]:null,n.next=3,O.request("delete",t,e,o);case 3:return i=n.sent,n.abrupt("return",i);case 5:case"end":return n.stop()}}),n)})))()}},E=O,S=r("796d"),j=r.n(S),N=r("8bbf"),L=r.n(N);function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function C(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function A(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?C(Object(r),!0).forEach((function(e){T(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function T(t,e,r){return e=R(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function R(t){var e=D(t,"string");return"symbol"==P(e)?e:String(e)}function D(t,e){if("object"!=P(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function I(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */I=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new C(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(A([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==P(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function A(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(P(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=A,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function M(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function q(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){M(i,n,o,a,s,"next",t)}function s(t){M(i,n,o,a,s,"throw",t)}a(void 0)}))}}function B(t,e){return U(t)||H(t,e)||$(t,e)||F()}function F(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $(t,e){if(t){if("string"===typeof t)return V(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?V(t,e):void 0}}function V(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function H(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}function U(t){if(Array.isArray(t))return t}var G=function t(e,r,n){for(var o=0;o<e.length;o++){if(e[o][n]===r)return[e,o];if(e[o]._childList){var i=t(e[o]._childList,r,n);if(i)return i}}return null};function z(t,e,r,n){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,i=e.slice(2),a={namespaced:!0,state:function(){return{namespace:i,data:{rows:[],count:0,size:15},schema:null,wordbooks:{},expired:0,loading:!1,committing:!1,status:0,message:""}},mutations:{setSchema:function(t,e){t.schema=e},setStatus:function(t,e){var r=e.status,n=e.message;t.status=r,t.message=n},setLoading:function(t,e){t.loading=e},setCommitting:function(t,e){t.committing=e},setData:function(t,e){var r=e.rows,n=e.count,o=e.size;t.data.rows=r,t.data.count=n,t.data.size=o},appendData:function(t,e){var r=e.rows||[];t.data.rows=t.data.rows.concat(r)},saveData:function(t,e){var r=e.rows,n=e.idName,o=e.parentIdName;r=Array.isArray(r)?r:[r],r.forEach((function(e){var r=G(t.data.rows,e[n],n);if(r){r[0][r[1]]._childList&&(e._childList=r[0][r[1]]._childList);var i=r,a=B(i,2),s=a[0],c=a[1];o&&e[o]!==s[c][o]?(s.splice(c,1),r=null):L.a.set(s,c,e)}if(!r&&e[n]&&o&&e[o]){var l=G(t.data.rows,e[o],n);if(l){var u=l[0][l[1]];u._childList?u._childList.unshift(e):L.a.set(u,"_childList",[e])}else t.data.rows.unshift(e)}else!r&&e[n]&&t.data.rows.unshift(e)}))},removeData:function(t,e){var r=e.rows,n=e.idName;e.parentIdName;r=Array.isArray(r)?r:[r],r.forEach((function(e){var r=G(t.data.rows,e[n],n);if(r){var o=B(r,2),i=o[0],a=o[1];i.splice(a,1)}}))},setWordbook:function(t,e){var r=e.rows,n=e.key;t.wordbooks[n]?t.wordbooks[n]=r:L.a.set(t.wordbooks,n,r)},replaceNamespace:function(t,e){t.namespace=e.reduce((function(t,e){return t.replace(":id",e)}),i)},createSubViewStore:function(e,n){function o(e,n){e.model.attrs.filter((function(t){return"model"===t.metaType})).map((function(e){var i="".concat(n,"/:id/").concat(e.name);t.hasModule(i)||(z(t,i,r,e.name,!1,e.subView),e.subView&&o(e.subView,i))}))}o(n,"v-".concat(i))}},actions:{loadSchema:function(t,e){return q(I().mark((function e(){var r,n,o,a,s,c,l,u;return I().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,t.state.namespace,r("setLoading",!0),e.prev=2,e.next=5,E.get("/schemas/".concat(i.replace(/\/:id/g,"")));case 5:n=e.sent,o=n.data,a=n.status,r("createSubViewStore",o),r("setSchema",o),r("setStatus",{status:a}),e.next=20;break;case 13:if(e.prev=13,e.t0=e["catch"](2),e.t0.response){e.next=17;break}return e.abrupt("return",r("setStatus",{status:0,message:"网络请求错误,请检查您的网络链接。"}));case 17:s=e.t0.response,c=s.status,l=s.data,u=l&&l.content||"系统错误请与管理员联系。",r("setStatus",{status:c,message:u});case 20:return e.prev=20,r("setLoading",!1),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[2,13,20,23]])})))()},loadData:function(t){var e=arguments;return q(I().mark((function r(){var n,o,i,a,s,c,l,u,f,h,d,p,v,y,m,g,b,w,_,x,k,O,S,N,L,P;return I().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=t.getters,a=t.state.namespace,s=e.length>1&&void 0!==e[1]?e[1]:{},c=s.url,l=void 0===c?a:c,u=s.method,f=void 0===u?"get":u,h=s.data,d=void 0===h?null:h,p=s.key,v=s.query,y=s.options,m=s.mute,g=void 0!==m&&m,!g&&n("setLoading",!0),r.prev=4,r.next=7,E[f]("/api/".concat(l).concat(p?"/".concat(p):"","?").concat(j.a.stringify(v)),d,y);case 7:return b=r.sent,w=b.data,_=w.collection,x=w.model,k=w.count,O=w.pagination,S=b.status,N=i.idName,L=i.parentIdName,P=i.nodeName,x?n("saveData",{rows:x,idName:N,parentIdName:L,nodeName:P}):n("setData",{rows:_||[],count:k,size:O&&O.size}),n("setStatus",{status:S,message:""}),r.abrupt("return",_||x);case 20:return r.prev=20,r.t0=r["catch"](4),r.abrupt("return",o("handleError",{error:r.t0,mute:g}));case 23:return r.prev=23,!g&&n("setLoading",!1),r.finish(23);case 26:case"end":return r.stop()}}),r,null,[[4,20,23,26]])})))()},loadWordBook:function(t){var e=arguments;return q(I().mark((function r(){var n,o,i,a,s,c,l,u,f,h,d,p,v,y,m;return I().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=t.state.namespace,a=e.length>1&&void 0!==e[1]?e[1]:{},s=a.url,c=void 0===s?i:s,l=a.method,u=void 0===l?"get":l,f=a.data,h=void 0===f?null:f,d=a.key,p=a.query,v=a.options,r.prev=3,r.next=6,E[u.toLowerCase()]("/api/".concat(c).concat(d?"/".concat(d):"","?").concat(j.a.stringify(p)),h,v);case 6:return y=r.sent,m=y.data,m.collection&&d&&n("setWordBook",{rows:m.collection,key:d}),r.abrupt("return",m);case 12:return r.prev=12,r.t0=r["catch"](3),r.abrupt("return",o("handleError",{error:r.t0}));case 15:case"end":return r.stop()}}),r,null,[[3,12]])})))()},saveData:function(t){var e=arguments;return q(I().mark((function r(){var n,o,i,a,s,c,l,u,f,h,d,p,v,y,m,g,b,w,_,x,k,O,S,N,L,P,C,A;return I().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=t.getters,a=t.state.namespace,s=e.length>1&&void 0!==e[1]?e[1]:{},c=s.url,l=void 0===c?a:c,u=s.type,f=void 0===u?"save":u,h=s.method,d=void 0===h?"post":h,p=s.data,v=void 0===p?null:p,y=s.key,m=s.query,g=s.options,b=s.mute,w=void 0!==b&&b,n("setCommitting",!0),r.prev=4,r.next=7,E[d.toLowerCase()]("/api/".concat(l).concat(y?"/".concat(y):"","?").concat(j.a.stringify(m)),v,g);case 7:return _=r.sent,x=_.data,k=x.data,O=x.content,S=_.status,N=_.statusText,L=i.idName,P=i.parentIdName,C=i.nodeName,k&&(A="remove"===f?"removeData":"saveData",s.params&&s.params.mode&&"notUpdate"===s.params.mode||n(A,{rows:k.data||k,idName:L,parentIdName:P,nodeName:C})),n("setStatus",{status:S,message:w?"":O||N}),r.abrupt("return",k);case 19:return r.prev=19,r.t0=r["catch"](4),r.abrupt("return",o("handleError",{error:r.t0}));case 22:return r.prev=22,n("setCommitting",!1),r.finish(22);case 25:case"end":return r.stop()}}),r,null,[[4,19,22,25]])})))()},executeData:function(t,e){return q(I().mark((function r(){var n,o,i;return I().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.dispatch,o=e.method,i=void 0===o?"post":o,r.next=4,n("saveData",A({type:"execute",method:i},e));case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()},removeData:function(t,e){return q(I().mark((function r(){var n,o,i;return I().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.dispatch,o=e.method,i=void 0===o?"delete":o,r.next=4,n("saveData",A({type:"remove",method:i},e));case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()},handleError:function(t,e){var r=t.commit,n=e.error,o=e.mute;if(!n.response)return r("setStatus",{status:0,message:!o&&"网络请求错误,请检查您的网络连接。"});var i=n.response,a=i.status,s=i.data,c=o?null:s&&s.content||"系统错误请与管理员联系。";return r("setStatus",{status:a,message:c}),n},resetStatus:function(t){var e=t.commit;e("setStatus",{status:0,message:""})}},getters:{schema:function(t,e,i){return o||(i[r].views.find((function(t){return t.key===n}))||t.schema)},model:function(t,e){return e.schema?e.schema.model:null},idName:function(t,e){return e.model?e.model.idName:null},parentIdName:function(t,e){return e.model?e.model.parentIdName:null},nodeName:function(t,e){return e.model?e.model.nodeName:null},titleName:function(t,e){var r=e.model.attrs.find((function(t){return"title"===t.display}));return r?r.name:null},titleSchema:function(t,e){var r=e.model.attrs.find((function(t){return"title"===t.display}));return r||null},config:function(t,e){return function(t){var r;return e.schema&&e.schema.configs&&(r=e.schema.configs.find((function(e){return e.key===t}))),r?r.value:null}},wordbook:function(t){return function(e){return t.wordbooks[e]||[]}},find:function(t,e){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=t.data;if(!r)return n;"object"!==P(r)&&(r=T({},e.idName,r));var o=Object.keys(r);return n.filter((function(t){return o.every((function(e){return t[e]===r[e]}))}))}},findOne:function(t,e,r){return function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=n||e.idName||"id",i=G(t.data.rows,r,o);return i?i[0][i[1]]:null}},findAll:function(t){var e=t.data.rows;return e},apiURL:function(t,e,r){var n=t.namespace,o=r.baseURL;return"".concat(o,"/api/").concat(n)},apiBaseURL:function(t,e,r){var n=r.baseURL;return n}}};t.registerModule(e,a)}function K(t){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K(t)}function Y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Y=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==K(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(K(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function W(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Z(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){W(i,n,o,a,s,"next",t)}function s(t){W(i,n,o,a,s,"throw",t)}a(void 0)}))}}var J=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n={namespaced:!0,state:function(){return{namespace:e.slice(2),schema:null,views:[],actions:[],configs:[],params:[],rules:[],version:0,loading:!1,status:200,message:"",single:r}},mutations:{setSchema:function(t,e){t.schema=e},setViews:function(t,e){t.views=e},setStatus:function(t,e){var r=e.status,n=e.message;t.status=r,t.message=n},setLoading:function(t,e){t.loading=e},createViewStore:function(n,o){function i(n,o){n.model.attrs.filter((function(t){return"model"===t.metaType})).map((function(n){var a="".concat(o,"/:id/").concat(n.name);t.hasModule(a)||(z(t,a,e,n.name,r,n.subView),n.subView&&i(n.subView,a))}))}o.map((function(n){var o="v-".concat(e.slice(2)).concat(r?"":"-".concat(n.key));t.hasModule(o)||(z(t,o,e,n.key,r),i(n,o))}))},setViewData:function(t,e){}},actions:{loadSchema:function(t,e){return Z(Y().mark((function e(){var n,o,i,a,s,c,l,u,f,h;return Y().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,o=t.state.namespace,n("setLoading",!0),e.prev=2,e.next=5,E.get("/schemas/".concat(o));case 5:i=e.sent,a=i.data,s=i.status,c=i.statusText,n("createViewStore",r?[a]:a.views),n("setViews",r?[a]:a.views),delete a.views,n("setSchema",a),n("setStatus",{status:s,message:a.message||c}),e.next=23;break;case 16:if(e.prev=16,e.t0=e["catch"](2),e.t0.response){e.next=20;break}return e.abrupt("return",n("setStatus",{status:0,message:"网络请求错误,请检查您的网络链接。"}));case 20:l=e.t0.response,u=l.status,f=l.data,h=f&&f.content||"系统错误请与管理员联系。",n("setStatus",{status:u,message:h});case 23:return e.prev=23,n("setLoading",!1),e.finish(23);case 26:case"end":return e.stop()}}),e,null,[[2,16,23,26]])})))()}},getters:{schema:function(t){return t.schema},views:function(t){return t.views},config:function(t){return function(e){return t.configs.find((function(t){return t.key===e}))}}}};t.registerModule(e,n)};function X(t){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},X(t)}function Q(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Q=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==X(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(X(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function tt(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function et(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){tt(i,n,o,a,s,"next",t)}function s(t){tt(i,n,o,a,s,"throw",t)}a(void 0)}))}}function rt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function nt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?rt(Object(r),!0).forEach((function(e){ot(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ot(t,e,r){return e=it(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function it(t){var e=at(t,"string");return"symbol"==X(e)?e:String(e)}function at(t,e){if("object"!=X(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=X(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var st=["loading","schema","status","message","single"],ct=["loadSchema"],lt=["views"],ut=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=Object(u["createNamespacedHelpers"])(t),n=r.mapState,o=r.mapActions,i=r.mapMutations,a=r.mapGetters;return{data:function(){return{storeNamespace:t}},computed:nt(nt({},n(st)),a(lt)),methods:nt(nt({},o(ct)),i(["setStatus"])),beforeCreate:function(){this.$store.hasModule(t)||J(this.$store,t,e)},created:function(){var t=this;return et(Q().mark((function e(){return Q().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.t0=!t.schema,!e.t0){e.next=4;break}return e.next=4,t.loadSchema();case 4:t.status>399&&t.message&&(t.$message.error(t.message),t.setStatus({status:0,message:""}));case 5:case"end":return e.stop()}}),e)})))()},watch:{status:function(t){401===t&&(this.$router.push("/sign-in"),window.location.reload())}}}},ft=function(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{extends:t,mixins:[ut("p-".concat(e),r)]}}},ht=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.loading,delay:50}},[e("layout-page-".concat(t.layout),{tag:"component",scopedSlots:t._u([t._l(t.slots,(function(r){return{key:r,fn:function(){return[e("views",{key:"slot-".concat(r),attrs:{views:t.slotViews(r),modelViewType:t.modelViewType}})]},proxy:!0}}))],null,!0)})],1)},dt=[];function pt(t){return gt(t)||mt(t)||yt(t)||vt()}function vt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function yt(t,e){if(t){if("string"===typeof t)return bt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bt(t,e):void 0}}function mt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function gt(t){if(Array.isArray(t))return bt(t)}function bt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var wt={props:{pageKey:{type:String,required:!0},layout:{type:String,default:"base"},modelViewType:{type:String}},provide:function(){return{page:this,view:null}},computed:{slots:function(){var t=["default","header","footer","sider","left","right"],e=this.$theme.layouts.page["".concat(this.layout.replace(/^\S/,(function(t){return t.toUpperCase()})),"Layout")].slots;return e&&Array.from(new Set([].concat(pt(e),t)))||[]}},methods:{slotViews:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return this.views.filter((function(e){return e.slot===t||"default"===t&&!e.slot}))}},activated:function(){},deactivated:function(){}},_t=function(){var t=this,e=t._self._c;return e("a-row",t._l(t.views,(function(r){return e("a-col",{key:r.key,attrs:{span:r.span||24}},[e("layout-view-".concat(r.layout||t.viewLayout),{tag:"component",attrs:{view:r}},[e("ViewBox",t._b({attrs:{view:r}},"ViewBox",t.$attrs,!1))],1)],1)})),1)},xt=[],kt=function(){var t=this,e=t._self._c;return e("keep-alive",[e(t.createView(),t._b({tag:"component",attrs:{pageKey:t.page.pageKey,viewKey:t.view.key,mode:"page",layout:"layout-view-model-list"}},"component",t.view,!1))],1)},Ot=[];function Et(t){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(t)}function St(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */St=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Et(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Et(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function jt(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Nt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){jt(i,n,o,a,s,"next",t)}function s(t){jt(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Lt(t){return Tt(t)||At(t)||Ct(t)||Pt()}function Pt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ct(t,e){if(t){if("string"===typeof t)return Rt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Rt(t,e):void 0}}function At(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Tt(t){if(Array.isArray(t))return Rt(t)}function Rt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Dt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function It(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Dt(Object(r),!0).forEach((function(e){Mt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Dt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Mt(t,e,r){return e=qt(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qt(t){var e=Bt(t,"string");return"symbol"==Et(e)?e:String(e)}function Bt(t,e){if("object"!=Et(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ft=["loading","committing","data","status","message"],$t=["loadSchema","loadData","saveData","executeData","removeData","resetStatus"],Vt=["schema","model","idName","nodeName","parentIdName","titleSchema","titleName","findAll","find","findOne","config","apiURL","apiBaseURL"],Ht=function(t){var e=Object(u["createNamespacedHelpers"])(t),r=e.mapState,n=e.mapActions,o=e.mapGetters,i=e.mapMutations;return{data:function(){return{storeNamespace:t}},computed:It(It(It({},r(Ft)),o(Vt)),{},{configs:function(){var t=this.schema,e=t.configs,r=void 0===e?[]:e,n=t.resConfigs,o=void 0===n?[]:n,i=[].concat(Lt(r),Lt(o));return Object.fromEntries(i.map((function(t){var e=t.value;try{"JSON"===t.type&&(e=JSON.parse(t.value))}catch(r){}return[t.key,e]})))},defaults:function(){var t=this.schema,e=t.params,r=void 0===e?[]:e,n=t.resParams,o=void 0===n?[]:n,i=[].concat(Lt(r),Lt(o));return Object.fromEntries(i.map((function(t){var e=t.value;try{"JSON"===t.type&&(e=JSON.parse(t.value))}catch(r){}return[t.key,e]})))}}),methods:It(It({},i(["replaceNamespace"])),n($t)),created:function(){var t=this;return Nt(St().mark((function e(){return St().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.parentIds&&t.replaceNamespace(t.parentIds),t.delay||t.id||t.schema&&t.load();case 2:case"end":return e.stop()}}),e)})))()},watch:{status:function(t){401===t&&(this.$router.push("/sign-in"),window.location.reload())}}}},Ut=function(t){return function(e){return{extends:t,mixins:[Ht("".concat(e))]}}},Gt=function(){var t=this,e=t._self._c;return e("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:!t.schema||t.actioning}},[t.schema?e("div",[t.actionViewVisible&&"block"===t.actionViewMode?t._e():e(t.layout,{tag:"component",scopedSlots:t._u([t.configs["list.header"]?{key:"header",fn:function(){return[e(t.configs["list.header"],{tag:"component"})]},proxy:!0}:null,t.configs["list.footer"]?{key:"footer",fn:function(){return[e(t.configs["list.footer"],{tag:"component"})]},proxy:!0}:null,t.configs["list.sider"]?{key:"sider",fn:function(){return[e(t.configs["list.sider"],{tag:"component"})]},proxy:!0}:null,{key:"pagination",fn:function(){return[t.data.size?e("PaginationSize",{attrs:{total:t.data.count,current:Number(t.query.$limit),pageSize:Number(t.query._size),"show-total":function(e,r){return e?"当前页面 ".concat(r[0],"-").concat(r[1]," 项,选定 ").concat(t.selections.length," 项,共 ").concat(e," 项"):null},pageSizeOptions:["15","30","50","100"],"show-size-changer":""},on:{change:t.handlePaginationPageChange,showSizeChange:t.handleShowSizeChange}}):t._e()]},proxy:!0},t.actions.length?{key:"actions-none",fn:function(){return[e("ActionGroup",{attrs:{actions:t.actions},on:{action:t.handleAction}})]},proxy:!0}:null,{key:"actions-setting",fn:function(){return[e("ActionGroup",{attrs:{actions:t.settingActions},on:{action:t.handleAction}})]},proxy:!0},t.filters.length?{key:"filters",fn:function(){return[e("FilterForm",{attrs:{columns:t.filters,params:{$parent:t.params.$parent}},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}})]},proxy:!0}:null,t.treeFilters.length?{key:"tree-filters",fn:function(){return[e("FilterForm",{attrs:{columns:t.treeFilters,params:{$parent:t.params.$parent},layout:"vertical"},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}})]},proxy:!0}:null],null,!0)},[e("list-".concat(t.configs["list.widget"]||"table"),{tag:"component",attrs:{rowKey:t.idName,loading:t.loading,rowSelection:t.rowSelection,columns:t.columns,dataSource:t.dataSource,item:t.configs["list.item"],childrenColumnName:"_childList",rowClassName:t.listSeparateColor,scroll:{x:Number(t.configs["list.scrollX"])||null,y:Number(t.configs["list.scrollY"])||null}},on:{profile:function(e){return t.handleModelProfile(e)},"row-action":t.handleRowAction}})],1),t.actionViewVisible?e("Popup",{class:{"ant-modal-tip":t.actionParams.actionViewTip},attrs:{visible:t.actionViewVisible,title:t.action.name,type:t.actionViewMode,okButtonProps:t.actionOkButtonProps,cancelButtonProps:t.actionCancelButtonProps,width:t.configs["profile.popup.width"],footer:"hide"===t.actionParams.footer?null:void 0},on:{ok:t.submitActionView,close:t.closeActionView,cancel:t.closeActionView}},[t.actionViewVisible?e("ActionView",{attrs:{action:t.action,submited:t.actionSubmited,values:t.actionModel,modelViewType:t.actionViewType,widget:t.actionViewWidget,parentIds:t.parentIds,params:t.actionParams,commitResult:t.actionCommitResult,selections:t.selections,schema:t.schema},on:{commit:t.commitActionView,profile:t.handleModelProfile,close:t.closeActionView}}):t._e(),t.action.params&&t.action.params.autofill?e("a-row",{attrs:{slot:"footer",type:"flex",justify:"space-between",align:"middle"},slot:"footer"},[e("a-col",[e("a-checkbox",{on:{change:t.handleAutoFill}},[t._v(" 自动填充表单 ")])],1),e("a-col",[e("a-space",[e("a-button",{attrs:{icon:"close",disabled:t.committing},on:{click:t.closeActionView}},[t._v(" 取消 ")]),e("a-button",{attrs:{type:"primary",icon:"check",loading:t.committing},on:{click:t.submitActionView}},[t._v(" 确认 ")])],1)],1)],1):t._e()],1):t._e()],1):t._e()])},zt=[],Kt={props:{pageKey:{type:String,required:!0},viewKey:{type:String,required:!0},type:{type:String,enum:["model-list","model-profile","model-form","model-sheet","report","nav","com","container","post-list","post-profile","post-form"]},widget:{type:[String,Object],enum:["list-normal","list-table","list-grid","list-menu","list-sheet","list-calendar","list-map","list-kanban","profile-tile","profile-group","form-normal","form-filter","form-setting","form-wizard","form-editor","report-chart","report-crosstab","report-com","report-map","report-canvas","nav-menu","nav-link","nav-flow"]},mode:{type:String,enum:["page","embed","picker","widget"]},title:String,subtitle:String,icon:String,description:String,params:{type:[Object,Array],default:function(){return{}}},options:Object,nestedLevel:{type:Number,default:0},delay:{type:Boolean,default:!1},defaultSelections:{type:[String],default:null}},inject:["page","view"],provide:function(){return{view:this}},activated:function(){},deactivated:function(){}},Yt={props:{modelId:{type:String},parentIds:Array,parentModel:Object},provide:function(){return{model:this.model}},data:function(){return{}},computed:{hide:function(){var t=this.configs.hide;return t?Array.isArray(t)?t:t.split(","):[]}},methods:{}};function Wt(t){return Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wt(t)}function Zt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Zt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Wt(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Wt(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Jt(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Xt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Jt(i,n,o,a,s,"next",t)}function s(t){Jt(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Qt(t){return ne(t)||re(t)||ee(t)||te()}function te(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ee(t,e){if(t){if("string"===typeof t)return oe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oe(t,e):void 0}}function re(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ne(t){if(Array.isArray(t))return oe(t)}function oe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ie(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ae(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ie(Object(r),!0).forEach((function(e){se(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function se(t,e,r){return e=ce(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ce(t){var e=le(t,"string");return"symbol"==Wt(e)?e:String(e)}function le(t,e){if("object"!=Wt(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Wt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ue={props:{profileMode:{type:String,default:"page",enum:["page","embed","column","collapse","preview"]},layout:{type:String,default:"layout-view-model-list"}},data:function(){return{query:{},schemaFuncQueue:[],unwatchQuery:null,autoRefreshTimer:null}},computed:{columns:function(){var t=this,e=this.$createElement,r=this.idName,n=this.hide,o=this.model.attrs.filter((function(t){return!["all","list"].includes(t.hidden)&&!n.includes(t.name)&&t.name!==r&&"model"!==t.metaType&&"link"!==t.type})).map((function(r){var n=Object.fromEntries(r.configs.map((function(t){return[t.key,t.value]})));return{dataIndex:r.name,key:r.name,title:r.alias,align:["Integer","Number"].includes(r.metaType)?"right":"left",schema:r,width:n["list.width"],fixed:n["list.fixed"]||!1,ellipsis:"true"===n["list.ellipsis"],customRender:function(n,o,i){return e("Cell",{on:{profile:function(){return t.handleModelProfile(o)},change:function(e){return t.handleCellChange(e,r.name,o)}},attrs:{value:n,row:o,schema:r,editable:t.configs["list.actionRowNotEditing.key"]&&t.configs["list.actionRowNotEditing.value"]?t.actionRowEditing&&!t.configs["list.actionRowNotEditing.value"].split(",").includes(o[t.configs["list.actionRowNotEditing.key"]]):t.actionRowEditing,idName:t.idName,rowIndex:i}})}}})),i=[],a=null;return this.configs&&this.configs["list.collapse.action"]&&(isNaN(Number(this.configs["list.collapse.action"]))?i=this.configs["list.collapse.action"].split(","):a=Number(this.configs["list.collapse.action"])),this.inlineActions&&this.inlineActions.length&&!this.actionRowEditing&&o.push({title:"操作",key:"_action",fixed:this.configs["list.scrollX"]?"right":null,customRender:function(r,n){var o=null;return o=i.length?[e("span",[t.rowActions(n).filter((function(t){return!i.includes(t.key)})).map((function(r,o){return[o?e("a-divider",{attrs:{type:"vertical"}}):"",e("a",{on:{click:function(e){return t.handleRowAction(r,n,e)}}},[r.name,"file"===r.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(r,e.target.files),e.target.value=""}}}):""])]}))]),t.rowActions(n).filter((function(t){return!i.includes(t.key)})).length?e("a-divider",{attrs:{type:"vertical"}}):"",t.rowActions(n).filter((function(t){return i.includes(t.key)})).length?e("a-dropdown",{attrs:{trigger:["click"]}},[e("a",{class:"ant-dropdown-link",on:{click:function(t){return t.preventDefault()}}},["更多 ",e("a-icon",{attrs:{type:"down"}})]),e("a-menu",{slot:"overlay"},[t.rowActions(n).filter((function(t){return i.includes(t.key)})).map((function(r,o){return e("a-menu-item",{key:r.id},[e("a",{on:{click:function(e){return t.handleRowAction(r,n,e)}}},[r.name,"file"===r.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(r,e.target.files),e.target.value=""}}}):""])])}))])]):""]:a?[e("span",[t.rowActions(n).slice(0,a).map((function(r,o){return[o?e("a-divider",{attrs:{type:"vertical"}}):"",e("a",{on:{click:function(e){return t.handleRowAction(r,n,e)}}},[r.name,"file"===r.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(r,e.target.files),e.target.value=""}}}):""])]}))]),t.rowActions(n).slice(0,a).length?e("a-divider",{attrs:{type:"vertical"}}):"",t.rowActions(n).slice(a).length?e("a-dropdown",{attrs:{trigger:["click"]}},[e("a",{class:"ant-dropdown-link",on:{click:function(t){return t.preventDefault()}}},["更多 ",e("a-icon",{attrs:{type:"down"}})]),e("a-menu",{slot:"overlay"},[t.rowActions(n).slice(a).map((function(r,o){return e("a-menu-item",{key:r.id},[e("a",{on:{click:function(e){return t.handleRowAction(r,n,e)}}},[r.name,"file"===r.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(r,e.target.files),e.target.value=""}}}):""])])}))])]):""]:t.rowActions(n).map((function(r,o){return[o?e("a-divider",{attrs:{type:"vertical"}}):"",e("a",{on:{click:function(e){return t.handleRowAction(r,n,e)}}},[r.name,"file"===r.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(r,e.target.files),e.target.value=""}}}):""])]})),{children:o}},actions:function(e){return t.rowActions(e)}}),o},configs:function(){return this.schema&&this.schema.configs&&this.schema.configs.length?Object.fromEntries(this.schema.configs.map((function(t){return[t.key,t.value]}))):null},filters:function(){var t=this;return this.model&&this.model.filters?this.model.filters.filter((function(e){return!t.hide.includes(e.name)&&!["tree-select"].includes(e.control)})).map((function(e){var r=t.model.attrs.find((function(t){return t.name===e.name}));return ae(ae({},r),e)})):[]},treeFilters:function(){var t=this;return this.model&&this.model.filters?this.model.filters.filter((function(e){return!t.hide.includes(e.name)&&["tree-select"].includes(e.control)})).map((function(e){var r=t.model.attrs.find((function(t){return t.name===e.name}));return ae(ae({},r),e)})):[]},filterValues:function(){var t=[].concat(Qt(this.filters),Qt(this.treeFilters)).filter((function(t){return!!t.value})).map((function(t){return[t.name,t.value]}));return ae(ae({},Object.fromEntries(t)),this.defaults)},dataSource:function(){var t=this,e=this.findAll;if(this.actionModel){var r=e.find((function(e){return e[t.idName]===t.actionModel[t.idName]}));for(var n in r)r[n]!==this.actionModel[n]&&(this.actionModel[n]=r[n])}return e},next:function(){var t=this,e=this.actionModel&&this.actionModel[this.idName],r=this.findAll.findIndex((function(r){return r[t.idName]===e}));return this.findAll[r+1]},previous:function(){var t=this,e=this.actionModel&&this.actionModel[this.idName],r=this.findAll.findIndex((function(r){return r[t.idName]===e}));return this.findAll[r-1]}},created:function(){var t=this;return Xt(Zt().mark((function e(){var r;return Zt().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.schema){e.next=4;break}return e.next=3,t.loadSchema();case 3:while(t.schemaFuncQueue.length>0)r=t.schemaFuncQueue.pop(),r();case 4:t.query=t.params.route&&t.params.route.query.close?ae(ae(ae({},t.query),t.params.filters),t.filterValues):ae(ae(ae(ae({},t.query),t.params.filters),t.filterValues),t.$route.query);case 5:case"end":return e.stop()}}),e)})))()},activated:function(){var t=this;this.schema?this.configs&&this.configs["auto-refresh"]&&(this.autoRefreshTimer=!0,this.autoRefresh(+this.configs["auto-refresh"])):this.schemaFuncQueue.push((function(){t.configs&&t.configs["auto-refresh"]&&(t.autoRefreshTimer=!0,t.autoRefresh(+t.configs["auto-refresh"]))})),this.parentIds||"page"!==this.mode||j.a.stringify(this.query)!==j.a.stringify(this.$route.query)&&this.$router.push({query:this.query}),this.unwatchQuery=this.$watch("query",{handler:function(t,e){var r=Object.keys(t),n=Object.keys(e),o=r.some((function(e){return!n.includes(e)&&!t[e]}));o||(this.load(),this.clearSelection&&this.clearSelection(),!this.parentIds&&"page"===this.mode&&this.$router.push({query:this.query}))},deep:!0})},deactivated:function(){this.autoRefreshTimer&&clearTimeout(this.autoRefreshTimer),this.autoRefreshTimer=null,this.unwatchQuery&&this.unwatchQuery()},methods:{autoRefresh:function(t){var e=this;return Xt(Zt().mark((function r(){return Zt().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,e.handleRefresh();case 2:e.autoRefreshTimer&&(e.autoRefreshTimer=setTimeout((function(){return e.autoRefresh(t)}),t));case 3:case"end":return r.stop()}}),r)})))()},load:function(){var t=arguments,e=this;return Xt(Zt().mark((function r(){var n,o;return Zt().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.length>0&&void 0!==t[0]&&t[0],r.next=3,e.loadData({query:e.query,mute:n});case 3:return o=r.sent,r.abrupt("return",o);case 5:case"end":return r.stop()}}),r)})))()},handleNext:function(){this.actionModel=ae({},this.next)},handlePrevious:function(){this.actionModel=ae({},this.previous)},handleModelProfile:function(t){var e={name:this.titleName?String(this.formatter(t,t[this.titleName],this.titleSchema)):"详情",key:"_profile"};this.action=e,this.actionModel=ae({},t),this.actionParams={$parent:this.params.$parent},this.handleProfile(e)},handleProfile:function(t){var e=this.actionModel;this.parentIds||"page"!==this.mode?(this.actionViewMode="drawer",this.actionViewType="Profile",this.showActionView()):this.$router.push("".concat(this.$route.path,"/").concat(e[this.idName]))},handleFilterChange:function(t,e){this.query[t]?this.query[t]=e:this.$set(this.query,t,e)},listSeparateColor:function(t,e){var r=this.configs["list.separateKey"]||null,n=this.configs["list.separateValue"]||null;return r&&n&&t[r]===n?"list-separate-color":""},onFileChange:function(t,e){var r=t.list?t.list:"file";this.handleAction(t,null,se({},r,e))}}},fe={props:{paginationMode:{type:String,default:"auto",enum:["front","server","auto"]},paginationType:{type:String,default:"size",enum:["size","node","time"]}},data:function(){return{query:{$limit:1,$page:1,_size:15}}},methods:{handlePaginationPageChange:function(t){this.query.$limit=t,this.clearSelection&&this.clearSelection()},handleShowSizeChange:function(t,e){this.query._size=e,this.clearSelection&&this.clearSelection()}}};function he(t){return ye(t)||ve(t)||pe(t)||de()}function de(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pe(t,e){if(t){if("string"===typeof t)return me(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?me(t,e):void 0}}function ve(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ye(t){if(Array.isArray(t))return me(t)}function me(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ge={props:{pickerMode:{type:String,enum:["single","multiple"],default:"multiple"}},data:function(){return{selections:[]}},computed:{rowSelection:function(){var t=this;return this.pickerMode&&this.schema.handle?!this.bulkActions.length&&!this.pickerMode||this.actionRowEditing?null:{selectedRowKeys:this.selections.map((function(e){return e[t.idName]})),onChange:this.handleSelectionChange,type:"single"===this.pickerMode?"radio":"checkbox"}:null}},methods:{getSelection:function(){},addSelection:function(){},removeSelection:function(){},clearSelection:function(){"picker"===this.mode&&"multiple"===this.pickerMode||(this.selections=[])},handleSelectionChange:function(t){var e=this.idName,r=this.dataSource,n=function t(r,n){for(var o=0;o<r.length;o++){if(r[o][e]===n)return r[o];if(r[o]._childList){var i=t(r[o]._childList,n);if(i)return i}}return null};"picker"===this.mode&&"multiple"===this.pickerMode?(this.selections=[].concat(he(this.selections),he(t.map((function(t){return n(r,t)})).filter((function(t){return t})))),this.selections=Array.from(new Set(this.selections.map((function(t){return JSON.stringify(t)})))).map((function(t){return JSON.parse(t)})),this.selections=this.selections.filter((function(r){var n=t.findIndex((function(t){return t===r[e]}));return-1!==n}))):this.selections=t.map((function(t){return n(r,t)})),this.$emit("selected",this.selections)}}};function be(t){return be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},be(t)}function we(t,e){return Object.keys(t).every((function(r){var n=t[r],o=r.split(".").reduce((function(t,e){return t&&Object.hasOwn(t,e)?t[e]:void 0}),e);if(o||""===o||null===o){if(Array.isArray(n))return n.includes(o);if("object"!==be(n)||1!==Object.keys(n).length)return"object"===be(n)&&Object.keys(n).length>1?we(n,e):n===o;if(n["!"]&&Array.isArray(n["!"]))return!n["!"].includes(o);if(n["!"])return n!==o;if(n[">"])return o>n[">"];if(n[">="])return o>=n[">="];if(n["<"])return o<n["<"];if(n["<="])return o<=n["<="]}}))}var _e=r("9f89");function xe(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/\${([\s\S]+?)}/g;return _e(t,{reInterpolate:r})(e)}function ke(t){return ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ke(t)}function Oe(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Oe=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==ke(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(ke(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Ee(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Se(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ee(i,n,o,a,s,"next",t)}function s(t){Ee(i,n,o,a,s,"throw",t)}a(void 0)}))}}var je=function(t,e){return Ne.apply(this,arguments)};function Ne(){return Ne=Se(Oe().mark((function t(e,r){var n,o,i,a,s,c;return Oe().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("refresh"!==e){t.next=5;break}if("true"!==r.configs["flush-badges"]){t.next=4;break}return t.next=4,null===(i=window)||void 0===i||null===(i=i.sidebar)||void 0===i?void 0:i.setBadges();case 4:return t.abrupt("return");case 5:if(a=null===e||void 0===e||null===(n=e.params)||void 0===n||null===(n=n.commit)||void 0===n?void 0:n.type,s=(null!==(o=r.storeNamespace.match(new RegExp(":id","g")))&&void 0!==o?o:[]).length,a&&["load","loadAll"].includes(a)&&r.load&&r.load(),!a||!["parent.load","parent.loadAll"].includes(a)){t.next=14;break}if(t.t0=r.view&&r.view.load,!t.t0){t.next=13;break}return t.next=13,r.view.load();case 13:s&&r.load&&r.load();case 14:if(a&&["loadSchema","loadAll"].includes(a)&&r.loadSchema&&r.loadSchema(),!a||!["parent.loadSchema","parent.loadAll"].includes(a)){t.next=21;break}if(t.t1=r.view&&this.view.loadSchema,!t.t1){t.next=20;break}return t.next=20,r.view.loadSchema();case 20:s&&r.loadSchema&&r.loadSchema();case 21:if("true"!==r.configs["flush-badges"]){t.next=24;break}return t.next=24,null===(c=window)||void 0===c||null===(c=c.sidebar)||void 0===c?void 0:c.setBadges();case 24:case"end":return t.stop()}}),t,this)}))),Ne.apply(this,arguments)}function Le(t){return Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Le(t)}function Pe(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Pe=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Le(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Le(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Ce(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Ae(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ce(i,n,o,a,s,"next",t)}function s(t){Ce(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Te=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e?r&&r.viewMode&&"download"===r.viewMode?window.open("/file/getfile/".concat(e,"?_time=").concat((new Date).getTime(),"&viewMode=").concat(r.viewMode),"_blank"):window.open("/file/getfile/".concat(e,"?_time=").concat((new Date).getTime()),"_blank"):window.open("".concat(t,"/api/download?_time=").concat((new Date).getTime()),"_blank")},Re={methods:{handleFile:function(t){var e=this;return Ae(Pe().mark((function r(){var n,o,i,a;return Pe().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=t.list?t.list:"file",o=new FormData,i=e.idName,e.actionModel[n]){r.next=5;break}return r.abrupt("return");case 5:return o.append(n,e.actionModel[n][0]),e.actionModel[i]&&o.append(i,e.actionModel[i]),a=e.$message.loading("正在".concat(t.name,",请稍等..."),0),r.next=10,e.saveData({key:t.key,data:o});case 10:je(t,e),a();case 12:case"end":return r.stop()}}),r)})))()},handleFilesUpload:function(t){var e=this;return Ae(Pe().mark((function t(){return Pe().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.actionViewWidget="upload-form",e.showActionView();case 2:case"end":return t.stop()}}),t)})))()},handleDownload:function(t){var e=this;return Ae(Pe().mark((function r(){var n,o;return Pe().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=function(){var r=Ae(Pe().mark((function r(){var n,o,i;return Pe().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.$message.loading("正在".concat(t.name,",请稍等..."),0),r.next=3,e.executeData({key:t.key,data:e.actionModel||e.selections[0]});case 3:o=r.sent,n(),o instanceof Error||(i=o&&o.file_id?o.file_id:null,Te(e.apiBaseURL,i,{viewMode:"download"}));case 6:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),!t.params||!t.params.confirm){r.next=6;break}o=t.params.confirm,e.$confirm({title:o.title||t.name,content:o.content||"您确认要执行【".concat(t.name,"】操作吗?"),onOk:function(){n()}}),r.next=8;break;case 6:return r.next=8,n();case 8:case"end":return r.stop()}}),r)})))()},handleExport:function(t){var e=arguments,r=this;return Ae(Pe().mark((function n(){var o,i,a;return Pe().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(o=e.length>1&&void 0!==e[1]&&e[1],i=function(){var e=Ae(Pe().mark((function e(){var n,i,a;return Pe().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=r.$message.loading("正在".concat(t.name,",请稍等..."),0),e.next=3,r.executeData({key:t.key,data:r.selections.length?o?r.selections[0]:r.selections:r.actionModel||{}});case 3:i=e.sent,n(),i instanceof Error||(a=i&&i.file_id?i.file_id:null,Te(r.apiBaseURL,a));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!t.params||!t.params.confirm){n.next=7;break}a=t.params.confirm,r.$confirm({title:a.title||t.name,content:a.content||"您确认要执行【".concat(t.name,"】操作吗?"),onOk:function(){i()}}),n.next=9;break;case 7:return n.next=9,i();case 9:case"end":return n.stop()}}),n)})))()},handleExportFilter:function(t){var e=this;return Ae(Pe().mark((function r(){var n,o;return Pe().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=function(){var r=Ae(Pe().mark((function r(){var n,o,i;return Pe().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.$message.loading("正在".concat(t.name,",请稍等..."),0),r.next=3,e.executeData({key:t.key,data:e.selections.length?e.selections:{},query:e.query});case 3:o=r.sent,n(),o instanceof Error||(i=o&&o.file_id?o.file_id:null,Te(e.apiBaseURL,i));case 6:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),!t.params||!t.params.confirm){r.next=6;break}o=t.params.confirm,e.$confirm({title:o.title||t.name,content:o.content||"您确认要执行【".concat(t.name,"】操作吗?"),onOk:function(){n()}}),r.next=8;break;case 6:return r.next=8,n();case 8:case"end":return r.stop()}}),r)})))()},handleExportOne:function(t){this.handleExport(t,!0)}}};function De(t){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},De(t)}function Ie(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Me(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ie(Object(r),!0).forEach((function(e){qe(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qe(t,e,r){return e=Be(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Be(t){var e=Fe(t,"string");return"symbol"==De(e)?e:String(e)}function Fe(t,e){if("object"!=De(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=De(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function $e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$e=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==De(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(De(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Ve(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function He(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ve(i,n,o,a,s,"next",t)}function s(t){Ve(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Ue=r("9f89"),Ge=/\${([\s\S]+?)}/g,ze={methods:{handleViewPicker:function(t){var e=this;return He($e().mark((function t(){return $e().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.actionViewWidget="picker-view-form",e.showActionView();case 2:case"end":return t.stop()}}),t)})))()},handleTreeSelect:function(t){var e=this;return He($e().mark((function r(){var n,o,i,a,s,c,l,u,f,h;return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.params,o=n.treeUrl,i=n.dataUrl,a=n.keyName,s=n.titleName,c=n.valueName,l=n.valuesName,e.actioning=!0,u=Me(Me({},e.actionModel),{},{$parent:e.actionParams.$parent}),r.next=5,e.$api.get(Ue(o,{reInterpolate:Ge})(u));case 5:return f=r.sent,r.next=8,e.$api.get(Ue(i,{reInterpolate:Ge})(u));case 8:h=r.sent,e.actioning=!1,e.actionParams=Me(Me({},e.actionParams),{},{treeData:f.data&&f.data.collection,data:h.data&&h.data.collection,keyName:a,titleName:s,valueName:c,valuesName:l}),e.actionViewWidget="picker-tree-form",e.showActionView();case 13:case"end":return r.stop()}}),r)})))()},handleTransferSelect:function(t){var e=this;return He($e().mark((function r(){var n,o,i,a,s,c,l,u,f,h,d;return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.params,o=n.treeUrl,i=n.dataUrl,a=n.keyName,s=n.titleName,c=n.valueName,l=n.valuesName,u=n.selected,e.actioning=!0,f=Me(Me({},e.actionModel),{},{$parent:e.actionParams.$parent}),r.next=5,e.$api.get(Ue(o,{reInterpolate:Ge})(f));case 5:return h=r.sent,r.next=8,e.$api.get(Ue(i,{reInterpolate:Ge})(f));case 8:d=r.sent,e.actioning=!1,e.actionParams=Me(Me({},e.actionParams),{},{treeData:h.data&&h.data.collection,data:d.data&&d.data.collection,keyName:a,titleName:s,valueName:c,valuesName:l,selected:u}),e.actionViewWidget="picker-transfer-form",e.showActionView();case 13:case"end":return r.stop()}}),r)})))()},handleAlgorithm:function(){var t=this;return He($e().mark((function e(){return $e().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.actionViewWidget="algorithm-form",t.actionViewMode="fullscreen",t.showActionView();case 3:case"end":return e.stop()}}),e)})))()},handleSelectViewPicker:function(t){var e=this;return He($e().mark((function r(){var n,o,i,a,s;return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.params,o=n.treeUrl,i=n.valuesName,e.actioning=!0,a=Me(Me({},e.actionModel),{},{$parent:e.actionParams.$parent}),r.next=5,e.$api.get(Ue(o,{reInterpolate:Ge})(a));case 5:s=r.sent,e.actioning=!1,e.actionParams=Me(Me({},e.actionParams),{},{treeData:s.data&&s.data.collection,valuesName:i}),e.actionViewWidget="picker-select-view-form",e.showActionView();case 10:case"end":return r.stop()}}),r)})))()}}};function Ke(t){return Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ke(t)}function Ye(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function We(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ye(Object(r),!0).forEach((function(e){Qe(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ye(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ze(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ze=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Ke(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Ke(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Je(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Xe(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Je(i,n,o,a,s,"next",t)}function s(t){Je(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Qe(t,e,r){return e=tr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tr(t){var e=er(t,"string");return"symbol"==Ke(e)?e:String(e)}function er(t,e){if("object"!=Ke(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ke(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var rr={mixins:[Re,ze],methods:{handleRowAction:function(){},handleFindAll:function(){},handleFindOne:function(){},handleCreate:function(t){this.formMode="create",this.parentIdName&&this.actionModel&&(this.actionModel=Qe({},this.parentIdName,this.actionModel[this.nodeName])),this.showActionView()},handleUpdate:function(t){this.formMode="update",this.showActionView()},handleDelete:function(t){var e=this;return Xe(Ze().mark((function r(){return Ze().wrap((function(r){while(1)switch(r.prev=r.next){case 0:e.$confirm({title:t.name,content:"此操作将永久删除该数据, 是否继续?",okText:"确定",cancelText:"取消",onOk:function(){var r=Xe(Ze().mark((function r(){return Ze().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,e.removeData({key:t.key,method:t.method||"delete",data:e.profile?[e.profile[e.idName]]:e.selections.length?e.selections.map((function(t){return t[e.idName]})):[e.actionModel[e.idName]]});case 2:e.selections=[],e.id?e.handleBack():e.findAll.length||e.load&&e.load(),je(t,e);case 5:case"end":return r.stop()}}),r)})));function n(){return r.apply(this,arguments)}return n}()});case 1:case"end":return r.stop()}}),r)})))()},handleBulkEdit:function(){this.actionRowEditing=!0},handleCancelEdit:function(){var t=this;return Xe(Ze().mark((function e(){return Ze().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.editions.length?t.editions.length&&t.$confirm({title:"提示",content:"已编辑数据将无法保存, 是否继续?",okText:"确定",cancelText:"取消",onOk:function(){t.closeActionView()}}):t.closeActionView();case 1:case"end":return e.stop()}}),e)})))()},handleSaveEdit:function(){var t=arguments,e=this;return Xe(Ze().mark((function r(){return Ze().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return t.length>0&&void 0!==t[0]?t[0]:e.formAction,e.actioning=!0,r.next=4,e.commitActionView(e.editions);case 4:e.actioning=!1;case 5:case"end":return r.stop()}}),r)})))()},handleOne:function(t){var e=this;return Xe(Ze().mark((function r(){return Ze().wrap((function(r){while(1)switch(r.prev=r.next){case 0:e.handleBulk(t,1);case 1:case"end":return r.stop()}}),r)})))()},handleBulk:function(t){var e=arguments,r=this;return Xe(Ze().mark((function n(){var o,i,a,s,c;return Ze().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(o=e.length>1&&void 0!==e[1]?e[1]:0,i=r.selections.length,!(o&&i>o)){n.next=4;break}return n.abrupt("return",r.$message.error("所选数据不允许超过 ".concat(o," 条")));case 4:a=i>1?" ".concat(i," 条"):"",s={method:t.method||"post",key:t.key,data:r.selections.length?r.selections:[r.actionModel],type:t.params&&t.params.commit?t.params.commit.type:""},c=function(){t.params&&t.params.commit&&"remove"===t.params.commit.type&&(r.id?r.handleBack():r.findAll.length||r.load&&r.load())},r.$confirm({title:t.name,content:"确认对选定的".concat(a,"数据进行【").concat(t.name,"】操作?"),okText:"确定",cancelText:"取消",onOk:t.params&&t.params.sync?function(){r.saveData(s),c(),je(t,r)}:Xe(Ze().mark((function e(){return Ze().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,r.saveData(s);case 2:c(),je(t,r);case 4:case"end":return e.stop()}}),e)})))});case 8:case"end":return n.stop()}}),n)})))()},handleEver:function(t){var e=this;return Xe(Ze().mark((function r(){var n;return Ze().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.$message.loading("正在".concat(t.name,",请稍等..."),0),r.next=3,e.executeData({key:t.key,data:{},query:e.query?e.query:{}});case 3:n();case 4:case"end":return r.stop()}}),r)})))()},handleRouter:function(t){var e=this;return Xe(Ze().mark((function r(){var n;return Ze().wrap((function(r){while(1)switch(r.prev=r.next){case 0:n=t.legend,n=xe(n,We({$parent:e.params.$parent,user:e.$store.state.user},e.actionModel)),e.$router.push(n);case 3:case"end":return r.stop()}}),r)})))()},handleLink:function(t){var e=this;return Xe(Ze().mark((function r(){var n;return Ze().wrap((function(r){while(1)switch(r.prev=r.next){case 0:n=t.legend,n=xe(n,We({$parent:e.params.$parent,user:e.$store.state.user},e.actionModel)),window.open(n,"_blank");case 3:case"end":return r.stop()}}),r)})))()},handleRefresh:function(){var t=this;return Xe(Ze().mark((function e(){var r,n;return Ze().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.load){e.next=7;break}return e.next=3,t.load();case 3:return r=e.sent,e.next=6,je("refresh",t);case 6:r instanceof Error&&(n=r.response.data.code,404===n&&t.handleBack());case 7:case"end":return e.stop()}}),e)})))()},handleBack:function(){this.parentIds||"page"!==this.mode?this.$emit("close"):this.$router.back()},handleAutoFill:function(t){this.defaultModel||(this.defaultModel=We({},this.actionModel));var e=this.schema.id,r=t.target.checked,n=JSON.parse(localStorage.getItem("form_".concat(e)));if(n)for(var o in n)r?this.$set(this.actionModel,o,n[o]):this.$set(this.actionModel,o,this.defaultModel[o])}}};function nr(t){return nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nr(t)}function or(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */or=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==nr(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(nr(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function ir(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ar(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ir(Object(r),!0).forEach((function(e){sr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ir(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sr(t,e,r){return e=cr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cr(t){var e=lr(t,"string");return"symbol"==nr(e)?e:String(e)}function lr(t,e){if("object"!=nr(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=nr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function ur(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function fr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ur(i,n,o,a,s,"next",t)}function s(t){ur(i,n,o,a,s,"throw",t)}a(void 0)}))}}var hr={methods:{handleFlowReport:function(t){var e=this;return fr(or().mark((function r(){var n,o;return or().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.actionModel,e.actionConfirmMode=e.actioning=!0,r.next=4,e.saveData({key:t.key,data:ar({},n)});case 4:if(o=r.sent,e.actionConfirmMode=e.actioning=!1,o.data){r.next=8;break}return r.abrupt("return");case 8:e.actionModel=ar(ar({},n),{},{confirm:1,todo_actors:[]}),e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionParams.flow=o,e.actionViewVisible=!0;case 12:case"end":return r.stop()}}),r)})))()},handleFlowCheck:function(t){var e=this;return fr(or().mark((function r(){var n,o;return or().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.actionModel,e.actionConfirmMode=e.actioning=!0,r.next=4,e.saveData({key:t.key,data:ar({},n)});case 4:if(o=r.sent,e.actionConfirmMode=e.actioning=!1,o.data){r.next=8;break}return r.abrupt("return");case 8:e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionModel=ar(ar({},n),{},{data:ar({},o.data),confirm:1,deal_note:"",flow_action_name:"submit",form_param:[],todo_actors:[],todo_id:o.data.todo_id,back_step:""}),e.actionParams.flow=o,e.actionViewVisible=!0;case 12:case"end":return r.stop()}}),r)})))()},handleFlowReassign:function(t){var e=this;return fr(or().mark((function r(){var n,o;return or().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.actionModel,e.actionConfirmMode=e.actioning=!0,r.next=4,e.saveData({key:t.key,data:ar({},n)});case 4:if(o=r.sent,e.actionConfirmMode=e.actioning=!1,o.data){r.next=8;break}return r.abrupt("return");case 8:e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionModel=ar(ar({},n),{},{data:ar({},o.data),confirm:1,deal_note:"",flow_action_name:"reassign",form_param:[],todo_actors:[],todo_id:o.data.todo_id,back_step:""}),e.actionParams.flow=o,e.actionViewVisible=!0;case 12:case"end":return r.stop()}}),r)})))()},handleFlowQuery:function(t){var e=this;return fr(or().mark((function r(){var n,o;return or().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.actionModel,e.actionConfirmMode=e.actioning=!0,r.next=4,e.saveData({key:t.key,data:ar({},n)});case 4:if(o=r.sent,e.actionConfirmMode=e.actioning=!1,o.data){r.next=8;break}return r.abrupt("return");case 8:e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionParams.flow=o,e.actionViewVisible=!0;case 11:case"end":return r.stop()}}),r)})))()},getActionWidget:function(t){var e=null;return t.configs.length&&(e=Object.fromEntries(t.configs.map((function(t){return[t.key,t.value]})))),e&&e["action.widget"]?e["action.widget"]:void 0}}};function dr(t){return dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dr(t)}function pr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */pr=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==dr(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(dr(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function vr(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function yr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){vr(i,n,o,a,s,"next",t)}function s(t){vr(i,n,o,a,s,"throw",t)}a(void 0)}))}}var mr={methods:{commit:function(){return yr(pr().mark((function t(){return pr().wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()}}};function gr(t){return gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gr(t)}function br(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */br=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==gr(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(gr(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function wr(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function _r(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){wr(i,n,o,a,s,"next",t)}function s(t){wr(i,n,o,a,s,"throw",t)}a(void 0)}))}}function xr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function kr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xr(Object(r),!0).forEach((function(e){Or(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Or(t,e,r){return e=Er(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Er(t){var e=Sr(t,"string");return"symbol"==gr(e)?e:String(e)}function Sr(t,e){if("object"!=gr(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=gr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var jr={create:["createonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},Nr={none:function(t,e){return 0===t&&!e},single:function(t,e){return 1===t||e},somewhat:function(t,e){return t>0||e},mulpitle:function(t,e){return t>1&&!e}},Lr={mixins:[rr,hr,mr],data:function(){return{action:null,actioning:!1,submitting:!1,actionViewMode:"modal",actionViewType:"Form",actionViewWidget:"normal-form",actionViewVisible:!1,actionModel:null,actionParams:{},actionViewShowRules:[],actionSubmited:0,actionConfirmMode:!1,actionRowEditing:!1,actionCommitResult:{template:null,data:null},defaultModel:null,unwatchs:[],editions:[],preview:!1}},computed:{actions:function(){var t=this,e=this.model.actions;if(!e)return[];var r=this.selections.length||0,n=!!this.profile;return e.filter((function(e){var o=!0,i=e.selected,a=e.action;return i&&Nr[i]&&(o=Nr[i](r,n)),"single"===e.selected&&"profile"===a&&n&&(o=!1),o&&!t.actionRowEditing&&t.showAction(e)}))},bulkActions:function(){var t=this.model.actions;return t?t.filter((function(t){return["somewhat","mulpitle"].includes(t.selected)})):[]},backActions:function(){return[{key:"_back",name:"返回",icon:"left",action:"back"}]},navActions:function(){return this.previous||this.next?[{key:"_previous",name:"",icon:"left",action:"previous",disabled:!this.previous},{key:"_next",name:"",icon:"right",action:"next",disabled:!this.next}]:[]},settingActions:function(){var t=[{key:"",name:"保存",icon:"save",method:"PUT",action:"saveEdit",primary:"1"},{key:"_cancle",name:"取消",icon:"stop",action:"cancelEdit",group:"1"}];return this.actionRowEditing?this.editions.length?t:t.filter((function(t){return["cancelEdit"].includes(t.action)})):[{key:"_refresh",name:"",icon:"reload",action:"refresh"}]},inlineActions:function(){return this.model.actions&&this.model.actions.filter((function(t){return["single","somewhat"].includes(t.selected)}))},sheetActions:function(){},firstAction:function(){},lastAction:function(){},actionOkButtonProps:function(){return{props:{loading:this.committing,icon:"check"}}},actionCancelButtonProps:function(){return{props:{disabled:this.committing,icon:"close"}}}},methods:{rowActions:function(t){var e=this;return this.inlineActions.filter((function(r){return e.showAction(r,t)}))},showAction:function(t,e){var r=t.params&&!!t.params.show,n=t.params&&(t.params.show||t.params.hide),o=this.params||this,i=o.$parent;if(!n)return!0;var a=this.profile?[this.profile]:e?[e]:this.selections||[],s=r;return a.length?s=r?a.every((function(t){return we(n,kr(kr({},t),{},{$parent:i}))})):a.some((function(t){return we(n,kr(kr({},t),{},{$parent:i}))})):i&&(s=we(n,{$parent:i})),r?s:!s},actionBeforeDriver:function(t){var e=this;return _r(br().mark((function r(){var n,o,i,a,s,c,l;return br().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,e.$api.get("/dataset/".concat(t,"?").concat(j.a.stringify(e.$store.state.user)));case 3:if(n=r.sent,o=n.data.data,i=void 0===o?[]:o,!i.length){r.next=14;break}if("500"!==i[0].code){r.next=12;break}return e.$message.error(i[0].content),r.abrupt("return",!1);case 12:if("200"!==i[0].code){r.next=14;break}return r.abrupt("return",!0);case 14:r.next=22;break;case 16:r.prev=16,r.t0=r["catch"](0),r.t0.response||e.$message.error("网络请求错误,请检查您的网络连接。"),a=r.t0.response,s=a.status,c=a.data,l=c&&c.content||"系统错误请与管理员联系。",e.$message.error("".concat(s,", ").concat(l));case 22:case"end":return r.stop()}}),r,null,[[0,16]])})))()},handleRowAction:function(t,e,r){var n=r.target.getElementsByTagName("input");if(this.selections=[e],"file"!==t.action)return this.handleAction(t,e);r.stopPropagation(),n[0]&&void 0===n[0].click()||r.path&&r.path[1].getElementsByTagName("input")[0].click()},handleAction:function(t,e,r){var n=this;return _r(br().mark((function o(){var i,a,s,c,l;return br().wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(n.action=t,i=n.action.params,a=void 0===i?{}:i,s=a.actionBeforeDriver,c=void 0===s?"":s,!c){o.next=8;break}return o.next=5,n.actionBeforeDriver(c);case 5:if(l=o.sent,l){o.next=8;break}return o.abrupt("return",!1);case 8:return e||(e=n.profile||n.selections[0]||{}),["modal","drawer","fullscreen"].includes(t.display)&&(n.actionViewMode=t.display),n.actionModel=kr(kr(kr({},e),r),n.defaults),n.actionParams=kr(kr({},t.params),{},{$parent:n.params.$parent}),"page"===t.display?n.routeAction(t):n.dispatchAction(t),o.abrupt("return",n);case 14:case"end":return o.stop()}}),o)})))()},handleCellChange:function(t,e,r){var n=this.idName,o=this.editions.find((function(t){return t[n]===r[n]}));o||(o=kr({},r),this.editions.push(o)),o[e]=t},trigger:function(t){var e=this.actions.find((function(e){return e.key===t}));return this.dispatchAction(e),this},dispatchAction:function(t){var e={POST:"handleCreate",PUT:"handleUpdate",DELETE:"handleDelete","e.send-email":"handleSendMail","e.flow-report":"handleFlowReport","e.flow-query":"handleFlowQuery","e.flow-submit":"handleFlowCheck","e.flow-check":"handleFlowCheck","e.flow-open":"handleFlowCheck","e.flow-reassign":"handleFlowReassign",viewSelect:"handleViewPicker",algorithm:"handleAlgorithm"};try{if(t.action&&e[t.action])this[e[t.action]](t);else if(t.action){var r=t.action.replace(/^\S/,(function(t){return t.toUpperCase()}));this["handle".concat(r)](t)}else this[e[t.method]](t)}catch(n){this.$message.error("前端事件异常【".concat(t.name,"】"))}return this},routeAction:function(t){return this.$router.push({path:t.key}),this},showActionView:function(){this.actionViewVisible=!0},submitActionView:function(){this.submitting=!0,this.actionSubmited=(new Date).getTime()},commitActionView:function(t){var e=arguments,r=this;return _r(br().mark((function n(){var o,i,a,s,c,l,u,f,h,d,p,v,y,m,g,b,w,_,x,k,O,E,S;return br().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=e.length>1&&void 0!==e[1]?e[1]:null,o&&(r.preview=o.preview),i=r.selections,a=r.actionModel,s=r.idName,c=r.editions,l=r.action,u=l.key,f=l.method,h=l.params,d=void 0===h?{}:h,p=d.commit,v=void 0===p?{}:p,y=v.type,m=v.redirectProfile,g=d.autofill,b=r.schema,i.length>1?(delete t[s],t=i.map((function(e){return kr(kr({},e),t)}))):a&&!c.length&&(t=kr(kr({},a),t)),w=Object.keys(t).every((function(e){return!(t[e]instanceof File)&&!(t[e]&&t[e]instanceof Array&&t[e].some((function(t){return t instanceof File})))})),_={},x=Object.keys(t).find((function(e){return t[e]&&t[e]instanceof Array&&t[e].some((function(t){return t instanceof File}))}))?"1":"0","1"===x&&(_.multiple=x),w||(t=r.transformData(t)),n.next=11,r.saveData({data:t,key:u,method:f,query:_,type:y,params:o});case 11:if(k=n.sent,k){if(g){for(S in O=kr({},k),E=r.filterColumns().map((function(t){return t.name})),O)E.includes(S)||delete O[S];localStorage.setItem("form_".concat(b.id),JSON.stringify(O))}r.actionCommitResult.data=function(){return{data:k}},m&&r.handleModelProfile&&r.handleModelProfile(k),r.id&&y&&"remove"===y&&r.handleBack()}je({params:{commit:{type:y}}},r);case 14:case"end":return n.stop()}}),n)})))()},filterColumns:function(){var t=this.action,e=this.params,r=this.model,n=this.hide,o=this.formMode,i=t&&t.view?t.view.model.attrs:e&&e.attrs?e.attrs:r.attrs?r.attrs:[];if(t&&t.list){var a=this.action.list.split(",");return i.filter((function(t){return!n.includes(t.name)&&a.includes(t.name)}))}return i.filter((function(t){return jr[o].includes(t.access)&&!n.includes(t.name)&&"collection"!==t.metaType&&"model"!==t.metaType&&"link"!==t.type}))},transformData:function(t){var e=new FormData;for(var r in t)if("object"!==gr(t[r])||t[r]instanceof File)e.append("".concat(r),t[r]);else for(var n in t[r])Array.isArray(t[r])?e.append("".concat(r),t[r][n]instanceof File||"object"!==gr(t[r][n])?t[r][n]:JSON.stringify(t[r][n])):e.append("".concat(r,".").concat(n),t[r][n]instanceof File||"object"!==gr(t[r][n])?t[r][n]:JSON.stringify(t[r][n]));return e},closeActionView:function(t){return this.action=null,this.formModal=null,this.actionViewVisible=!1,this.submitting=!1,this.actionViewMode="modal",this.actionViewType="Form",this.actionViewWidget="normal-form",this.actionViewStoreNamespace=null,this.actionParams={},this.actionCommitResult={template:null,data:null},this.actionRowEditing=!1,this.editions=[],this.clearSelection&&this.clearSelection(),this.defaultModel=null,this},handleUpdateStatus:function(t){t>399&&this.message&&(this.$message.error(this.message),this.resetStatus())},handleUpdateMessage:function(t){var e=this.action&&this.action.configs,r=e&&e.find((function(t){return"result"===t.key}));200===this.status&&t&&(!this.actionConfirmMode&&this.$message.success(t),r?this.actionCommitResult.template=r.value:this.actionConfirmMode||!this.preview&&this.closeActionView()),this.resetStatus()}},activated:function(){this.unwatchs=[this.$watch("status",this.handleUpdateStatus),this.$watch("message",this.handleUpdateMessage)]},deactivated:function(){this.unwatchs.map((function(t){return t()})),this.unwatchs=[]}},Pr=function(t,e){var r=t,n=e.list.split(",").map((function(t){return t.split(":")}));return r=n.find((function(e){return String(e[0])===String(t)})),r=r?r[1]?r[1]:r[0]:"-",r},Cr=function(t,e){var r=t,n=e.typeObject.model.attrs.find((function(t){return"title"===t.display})),o=e.typeObject.model.idName;function i(t,e){for(var r=null,n=0;n<e.length;n++)if(String(e[n][o])===String(t)?r=e[n]:e[n]._childList&&(r=i(t,e[n]._childList)),r)return r;return r}return r=i(t,e.typeObject.data.collection),r=r?r[n?n.name:e.typeObject.model.idName]:t?"-":"",r},Ar=function(t,e,r){var n;switch(e.dataType){case"year":n="YYYY";break;case"month":n="YYYY-MM";break;case"date":n="YYYY-MM-DD";break;case"datetime":n="YYYY-MM-DD HH:mm";break;default:n="YYYY-MM-DD HH:mm";break}return r(t).format(n)},Tr={methods:{formatter:function(t,e,r){var n=e;r.list&&e&&(n=["checkbox","multiple","tree-suggests"].includes(r.control)?e&&e.split(",").map((function(t){return Pr(t,r)})).join(","):Pr(e,r)),"wordbook"===r.dataType&&r.typeObject&&e&&(n=["checkbox","multiple","tree-suggests"].includes(r.control)?e.split(",").map((function(t){return Cr(t,r)})).join(","):Cr(e,r));var o=["year","month","date","datetime","time"];return o.includes(r.dataType)&&(e||0===e)&&(n=Ar(e,r,this.moment)),n}}},Rr=function(){var t=this,e=t._self._c;return e("a-table",t._b({class:{"list-table-header-selection-checkbox":t.$attrs.rowSelection&&t.$attrs.rowSelection.type&&"checkbox"===t.$attrs.rowSelection.type&&t.showSelectionText},attrs:{pagination:!1,size:"middle"}},"a-table",t.$attrs,!1))},Dr=[],Ir={computed:{showSelectionText:function(){if(this.$store.state.app.config.length){var t=Object.fromEntries(this.$store.state.app.config.map((function(t){return[t.config_key,t.config_value]})));return"1"===t["show-selection-text"]||!1}return!1}}},Mr=Ir;function qr(t,e,r,n,o,i,a,s){var c,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=r,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=c):o&&(c=s?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:l}}var Br=qr(Mr,Rr,Dr,!1,null,null,null),Fr=Br.exports,$r=function(){var t=this,e=t._self._c;return e("a-list",t._b({attrs:{itemLayout:"horizontal",pagination:!1,size:"default",split:!1},scopedSlots:t._u([{key:"renderItem",fn:function(r){var n=r.item;return[e("a-list-item",[e(t.component,{tag:"component",attrs:{item:n}})],1)]}}])},"a-list",t.$attrs,!1))},Vr=[],Hr={props:["item"],computed:{component:function(){return{props:["item"],template:this.item||"<div></div>"}}}},Ur=Hr,Gr=qr(Ur,$r,Vr,!1,null,null,null),zr=Gr.exports,Kr={ListTable:Fr,ListNormal:zr},Yr=function(){var t=this,e=t._self._c;return e("a-form-model",{attrs:{layout:t.layout}},[t._l(t.attrs,(function(r,n){return e("Item",{key:"".concat(n,"-").concat(r.name),attrs:{formModel:t.actionModel,prop:r.name,schema:r,params:t.params,labelType:!1,isFilter:""},on:{change:function(e){return t.handleItemChange(e,r)},fill:function(e){return t.handleItemFill(e,r)}},model:{value:t.actionModel[r.name],callback:function(e){t.$set(t.actionModel,r.name,e)},expression:"actionModel[col.name]"}})})),t.view.configs["filters.collapse"]?e("a-form-model-item",[e("a-popover",{attrs:{trigger:"click",placement:"bottomRight"},scopedSlots:t._u([{key:"content",fn:function(){return t._l(t.columns.slice(t.view.configs["filters.collapse"]),(function(r,n){return e("Item",{key:"".concat(n,"-").concat(r.name),attrs:{formModel:t.actionModel,prop:r.name,schema:r,params:t.params,labelType:!1,isFilter:""},on:{change:function(e){return t.handleItemChange(e,r)},fill:function(e){return t.handleItemFill(e,r)}},model:{value:t.actionModel[r.name],callback:function(e){t.$set(t.actionModel,r.name,e)},expression:"actionModel[col.name]"}})}))},proxy:!0}],null,!1,2124004358),model:{value:t.collapse,callback:function(e){t.collapse=e},expression:"collapse"}},[e("a-button",{attrs:{type:"link",icon:"filter"}},[t._v(" 更多筛选")])],1)],1):t._e()],2)},Wr=[];function Zr(t){return Zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zr(t)}function Jr(t){return en(t)||tn(t)||Qr(t)||Xr()}function Xr(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Qr(t,e){if(t){if("string"===typeof t)return rn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rn(t,e):void 0}}function tn(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function en(t){if(Array.isArray(t))return rn(t)}function rn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function nn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */nn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Zr(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Zr(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function on(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function an(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){on(i,n,o,a,s,"next",t)}function s(t){on(i,n,o,a,s,"throw",t)}a(void 0)}))}}function sn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function cn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?sn(Object(r),!0).forEach((function(e){ln(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ln(t,e,r){return e=un(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function un(t){var e=fn(t,"string");return"symbol"==Zr(e)?e:String(e)}function fn(t,e){if("object"!=Zr(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Zr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var hn={model:{prop:"values",event:"change"},props:{action:{type:Object},columns:{type:Array},values:{type:Object},mode:{type:String,enum:["fully","normal","simple"],default:"normal"},layout:{type:String,enum:["horizontal","vertical","inline"],default:"horizontal"},params:{type:[Object],default:function(){return{}}},submited:{type:Number},continueText:{type:String},submitText:{type:String},resetText:{type:String},footer:{type:String},onContinue:{type:Function},onSubmit:{type:Function},onReset:{type:Function}},data:function(){return{actionModel:cn({},this.values)||{},hasFile:!1}},created:function(){if(this.defaultValues)for(var t in this.defaultValues)void 0===this.actionModel[t]&&this.$set(this.actionModel,t,this.defaultValues[t])},computed:{defaultValues:function(){var t=this.columns?this.columns.filter((function(t){return!!t.value})).map((function(t){return[t.name,t.value]})):[];return t.length?Object.fromEntries(t):null},rules:function(){var t={};return this.columns.forEach((function(e){var r,n=["date","time","month","week","range","tree-suggest"].includes(e.control);(t[e.name]=[],e.required&&t[e.name].push({required:!0,message:"".concat(e.alias,"不能为空"),trigger:n?"change":"blur"}),e.maxLength&&e.minLength)&&(r=e.maxLength&&e.minLength?"长度在 ".concat(e.minLength," 到 ").concat(e.maxLength," 个字符"):e.maxLength?"长度不多于 ".concat(e.maxLength," 个字符"):"长度不少于 ".concat(e.minLength," 个字符"),t[e.name].push({min:e.minLength,max:e.maxLength,message:r,trigger:"blur"}))})),t},configs:function(){return Object.fromEntries(this.action.configs.map((function(t){return[t.key,t.value]})))}},provide:function(){return{form:this}},inject:["view"],methods:{setModel:function(t,e){this.actionModel[t]?this.actionModel[t]=e:this.$set(this.actionModel,t,e)},handleItemChange:function(t,e){var r=e.name;this.setModel(r,t)},handleItemFill:function(t){var e=this;t.forEach((function(t){return e.setModel(t.name,t.value)}))},handleSubmit:function(){var t=this;return an(nn().mark((function e(){return nn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.$refs.form){e.next=3;break}return e.next=3,t.$refs.form.validate();case 3:t.handleCommit();case 4:case"end":return e.stop()}}),e)})))()},handleCommit:function(){var t=this;return an(nn().mark((function e(){var r,n,o,i,a;return nn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:Array.isArray(t.actionModel)?r=t.actionModel:(n=t.params,o=void 0===n?{}:n,i=o.valuesName,a=i?[].concat(Jr(t.columns),[{name:i}]):t.columns,r=Object.fromEntries(a.map((function(e){var r=void 0===t.actionModel[e.name]?null:t.actionModel[e.name];return[e.name,r]})))),t.$emit("commit",r);case 2:case"end":return e.stop()}}),e)})))()}},watch:{submited:function(){this.handleSubmit()},actionModel:{handler:function(t){this.$emit("change",t)},deep:!0},values:{handler:function(t){for(var e in t)this.setModel(e,t[e])},deep:!0}}},dn=function(){var t=this,e=t._self._c;return(t.changeMode?t.multiConditionStatus:t.showModel)?e("a-form-model-item",{ref:"item",attrs:{label:t.label,help:t.help,extra:t.extra,"validate-status":t.validateStatus,colon:!1,"has-feedback":!1,prop:t.prop,rules:t.rules}},[["select","chosen"].includes(t.schema.control)?e("a-select",{staticStyle:{width:"100%","min-width":"199px"},attrs:{value:t.value,allowClear:"",showSearch:"chosen"===t.schema.control,optionFilterProp:"children",filterOption:t.filterOption,disabled:t.readonly,dropdownMatchSelectWidth:!1,placeholder:t.placeholder},on:{change:function(e){return t.$emit("change",e)}}},t._l(t.options,(function(r,n){return e("a-select-option",{key:n,attrs:{title:r.label,value:r.value}},[t._v(" "+t._s(r.label)+" ")])})),1):["multiple"].includes(t.schema.control)?e("a-select",{staticStyle:{width:"100%","min-width":"199px"},attrs:{mode:"multiple",allowClear:"",defaultValue:t.value?t.value.split(","):[],disabled:t.readonly,dropdownMatchSelectWidth:!1,placeholder:t.placeholder},on:{change:function(e){return t.$emit("change",e.join(","))}}},t._l(t.options,(function(r,n){return e("a-select-option",{key:n,attrs:{title:r.label,value:r.value}},[t._v(" "+t._s(r.label)+" ")])})),1):"Boolean"===t.schema.metaType?e("a-switch",{attrs:{disabled:t.readonly,defaultChecked:t.value},on:{change:function(e){return t.$emit("change",e)}}}):"daterange"===t.schema.control?e("a-range-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,valueFormat:"YYYY-MM-DD",placeholder:["开始".concat(t.placeholder),"结束".concat(t.placeholder)],defaultValue:t.value&&t.value.split(",").every((function(t){return t}))?t.value.split(",").map((function(e){return t.moment(Number(e)||e)})):null,disabledDate:function(e){return t.disableDateFn(e)},allowClear:""},on:{change:function(e,r){t.$emit("change",r.join(","))}}}):["date","datetime"].includes(t.schema.control)||"date"===t.schema.dataType?e("a-date-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,format:"datetime"===t.schema.control?"YYYY-MM-DD HH:mm":"YYYY-MM-DD",valueFormat:"datetime"===t.schema.control?"YYYY-MM-DD HH:mm":"YYYY-MM-DD",value:t.value?t.moment(Number(t.value)||t.value):null,showTime:"datetime"===t.schema.control&&{format:"HH:mm"},allowClear:"",placeholder:t.placeholder,disabledDate:function(e){return t.disableDateFn(e)}},on:{change:function(e,r){t.$emit("change",r)}}}):"year"===t.schema.control?e("a-date-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,format:"YYYY",mode:"year",value:t.value?t.moment(t.value):null,allowClear:"",placeholder:t.placeholder,open:t.yearPickerPanelOpen,disabledDate:function(e){return t.disableDateFn(e)}},on:{panelChange:function(e){t.$emit("change",t.moment(e).format("YYYY")),t.yearPickerPanelOpen=!1},openChange:function(e){return t.yearPickerPanelOpen=e}}}):["birthday"].includes(t.schema.control)?e("a-date-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,format:"YYYY-MM-DD HH:mm",valueFormat:"YYYY-MM-DD HH:mm",defaultValue:t.value?t.moment(t.value):null,showTime:{format:"HH:mm"},allowClear:"",disabledDate:function(e){return t.disableDateFn(e)},placeholder:t.placeholder},on:{change:function(e,r){t.$emit("change",r)}}}):["month"].includes(t.schema.control)||"month"===t.schema.dataType?e("a-month-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,defaultValue:t.value?t.moment(Number(t.value)||t.value):null,allowClear:"",placeholder:t.placeholder,disabledDate:function(e){return t.disableDateFn(e)}},on:{change:function(e,r){t.$emit("change",r)}}}):["week"].includes(t.schema.control)||"week"===t.schema.dataType?e("a-week-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,defaultValue:t.value?t.moment(Number(t.value)||t.value,"YYYY-w"):null,format:"YYYY-w",allowClear:"",placeholder:t.placeholder,disabledDate:function(e){return t.disableDateFn(e)}},on:{change:function(e,r){t.$emit("change",r)}}}):["time"].includes(t.schema.control)?e("a-time-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{allowClear:"",placeholder:t.placeholder,format:"HH:mm",disabled:t.readonly,defaultValue:t.value?t.moment(t.value,"HH:mm"):null,disabledDate:function(e){return t.disableDateFn(e)}},on:{change:function(e,r){t.$emit("change",r)}}}):"multiple"===t.schema.control?e("a-checkbox-group",{attrs:{options:t.options,defaultValue:t.value},on:{change:function(e){return t.$emit("change",e)}}}):"radio"===t.schema.control?e("a-radio-group",{attrs:{defaultValue:t.value},on:{change:function(e){return t.$emit("change",e.target.value)}}},[t._l(t.options,(function(r){return e("a-radio",{key:r.value,attrs:{disabled:t.readonly,value:["Number","Integer"].includes(t.schema.metaType)?Number(r.value):r.value}},[t._v(" "+t._s(r.label)+" ")])})),e("a-radio",{directives:[{name:"show",rawName:"v-show",value:0,expression:"0"}],key:"_empty",attrs:{value:""}},[t._v(" 全部 ")])],2):"radio-image"===t.schema.control?e("a-radio-group",{staticClass:"radio-image",attrs:{defaultValue:t.value},on:{change:function(e){return t.$emit("change",e.target.value)}}},t._l(t.options,(function(r){return e("a-radio-button",{key:r.value,attrs:{disabled:t.readonly,value:["Number","Integer"].includes(t.schema.metaType)?Number(r.value):r.value}},[e("a-avatar",{attrs:{size:48,src:r.label,shape:"square"}})],1)})),1):"button-group"===t.schema.control?e("a-radio-group",{attrs:{defaultValue:t.value},on:{change:function(e){return t.$emit("change",e.target.value)}}},[e("a-radio-button",{key:"_empty",attrs:{value:""}},[t._v(" 全部 ")]),t._l(t.options,(function(r){return e("a-radio-button",{key:r.value,attrs:{disabled:t.readonly,value:r.value}},[t._v(" "+t._s(r.label)+" ")])}))],2):"file"===t.schema.control?[t.value&&!t.reUpload?e("span",[t.formModel[t.view.idName]?e("a",{attrs:{href:"".concat(t.view.apiURL,"/").concat(t.formModel[t.view.idName],"?_file=").concat(t.schema.name,"&_mode=inline"),target:"_blank"}},[t._v(" 下载查看 ")]):t._e(),t.formModel[t.view.idName]&&!t.readonly?e("span",[t._v("-")]):t._e(),t.readonly?t._e():e("span",[e("a",{attrs:{href:"javascript:void(0);"},on:{click:t.handleReupload}},[t._v(" 重新上传 ")])])]):e("a-input",{staticStyle:{margin:"4px 0"},attrs:{type:"file",accept:t.schema.params&&t.schema.params.fileType?t.schema.params.fileType:"*",disabled:t.readonly},on:{change:function(e){return t.handleFilesChange(e,t.schema.params&&t.schema.params.fileSize?t.schema.params.fileSize:null)}}})]:"files"===t.schema.control?e("div",[e("a-upload",{attrs:{beforeUpload:t.beforeFilesUpload,multiple:"",showUploadList:!1,accept:t.schema.params&&t.schema.params.fileType?t.schema.params.fileType:"*"}},[e("a-button",{on:{click:function(e){return t.setFileSize(t.schema.params&&t.schema.params.fileSize?t.schema.params.fileSize:null)}}},[e("a-icon",{attrs:{type:"upload"}}),t._v(" 批量上传 ")],1)],1),t.defaultFileList.length?e("a-list",{attrs:{"item-layout":"horizontal","data-source":t.defaultFileList,size:"small"},scopedSlots:t._u([{key:"renderItem",fn:function(r,n){return e("a-list-item",{},[e("a-list-item-meta",[e("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(r.file_name||r.name))]),e("a-space",{attrs:{slot:"description",size:"middle"},slot:"description"},[e("span",{attrs:{slot:"description"},slot:"description"},[e("a-icon",{attrs:{type:"user"}}),t._v(" "+t._s(r.creator_name||t.$store.state.user.name)+" ")],1),e("span",{attrs:{slot:"description"},slot:"description"},[e("a-icon",{attrs:{type:"clock-circle"}}),t._v(" "+t._s(t.moment(r.create_time).format("YYYY-MM-DD HH:mm"))+" ")],1)])],1),t.schema.params&&t.schema.params.control&&t.schema.params.control.deleteActionRoles&&t.schema.params.control.deleteActionRoles.includes(t.$store.state.user.roleId)||!(t.schema.params&&t.schema.params.control&&t.schema.params.control.deleteActionRoles)?e("a-icon",{staticStyle:{color:"#f5222d"},attrs:{slot:"actions",type:"close-circle"},on:{click:function(e){return t.handleRemove(n)}},slot:"actions"}):t._e()],1)}}],null,!1,3361518064)}):t._e()],1):"image"===t.schema.control?e("a-upload",{staticClass:"avatar-uploader",attrs:{accept:"image/*","list-type":"picture-card","default-file-list":t.defaultFileList,"before-upload":t.beforeUpload,remove:function(){return t.$emit("change",null)}}},[t.formModel[t.schema.name]?t._e():e("div",[e("a-icon",{attrs:{type:"plus"}}),e("div",{staticClass:"ant-upload-text"},[t._v("上传")])],1)]):"view-select"!==t.schema.control||t.readonly?"textarea"===t.schema.control?e("a-textarea",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,defaultValue:t.value,disabled:t.readonly,maxLength:t.schema.maxLength?t.schema.maxLength:512,"auto-size":{minRows:t.schema.params&&t.schema.params.control&&t.schema.params.control.minRows||1,maxRows:t.schema.params&&t.schema.params.control&&t.schema.params.control.maxRows||10},allowClear:""},on:{blur:function(e){return t.$emit("change",e.target.value)},pressEnter:function(e){return t.$emit("change",e.target.value)}}}):"csv-json"===t.schema.control?e("span",[e("a-textarea",{staticStyle:{width:"100%","min-width":"199px"},attrs:{defaultValue:t.value,placeholder:t.placeholder,disabled:t.readonly,maxLength:t.schema.maxLength?t.schema.maxLength:512,"auto-size":{minRows:t.schema.params&&t.schema.params.control&&t.schema.params.control.minRows||1,maxRows:t.schema.params&&t.schema.params.control&&t.schema.params.control.maxRows||10},allowClear:""},on:{blur:function(e){return t.$emit("change",e.target.value)},pressEnter:function(e){return t.$emit("change",e.target.value)}}})],1):"tree-suggest"===t.schema.control?e("a-tree-select",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,dropdownStyle:{maxHeight:"300px",overflow:"auto"},treeData:t.async?t.asyncTreeData:t.treeData,loadData:t.async&&t.handleAsyncLoadData||null,allowClear:"",value:t.value},on:{change:function(e){return t.$emit("change",e)}}}):"tree-suggests"===t.schema.control?e("a-tree-select",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,dropdownStyle:{maxHeight:"300px",overflow:"auto"},treeData:t.async?t.asyncTreeData:t.treeData,loadData:t.async&&t.handleAsyncLoadData||null,allowClear:"",multiple:"",value:t.value?t.value.split(","):void 0},on:{change:function(e){return t.$emit("change",e?e.join(","):void 0)}}}):"tree-select"===t.schema.control?e("div",[t._e(),e("a-tree",{attrs:{replaceFields:{title:"label"},treeData:t.treeUrl?t.loadTreeData:t.async?t.asyncTreeData:t.treeData,selectedKeys:[t.defaultValue],loadData:t.async&&t.handleAsyncLoadData||null,defaultExpandedKeys:t.treeUrl?[t.loadTreeData[0]&&t.loadTreeData[0].key]:[t.treeData[0]&&t.treeData[0].key]},on:{select:t.handleTreeSelect}})],1):"password"===t.schema.control?e("a-input-password",{tag:"component",staticStyle:{width:"100%","min-width":"199px"},attrs:{name:t.schema.name,placeholder:t.placeholder,allowClear:""},on:{change:function(e){return t.$emit("change",e.target.value)}}}):"editor"===t.schema.control?e("Editor",{staticStyle:{width:"100%","min-width":"199px"},attrs:{value:t.formModel[t.schema.name],placeholder:t.placeholder,disabled:t.readonly,params:t.schema.params||void 0},on:{change:function(e){return t.$emit("change",e)}}}):"verify"===t.schema.control?e("VerificationCode",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,url:t.schema.params.url,time:t.schema.params.time,phone:t.formModel[t.schema.params.phoneName]},on:{change:function(e){return t.$emit("change",e)}}}):"map-marker"===t.schema.control?e("MapMarker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,name:t.schema.name,mapCenter:t.schema.params&&(t.schema.params.mapCenter?JSON.parse(t.schema.params.mapCenter):t.schema.params.control.mapCenter)},on:{change:function(e){return t.$emit("change",e)},map:t.handleMapComplete},model:{value:t.formModel[t.schema.name],callback:function(e){t.$set(t.formModel,t.schema.name,e)},expression:"formModel[schema.name]"}}):"map-polygon"===t.schema.control?e("MapPolygon",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,name:t.schema.name,mapCenter:t.schema.params&&(t.schema.params.mapCenter?JSON.parse(t.schema.params.mapCenter):t.schema.params.control.mapCenter)},on:{change:function(e){return t.$emit("change",e)}},model:{value:t.formModel[t.schema.name],callback:function(e){t.$set(t.formModel,t.schema.name,e)},expression:"formModel[schema.name]"}}):"transfer"===t.schema.control?e("Transfer",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,treeUrl:t.schema.params.control.url,titleName:t.schema.params.control.displayValue,keyName:t.schema.params.control.realValue},on:{submit:t.handlePickerComplete,selected:t.handlePickerSelected},model:{value:t.formModel[t.schema.name],callback:function(e){t.$set(t.formModel,t.schema.name,e)},expression:"formModel[schema.name]"}}):e("a-".concat(t.type),{ref:"aInput",tag:"component",staticClass:"form-item",attrs:{defaultValue:t.value,name:t.schema.name,placeholder:t.placeholder,disabled:t.readonly,allowClear:""},on:{blur:function(e){return t.$emit("change",e.target.value)},pressEnter:function(e){return t.$emit("change",e.target.value)}}}):e("a-input",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,"read-only":"",value:t.valueLabel,allowClear:""}},[e("a-icon",{attrs:{slot:"addonAfter",type:"search"},on:{click:function(e){return t.handlePickerShow(t.schema)}},slot:"addonAfter"})],1),t.pickerViewShow?e("Popup",{attrs:{visible:t.pickerViewShow,title:t.schema.alias,type:"modal",okButtonProps:{props:{icon:"check"}},cancelButtonProps:{props:{icon:"close"}}},on:{ok:t.handlePickerComplete,close:t.handlePickerClose,cancel:t.handlePickerClose}},[t.pickerViewShow?e("Picker",t._b({ref:"picker",attrs:{viewKey:t.schema.name,params:{filters:t.pickerFilter,route:t.pickerRoute},mode:"picker"},on:{selected:t.handlePickerSelected}},"Picker",t.pickerViewOptions,!1)):t._e()],1):t._e()],2):t._e()},pn=[];function vn(t){return vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vn(t)}function yn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */yn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==vn(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(vn(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function mn(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function gn(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){mn(i,n,o,a,s,"next",t)}function s(t){mn(i,n,o,a,s,"throw",t)}a(void 0)}))}}function bn(t){return kn(t)||xn(t)||_n(t)||wn()}function wn(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _n(t,e){if(t){if("string"===typeof t)return On(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?On(t,e):void 0}}function xn(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function kn(t){if(Array.isArray(t))return On(t)}function On(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function En(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Sn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?En(Object(r),!0).forEach((function(e){jn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):En(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jn(t,e,r){return e=Nn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Nn(t){var e=Ln(t,"string");return"symbol"==vn(e)?e:String(e)}function Ln(t,e){if("object"!=vn(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=vn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Pn={props:{schema:{type:Object},formModel:{type:Object},type:{type:String,enum:["cell","divider","computed","text","number","checkbox","radio","switch","textarea","rate","select","slider","upload","cascader","transfer","color","search","date","time","month","week","range","signature","view","tree","box","html","markdown","code","location","mentions","face","photos","files","conditions","flow","array","matrix","table","sheet","nested"],default:"input"},prop:{type:String},labelType:{type:[String,Boolean],default:!0},value:{type:[String,Boolean,Array,Number,Object,FileList,File]},params:{type:[Object],default:function(){return{}}},required:{type:Boolean,default:!1},isFilter:{type:Boolean,default:!1}},model:{prop:"value",event:"change"},inject:["view"],data:function(){return{pickerViewOptions:{},pickerViewShow:!1,filterRules:[],showRules:[],hideRules:[],requireRules:[],swiftRules:[],showModel:!0,requireModel:this.required,reUpload:!1,selections:[],valueLabel:null,valueReal:null,defaultFileList:[],defaultValue:this.formModel[this.schema.name]||"",defaultFileSize:null,asyncTreeData:[],loadTreeData:[],multiConditionCheck:{},multiConditionStatus:!0,changeMode:"",yearPickerPanelOpen:!1}},computed:{placeholder:function(){var t;return null!==(t=this.schema)&&void 0!==t&&null!==(t=t.params)&&void 0!==t&&null!==(t=t.control)&&void 0!==t&&t.placeholder?this.schema.params.control.placeholder:this.schema.alias||this.schema.name},label:function(){return!1===this.labelType?null:this.schema.alias||this.schema.name},help:function(){return""},extra:function(){return""},readonly:function(){return!!this.schema.params&&this.schema.params.readonly},validateStatus:function(){return null},options:function(){var t=this;if(this.schema.list){var e,r=this.swiftRules[0];return r&&this.formModel[r.key]&&(e=r.value.find((function(e){return e.value===t.formModel[r.key]}))),this.schema.list.split(",").filter((function(t){return!e||e.items.includes(t.split(":")[0])})).map((function(e){var r=e.split(":");return"radio-image"===t.schema.control?{label:r[1]?"".concat(r[1],":").concat(r[2]):r[0],value:r[0]}:{label:r[1]?r[1]:r[0],value:r[0]}}))}if("wordbook"===this.schema.dataType&&this.schema.typeObject){var n=this.schema.typeObject.model.attrs.find((function(t){return"title"===t.display})),o=this.schema.typeObject.model.idName;n=n.name||o;var i=this.filterRules.length?this.schema.typeObject.data.collection.filter((function(e){return t.filterRules.every((function(r){return we(Object.fromEntries([[r.key,e[r.value]]]),Sn(Sn({},t.formModel),{},{$parent:t.params.$parent}))}))})):this.schema.typeObject.data.collection;return i.map((function(t){return{label:t[n],value:t[o]}}))}return this.schema.params&&this.schema.params.control&&this.schema.params.control.options?this.formModel[this.schema.params.control.options].split(",").map((function(t){var e=t.split(":");return{label:"".concat(e[0]," (").concat(e[1],")"),value:e[1]}})):[]},treeData:function(){var t=this;if("wordbook"===this.schema.dataType&&this.schema.typeObject){var e=this.schema.typeObject.model.attrs.find((function(t){return"title"===t.display})),r=this.schema.typeObject.model.idName;e=e.name||r;var n=function n(o){return o.filter((function(e){return!t.filterRules.length||t.filterRules.every((function(r){return we(Object.fromEntries([[r.key,e[r.value]]]),Sn(Sn({},t.formModel),{},{$parent:t.params.$parent}))}))})).map((function(o){return{label:o[e],value:o[r],key:o[r],disabled:t.schema.params&&t.schema.params.control.leafCheck&&!!o._childList,children:o._childList?n(o._childList):null}}))},o=this.schema.typeObject.data,i=o.node,a=o.collection,s=this.async&&i?[{label:i[e],value:i[r],key:i[r],children:n(a)}]:n(a);return s}return[]},rules:function(){var t=["date","time","month","week","range","datetime"].includes(this.schema.control),e={required:!0,message:"".concat(this.schema.alias,"不能为空"),trigger:t?"change":"blur"};return!this.isFilter&&this.requireModel?[e]:null},configs:function(){return this.schema.configs&&this.schema.configs.length&&Object.fromEntries(this.schema.configs.map((function(t){return[t.key,t.value]})))},pickerFilter:function(){var t=this.schema.params,e=t&&t.control&&t.control.filters,r={};if(!e)return null;for(var n in e){var o=e[n].split(".").reduce((function(t,e){return t&&t[e]||void 0}),Sn(Sn(Sn({},this.view.params),this.params),this.formModel));r[n]=void 0===o?e[n]:o}return r},pickerRoute:function(){var t=this.schema.params,e=t&&t.control&&t.control.route?t.control.route:null;return e},async:function(){var t=this.schema,e=t.dataType,r=t.typeObject;return"wordbook"===e&&r&&r.model.sync||!1},treeUrl:function(){if(!this.schema.params)return null;var t=this.schema.params.treeUrl;return t||null},defaultValueUrl:function(){var t=this.schema.params,e=void 0===t?{}:t,r=e.control,n=void 0===r?{}:r,o=n.defaultValueUrl,i=void 0===o?"":o;return i}},created:function(){this.init()},methods:{init:function(){var t=this.schema,e=t.control,r=t.metaType;this.defaultValueUrl&&!this.defaultValue&&this.getDefaultValueUrl(),this.watch(),"view-select"===e&&this.initPicker(),"Boolean"!==r&&"switch"!==e||this.initSwitch(),["image","file","files"].includes(e)&&this.initFile(),this.configs&&this.configs.required&&(this.requireModel=!0),this.async&&this.treeData&&(this.asyncTreeData=this.treeData),this.treeUrl&&this.handleLoadTreeData()},initPicker:function(){var t=this.schema,e=t.params,r=void 0===e?{}:e,n=r.control,o=void 0===n?{}:n,i=o.displayValue,a=o.realValue,s=o.labelValue,c=t.name,l=s||i||c,u=a;this.valueLabel=this.formModel[l],this.valueReal=this.formModel[u]},initSwitch:function(){void 0===this.formModel[this.schema.name]&&this.$emit("change",!1)},initFile:function(){var t=this.view,e=this.schema.name,r=this.formModel,n=r[e],o="".concat(t.apiURL,"/").concat(r[t.idName],"?_file=").concat(e,"&_mode=inline");if(n)try{var i=JSON.parse(n);Array.isArray(i)&&(this.defaultFileList=i)}catch(a){this.defaultFileList=[{uid:0,url:o,name:n}]}},initDate:function(){},reset:function(){},watch:function(){var t=this,e=this.schema.params,r=void 0===e?{}:e,n=r.control,o=void 0===n?{}:n,i=o.events,a=o.changeMode;if(a&&(this.changeMode=a),i){var s=function(){var e=c.split(":"),r=[];Array.isArray(i[c])?r.push.apply(r,bn(i[c])):r.push(i[c]),r.forEach((function(r){var n=r.split(";");n.forEach((function(r){var n=r.split("|");"filter"===n[0]?t.filterRules.push({key:e[1],value:n[1]}):"show"===n[0]?t.showRules.push({key:e[1],value:n[1]}):"hide"===n[0]?t.hideRules.push({key:e[1],value:n[1]}):"require"===n[0]?t.requireRules.push({key:e[1],value:n[1]}):"swift"===n[0]&&t.swiftRules.push({key:e[1],value:n[1].split("/").map((function(t){var e=t.split(":");return{value:e[0],items:e[1].split(",")}}))})}))}))};for(var c in i)s()}this.showRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){t.show(e.key,e.value.split(","))})),t.show(e.key,e.value.split(","))})),this.hideRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){t.hide(e.key,e.value.split(","))})),t.hide(e.key,e.value.split(","))})),this.requireRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){t.require(e.key,e.value.split(","))})),t.require(e.key,e.value.split(","))})),this.filterRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){if(t.schema.required&&t.options.length){var e=t.options.find((function(e){return e.value===t.value}));t.$emit("change",e&&t.value||t.options[0].value)}else t.$emit("change","")}))})),this.swiftRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(e){t.schema.required&&t.options.length&&e?t.$emit("change",t.options[0].value):t.$emit("change","")}))}))},require:function(t,e){var r=this.params.$parent;e.includes(Sn(Sn({},r),this.formModel)[t])?this.requireModel=!0:"filter"!==this.type&&(this.requireModel=!1)},show:function(t,e){var r=this.params.$parent;e.includes(Sn(Sn({},r),this.formModel)[t])?(this.showModel=!0,this.$emit("change",this.defaultValue)):"filter"!==this.type&&(this.showModel=!1,this.$emit("change","")),this.handleMultiConditionCheck(t,this.showModel,"show")},hide:function(t,e){var r=this.params.$parent;e.includes(Sn(Sn({},r),this.formModel)[t])?(this.showModel=!1,this.$emit("change","")):"filter"!==this.type&&(this.showModel=!0,this.$emit("change",this.defaultValue)),this.handleMultiConditionCheck(t,this.showModel,"hide")},handleMultiConditionCheck:function(t,e,r){t in this.multiConditionCheck?this.multiConditionCheck[t]=e:this.$set(this.multiConditionCheck,t,e),"every"===this.changeMode?this.multiConditionStatus=Object.values(this.multiConditionCheck).every((function(t){return t})):"some"===this.changeMode&&(this.multiConditionStatus=Object.values(this.multiConditionCheck).some((function(t){return t})))},fill:function(){},filterOption:function(t,e){return e.componentOptions.children[0].text.toLowerCase().indexOf(t.toLowerCase())>=0},expression:function(){},handlePickerShow:function(){var t=this.schema.params,e=void 0===t?{}:t,r=e.control,n=void 0===r?{}:r,o=n.multiple;this.pickerViewOptions={schema:this.schema,filters:this.pickerFilter,pickerMode:o?"multiple":"single"},this.pickerViewShow=!0},handlePickerSelected:function(t){this.selections=t},handlePickerClose:function(){this.pickerViewShow=!1,this.selections=[]},handlePickerComplete:function(){var t=this.schema,e=t.control,r=t.params,n=void 0===r?{}:r,o=n.control,i=void 0===o?{}:o,a=i.displayValue,s=i.realValue,c=i.multiple,l=i.fills,u=this.$refs.picker&&this.$refs.picker.$refs.view,f=s||u.idName,h=a||u.titleName||u.idName;if(!this.selections.length)return"transfer"===e&&this.$emit("change",""),this.$message.error("请选择数据");if(l){var d=this.selections[0],p=Object.keys(l).map((function(t){return{name:t,value:d[l[t]]}}));this.$emit("fill",p)}this.$emit("change",c?this.selections.map((function(t){return t[f]})).join(","):this.selections[0][f]),this.valueLabel=c?this.selections.map((function(t){return t[h]})).join(","):this.selections[0][h],this.valueReal=c?this.selections.map((function(t){return t[f]})).join(","):this.selections[0][f],this.$refs.item&&this.$refs.item.clearValidate(),this.handlePickerClose()},handleMapComplete:function(t){var e=this.schema.params,r=void 0===e?{}:e,n=r.control,o=void 0===n?{}:n,i=o.fills;if(i){var a=Object.keys(i).map((function(e){return{name:e,value:t[i[e]]}}));this.$emit("fill",a)}},handleChange:function(){},handleReupload:function(){this.reUpload=!0},handleAsyncLoadData:function(t){var e=this;return gn(yn().mark((function r(){var n,o,i,a,s,c,l;return yn().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.schema.typeObject.model,o=n.attrs,i=n.idName,a=e.view.apiURL,s=o.find((function(t){return"title"===t.display})),s=s.name||i,r.next=6,e.$api.get("".concat(a,"/").concat(e.schema.name,"?_node=").concat(t.eventKey),{baseURL:""});case 6:return c=r.sent,l=c.data.collection,t.dataRef.children=l.map((function(t){return{label:t[s],value:t[i],key:t[i]}})),e.asyncTreeData=bn(e.asyncTreeData),r.abrupt("return",new Promise((function(t){return t()})));case 11:case"end":return r.stop()}}),r)})))()},handleLoadTreeData:function(){var t=this;return gn(yn().mark((function e(){var r,n,o,i,a,s,c;return yn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.treeUrl||!t.schema.typeObject){e.next=12;break}return e.next=3,t.$api.get("".concat(t.treeUrl,"?").concat(j.a.stringify(t.pickerFilter)));case 3:r=e.sent,n=r.data.collection,o=t.schema.typeObject.model.attrs.find((function(t){return"title"===t.display})),i=t.schema.typeObject.model.idName,o=o.name||i,a=function e(r){return r.map((function(r){return{label:r[o],value:r[i],key:r[i],disabled:t.schema.params&&t.schema.params.control.leafCheck&&!!r._childList,children:r._childList?e(r._childList):null}}))},s=t.schema.typeObject.data.node,c=t.async&&s?[{label:s[o],value:s[i],key:s[i],children:a(n)}]:a(n),t.loadTreeData=bn(c);case 12:case"end":return e.stop()}}),e)})))()},handleFilesChange:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=this.$el.getElementsByTagName("input")[0],n=r.files[0].size,o=e?this.unitConversion(e):0;e&&n>o?(this.$message.error("上传文件大小不能超过".concat(e)),this.reUpload=!1):this.$emit("change",r.files[0])},transformList:function(){},clearValidate:function(){},beforeUpload:function(t){return this.$emit("change",t),this.$refs.item.clearValidate(),!1},handleRemove:function(t){this.defaultFileList.splice(t,1),this.$emit("change",this.defaultFileList)},beforeFilesUpload:function(t){var e=t.size,r=t.name,n=this.defaultFileSize?this.unitConversion(this.defaultFileSize):0;return this.defaultFileSize&&e>n?this.$message.error("上传 ".concat(r," 文件大小不能超过").concat(this.defaultFileSize),5):this.defaultFileList.push(t),this.$emit("change",this.defaultFileList),this.$refs.item.clearValidate(),!1},setFileSize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.defaultFileSize=t},unitConversion:function(t){var e=0;return e=-1!==t.indexOf("KB")?1024*Number(t.split("KB")[0]):-1!==t.indexOf("MB")?1024*Number(t.split("MB")[0])*1024:Number(t),e},handleTreeSelect:function(t){this.schema.required&&!t.length||(this.defaultValue=t[0],this.$emit("change",t[0]))},getDefaultValueUrl:function(){var t=this;return gn(yn().mark((function e(){var r,n,o,i,a,s,c;return yn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$api.get("/dataset/".concat(t.defaultValueUrl,"?").concat(j.a.stringify(t.$store.state.user)));case 3:r=e.sent,n=r.data.data,o=void 0===n?[]:n,o.length&&t.$emit("change",o[0].start_time),e.next=15;break;case 9:e.prev=9,e.t0=e["catch"](0),e.t0.response||t.$message.error("网络请求错误,请检查您的网络连接。"),i=e.t0.response,a=i.status,s=i.data,c=s&&s.content||"系统错误请与管理员联系。",t.$message.error("".concat(a,", ").concat(c));case 15:case"end":return e.stop()}}),e,null,[[0,9]])})))()},disableDateFn:function(t){var e=this.schema.params&&this.schema.params.control?this.schema.params.control:null;if(e&&e.disableDateValidate){var r=e.disableDateValidate,n=new Function("current","moment","return ".concat(r));return n(t,this.moment)}return null}}},Cn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-quill-editor"},[e("quill-editor",{ref:"quillEditor",attrs:{options:t.editorOption},on:{change:function(e){return t.onEditorChange(e)},ready:function(e){return t.onEditorReady(e)}}}),e("input",{staticStyle:{display:"none"},attrs:{type:"file",multiple:""},on:{change:t.handleUploadChange}})],1)},An=[],Tn=(r("690b"),r("521b"),r("55ab"),r("37eb"));function Rn(t){return Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rn(t)}function Dn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Dn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Rn(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Rn(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function In(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Mn(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){In(i,n,o,a,s,"next",t)}function s(t){In(i,n,o,a,s,"throw",t)}a(void 0)}))}}function qn(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Bn(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Bn(t,e){if(t){if("string"===typeof t)return Fn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fn(t,e):void 0}}function Fn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var $n={props:{value:{type:String,default:""},placeholder:{type:String,default:"请编辑内容"},disabled:{type:Boolean},params:{type:Object}},components:{quillEditor:Tn["quillEditor"]},computed:{editorParams:function(){return this.params&&this.params.control&&this.params.control.toolbar?JSON.parse(this.params.control.toolbar):null}},data:function(){return{content:this.value,editorOption:{placeholder:this.disabled?"当前为不可编辑状态":this.placeholder,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["image","video"]]}},baseUrl:window.location.origin,quill:null,pos:0}},created:function(){this.editorParams&&(this.editorOption.modules.toolbar=this.editorParams)},mounted:function(){this.$refs.quillEditor.quill.getModule("toolbar").addHandler("image",this.handleImage),this.quill=this.$refs.quillEditor.quill,this.disabled&&this.$refs.quillEditor.quill.enable(!1)},methods:{onEditorChange:function(t){t.editor;var e=t.html;t.text;this.$emit("change",e)},onEditorReady:function(t){t.container.querySelector(".ql-blank").innerHTML=this.content},handleImage:function(){var t=document.querySelector('.form-quill-editor input[type="file"]');t&&t.click()},handleUploadChange:function(t){var e=new FormData,r=t.target.files;if(r&&r.length){var n,o=qn(r);try{for(o.s();!(n=o.n()).done;){var i=n.value;e.append(i.lastModified+i.size,i)}}catch(a){o.e(a)}finally{o.f()}}this.getfileurl(e),t.target.value=""},getfileurl:function(t){var e=this;return Mn(Dn().mark((function r(){var n,o,i;return Dn().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,e.$api.post("".concat(e.baseUrl,"/file/getfileurl"),t);case 2:n=r.sent,o=n.data,i=n.status,200===i&&o.forEach((function(t){e.insertEmbedImage("".concat(e.baseUrl).concat(t))}));case 6:case"end":return r.stop()}}),r)})))()},insertEmbedImage:function(t){var e;this.pos=(null===(e=this.quill.getSelection())||void 0===e?void 0:e.index)||0,this.quill.insertEmbed(this.pos,"image",t),this.quill.setSelection(this.pos+1)}}},Vn=$n,Hn=(r("80ad"),qr(Vn,Cn,An,!1,null,null,null)),Un=Hn.exports,Gn=function(){var t=this,e=t._self._c;return e("a-input-group",{attrs:{compact:""}},[e("a-input",{staticStyle:{width:"60%"},attrs:{placeholder:t.placeholder,allowClear:""},on:{change:function(e){return t.$emit("change",e.target.value)}}}),e("a-button",{staticStyle:{width:"40%"},attrs:{disabled:t.disabled},on:{click:t.getVerification}},[t._v(" "+t._s(t.text)+" ")])],1)},zn=[];function Kn(t){return Kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kn(t)}function Yn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Yn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Kn(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Kn(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Wn(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Zn(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Wn(i,n,o,a,s,"next",t)}function s(t){Wn(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Jn={mixins:[hn],props:{phone:{type:String,default:""},url:{type:String},time:{type:String,default:"60"},placeholder:{type:String}},data:function(){return{disabled:!1,timer:this.time}},computed:{text:function(){return this.disabled?"".concat(this.timer,"秒后重新获取"):"获取短信验证码"}},methods:{getVerification:function(){var t=this;return Zn(Yn().mark((function e(){var r,n,o,i,a;return Yn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!==t.phone){e.next=3;break}return t.$message.error("手机号码不能为空"),e.abrupt("return");case 3:return t.disabled=!0,r=setInterval((function(){t.timer--,t.timer<=0&&t.reset(r)}),1e3),e.prev=5,e.next=8,t.$api.post(t.url,{phone:t.phone});case 8:n=e.sent,o=n.data,i=n.status,200===i&&t.$message.success(o.content),e.next=22;break;case 14:if(e.prev=14,e.t0=e["catch"](5),e.t0.response){e.next=19;break}return t.$message.error("网络请求错误,请检查您的网络连接。"),e.abrupt("return");case 19:a=e.t0.response.data,t.$message.error(a.content),t.reset(r);case 22:case"end":return e.stop()}}),e,null,[[5,14]])})))()},reset:function(t){this.disabled=!1,this.timer=this.time,clearInterval(t)}}},Xn=Jn,Qn=qr(Xn,Gn,zn,!1,null,null,null),to=Qn.exports;function eo(t){return eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eo(t)}function ro(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function no(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ro(Object(r),!0).forEach((function(e){oo(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ro(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function oo(t,e,r){return e=io(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function io(t){var e=ao(t,"string");return"symbol"==eo(e)?e:String(e)}function ao(t,e){if("object"!=eo(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=eo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var so=function(){var t=this,e=t._self._c;return e("div",[e("a-input",{attrs:{placeholder:t.placeholder,allowClear:""},on:{change:t.handleChange},model:{value:t.markerVal,callback:function(e){t.markerVal=e},expression:"markerVal"}},[e("a-icon",{attrs:{slot:"addonAfter",type:"environment"},on:{click:t.showModal},slot:"addonAfter"})],1),e("a-modal",t._b({attrs:{title:t.placeholder},on:{ok:t.submit,cancel:t.cancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},"a-modal",no({},t.fullscreenOptions),!1),[e("el-amap-search-box",{staticClass:"amap-search-box",attrs:{"search-option":t.searchOption,"on-search-result":t.handleSearch}}),e("el-amap",{staticClass:"amap-box",attrs:{vid:"amap-vue-marker".concat(t._uid),center:t.center,plugin:t.plugin,zoom:t.zoom,"amap-manager":t.amapManager,events:t.events}},t._l(t.markers,(function(t){return e("el-amap-marker",{key:t.id,attrs:{position:t.path,title:t.title}})})),1)],1)],1)},co=[],lo=r("5aeb"),uo={model:{prop:"value",event:"change"},props:{placeholder:{type:String,default:""},name:{type:String,default:""},value:{type:String,default:""},mapCenter:{type:Array,default:function(){return[116.405285,39.904989]}},mapZoom:{type:Number,default:18}},data:function(){var t=this;return{visible:!1,markerVal:this.value,fullscreenOptions:{width:"100%",bodyStyle:{height:"".concat(document.body.clientHeight-108,"px"),overflowY:"auto",padding:"0"},dialogStyle:{padding:0},centered:!0},mapInstance:null,center:this.mapCenter,zoom:this.mapZoom,amapManager:null,markers:[],mouseTool:null,geocoder:null,geolocation:null,plugin:[{pName:"Scale"},{pName:"ToolBar",position:"RB"}],events:{init:function(e){t.mapInstance=e,t.initMap()},zoomend:function(){t.zoom=t.mapInstance.getZoom()}},searchOption:{citylimit:!1,autoFitView:!0},position:{lng:0,lat:0,name:""}}},mounted:function(){this.amapManager=new lo["AMapManager"]},methods:{handleChange:function(t){var e=t.target.value;this.markerVal=e,this.markerVal||this.initDefault(),this.$emit("change",this.markerVal)},initMap:function(){var t=this;lo["lazyAMapApiLoaderInstance"]&&lo["lazyAMapApiLoaderInstance"].load().then((function(){t.markerVal&&t.initMarkers(),AMap.plugin(["AMap.MouseTool"],(function(){t.mouseTool=new AMap.MouseTool(t.mapInstance),t.drawMarker()})),t.geocoder=new AMap.Geocoder}))},drawMarker:function(){var t=this;this.mouseTool.marker({visible:!1}),this.mouseTool.on("draw",(function(e){var r=e.obj.w.position,n=r.lng,o=r.lat;t.position.lat=o,t.position.lng=n,t.getAddress(n,o),t.markers.length&&(t.markers=[]),t.markers.push({id:t._uid,path:[n,o],title:"[".concat(n,",").concat(o,"]")})}))},initMarkers:function(){var t=this.markerVal.split("/");this.zoom=t.length&&t[1]?t[1]:18;var e=t.length&&t[0]&&t[0].split(",");e.length&&(this.center=[Number(e[0]),Number(e[1])],this.markers=[{id:this._uid,path:[Number(e[0]),Number(e[1])],title:"[".concat(Number(e[0]),",").concat(Number(e[1]),"]")}])},showModal:function(){this.visible=!0,this.markerVal&&this.initMarkers()},submit:function(t){if(this.markers.length){var e=this.markers[0]&&this.markers[0].path[0],r=this.markers[0]&&this.markers[0].path[1],n="".concat(e,", ").concat(r,"/").concat(this.zoom);this.markerVal=n,this.$emit("change",this.markerVal);var o=Object.assign({zoom:this.zoom},this.position);this.$emit("map",o)}else this.initDefault();this.visible=!1},cancel:function(){this.markers.length&&!this.markerVal&&this.initDefault(),this.visible=!1},initDefault:function(){this.markers=[],this.center=this.mapCenter,this.zoom=this.mapZoom},handleSearch:function(t){if(this.markers=[],t&&t.length){var e=t[0],r=e.lat,n=e.lng;this.position.lat=r,this.position.lng=n,this.getAddress(n,r),this.center=[n,r],this.markers.push({id:this._uid,path:[n,r],title:"[".concat(n,",").concat(r,"]")})}},getAddress:function(t,e){var r=this;this.geocoder.getAddress([t,e],(function(t,e){"complete"===t&&e.regeocode?r.position.name=e.regeocode.formattedAddress:r.$message.error("根据经纬度查询地址失败")}))}}},fo=uo,ho=(r("ff21"),qr(fo,so,co,!1,null,"09b502b8",null)),po=ho.exports;function vo(t){return vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vo(t)}function yo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function mo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yo(Object(r),!0).forEach((function(e){go(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yo(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function go(t,e,r){return e=bo(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bo(t){var e=wo(t,"string");return"symbol"==vo(e)?e:String(e)}function wo(t,e){if("object"!=vo(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=vo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var _o=function(){var t=this,e=t._self._c;return e("div",[e("a-input",{attrs:{placeholder:t.placeholder,allowClear:""},on:{change:t.handleChange},model:{value:t.markers,callback:function(e){t.markers=e},expression:"markers"}},[e("a-icon",{attrs:{slot:"addonAfter",type:"environment"},on:{click:t.showModal},slot:"addonAfter"})],1),e("a-modal",t._b({attrs:{title:t.placeholder},on:{ok:t.submit,cancel:t.cancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},"a-modal",mo({},t.fullscreenOptions),!1),[e("el-amap-search-box",{staticClass:"amap-search-box",attrs:{"search-option":t.searchOption,"on-search-result":t.handleSearch}}),e("el-amap",{staticClass:"amap-box",attrs:{vid:"amap-vue-polygon".concat(t._uid),center:t.center,plugin:t.plugin,zoom:t.zoom,"amap-manager":t.amapManager,events:t.events}})],1)],1)},xo=[];function ko(t){return ko="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ko(t)}function Oo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Eo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Oo(Object(r),!0).forEach((function(e){So(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Oo(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function So(t,e,r){return e=jo(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jo(t){var e=No(t,"string");return"symbol"==ko(e)?e:String(e)}function No(t,e){if("object"!=ko(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ko(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Lo={model:{prop:"value",event:"change"},props:{placeholder:{type:String,default:""},name:{type:String,default:""},value:{type:String,default:""},mapCenter:{type:Array,default:function(){return[116.405285,39.904989]}},mapZoom:{type:Number,default:18}},data:function(){var t=this;return{visible:!1,fullscreenOptions:{width:"100%",bodyStyle:{height:"".concat(document.body.clientHeight-108,"px"),overflowY:"auto",padding:"0"},dialogStyle:{padding:0},centered:!0},mapInstance:null,center:this.mapCenter,zoom:this.mapZoom,markers:this.value,polygonInstance:null,polygons:null,amapManager:null,mouseTool:null,polygonOption:{fillColor:"#2B6CDD",fillOpacity:.5,strokeColor:"#2B6CDD",strokeWeight:1},plugin:[{pName:"Scale"},{pName:"ToolBar",position:"RB"}],events:{init:function(e){t.mapInstance=e,t.initMap()},zoomend:function(){t.zoom=t.mapInstance.getZoom()}},searchOption:{citylimit:!1,autoFitView:!0}}},mounted:function(){this.amapManager=new lo["AMapManager"]},methods:{initMap:function(){var t=this;lo["lazyAMapApiLoaderInstance"].load().then((function(){AMap.plugin(["AMap.MouseTool"],(function(){t.mouseTool=new AMap.MouseTool(t.mapInstance),t.drawPolygon()}))}))},handleChange:function(t){var e=t.target.value;this.markers=e,this.markers||this.initDefault(),this.$emit("change",this.markers)},drawPolygon:function(){var t=this;this.mouseTool.polygon(),this.mouseTool.on("draw",(function(e){var r=e.obj.w.path,n=r.map((function(t){return[t.lng,t.lat]}));t.initPolygon(n),t.mouseTool.close(!0)}))},initPolygon:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];setTimeout((function(){t.mapInstance&&(t.polygonInstance&&t.mapInstance.remove(t.polygonInstance),t.polygonEditor&&t.polygonEditor.close(),t.polygonInstance=new AMap.Polygon(Eo({map:t.mapInstance,path:e},t.polygonOption)),t.polygons=e,t.polygonEditor=new AMap.PolyEditor(t.mapInstance,t.polygonInstance),t.polygonEditor.open(),t.polygonEditor.on("adjust",(function(e){var r=e.target.w.path;t.polygons=r})),t.polygonEditor.on("end",(function(e){e.type,e.target;t.drawPolygon()})))}),500)},showModal:function(){if(this.visible=!0,this.markers){var t=this.markers.split("/"),e=t.length&&t[0];this.zoom=t.length&&t[1]?t[1]:18;var r=JSON.parse(e);this.center=r[0]?[Number(r[0][0]),Number(r[0][1])]:[98.5868,24.434008],this.initPolygon(r)}},submit:function(t){if(this.polygons){var e=this.polygons.map((function(t){return[t.lng,t.lat]}));this.markers=JSON.stringify(e)+"/".concat(this.zoom),this.polygonEditor&&this.polygonEditor.close()}else this.initDefault();this.$emit("change",this.markers),this.visible=!1},cancel:function(){this.markers||this.initDefault(),this.polygonEditor&&this.polygonEditor.close(),this.visible=!1},initDefault:function(){this.polygonInstance&&this.mapInstance&&this.mapInstance.remove(this.polygonInstance),this.polygonEditor&&this.polygonEditor.close(),this.polygons=null,this.center=this.mapCenter,this.zoom=this.mapZoom},handleSearch:function(t){if(t&&t.length){var e=t[0],r=e.lat,n=e.lng;this.center=[n,r]}}}},Po=Lo,Co=(r("8c96"),qr(Po,_o,xo,!1,null,"03415b3c",null)),Ao=Co.exports;function To(t){return Mo(t)||Io(t)||Do(t)||Ro()}function Ro(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Do(t,e){if(t){if("string"===typeof t)return qo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qo(t,e):void 0}}function Io(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Mo(t){if(Array.isArray(t))return qo(t)}function qo(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Bo=function(){var t=this,e=t._self._c;return e("div",[e("a-input",{attrs:{placeholder:t.placeholder,"read-only":""},model:{value:t.checkedValues,callback:function(e){t.checkedValues=e},expression:"checkedValues"}},[e("a-icon",{attrs:{slot:"addonAfter",type:"search"},on:{click:function(e){t.visible=!0}},slot:"addonAfter"})],1),e("a-modal",{attrs:{title:t.placeholder},on:{ok:t.handleSubmit,cancel:t.handleCancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[e("a-transfer",{staticClass:"tree-transfer",attrs:{"data-source":t.dataSource,"target-keys":t.checkedKeys,render:function(t){return t.title},"show-select-all":!1,"list-style":{maxHeight:"450px",overflowY:"auto"},"show-search":""},on:{change:t.onChange,search:t.handleSearch},scopedSlots:t._u([{key:"children",fn:function(r){var n=r.props,o=n.direction,i=n.selectedKeys,a=r.on.itemSelect;return["left"===o?e("a-spin",{attrs:{spinning:t.leftLoding}},[e("a-tree",{attrs:{blockNode:"",checkable:"",checkStrictly:"",checkedKeys:[].concat(To(i),To(t.checkedKeys)),treeData:t.filterTreeNodes},on:{check:function(e,r){t.onChecked(e,r,[].concat(To(i),To(t.checkedKeys)),a)},select:function(e,r){t.onChecked(e,r,[].concat(To(i),To(t.checkedKeys)),a)}}})],1):t._e()]}}])})],1)],1)},Fo=[];function $o(t){return $o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$o(t)}function Vo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Vo=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==$o(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError($o(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Ho(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Uo(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ho(i,n,o,a,s,"next",t)}function s(t){Ho(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Go=r("9f89"),zo=/\${([\s\S]+?)}/g,Ko={model:{prop:"value",event:"change"},props:{placeholder:{type:String,default:"请选择数据"},treeUrl:{type:String,default:""},value:{type:String,default:""},titleName:{type:String,default:""},keyName:{type:String,default:""},selected:{type:Object,default:function(){return{}}}},data:function(){return{visible:!1,dataSource:[],checkedKeys:[],treeData:[],inputValue:"",leftLoding:!1,checkedValues:""}},computed:{treeNodes:function(){var t=this.treeData,e=this.titleName,r=this.keyName,n=this.checkedKeys,o=this.selected,i=function t(i){return i.map((function(i){var a;return i._childList&&(a=t(i._childList)),{title:i[e],key:i[r],children:a,disabled:n.includes(i[r])||o&&!we(o,i)}}))};return i(t)},filterTreeNodes:function(){var t=this;return this.inputValue?this.treeNodes.filter((function(e){return-1!==e.title.indexOf(t.inputValue)})):this.treeNodes},flattenTreeData:function(){var t=this,e=[];return this.treeData.forEach((function(r){e.push(r),r.children&&t.flatten(r.children)})),e}},created:function(){this.load()},methods:{load:function(){var t=this;return Uo(Vo().mark((function e(){var r,n;return Vo().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.treeUrl,n=null,!r){e.next=6;break}return e.next=5,t.$api.get(Go(r,{reInterpolate:zo})());case 5:n=e.sent;case 6:n&&n.data&&(t.treeData=n.data.collection,t.treeNodes&&t.flatten(JSON.parse(JSON.stringify(t.treeNodes)))),t.value&&(t.checkedKeys=t.value.split(","),t.setCheckValues());case 8:case"end":return e.stop()}}),e)})))()},getSelections:function(){var t=this;return this.flattenTreeData.filter((function(e){return t.checkedKeys.includes(e[t.keyName])}))},setCheckValues:function(){var t=this;this.checkedValues=this.treeNodes&&this.treeNodes.filter((function(e){return t.checkedKeys.includes(e.key)})).map((function(t){return t.title})).join(",")},onChange:function(t){this.checkedKeys=t,this.$emit("selected",this.getSelections())},isChecked:function(t,e){return-1!==t.indexOf(e)},onChecked:function(t,e,r,n){var o=e.node.eventKey;n(o,!this.isChecked(r,o))},flatten:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((function(e){t.dataSource.push({title:e.title,key:e.key}),e.children&&t.flatten(e.children)}))},handleSubmit:function(){this.setCheckValues(),this.$emit("submit",this.getSelections()),this.visible=!1},handleCancel:function(){this.$emit("selected",this.getSelections()),this.value?(this.checkedKeys=this.value.split(","),this.setCheckValues()):this.checkedKeys=[],this.visible=!1},handleSearch:function(t,e){var r=this,n=null;"left"===t&&(this.leftLoding=!0,n=setTimeout((function(){n&&clearTimeout(n),r.inputValue=e,r.leftLoding=!1}),1e3))}}},Yo=Ko,Wo=(r("9fc0"),qr(Yo,Bo,Fo,!1,null,"d5aa2650",null)),Zo=Wo.exports,Jo=function(){var t=this,e=t._self._c;return e("layout-view-blank",{tag:"component"},[e("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:t.loading,delay:100}},["multiple"===t.pickerMode?t._l(t.selections,(function(r){return e("a-tag",{key:r[t.idName],attrs:{closable:""},on:{close:function(e){return t.handleRemove(r)}}},[t._v(" "+t._s(r[t.titleName||t.idName])+" ")])})):t._e(),e("keep-alive",[t.loading?t._e():e(t.createView,t._g(t._b({ref:"view",tag:"component",attrs:{pageKey:t.pageKey,viewKey:t.viewKey,pickerMode:t.pickerMode,mode:t.mode,layout:"layout-view-model-list-embed"},on:{selected:t.handleSelected}},"component",t.$attrs,!1),t.$listeners))],1)],2)],1)},Xo=[],Qo={props:{schema:{type:Object},pickerMode:{type:String,enum:["single","multiple"],default:"single"},mode:{type:String,default:"picker"}}};function ti(t){return ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ti(t)}function ei(t){return ii(t)||oi(t)||ni(t)||ri()}function ri(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ni(t,e){if(t){if("string"===typeof t)return ai(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ai(t,e):void 0}}function oi(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ii(t){if(Array.isArray(t))return ai(t)}function ai(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function si(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */si=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==ti(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(ti(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function ci(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function li(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ci(i,n,o,a,s,"next",t)}function s(t){ci(i,n,o,a,s,"throw",t)}a(void 0)}))}}function ui(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fi(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ui(Object(r),!0).forEach((function(e){hi(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ui(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hi(t,e,r){return e=di(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function di(t){var e=pi(t,"string");return"symbol"==ti(e)?e:String(e)}function pi(t,e){if("object"!=ti(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ti(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var vi={mixins:[Qo],components:fi({},sb),data:function(){return{pageKey:null,viewKey:null,storeNamespace:null,loading:!0,selections:[],idName:"",titleName:""}},created:function(){this.initView()},computed:{createView:function(){return{extends:Ut(sb.ModelList)("".concat(this.storeNamespace))}}},methods:{create:Ut,initView:function(){var t=this;return li(si().mark((function e(){var r,n,o;return si().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.schema.configs.find((function(t){return"picker.view"===t.key})),n=r?r.value:"",o="p-".concat(n),t.$store.hasModule(o)){e.next=7;break}return J(t.$store,o,!0),e.next=7,t.$store.dispatch("".concat(o,"/loadSchema"));case 7:t.pageKey=n,t.viewKey=n,t.storeNamespace="v-".concat(n),t.loading=!1;case 11:case"end":return e.stop()}}),e)})))()},handleSelected:function(t){this.idName=this.$refs.view.idName,this.titleName=this.$refs.view.titleName,this.selections="multiple"===this.pickerMode&&"picker"!==this.$refs.view.mode?Array.from(new Set([].concat(ei(this.selections),ei(t)).map((function(t){return JSON.stringify(t)})))).map((function(t){return JSON.parse(t)})):t,this.$emit("selected",this.selections)},handleRemove:function(t){var e=this.idName,r=this.selections,n=r.findIndex((function(r){return r[e]===t[e]}));-1!==n&&r.splice(n,1),this.$emit("selected",r)}}},yi=vi,mi=qr(yi,Jo,Xo,!1,null,null,null),gi=mi.exports;function bi(t){return bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bi(t)}function wi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wi(Object(r),!0).forEach((function(e){xi(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wi(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xi(t,e,r){return e=ki(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ki(t){var e=Oi(t,"string");return"symbol"==bi(e)?e:String(e)}function Oi(t,e){if("object"!=bi(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=bi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ei=function(){var t=this,e=t._self._c;return e(t.options.component,t._g(t._b({tag:"component",scopedSlots:t._u([{key:"title",fn:function(){return[t._t("title",(function(){return[t._v(t._s(t.title))]}))]},proxy:!0},t.$slots.footer?{key:"footer",fn:function(){return[t._t("footer")]},proxy:!0}:null],null,!0)},"component",_i(_i({},t.options),t.$attrs),!1),t.$listeners),[t._t("default")],2)},Si=[],ji={props:{type:{type:String,enum:["modal","drawer","fullscreen"],default:"modal"},title:{type:String},committing:{type:Boolean,default:!1},width:{type:String},footer:{type:String}},data:function(){return{modalOptions:{component:"a-modal",width:"750px",bodyStyle:{maxHeight:this.width||"500px",overflowY:"auto"},centered:!0,footer:this.footer,maskClosable:!1},fullscreenOptions:{component:"a-modal",width:"100%",bodyStyle:{height:this.footer&&"hide"===this.footer?"".concat(document.body.clientHeight-53,"px"):"".concat(document.body.clientHeight-108,"px"),overflowY:"auto"},dialogStyle:{padding:0},centered:!0,footer:this.footer},drawerOptions:{component:"a-drawer",width:this.width||"750px",destroyOnClose:!0,bodyStyle:{padding:0},footer:this.footer},viewOptions:{component:"div"}}},computed:{options:function(){return this["".concat(this.type,"Options")]}}},Ni=ji,Li=qr(Ni,Ei,Si,!1,null,null,null),Pi=Li.exports,Ci={mixins:[Pn],components:{Editor:Un,Picker:gi,Popup:Pi,VerificationCode:to,MapMarker:po,MapPolygon:Ao,Transfer:Zo},mounted:function(){["select","chosen"].includes(this.schema.control)&&this.options.length&&([!0,"true",1,"1","Yes","Y","y","on"].includes(this.configs["select-first-option"])||this.schema.required&&![!1,"false",0,"0","No","N","n","off"].includes(this.configs["select-first-option"]))&&(this.value||this.$emit("change",this.options[0].value))},watch:{value:function(t,e){var r=this.$refs.aInput;r&&(r.setValue(t),this.$refs.item.clearValidate())}}},Ai=Ci,Ti=(r("143b"),qr(Ai,dn,pn,!1,null,null,null)),Ri=Ti.exports,Di={mixins:[hn],components:{Item:Ri},props:{columns:{type:Array},layout:{type:String,default:"inline"}},computed:{attrs:function(){return this.view.configs["filters.collapse"]?this.columns.slice(0,this.view.configs["filters.collapse"]):this.columns}},data:function(){return{collapse:!1}}},Ii=Di,Mi=qr(Ii,Yr,Wr,!1,null,null,null),qi=Mi.exports,Bi=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{display:"inline-block"}},t._l(t.groups,(function(r,n){return e("a-button-group",{key:"group-".concat(n),staticStyle:{"margin-right":"16px","flex-wrap":"wrap"}},t._l(r.actions,(function(r){return e("a-button",{key:r.id,staticStyle:{"margin-top":"2px","margin-bottom":"2px"},attrs:{type:r.primary?"primary":"default",icon:r.icon,disabled:r.disabled},on:{click:function(e){return t.handleClick(r,e)}}},[t._v(" "+t._s(r.name)+" "),"file"===r.action?e("input",{staticStyle:{display:"none"},attrs:{type:"file",name:"file"},on:{change:function(e){t.onFileChange(r,e.target.files),e.target.value=""}}}):t._e()])})),1)})),1)},Fi=[];function $i(t){return $i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$i(t)}function Vi(t,e,r){return e=Hi(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hi(t){var e=Ui(t,"string");return"symbol"==$i(e)?e:String(e)}function Ui(t,e){if("object"!=$i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=$i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Gi={props:{actions:{type:Array,default:function(){return[]}},type:{type:String,default:"button"}},computed:{groups:function(){var t=[];return this.actions.forEach((function(e,r){var n=t.length-1;e.group||!r?t.push({actions:[e]}):t[n].actions.push(e)})),t}},methods:{handleClick:function(t,e){var r=e.target.getElementsByTagName("input");"file"===t.action?(e.stopPropagation(),r[0]&&void 0===r[0].click()||e.path&&e.path[1].getElementsByTagName("input")[0].click()):this.$emit("action",t)},onFileChange:function(t,e){var r=t.list?t.list:"file";this.$emit("action",t,null,Vi({},r,e))}}},zi=Gi,Ki=qr(zi,Bi,Fi,!1,null,null,null),Yi=Ki.exports,Wi=function(){var t=this,e=t._self._c;return e("div",[t.$attrs.params.actionViewTip?e("a-alert",{staticStyle:{margin:"0 -24px 8px"},attrs:{message:t.$attrs.params.actionViewTip,"show-icon":"",banner:""}}):t._e(),e(t.createView,t._g(t._b({tag:"component",attrs:{pageKey:t.page.pageKey,viewKey:t.action.key||t.action.method.toLowerCase(),delay:!0,action:t.action}},"component",t.$attrs,!1),t.$listeners))],1)},Zi=[],Ji={inject:["page","view"],props:{action:{type:Object},modelViewType:{type:String}},computed:{createView:function(){return{extends:Ut(sb["Model".concat(this.modelViewType)])("".concat(this.view.storeNamespace))}}}},Xi=Ji,Qi=qr(Xi,Wi,Zi,!1,null,null,null),ta=Qi.exports,ea=function(){var t=this,e=t._self._c;return e("a-pagination",t._g(t._b({attrs:{"show-quick-jumper":""}},"a-pagination",t.$attrs,!1),t.$listeners))},ra=[],na={},oa=qr(na,ea,ra,!1,null,null,null),ia=oa.exports,aa=function(){var t=this,e=t._self._c;return e("span",[t.editable&&["write","updateonly"].includes(t.schema.access)?e("Item",{attrs:{formModel:t.editRow,prop:t.schema.name,schema:t.schema,params:{},labelType:!1},on:{change:function(e){return t.$emit("change",e)},fill:function(e){return t.$emit("fill",e)}},model:{value:t.editValue,callback:function(e){t.editValue=e},expression:"editValue"}}):t.component?e(t.component,t._b({tag:"component",attrs:{text:t.text}},"component",t.$props,!1)):t.script?e("span",{domProps:{innerHTML:t._s(t.text)}}):"title"===t.schema.display?e("a",{on:{click:function(e){return t.$emit("profile")}}},[t._v(" "+t._s(t.text)+" ")]):e("span",[t._v(t._s(t.text))])],1)},sa=[];function ca(t){return ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ca(t)}function la(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ua(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?la(Object(r),!0).forEach((function(e){fa(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):la(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function fa(t,e,r){return e=ha(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ha(t){var e=da(t,"string");return"symbol"==ca(e)?e:String(e)}function da(t,e){if("object"!=ca(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ca(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var pa={mixins:[Tr],components:{Item:Ri},props:["editable","value","row","schema","mode","viewURL","idName","vid","rowIndex"],data:function(){return{component:null,script:null,editValue:this.value}},computed:{text:function(){return this.formatter(this.row,this.value,this.schema)},editRow:function(){return ua({},this.row)}},created:function(){var t=this;if(this.schema&&this.schema.format){var e=this.schema.format.slice(0,8);"function"===e?this.script=this.schema.format:this.component={props:["editable","value","row","schema","mode","viewURL","idName","text","vid","rowIndex"],data:function(){return{model:{}}},methods:{profile:function(){t.$emit("profile")}},template:"title"===this.schema.display?'<a @click="profile">'.concat(this.schema.format,"</a> "):this.schema.format}}},watch:{value:function(t,e){t!==e&&(this.editValue=t)},editable:function(t){t&&this.editValue!==this.editRow[this.schema.name]&&(this.editValue=this.editRow[this.schema.name])}}},va=pa,ya=qr(va,aa,sa,!1,null,null,null),ma=ya.exports;function ga(t){return ga="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ga(t)}function ba(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function wa(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ba(Object(r),!0).forEach((function(e){_a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ba(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _a(t,e,r){return e=xa(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xa(t){var e=ka(t,"string");return"symbol"==ga(e)?e:String(e)}function ka(t,e){if("object"!=ga(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ga(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Oa={mixins:[Kt,Yt,ge,Lr,Tr,ue,fe],components:wa(wa(wa({},Kr),sb),{},{FilterForm:qi,ActionGroup:Yi,ActionView:ta,PaginationSize:ia,Popup:Pi,Cell:ma})},Ea=Oa,Sa=(r("41ea"),qr(Ea,Gt,zt,!1,null,null,null)),ja=Sa.exports,Na=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.actioning}},[e(t.layout,{tag:"component",scopedSlots:t._u([{key:"actions-none",fn:function(){return[t.routeId?e("ActionGroup",{attrs:{actions:t.backActions},on:{action:t.handleAction}}):t._e(),t.navActions.length?e("ActionGroup",{attrs:{actions:t.navActions},on:{action:t.handleAction}}):t._e()]},proxy:!0},t.actions.length?{key:"actions-single",fn:function(){return[e("ActionGroup",{attrs:{actions:t.actions},on:{action:t.handleAction}})]},proxy:!0}:null,{key:"actions-setting",fn:function(){return[e("ActionGroup",{attrs:{actions:t.settingActions},on:{action:t.handleAction}})]},proxy:!0}],null,!0)},[e("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:!t.profile}},[t.profile?e("profile-".concat(t.configs["profile.widget"]||"normal"),{tag:"component",attrs:{groups:t.groups,columns:t.columns,subviews:t.subviews,loading:t.loading,profile:t.profile,column:t.parentIds?1:2,configs:t.configs},scopedSlots:t._u([{key:"cell",fn:function(r){var n=r.value,o=r.column;return[e("Cell",{attrs:{row:t.profile,schema:o,value:n}})]}},{key:"action",fn:function(){return[e("ActionGroup",{attrs:{actions:t.actions},on:{action:t.handleAction}})]},proxy:!0}],null,!1,1366521354)}):t._e()],1),t.actionViewVisible?e("Popup",{class:{"ant-modal-tip":t.actionParams.actionViewTip},attrs:{visible:t.actionViewVisible,title:t.action.name,type:t.actionViewMode,okButtonProps:t.actionOkButtonProps,cancelButtonProps:t.actionCancelButtonProps,footer:"hide"===t.actionParams.footer?null:void 0},on:{ok:t.submitActionView,close:t.closeActionView,cancel:t.closeActionView}},[t.actionViewVisible?e("ActionView",{attrs:{action:t.action,submited:t.actionSubmited,values:t.actionModel,modelViewType:t.actionViewType,widget:t.actionViewWidget,parentIds:t.parentIds,params:t.actionParams,selections:t.profile,schema:t.schema,commitResult:t.actionCommitResult},on:{commit:t.commitActionView}}):t._e(),t.action.params&&t.action.params.autofill?e("a-row",{attrs:{slot:"footer",type:"flex",justify:"space-between",align:"middle"},slot:"footer"},[e("a-col",[e("a-checkbox",{on:{change:t.handleAutoFill}},[t._v(" 自动填充表单 ")])],1),e("a-col",[e("a-space",[e("a-button",{attrs:{icon:"close",disabled:t.committing},on:{click:t.closeActionView}},[t._v(" 取消 ")]),e("a-button",{attrs:{type:"primary",icon:"check",loading:t.committing},on:{click:t.submitActionView}},[t._v(" 确认 ")])],1)],1)],1):t._e()],1):t._e()],1)],1)},La=[];function Pa(t){return Pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pa(t)}function Ca(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ca=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Pa(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Pa(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Aa(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Ta(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Aa(i,n,o,a,s,"next",t)}function s(t){Aa(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Ra={props:{profileId:{type:String},values:{type:Object},hasList:{type:Boolean,default:!0},editMode:{type:String,default:"none",enum:["none","item","action","default"]},tileMode:{type:String,enum:["normal","portal","navigation"]},groupMode:{type:String,enum:["layout","tabs","steps"]},groupLayout:{type:String,enum:["horizontal","vertical"]},detailGroupName:{type:String,default:"详情"},detailLayout:{type:String,enum:["header","first-group","mix"]},layout:{type:String,default:"layout-view-model-list"}},data:function(){return{setProfileID:null,routeId:null,unwatchRoute:null}},computed:{columns:function(){var t=this.model.attrs.filter((function(t){return!["all"].includes(t.hidden)&&"model"!==t.metaType&&"link"!==t.type}));return t},subviews:function(){var t=this;return this.model.attrs.filter((function(e){var r=e.params,n=void 0===r?{}:r,o=n.show;return!["all"].includes(e.hidden)&&["collection","link"].includes(e.type)&&(!o||we(o,t.profile))}))},groups:function(){var t=[];return this.columns.forEach((function(e,r){var n=t.length-1;e.group||!r?t.push({name:e.group,columns:[e]}):t[n].columns.push(e)})),t},layouts:function(){},id:function(){var t=this.values,e=this.idName,r=this.profileId,n=this.routeId,o=this.findAll;return t?t[e]:r||n||o[0]&&o[0][e]},profile:function(){var t=this.values||this.findOne(this.id)||null;return this.params.$parent&&(t.$parent=this.params.$parent),t},next:function(){var t=this,e=this.findAll.findIndex((function(e){return e[t.idName]===t.id}));return this.findAll[e+1]},previous:function(){var t=this,e=this.findAll.findIndex((function(e){return e[t.idName]===t.id}));return this.findAll[e-1]},backActions:function(){return[{key:"_back",name:"返回",icon:"left",action:"list"}]}},methods:{showColumn:function(){},navigationTo:function(t){this.parentIds||"page"!==this.mode?this.$emit("profile",t):this.$router.replace({params:{id:t[this.idName]}})},handleNext:function(){this.next&&this.navigationTo(this.next)},handlePrevious:function(){this.previous&&this.navigationTo(this.previous)},handleList:function(){this.parentIds||"page"!==this.mode?this.$emit("close"):this.$router.replace(this.$route.meta.key)},load:function(){var t=arguments,e=this;return Ta(Ca().mark((function r(){var n,o,i;return Ca().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.length>0&&void 0!==t[0]&&t[0],r.next=3,e.loadData({key:e.id,mute:n});case 3:if(o=r.sent,!(o instanceof Error)){r.next=8;break}return i=o.response.data.code,404===i&&e.handleBack(),r.abrupt("return");case 8:return r.abrupt("return",o);case 9:case"end":return r.stop()}}),r)})))()}},created:function(){this.routeId=this.$route.params.id},activated:function(){var t=this;this.routeId=this.$route.params.id,!this.profile&&this.id&&this.load(),this.unwatchRoute=this.$watch("$route.params.id",(function(e){t.routeId=e}))},deactivated:function(){this.unwatchRoute&&this.unwatchRoute()}};function Da(t){return Ba(t)||qa(t)||Ma(t)||Ia()}function Ia(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ma(t,e){if(t){if("string"===typeof t)return Fa(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fa(t,e):void 0}}function qa(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Ba(t){if(Array.isArray(t))return Fa(t)}function Fa(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var $a=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},t._l(t.groups,(function(r,n){return e("Descriptions",{key:"g-".concat(n),staticClass:"profile-normal-descriptions",staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[r.name?e("div",{attrs:{slot:"title"},slot:"title"},[e("strong",[t._v(t._s(r.name))])]):t._e(),t._l(r.columns,(function(r,o){return[!t.collapse||t.showDescItems["showDescItem".concat(n)]||o<t.collapse?e("DescriptionsItem",{key:r.name,attrs:{span:r.column?r.column/12:1,label:r.alias||r.name,tooltip:r.legend}},[t._t("cell",null,{value:t.profile[r.name],column:r})],2):t._e()]})),t.collapse?e("div",{staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[e("a",{staticClass:"showdesc-btn",on:{click:function(e){t.showDescItems["showDescItem".concat(n)]=!t.showDescItems["showDescItem".concat(n)]}}},[e("a-icon",{attrs:{type:t.showDescItems["showDescItem".concat(n)]?"double-left":"double-right"}})],1)]):t._e()],2)})),1),t.tabs.length?e("a-card",{attrs:{size:"small",type:"inner"}},[e("a-tabs",{attrs:{animated:!1,"default-active-key":t.activeTabKey,size:"small"},on:{change:t.handleChange}},t._l(t.tabs,(function(r,n){return e("a-tab-pane",{key:String(n),attrs:{tab:r.tab}},["link"===r.type?e("Frame",{attrs:{url:t.templateURL(r.value,t.profile),height:t.iframeHeight(r.value)}}):e("keep-alive",[e(t.Views[n],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(Da(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:r.name,params:{$parent:t.profile}}})],1)],1)})),1)],1):t._e()],1)},Va=[],Ha={DESCRIPTIONS_ITEM:!0,props:{label:String,span:{type:Number,default:1},align:{type:String,default:"left"},tooltip:{type:String,default:""}},render:function(){return this.$slots.default},renderError:function(){}},Ua=function(){var t=this,e=t._self._c;return e("tr",{staticClass:"ant-descriptions-row"},[t._t("default")],2)},Ga=[],za={},Ka=za,Ya=qr(Ka,Ua,Ga,!1,null,null,null),Wa=Ya.exports;function Za(t){return Za="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Za(t)}function Ja(t,e,r){return e=Xa(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xa(t){var e=Qa(t,"string");return"symbol"==Za(e)?e:String(e)}function Qa(t,e){if("object"!=Za(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Za(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ts=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=[],n=[],o=e,i=t.filter((function(t){var e=t.componentOptions||{Ctor:{}},r=e.Ctor.options;return!!r&&r.DESCRIPTIONS_ITEM}));return i.forEach((function(t,a){var s=t.componentOptions.propsData.span||1;if(a===i.length-1)return n.push(t),void r.push(n);s<o?(o-=s,n.push(t)):(n.push(t),r.push(n),o=e,n=[])})),r},es={DescriptionsItem:Ha,components:{Row:Wa},props:{title:String,bordered:{type:Boolean,default:!1},column:{type:[Number,Object],default:3},size:{type:[Boolean,String],default:!1,enum:["default","middle","small"]},layout:{type:String,default:"horizontal",enum:["horizontal","vertical"]},inline:{type:Boolean,default:!0},colon:{type:Boolean,default:!0},profile:{type:Boolean,default:!1}},render:function(t){var e=this.title,r=this.bordered,n=this.size,o=this.colon,i=this.layout,a=this.inline,s=this.column,c=this.$slots,l=this.profile,u=ts(c.default,s);return t("div",{class:Ja(Ja(Ja({"ant-descriptions":!0},"ant-descriptions-".concat(n),!0),"ant-descriptions-bordered",!!r),"ant-descriptions-profile",!!l)},[e&&t("div",{class:"ant-descriptions-title"},[e]),!e&&c.title&&t("div",{class:"ant-descriptions-title"},[c.title]),t("div",{class:"ant-descriptions-view"},[t("table",[t("tbody",[u.map((function(e){return"vertical"===i?[t(Wa,[" ",e.map((function(e){var r=e.componentOptions.propsData,n=r.span,o=r.label,i=r.align,a=r.tooltip;return t("th",{class:"ant-descriptions-item-label",style:{"text-align":i},attrs:{colSpan:n}},a?[o,t("a-tooltip",{attrs:{placement:"right"}},[t("template",{slot:"title"},[t("span",[a])]),t("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]:[o])}))," "]),t(Wa,[" ",e.map((function(e){var r=e.componentOptions.propsData,n=r.span,o=r.align;return t("td",{class:"ant-descriptions-item-content",style:{"text-align":o,"white-space":"pre-wrap"},attrs:{colSpan:n}},[e])}))," "])]:t(Wa,[" ",e.map((function(e){var n=e.componentOptions.propsData,i=n.label,s=n.span,c=n.align,l=n.tooltip;return r||!a?[t("th",{class:"ant-descriptions-item-label"},l?[i,t("a-tooltip",{attrs:{placement:"right"}},[t("template",{slot:"title"},[t("span",[l])]),t("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]:[i]),t("td",{class:"ant-descriptions-item-content",style:{"text-align":c,"white-space":"pre-wrap"},attrs:{colSpan:s?2*s-1:""}},[e])]:t("td",{class:"ant-descriptions-item",attrs:{colSpan:s},style:{"text-align":c}},l?[t("span",{class:{"ant-descriptions-item-label":!0,"ant-descriptions-item-colon":o}},[i,t("a-tooltip",{attrs:{placement:"right"}},[t("template",{slot:"title"},[t("span",[l])]),t("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]),t("span",{class:"ant-descriptions-item-content",style:"white-space:pre-wrap"},[e])]:[t("span",{class:{"ant-descriptions-item-label":!0,"ant-descriptions-item-colon":o}},[i]),t("span",{class:"ant-descriptions-item-content",style:"white-space:pre-wrap"},[e])])}))," "])}))])])]),c.footer&&t("div",[c.footer])])},renderError:function(){}},rs=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.loading,delay:50}},[e("iframe",{style:{height:t.height},attrs:{frameborder:"0",src:"".concat(t.url),width:"100%"},on:{load:t.handleLoad}})])},ns=[],os={props:{url:String,query:Object,height:{type:[Number,String],default:"100vh"}},data:function(){return{loading:!0}},methods:{handleLoad:function(){this.loading=!1,this.$emit("load")}}},is=os,as=qr(is,rs,ns,!1,null,null,null),ss=as.exports;function cs(t){return cs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cs(t)}function ls(t){return ds(t)||hs(t)||fs(t)||us()}function us(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function fs(t,e){if(t){if("string"===typeof t)return ps(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ps(t,e):void 0}}function hs(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ds(t){if(Array.isArray(t))return ps(t)}function ps(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function vs(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ys(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vs(Object(r),!0).forEach((function(e){ms(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vs(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ms(t,e,r){return e=gs(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gs(t){var e=bs(t,"string");return"symbol"==cs(e)?e:String(e)}function bs(t,e){if("object"!=cs(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=cs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ws,_s,xs=es.DescriptionsItem,ks={components:ys({Descriptions:es,DescriptionsItem:xs,Frame:ss},sb),inject:["page","view"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1}},data:function(){return{activeTabKey:"0",views:ls(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&ls(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,showDescItems:{}}},methods:{handleChange:function(t){this.activeTabKey=t},templateURL:function(t,e){return xe(t,e)},iframeHeight:function(t){var e;if(t&&t.split("?")[1]){var r=t.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;r&&(e=r.split("=")[1])}return e}},created:function(){var t=this;if(this.groups.length&&this.collapse&&this.groups.forEach((function(e,r){t.$set(t.showDescItems,"showDescItem".concat(r),!1)})),this.$route.query&&this.$route.query.activeTabKey){var e=this.tabs.find((function(e){return e.name===t.$route.query.activeTabKey}));e&&(this.activeTabKey=e.key)}},computed:{tabs:function(){return this.views.map((function(t,e){return ys(ys({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:Ut(sb.ModelList)("".concat(t.storeNamespace,"/:id/").concat(e.name))}}))},collapse:function(){return this.view.configs["profile.collapse"]?Number(this.view.configs["profile.collapse"]):null}},watch:{profile:function(){this.views=ls(this.subviews),this.id=this.view.id}}},Os=ks,Es=(r("4927"),qr(Os,$a,Va,!1,null,null,null)),Ss=Es.exports,js={},Ns=qr(js,ws,_s,!1,null,null,null),Ls=Ns.exports;function Ps(t){return Rs(t)||Ts(t)||As(t)||Cs()}function Cs(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function As(t,e){if(t){if("string"===typeof t)return Ds(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ds(t,e):void 0}}function Ts(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Rs(t){if(Array.isArray(t))return Ds(t)}function Ds(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Is=function(){var t=this,e=t._self._c;return e("a-row",[t.view.configs["profile.tile.hideAnchor"]?t._e():e("a-col",{attrs:{span:3}},[e("a-anchor",{attrs:{affix:t.affix,getContainer:t.getContainer,offsetTop:t.view.configs["profile.tile.offsetTop"]&&Number(t.view.configs["profile.tile.offsetTop"])||0},on:{change:t.handleChange,click:t.handleClick}},[t._l(t.groups,(function(t,r){return e("a-anchor-link",{key:"anchor-g-".concat(r),attrs:{href:"#profile-tile-group-".concat(r),title:t.name}})})),t._l(t.tabs,(function(t,r){return e("a-anchor-link",{key:"anchor-t-".concat(r),attrs:{href:"#profile-tile-tab-".concat(r),title:t.tab}})}))],2)],1),e("a-col",{attrs:{span:t.view.configs["profile.tile.hideAnchor"]?24:21}},[e("a-spin",{attrs:{spinning:t.loading}},t._l(t.groups,(function(r,n){return e("a-card",{key:"g-".concat(n),staticClass:"gs-card",attrs:{size:"small",id:"profile-tile-group-".concat(n),title:r.name,bordered:!1,headStyle:{borderBottom:0}}},[t._e(),e("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[t._l(r.columns,(function(r,o){return[!t.collapse||t.showDescItems["showDescItem".concat(n)]||o<t.collapse?e("DescriptionsItem",{key:r.name,attrs:{span:r.column?r.column/12:1,label:r.alias||r.name,tooltip:r.legend}},[t._t("cell",null,{value:t.profile[r.name],column:r})],2):t._e()]})),t.collapse?e("div",{staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[e("a",{staticClass:"showdesc-btn",on:{click:function(e){t.showDescItems["showDescItem".concat(n)]=!t.showDescItems["showDescItem".concat(n)]}}},[e("a-icon",{attrs:{type:t.showDescItems["showDescItem".concat(n)]?"double-left":"double-right"}})],1)]):t._e()],2)],1)})),1),t._l(t.tabs,(function(r,n){return e("a-card",{key:String(n),staticClass:"gs-card",attrs:{tab:r.tab,size:"small",id:"profile-tile-tab-".concat(n),title:r.tab,bordered:!1,headStyle:{borderBottom:0}}},["link"===r.type?e("Frame",{attrs:{url:t.templateURL(r.value,t.profile),height:t.iframeHeight(r.value)}}):e("keep-alive",[e(t.Views[n],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(Ps(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:r.name,params:{$parent:t.profile}}})],1)],1)}))],2)],1)},Ms=[];function qs(t){return qs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qs(t)}function Bs(t){return Hs(t)||Vs(t)||$s(t)||Fs()}function Fs(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $s(t,e){if(t){if("string"===typeof t)return Us(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Us(t,e):void 0}}function Vs(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Hs(t){if(Array.isArray(t))return Us(t)}function Us(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Gs(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function zs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Gs(Object(r),!0).forEach((function(e){Ks(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gs(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ks(t,e,r){return e=Ys(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ys(t){var e=Ws(t,"string");return"symbol"==qs(e)?e:String(e)}function Ws(t,e){if("object"!=qs(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=qs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Zs=es.DescriptionsItem,Js={components:zs({Descriptions:es,DescriptionsItem:Zs,Frame:ss},sb),inject:["page","view","container"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1}},data:function(){return{activeTabKey:"0",views:Bs(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&Bs(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,affix:!0,showDescItems:{}}},created:function(){var t=this;this.groups.length&&this.collapse&&this.groups.forEach((function(e,r){t.$set(t.showDescItems,"showDescItem".concat(r),!1)}))},methods:{handleChange:function(t){},templateURL:function(t,e){return xe(t,e)},handleClick:function(t,e){t.preventDefault()},getContainer:function(){var t=this.container&&this.container.$refs.container;return t&&t.$el||t||window},iframeHeight:function(t){var e;if(t&&t.split("?")[1]){var r=t.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;r&&(e=r.split("=")[1])}return e}},computed:{tabs:function(){return this.views.map((function(t,e){return zs(zs({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:Ut(sb.ModelList)("".concat(t.storeNamespace,"/:id/").concat(e.name))}}))},collapse:function(){return this.view.configs["profile.collapse"]?Number(this.view.configs["profile.collapse"]):null}},watch:{profile:function(){this.views=Bs(this.subviews),this.id=this.view.id}},activated:function(){this.affix=!0},deactivated:function(){this.affix=!1}},Xs=Js,Qs=(r("d149"),qr(Xs,Is,Ms,!1,null,null,null)),tc=Qs.exports;function ec(t){return ic(t)||oc(t)||nc(t)||rc()}function rc(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function nc(t,e){if(t){if("string"===typeof t)return ac(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ac(t,e):void 0}}function oc(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ic(t){if(Array.isArray(t))return ac(t)}function ac(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var sc=function(){var t=this,e=t._self._c;return t.tabs.length?e("div",[t.basicAttrsColumns.length?e("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[t._l(t.basicAttrsColumns,(function(r){return[e("DescriptionsItem",{key:r.name,attrs:{span:r.column?r.column/12:1,label:r.alias||r.name,tooltip:r.legend}},[t._t("cell",null,{value:t.profile[r.name],column:r})],2)]}))],2):t._e(),e("a-tabs",{attrs:{animated:!1,"default-active-key":t.activeTabKey},on:{change:t.handleChange}},t._l(t.tabs,(function(r,n){return e("a-tab-pane",{key:String(n),attrs:{tab:r.tab}},["profile"===r.type?e("a-spin",{attrs:{spinning:t.loading}},t._l(t.groups,(function(r,n){return e("Descriptions",{key:"g-".concat(n),staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[r.name?e("div",{attrs:{slot:"title"},slot:"title"},[e("strong",[t._v(t._s(r.name))])]):t._e(),t._l(t.subAttrsColumns(r.columns),(function(r,o){return[!t.collapse||t.showDescItems["showDescItem".concat(n)]||o<t.collapse?e("DescriptionsItem",{key:r.name,attrs:{span:r.column?r.column/12:1,label:r.alias||r.name,tooltip:r.legend}},[t._t("cell",null,{value:t.profile[r.name],column:r})],2):t._e()]})),t.collapse?e("div",{staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[e("a",{staticClass:"showdesc-btn",on:{click:function(e){t.showDescItems["showDescItem".concat(n)]=!t.showDescItems["showDescItem".concat(n)]}}},[e("a-icon",{attrs:{type:t.showDescItems["showDescItem".concat(n)]?"double-left":"double-right"}})],1)]):t._e()],2)})),1):"link"===r.type?e("Frame",{attrs:{url:t.templateURL(r.value,t.profile),height:t.iframeHeight(r.value)}}):e("keep-alive",[e(t.Views[n],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(ec(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:r.name,params:{$parent:t.profile}}})],1)],1)})),1)],1):t._e()},cc=[];function lc(t){return lc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lc(t)}function uc(t){return pc(t)||dc(t)||hc(t)||fc()}function fc(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function hc(t,e){if(t){if("string"===typeof t)return vc(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vc(t,e):void 0}}function dc(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function pc(t){if(Array.isArray(t))return vc(t)}function vc(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function yc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function mc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yc(Object(r),!0).forEach((function(e){gc(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yc(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function gc(t,e,r){return e=bc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bc(t){var e=wc(t,"string");return"symbol"==lc(e)?e:String(e)}function wc(t,e){if("object"!=lc(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=lc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var _c=es.DescriptionsItem,xc={components:mc({Descriptions:es,DescriptionsItem:_c,Frame:ss},sb),inject:["page","view"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1},configs:{type:Object}},data:function(){return{activeTabKey:"0",views:null,id:this.view.id,parentIds:this.view.parentIds&&uc(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,showDescItems:{}}},methods:{handleChange:function(t){this.activeTabKey=t},templateURL:function(t,e){return xe(t,e)},iframeHeight:function(t){var e;if(t&&t.split("?")[1]){var r=t.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;r&&(e=r.split("=")[1])}return e},subAttrsColumns:function(t){var e=this;return this.basicAttrs.length?t.filter((function(t){return!e.basicAttrs.includes(t.name)})):t}},created:function(){var t=this;if(this.groups.length&&this.collapse&&this.groups.forEach((function(e,r){t.$set(t.showDescItems,"showDescItem".concat(r),!1)})),this.$route.query&&this.$route.query.activeTabKey){var e=this.tabs.find((function(e){return e.name===t.$route.query.activeTabKey}));e&&(this.activeTabKey=e.key)}this.views=[this.profileTab].concat(uc(this.subviews))},computed:{tabs:function(){return this.views?this.views.map((function(t,e){return mc(mc({},t),{},{key:String(e),tab:t.alias||t.name})})):[]},Views:function(){var t=this;return this.views?this.views.map((function(e){return{extends:Ut(sb.ModelList)("".concat(t.storeNamespace,"/:id/").concat(e.name))}})):[]},collapse:function(){return this.view.configs["profile.collapse"]?Number(this.view.configs["profile.collapse"]):null},basicAttrs:function(){var t=[];return this.view.configs&&this.view.configs["profile.tabs.basicAttrs"]&&(t=this.view.configs["profile.tabs.basicAttrs"].split(",")),t},basicAttrsColumns:function(){var t=this;return this.basicAttrs.length?this.columns.filter((function(e){return t.basicAttrs.includes(e.name)})):[]},profileTab:function(){return{name:this.view.configs&&this.view.configs["profile.tabs.profileTitle"]?this.view.configs["profile.tabs.profileTitle"]:"详情",type:"profile"}}},watch:{profile:function(){this.views=[this.profileTab].concat(uc(this.subviews)),this.id=this.view.id}}},kc=xc,Oc=(r("b69c"),qr(kc,sc,cc,!1,null,null,null)),Ec=Oc.exports,Sc={ProfileNormal:Ss,ProfilePortal:Ls,ProfileTile:tc,ProfileTabs:Ec};function jc(t){return jc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jc(t)}function Nc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Lc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Nc(Object(r),!0).forEach((function(e){Pc(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nc(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Pc(t,e,r){return e=Cc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Cc(t){var e=Ac(t,"string");return"symbol"==jc(e)?e:String(e)}function Ac(t,e){if("object"!=jc(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=jc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Tc={mixins:[Kt,Yt,ge,Lr,Tr,Ra],components:Lc({ActionGroup:Yi,ActionView:ta,Popup:Pi,Cell:ma},Sc)},Rc=Tc,Dc=(r("a6b9"),qr(Rc,Na,La,!1,null,null,null)),Ic=Dc.exports,Mc=function(){var t=this,e=t._self._c;return e("layout-view-blank",{tag:"component"},[t.commitResult.template&&t.commitResult.data?e("a-result",{attrs:{status:"success",title:t.message}},[e(t.commitResult,{tag:"component"})],1):e(t.formWidget||t.widget,t._g(t._b({tag:"component",attrs:{action:t.action,columns:t.columns,params:t.params}},"component",t.$attrs,!1),t.$listeners))],1)},qc=[],Bc={create:["createonly","updateonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},Fc={model:{event:"change"},props:{value:{type:[Object,Array]},action:{type:Object},layout:{type:String,enum:["horizontal","vertical","inline","group"]},editType:{type:String,default:"create",enum:["create","update","bulk","save"]},submitType:{type:String,default:"submit",enum:["change","submit"]},allowUnsubmittedCache:{type:Boolean,default:!0},allowPreviousCache:{type:Boolean,default:!1},displayReadonly:{type:String,default:"none",enum:["none","readonly","all"]},isGroup:{type:Boolean,default:!1},commitResult:{type:Object},submitActions:{type:Array,default:function(){return[{name:"确定",icon:"",handle:"submit"},{name:"取消",icon:"",handle:"cancel"}]}}},created:function(){"create"===this.editType&&this.allowUnsubmittedCache&&this.getLocalStore()},computed:{columns:function(){var t=this.action,e=this.params,r=this.model,n=this.editType,o=this.hide,i=t&&t.view?t.view.model.attrs:e&&e.attrs?e.attrs:r.attrs?r.attrs:[];if(t&&t.list){var a=this.action.list.split(",");return i.filter((function(t){return!o.includes(t.name)&&a.includes(t.name)}))}return i.filter((function(t){return Bc[n].includes(t.access)&&!o.includes(t.name)&&"collection"!==t.metaType&&"model"!==t.metaType&&"link"!==t.type}))},rules:function(){},formWidget:function(){var t=Object.fromEntries(this.action.configs.map((function(t){return[t.key,t.value]})))||[],e=t["form.widget"]||this.configs["form.widget"]||null;return e}},methods:{setLocalStore:function(){},getLocalStore:function(){},reset:function(){},validate:function(){},handleChange:function(){this.$emit("change")},handleSubmit:function(){this.$emit("submited")},handleCommit:function(){this.$emit("commited")}}},$c=function(){var t=this,e=t._self._c;return e("a-form-model",{ref:"form",attrs:{rules:t.rules,model:t.actionModel}},[e("a-row",{attrs:{gutter:24}},t._l(t.columns,(function(r){return e("a-col",{key:r.name,staticStyle:{"min-height":"0"},attrs:{span:r.column||12}},[e("Item",{attrs:{formModel:t.actionModel,prop:r.name,schema:r,params:t.params},on:{change:function(e){return t.handleItemChange(e,r)},fill:function(e){return t.handleItemFill(e,r)}},model:{value:t.actionModel[r.name],callback:function(e){t.$set(t.actionModel,r.name,e)},expression:"actionModel[col.name]"}})],1)})),1)],1)},Vc=[],Hc={mixins:[hn],components:{Item:Ri}},Uc=Hc,Gc=qr(Uc,$c,Vc,!1,null,null,null),zc=Gc.exports,Kc=function(){var t=this,e=t._self._c;return e("div",[e("a-upload",{attrs:{multiple:"",beforeUpload:t.beforeUpload,showUploadList:!1}},[e("a-button",[e("a-icon",{attrs:{type:"upload"}}),t._v(" 批量上传 ")],1)],1),t._l(t.fileList,(function(r,n){return e("div",{key:n,staticClass:"form-file-upload"},[e("a-row",{attrs:{type:"flex",justify:"space-between",align:"middle"}},[e("a-col",["uploading"===r.status?e("a-icon",{attrs:{type:"loading"}}):"done"===r.status?e("a-icon",{attrs:{type:"paper-clip"}}):t._e(),t._v(" "+t._s(r.file.name)+" ")],1),e("a-col",[r.status?t._e():e("a-icon",{attrs:{type:"close"},on:{click:function(e){return t.handleRemove(n)}}})],1)],1)],1)}))],2)},Yc=[];function Wc(t){return Wc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wc(t)}function Zc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Zc=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Wc(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Wc(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Jc(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Xc(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Jc(i,n,o,a,s,"next",t)}function s(t){Jc(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Qc={mixins:[hn],data:function(){return{fileList:[]}},methods:{handleRemove:function(t){var e=this.fileList.slice();e.splice(t,1),this.fileList=e},beforeUpload:function(t){return this.fileList.push({file:t,status:""}),!1},handleSubmit:function(){var t=this;return Xc(Zc().mark((function e(){var r;return Zc().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.view.view.selections,0!==t.fileList.length){e.next=3;break}return e.abrupt("return",t.$message.error("请选择文件"));case 3:if(!(r&&r.length>1)){e.next=5;break}return e.abrupt("return",t.$message.error("请选择一条文件进行上传"));case 5:t.handleCommit();case 6:case"end":return e.stop()}}),e)})))()},handleCommit:function(){var t=this;return Xc(Zc().mark((function e(){var r,n,o,i,a,s,c,l,u,f,h,d;return Zc().wrap((function(e){while(1)switch(e.prev=e.next){case 0:d=function(){return d=Xc(Zc().mark((function t(e){var r,d,p;return Zc().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.status="uploading",r=o.key,d=o.method,p=new FormData,p.append("file",e.file),a&&p.append("data[".concat(i,"]"),a[i]),t.next=7,n({data:p,key:r,method:d,mute:!0});case 7:f++,e.status="done",f>=u.length?(s(),c(),l.success("上传完成")):h(u[f]);case 10:case"end":return t.stop()}}),t)}))),d.apply(this,arguments)},h=function(t){return d.apply(this,arguments)},r=t.view.view,n=r.saveData,o=r.action,i=r.idName,a=r.actionModel,s=r.closeActionView,c=r.load,l=r.$message,u=t.fileList,f=0,h(u[f]);case 6:case"end":return e.stop()}}),e)})))()}}},tl=Qc,el=qr(tl,Kc,Yc,!1,null,null,null),rl=el.exports,nl=function(){var t=this,e=t._self._c;return e("Picker",t._g(t._b({attrs:{viewKey:t.action.key||t.action.method.toLowerCase(),schema:t.action,params:{filters:t.pickerFilter},pickerMode:t.pickerMode},on:{selected:t.handleViewPickerSelected}},"Picker",t.$attrs,!1),t.$listeners))},ol=[];function il(t){return il="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},il(t)}function al(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function sl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?al(Object(r),!0).forEach((function(e){cl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):al(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cl(t,e,r){return e=ll(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ll(t){var e=ul(t,"string");return"symbol"==il(e)?e:String(e)}function ul(t,e){if("object"!=il(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=il(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var fl={mixins:[hn],components:{Picker:gi},computed:{pickerFilter:function(){var t=this.action.params,e=t&&t.filters,r={};if(!e)return null;for(var n in e){var o=e[n].split(".").reduce((function(t,e){return t&&t[e]||void 0}),sl(sl({},this.params),this.actionModel));r[n]=void 0===o?e[n]:o}return r},pickerMode:function(){var t=this.action.params,e=void 0===t?{}:t,r=e.multiple,n=e.pickerMode;return"none"===n?null:r?"multiple":"single"}},methods:{handleSubmit:function(){if(!this.actionModel||!this.actionModel.length)return this.$message.error("请选择数据");this.handleCommit()},handleViewPickerSelected:function(t){var e=this.configs["picker.view.value"],r=e;this.actionModel=r?t.map((function(t){return cl({},r,t[e])})):t}}},hl=fl,dl=qr(hl,nl,ol,!1,null,null,null),pl=dl.exports,vl=function(){var t=this,e=t._self._c;return e("div",[e("a-steps",{attrs:{current:t.current}},t._l(t.steps,(function(r){return e("a-step",{key:r.title,attrs:{title:r.title}},["核心解读"===r.title?e("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.coreAlgorithmCount},slot:"subTitle"}):t._e(),"描述解读"===r.title?e("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.describeAlgorithmCount},slot:"subTitle"}):t._e(),"排盘数据"===r.title?e("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.paipanDataCount},slot:"subTitle"}):t._e(),"术数分析"===r.title?e("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.surgeryAnalysisCount},slot:"subTitle"}):t._e()],1)})),1),Object.keys(t.algorithmList).length&&t.current<t.steps.length-1?e("div",{staticClass:"algorithm-preview"},[e("strong",[t._v("算法集合预览:")]),t._v(t._s(t.algorithmList)+" ")]):t._e(),e("a-spin",{attrs:{spinning:t.loading}},[0===t.current?e("div",{staticClass:"steps-content"},[e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),e("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[e("a-tabs",{attrs:{defaultActiveKey:"".concat(t.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},t._l(t.algorithmData[0].children,(function(r,n){return e("a-tab-pane",{key:r.name+n.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(r.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(r.children)}})],1),e("CheckboxGroup",{attrs:{title:r.name,data:r.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,r.name,n)}}})],1)})),1)]:e("a-empty")],2):t._e(),1===t.current?e("div",{staticClass:"steps-content"},[e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),e("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[e("a-tabs",{attrs:{defaultActiveKey:"".concat(t.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},t._l(t.algorithmData[0].children,(function(r,n){return e("a-tab-pane",{key:r.name+n.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(r.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(r.children)}})],1),e("CheckboxGroup",{attrs:{title:r.name,data:r.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,r.name,n)}}})],1)})),1)]:e("a-empty")],2):t._e(),2===t.current?e("div",{staticClass:"steps-content"},[e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),e("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[e("a-tabs",{attrs:{defaultActiveKey:"".concat(t.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},t._l(t.algorithmData[0].children,(function(r,n){return e("a-tab-pane",{key:r.name+n.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(r.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(r.children)}})],1),e("CheckboxGroup",{attrs:{title:r.name,data:r.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,r.name,n)}}})],1)})),1)]:e("a-empty")],2):t._e(),3===t.current?e("div",{staticClass:"steps-content"},[e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),e("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[e("a-tabs",{attrs:{defaultActiveKey:"".concat(t.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},t._l(t.algorithmData[0].children,(function(r,n){return e("a-tab-pane",{key:r.name+n.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(r.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(r.children)}})],1),e("CheckboxGroup",{attrs:{title:r.name,data:r.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,r.name,n)}}})],1)})),1)]:e("a-empty")],2):t._e(),4===t.current?e("div",{staticClass:"steps-content"},[e("AlgorithmForm",{attrs:{algorithmList:t.algorithmList},on:{close:function(e){return t.$emit("close")}}})],1):t._e()]),e("div",{staticClass:"steps-action"},[t.current>0?e("a-button",{staticStyle:{"margin-right":"8px"},on:{click:t.prev}},[t._v(" 上一步 ")]):t._e(),t.current<t.steps.length-1?e("a-button",{attrs:{type:"primary"},on:{click:t.next}},[t._v(" 下一步 ")]):t._e()],1)],1)},yl=[];function ml(t){return ml="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ml(t)}function gl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */gl=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==ml(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(ml(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function bl(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function wl(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){bl(i,n,o,a,s,"next",t)}function s(t){bl(i,n,o,a,s,"throw",t)}a(void 0)}))}}var _l={namespaced:!0,state:{loading:!1,data:{},district:[],status:200,message:""},mutations:{setLoading:function(t,e){t.loading=e},setData:function(t,e){var r=e.key,n=e.rows;t.data[r]?t.data[r]=n:L.a.set(t.data,r,n)},setDistrict:function(t,e){t.district=e},setStatus:function(t,e){var r=e.status,n=e.message;t.status=r,t.message=n}},actions:{loadData:function(t){var e=arguments;return wl(gl().mark((function r(){var n,o,i,a,s,c,l,u;return gl().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},a=i.methods,s=void 0===a?"get":a,c=i.key,l=i.query,n("setLoading",!0),r.prev=4,r.next=7,E[s](l?"/api/".concat(c?"".concat(c):"","?").concat(j.a.stringify(l)):"/api/".concat(c?"".concat(c):""));case 7:u=r.sent,u.data&&c&&n("setData",{rows:u.data,key:c}),r.next=14;break;case 11:r.prev=11,r.t0=r["catch"](4),o("handleError",r.t0);case 14:return r.prev=14,n("setLoading",!1),r.finish(14);case 17:case"end":return r.stop()}}),r,null,[[4,11,14,17]])})))()},loadDistrict:function(t){return wl(gl().mark((function e(){var r,n,o,i;return gl().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,n=t.dispatch,r("setLoading",!0),e.prev=2,e.next=5,E.get("/dataset/%E8%A1%8C%E6%94%BF%E5%8C%BA%E5%88%92");case 5:o=e.sent,i=o.data,i&&r("setDistrict",i.data),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](2),n("handleError",e.t0);case 13:return e.prev=13,r("setLoading",!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,10,13,16]])})))()},getResult:function(t){var e=arguments;return wl(gl().mark((function r(){var n,o,i,a,s,c;return gl().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},a=i.key,s=i.params,n("setLoading",!0),r.prev=4,r.next=7,E.post(a,s,{});case 7:if(c=r.sent,!c||!c.data){r.next=10;break}return r.abrupt("return",c.data);case 10:r.next=15;break;case 12:r.prev=12,r.t0=r["catch"](4),o("handleError",r.t0);case 15:return r.prev=15,n("setLoading",!1),r.finish(15);case 18:case"end":return r.stop()}}),r,null,[[4,12,15,18]])})))()},handleError:function(t,e){var r=t.commit;if(!e.response)return r("setStatus",{status:0,message:"网络请求错误,请检查您的网络连接。"});var n=e.response,o=n.status,i=n.data,a=i&&i.content||"系统错误请与管理员联系。";r("setStatus",{status:o,message:a})}}};function xl(t){return xl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xl(t)}function kl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ol(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?kl(Object(r),!0).forEach((function(e){El(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kl(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function El(t,e,r){return e=Sl(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Sl(t){var e=jl(t,"string");return"symbol"==xl(e)?e:String(e)}function jl(t,e){if("object"!=xl(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=xl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}for(var Nl=Object(u["createNamespacedHelpers"])("m-algorithm"),Ll=Nl.mapState,Pl=Nl.mapActions,Cl=["loading","data","message"],Al=["loadData","loadDistrict","getResult"],Tl={computed:Ol({},Ll(Cl)),methods:Ol({},Pl(Al)),beforeCreate:function(){this.$store.state["m-algorithm"]||this.$store.registerModule("m-algorithm",_l)}},Rl=function(){var t=this,e=t._self._c;return e("div",{staticClass:"algorithm-checkbox"},[e("a-row",{staticStyle:{width:"100%",padding:"0 32px"},attrs:{gutter:24}},t._l(t.data,(function(r){return e("a-col",{key:r.id,staticClass:"algorithm-item",class:{"algorithm-item-actived":r.checked},attrs:{span:6}},[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{span:20}},[e("a-checkbox",{staticClass:"text-ellipsis",attrs:{checked:r.checked},on:{change:function(e){return t.onCheckChange(e,r)}}},[e("a-tooltip",[e("template",{slot:"title"},[t._v(" "+t._s(r.name)+" ")]),t._v(" "+t._s(r.name)+" ")],2)],1)],1),e("a-col",{staticClass:"params-setting",attrs:{span:4},on:{click:function(e){return t.showDrawer(r.read_id)}}},[r.checked?e("a-icon",{staticClass:"algorithm-item-action",attrs:{type:"setting"}}):t._e()],1)],1)],1)})),1),e("a-drawer",{attrs:{title:"高级配置",placement:"right",visible:t.visible,width:"512",bodyStyle:{overflow:"auto"}},on:{close:function(e){t.visible=!1}}},[e("h3",{staticStyle:{"margin-bottom":"16px"}},[t._v("解读详情")]),e("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{size:"small",column:1,bordered:""}},[e("DescriptionsItem",{attrs:{label:"编码"}},[t._v(t._s(t.algorithmDetail.code))]),e("DescriptionsItem",{attrs:{label:"名称"}},[t._v(t._s(t.algorithmDetail.name))]),e("DescriptionsItem",{attrs:{label:"解读分类"}},[t._v(t._s(t.algorithmDetail.classify))]),e("DescriptionsItem",{attrs:{label:"算法类别"}},[t._v(t._s(t.algorithmDetail.type))]),e("DescriptionsItem",{attrs:{label:"作者"}},[t._v(t._s(t.algorithmDetail.author))]),e("DescriptionsItem",{attrs:{label:"标签"}},[t._v(t._s(t.algorithmDetail.core_basis))]),e("DescriptionsItem",{attrs:{label:"解读维度"}},[t._v(t._s(t.algorithmDetail.latitude))]),e("DescriptionsItem",{attrs:{label:"解读赋值"}},[t._v(t._s(t.algorithmDetail.app_product))])],1),e("h3",{staticStyle:{"margin-bottom":"16px"}},[t._v("参数配置")]),e("a-tabs",{attrs:{type:"editable-card"},on:{edit:t.onEdit},model:{value:t.activeKey,callback:function(e){t.activeKey=e},expression:"activeKey"}},t._l(t.panes,(function(r,n){return e("a-tab-pane",{key:r.key,attrs:{tab:"".concat(r.title,"_").concat(n+1),closable:0!==n}},[e("AlgorithmParams",{attrs:{algorithmParams:r.algorithmParams,algorithmParamsKey:r.key},on:{submit:t.submitForm}})],1)})),1),e("div",{style:{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},[e("a-button",{style:{marginRight:"8px"},on:{click:function(e){t.visible=!1}}},[t._v(" 取消 ")]),e("a-button",{attrs:{type:"primary",loading:t.btnLoading},on:{click:function(e){return t.submitParams(t.copyPaneParams)}}},[t._v(" 确定 ")])],1)],1)],1)},Dl=[],Il=function(){var t=this,e=t._self._c;return e("a-form-model",{ref:"dynamicValidateForm",attrs:{model:t.dynamicValidateForm}},[t._l(t.dynamicValidateForm.algorithms,(function(r,n){return e("a-form-model-item",{key:r.key,attrs:{prop:"algorithms."+n+".value",rules:{required:!0,message:"请输入算法参数",trigger:"blur"}}},[e("a-input",{staticStyle:{width:"60%","margin-right":"8px"},attrs:{placeholder:"请输入算法参数"},on:{blur:function(e){return t.submitForm("dynamicValidateForm")}},model:{value:r.value,callback:function(e){t.$set(r,"value",e)},expression:"domain.value"}}),e("a-icon",{staticClass:"dynamic-delete-button",attrs:{type:"minus-circle-o",disabled:1===t.dynamicValidateForm.algorithms.length},on:{click:function(e){return t.removeDomain(r)}}})],1)})),e("a-form-model-item",[e("a-button",{staticStyle:{width:"60%"},attrs:{type:"dashed"},on:{click:t.addDomain}},[e("a-icon",{attrs:{type:"plus"}}),t._v(" 增加 ")],1)],1),e("a-form-model-item",[e("a-button",{on:{click:function(e){return t.resetForm("dynamicValidateForm")}}},[t._v(" 重置 ")])],1)],2)},Ml=[],ql={props:{algorithmParams:{type:Array,default:function(){return[]}},algorithmParamsKey:{type:[String,Number]}},data:function(){return{dynamicValidateForm:{algorithms:this.algorithmParams}}},methods:{submitForm:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;e.setParams()}))},setParams:function(){var t=this.dynamicValidateForm.algorithms.map((function(t){return t.value})),e={key:this.algorithmParamsKey,algorithmParams:t};this.$emit("submit",e)},resetForm:function(t){this.$refs[t].resetFields(),this.dynamicValidateForm.algorithms=[],this.setParams()},removeDomain:function(t){var e=this.dynamicValidateForm.algorithms.indexOf(t);-1!==e&&this.dynamicValidateForm.algorithms.splice(e,1),this.setParams()},addDomain:function(){this.dynamicValidateForm.algorithms.push({value:"",key:Date.now()})}},watch:{algorithmParams:function(t){this.dynamicValidateForm.algorithms=t}}},Bl=ql,Fl=qr(Bl,Il,Ml,!1,null,null,null),$l=Fl.exports,Vl=es.DescriptionsItem,Hl={props:{title:{type:String},data:{type:Array,require:!0},defaultCheckedList:{type:Array}},components:{Descriptions:es,DescriptionsItem:Vl,AlgorithmParams:$l},data:function(){return{checkedList:this.defaultCheckedList||[],visible:!1,btnLoading:!1,algorithmId:null,algorithmParams:[],activeKey:0,panes:[],paneParams:{},copyPaneParams:{}}},computed:{algorithmDetail:function(){var t=this;return this.data.find((function(e){return e.read_id===t.algorithmId}))||{}}},methods:{onCheckChange:function(t,e){if(e.checked=t.target.checked,e.checked)this.checkedList.push(e);else{var r=this.checkedList.findIndex((function(t){return e.read_id===t.read_id}));this.checkedList.splice(r,1)}this.$emit("change",this.checkedList)},showDrawer:function(t){var e=this;this.algorithmId=t;var r=this.checkedList.find((function(e){return e.read_id===t})).values;if(r.length)this.panes=r.map((function(t,r){var n={key:"".concat(e.algorithmId).concat(r),title:"参数",algorithmParams:t.map((function(t,e){return{key:e,value:t}}))};return n}));else{var n={key:"".concat(this.algorithmId,"0"),title:"参数",algorithmParams:[]};this.submitForm(n),this.panes=[n]}this.activeKey=this.panes[0].key,this.visible=!0},submitForm:function(t){var e=t.key;this.paneParams[e]?this.paneParams[e]=t.algorithmParams:this.$set(this.paneParams,e,t.algorithmParams),this.setParams()},setParams:function(){for(var t in this.copyPaneParams=Object.assign({},this.paneParams),this.copyPaneParams)-1===t.indexOf(this.algorithmId)&&delete this.copyPaneParams[t]},submitParams:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.btnLoading=!0;var r=this.checkedList.find((function(e){return e.read_id===t.algorithmId}));e&&(r.values=Object.values(e)),this.$emit("change",this.checkedList),this.visible=this.btnLoading=!1},onEdit:function(t,e){this[e](t)},add:function(){var t=this.panes,e=t.length?t.length:0,r="".concat(this.algorithmId).concat(e),n={title:"参数",algorithmParams:[],key:r};this.submitForm(n),this.panes.push(n),this.panes=t,this.activeKey=r},remove:function(t){delete this.paneParams[t],this.setParams();var e,r=this.activeKey;this.panes.forEach((function(r,n){r.key===t&&(e=n-1)}));var n=this.panes.filter((function(e){return e.key!==t}));n.length&&r===t&&(r=e>=0?n[e].key:n[0].key),this.panes=n,this.activeKey=r}},watch:{}},Ul=Hl,Gl=(r("9897"),qr(Ul,Rl,Dl,!1,null,null,null)),zl=Gl.exports,Kl=function(){var t=this,e=t._self._c;return e("div",[e("a-row",{attrs:{type:"flex"}},[e("a-col",{staticStyle:{padding:"24px","background-color":"#fafafa"},attrs:{span:12}},[e("div",{staticStyle:{"text-align":"center","margin-bottom":"24px"}},[t._v(" 可 "),e("a",{on:{click:function(e){t.pickerVisible=!0}}},[t._v(" 选择系统中现有命例 ")]),t._v(" ,快速填充命例信息。 ")]),e("a-form-model",{ref:"profileForm",attrs:{layout:t.formLayout,model:t.profile,rules:t.profileRules}},[e("a-form-model-item",{attrs:{label:"昵称",prop:"nick_name","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入昵称",allowClear:""},model:{value:t.profile.nick_name,callback:function(e){t.$set(t.profile,"nick_name",e)},expression:"profile.nick_name"}})],1),e("a-form-model-item",{attrs:{label:"性别","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-radio-group",{model:{value:t.profile.gender,callback:function(e){t.$set(t.profile,"gender",e)},expression:"profile.gender"}},[e("a-radio",{attrs:{value:"male"}},[t._v("男")]),e("a-radio",{attrs:{value:"female"}},[t._v("女")])],1)],1),e("a-form-model-item",{attrs:{label:"公历","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-radio-group",{on:{change:t.handleLunarChange},model:{value:t.profile.is_lunar,callback:function(e){t.$set(t.profile,"is_lunar",e)},expression:"profile.is_lunar"}},[e("a-radio",{attrs:{value:!1}},[t._v("公历")]),e("a-radio",{attrs:{value:!0}},[t._v("农历")])],1)],1),t.hasDaylight?e("a-form-model-item",{attrs:{label:"夏令时","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-radio-group",{model:{value:t.profile.is_day_light,callback:function(e){t.$set(t.profile,"is_day_light",e)},expression:"profile.is_day_light"}},[e("a-radio",{attrs:{value:!0}},[t._v("是")]),e("a-radio",{attrs:{value:!1}},[t._v("否")])],1)],1):t._e(),e("a-form-model-item",{attrs:{label:"出生日期",prop:"birthday","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[e("a-input",{attrs:{placeholder:"请选择出生日期",allowClear:""},model:{value:t.profile.birthday,callback:function(e){t.$set(t.profile,"birthday",e)},expression:"profile.birthday"}}),e("DateTimePicker",{attrs:{slot:"content",isLunar:t.profile.is_lunar},on:{change:t.handleDateTimeChange},slot:"content"})],1)],1),t.hasLeap?e("a-form-model-item",{attrs:{label:"是否为闰月","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-radio-group",{model:{value:t.profile.is_leap,callback:function(e){t.$set(t.profile,"is_leap",e)},expression:"profile.is_leap"}},[e("a-radio",{attrs:{value:!0}},[t._v("是")]),e("a-radio",{attrs:{value:!1}},[t._v("否")])],1)],1):t._e(),e("a-form-model-item",{attrs:{label:"是否为双胞胎","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-radio-group",{model:{value:t.profile.is_twins,callback:function(e){t.$set(t.profile,"is_twins",e)},expression:"profile.is_twins"}},[e("a-radio",{attrs:{value:!0}},[t._v("是")]),e("a-radio",{attrs:{value:!1}},[t._v("否")])],1),t.profile.is_twins?e("a-input",{attrs:{addonBefore:"第",addonAfter:"胎"},model:{value:t.profile.birth_num,callback:function(e){t.$set(t.profile,"birth_num",e)},expression:"profile.birth_num"}}):t._e()],1),e("a-form-model-item",{attrs:{label:"出生地",prop:"place","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-cascader",{attrs:{options:t.districts,allowClear:"",placeholder:"请选择出生地"},on:{change:t.handleDistrictChange},model:{value:t.profile.place,callback:function(e){t.$set(t.profile,"place",e)},expression:"profile.place"}})],1),e("a-form-model-item",{attrs:{label:"算法","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[t._v(" "+t._s(t.profile.code)+" ")]),e("a-form-model-item",{attrs:{label:"产品编码",prop:"productCode","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入产品编码",allowClear:""},model:{value:t.profile.productCode,callback:function(e){t.$set(t.profile,"productCode",e)},expression:"profile.productCode"}})],1),e("a-form-model-item",{attrs:{label:"产品名称",prop:"productName","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入产品名称",allowClear:""},model:{value:t.profile.productName,callback:function(e){t.$set(t.profile,"productName",e)},expression:"profile.productName"}})],1),t.showMore?t._e():e("p",{staticStyle:{"text-align":"center"}},[e("a-button",{attrs:{type:"link"},on:{click:function(e){t.showMore=!0}}},[t._v("更多设置")])],1),t.showMore?[e("a-form-model-item",{attrs:{label:"姓",prop:"first_name","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入真实姓",allowClear:""},model:{value:t.profile.first_name,callback:function(e){t.$set(t.profile,"first_name",e)},expression:"profile.first_name"}})],1),e("a-form-model-item",{attrs:{label:"名",prop:"last_name","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入真实名",allowClear:""},model:{value:t.profile.last_name,callback:function(e){t.$set(t.profile,"last_name",e)},expression:"profile.last_name"}})],1),e("a-form-model-item",{attrs:{label:"开始时间",prop:"begin_input_time","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.beginTimeVisible,callback:function(e){t.beginTimeVisible=e},expression:"beginTimeVisible"}},[e("a-input",{attrs:{placeholder:"请选择开始时间",allowClear:""},model:{value:t.profile.begin_input_time,callback:function(e){t.$set(t.profile,"begin_input_time",e)},expression:"profile.begin_input_time"}}),e("DateTimePicker",{attrs:{slot:"content"},on:{change:function(e){return t.profile.begin_input_time=e}},slot:"content"})],1)],1),e("a-form-model-item",{attrs:{label:"结束时间",prop:"end_input_time","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.endTimeVisible,callback:function(e){t.endTimeVisible=e},expression:"endTimeVisible"}},[e("a-input",{attrs:{placeholder:"请选择结束时间",allowClear:""},model:{value:t.profile.end_input_time,callback:function(e){t.$set(t.profile,"end_input_time",e)},expression:"profile.end_input_time"}}),e("DateTimePicker",{attrs:{slot:"content"},on:{change:function(e){return t.profile.end_input_time=e}},slot:"content"})],1)],1),e("a-form-model-item",{attrs:{label:"数字占卜",prop:"yicuojin","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入三个数字,以英文逗号分隔(例如:1, 2, 3)",allowClear:""},model:{value:t.profile.yicuojin,callback:function(e){t.$set(t.profile,"yicuojin",e)},expression:"profile.yicuojin"}})],1),e("a-form-model-item",{attrs:{label:"文王卦",prop:"wenwanggua","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入六个字符,以英文逗号分隔(例如:断, 连, 断, 断, 连, 断)",allowClear:""},model:{value:t.profile.wenwanggua,callback:function(e){t.$set(t.profile,"wenwanggua",e)},expression:"profile.wenwanggua"}})],1),e("a-form-model-item",{attrs:{label:"文王卦类型",prop:"wenwanggualeixing","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-select",{attrs:{placeholder:"请选择文王卦类型"},on:{change:function(e){return t.profile.wenwanggualeixing=e}}},t._l(t.wenwangguaType,(function(r){return e("a-select-option",{key:r,attrs:{value:r}},[t._v(" "+t._s(r)+" ")])})),1)],1),e("a-form-model-item",{attrs:{label:"大六壬占时",prop:"daliurenzhanshi","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入时辰(例如:子)",allowClear:""},model:{value:t.profile.daliurenzhanshi,callback:function(e){t.$set(t.profile,"daliurenzhanshi",e)},expression:"profile.daliurenzhanshi"}})],1),e("a-form-model-item",{attrs:{label:"当前时间",prop:"now_time","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.nowTimeVisible,callback:function(e){t.nowTimeVisible=e},expression:"nowTimeVisible"}},[e("a-input",{attrs:{placeholder:"请选择当前时间",allowClear:""},model:{value:t.profile.now_time,callback:function(e){t.$set(t.profile,"now_time",e)},expression:"profile.now_time"}}),e("DateTimePicker",{attrs:{slot:"content"},on:{change:function(e){return t.profile.now_time=e}},slot:"content"})],1)],1),e("a-form-model-item",{attrs:{label:"答题测试结果",prop:"test_result","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入测试结果(例如:分数或者 A、B、C、D)",allowClear:""},model:{value:t.profile.test_result,callback:function(e){t.$set(t.profile,"test_result",e)},expression:"profile.test_result"}})],1),e("a-form-model-item",{attrs:{label:"DISC 测试结果",prop:"disc_result","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入测试结果(例如:1,2,3,4)",allowClear:""},model:{value:t.profile.disc_result,callback:function(e){t.$set(t.profile,"disc_result",e)},expression:"profile.disc_result"}})],1)]:t._e()],2),e("div",{staticStyle:{"text-align":"center"}},[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit("0")}}},[t._v("立即测算")])],1)],1),e("a-col",{attrs:{span:12}},[t.codeValue?e("CodeEditor",{attrs:{width:"100%",value:t.codeValue}}):e("div",{staticStyle:{border:"1px solid #eee",height:"100%",position:"relative"}},[e("a-empty",{staticStyle:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"},attrs:{description:"暂无测试结果"}})],1)],1)],1),e("a-modal",{attrs:{title:"选择命例",width:720,bodyStyle:{maxHeight:"480px",overflow:"auto"}},on:{ok:t.confirm},model:{value:t.pickerVisible,callback:function(e){t.pickerVisible=e},expression:"pickerVisible"}},[e("ProfileSelect",{on:{select:t.handleProfileSelect}})],1),e("a-button",{staticStyle:{position:"fixed",bottom:"10px",left:"106px"},attrs:{type:"primary"},on:{click:function(e){return t.submit("1")}}},[t._v(" 发布产品 ")])],1)},Yl=[],Wl={computed:{districts:function(){var t=this.$store.state["m-algorithm"].district,e=t&&t.filter((function(t){return"1"===t.level})),r=t&&t.filter((function(t){return"2"===t.level})),n=t&&t.filter((function(t){return"3"===t.level}));return e.map((function(t){return{value:t.district_id,label:t.district_name,children:r.filter((function(e){return e.parent===t.district_id})).map((function(t){return{value:t.district_id,label:t.district_name,children:n.filter((function(e){return e.parent===t.district_id})).map((function(t){return{value:t.district_id,label:t.district_name,time_zone:t.time_zone}}))}}))}}))||[]}}},Zl=function(){var t=this,e=t._self._c;return e("div",{ref:"monaco",staticStyle:{border:"1px solid #e8e8e8"},style:{width:t.width,height:t.height}})},Jl=[],Xl=r("2364"),Ql=null,tu={props:{width:{type:String,default:"800px"},height:{type:String,default:"600px"},value:{type:[Array,String],default:function(){return["function x() {",'\tconsole.log("Hello world!");',"}"]}}},mounted:function(){this.getResult(this.value)},methods:{getResult:function(t){Ql&&Ql.dispose();var e=Xl["Uri"].parse("json://grid/settings.json");Ql=Xl["editor"].create(this.$refs.monaco,{value:JSON.stringify(t,null,"\t"),language:"json",Uri:e})}},watch:{value:function(t){this.getResult(t)}}},eu=tu,ru=qr(eu,Zl,Jl,!1,null,null,null),nu=ru.exports,ou=function(){var t=this,e=t._self._c;return e("a-row",{staticClass:"custom-datepicker",attrs:{type:"flex"}},[e("a-col",[e("ul",t._l(t.years,(function(r,n){return e("li",{key:n,class:{active:t.value.yearIndex===n},on:{click:function(e){return t.change("year",n)}}},[t._v(" "+t._s(r)+"年 ")])})),0)]),e("a-col",[e("ul",t._l(t.months,(function(r,n){return e("li",{key:r,class:{active:t.value.monthIndex===n},on:{click:function(e){return t.change("month",n)}}},[t._v(" "+t._s(r)+"月 ")])})),0)]),e("a-col",[e("ul",t._l(t.days,(function(r,n){return e("li",{key:r,class:{active:t.value.dayIndex===n},on:{click:function(e){return t.change("day",n)}}},[t._v(" "+t._s(r)+"日 ")])})),0)]),e("a-col",[e("ul",t._l(t.hours,(function(r,n){return e("li",{key:r,class:{active:t.value.hourIndex===n},on:{click:function(e){return t.change("hour",n)}}},[t._v(" "+t._s(r)+"时 ")])})),0)]),e("a-col",[e("ul",t._l(t.minutes,(function(r,n){return e("li",{key:r,class:{active:t.value.minuteIndex===n},on:{click:function(e){return t.change("minute",n)}}},[t._v(" "+t._s(r)+"分 ")])})),0)])],1)},iu=[],au=[],su=[],cu=[],lu=[],uu=1901;uu<=2030;uu++)au.push("".concat(uu));for(var fu=1;fu<=12;fu++)su.push(fu<10?"0".concat(fu):"".concat(fu));for(var hu=0;hu<=23;hu++)cu.push(hu<10?"0".concat(hu):"".concat(hu));for(var du=0;du<=59;du++)lu.push(du<10?"0".concat(du):"".concat(du));var pu={props:{isLunar:{type:Boolean,default:!1}},data:function(){return{years:au,year:"1901",months:su,month:"01",day:"01",hours:cu,hour:"00",minutes:lu,minute:"00"}},computed:{days:function(){var t=[];if(this.isLunar)for(var e=1;e<=30;e++)t.push(e<10?"0".concat(e):"".concat(e));else if(["01","03","05","07","08","10","12"].includes(this.month))for(var r=1;r<=31;r++)t.push(r<10?"0".concat(r):"".concat(r));else if(["04","06","09","11"].includes(this.month))for(var n=1;n<=30;n++)t.push(n<10?"0".concat(n):"".concat(n));else if("02"===this.month)if(parseInt(this.year)%4===0&&parseInt(this.year)%100!==0||parseInt(this.year)%400===0)for(var o=1;o<=29;o++)t.push(o<10?"0".concat(o):"".concat(o));else for(var i=1;i<=28;i++)t.push(i<10?"0".concat(i):"".concat(i));return t},value:function(){var t=this.years.indexOf(this.year),e=this.months.indexOf(this.month),r=this.days.indexOf(this.day),n=this.hours.indexOf(this.hour),o=this.minutes.indexOf(this.minute);return{yearIndex:t,monthIndex:e,dayIndex:r,hourIndex:n,minuteIndex:o}}},created:function(){},methods:{change:function(t,e){"year"===t?this.year=this.years[e]:"month"===t?this.month=this.months[e]:"day"===t?this.day=this.days[e]:"hour"===t?this.hour=this.hours[e]:"minute"===t&&(this.minute=this.minutes[e]);var r="".concat(this.year,"-").concat(this.month,"-").concat(this.day," ").concat(this.hour,":").concat(this.minute);this.$emit("change",r)}}},vu=pu,yu=(r("6d57"),qr(vu,ou,iu,!1,null,null,null)),mu=yu.exports,gu=function(){var t=this,e=t._self._c;return e("div",[e("a-input",{staticStyle:{width:"200px","margin-bottom":"24px"},attrs:{placeholder:"昵称",allowClear:""},on:{change:t.handleNameChange},model:{value:t.nickName,callback:function(e){t.nickName=e},expression:"nickName"}}),e("a-table",{attrs:{columns:t.columns,loading:t.loading,"data-source":t.userCase(),rowSelection:t.rowSelection,pagination:{current:t.getPagination?parseInt(t.getPagination.current):1,total:t.getPagination?parseFloat(t.getPagination.count):0,defaultPageSize:15},rowKey:"profile_id"},on:{change:t.handleChange},scopedSlots:t._u([{key:"gender",fn:function(r){return e("span",{},[t._v(" "+t._s("female"===r?"女":"男")+" ")])}}])})],1)},bu=[],wu=[{title:"昵称",dataIndex:"nick_name",key:"nick_name"},{title:"姓氏",dataIndex:"first_name",key:"first_name"},{title:"名字",dataIndex:"last_name",key:"last_name"},{title:"性别",dataIndex:"gender",key:"gender",scopedSlots:{customRender:"gender"}},{title:"生日",dataIndex:"birthday",key:"birthday"}],_u={mixins:[Tl],data:function(){return{columns:wu,rowSelection:{type:"radio",onSelect:this.onSelect},nickName:"",currentPage:1}},created:function(){this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage}})},computed:{getPagination:function(){return this.data["user-case"]?this.data["user-case"].pagination:null}},methods:{userCase:function(){return this.data["user-case"]?this.data["user-case"].collection:[]},onSelect:function(t){this.$emit("select",t)},handleChange:function(t){this.currentPage=t.current,this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage}}),this.userCase()},handleNameChange:function(t){this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage,nick_name:this.nickName}})}}},xu=_u,ku=qr(xu,gu,bu,!1,null,null,null),Ou=ku.exports;function Eu(t){return Eu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eu(t)}function Su(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Su=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Eu(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Eu(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function ju(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Nu(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ju(i,n,o,a,s,"next",t)}function s(t){ju(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Lu=["流年","流月","商务","健康","婚姻","爱情","工作","出行","学业","财运","家宅"],Pu={mixins:[Tl,Wl],props:["algorithmList"],components:{CodeEditor:nu,DateTimePicker:mu,ProfileSelect:Ou},data:function(){return{visible:!1,beginTimeVisible:!1,endTimeVisible:!1,nowTimeVisible:!1,showMore:!1,formLayout:"horizontal",formItemLayout:{labelCol:{span:6},wrapperCol:{span:14}},codeValue:null,wenwangguaType:Lu,profile:{nick_name:"",gender:"male",is_lunar:!1,birthday:null,place:[],is_twins:!1,is_leap:!1,birth_num:0,time_zone:8,is_day_light:!1,province:"",city:"",district:"",code:JSON.stringify(this.algorithmList)||"",productCode:"",productName:"",is_submit:"",first_name:"",last_name:"",begin_input_time:"",end_input_time:"",yicuojin:"",wenwanggua:"",wenwanggualeixing:"",daliurenzhanshi:"",now_time:"",test_result:"",disc_result:""},systemProfile:{},profileRules:{productCode:[{required:!0,message:"请输入产品编码",trigger:"blur"}],productName:[{required:!0,message:"请输入产品名称",trigger:"blur"}]},hasLeap:!1,hasDaylight:!1,pickerVisible:!1}},created:function(){this.loadDistrict()},methods:{submit:function(t){var e=this;return Nu(Su().mark((function r(){return Su().wrap((function(r){while(1)switch(r.prev=r.next){case 0:e.profile.is_submit=t,e.$refs.profileForm.validate(function(){var r=Nu(Su().mark((function r(n){var o;return Su().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(!n){r.next=10;break}return r.next=3,e.getResult({key:"/api/algorithm-product/algorithm",params:e.profile});case 3:if(o=r.sent,!o||!o.data||"0"!==t){r.next=7;break}return e.codeValue=[JSON.parse(o.data)],r.abrupt("return");case 7:o?(e.$message.success("增加算法产品成功"),e.$emit("close")):e.$message.error(e.message),r.next=11;break;case 10:return r.abrupt("return",!1);case 11:case"end":return r.stop()}}),r)})));return function(t){return r.apply(this,arguments)}}());case 2:case"end":return r.stop()}}),r)})))()},handleDistrictChange:function(t,e){e&&e.length?(this.profile.province=e[0].label,this.profile.city=e[1].label,this.profile.district=e[2].label,this.profile.time_zone=e[e.length-1].time_zone):(this.profile.province="",this.profile.city="",this.profile.district="",this.profile.time_zone=8)},handleDateTimeChange:function(t){this.profile.birthday=t,this.bindHasLunar(this.profile.birthday),this.bindDaylight(this.profile.birthday)},handleLunarChange:function(){this.profile.birthday&&(this.bindHasLunar(this.profile.birthday),this.bindDaylight(this.profile.birthday))},timeStamp:function(t){return new Date(t).getTime()},bindHasLunar:function(t){var e=t?t.substring(4,0):"",r=t?t.substring(5,7):"",n=this.lunarLeapMonthOfYear(e)<10?"0"+this.lunarLeapMonthOfYear(e).toString():this.lunarLeapMonthOfYear(e).toString();this.profile.is_lunar&&(r===n&&"00"!==n?(this.hasLeap=!0,this.profile.is_leap=!0):(this.hasLeap=!1,this.profile.is_leap=!1))},bindDaylight:function(t){if(""!==t){var e=t.replace(/-/g,"/"),r=this.timeStamp(e),n=[];n=this.profile.is_lunar?[{start:this.timeStamp("1986/03/26 02:00"),end:this.timeStamp("1986/08/11 02:00")},{start:this.timeStamp("1987/03/15 02:00"),end:this.timeStamp("1987/07/21 02:00")},{start:this.timeStamp("1988/02/24 02:00"),end:this.timeStamp("1988/08/01 02:00")},{start:this.timeStamp("1989/03/11 02:00"),end:this.timeStamp("1989/08/18 02:00")},{start:this.timeStamp("1990/03/20 02:00"),end:this.timeStamp("1990/07/28 02:00")},{start:this.timeStamp("1991/02/30 02:00"),end:this.timeStamp("1991/08/08 02:00")}]:[{start:this.timeStamp("1986/05/04 02:00"),end:this.timeStamp("1986/09/14 02:00")},{start:this.timeStamp("1987/04/12 02:00"),end:this.timeStamp("1987/09/13 02:00")},{start:this.timeStamp("1988/04/10 02:00"),end:this.timeStamp("1988/09/11 02:00")},{start:this.timeStamp("1989/04/16 02:00"),end:this.timeStamp("1989/09/17 02:00")},{start:this.timeStamp("1990/04/15 02:00"),end:this.timeStamp("1990/09/16 02:00")},{start:this.timeStamp("1991/04/14 02:00"),end:this.timeStamp("1991/09/15 02:00")}],n.length&&(r>=n[0].start&&r<=n[0].end||r>=n[1].start&&r<=n[1].end||r>=n[2].start&&r<=n[2].end||r>=n[3].start&&r<=n[3].end||r>=n[4].start&&r<=n[4].end||r>=n[5].start&&r<=n[5].end)?(this.hasDaylight=!0,this.profile.is_day_light=!0):(this.hasDaylight=!1,this.profile.is_day_light=!1)}},lunarLeapMonthOfYear:function(t){var e=[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42448,83315,21200,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46496,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,21952,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19415,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448];return 15&e[t-1900]},handleProfileSelect:function(t){this.systemProfile={},this.systemProfile=t},confirm:function(){this.profile.nick_name=this.systemProfile.nick_name||this.systemProfile.nick_name,this.profile.gender=this.systemProfile.gender||this.profile.gender,this.profile.is_lunar=this.systemProfile.is_lunar||this.profile.is_lunar,this.profile.birthday=this.systemProfile.birthday||this.profile.birthday,this.profile.province=this.systemProfile.province||this.profile.province,this.profile.city=this.systemProfile.city||this.profile.city,this.profile.district=this.systemProfile.district||this.profile.district,this.profile.place=this.checkProfilePlace(this.profile.province,this.profile.city,this.profile.district)||this.profile.district,this.profile.is_twins=!!(this.systemProfile.birth_num&&this.systemProfile.birth_num>0),this.profile.is_leap=this.systemProfile.is_leap||this.profile.is_leap,this.profile.birth_num=this.systemProfile.birth_num||this.profile.birth_num,this.profile.time_zone=this.systemProfile.time_zone||this.profile.time_zone,this.profile.is_day_light=this.systemProfile.is_day_light||this.profile.is_day_light,this.pickerVisible=!1},checkProfilePlace:function(t,e,r){var n=this.$store.state["m-algorithm"].district,o=n.find((function(e){return e.district_name===t}))?n.find((function(e){return e.district_name===t})).district_id:"",i=n.find((function(t){return t.district_name===e}))?n.find((function(t){return t.district_name===e})).district_id:"",a=n.find((function(t){return t.district_name===r}))?n.find((function(t){return t.district_name===r})).district_id:"";return[o,i,a]}},watch:{algorithmList:function(t){this.profile.code=JSON.stringify(t)}}},Cu=Pu,Au=qr(Cu,Kl,Yl,!1,null,null,null),Tu=Au.exports;function Ru(t){return Ru="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ru(t)}function Du(t){return Bu(t)||qu(t)||Mu(t)||Iu()}function Iu(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Mu(t,e){if(t){if("string"===typeof t)return Fu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fu(t,e):void 0}}function qu(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Bu(t){if(Array.isArray(t))return Fu(t)}function Fu(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function $u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Vu(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$u(Object(r),!0).forEach((function(e){Hu(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Hu(t,e,r){return e=Uu(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Uu(t){var e=Gu(t,"string");return"symbol"==Ru(e)?e:String(e)}function Gu(t,e){if("object"!=Ru(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ru(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var zu={mixins:[Tl],components:{CheckboxGroup:zl,AlgorithmForm:Tu},data:function(){return{current:0,steps:[{title:"核心解读"},{title:"描述解读"},{title:"排盘数据"},{title:"术数分析"},{title:"算法验证及发布"}],nameKeyword:"",codeKeyword:"",search:{nameKeyword:"",codeKeyword:""},type:"核心解读",showTime:{format:"HH:mm"},badgeStyle:{backgroundColor:"#8c8c8c"},pickerVisible:!1,defaultCheckedList:[]}},created:function(){this.loadData({key:"algorithm-read",query:{_size:9999}})},computed:{algorithmData:function(){var t=this,e=this.data["algorithm-read"]&&this.data["algorithm-read"].collection,r=e&&e.filter((function(e){return""!==t.search.nameKeyword||""!==t.search.codeKeyword?e.classify===t.type&&-1!==e.name.indexOf(t.search.nameKeyword)&&-1!==e.code.indexOf(t.search.codeKeyword):e.classify===t.type})).map((function(e){var r=Vu(Vu({},e),{},{values:[],checked:!1});return t.checkedList.length&&t.checkedList.forEach((function(e){e.read_id===r.read_id&&(t.$set(r,"values",e.values),t.$set(r,"checked",e.checked))})),r})),n=Du(new Set(r&&r.map((function(t){return t.classify})))),o=n&&n.map((function(t){var e=r.filter((function(e){return e.classify===t})),n=Du(new Set(e.map((function(t){return t.type})))),o=n.map((function(t){return{name:t,children:e.filter((function(e){return e.type===t}))}}));return{name:t,children:o}}));return o||[]},algorithmCount:function(){var t=this.defaultCheckedList,e=t.filter((function(t){return"核心解读"===t.classify})).length||0,r=t.filter((function(t){return"描述解读"===t.classify})).length||0,n=t.filter((function(t){return"排盘数据"===t.classify})).length||0,o=t.filter((function(t){return"术数分析"===t.classify})).length||0;return{coreAlgorithmCount:e,describeAlgorithmCount:r,paipanDataCount:n,surgeryAnalysisCount:o}},algorithmList:function(){var t=this.defaultCheckedList,e=[],r=[];return t.forEach((function(n){var o=n.code;r=n.values.length>1?n.values.map((function(t,e){var r=e+1,n=1===r?o:r<10?"".concat(o,"_0").concat(r):"".concat(o,"_").concat(r);return[n,t||[]]})):t.map((function(t){return[t.code,t.values.length?t.values[0]:[]]})),e=[].concat(Du(e),Du(r))})),Object.fromEntries(e)},checkedList:function(){return this.defaultCheckedList||[]}},methods:{next:function(){this.current++,this.type=this.steps[this.current].title},prev:function(){this.current--,this.type=this.steps[this.current].title},handleChange:function(t,e,r,n){var o=this;t.forEach((function(t){var e=o.defaultCheckedList.findIndex((function(e){return e.read_id===t.read_id}));-1===e?o.defaultCheckedList=[].concat(Du(o.defaultCheckedList),[t]):o.defaultCheckedList[e]=t}))},onSearch:function(){this.search.nameKeyword=this.nameKeyword,this.search.codeKeyword=this.codeKeyword},algorithmTotal:function(t){var e=t.map((function(t){return t.read_id})),r=this.checkedList.map((function(t){return t.read_id}));return e.filter((function(t){return r.includes(t)})).length}},watch:{nameKeyword:function(t){""===t&&this.onSearch()},codeKeyword:function(t){""===t&&this.onSearch()}}},Ku=zu,Yu=(r("4dd6"),qr(Ku,vl,yl,!1,null,null,null)),Wu=Yu.exports;function Zu(t){return tf(t)||Qu(t)||Xu(t)||Ju()}function Ju(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Xu(t,e){if(t){if("string"===typeof t)return ef(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ef(t,e):void 0}}function Qu(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function tf(t){if(Array.isArray(t))return ef(t)}function ef(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var rf=function(){var t=this,e=t._self._c;return e("div",[e("a-transfer",{staticClass:"tree-transfer",attrs:{"data-source":t.dataSource,"target-keys":t.checkedKeys,render:function(t){return t.title},"show-select-all":!1,"list-style":{maxHeight:"450px",overflowY:"auto"},showSearch:t.showSearch},on:{change:t.onChange,search:t.handleSearch},scopedSlots:t._u([{key:"children",fn:function(r){var n=r.props,o=n.direction,i=n.selectedKeys,a=r.on.itemSelect;return["left"===o?e("a-spin",{attrs:{spinning:t.leftLoding}},[e("a-tree",{attrs:{blockNode:"",checkable:"",checkStrictly:"",checkedKeys:[].concat(Zu(i),Zu(t.checkedKeys)),treeData:t.filterTreeNodes},on:{check:function(e,r){t.onChecked(e,r,[].concat(Zu(i),Zu(t.checkedKeys)),a)},select:function(e,r){t.onChecked(e,r,[].concat(Zu(i),Zu(t.checkedKeys)),a)}}})],1):t._e()]}}])})],1)},nf=[];function of(t){return of="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},of(t)}function af(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */af=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==of(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(of(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function sf(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function cf(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){sf(i,n,o,a,s,"next",t)}function s(t){sf(i,n,o,a,s,"throw",t)}a(void 0)}))}}function lf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function uf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lf(Object(r),!0).forEach((function(e){ff(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ff(t,e,r){return e=hf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hf(t){var e=df(t,"string");return"symbol"==of(e)?e:String(e)}function df(t,e){if("object"!=of(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=of(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var pf={mixins:[hn],data:function(){var t=this;return{targetKeys:[],dataSource:[],checkedKeys:this.params.data?this.params.data.map((function(e){return e[t.params.valueName]})):[],treeData:this.params.treeData||[],titleName:this.params.titleName,keyName:this.params.keyName,valuesName:this.params.valuesName,selected:this.params.selected||null,unselected:this.params.unselected||null,inputValue:"",leftLoding:!1}},computed:{treeNodes:function(){var t=this.treeData,e=this.titleName,r=this.keyName,n=this.checkedKeys,o=this.selected,i=this.unselected,a=function t(a){return a.map((function(a){var s;return a._childList&&(s=t(a._childList)),{title:a[e],key:a[r],children:s,disabled:n.includes(a[r])||o&&!we(o,a)||i&&we(i,a)}}))};return a(t)},filterTreeNodes:function(){var t=this;return this.inputValue?this.treeNodes.filter((function(e){return-1!==e.title.indexOf(t.inputValue)})):this.treeNodes},multiple:function(){return void 0===this.params.multiple||this.params.multiple},showSearch:function(){return void 0===this.params.showSearch||this.params.showSearch}},created:function(){this.treeNodes&&this.flatten(JSON.parse(JSON.stringify(this.treeNodes))),this.checkedKeys&&(this.actionModel=uf(uf({},this.actionModel),{},ff({},this.valuesName,this.checkedKeys)))},methods:{onChange:function(t,e){if((this.checkedKeys.length>1||t.length>1)&&"right"===e&&!this.multiple)return this.$message.error("只能选择 1 个人!"),!1;this.checkedKeys=t,this.actionModel=uf(uf({},this.actionModel),{},ff({},this.valuesName,this.checkedKeys))},isChecked:function(t,e){return-1!==t.indexOf(e)},onChecked:function(t,e,r,n){var o=e.node.eventKey;n(o,!this.isChecked(r,o))},flatten:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((function(e){t.dataSource.push({title:e.title,key:e.key}),e.children&&t.flatten(e.children)}))},handleSubmit:function(){var t=this;return cf(af().mark((function e(){return af().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.handleCommit();case 1:case"end":return e.stop()}}),e)})))()},handleSearch:function(t,e){var r=this,n=null;"left"===t&&(this.leftLoding=!0,n=setTimeout((function(){n&&clearTimeout(n),r.inputValue=e,r.leftLoding=!1}),1e3))}}},vf=pf,yf=(r("2387"),qr(vf,rf,nf,!1,null,"0ce5108d",null)),mf=yf.exports,gf=function(){var t=this,e=t._self._c;return e("a-tree",{attrs:{checkable:"",autoExpandParent:t.autoExpandParent,defaultCheckedKeys:t.checkedKeys,treeData:t.treeNodes,checkStrictly:""},on:{check:t.handleCheck}})},bf=[];function wf(t){return wf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wf(t)}function _f(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==wf(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(wf(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function xf(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function kf(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){xf(i,n,o,a,s,"next",t)}function s(t){xf(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Of(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ef(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Of(Object(r),!0).forEach((function(e){Sf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Of(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Sf(t,e,r){return e=jf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jf(t){var e=Nf(t,"string");return"symbol"==wf(e)?e:String(e)}function Nf(t,e){if("object"!=wf(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=wf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Lf={mixins:[hn],data:function(){var t=this;return{autoExpandParent:!0,checkedKeys:this.params.data.map((function(e){return e[t.params.valueName]})),treeData:this.params.treeData||[],titleName:this.params.titleName,keyName:this.params.keyName,valueName:this.params.valueName,valuesName:this.params.valuesName}},computed:{treeNodes:function(){var t=this.treeData,e=this.titleName,r=this.keyName,n=function t(n){return n.map((function(n){var o;return n._childList&&(o=t(n._childList)),{title:n[e],key:n[r],children:o}}))};return n(t)}},created:function(){this.checkedKeys&&(this.actionModel=Ef(Ef({},this.actionModel),{},Sf({},this.valuesName,this.checkedKeys)))},methods:{handleCheck:function(t,e){var r=t.checked;if(r.includes(e.node.eventKey)){var n=e.node;while(n&&n.eventKey)r.includes(n.eventKey)||r.push(n.eventKey),n=n.$parent}this.actionModel=Ef(Ef({},this.actionModel),{},Sf({},this.valuesName,r))},handleSubmit:function(){var t=this;return kf(_f().mark((function e(){return _f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.handleCommit();case 1:case"end":return e.stop()}}),e)})))()}}},Pf=Lf,Cf=qr(Pf,gf,bf,!1,null,null,null),Af=Cf.exports,Tf=function(){var t=this,e=t._self._c;return e("a-table",{attrs:{columns:t.cols,"data-source":t.treeData,rowKey:"type_id",scroll:{y:400},pagination:!1,rowSelection:{selectedRowKeys:t.selectedRowKeys,onChange:t.handleRowChange,onSelect:t.handleRowSelect,type:"checkbox"}},scopedSlots:t._u([{key:"expert",fn:function(r,n){return e("span",{},[e("a-select",{staticStyle:{width:"120px"},attrs:{placeholder:"请选择",allowClear:""},on:{change:function(e){return t.handleSelectChange(e,n)}}},t._l(t.experts,(function(r){return e("a-select-option",{key:r.expert_id,attrs:{value:r.expert_id}},[t._v(" "+t._s(r.expert_name)+" ")])})),1)],1)}}])})},Rf=[];function Df(t){return Df="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Df(t)}function If(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Mf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?If(Object(r),!0).forEach((function(e){qf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):If(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qf(t,e,r){return e=Bf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bf(t){var e=Ff(t,"string");return"symbol"==Df(e)?e:String(e)}function Ff(t,e){if("object"!=Df(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Df(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function $f(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Df(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Df(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Vf(t){return zf(t)||Gf(t)||Uf(t)||Hf()}function Hf(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Uf(t,e){if(t){if("string"===typeof t)return Kf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kf(t,e):void 0}}function Gf(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function zf(t){if(Array.isArray(t))return Kf(t)}function Kf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Yf(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Wf(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Yf(i,n,o,a,s,"next",t)}function s(t){Yf(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Zf={mixins:[hn],computed:{selectedRowKeys:function(){return this.selections.map((function(t){return t.type_id}))}},data:function(){return{treeData:this.params.treeData||[],valuesName:this.params.valuesName,cols:[{title:"评审技术要求",dataIndex:"review_tech_require",key:"review_tech_require"},{title:"评审专家",key:"expert",scopedSlots:{customRender:"expert"}}],experts:[],selections:[]}},created:function(){var t=this;return Wf($f().mark((function e(){var r,n;return $f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$api.get("/api/view-select-expert");case 3:r=e.sent,n=r.data.collection,t.experts=Vf(n),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),t.handleError(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))()},methods:{handleSelectChange:function(t,e){var r=this.treeData.findIndex((function(t){return t.type_id===e.type_id}));-1!==r&&(this.treeData[r].expert_id=t)},handleSubmit:function(){this.handleCommit()},handleRowChange:function(t,e){this.selections=e,this.actionModel=Mf(Mf({},this.actionModel),{},qf({},this.valuesName,this.selections))},handleRowSelect:function(t,e){var r=this.treeData.findIndex((function(e){return e.type_id===t.type_id}));-1!==r&&(this.treeData[r].checked=e?1:0)},handleError:function(t){t.response||this.$message.error("网络请求错误,请检查您的网络连接。");var e=t.response,r=e.status,n=e.data,o=n&&n.content||"系统错误请与管理员联系。";this.$message.error("".concat(r,", ").concat(o))}}},Jf=Zf,Xf=qr(Jf,Tf,Rf,!1,null,null,null),Qf=Xf.exports,th=function(){var t=this,e=t._self._c;return e("a-form-model",{ref:"form",staticStyle:{"min-height":"400px"},attrs:{model:t.actionModel,rules:t.rules}},[e("a-tabs",{attrs:{"tab-position":"top",size:"small"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.actionModel.confirm?e("a-tab-pane",{key:"1",staticClass:"flow-approve-content",attrs:{tab:"上报/审批",bodyStyle:{"overflow-y":"auto","max-height":"350px"}}},[t.actionModel.flow_action_name?e("div",{staticStyle:{"margin-bottom":"15px"}},[e("a-form-model-item",{attrs:{prop:"flow_action_name",size:"small"}},[e("a-radio-group",{attrs:{defaultValue:"submit"},model:{value:t.actionModel.flow_action_name,callback:function(e){t.$set(t.actionModel,"flow_action_name",e)},expression:"actionModel.flow_action_name"}},[e("a-radio-button",{attrs:{value:"submit"}},[t._v("审批通过")]),t.allowBack?e("a-radio-button",{attrs:{value:"back"}},[t._v(" 审批退回 ")]):t._e(),t.allowReassign?e("a-radio-button",{attrs:{value:"reassign"}},[t._v(" 转办 ")]):t._e(),t.allowInvolve?e("a-radio-button",{attrs:{value:"involve"}},[t._v(" 加签 ")]):t._e()],1)],1),t._l(t.attrs,(function(r){return[!r.scope||r.scope.includes(t.actionModel.flow_action_name)?e("Item",{key:r.name,attrs:{formModel:t.actionModel,prop:r.name,schema:r,required:r.required,params:{}},on:{change:function(e){return t.handleItemChange(e,r)}},model:{value:t.actionModel[r.name],callback:function(e){t.$set(t.actionModel,r.name,e)},expression:"actionModel[attr.name]"}}):t._e()]})),e("a-form-model-item",{attrs:{label:["reassign","involve"].includes(t.actionModel.flow_action_name)?"备注":"审批意见",prop:"deal_note",size:"small"}},[e("a-textarea",{attrs:{placeholder:"请输入".concat(["reassign","involve"].includes(t.actionModel.flow_action_name)?"备注":"审批或退回意见"),"auto-size":{minRows:4,maxRows:6}},model:{value:t.actionModel.deal_note,callback:function(e){t.$set(t.actionModel,"deal_note",e)},expression:"actionModel.deal_note"}})],1),"back"===t.actionModel.flow_action_name&&t.backs&&t.backs.length?e("a-form-model-item",{attrs:{label:"退回步骤",prop:"deal_note",size:"small"}},[e("a-select",{model:{value:t.actionModel.back_step,callback:function(e){t.$set(t.actionModel,"back_step",e)},expression:"actionModel.back_step"}},t._l(t.backs,(function(r){return e("a-select-option",{key:r.step_id,attrs:{value:r.step_id}},[t._v(" "+t._s(r.step_name)+" ")])})),1)],1):t._e(),t.allowOver?e("a-form-model-item",{attrs:{label:"结束工作流",prop:"allow_over",size:"small"}},[e("a-switch",{model:{value:t.actionModel.is_over,callback:function(e){t.$set(t.actionModel,"is_over",e)},expression:"actionModel.is_over"}})],1):t._e()],2):t._e(),t.actionModel.flow_action_name?t._e():e("a-card",{style:{marginBottom:t.actionModel.flow_action_name?"15px":"0"},attrs:{bordered:!!t.actionModel.flow_action_name}},t._l(t.attrs,(function(r){return e("Item",{key:r.name,attrs:{formModel:t.actionModel,prop:r.name,schema:r,params:{}},on:{change:function(e){return t.handleItemChange(e,r)}},model:{value:t.actionModel[r.name],callback:function(e){t.$set(t.actionModel,r.name,e)},expression:"actionModel[attr.name]"}})})),1),t.todos.length&&!["back","reassign","involve"].includes(t.actionModel.flow_action_name)&&t.todos[0].todo_actors.length?t._l(t.todos,(function(r,n){return e("div",{key:r.todo_id},[t.actionModel.flow_action_name?e("h4",[t._v("后续步骤")]):t._e(),e("div",{staticClass:"ant-table ant-table-scroll-position-left ant-table-small workflow-table"},[e("div",{staticClass:"ant-table-content"},[e("div",{staticClass:"ant-table-body"},[e("table",[e("thead",{staticClass:"ant-table-thead"},[e("tr",[e("th",{key:"no",attrs:{width:"10%"}},[e("span",[t._v("序号")])]),e("th",{key:"template_name"},[e("span",[t._v("下一步步骤名称")])]),e("th",{key:"template_desc"},[e("span",[t._v("下一步审批者")])])])]),e("tbody",{staticClass:"ant-table-tbody"},[e("tr",{staticClass:"ant-table-row ant-table-row-level-0"},[e("td",[e("p",{staticStyle:{padding:"12px 0"}},[t._v(t._s(n+1))])]),e("td",[e("p",{staticStyle:{padding:"12px 0"}},[t._v(" "+t._s(r.current_step.step_name)+" ")])]),e("td",[e("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{placeholder:"搜索姓名","enter-button":""},on:{search:function(e){return t.operatorNameValue=e}}}),e("a-table",{attrs:{dataSource:t.filterOperators(r.todo_actors.map((function(t){return t.operator}))),rowKey:"actor_id",rowSelection:t.rowSelection,pagination:!1,size:"middle"}},[e("a-table-column",{key:"actor_name",attrs:{title:"姓名",dataIndex:"actor_name"}}),e("a-table-column",{key:"actor_org_name",attrs:{title:"所在单位/部门",dataIndex:"actor_org_name"}})],1)],1)])])])])])])])})):t._e()],2):t._e(),e("a-tab-pane",{key:t.actionModel.confirm?"2":"1",attrs:{tab:"审批记录"}},[e("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px",padding:"20px"}}},[e("a-list",{attrs:{itemLayout:"horizontal",dataSource:t.logs},scopedSlots:t._u([{key:"renderItem",fn:function(r){return e("a-list-item",{},[e("a-list-item-meta",[e("div",{attrs:{slot:"title"},slot:"title"},[t._v(" "+t._s(r.step_name)+" - "+t._s(r.operator.actor_name)+" - "+t._s(r.operator.actor_org_name)+" ")]),t.$store.state.app.icon?e("a-avatar",{attrs:{slot:"avatar",src:t.$store.state.app.icon},slot:"avatar"}):e("a-avatar",{attrs:{slot:"avatar",icon:"user"},slot:"avatar"}),e("div",{attrs:{slot:"description"},slot:"description"},[e("div",[t._v(" "+t._s(r.deal_desc)+" ")]),r.deal_note?e("div",[t._v(" 审批意见:"+t._s(r.deal_note)+" ")]):t._e(),e("div",[e("a-icon",{attrs:{type:"clock-circle-o"}}),t._v(" "+t._s(t.moment(r.deal_time).format("YYYY-MM-DD HH:mm"))+" ")],1)])],1)],1)}}])})],1)],1),e("a-tab-pane",{key:"3",attrs:{tab:"工作流步骤"}},[e("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px",padding:"20px"}}},[e("a-timeline",t._l(t.steps,(function(r,n){return e("a-timeline-item",{key:r.step_id,attrs:{color:t.stepIndex>n?"blue":t.stepIndex===n?"green":"#999"}},[t._v(" "+t._s(n+1)+". "+t._s(r.step_name)+" "),t.stepIndex>n?e("span",[t._v(" "+t._s(r.operator?"(".concat(r.operator,")"):"")+" ")]):t._e(),t.stepIndex===n?e("span",[t._v(" "+t._s(t.operatorName)+" ")]):t._e()])})),1)],1)],1),e("a-tab-pane",{key:"4",attrs:{tab:"流程图",forceRender:""}},[e("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px"}}},[e("div",{ref:"graph"})])],1)],1)],1)},eh=[],rh=r("336c"),nh=r.n(rh);function oh(t){return oh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oh(t)}function ih(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ih=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==oh(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(oh(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function ah(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function sh(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ah(i,n,o,a,s,"next",t)}function s(t){ah(i,n,o,a,s,"throw",t)}a(void 0)}))}}function ch(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function lh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ch(Object(r),!0).forEach((function(e){uh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ch(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function uh(t,e,r){return e=fh(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fh(t){var e=hh(t,"string");return"symbol"==oh(e)?e:String(e)}function hh(t,e){if("object"!=oh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=oh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}nh.a.track(!1);var dh=r("019f"),ph={mixins:[hn],components:{Item:Ri},data:function(){return{actionModel:lh(lh({},this.values),{},{is_over:!1})||{},todos:this.params.flow&&this.params.flow.flow_data.todo&&this.params.flow.flow_data.todo.constructor===Array?this.params.flow.flow_data.todo:[this.params.flow.flow_data.todo],current:this.params.flow&&this.params.flow.flow_data.case,formItems:this.params.flow&&this.params.flow.flow_data.form_param||[],backs:this.params.flow&&this.params.flow.flow_data.back_step,allowBack:this.params.flow&&this.params.flow.flow_data.allow_back,allowReassign:this.params.flow&&this.params.flow.flow_data.allow_reassign,allowInvolve:this.params.flow&&this.params.flow.flow_data.allow_involve,allowOver:this.params.flow&&this.params.flow.flow_data.allow_over,caseSteps:this.params.flow&&this.params.flow.model.case_step,logs:this.params.flow&&this.params.flow.flow_data.logs,rowSelection:{onChange:this.handleSelectionChange,columnWidth:"35px",type:this.params&&this.params.rowSelectionType?this.params.rowSelectionType:"checkbox",selectedRowKeys:[]||!1},activeName:"1",operatorNameValue:""}},created:function(){var t=this;if(this.todos&&1===this.todos.length&&this.todos[0].todo_actors&&1===this.todos[0].todo_actors.length&&(this.rowSelection.selectedRowKeys=this.params.flow.flow_data.todo&&this.params.flow.flow_data.todo[0]&&this.params.flow.flow_data.todo[0].todo_actors&&this.params.flow.flow_data.todo[0].todo_actors.map((function(t){return t.operator.actor_id})),this.actionModel.todo_actors=this.rowSelection.selectedRowKeys),this.todos&&this.todos.forEach((function(e){if(e.next_default_actor&&e.todo_actors){var r=e.todo_actors.map((function(t){return t.operator.actor_id}));t.rowSelection.selectedRowKeys=r.filter((function(t){return e.next_default_actor===t})),t.actionModel.todo_actors=t.rowSelection.selectedRowKeys}})),this.defaultValues)for(var e in this.defaultValues)void 0===this.actionModel[e]&&this.$set(this.actionModel,e,this.defaultValues[e])},mounted:function(){var t=this;setTimeout((function(){t.renderGraph()}),50)},methods:{handleSelectionChange:function(t){this.rowSelection.selectedRowKeys=this.actionModel.todo_actors=t},handleCommit:function(){var t=this;return sh(ih().mark((function e(){return ih().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.todos[0].todo_actors.length||t.actionModel.todo_actors.length||["back","reassign","involve"].includes(t.actionModel.flow_action_name)||t.params.todoActorsNotRequired){e.next=3;break}return t.$message.error("请选择下一步审批者"),e.abrupt("return");case 3:t.$emit("commit",t.actionModel);case 4:case"end":return e.stop()}}),e)})))()},handleItemChange:function(t,e){var r=this;return sh(ih().mark((function n(){var o,i,a,s;return ih().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(o=e.name,!(t instanceof FileList)){n.next=14;break}if(!t[0]){n.next=11;break}return i=new FormData,i.append(o,t[0]),n.next=7,r.$api.post("/upload",i);case 7:a=n.sent,t=a.data.data[o],n.next=12;break;case 11:t=null;case 12:n.next=15;break;case 14:t instanceof Date&&(t=r.moment(t).format("YYYY-MM-DD"));case 15:s=lh({},r.actionModel.data),s[o]=t,r.actionModel.data=lh({},s);case 18:case"end":return n.stop()}}),n)})))()},renderGraph:function(){var t=this;nh.a.registerNode("rect",{getPath:function(t){var e=150,r=40;return nh.a.Util.getRectPath(-e/2,-r/2,e,r,10)}});var e={nodes:this.steps.map((function(t,e){return{id:t.step_id,name:t.step_name,stepIndex:e}})),edges:this.steps.slice(1).map((function(e){var r=t.steps.find((function(t){return t.step_id===e.before_step_id}))||t.steps.find((function(t){return t.after_step_id===e.step_id}));return{source:r&&r.step_id,target:e.step_id}}))},r=new nh.a.Graph({container:this.$refs.graph,fitView:"cc",height:72*this.steps.length,plugins:[new dh({ranksep:30})],defaultIntersectBox:"rect"});r.node({shape:"rect",label:function(t){return t.name},style:function(e){return{stroke:t.stepIndex>e.stepIndex?"#0285cd":t.stepIndex===e.stepIndex?"#52c41a":"#999",fill:"#999",fillOpacity:.3,lineWidth:2}}}),r.edge({style:{endArrow:!0}}),r.read(e)},filterOperators:function(t){var e=this;return this.operatorNameValue?t.filter((function(t){return t.actor_name.toString().toLowerCase().includes(e.operatorNameValue.toLowerCase())})):t}},computed:{lastStepID:function(){return this.logs&&this.logs.length>0&&this.current&&"on-going"===this.current.case_status&&this.todos&&this.todos.length>0?this.todos[0].current_step_id:this.current&&"success"===this.current.case_status?this.caseSteps[this.caseSteps.length-1].step_id:this.caseSteps[0].step_id},stepIndex:function(){var t=this,e=this.steps.findIndex((function(e){return t.lastStepID===e.step_id}));return!this.action||"e.flow-check"!==this.action.action&&"e.flow-submit"!==this.action.action?e:e-1},steps:function(){return this.caseSteps.filter((function(t){return Number(t.valid)}))},attrs:function(){var t=this,e=this.formItems.map((function(t){return t.attr_name})),r=this.view.schema.model.attrs.filter((function(t){return e.includes(t.name)})).map((function(e){var r=t.formItems.find((function(t){return t.attr_name===e.name}));return lh(lh({},e),r)}));return["reassign","involve"].includes(this.actionModel.flow_action_name)?r.filter((function(e){return e.attr_name===t.actionModel.flow_action_name})):r.filter((function(t){return!["reassign","involve"].includes(t.attr_name)}))},defaultValues:function(){var t=this.attrs?this.attrs.filter((function(t){return!!t.value})).map((function(t){return[t.name,t.value]})):[];return t.length?Object.fromEntries(t):null},operatorName:function(){var t=[];return!this.action||"e.flow-check"!==this.action.action&&"e.flow-submit"!==this.action.action?this.logs&&this.logs.length>0&&this.todos&&this.todos.length>0&&this.todos[0].todo_actors?t=this.todos[0].todo_actors.filter((function(t){return"close"!==t.status})).map((function(t){return t.operator_name})):this.logs&&0===this.logs.length&&(t=[this.$store.state.user.name]):t=[this.$store.state.user.name],t.length>0?"(".concat(t.join("、"),")"):""}}},vh=ph,yh=(r("e993"),qr(vh,th,eh,!1,null,null,null)),mh=yh.exports,gh=function(){var t=this,e=t._self._c;return e("a-spin",{staticStyle:{height:"inherit"},attrs:{spinning:t.loading}},[e("a-spin",{staticStyle:{height:"inherit"},attrs:{spinning:!t.init}},[this.isError?t._e():e("div",{staticClass:"jjh",staticStyle:{"background-color":"red"}},[t.init?e("NodeContainer",{attrs:{"business-adapter":t.businessAdapter,"node-data":t.nodeData}}):t._e()],1),t.isError?e("div",[t._v("系统错误! 尝试关闭并重新打开")]):t._e()])],1)},bh=[],wh=function(){var t=this,e=t._self._c;return e("section",{ref:"workflow-box",staticClass:"jjh-workflow-container",attrs:{id:"workflow-box"}},[t.hideZoom?t._e():e("div",{staticClass:"zoom-box"},[e("a-affix",{attrs:{"offset-top":30}},[e("div",{staticStyle:{display:"flex","align-items":"center"}},[e("a-button",{attrs:{disabled:t.zoomScale>=150,shape:"circle"},on:{click:function(e){return t.zoom(10)}}},[t._v(" + ")]),e("div",{staticStyle:{margin:"10px"}},[t._v(t._s(t.zoomScale)+"%")]),e("a-button",{attrs:{disabled:t.zoomScale<=40,shape:"circle"},on:{click:function(e){return t.zoom(-10)}}},[t._v(" - ")])],1)])],1),e("div",{staticClass:"box-scale",style:"transform: scale("+t.zoomScale/100+"); transform-origin: 50% 0px 0px;"},[t.done?e("node-wrap",{key:t.nodeHandler.isPreview,attrs:{"node-config":{node:t.nodeHandler.getStartNode()},"node-handler":t.nodeHandler}}):t._e()],1)])},_h=[];function xh(t){return xh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xh(t)}function kh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Oh(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,jh(n.key),n)}}function Eh(t,e,r){return e&&Oh(t.prototype,e),r&&Oh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Sh(t,e,r){return e=jh(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jh(t){var e=Nh(t,"string");return"symbol"==xh(e)?e:String(e)}function Nh(t,e){if("object"!=xh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=xh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Lh(t,e,r){return Ch(t,e),Ph(r,"get"),Ah(t,r)}function Ph(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}function Ch(t,e){if(t!==e)throw new TypeError("Private static access of wrong provenance")}function Ah(t,e){return e.get?e.get.call(t):e.value}var Th=function(){function t(e,r,n){kh(this,t),Sh(this,"name",void 0),Sh(this,"mode",void 0),Sh(this,"component",void 0),this.name=e,this.mode=r,this.component=n}return Eh(t,null,[{key:"registerNodeType",value:function(e,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){throw new Error("【flow-designer】NodeType: 类型"+e+"不支持创建节点")},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=new t(e,r,n);return Lh(this,t,Rh).set(e,a),Lh(this,t,Dh).set(e,o),i&&Lh(this,t,Ih).set(e,i),a}},{key:"getNodeType",value:function(e){return Lh(this,t,Rh).get(e)}},{key:"getBranchType",value:function(e){return Lh(this,t,Ih).get(e)}},{key:"createNode",value:function(e){if(!Lh(this,t,Dh).has(e))throw new Error("【flow-designer】NodeType: 类型"+e+"不支持创建节点");return Lh(this,t,Dh).get(e)()}},{key:"createWrap",value:function(e){if(!Lh(this,t,Dh).has(e))throw new Error("【flow-designer】NodeType: 类型"+e+"不支持创建节点");return Lh(this,t,Dh).get(e)()}}]),t}();Sh(Th,"START","start"),Sh(Th,"END","end"),Sh(Th,"CHECK","check"),Sh(Th,"CC","cc"),Sh(Th,"TRIGGER","trigger"),Sh(Th,"DELAY","delay"),Sh(Th,"PARALLEL_WRAP","parallel_wrap"),Sh(Th,"PARALLEL","parallel"),Sh(Th,"JUDGE_WRAP","judge_wrap"),Sh(Th,"JUDGE","judge");var Rh={writable:!0,value:new Map},Dh={writable:!0,value:new Map},Ih={writable:!0,value:new Map};function Mh(){Th.registerNodeType(Th.START,"single","StartNode"),Th.registerNodeType(Th.CHECK,"single","CheckNode",(function(){return new Yh("审批人","审批人",null,Th.CHECK)})),Th.registerNodeType(Th.CC,"single","CCNode",(function(){return new Yh("抄送人","抄送人",null,Th.CC)})),Th.registerNodeType(Th.TRIGGER,"single","TriggerNode",(function(){return new Yh("触发器","触发器",null,Th.TRIGGER)})),Th.registerNodeType(Th.DELAY,"single","DelayNode",(function(){return new Yh("延迟等待","延迟等待",null,Th.DELAY)})),Th.registerNodeType(Th.END,"single","EndNode"),Th.registerNodeType(Th.PARALLEL_WRAP,"wrap","ParallelWrapNode",(function(){return[new Yh("并行分支","并行分支","gateway",Th.PARALLEL_WRAP,null,null,[]),new Yh("分支","NodeHandler Automatic generated","并行任务(同时进行)",Th.PARALLEL),new Yh("分支","NodeHandler Automatic generated","并行任务(同时进行)",Th.PARALLEL)]}),Th.PARALLEL),Th.registerNodeType(Th.PARALLEL,"single","ParallelNode",(function(){return new Yh("NodeHandler Automatic generated","NodeHandler Automatic generated","并行任务(同时进行)",Th.PARALLEL)})),Th.registerNodeType(Th.JUDGE_WRAP,"wrap","JudgeWrapNode",(function(){return[new Yh("条件分支","条件分支","gateway",Th.JUDGE_WRAP,null,null,[]),new Yh("条件","NodeHandler Automatic generated",null,Th.JUDGE),new Yh("条件","NodeHandler Automatic generated",null,Th.JUDGE)]}),Th.JUDGE),Th.registerNodeType(Th.JUDGE,"single","JudgeNode",(function(){return new Yh("NodeHandler Automatic generated","NodeHandler Automatic generated",null,Th.JUDGE)}))}Mh();var qh=Th;function Bh(t){return Bh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bh(t)}function Fh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $h(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Uh(n.key),n)}}function Vh(t,e,r){return e&&$h(t.prototype,e),r&&$h(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Hh(t,e,r){return e=Uh(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Uh(t){var e=Gh(t,"string");return"symbol"==Bh(e)?e:String(e)}function Gh(t,e){if("object"!=Bh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Bh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var zh,Kh=function(){function t(e,r,n,o,i,a,s){Fh(this,t),Hh(this,"name",void 0),Hh(this,"code",void 0),Hh(this,"content",void 0),Hh(this,"type",void 0),Hh(this,"data",void 0),Hh(this,"nextNodeCode",void 0),Hh(this,"childNodeCodes",void 0),Hh(this,"error",void 0),this.name=e,this.code=r,this.content=n,this.type=o,this.data=i,this.nextNodeCode=a,this.childNodeCodes=s}return Vh(t,[{key:"isBranchNode",value:function(){return[qh.JUDGE,qh.PARALLEL].includes(this.type)}},{key:"isHeadNode",value:function(){return[qh.START,qh.JUDGE,qh.PARALLEL].includes(this.type)}},{key:"isFootNode",value:function(){return this.type===qh.END||!this.nextNodeCode}},{key:"isWrapNode",value:function(){return[qh.PARALLEL_WRAP,qh.JUDGE_WRAP].includes(this.type)}}],[{key:"parse",value:function(e){return(null===e||void 0===e?void 0:e.constructor)===t?e:new t(e.name,e.code,e.content,e.type,e.data,e.nextNodeCode,e.childNodeCodes)}}]),t}(),Yh=Kh;function Wh(t){return Wh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wh(t)}function Zh(t){return td(t)||Qh(t)||Xh(t)||Jh()}function Jh(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Xh(t,e){if(t){if("string"===typeof t)return ed(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ed(t,e):void 0}}function Qh(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function td(t){if(Array.isArray(t))return ed(t)}function ed(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function rd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nd(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sd(n.key),n)}}function od(t,e,r){return e&&nd(t.prototype,e),r&&nd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function id(t,e){ud(t,e),e.add(t)}function ad(t,e,r){return e=sd(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sd(t){var e=cd(t,"string");return"symbol"==Wh(e)?e:String(e)}function cd(t,e){if("object"!=Wh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Wh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function ld(t,e,r){ud(t,e),e.set(t,r)}function ud(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function fd(t,e,r){return dd(t,e),hd(r,"get"),bd(t,r)}function hd(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}function dd(t,e){if(t!==e)throw new TypeError("Private static access of wrong provenance")}function pd(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}function vd(t,e,r){var n=gd(t,e,"set");return yd(t,n,r),r}function yd(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function md(t,e){var r=gd(t,e,"get");return bd(t,r)}function gd(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function bd(t,e){return e.get?e.get.call(t):e.value}var wd=new WeakMap,_d=new WeakMap,xd=new WeakMap,kd=new WeakMap,Od=new WeakMap,Ed=new WeakMap,Sd=new WeakMap,jd=new WeakMap,Nd=new WeakMap,Ld=new WeakSet,Pd=new WeakSet,Cd=new WeakSet,Ad=new WeakSet,Td=new WeakSet,Rd=new WeakSet,Dd=new WeakSet,Id=new WeakSet,Md=new WeakSet,qd=new WeakSet,Bd=new WeakSet,Fd=function(){function t(e,r){var n=this;if(rd(this,t),id(this,Bd),id(this,qd),id(this,Md),id(this,Id),id(this,Dd),id(this,Rd),id(this,Td),id(this,Ad),id(this,Cd),id(this,Pd),id(this,Ld),ld(this,wd,{writable:!0,value:new Map}),ld(this,_d,{writable:!0,value:new Map}),ld(this,xd,{writable:!0,value:new Map}),ld(this,kd,{writable:!0,value:new Map}),ld(this,Od,{writable:!0,value:new Map}),ld(this,Ed,{writable:!0,value:void 0}),ld(this,Sd,{writable:!0,value:void 0}),ld(this,jd,{writable:!0,value:void 0}),ld(this,Nd,{writable:!0,value:void 0}),ad(this,"isPreview",void 0),ad(this,"runtimeData",void 0),ad(this,"businessAdapter",void 0),e&&e.length||(e=[{name:"上报人",code:"上报人",type:"start",nextNodeCode:"流程结束"},{name:"流程结束",code:"流程结束",type:"end"}]),e.forEach((function(t){var e=Yh.parse(t);if(e.type===qh.START){if(md(n,Ed))throw new Error("【flow-designer】NodeHandler创建失败;只能有一个起始节点");vd(n,Ed,e)}if(e.type===qh.END){if(md(n,Sd))throw new Error("【flow-designer】NodeHandler创建失败;只能有一个结束节点");vd(n,Sd,e)}pd(n,Td,Gd).call(n,e)})),!md(this,Ed))throw new Error("【flow-designer】NodeHandler创建失败;没有起始节点");if(!md(this,Sd))throw new Error("【flow-designer】NodeHandler创建失败;没有结束节点");var o=md(this,Ed),i=new Set;try{pd(this,Id,Yd).call(this,i,o)}catch(a){if(a.msg)throw new Error("【flow-designer】NodeHandler创建失败;"+a.msg);throw new Error("【flow-designer】NodeHandler创建失败;"+a)}Zh(md(this,wd).values()).filter((function(t){return t.isWrapNode()})).forEach((function(t){return t.childNodeCodes.forEach((function(e){return md(n,xd).set(e,t.code)}))})),Zh(md(this,wd).values()).filter((function(t){return t.isBranchNode()})).forEach((function(t){var e=n.getNextNode(t.code);while(e)md(n,kd).set(e.code,t.code),e=n.getNextNode(e.code)})),window.nodeHandler=this,this.businessAdapter=r,r.nodeHandler=this}return od(t,[{key:"setPreview",value:function(t){this.isPreview=t,this.refresh()}},{key:"setRuntime",value:function(t){this.runtimeData=t}},{key:"setRefresh",value:function(t){vd(this,jd,t)}},{key:"refresh",value:function(){if(!md(this,jd))throw new Error("【flow-designer】NodeHandler刷新失败;未定义刷新方法");md(this,jd).call(this)}},{key:"map",value:function(){return{node:md(this,wd),preNode:md(this,_d),parentNodeMap:md(this,xd),branchNodeMap:md(this,kd),nodeCodeVersionMap:md(this,Od)}}},{key:"getStartNode",value:function(){return md(this,Ed)}},{key:"getEndNode",value:function(){return md(this,Sd)}},{key:"hasNextNode",value:function(t){var e=md(this,wd).get(t),r=null===e||void 0===e?void 0:e.nextNodeCode;return!!r}},{key:"getNextNode",value:function(t){var e=md(this,wd).get(t);if(!e)throw new Error("【flow-designer】NodeHandler获取后续节点失败;指定节点不存在:"+t);return this.getNode(e.nextNodeCode)}},{key:"handleNextNodeStream",value:function(t,e){var r=[];while(this.hasNextNode(t)){var n=this.getNextNode(t);t=n.code,r.push(n)}r.forEach((function(t){return e(t)}))}},{key:"getNextNodeStreamLast",value:function(t){var e=null;return this.handleNextNodeStream(t,(function(t){e=t})),e}},{key:"hasNode",value:function(t){return md(this,wd).has(t)}},{key:"getNode",value:function(t){return md(this,wd).get(t)}},{key:"hasPreNode",value:function(t){return md(this,_d).has(t)}},{key:"getPreNode",value:function(t){return this.getNode(this.nowNodeCode(md(this,_d).get(t)))}},{key:"handlePreNodeStream",value:function(t,e){var r=[];while(this.hasPreNode(t)){var n=this.getPreNode(t);t=n.code,r.push(n)}r.forEach((function(t){return e(t)}))}},{key:"hasWrapNode",value:function(t){var e=this.getNode(t),r=e;return e.isBranchNode()||(r=this.getBranchNode(e.code)),!!r}},{key:"getWrapNode",value:function(t){var e=this.getNode(t);if(!e)throw new Error("【flow-designer】NodeHandler获取包装器节点出错:指定节点不存在"+t);var r=e;if(e.isBranchNode()||(r=this.getBranchNode(e.code)),!r)return null;var n=this.nowNodeCode(md(this,xd).get(r.code));return this.getNode(n)}},{key:"hasBranchNode",value:function(t){return md(this,kd).has(t)}},{key:"getBranchNode",value:function(t){var e=this.nowNodeCode(md(this,kd).get(t));return this.getNode(e)}},{key:"nowNodeCode",value:function(t){if(!t)return null;var e=t,r=md(this,Od).get(e);while(r)e=r,r=md(this,Od).get(e);return e}},{key:"verify",value:function(){return this.businessAdapter.verifyNodeData(Zh(md(this,wd).values()))}},{key:"getAllRoute",value:function(t){var e=[];return pd(this,Ld,$d).call(this,t,e),e}},{key:"insertNode",value:function(t,e){var r=this.getNode(t);if(!r)throw new Error("【flow-designer】NodeHandler插入节点出错: source节点不存在:"+t);var n=r.nextNodeCode,o=this.getNode(n),i=e.type,a=qh.getNodeType(i);if("single"===a.mode){var s=qh.createNode(i);pd(this,Td,Gd).call(this,s),pd(this,Cd,Hd).call(this,r,s),o&&pd(this,Bd,Zd).call(this,s,o.code),pd(this,Bd,Zd).call(this,r,s.code)}if("wrap"===a.mode){var c=qh.createWrap(i),l=c[0];pd(this,Ad,Ud).call(this,l,c);var u=l.code;pd(this,Cd,Hd).call(this,r,l),o&&pd(this,Bd,Zd).call(this,l,o.code),pd(this,Bd,Zd).call(this,r,u)}this.refresh()}},{key:"wrapNode",value:function(t,e){var r,n=this.getNode(t);if(!n)throw new Error("【flow-designer】NodeHandler包装节点出错: source节点不存在");var o=e.type,i=qh.getNodeType(o);if("wrap"!==i.mode)throw new Error("【flow-designer】NodeHandler包装节点出错: 包装节点类型的模式必须为包装;非预期:"+i.mode);var a=qh.createWrap(o),s=a[0],c=a[1];pd(this,Ad,Ud).call(this,s,a),pd(this,Cd,Hd).call(this,n,s);var l=s.code,u=this.getPreNode(t),f=null,h=t;while(1){var d=f=this.getNextNode(h);if(!d)break;if(md(this,kd).set(h,c.code),d.type===qh.END){pd(this,Bd,Zd).call(this,this.getNode(h),null);break}h=d.code}pd(this,Bd,Zd).call(this,u,l),pd(this,Bd,Zd).call(this,s,null===(r=f)||void 0===r?void 0:r.code),pd(this,Bd,Zd).call(this,c,n.code),this.refresh()}},{key:"updateNode",value:function(t,e){if(!e)throw new Error("【flow-designer】NodeHandler更新节点出错: 更新内容不存在");var r=this.getNode(t);if(r)throw new Error("【flow-designer】NodeHandler更新节点出错: 要更新的节点不存在:"+t);md(this,wd).set(e.code,e)}},{key:"deleteNode",value:function(t){pd(this,Rd,zd).call(this,t),this.refresh()}},{key:"moveBranchNode",value:function(t,e){var r=this.getNode(t);if(!r.isBranchNode())throw new Error("【flow-designer】NodeHandler移动分支节点出错: 移动的节点必须是分支节点:"+t);var n=this.getWrapNode(t),o=n.childNodeCodes,i=o.indexOf(t),a=i+e;if(a<0||a>=o.length)throw new Error("【flow-designer】NodeHandler移动分支节点出错: 位移数出错:"+a);var s=o[a];o[a]=o.splice(i,1,s)[0],this.refresh()}},{key:"addBranch",value:function(t,e){var r=this.getNode(t);if(!r.isWrapNode())throw new Error("【flow-designer】NodeHandler 新增分支出错,只有wrap节点才可以创建分支:"+t);var n=qh.getBranchType(r.type),o=qh.createNode(n);return o.name=e+(r.childNodeCodes.length+1),o.code=t+o.name,pd(this,Td,Gd).call(this,o,null,t),this.refresh(),o}}]),t}();function $d(t,e){var r=this,n=this.getNode(t),o=n.nextNodeCode,i=this.getNode(o),a=t;while(!i){var s=this.getWrapNode(a);s&&(i=this.getNextNode(s.code),a=s.code)}if(!i)throw new Error("至少存在一条路");if([qh.CHECK,qh.END].includes(i.type))e.push(i);else{if(i.isWrapNode()){var c=i.childNodeCodes,l=0;if(c.forEach((function(t){var n=r.getNextNode(t);while(1){if(!n)return;if([qh.CHECK,qh.END].includes(n.type)&&(e.push(n),l+=1),n.isWrapNode()&&pd(r,Pd,Vd).call(r,n,e))return void(l+=1);n=r.getNextNode(n.code)}})),c.length===l)return}pd(this,Ld,$d).call(this,i.code,e)}}function Vd(t,e){var r=this,n=!0,o=t.childNodeCodes;return o.forEach((function(t){var o=r.getNextNode(t);while(1){if(!o)return void(n=!1);if([qh.CHECK,qh.END].includes(o.type))return void e.push(o);if(o.isWrapNode()){if(pd(r,Pd,Vd).call(r,o,e))return;n=!1}o=r.getNextNode(o.code)}})),n}function Hd(t,e){t.isBranchNode()&&md(this,kd).set(e.code,t.code),md(this,kd).has(t.code)&&md(this,kd).set(e.code,md(this,kd).get(t.code))}function Ud(t,e){pd(this,Td,Gd).call(this,t);for(var r=t.code,n=1;n<e.length;n++){var o=e[n];o.name=o.name+(t.childNodeCodes.length+1),o.code=r+o.name,pd(this,Td,Gd).call(this,o),md(this,xd).set(o.code,r),t.childNodeCodes.push(o.code)}}function Gd(t,e,r){pd(this,Dd,Kd).call(this,t);var n=t.code;md(this,wd).set(n,t),t.nextNodeCode&&pd(this,Md,Wd).call(this,t),e&&md(this,kd).set(n,e),r&&(this.getNode(r).childNodeCodes.push(n),md(this,xd).set(n,r))}function zd(t){var e=this;if(!this.hasNode(t))throw new Error("【flow-designer】NodeHandler删除节点出错: 要删除的节点不存在:"+t);var r=this.getNode(t);if(r.isWrapNode()&&r.childNodeCodes.forEach((function(t){return pd(e,Rd,zd).call(e,t)})),r.isBranchNode()){var n=this.getWrapNode(t),o=n.childNodeCodes;if(o.splice(o.indexOf(t),1),this.handleNextNodeStream(t,(function(t){pd(e,Rd,zd).call(e,t.code)})),md(this,wd).delete(t),md(this,xd).delete(t),1===o.length){var i=this.getNode(o[0]),a=this.getNextNode(i.code),s=this.getPreNode(n.code),c=this.getNextNode(n.code),l=this.getNextNodeStreamLast(i.code);pd(this,Bd,Zd).call(this,s,null===c||void 0===c?void 0:c.code),a&&(this.handleNextNodeStream(i.code,(function(t){md(e,kd).delete(t.code)})),pd(this,Bd,Zd).call(this,s,a.code),pd(this,Bd,Zd).call(this,i,null),pd(this,Bd,Zd).call(this,l,null===c||void 0===c?void 0:c.code),null!==s&&void 0!==s&&s.isBranchNode()&&md(this,kd).set(a.code,s.code)),md(this,_d).delete(n.code),pd(this,Bd,Zd).call(this,n,null),pd(this,Rd,zd).call(this,n.code)}}else{var u=this.getPreNode(t),f=this.hasNextNode(t)&&this.getNextNode(t);md(this,_d).delete(t),u&&pd(this,Bd,Zd).call(this,u,null===f||void 0===f?void 0:f.code),md(this,wd).delete(t),md(this,kd).delete(t)}}function Kd(t){var e=t.code;while(md(this,wd).has(t.code))fd(zh,zh,Jd)[e]||(fd(zh,zh,Jd)[e]=0),t.code=e+ ++fd(zh,zh,Jd)[e]}function Yd(t,e){var r=this;if(e.type!==qh.END&&(t.add(e.code),e.childNodeCodes&&e.childNodeCodes.forEach((function(n){var o=r.getNode(n);if(!o)throw{success:!1,msg:"node:".concat(e.name,"的子步骤不存在").concat(n)};pd(r,Id,Yd).call(r,t,o)})),e.nextNodeCode)){var n=this.getNode(e.nextNodeCode);if(e.nextNodeCode&&!n)throw{success:!1,msg:"node:".concat(e.name,"的后续步骤不存在").concat(e.nextNodeCode)};if(t.has(n.code))throw{success:!1,msg:"不支持循环节点:"+n.name};n&&pd(this,Id,Yd).call(this,t,n)}}function Wd(t){t.nextNodeCode&&md(this,_d).set(t.nextNodeCode,t.code)}function Zd(t,e){t.nextNodeCode=e,pd(this,Md,Wd).call(this,t)}zh=Fd;var Jd={writable:!0,value:{}},Xd=Fd,Qd=function(){var t=this,e=t._self._c;return e("div",{staticClass:"node-wrap"},[e("div",[e("div",{class:t.uiStyle[t.type]},[e(t.component,{tag:"component",attrs:{node:t.node,nodeHandler:t.nodeHandler,option:t.nodeConfig.option}})],1),t.type!==t.NodeType.END?e("div",[e("add-node",{attrs:{node:t.node,"node-handler":t.nodeHandler}})],1):t._e()]),t.node.nextNodeCode&&t.nodeHandler.hasNextNode(t.node.code)?e("node-wrap",{key:t.node.nextNodeCode,attrs:{"node-config":{node:t.nodeHandler.getNextNode(t.node.code)},"node-handler":t.nodeHandler}}):t._e()],1)},tp=[],ep=function(){var t=this,e=t._self._c;return e("div",{staticClass:"end-node"},[e("div",{staticClass:"end-node-circle"}),e("div",{staticClass:"end-node-text"},[t._v(" "+t._s(t.node.name))])])},rp=[],np={name:"EndNode",props:{node:Yh,nodeHandler:Object},setup:function(){}},op=np,ip=(r("c14c"),qr(op,ep,rp,!1,null,"778e5139",null)),ap=ip.exports,sp=function(){var t,e,r,n,o=this,i=o._self._c;return i("div",[null!==(t=o.nodeHandler)&&void 0!==t&&null!==(t=t.runtimeData)&&void 0!==t&&null!==(t=t.actorLogs[o.node.code])&&void 0!==t&&t.length?i("a-popover",{attrs:{placement:"rightTop"},scopedSlots:o._u([{key:"content",fn:function(){return[i("div",{staticStyle:{"min-width":"300px","max-width":"1200px"}},[i("runtime-workflow-actors",{attrs:{actors:o.nodeHandler.runtimeData.actorLogs[o.node.code]}})],1)]},proxy:!0}],null,!1,193291077)},[i("div",{staticClass:"node",class:o.getClass(),on:{click:o.click}},[i("div",{staticClass:"title"},[i("span",[i("a-icon",{attrs:{fill:"",theme:"filled",type:"flag"}})],1),i("span",[o._v(" "+o._s(o.node.name))]),null!==(e=o.nodeRef)&&void 0!==e&&null!==(e=e.data)&&void 0!==e&&null!==(e=e.other_options)&&void 0!==e&&null!==(e=e.assert)&&void 0!==e&&e.length?i("span",[i("a-icon",{attrs:{type:"control"}})],1):o._e()]),i("div",{staticClass:"content"},[i("span",{staticClass:"content-main"},[i("span",{staticClass:"error-tooltip"},[i("a-tooltip",[i("template",{slot:"title"},[o._v(" "+o._s(o.node.error)+" ")]),i("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),o.nodeContent?i("span",{staticStyle:{"padding-left":"5px"}},[i("span",{domProps:{innerHTML:o._s(o.nodeContent)}})]):i("span",{staticStyle:{"padding-left":"5px",color:"#666"}},[o._v(o._s(o.defaultContent))])])])])]):i("div",{staticClass:"node",class:o.getClass(),on:{click:o.click}},[i("div",{staticClass:"title"},[i("span",[i("a-icon",{attrs:{fill:"",theme:"filled",type:"flag"}})],1),i("span",[o._v(" "+o._s(o.node.name))]),null!==(r=o.nodeRef)&&void 0!==r&&null!==(r=r.data)&&void 0!==r&&null!==(r=r.other_options)&&void 0!==r&&null!==(r=r.assert)&&void 0!==r&&r.length?i("span",[i("a-icon",{attrs:{type:"control"}})],1):o._e()]),i("div",{staticClass:"content"},[i("span",{staticClass:"content-main"},[i("span",{staticClass:"error-tooltip"},[i("a-tooltip",[i("template",{slot:"title"},[o._v(" "+o._s(o.node.error)+" ")]),i("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),o.nodeContent?i("span",{staticStyle:{"padding-left":"5px"}},[i("span",{domProps:{innerHTML:o._s(o.nodeContent)}})]):i("span",{staticStyle:{"padding-left":"5px",color:"#666"}},[o._v(o._s(o.defaultContent))])])])]),o.nodeHandler.isPreview?o._e():i("a-drawer",{attrs:{closable:!0,visible:o.visible,width:720,placement:"right"},on:{close:o.hideDrawer}},[o.editName?o._e():i("div",{staticClass:"node-drawer-title",on:{click:o.showEditName}},[i("a-icon",{attrs:{type:"edit"}}),o._v(" "+o._s(o.node.name)+" ")],1),i("a-form-model",{directives:[{name:"show",rawName:"v-show",value:o.editName,expression:"editName"}],ref:"nameForm",attrs:{model:o.nodeRef,rules:{name:[{required:!0,message:"请填写节点名称",trigger:"blur"},{min:2,max:20,message:"2-20个字",trigger:"blur"}]},layout:"inline"}},[i("a-form-model-item",{ref:"name",attrs:{prop:"name"}},[i("a-input",{ref:"nameInput",attrs:{placeholder:"节点名称"},on:{blur:function(){o.editName=!1}},model:{value:o.nodeRef.name,callback:function(t){o.$set(o.nodeRef,"name",t)},expression:"nodeRef.name"}})],1)],1),i("a-tabs",{attrs:{"default-active-key":"1"},on:{change:o.changeTags},model:{value:o.tabKey,callback:function(t){o.tabKey=t},expression:"tabKey"}},[i("a-tab-pane",{key:"actors",attrs:{tab:"设置发起人"}},[i("div",{staticStyle:{color:"#717171","margin-bottom":"10px"}},[o._v("选择能发起该审批的人员/部门,不选则默认开放给所有人")]),i("a-button",{staticClass:"node-form-item",attrs:{disabled:"",icon:"plus",shape:"round",type:"primary"}},[o._v("请选择")]),i("a-alert",{attrs:{banner:"",message:"不支持在这里设置发起人! 如为发起人设置权限,请使用EAD动作权限配置实现"}})],1),i("a-tab-pane",{key:"forms",attrs:{tab:"操作视图"}},[i("div",{staticClass:"node-form-item"},[i("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[i("a-col",{attrs:{span:24}},[i("a-radio-group",{staticClass:"node-form-item",on:{change:o.changeViewType},model:{value:o.optionViewType,callback:function(t){o.optionViewType=t},expression:"optionViewType"}},[i("a-radio",{attrs:{value:"use_model"}},[o._v(" 沿用工作流模型 ")]),i("a-radio",{attrs:{value:"custom"}},[o._v(" 自主选择 ")])],1)],1)],1),i("a-row",[i("a-col",{attrs:{span:24}},["custom"===o.optionViewType?i("a-select",{staticClass:"node-form-item",staticStyle:{width:"100%"},attrs:{"default-active-first-option":!1,"filter-option":!1,"not-found-content":null,"show-arrow":!1,placeholder:"请输入表单视图名称","show-search":""},on:{change:o.optionViewChange,search:o.optionViewSearch},model:{value:o.nodeRef.data.option_view_id,callback:function(t){o.$set(o.nodeRef.data,"option_view_id",t)},expression:"nodeRef.data.option_view_id"}},o._l(o.optionViewList,(function(t){return i("a-select-option",{key:t.value,attrs:{value:t.value}},[o._v(" "+o._s(t.text)+" ")])})),1):o._e()],1)],1)],1),i("div",{key:o.nodeRef.data.option_view_id,staticClass:"node-from-item"},[i("a-divider",{attrs:{orientation:"left"}},[o._v("表单权限")]),"use_model"===o.optionViewType||o.nodeRef.data.option_view_id?i("a-spin",{attrs:{spinning:o.viewAttrLoading}},[i("a-row",[i("a-col",{attrs:{span:11}},[i("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索表单属性"},on:{search:function(t){return o.formsColumnFilter=t}}})],1),i("a-col",{attrs:{span:1}}),i("a-col",{attrs:{span:11}},[i("a-radio-group",{attrs:{"button-style":"solid"},model:{value:o.formsColumnAccess,callback:function(t){o.formsColumnAccess=t},expression:"formsColumnAccess"}},[i("a-radio-button",{attrs:{value:"all"}},[o._v(" 无 ")]),i("a-radio-button",{attrs:{value:"none"}},[o._v(" 隐藏 ")]),i("a-radio-button",{attrs:{value:"readonly"}},[o._v(" 只读 ")]),i("a-radio-button",{attrs:{value:"write"}},[o._v(" 可写 ")]),i("a-radio-button",{attrs:{value:"readonlywrite"}},[o._v(" 读写 ")])],1)],1)],1),i("a-table",{attrs:{columns:o.optionFormsColumns,"data-source":o.filterDataset(o.formsColumnFilter,o.nodeRef.data.option_forms,["attrName","attrCode"]),"row-key":function(t){return t.attrId}},scopedSlots:o._u([{key:"attrName",fn:function(t,e){return i("span",{},[o._v(o._s(e.attrName)+"("+o._s(e.attrCode)+")")])}},{key:"none",fn:function(t,e){return i("span",{},[i("a-radio",{attrs:{checked:"none"===e.access,value:"none"},on:{change:function(){return e.access="none"}}},[o._v("隐藏")])],1)}},{key:"readonly",fn:function(t,e){return i("span",{},[i("a-radio",{attrs:{checked:"readonly"===e.access,value:"readonly"},on:{change:function(){return e.access="readonly"}}},[o._v("只读")])],1)}},{key:"write",fn:function(t,e){return i("span",{},[i("a-radio",{attrs:{checked:"write"===e.access,value:"write"},on:{change:function(){return e.access="write"}}},[o._v("可编辑")])],1)}},{key:"required",fn:function(t,e){return i("span",{},["write"===e.access?i("a-switch",{model:{value:e.required,callback:function(t){o.$set(e,"required",t)},expression:"record.required"}}):o._e()],1)}}],null,!1,274236117)},[i("span",{attrs:{slot:"noneColumn"},slot:"noneColumn"},[i("a-radio",{attrs:{checked:"none"===o.optionFormsRadio,value:"none"},on:{change:function(t){return o.optionFormsRadioChange("none")}}},[o._v("隐藏")])],1),i("span",{attrs:{slot:"readonlyColumn"},slot:"readonlyColumn"},[i("a-radio",{attrs:{checked:"readonly"===o.optionFormsRadio,value:"readonly"},on:{change:function(t){return o.optionFormsRadioChange("readonly")}}},[o._v("只读")])],1),i("span",{attrs:{slot:"writeColumn"},slot:"writeColumn"},[i("a-radio",{attrs:{checked:"write"===o.optionFormsRadio,value:"write"},on:{change:function(t){return o.optionFormsRadioChange("write")}}},[o._v("可编辑")])],1)])],1):o._e()],1)]),i("a-tab-pane",{key:"others",attrs:{tab:"其他配置"}},[i("a-card",{staticStyle:{margin:"5px"},attrs:{size:"small",title:"消息配置"}},[i("a-input",{staticStyle:{"margin-bottom":"5px"},attrs:{placeholder:"待办跳转地址;以/结尾,例如:/${appKey}#/res_path/"},model:{value:o.nodeRef.data.other_options.resPath,callback:function(t){o.$set(o.nodeRef.data.other_options,"resPath",t)},expression:"nodeRef.data.other_options.resPath"}}),i("a-input",{attrs:{placeholder:"消息跳转地址"},model:{value:o.nodeRef.data.other_options.redirectUri,callback:function(t){o.$set(o.nodeRef.data.other_options,"redirectUri",t)},expression:"nodeRef.data.other_options.redirectUri"}}),o.noticeTemplateAttr?i("Item",{key:o.noticeTemplateAttr.name,staticClass:"j",attrs:{formModel:o.eadApi.getComponent().actionModel,params:null!==(n=o.noticeTemplateAttr.params)&&void 0!==n?n:{},prop:o.noticeTemplateAttr.name,required:!1,schema:o.noticeTemplateAttr},on:{change:function(t){return o.handleItemChange(t,o.noticeTemplateAttr)}},model:{value:o.nodeRef.data.notice_template,callback:function(t){o.$set(o.nodeRef.data,"notice_template",t)},expression:"nodeRef.data.notice_template"}}):o._e(),i("a-alert",{attrs:{message:"模板变量:",type:"success"}},[i("div",{attrs:{slot:"description"},slot:"description"},[i("div",[o._v("${workflow.variable.sponsor} - 发起人")]),i("div",[o._v("${workflow.variable.sponsor_name} - 发起人姓名")]),i("div",[o._v("${workflow.variable.sponsor_org} - 发起人组织机构")]),i("div",[o._v("${workflow.variable.sponsor_org_name} - 发起人组织机构名称")]),i("div",[o._v("${workflow.variable.sponsor_role} - 发起人角色")]),i("div",[o._v("${workflow.variable.sponsor_role_name} - 发起人角色名")])])])],1),i("div",{staticClass:"node-form-item"},[i("a-divider",{attrs:{orientation:"left"}},[o._v("自定义参数")]),i("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[i("a-col",{attrs:{span:24}},[i("a-textarea",{attrs:{"auto-size":"",placeholder:"自定义参数(JSONObject格式); {}"},model:{value:o.nodeRef.data.other_options.custom,callback:function(t){o.$set(o.nodeRef.data.other_options,"custom",t)},expression:"nodeRef.data.other_options.custom"}})],1)],1)],1)],1),o.nodeRef.data.other_options.assert?i("a-tab-pane",{key:"assert",attrs:{tab:"断言"}},[i("div",[o.nodeRef.data.other_options.assert?i("assert-designer",{attrs:{data:o.nodeRef.data.other_options.assert,"hide-action":!0}}):o._e()],1)]):o._e()],1)],1)],1)},cp=[],lp=function(){var t=this,e=t._self._c;return e("a-list",{attrs:{"data-source":t.actors,"item-layout":"horizontal"},scopedSlots:t._u([{key:"renderItem",fn:function(r){return e("a-list-item",{staticStyle:{display:"flex","flex-direction":"column","align-items":"flex-start"}},[e("a-list-item-meta",[e("a",{style:{color:{ongoing:"green",finish:"blue"}[r.status]},attrs:{slot:"title"},slot:"title"},[t._v(t._s(r.operator.name)+" ("+t._s(r.operator.org_name)+")")]),e("a-avatar",{attrs:{slot:"avatar",icon:"user"},slot:"avatar"}),e("div",{attrs:{slot:"description"},slot:"description"},[r.operate?e("a-tag",{attrs:{color:"#108ee9"}},[t._v(t._s(r.operate))]):t._e(),t._v(" "+t._s(r.operate_desc)+" "+t._s(r.operate_content)+" "),e("div",{staticStyle:{color:"rgb(24, 39, 74)"}},[r.create_time?e("span",[e("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"clock-circle-o"}}),t._v(" "+t._s(t.moment(r.create_time).format("YYYY-MM-DD HH:mm"))+" ")],1):t._e()]),e("div",[r.sequent&&r.sequent.length?e("runtime-workflow-actors",{attrs:{actors:r.sequent}}):t._e()],1)],1)],1),r.callback?e("div",[e("a-list-item-meta",[e("a",{style:{color:{ongoing:"green",finish:"blue"}[r.callback.status]},attrs:{slot:"title"},slot:"title"},[t._v(t._s(r.callback.operator.name)+" ("+t._s(r.callback.operator.org_name)+")")]),e("a-avatar",{attrs:{slot:"avatar",icon:"user"},slot:"avatar"}),e("div",{attrs:{slot:"description"},slot:"description"},[r.callback.operate?e("a-tag",{attrs:{color:"#108ee9"}},[t._v(t._s(r.callback.operate))]):t._e(),t._v(" "+t._s(r.callback.operate_desc)+" "+t._s(r.callback.operate_content)+" "),e("div",{staticStyle:{color:"rgb(24, 39, 74)"}},[r.callback.create_time?e("span",[e("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"clock-circle-o"}}),t._v(" "+t._s(t.moment(r.callback.create_time).format("YYYY-MM-DD HH:mm")))],1):t._e()])],1)],1)],1):t._e()],1)}}])})},up=[],fp={name:"runtime-workflow-actors",props:{actors:Array}},hp=fp,dp=qr(hp,lp,up,!1,null,"2d32df45",null),pp=dp.exports,vp=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{display:"flex","margin-bottom":"5px"}},[e("a-button",{staticStyle:{"margin-right":"5px"},attrs:{type:"primary"},on:{click:function(e){return t.addDefault()}}},[t._v("新增断言项")]),t.hideAction?t._e():e("a-select",{staticStyle:{width:"120px"},attrs:{allowClear:"",placeholder:"审批动作"},model:{value:t.filter,callback:function(e){t.filter=e},expression:"filter"}},t._l([{value:"all",label:"全部"},{value:"pass",label:"通过"},{value:"back",label:"退回"},{value:"reassign",label:"转办"},{value:"involve",label:"加签"},{value:"end",label:"结束"}],(function(r){return e("a-select-option",{key:r.value,attrs:{value:r.value}},[t._v(" "+t._s(r.label)+" ")])})),1)],1),e("a-table",{attrs:{columns:t.columns,"data-source":t.filterDataset(t.filter,t.dataRef,"action"),pagination:!1,"row-key":function(t,e){return e}},scopedSlots:t._u([{key:"action",fn:function(r,n){return e("span",{},[e("a-select",{staticStyle:{width:"100%"},model:{value:n.action,callback:function(e){t.$set(n,"action",e)},expression:"reccord.action"}},t._l([{value:"all",label:"全部"},{value:"pass",label:"通过"},{value:"back",label:"退回"},{value:"reassign",label:"转办"},{value:"involve",label:"加签"},{value:"end",label:"结束"}],(function(r){return e("a-select-option",{key:r.value,attrs:{value:r.value}},[t._v(" "+t._s(r.label)+" ")])})),1),t._v(" "+t._s()+" ")],1)}},{key:"expression",fn:function(r,n){return e("span",{},[e("a-textarea",{attrs:{"auto-size":"",placeholder:"需要进行检查的条件"},model:{value:n.expression,callback:function(e){t.$set(n,"expression",e)},expression:"record.expression"}})],1)}},{key:"message",fn:function(r,n){return e("span",{},[e("a-textarea",{attrs:{"auto-size":"",placeholder:"条件不满足输出的消息"},model:{value:n.message,callback:function(e){t.$set(n,"message",e)},expression:"record.message"}})],1)}},{key:"operate",fn:function(r,n,o){return e("span",{},[e("a-button",{attrs:{icon:"delete",type:"link"},on:{click:function(){return t.dataRef.splice(o,1)}}})],1)}}])})],1)},yp=[],mp={name:"AssertDesigner",props:{data:Array,hideAction:Boolean},data:function(){return{filter:void 0,columns:[{title:"审批动作",dataIndex:"action",key:"action",scopedSlots:{customRender:"action"}},{title:"条件",dataIndex:"expression",key:"expression",scopedSlots:{customRender:"expression"}},{title:"消息",key:"message",dataIndex:"message",scopedSlots:{customRender:"message"}},{title:"操作",key:"operate",scopedSlots:{customRender:"operate"}}]}},setup:function(t){var e=t.data,r=Object(N["ref"])(e);return{dataRef:r}},mounted:function(){this.hideAction&&this.columns.splice(0,1)},methods:{filterDataset:function(t,e,r){return t?e.filter((function(e){return e[r].toString().toLowerCase().includes(t)})):e},addDefault:function(){this.dataRef.push({action:"all",expression:"",message:""})}}},gp=mp,bp=(r("bd28"),qr(gp,vp,yp,!1,null,"3d6b7fb8",null)),wp=bp.exports;function _p(t){return _p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_p(t)}function xp(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */xp=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==_p(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(_p(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function kp(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Op(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){kp(i,n,o,a,s,"next",t)}function s(t){kp(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Ep(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Sp(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Sp(t,e){if(t){if("string"===typeof t)return jp(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jp(t,e):void 0}}function jp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Np={name:"StartNode",props:{node:Yh,nodeHandler:Object},components:{AssertDesigner:wp,RuntimeWorkflowActors:pp,Item:Ri},data:function(){return{defaultContent:"所有人",editName:!1,tabKey:"actors",optionViewType:"use_model",optionViewId:null,optionViewList:[],optionFormsColumns:[{title:"表单属性",key:"attrName",scopedSlots:{customRender:"attrName"}},{key:"none",slots:{title:"noneColumn"},scopedSlots:{customRender:"none"}},{key:"readonly",slots:{title:"readonlyColumn"},scopedSlots:{customRender:"readonly"}},{key:"write",slots:{title:"writeColumn"},scopedSlots:{customRender:"write"}},{title:"必填",dataIndex:"required",key:"required",scopedSlots:{customRender:"required"}}],viewNametimeout:null,viewAttrLoading:!0,optionFormsCache:{},formsColumnFilter:void 0,formsColumnAccess:"all"}},setup:function(t){var e=t.node,r=t.nodeHandler,n=r.businessAdapter.eadApi,o=function(){return{eadCache:{workflow:{}},actor_config:{type:"all"},option_view_id:null,other_options:{allowWithdraw:!1,resPath:null,redirectUri:null,assert:[],custom:null},option_forms:[],notice_template:""}};e.data||(e.data=o()),e.data.other_options.assert||(e.data.other_options.assert=[]);var i=Object(N["ref"])(!1),a=function(){return i.value=!0},s=r.isPreview?null:r.businessAdapter.eadApi.getCurrentViewSchema().model.attrs.find((function(t){return"notice_template"===t.name}));return{visible:i,showDrawer:a,nodeRef:e,eadApi:n,noticeTemplateAttr:s}},computed:{nodeContent:function(){var t,e,r;if((null===(t=this.nodeHandler)||void 0===t||null===(t=t.runtimeData)||void 0===t?void 0:t.currentNodeCode)===this.nodeRef.code)return'<span class="actor pending">'.concat(this.eadApi.getCurrentUserName(),"</span>");if(null!==(e=this.nodeHandler)&&void 0!==e&&null!==(e=e.runtimeData)&&void 0!==e&&e.caseNodes&&null!==(r=this.nodeHandler)&&void 0!==r&&null!==(r=r.runtimeData)&&void 0!==r&&null!==(r=r.caseNodes[this.node.code])&&void 0!==r&&r.status){var n,o="",i=null===(n=this.nodeHandler)||void 0===n||null===(n=n.runtimeData)||void 0===n?void 0:n.caseNodes[this.node.code].actors;return i.forEach((function(t){o&&(o+="、"),o+='<span class="actor '.concat(t.status,'">').concat(t.operator.name,"</span>")})),o}return this.nodeRef.content},optionFormsRadio:function(){var t=this.node.data.option_forms;if(!t.length)return"-";var e=t[0].access;return t.filter((function(t){return t.access===e})).length===t.length?e:"-"}},created:function(){this.loadCache(this.nodeRef)},methods:{filterDataset:function(t,e,r){var n=this;return t?e.filter((function(e){var n,o=Ep(r);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(e[i].toString().toLowerCase().includes(t.toLowerCase()))return!0}}catch(a){o.e(a)}finally{o.f()}return!1})).filter((function(t){return"all"===n.formsColumnAccess||-1!==n.formsColumnAccess.indexOf(t.access.toString())})):e.filter((function(t){return"all"===n.formsColumnAccess||-1!==n.formsColumnAccess.indexOf(t.access.toString())}))},getClass:function(){var t,e,r,n="";return this.node.error&&(n+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(t=t.runtimeData)||void 0===t?void 0:t.currentNodeCode)===this.node.code?n+=" ongoing":null!==(e=this.nodeHandler)&&void 0!==e&&null!==(e=e.runtimeData)&&void 0!==e&&e.caseNodes&&null!==(r=this.nodeHandler)&&void 0!==r&&null!==(r=r.runtimeData)&&void 0!==r&&null!==(r=r.caseNodes[this.node.code])&&void 0!==r&&r.status&&(n+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),n},loadCache:function(t){var e,r,n,o;this.optionViewType=null!==(e=null===(r=t.data)||void 0===r||null===(r=r.eadCache)||void 0===r||null===(r=r.workflow)||void 0===r?void 0:r.optionViewType)&&void 0!==e?e:this.optionViewType,this.optionViewList=null!==(n=null===(o=t.data)||void 0===o||null===(o=o.eadCache)||void 0===o||null===(o=o.workflow)||void 0===o?void 0:o.optionViewList)&&void 0!==n?n:this.optionViewList},handleItemChange:function(t,e){},optionFormsRadioChange:function(t){this.node.data.option_forms.forEach((function(e){return e.access=t}))},optionViewChange:function(t){var e=this;return Op(xp().mark((function r(){return xp().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e.formsColumnFilter=void 0,e.optionViewId&&(e.optionFormsCache[e.optionViewId]=e.nodeRef.data.option_forms),e.optionViewId=t,e.nodeRef.data.eadCache.workflow.optionViewList=[e.optionViewList.find((function(e){return e.value===t}))],e.viewAttrLoading=!0,r.next=7,e.eadApi.getViewAttrs(t);case 7:e.nodeRef.data.option_forms=r.sent.filter((function(t){return"value"===t.type&&"none"!==t.access})).filter((function(t){return"primary"!==t.key_type})).map((function(r){var n,o,i,a=null===(n=e.optionFormsCache[t])||void 0===n?void 0:n.find((function(t){return t.attrId===r.id})),s=null!==(o=null===a||void 0===a?void 0:a.access)&&void 0!==o?o:"none";return r.required=null!==(i="write"===(null===a||void 0===a?void 0:a.access))&&void 0!==i?i:r.required,{attrId:r.id,attrName:r.alias,attrCode:r.name,access:s,required:r.required}})),e.$nextTick((function(){e.viewAttrLoading=!1}));case 9:case"end":return r.stop()}}),r)})))()},optionViewSearch:function(t){var e=this;this.viewNametimeout&&(clearTimeout(this.viewNametimeout),this.viewNametimeout=null);var r=function(){t&&e.eadApi.getViews(t).then((function(t){e.optionViewList=t.map((function(t){return{value:t.view_id,text:t.view_name}}))}))};this.viewNametimeout=setTimeout(r,300)},changeViewType:function(t){var e=this;return Op(xp().mark((function r(){var n,o;return xp().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=t.target,o=n.value,e.nodeRef.data.eadCache.workflow.optionViewType=o,"custom"===o&&(e.optionFormsCache[e.eadApi.getValues().option_view_id]=e.nodeRef.data.option_forms),"use_model"!==o){r.next=13;break}return e.optionViewId&&(e.optionFormsCache[e.optionViewId]=e.nodeRef.data.option_forms),e.optionViewId=null,e.nodeRef.data.option_view_id=void 0,e.viewAttrLoading=!0,r.next=11,e.eadApi.getViewAttrs(e.eadApi.getValues().option_view_id);case 11:e.nodeRef.data.option_forms=r.sent.filter((function(t){return"value"===t.type&&"none"!==t.access})).filter((function(t){return"primary"!==t.key_type})).map((function(t){var r,n,o,i=null===(r=e.optionFormsCache[e.eadApi.getValues().option_view_id])||void 0===r?void 0:r.find((function(e){return e.attrId===t.id})),a=null!==(n=null===i||void 0===i?void 0:i.access)&&void 0!==n?n:"none";return t.required=null!==(o="write"===(null===i||void 0===i?void 0:i.access))&&void 0!==o?o:t.required,{attrId:t.id,attrName:t.alias,attrCode:t.name,access:a,required:t.required}})),e.viewAttrLoading=!1;case 13:case"end":return r.stop()}}),r)})))()},hideDrawer:function(){var t=this,e=Object(N["ref"])(!0);this.$refs.nameForm.validate((function(r){r||(e.value=!1,t.$message.error("节点名称校验不通过"))})),e.value&&(this.visible=!1)},changeTags:function(t){},showEditName:function(){var t=this;this.editName=!0,Object(N["nextTick"])((function(){t.$refs.nameInput.focus()}))},close:function(){},click:function(){this.nodeHandler.isPreview||(this.nodeRef.error=null,this.showDrawer())},more:function(){}},mounted:function(){var t=Op(xp().mark((function t(){var e,r,n;return xp().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.nodeHandler.isPreview){t.next=6;break}return t.next=3,this.nodeHandler.businessAdapter.getActorData();case 3:r=t.sent,n=r.viewAttrs,null!==(e=this.nodeRef.data.option_forms)&&void 0!==e&&e.length||(this.nodeRef.data.option_forms=n.filter((function(t){return"value"===t.type&&"none"!==t.access})).filter((function(t){return"primary"!==t.key_type})).map((function(t){return{attrId:t.id,attrName:t.alias,attrCode:t.name,access:"none",required:t.required}})));case 6:this.viewAttrLoading=!1;case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},Lp=Np,Pp=(r("4c29"),qr(Lp,sp,cp,!1,null,"e7950f88",null)),Cp=Pp.exports,Ap=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"node",on:{click:t.click}},[t.nodeHandler.isPreview?e("div",{staticClass:"disable node-left"}):t._e(),t.nodeHandler.isPreview?t._e():e("div",{staticClass:"node-left",class:t.option.left?"":"disable",on:{click:function(e){return e.stopPropagation(),t.toLeft.apply(null,arguments)}}},[e("span",[t.option.left?e("a-icon",{staticClass:"icon",attrs:{type:"left"}}):t._e()],1)]),e("div",{staticClass:"node-content"},[e("div",{staticClass:"title"},[e("span",{staticClass:"title-main",staticStyle:{"margin-right":"5px"}},[e("a-icon",{attrs:{type:"sliders"}})],1),e("span",{staticClass:"title-main"},[t._v(t._s(t.node.name))]),t.nodeHandler.isPreview?t._e():e("span",{staticClass:"title-right"},[e("a-icon",{staticClass:"close",attrs:{type:"close"},on:{click:function(e){return e.stopPropagation(),t.close.apply(null,arguments)}}})],1)]),e("div",{staticClass:"content"},[e("span",{staticClass:"content-main"},[t.node.content?e("span",[t._v(t._s(t.node.content))]):e("span",{staticStyle:{color:"#666"}},[t._v(t._s(t.defaultContent))])])])]),t.nodeHandler.isPreview?e("div",{staticClass:"disable node-right"}):t._e(),t.nodeHandler.isPreview?t._e():e("div",{staticClass:"node-right",class:t.option.right?"":"disable",on:{click:function(e){return e.stopPropagation(),t.toRight.apply(null,arguments)}}},[e("span",[t.option.right?e("a-icon",{staticClass:"icon",attrs:{type:"right"}}):t._e()],1)])]),e("a-drawer",{attrs:{closable:!0,visible:t.visible,width:720,placement:"right"},on:{close:t.hideDrawer}},[t.editName?t._e():e("div",{staticClass:"node-drawer-title",on:{click:t.showEditName}},[e("a-icon",{attrs:{type:"edit"}}),t._v(" "+t._s(t.node.name)+" ")],1),e("a-form-model",{directives:[{name:"show",rawName:"v-show",value:t.editName,expression:"editName"}],ref:"nameForm",attrs:{model:t.nodeRef,rules:{name:[{required:!0,message:"请填写节点名称",trigger:"blur"},{min:2,max:20,message:"2-20个字",trigger:"blur"}]},layout:"inline"}},[e("a-form-model-item",{ref:"name",attrs:{prop:"name"}},[e("a-input",{ref:"nameInput",attrs:{placeholder:"节点名称"},on:{blur:function(){t.editName=!1}},model:{value:t.nodeRef.name,callback:function(e){t.$set(t.nodeRef,"name",e)},expression:"nodeRef.name"}})],1)],1),e("a-row",{staticStyle:{display:"flex","align-items":"center","margin-top":"5px"}},[e("a-col",{attrs:{span:2}},[t._v("描述")]),e("a-col",{attrs:{span:22}},[e("a-textarea",{attrs:{"auto-size":""},model:{value:t.nodeRef.content,callback:function(e){t.$set(t.nodeRef,"content",e)},expression:"nodeRef.content"}})],1)],1)],1)],1)},Tp=[],Rp={name:"ParallelNode",props:{option:{left:Boolean,right:Boolean,index:Number},node:Yh,nodeHandler:Object},data:function(){return{defaultContent:"无",editName:!1,tabKey:"actors"}},setup:function(t){var e=Object(N["ref"])(!1),r=function(){return e.value=!0};return{visible:e,showDrawer:r,nodeRef:t.node}},methods:{getClass:function(){var t,e,r,n="";return this.node.error&&(n+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(t=t.runtimeData)||void 0===t?void 0:t.currentNodeCode)===this.node.code?n+=" ongoing":null!==(e=this.nodeHandler)&&void 0!==e&&null!==(e=e.runtimeData)&&void 0!==e&&e.caseNodes&&null!==(r=this.nodeHandler)&&void 0!==r&&null!==(r=r.runtimeData)&&void 0!==r&&null!==(r=r.caseNodes[this.node.code])&&void 0!==r&&r.status&&(n+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),n},hideDrawer:function(){var t=this,e=Object(N["ref"])(!0);this.$refs.nameForm.validate((function(r){r||(e.value=!1,t.$message.error("节点名称校验不通过"))})),e.value&&(this.visible=!1)},changeTags:function(t){},showEditName:function(){var t=this;this.editName=!0,Object(N["nextTick"])((function(){t.$refs.nameInput.focus()}))},close:function(){this.nodeHandler.deleteNode(this.node.code)},click:function(){this.showDrawer()},toLeft:function(){this.option.left?this.nodeHandler.moveBranchNode(this.node.code,-1):this.click()},toRight:function(){this.option.right?this.nodeHandler.moveBranchNode(this.node.code,1):this.click()}},mounted:function(){}},Dp=Rp,Ip=(r("5596"),qr(Dp,Ap,Tp,!1,null,"9a75cb32",null)),Mp=Ip.exports,qp=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"branch-wrap"},[e("div",{staticClass:"branch-box"},[e("div",{staticClass:"add-branch"},[t.nodeHandler.isPreview?t._e():e("a-button",{staticStyle:{color:"rgb(113, 141, 255)"},attrs:{shape:"round"},on:{click:t.addBranch}},[t._v(" 添加分支 ")])],1),t._l(t.childNodeCodes,(function(r,n){return[e("div",{key:r,staticClass:"branch-item"},[e("div",{staticClass:"branch-item-line"}),t.nodeHandler.hasNode(r)?e(t.NodeWrap,{tag:"component",attrs:{"node-config":{node:t.nodeHandler.getNode(r),option:{left:0!==n,right:n!==t.childNodeCodes.length-1,index:n}},"node-handler":t.nodeHandler}}):t._e(),0===n?e("div",{staticClass:"top-left-cover-line"}):t._e(),0===n?e("div",{staticClass:"bottom-left-cover-line"}):t._e(),n===t.childNodeCodes.length-1?e("div",{staticClass:"top-right-cover-line"}):t._e(),n===t.childNodeCodes.length-1?e("div",{staticClass:"bottom-right-cover-line"}):t._e()],1)]}))],2)])])},Bp=[],Fp={name:"ParallelWrapNode",computed:{NodeWrap:function(){return zy}},props:{node:Yh,nodeHandler:Object},setup:function(t){var e=t.node,r=t.nodeHandler,n=e.childNodeCodes,o=r.businessAdapter.eadApi,i=function(){return{gateway_type:"parallel"}};return e.data||(e.data=i()),{childNodeCodes:n,eadApi:o}},methods:{addBranch:function(){this.nodeHandler.addBranch(this.node.code,"分支")}}},$p=Fp,Vp=qr($p,qp,Bp,!1,null,"4a228ede",null),Hp=Vp.exports;function Up(t){return Yp(t)||Kp(t)||zp(t)||Gp()}function Gp(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function zp(t,e){if(t){if("string"===typeof t)return Wp(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wp(t,e):void 0}}function Kp(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Yp(t){if(Array.isArray(t))return Wp(t)}function Wp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Zp=function(){var t,e,r,n,o,i=this,a=i._self._c;return a("div",[null!==(t=i.nodeHandler)&&void 0!==t&&null!==(t=t.runtimeData)&&void 0!==t&&null!==(t=t.actorLogs[i.node.code])&&void 0!==t&&t.length?a("a-popover",{attrs:{placement:"rightTop"},scopedSlots:i._u([{key:"content",fn:function(){return[a("div",{staticStyle:{"min-width":"300px","max-width":"1200px"}},[a("runtime-workflow-actors",{attrs:{actors:i.nodeHandler.runtimeData.actorLogs[i.node.code]}})],1)]},proxy:!0}],null,!1,193291077)},[a("div",{staticClass:"node",class:[i.node.error?"error":"",null!==(e=i.nodeHandler)&&void 0!==e&&null!==(e=e.runtimeData)&&void 0!==e&&null!==(e=e.caseNodes[i.node.code])&&void 0!==e&&e.status?i.nodeHandler.runtimeData.caseNodes[i.node.code].status:""],on:{click:i.click}},[a("div",{staticClass:"title"},[a("span",[a("a-icon",{attrs:{component:i.icon}})],1),a("span",[i._v(" "+i._s(i.node.name))]),null!==(r=i.nodeRef)&&void 0!==r&&null!==(r=r.data)&&void 0!==r&&null!==(r=r.other_options)&&void 0!==r&&null!==(r=r.assert)&&void 0!==r&&r.length?a("span",[a("a-icon",{attrs:{type:"control"}})],1):i._e(),i.nodeHandler.isPreview?i._e():a("span",{staticClass:"title-right"},[a("a-icon",{staticClass:"close",attrs:{type:"close"},on:{click:function(t){return t.stopPropagation(),i.close.apply(null,arguments)}}})],1)]),a("div",{staticClass:"content"},[a("span",{staticClass:"content-main"},[a("span",{staticClass:"error-tooltip"},[a("a-tooltip",[a("template",{slot:"title"},[i._v(" "+i._s(i.node.error)+" ")]),a("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),i.nodeContent?a("span",{staticStyle:{"padding-left":"5px"}},[a("span",{domProps:{innerHTML:i._s(i.nodeContent)}})]):a("span",{staticStyle:{"padding-left":"5px",color:"rgb(164 164 164)"}},[i._v(i._s(i.defaultContent))])]),a("span",{staticClass:"content-right"},[i.nodeHandler.isPreview?i._e():a("a-popover",{attrs:{placement:"rightTop",trigger:"click"},scopedSlots:i._u([{key:"title",fn:function(){return[a("span",{staticStyle:{"font-size":"18px"}},[i._v("追加分支")])]},proxy:!0},{key:"content",fn:function(){return[a("div",{staticClass:"add-node-box"},i._l(i.nodes,(function(t,e){var r,n;return a("div",{key:e,staticClass:"add-node-item",on:{click:function(e){return i.wrapNode(t.type)}}},[a("div",{staticClass:"icon",style:"color:"+t.color+";"},[null!==(r=t.icon)&&void 0!==r&&r.component?a("a-icon",{attrs:{component:t.icon.component}}):i._e(),null!==(n=t.icon)&&void 0!==n&&n.type?a("a-icon",{attrs:{type:t.icon.type}}):i._e()],1),a("span",[i._v(i._s(t.name))])])})),0)]},proxy:!0}],null,!1,2863198520),model:{value:i.visiblePopover,callback:function(t){i.visiblePopover=t},expression:"visiblePopover"}},[a("a-icon",{attrs:{type:"plus"},on:{click:function(t){return t.stopPropagation(),function(){}.apply(null,arguments)}}})],1)],1)])])]):a("div",{staticClass:"node",class:i.getClass(),on:{click:i.click}},[a("div",{staticClass:"title"},[a("span",[a("a-icon",{attrs:{component:i.icon}})],1),a("span",[i._v(" "+i._s(i.node.name))]),null!==(n=i.nodeRef)&&void 0!==n&&null!==(n=n.data)&&void 0!==n&&null!==(n=n.other_options)&&void 0!==n&&null!==(n=n.assert)&&void 0!==n&&n.length?a("span",[a("a-icon",{attrs:{type:"control"}})],1):i._e(),i.nodeHandler.isPreview?i._e():a("span",{staticClass:"title-right"},[a("a-icon",{staticClass:"close",attrs:{type:"close"},on:{click:function(t){return t.stopPropagation(),i.close.apply(null,arguments)}}})],1)]),a("div",{staticClass:"content"},[a("span",{staticClass:"content-main"},[a("span",{staticClass:"error-tooltip"},[a("a-tooltip",[a("template",{slot:"title"},[i._v(" "+i._s(i.node.error)+" ")]),a("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),i.nodeContent?a("span",{staticStyle:{"padding-left":"5px"}},[a("span",{domProps:{innerHTML:i._s(i.nodeContent)}})]):a("span",{staticStyle:{"padding-left":"5px",color:"rgb(164 164 164)"}},[i._v(i._s(i.defaultContent))])]),a("span",{staticClass:"content-right"},[i.nodeHandler.isPreview?i._e():a("a-popover",{attrs:{placement:"rightTop",trigger:"click"},scopedSlots:i._u([{key:"title",fn:function(){return[a("span",{staticStyle:{"font-size":"18px"}},[i._v("追加分支")])]},proxy:!0},{key:"content",fn:function(){return[a("div",{staticClass:"add-node-box"},i._l(i.nodes,(function(t,e){var r,n;return a("div",{key:e,staticClass:"add-node-item",on:{click:function(e){return i.wrapNode(t.type)}}},[a("div",{staticClass:"icon",style:"color:"+t.color+";"},[null!==(r=t.icon)&&void 0!==r&&r.component?a("a-icon",{attrs:{component:t.icon.component}}):i._e(),null!==(n=t.icon)&&void 0!==n&&n.type?a("a-icon",{attrs:{type:t.icon.type}}):i._e()],1),a("span",[i._v(i._s(t.name))])])})),0)]},proxy:!0}],null,!1,2863198520),model:{value:i.visiblePopover,callback:function(t){i.visiblePopover=t},expression:"visiblePopover"}},[a("a-icon",{attrs:{type:"plus"},on:{click:function(t){return t.stopPropagation(),function(){}.apply(null,arguments)}}})],1)],1)])]),i.nodeHandler.isPreview?i._e():a("a-drawer",{attrs:{closable:!0,visible:i.visibleDrawer,width:720,placement:"right"},on:{close:i.hideDrawer}},[i.editName?i._e():a("div",{staticClass:"node-drawer-title",on:{click:i.showEditName}},[a("a-icon",{attrs:{type:"edit"}}),i._v(" "+i._s(i.node.name)+" ")],1),a("a-form-model",{directives:[{name:"show",rawName:"v-show",value:i.editName,expression:"editName"}],ref:"nameForm",attrs:{model:i.nodeRef,rules:{name:[{required:!0,message:"请填写节点名称",trigger:"blur"},{min:2,max:20,message:"2-20个字",trigger:"blur"}]},layout:"inline"}},[a("a-form-model-item",{ref:"name",attrs:{prop:"name"}},[a("a-input",{ref:"nameInput",attrs:{placeholder:"节点名称"},on:{blur:function(){i.editName=!1}},model:{value:i.nodeRef.name,callback:function(t){i.$set(i.nodeRef,"name",t)},expression:"nodeRef.name"}})],1)],1),a("a-tabs",{attrs:{"default-active-key":"1"},on:{change:i.changeTags},model:{value:i.tabKey,callback:function(t){i.tabKey=t},expression:"tabKey"}},[a("a-tab-pane",{key:"actors",attrs:{tab:"设置人"}},[a("div",{staticClass:"node-form-item"},[i._v(" 配置执行人策略 "),a("a-radio-group",{attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.actor_config.type,callback:function(t){i.$set(i.nodeRef.data.actor_config,"type",t)},expression:"nodeRef.data.actor_config.type"}},[a("a-radio-button",{attrs:{value:"expression"}},[i._v(" 表达式 ")]),a("a-radio-button",{attrs:{value:"sponsor"}},[i._v(" 发起人自己 ")])],1)],1),"expression"===i.nodeRef.data.actor_config.type?a("div",{staticStyle:{width:"100%"}},[i._l(i.nodeRef.data.actor_config.expression,(function(t,e){return a("div",{key:e},[a("a-row",{staticClass:"node-form-item",staticStyle:{display:"flex","align-items":"center"}},[a("a-col",{attrs:{span:"4"}},[a("a-radio-group",{attrs:{"button-style":"solid",size:"small"},model:{value:t.type,callback:function(e){i.$set(t,"type",e)},expression:"item.type"}},[a("a-radio-button",{attrs:{value:"uid"}},[a("a-icon",{attrs:{type:"user"}})],1),a("a-radio-button",{attrs:{value:"org"}},[a("a-icon",{attrs:{type:"team"}})],1)],1),i.nodeRef.data.actor_config.expression.length>1?a("a-button",{attrs:{icon:"delete",type:"link"},on:{click:function(){return i.nodeRef.data.actor_config.expression.splice(e,1)}}}):i._e()],1),"uid"===t.type?a("a-col",{attrs:{span:"18"}},[a("div",[a("a-select",{staticStyle:{width:"100%"},attrs:{filterOption:i.filterUser,options:[].concat(Up(i.businessUserData),Up(i.users)),mode:"multiple",placeholder:"选择人"},model:{value:t.user,callback:function(e){i.$set(t,"user",e)},expression:"item.user"}})],1)]):i._e(),"org"===t.type?a("a-col",{attrs:{span:"18"}},[a("div",[a("a-row",[a("a-col",{attrs:{span:8}},[a("a-tree-select",{staticStyle:{width:"100%"},attrs:{"dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-data":[i.businessOrgData].concat(Up(i.orgData)),allowClear:"",placeholder:"部门","tree-default-expand-all":""},model:{value:t.orgId,callback:function(e){i.$set(t,"orgId",e)},expression:"item.orgId"}})],1),a("a-col",{attrs:{span:8}},[a("a-select",{staticStyle:{width:"100%"},attrs:{options:i.roles,allowClear:"",placeholder:"角色"},model:{value:t.roleId,callback:function(e){i.$set(t,"roleId",e)},expression:"item.roleId"}})],1)],1)],1)]):i._e(),i.nodeRef.data.actor_config.expression.length===e+1&&i.hasExpression(t)?a("a-col",{attrs:{span:"2"}},[a("a-button",{attrs:{icon:"plus",shape:"circle",type:"primary"},on:{click:function(){i.nodeRef.data.actor_config.expression.push({type:"uid",user:[],orgId:void 0,roleId:void 0,groupId:void 0})}}})],1):i._e()],1)],1)})),a("div",{staticClass:"node-form-item"},[a("a-row",[a("a-col",{attrs:{span:4}},[i._v("自选")]),a("a-col",{attrs:{span:20}},[a("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.actor_config.optional.enable,callback:function(t){i.$set(i.nodeRef.data.actor_config.optional,"enable",t)},expression:"nodeRef.data.actor_config.optional.enable"}},[a("a-radio-button",{attrs:{value:!1}},[i._v(" 禁用 ")]),a("a-radio-button",{attrs:{value:!0}},[i._v(" 启用 ")])],1),i.nodeRef.data.actor_config.optional.enable?a("a-radio-group",{attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.actor_config.optional.multi,callback:function(t){i.$set(i.nodeRef.data.actor_config.optional,"multi",t)},expression:"nodeRef.data.actor_config.optional.multi"}},[a("a-radio-button",{attrs:{value:!1}},[i._v(" 可选单人 ")]),a("a-radio-button",{attrs:{value:!0}},[i._v(" 可选多人 ")])],1):i._e()],1)],1)],1),!i.nodeRef.data.actor_config.optional.enable&&!i.isSingle||i.nodeRef.data.actor_config.optional.enable&&i.nodeRef.data.actor_config.optional.multi?a("div",{staticClass:"node-form-item"},[a("a-row",[a("a-col",{attrs:{span:4}},[i._v("多人审批模式")]),a("a-col",{attrs:{span:20}},[a("a-radio-group",{attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.actor_config.check_mode,callback:function(t){i.$set(i.nodeRef.data.actor_config,"check_mode",t)},expression:"nodeRef.data.actor_config.check_mode"}},[a("a-radio-button",{attrs:{value:"queue"}},[i._v("依次审批")]),a("a-radio-button",{attrs:{value:"orsign"}},[i._v("或签")]),a("a-radio-button",{attrs:{value:"sign"}},[i._v("会签")])],1)],1)],1)],1):i._e()],2):i._e(),a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:4}},[i._v("审批人为空时")]),a("a-col",{attrs:{span:20}},[a("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.other_options.approverIsNull,callback:function(t){i.$set(i.nodeRef.data.other_options,"approverIsNull",t)},expression:"nodeRef.data.other_options.approverIsNull"}},[a("a-radio-button",{attrs:{disabled:"",value:"next"}},[i._v(" 跳过 ")]),a("a-radio-button",{attrs:{value:"error"}},[i._v(" 提示错误 ")])],1)],1)],1)],1),a("a-tab-pane",{key:"forms",attrs:{tab:"操作视图"}},[a("div",{staticClass:"node-form-item"},[a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:24}},[a("a-radio-group",{staticClass:"node-form-item",on:{change:i.changeViewType},model:{value:i.optionViewType,callback:function(t){i.optionViewType=t},expression:"optionViewType"}},[a("a-radio",{attrs:{value:"use_model"}},[i._v(" 沿用工作流模型 ")]),a("a-radio",{attrs:{value:"custom"}},[i._v(" 自主选择 ")])],1)],1)],1),a("a-row",[a("a-col",{attrs:{span:24}},["custom"===i.optionViewType?a("a-select",{staticClass:"node-form-item",staticStyle:{width:"100%"},attrs:{"default-active-first-option":!1,"filter-option":!1,"not-found-content":null,"show-arrow":!1,placeholder:"请输入表单视图名称","show-search":""},on:{change:i.optionViewChange,search:i.optionViewSearch},model:{value:i.nodeRef.data.option_view_id,callback:function(t){i.$set(i.nodeRef.data,"option_view_id",t)},expression:"nodeRef.data.option_view_id"}},i._l(i.optionViewList,(function(t){return a("a-select-option",{key:t.value,attrs:{value:t.value}},[i._v(" "+i._s(t.text)+" ")])})),1):i._e()],1)],1)],1),a("div",{key:i.nodeRef.data.option_view_id,staticClass:"node-from-item"},[a("a-divider",{attrs:{orientation:"left"}},[i._v("表单权限")]),"use_model"===i.optionViewType||i.nodeRef.data.option_view_id?a("a-spin",{attrs:{spinning:i.viewAttrLoading}},[a("a-row",[a("a-col",{attrs:{span:11}},[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索表单属性"},on:{search:function(t){return i.formsColumnFilter=t}}})],1),a("a-col",{attrs:{span:1}}),a("a-col",{attrs:{span:11}},[a("a-radio-group",{attrs:{"button-style":"solid"},model:{value:i.formsColumnAccess,callback:function(t){i.formsColumnAccess=t},expression:"formsColumnAccess"}},[a("a-radio-button",{attrs:{value:"all"}},[i._v(" 无 ")]),a("a-radio-button",{attrs:{value:"none"}},[i._v(" 隐藏 ")]),a("a-radio-button",{attrs:{value:"readonly"}},[i._v(" 只读 ")]),a("a-radio-button",{attrs:{value:"write"}},[i._v(" 可写 ")]),a("a-radio-button",{attrs:{value:"readonlywrite"}},[i._v(" 读写 ")])],1)],1)],1),a("a-table",{attrs:{columns:i.optionFormsColumns,"data-source":i.filterDataset(i.formsColumnFilter,i.nodeRef.data.option_forms,["attrName","attrCode"]),"row-key":function(t){return t.attrId}},scopedSlots:i._u([{key:"attrName",fn:function(t,e){return a("span",{},[i._v(i._s(e.attrName)+"("+i._s(e.attrCode)+")")])}},{key:"none",fn:function(t,e){return a("span",{},[a("a-radio",{attrs:{checked:"none"===e.access,value:"none"},on:{change:function(){return e.access="none"}}},[i._v("隐藏")])],1)}},{key:"readonly",fn:function(t,e){return a("span",{},[a("a-radio",{attrs:{checked:"readonly"===e.access,value:"readonly"},on:{change:function(){return e.access="readonly"}}},[i._v("只读")])],1)}},{key:"write",fn:function(t,e){return a("span",{},[a("a-radio",{attrs:{checked:"write"===e.access,value:"write"},on:{change:function(){return e.access="write"}}},[i._v("可编辑")])],1)}},{key:"required",fn:function(t,e){return a("span",{},["write"===e.access?a("a-switch",{model:{value:e.required,callback:function(t){i.$set(e,"required",t)},expression:"record.required"}}):i._e()],1)}}],null,!1,274236117)},[a("span",{attrs:{slot:"noneColumn"},slot:"noneColumn"},[a("a-radio",{attrs:{checked:"none"===i.optionFormsRadio,value:"none"},on:{change:function(t){return i.optionFormsRadioChange("none")}}},[i._v("隐藏")])],1),a("span",{attrs:{slot:"readonlyColumn"},slot:"readonlyColumn"},[a("a-radio",{attrs:{checked:"readonly"===i.optionFormsRadio,value:"readonly"},on:{change:function(t){return i.optionFormsRadioChange("readonly")}}},[i._v("只读")])],1),a("span",{attrs:{slot:"writeColumn"},slot:"writeColumn"},[a("a-radio",{attrs:{checked:"write"===i.optionFormsRadio,value:"write"},on:{change:function(t){return i.optionFormsRadioChange("write")}}},[i._v("可编辑")])],1)])],1):i._e()],1)]),a("a-tab-pane",{key:"others",attrs:{tab:"其他配置"}},[a("a-card",{staticStyle:{margin:"5px"},attrs:{size:"small",title:"消息配置"}},[a("a-input",{staticStyle:{"margin-bottom":"5px"},attrs:{placeholder:"待办跳转地址;以/结尾,例如:/${appKey}#/res_path/"},model:{value:i.nodeRef.data.other_options.resPath,callback:function(t){i.$set(i.nodeRef.data.other_options,"resPath",t)},expression:"nodeRef.data.other_options.resPath"}}),a("a-input",{attrs:{placeholder:"消息跳转地址"},model:{value:i.nodeRef.data.other_options.redirectUri,callback:function(t){i.$set(i.nodeRef.data.other_options,"redirectUri",t)},expression:"nodeRef.data.other_options.redirectUri"}}),i.noticeTemplateAttr?a("Item",{key:i.noticeTemplateAttr.name,staticClass:"node-form-item",attrs:{formModel:i.eadApi.getComponent().actionModel,params:null!==(o=i.noticeTemplateAttr.params)&&void 0!==o?o:{},prop:i.noticeTemplateAttr.name,required:!1,schema:i.noticeTemplateAttr},on:{change:function(t){return i.handleItemChange(t,i.noticeTemplateAttr)}},model:{value:i.nodeRef.data.notice_template,callback:function(t){i.$set(i.nodeRef.data,"notice_template",t)},expression:"nodeRef.data.notice_template"}}):i._e(),a("a-alert",{attrs:{message:"模板变量:",type:"success"}},[a("div",{attrs:{slot:"description"},slot:"description"},[a("div",[i._v("${workflow.variable.sponsor} - 发起人")]),a("div",[i._v("${workflow.variable.sponsor_name} - 发起人姓名")]),a("div",[i._v("${workflow.variable.sponsor_org} - 发起人组织机构")]),a("div",[i._v("${workflow.variable.sponsor_org_name} - 发起人组织机构名称")]),a("div",[i._v("${workflow.variable.sponsor_role} - 发起人角色")]),a("div",[i._v("${workflow.variable.sponsor_role_name} - 发起人角色名")]),a("div",[i._v("${workflow_req.page_operate.action} - 审批动作")]),a("div",[i._v("${workflow_req.page_operate.approver} - 审批人")]),a("div",[i._v("${workflow_req.page_operate.approver_name} - 审批人名称")])])])],1),a("div",{staticClass:"node-form-item"},[a("a-divider",{attrs:{orientation:"left"}},[i._v("退回配置")]),a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:4}},[i._v("退回配置")]),a("a-col",{attrs:{span:20}},[a("a-radio-group",{staticClass:"node-from-item",staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.page_options.allowBack,callback:function(t){i.$set(i.nodeRef.data.page_options,"allowBack",t)},expression:"nodeRef.data.page_options.allowBack"}},[a("a-radio-button",{attrs:{value:!1}},[i._v(" 禁止 ")]),a("a-radio-button",{attrs:{value:!0}},[i._v(" 允许 ")])],1)],1)],1),a("a-row",[a("a-col",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"},attrs:{span:24}},[i.nodeRef.data.page_options.allowBack?a("a-radio-group",{attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.back_type,callback:function(t){i.$set(i.nodeRef.data,"back_type",t)},expression:"nodeRef.data.back_type"}},[a("a-radio-button",{attrs:{value:"start"}},[i._v(" 退回发起人 ")]),a("a-radio-button",{attrs:{value:"before"}},[i._v(" 退回上一步 ")]),i.availableBackStep.length?a("a-radio-button",{attrs:{value:"assign"}},[i._v(" 指定退回节点 ")]):i._e(),i.availableBackStep.length?a("a-radio-button",{attrs:{value:"custom"}},[i._v(" 自主选择退回节点 ")]):i._e(),a("a-radio-button",{attrs:{value:"bpmn"}},[i._v(" 后续节点控制 ")])],1):i._e()],1)],1),i.nodeRef.data.page_options.allowBack&&"custom"===i.nodeRef.data.back_type?a("a-row",{staticStyle:{display:"flex","align-items":"center"}},[a("a-col",{attrs:{span:5}},[i._v("自主选择退回节点")]),a("a-col",{attrs:{span:19}},[a("a-select",{staticStyle:{width:"100%"},attrs:{options:i.availableBackStep,mode:"multiple",placeholder:"可选退回节点"},model:{value:i.nodeRef.data.custom_back_nodes,callback:function(t){i.$set(i.nodeRef.data,"custom_back_nodes",t)},expression:"nodeRef.data.custom_back_nodes"}})],1)],1):i._e(),i.nodeRef.data.page_options.allowBack&&"assign"===i.nodeRef.data.back_type?a("a-row",{staticStyle:{display:"flex","align-items":"center"}},[a("a-col",{attrs:{span:4}},[i._v("指定退回节点")]),a("a-col",{attrs:{span:20}},[a("a-select",{staticStyle:{width:"100%"},attrs:{options:i.availableBackStep,placeholder:"指定退回节点"},model:{value:i.nodeRef.data.back_node_id,callback:function(t){i.$set(i.nodeRef.data,"back_node_id",t)},expression:"nodeRef.data.back_node_id"}})],1)],1):i._e(),i.nodeRef.data.page_options.allowBack&&"bpmn"===i.nodeRef.data.back_type?a("a-row",[a("a-alert",{attrs:{message:"退回表达式: workflow_req.page_operate.action === 'back'",type:"success"}})],1):i._e()],1),i.nodeRef.data.timeout_remind.enable?a("div",[a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:4}},[i._v("超时时间")]),a("a-col",{attrs:{span:8}},[a("a-input-group",{attrs:{compact:""}},[a("a-input-number",{staticStyle:{width:"70%"},attrs:{max:100,min:1},on:{change:function(t){t||(i.nodeRef.data.timeout_remind.outTime.time=1)}},model:{value:i.nodeRef.data.timeout_remind.outTime.time,callback:function(t){i.$set(i.nodeRef.data.timeout_remind.outTime,"time",t)},expression:"nodeRef.data.timeout_remind.outTime.time"}}),a("a-select",{staticStyle:{width:"30%"},attrs:{options:[{value:"minute",label:"分钟"},{value:"hour",label:"小时"},{value:"day",label:"天"},{value:"week",label:"周"},{value:"month",label:"月"},{value:"year",label:"年"}],placeholder:"单位"},model:{value:i.nodeRef.data.timeout_remind.outTime.unit,callback:function(t){i.$set(i.nodeRef.data.timeout_remind.outTime,"unit",t)},expression:"nodeRef.data.timeout_remind.outTime.unit"}})],1)],1)],1),a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:4}},[i._v("提醒周期")]),a("a-col",{attrs:{span:20}},[a("a-radio-group",{attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.timeout_remind.outCycle,callback:function(t){i.$set(i.nodeRef.data.timeout_remind,"outCycle",t)},expression:"nodeRef.data.timeout_remind.outCycle"}},[a("a-radio-button",{attrs:{value:"once"}},[i._v(" 一次 ")]),a("a-radio-button",{attrs:{value:"day"}},[i._v(" 每天 ")]),a("a-radio-button",{attrs:{value:"week"}},[i._v(" 每周 ")]),a("a-radio-button",{attrs:{value:"month"}},[i._v(" 每月 ")]),a("a-radio-button",{attrs:{value:"year"}},[i._v(" 每年 ")])],1)],1)],1),a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:4}},[i._v("超时驱动")]),a("a-col",{attrs:{span:20}},[a("a-select",{staticStyle:{width:"100%"},attrs:{"default-active-first-option":!1,"filter-option":!1,"not-found-content":null,options:i.driverList,"show-arrow":!1,allowClear:"",placeholder:"输入驱动","show-search":""},on:{change:i.handleDriverChange,search:i.handleDriverSearch},model:{value:i.nodeRef.data.timeout_remind.outDriver,callback:function(t){i.$set(i.nodeRef.data.timeout_remind,"outDriver",t)},expression:"nodeRef.data.timeout_remind.outDriver"}})],1)],1)],1):i._e(),a("div",{staticClass:"node-form-item"},[a("a-divider",{attrs:{orientation:"left"}},[i._v("转办配置")]),a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:4}},[i._v("允许转办")]),a("a-col",{attrs:{span:20}},[a("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.page_options.allowReassign,callback:function(t){i.$set(i.nodeRef.data.page_options,"allowReassign",t)},expression:"nodeRef.data.page_options.allowReassign"}},[a("a-radio-button",{attrs:{value:!1}},[i._v(" 禁止 ")]),a("a-radio-button",{attrs:{value:!0}},[i._v(" 允许 ")])],1)],1)],1)],1),a("div",{staticClass:"node-form-item"},[a("a-divider",{attrs:{orientation:"left"}},[i._v("加签配置")]),a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:4}},[i._v("允许加签")]),a("a-col",{attrs:{span:20}},[a("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.page_options.allowInvolve,callback:function(t){i.$set(i.nodeRef.data.page_options,"allowInvolve",t)},expression:"nodeRef.data.page_options.allowInvolve"}},[a("a-radio-button",{attrs:{value:!1}},[i._v(" 禁止 ")]),a("a-radio-button",{attrs:{value:!0}},[i._v(" 允许 ")])],1)],1)],1)],1),a("div",{staticClass:"node-form-item"},[a("a-divider",{attrs:{orientation:"left"}},[i._v("流程结束")]),a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:4}},[i._v("允许结束")]),a("a-col",{attrs:{span:20}},[a("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.page_options.allowEnd,callback:function(t){i.$set(i.nodeRef.data.page_options,"allowEnd",t)},expression:"nodeRef.data.page_options.allowEnd"}},[a("a-radio-button",{attrs:{value:!1}},[i._v(" 禁止 ")]),a("a-radio-button",{attrs:{value:!0,disabled:""}},[i._v(" 允许 ")])],1)],1)],1)],1),a("div",[a("a-divider",{attrs:{orientation:"left"}},[i._v("超时提醒")])],1),a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:4}},[i._v("超时提醒设置")]),a("a-col",{attrs:{span:20}},[a("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.timeout_remind.enable,callback:function(t){i.$set(i.nodeRef.data.timeout_remind,"enable",t)},expression:"nodeRef.data.timeout_remind.enable"}},[a("a-radio-button",{attrs:{value:!1}},[i._v(" 禁用 ")]),a("a-radio-button",{attrs:{value:!0,disabled:""}},[i._v(" 启用 ")])],1)],1)],1),a("div",{staticClass:"node-form-item"},[a("a-divider",{attrs:{orientation:"left"}},[i._v("其他配置")]),a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:4}},[i._v("是否回执")]),a("a-col",{attrs:{span:20}},[a("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.other_options.allowReceipt,callback:function(t){i.$set(i.nodeRef.data.other_options,"allowReceipt",t)},expression:"nodeRef.data.other_options.allowReceipt"}},[a("a-radio-button",{attrs:{value:!1}},[i._v(" 禁止 ")]),a("a-radio-button",{attrs:{value:!0,disabled:""}},[i._v(" 允许 ")])],1)],1)],1)],1),a("div",{staticClass:"node-form-item"},[a("a-divider",{attrs:{orientation:"left"}},[i._v("自定义参数")]),a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:24}},[a("a-textarea",{attrs:{"auto-size":"",placeholder:"自定义参数(JSONObject); {}"},model:{value:i.nodeRef.data.other_options.custom,callback:function(t){i.$set(i.nodeRef.data.other_options,"custom",t)},expression:"nodeRef.data.other_options.custom"}})],1)],1)],1),a("div",{staticClass:"node-form-item"},[a("a-divider",{attrs:{orientation:"left"}},[i._v("自定义动作名称")]),a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{staticStyle:{display:"flex","align-items":"center"},attrs:{span:3}},[i._v("审批通过:")]),a("a-col",{staticStyle:{display:"flex","align-items":"center"},attrs:{span:6}},[a("a-input",{attrs:{placeholder:"审批通过"},model:{value:i.nodeRef.data.other_options.custom_action.pass,callback:function(t){i.$set(i.nodeRef.data.other_options.custom_action,"pass",t)},expression:"nodeRef.data.other_options.custom_action.pass"}})],1),a("a-col",{attrs:{span:5}}),a("a-col",{staticStyle:{display:"flex","align-items":"center"},attrs:{span:3}},[i._v("审批退回:")]),a("a-col",{staticStyle:{display:"flex","align-items":"center"},attrs:{span:6}},[a("a-input",{attrs:{placeholder:"审批退回"},model:{value:i.nodeRef.data.other_options.custom_action.back,callback:function(t){i.$set(i.nodeRef.data.other_options.custom_action,"back",t)},expression:"nodeRef.data.other_options.custom_action.back"}})],1)],1)],1)],1),i.nodeRef.data.other_options.assert?a("a-tab-pane",{key:"assert",attrs:{tab:"断言"}},[a("div",[i.nodeRef.data.other_options.assert?a("assert-designer",{attrs:{data:i.nodeRef.data.other_options.assert,"hide-action":!1}}):i._e()],1)]):i._e()],1)],1)],1)},Jp=[];function Xp(t){return Xp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xp(t)}function Qp(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Qp=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Xp(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Xp(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function tv(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function ev(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){tv(i,n,o,a,s,"next",t)}function s(t){tv(i,n,o,a,s,"throw",t)}a(void 0)}))}}function rv(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=nv(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function nv(t,e){if(t){if("string"===typeof t)return ov(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ov(t,e):void 0}}function ov(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function iv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function av(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?iv(Object(r),!0).forEach((function(e){sv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sv(t,e,r){return e=cv(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cv(t){var e=lv(t,"string");return"symbol"==Xp(e)?e:String(e)}function lv(t,e){if("object"!=Xp(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Xp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var uv={name:"CheckNode",props:{node:Yh,nodeHandler:Object},components:{AssertDesigner:wp,RuntimeWorkflowActors:pp,Item:Ri},data:function(){return{defaultContent:"请选择",editName:!1,tabKey:"actors",optionViewType:"use_model",optionViewId:null,optionViewList:[],optionFormsColumns:[{title:"表单属性",key:"attrName",scopedSlots:{customRender:"attrName"}},{key:"none",slots:{title:"noneColumn"},scopedSlots:{customRender:"none"}},{key:"readonly",slots:{title:"readonlyColumn"},scopedSlots:{customRender:"readonly"}},{key:"write",slots:{title:"writeColumn"},scopedSlots:{customRender:"write"}},{title:"必填",dataIndex:"required",key:"required",scopedSlots:{customRender:"required"}}],orgMap:null,orgData:[],roles:[],users:[],viewNameTimeout:null,viewAttrLoading:!0,driverList:null,driverTimeout:null,optionFormsCache:{},formsColumnFilter:void 0,formsColumnAccess:"all"}},setup:function(t){var e=t.node,r=t.nodeHandler,n={template:'\n <svg viewBox="0 0 1024 1024">\n <path fill=" currentColor" d="M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0zm544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"></path>\n </svg>\n '},o=Object(N["ref"])(!1),i=r.businessAdapter.eadApi,a=function(){return{eadCache:{workflow:{}},actor_config:{type:"expression",expression:[{type:"org",user:[],orgId:void 0,roleId:void 0,groupId:void 0}],optional:{enable:!1,multi:!1},check_mode:"queue"},option_view_id:"",option_forms:[],back_type:"start",back_node_id:"",custom_back_nodes:[],timeout_remind:{enable:!1,outTime:{time:1,unit:"day"},outCycle:"once",outDriver:void 0},page_options:{allowInvolve:!1,allowReassign:!1,allowBack:!1,allowEnd:!1},other_options:{allowReceipt:!1,allowWithdraw:!1,approverIsNull:"error",resPath:null,redirectUri:null,assert:[],custom_action:{}},notice_template:null}};e.data||(e.data=a()),e.data.other_options.custom_action||(e.data.other_options.custom_action={}),e.data.other_options.assert||(e.data.other_options.assert=[]);var s=function(){return o.value=!0},c={visibleDrawer:o,showDrawer:s},l=Object(N["ref"])(!1),u=function(){return l.value=!1},f=function(){return l.value=!0},h={visiblePopover:l,showPopover:f,hidePopover:u},d=[{name:"条件分支",type:qh.JUDGE_WRAP,icon:{type:"apartment"},color:"rgb(21, 188, 131)"},{name:"并行分支",type:qh.PARALLEL_WRAP,icon:{type:"sliders"},color:"rgb(113, 141, 255)"}],p=function(t){r.wrapNode(e.code,{type:t})},v={nodes:d,wrapNode:p},y=r.isPreview?null:r.businessAdapter.eadApi.getCurrentViewSchema().model.attrs.find((function(t){return"notice_template"===t.name}));return av(av(av(av({icon:n},c),h),v),{},{nodeRef:e,eadApi:i,noticeTemplateAttr:y})},computed:{isSingle:function(){return"expression"===this.nodeRef.data.actor_config.type?1===this.nodeRef.data.actor_config.expression.length&&"uid"===this.nodeRef.data.actor_config.expression[0].type&&this.nodeRef.data.actor_config.expression[0].user.length<=1:"sponsor"===this.nodeRef.data.actor_config.type},availableBackStep:function(){var t=this.nodeHandler.businessAdapter.getAvailableBackStep(this.node.code).map((function(t){return{value:t.code,label:t.name}}));return t.length&&(this.node.data.back_node_id=t[0].value,this.node.data.custom_back_nodes=t.map((function(t){return t.value}))),t},nodeContent:function(){var t=this;if(this.nodeHandler.isPreview){var e,r,n,o="";if(null!==(e=this.nodeHandler)&&void 0!==e&&null!==(e=e.runtimeData)&&void 0!==e&&e.caseNodes&&null!==(r=this.nodeHandler)&&void 0!==r&&null!==(r=r.runtimeData)&&void 0!==r&&null!==(r=r.caseNodes[this.node.code])&&void 0!==r&&r.status){var i,a=null===(i=this.nodeHandler)||void 0===i||null===(i=i.runtimeData)||void 0===i?void 0:i.caseNodes[this.node.code].actors;a.forEach((function(t){o&&(o+="、"),o+='<span class="actor '.concat(t.status,'">').concat(t.operator.name,"</span>")})),o||(o+="&nbsp;")}return(null===(n=this.nodeHandler)||void 0===n||null===(n=n.runtimeData)||void 0===n?void 0:n.currentNodeCode)===this.nodeRef.code&&(o&&"&nbsp;"!==o&&(o+="、"),o+='<span class="actor pending">'.concat(this.eadApi.getCurrentUserName(),"</span>")),o||this.nodeRef.content}var s=this.node.data.actor_config,c="";if(!this.orgMap||!this.roles||!this.users)return c;if("expression"===s.type){var l=s.expression;if(l.length){if("org"===l[0].type){if(l[0].orgId)if(this.orgMap.has(l[0].orgId))c=c+=c?"、"+this.orgMap.get(l[0].orgId).org_name:this.orgMap.get(l[0].orgId).org_name;else{var u,f=null===(u=this.businessOrgData.children.find((function(t){return t.value===l[0].orgId})))||void 0===u?void 0:u.title;c=c+=c?"、"+f:f}l[0].roleId&&(c=c+=c?"-"+this.roles.find((function(t){return t.value===l[0].roleId})).label:this.roles.find((function(t){return t.value===l[0].roleId})).label)}if("uid"===l[0].type){var h=this.businessUserData.map((function(t){return t.value}));c=l[0].user.map((function(e){var r=h.includes(e)?t.businessUserData.find((function(t){return t.value===e})).label:t.users.find((function(t){return t.value===e})).label;return r.substring(0,r.indexOf("("))})).join("、")}}l.length>1&&(c+="...")}return"sponsor"===s.type&&(c="发起人自己"),this.nodeRef.content=c,c},optionFormsRadio:function(){var t=this.node.data.option_forms;if(!t.length)return"-";var e=t[0].access;return t.filter((function(t){return t.access===e})).length===t.length?e:"-"},businessOrgData:function(){var t=[],e={title:"操作视图",value:"${form_option_view}",key:"${form_option_view}",disabled:!0,children:t};return this.nodeRef.data.option_forms&&this.nodeRef.data.option_forms.length?(this.nodeRef.data.option_forms.forEach((function(e){t.push({title:e.attrName,value:"${"+e.attrCode+"}",key:"${"+e.attrCode+"}",children:[]})})),e):e},businessUserData:function(){var t=[];return this.nodeRef.data.option_forms&&this.nodeRef.data.option_forms.length?(this.nodeRef.data.option_forms.forEach((function(e){t.push({label:e.attrName+"(操作视图)",title:e.attrName+"(操作视图)",value:"${"+e.attrCode+"}",key:e.attrName+"-"+e.attrCode+"(操作视图)",children:[]})})),t):t}},methods:{filterDataset:function(t,e,r){var n=this;return t?e.filter((function(e){var n,o=rv(r);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(e[i].toString().toLowerCase().includes(t.toLowerCase()))return!0}}catch(a){o.e(a)}finally{o.f()}return!1})).filter((function(t){return"all"===n.formsColumnAccess||-1!==n.formsColumnAccess.indexOf(t.access.toString())})):e.filter((function(t){return"all"===n.formsColumnAccess||-1!==n.formsColumnAccess.indexOf(t.access.toString())}))},getClass:function(){var t,e,r,n="";return this.node.error&&(n+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(t=t.runtimeData)||void 0===t?void 0:t.currentNodeCode)===this.node.code?n+=" ongoing":null!==(e=this.nodeHandler)&&void 0!==e&&null!==(e=e.runtimeData)&&void 0!==e&&e.caseNodes&&null!==(r=this.nodeHandler)&&void 0!==r&&null!==(r=r.runtimeData)&&void 0!==r&&null!==(r=r.caseNodes[this.node.code])&&void 0!==r&&r.status&&(n+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),n},filterUser:function(t,e){var r=e.data;return-1!==r.key.indexOf(t)},loadCache:function(t){var e,r,n,o,i,a;this.optionViewType=null!==(e=null===(r=t.data)||void 0===r||null===(r=r.eadCache)||void 0===r||null===(r=r.workflow)||void 0===r?void 0:r.optionViewType)&&void 0!==e?e:this.optionViewType,this.optionViewList=null!==(n=null===(o=t.data)||void 0===o||null===(o=o.eadCache)||void 0===o||null===(o=o.workflow)||void 0===o?void 0:o.optionViewList)&&void 0!==n?n:this.optionViewList,this.driverList=null!==(i=null===(a=t.data)||void 0===a||null===(a=a.eadCache)||void 0===a||null===(a=a.workflow)||void 0===a?void 0:a.driverList)&&void 0!==i?i:this.driverList},handleDriverChange:function(t,e){},handleDriverSearch:function(t){var e=this;this.driverTimeout&&(clearTimeout(this.driverTimeout),this.driverTimeout=null);var r=function(){t&&e.eadApi.getDrivers(t).then((function(t){e.driverList=t.map((function(t){return{value:t.driver_id,label:t.driver_name,title:t.driver_name}})),e.nodeRef.data.eadCache.workflow.driverList=e.driverList}))};this.driverTimeout=setTimeout(r,300)},hasExpression:function(t){return"uid"===t.type?t.user&&t.user.length:"org"===t.type&&(t.orgId||t.roleId||t.groupId)},handleItemChange:function(t,e){},optionFormsRadioChange:function(t){this.node.data.option_forms.forEach((function(e){return e.access=t}))},optionViewChange:function(t){var e=this;return ev(Qp().mark((function r(){return Qp().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e.formsColumnFilter=void 0,e.optionViewId&&(e.optionFormsCache[e.optionViewId]=e.nodeRef.data.option_forms),e.optionViewId=t,e.nodeRef.data.eadCache.workflow.optionViewList=[e.optionViewList.find((function(e){return e.value===t}))],e.viewAttrLoading=!0,r.next=7,e.eadApi.getViewAttrs(t);case 7:e.nodeRef.data.option_forms=r.sent.filter((function(t){return"value"===t.type&&"none"!==t.access})).filter((function(t){return"primary"!==t.key_type})).map((function(r){var n,o,i,a=null===(n=e.optionFormsCache[t])||void 0===n?void 0:n.find((function(t){return t.attrId===r.id})),s=null!==(o=null===a||void 0===a?void 0:a.access)&&void 0!==o?o:"none";return r.required=null!==(i="write"===(null===a||void 0===a?void 0:a.access))&&void 0!==i?i:r.required,{attrId:r.id,attrName:r.alias,attrCode:r.name,access:s,required:r.required}})),e.$nextTick((function(){e.viewAttrLoading=!1}));case 9:case"end":return r.stop()}}),r)})))()},optionViewSearch:function(t){var e=this;this.viewNameTimeout&&(clearTimeout(this.viewNameTimeout),this.viewNameTimeout=null);var r=function(){t&&e.eadApi.getViews(t).then((function(t){e.optionViewList=t.map((function(t){return{value:t.view_id,text:t.view_name}}))}))};this.viewNameTimeout=setTimeout(r,300)},changeViewType:function(t){var e=this;return ev(Qp().mark((function r(){var n,o;return Qp().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=t.target,o=n.value,e.nodeRef.data.eadCache.workflow.optionViewType=o,"custom"===o&&(e.optionFormsCache[e.eadApi.getValues().option_view_id]=e.nodeRef.data.option_forms),"use_model"!==o){r.next=13;break}return e.optionViewId&&(e.optionFormsCache[e.optionViewId]=e.nodeRef.data.option_forms),e.optionViewId=null,e.nodeRef.data.option_view_id=void 0,e.viewAttrLoading=!0,r.next=11,e.eadApi.getViewAttrs(e.eadApi.getValues().option_view_id);case 11:e.nodeRef.data.option_forms=r.sent.filter((function(t){return"value"===t.type&&"none"!==t.access})).filter((function(t){return"primary"!==t.key_type})).map((function(t){var r,n,o,i=null===(r=e.optionFormsCache[e.eadApi.getValues().option_view_id])||void 0===r?void 0:r.find((function(e){return e.attrId===t.id})),a=null!==(n=null===i||void 0===i?void 0:i.access)&&void 0!==n?n:"none";return t.required=null!==(o="write"===(null===i||void 0===i?void 0:i.access))&&void 0!==o?o:t.required,{attrId:t.id,attrName:t.alias,attrCode:t.name,access:a,required:t.required}})),e.viewAttrLoading=!1;case 13:case"end":return r.stop()}}),r)})))()},hideDrawer:function(){var t=this,e=Object(N["ref"])(!0);this.$refs.nameForm.validate((function(r){r||(e.value=!1,t.$message.error("节点名称校验不通过"))})),e.value&&(this.visibleDrawer=!1)},changeTags:function(t){},showEditName:function(){var t=this;this.editName=!0,Object(N["nextTick"])((function(){t.$refs.nameInput.focus()}))},close:function(){this.nodeHandler.deleteNode(this.node.code)},click:function(){this.nodeHandler.isPreview||(this.nodeRef.error=null,this.showDrawer())},more:function(){this.showPopover()}},created:function(){this.loadCache(this.nodeRef)},mounted:function(){var t=ev(Qp().mark((function t(){var e,r,n,o,i,a,s;return Qp().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.nodeHandler.businessAdapter.getActorData();case 2:r=t.sent,n=r.viewAttrs,o=r.orgMap,i=r.orgData,a=r.roles,s=r.users,null!==(e=this.nodeRef.data.option_forms)&&void 0!==e&&e.length||(this.nodeRef.data.option_forms=n.filter((function(t){return"value"===t.type&&"none"!==t.access})).filter((function(t){return"primary"!==t.key_type})).map((function(t){return{attrId:t.id,attrName:t.alias,attrCode:t.name,access:"none",required:t.required}}))),this.viewAttrLoading=!1,this.orgMap=o,this.orgData=i,this.roles=a,this.users=s;case 14:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},fv=uv,hv=(r("f2fb"),qr(fv,Zp,Jp,!1,null,"14b216a6",null)),dv=hv.exports,pv=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"branch-wrap"},[e("div",{staticClass:"branch-box"},[e("div",{staticClass:"add-branch"},[t.nodeHandler.isPreview?t._e():e("a-button",{staticStyle:{color:"#15bc83"},attrs:{shape:"round"},on:{click:t.addBranch}},[t._v("添加条件 ")]),t.nodeHandler.isPreview?t._e():e("div",{staticClass:"wrap-more"},["exclusive"===t.nodeRef.data.gateway_type?e("a-button",{staticStyle:{"background-color":"#15bc83","border-color":"#15bc83",transform:"rotate(45deg)"},attrs:{icon:"plus",type:"primary",size:"small"},on:{click:function(){return t.nodeRef.data.gateway_type="inclusive"}}}):t._e(),"inclusive"===t.nodeRef.data.gateway_type?e("a-button",{staticStyle:{"background-color":"#15bc83","border-color":"#15bc83",transform:"rotate(45deg)",width:"24px",display:"flex","justify-content":"center","align-items":"center"},attrs:{type:"primary",size:"small"},on:{click:function(){return t.nodeRef.data.gateway_type="exclusive"}}},[e("a-icon",{attrs:{component:t.includeIcon}})],1):t._e()],1)],1),t._l(t.childNodeCodes,(function(r,n){return[e("div",{key:r,staticClass:"branch-item"},[e("div",{staticClass:"branch-item-line"}),t.nodeHandler.hasNode(r)?e(t.NodeWrap,{tag:"component",attrs:{"node-config":{node:t.nodeHandler.getNode(r),option:{left:0!==n,right:n!==t.childNodeCodes.length-1,index:n}},"node-handler":t.nodeHandler}}):t._e(),0===n?e("div",{staticClass:"top-left-cover-line"}):t._e(),0===n?e("div",{staticClass:"bottom-left-cover-line"}):t._e(),n===t.childNodeCodes.length-1?e("div",{staticClass:"top-right-cover-line"}):t._e(),n===t.childNodeCodes.length-1?e("div",{staticClass:"bottom-right-cover-line"}):t._e()],1)]}))],2)]),e("a-drawer",{attrs:{closable:!0,title:t.node.name,visible:t.visibleDrawer,width:720,placement:"right"},on:{close:t.hideDrawer}},[e("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[e("a-col",{attrs:{span:4}},[t._v(" 条件执行策略 ")]),e("a-col",{attrs:{span:20}},[e("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:t.nodeRef.data.gateway_type,callback:function(e){t.$set(t.nodeRef.data,"gateway_type",e)},expression:"nodeRef.data.gateway_type"}},[e("a-radio-button",{attrs:{value:"exclusive"}},[t._v(" 唯一 ")]),e("a-radio-button",{attrs:{value:"inclusive"}},[t._v(" 包含 ")])],1)],1)],1)],1)],1)},vv=[];function yv(t){return yv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yv(t)}function mv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function gv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mv(Object(r),!0).forEach((function(e){bv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function bv(t,e,r){return e=wv(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wv(t){var e=_v(t,"string");return"symbol"==yv(e)?e:String(e)}function _v(t,e){if("object"!=yv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=yv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var xv={name:"JudgeWrapNode",computed:{NodeWrap:function(){return zy}},props:{node:Yh,nodeHandler:Object},setup:function(t){var e=t.node,r=t.nodeHandler,n=e.childNodeCodes,o={template:' <svg viewBox="0 0 1024 1024">\n <ellipse fill=" currentColor" cx="512" cy="512" id="svg_2" rx="468.5" ry="446.56354" stroke="null"/>\n </svg>'},i=r.businessAdapter.eadApi,a=function(){return{gateway_type:"exclusive"}};e.data||(e.data=a());var s=Object(N["ref"])(!1),c=function(){return s.value=!0},l=function(){return s.value=!1},u={visibleDrawer:s,showDrawer:c,hideDrawer:l};return gv({includeIcon:o,childNodeCodes:n,nodeRef:e,eadApi:i},u)},methods:{addBranch:function(){this.nodeHandler.addBranch(this.node.code,"条件")}}},kv=xv,Ov=(r("13e9"),qr(kv,pv,vv,!1,null,"0ab38de0",null)),Ev=Ov.exports,Sv=function(){var t,e=this,r=e._self._c;return r("div",[r("div",{staticClass:"node",class:e.getClass(),on:{click:e.click}},[e.nodeHandler.isPreview?r("div",{staticClass:"disable node-left"}):e._e(),e.nodeHandler.isPreview?e._e():r("div",{staticClass:"node-left",class:e.option.left?"":"disable",on:{click:function(t){return t.stopPropagation(),e.toLeft.apply(null,arguments)}}},[r("span",[e.option.left?r("a-icon",{staticClass:"icon",attrs:{type:"left"}}):e._e()],1)]),r("div",{staticClass:"node-content"},[r("div",{staticClass:"title"},[r("span",{staticClass:"title-main",staticStyle:{"margin-right":"5px"}},["exclusive"===(null===(t=e.wrapNode)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.gateway_type)?r("a-icon",{attrs:{type:"apartment"}}):r("a-icon",{attrs:{type:"deployment-unit"}})],1),r("span",{staticClass:"title-main"},[e._v(e._s(e.node.name))]),e.nodeHandler.isPreview?e._e():r("span",{staticClass:"title-right"},[r("a-icon",{staticClass:"close",attrs:{type:"close"},on:{click:function(t){return t.stopPropagation(),e.close.apply(null,arguments)}}}),r("span",{staticClass:"info"},[e._v("优先级"+e._s(e.option.index+1))])],1)]),r("div",{staticClass:"content"},[r("span",{staticClass:"content-main"},[r("span",{staticClass:"error-tooltip"},[r("a-tooltip",[r("template",{slot:"title"},[e._v(" "+e._s(e.node.error)+" ")]),r("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),e.node.content?r("span",[e._v(e._s(e.node.content))]):r("span",{staticStyle:{color:"rgb(164 164 164)"}},[e._v(e._s(e.defaultContent))])])])]),e.nodeHandler.isPreview?r("div",{staticClass:"disable node-right"}):e._e(),e.nodeHandler.isPreview?e._e():r("div",{staticClass:"node-right",class:e.option.right?"":"disable",on:{click:function(t){return t.stopPropagation(),e.toRight.apply(null,arguments)}}},[r("span",[e.option.right?r("a-icon",{staticClass:"icon",attrs:{type:"right"}}):e._e()],1)])]),r("a-drawer",{attrs:{"after-visible-change":e.change,closable:!0,visible:e.visible,width:720,placement:"right"},on:{close:e.hideDrawer}},[e.editName?e._e():r("div",{staticClass:"node-drawer-title",on:{click:e.showEditName}},[r("a-icon",{attrs:{type:"edit"}}),e._v(" "+e._s(e.node.name)+" ")],1),r("a-form-model",{directives:[{name:"show",rawName:"v-show",value:e.editName,expression:"editName"}],ref:"nameForm",attrs:{model:e.nodeRef,rules:{name:[{required:!0,message:"请填写节点名称",trigger:"blur"},{min:2,max:20,message:"2-20个字",trigger:"blur"}]},layout:"inline"}},[r("a-form-model-item",{ref:"name",attrs:{prop:"name"}},[r("a-input",{ref:"nameInput",attrs:{placeholder:"节点名称"},on:{blur:function(){e.editName=!1}},model:{value:e.nodeRef.name,callback:function(t){e.$set(e.nodeRef,"name",t)},expression:"nodeRef.name"}})],1)],1),r("div",[e.hasDefault?e._e():r("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[r("a-col",{attrs:{span:2}},[e._v("默认")]),r("a-col",{attrs:{span:22}},[r("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:e.nodeRef.data.isDefault,callback:function(t){e.$set(e.nodeRef.data,"isDefault",t)},expression:"nodeRef.data.isDefault"}},[r("a-radio-button",{attrs:{value:!1}},[e._v(" 否 ")]),r("a-radio-button",{attrs:{value:!0}},[e._v(" 是 ")])],1)],1)],1),e.nodeRef.data.isDefault?e._e():r("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[r("a-col",{attrs:{span:2}},[e._v("表达式")]),r("a-col",{attrs:{span:22}},[r("a-textarea",{attrs:{"auto-size":""},model:{value:e.nodeRef.data.condition,callback:function(t){e.$set(e.nodeRef.data,"condition",t)},expression:"nodeRef.data.condition"}})],1)],1),r("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[r("a-col",{attrs:{span:2}},[e._v("描述")]),r("a-col",{attrs:{span:22}},[r("a-textarea",{attrs:{"auto-size":""},model:{value:e.nodeRef.content,callback:function(t){e.$set(e.nodeRef,"content",t)},expression:"nodeRef.content"}})],1)],1)],1)],1)],1)},jv=[],Nv={name:"JudgeNode",props:{option:{left:Boolean,right:Boolean,index:Number},node:Yh,nodeHandler:Object},computed:{hasDefault:function(){var t=this,e=this.nodeHandler.getWrapNode(this.nodeRef.code).childNodeCodes,r=e.filter((function(e){return e!==t.nodeRef.code})).filter((function(e){var r;return null===(r=t.nodeHandler.getNode(e))||void 0===r||null===(r=r.data)||void 0===r?void 0:r.isDefault})).length;return!!r}},data:function(){return{defaultContent:"请设置条件",editName:!1,wrapNode:null}},setup:function(t){var e=t.node,r=t.nodeHandler,n=Object(N["ref"])(!1),o=function(t){},i=function(){return n.value=!0},a=function(){return n.value=!1},s=r.businessAdapter.eadApi,c=function(){return{condition:"",isDefault:!1}};return e.data||(e.data=c()),{visible:n,showDrawer:i,hideDrawer:a,change:o,nodeRef:e,eadApi:s}},methods:{getClass:function(){var t,e,r,n="";return this.node.error&&(n+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(t=t.runtimeData)||void 0===t?void 0:t.currentNodeCode)===this.node.code?n+=" ongoing":null!==(e=this.nodeHandler)&&void 0!==e&&null!==(e=e.runtimeData)&&void 0!==e&&e.caseNodes&&null!==(r=this.nodeHandler)&&void 0!==r&&null!==(r=r.runtimeData)&&void 0!==r&&null!==(r=r.caseNodes[this.node.code])&&void 0!==r&&r.status&&(n+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),n},showEditName:function(){var t=this;this.editName=!0,Object(N["nextTick"])((function(){t.$refs.nameInput.focus()}))},close:function(){this.nodeHandler.deleteNode(this.node.code)},click:function(){this.nodeHandler.isPreview||(this.nodeRef.error=null,this.showDrawer())},toLeft:function(){this.option.left?this.nodeHandler.moveBranchNode(this.node.code,-1):this.click()},toRight:function(){this.option.right?this.nodeHandler.moveBranchNode(this.node.code,1):this.click()}},mounted:function(){var t=this.nodeHandler;this.wrapNode=t.getWrapNode(this.node.code)}},Lv=Nv,Pv=(r("2f4d"),qr(Lv,Sv,jv,!1,null,"3cf68a4f",null)),Cv=Pv.exports;function Av(t){return Iv(t)||Dv(t)||Rv(t)||Tv()}function Tv(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Rv(t,e){if(t){if("string"===typeof t)return Mv(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mv(t,e):void 0}}function Dv(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Iv(t){if(Array.isArray(t))return Mv(t)}function Mv(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var qv=function(){var t,e=this,r=e._self._c;return r("div",[r("div",{staticClass:"node",class:e.getClass(),on:{click:e.click}},[r("div",{staticClass:"title"},[r("span",[r("a-icon",{attrs:{type:"mail"}})],1),r("span",[e._v(" "+e._s(e.node.name))]),e.nodeHandler.isPreview?e._e():r("span",{staticClass:"title-right"},[r("a-icon",{staticClass:"close",attrs:{type:"close"},on:{click:function(t){return t.stopPropagation(),e.close.apply(null,arguments)}}})],1)]),r("div",{staticClass:"content"},[r("span",{staticClass:"content-main"},[r("span",{staticClass:"error-tooltip"},[r("a-tooltip",[r("template",{slot:"title"},[e._v(" "+e._s(e.node.error)+" ")]),r("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),e.nodeContent?r("span",{staticStyle:{"padding-left":"5px"}},[e._v(e._s(e.nodeContent))]):r("span",{staticStyle:{"padding-left":"5px",color:"rgb(164 164 164)"}},[e._v(e._s(e.defaultContent))])]),r("span",{staticClass:"content-right"},[e.nodeHandler.isPreview?e._e():r("a-popover",{attrs:{placement:"rightTop",trigger:"click"},scopedSlots:e._u([{key:"title",fn:function(){return[r("span",{staticStyle:{"font-size":"18px"}},[e._v("追加分支")])]},proxy:!0},{key:"content",fn:function(){return[r("div",{staticClass:"add-node-box"},e._l(e.nodes,(function(t,n){var o,i;return r("div",{key:n,staticClass:"add-node-item",on:{click:function(r){return e.wrapNode(t.type)}}},[r("div",{staticClass:"icon",style:"color:"+t.color+";"},[null!==(o=t.icon)&&void 0!==o&&o.component?r("a-icon",{attrs:{component:t.icon.component}}):e._e(),null!==(i=t.icon)&&void 0!==i&&i.type?r("a-icon",{attrs:{type:t.icon.type}}):e._e()],1),r("span",[e._v(e._s(t.name))])])})),0)]},proxy:!0}],null,!1,2863198520),model:{value:e.visiblePopover,callback:function(t){e.visiblePopover=t},expression:"visiblePopover"}},[r("a-icon",{attrs:{type:"plus"},on:{click:function(t){return t.stopPropagation(),function(){}.apply(null,arguments)}}})],1)],1)])]),e.nodeHandler.isPreview?e._e():r("a-drawer",{attrs:{closable:!0,visible:e.visibleDrawer,width:720,placement:"right"},on:{close:e.hideDrawer}},[e.editName?e._e():r("div",{staticClass:"node-drawer-title",on:{click:e.showEditName}},[r("a-icon",{attrs:{type:"edit"}}),e._v(" "+e._s(e.node.name)+" ")],1),r("a-form-model",{directives:[{name:"show",rawName:"v-show",value:e.editName,expression:"editName"}],ref:"nameForm",attrs:{model:e.nodeRef,rules:{name:[{required:!0,message:"请填写节点名称",trigger:"blur"},{min:2,max:20,message:"2-20个字",trigger:"blur"}]},layout:"inline"}},[r("a-form-model-item",{ref:"name",attrs:{prop:"name"}},[r("a-input",{ref:"nameInput",attrs:{placeholder:"节点名称"},on:{blur:function(){e.editName=!1}},model:{value:e.nodeRef.name,callback:function(t){e.$set(e.nodeRef,"name",t)},expression:"nodeRef.name"}})],1)],1),r("a-tabs",{attrs:{"default-active-key":"1"},on:{change:e.changeTags},model:{value:e.tabKey,callback:function(t){e.tabKey=t},expression:"tabKey"}},[r("a-tab-pane",{key:"actors",attrs:{tab:"设置人"}},e._l(e.nodeRef.data.actor_config.expression,(function(t,n){return r("div",{key:n},[r("a-row",{staticClass:"node-form-item",staticStyle:{display:"flex","align-items":"center"}},[r("a-col",{attrs:{span:"4"}},[r("a-radio-group",{attrs:{"button-style":"solid",size:"small"},model:{value:t.type,callback:function(r){e.$set(t,"type",r)},expression:"item.type"}},[r("a-radio-button",{attrs:{value:"uid"}},[r("a-icon",{attrs:{type:"user"}})],1),r("a-radio-button",{attrs:{value:"org"}},[r("a-icon",{attrs:{type:"team"}})],1)],1),e.nodeRef.data.actor_config.expression.length>1?r("a-button",{attrs:{icon:"delete",type:"link"},on:{click:function(){return e.nodeRef.data.actor_config.expression.splice(n,1)}}}):e._e()],1),"uid"===t.type?r("a-col",{attrs:{span:"18"}},[r("div",[r("a-select",{staticStyle:{width:"100%"},attrs:{options:[].concat(Av(e.businessUserData),Av(e.users)),mode:"multiple",placeholder:"选择人"},model:{value:t.user,callback:function(r){e.$set(t,"user",r)},expression:"item.user"}})],1)]):e._e(),"org"===t.type?r("a-col",{attrs:{span:"18"}},[r("div",[r("a-row",[r("a-col",{attrs:{span:8}},[r("a-tree-select",{staticStyle:{width:"100%"},attrs:{"dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-data":[e.businessOrgData].concat(Av(e.orgData)),allowClear:"",placeholder:"部门","tree-default-expand-all":""},model:{value:t.orgId,callback:function(r){e.$set(t,"orgId",r)},expression:"item.orgId"}})],1),r("a-col",{attrs:{span:8}},[r("a-select",{staticStyle:{width:"100%"},attrs:{options:e.roles,allowClear:"",placeholder:"角色"},model:{value:t.roleId,callback:function(r){e.$set(t,"roleId",r)},expression:"item.roleId"}})],1)],1)],1)]):e._e(),e.nodeRef.data.actor_config.expression.length===n+1&&e.hasExpression(t)?r("a-col",{attrs:{span:"2"}},[r("a-button",{attrs:{icon:"plus",shape:"circle",type:"primary"},on:{click:function(){e.nodeRef.data.actor_config.expression.push({type:"uid",user:[],orgId:void 0,roleId:void 0,groupId:void 0})}}})],1):e._e()],1)],1)})),0),r("a-tab-pane",{key:"forms",attrs:{tab:"操作视图"}},[r("div",{staticClass:"node-form-item"},[r("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[r("a-col",{attrs:{span:24}},[r("a-radio-group",{staticClass:"node-form-item",on:{change:e.changeViewType},model:{value:e.optionViewType,callback:function(t){e.optionViewType=t},expression:"optionViewType"}},[r("a-radio",{attrs:{value:"use_model"}},[e._v(" 沿用工作流模型 ")]),r("a-radio",{attrs:{value:"custom"}},[e._v(" 自主选择 ")])],1)],1)],1),r("a-row",[r("a-col",{attrs:{span:24}},["custom"===e.optionViewType?r("a-select",{staticClass:"node-form-item",staticStyle:{width:"100%"},attrs:{"default-active-first-option":!1,"filter-option":!1,"not-found-content":null,"show-arrow":!1,placeholder:"请输入表单视图名称","show-search":""},on:{change:e.optionViewChange,search:e.optionViewSearch},model:{value:e.nodeRef.data.option_view_id,callback:function(t){e.$set(e.nodeRef.data,"option_view_id",t)},expression:"nodeRef.data.option_view_id"}},e._l(e.optionViewList,(function(t){return r("a-select-option",{key:t.value,attrs:{value:t.value}},[e._v(" "+e._s(t.text)+" ")])})),1):e._e()],1)],1)],1),r("div",{key:e.nodeRef.data.option_view_id,staticClass:"node-from-item"},[r("a-divider",{attrs:{orientation:"left"}},[e._v("表单权限")]),"use_model"===e.optionViewType||e.nodeRef.data.option_view_id?r("a-spin",{attrs:{spinning:e.viewAttrLoading}},[r("a-row",[r("a-col",{attrs:{span:11}},[r("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索表单属性"},on:{search:function(t){return e.formsColumnFilter=t}}})],1),r("a-col",{attrs:{span:1}}),r("a-col",{attrs:{span:11}},[r("a-radio-group",{attrs:{"button-style":"solid"},model:{value:e.formsColumnAccess,callback:function(t){e.formsColumnAccess=t},expression:"formsColumnAccess"}},[r("a-radio-button",{attrs:{value:"all"}},[e._v(" 无 ")]),r("a-radio-button",{attrs:{value:"none"}},[e._v(" 隐藏 ")]),r("a-radio-button",{attrs:{value:"readonly"}},[e._v(" 只读 ")]),r("a-radio-button",{attrs:{value:"write"}},[e._v(" 可写 ")]),r("a-radio-button",{attrs:{value:"readonlywrite"}},[e._v(" 读写 ")])],1)],1)],1),r("a-table",{attrs:{columns:e.optionFormsColumns,"data-source":e.filterDataset(e.formsColumnFilter,e.nodeRef.data.option_forms,["attrName","attrCode"]),"row-key":function(t){return t.attrId}},scopedSlots:e._u([{key:"attrName",fn:function(t,n){return r("span",{},[e._v(e._s(n.attrName)+"("+e._s(n.attrCode)+")")])}},{key:"none",fn:function(t,n){return r("span",{},[r("a-radio",{attrs:{checked:"none"===n.access,value:"none"},on:{change:function(){return n.access="none"}}},[e._v("隐藏")])],1)}},{key:"readonly",fn:function(t,n){return r("span",{},[r("a-radio",{attrs:{checked:"readonly"===n.access,value:"readonly"},on:{change:function(){return n.access="readonly"}}},[e._v("只读")])],1)}},{key:"write",fn:function(t,n){return r("span",{},[r("a-radio",{attrs:{checked:"write"===n.access,value:"write"},on:{change:function(){return n.access="write"}}},[e._v("可编辑")])],1)}},{key:"required",fn:function(t,n){return r("span",{},["write"===n.access?r("a-switch",{model:{value:n.required,callback:function(t){e.$set(n,"required",t)},expression:"record.required"}}):e._e()],1)}}],null,!1,274236117)},[r("span",{attrs:{slot:"noneColumn"},slot:"noneColumn"},[r("a-radio",{attrs:{checked:"none"===e.optionFormsRadio,value:"none"},on:{change:function(t){return e.optionFormsRadioChange("none")}}},[e._v("隐藏")])],1),r("span",{attrs:{slot:"readonlyColumn"},slot:"readonlyColumn"},[r("a-radio",{attrs:{checked:"readonly"===e.optionFormsRadio,value:"readonly"},on:{change:function(t){return e.optionFormsRadioChange("readonly")}}},[e._v("只读")])],1),r("span",{attrs:{slot:"writeColumn"},slot:"writeColumn"},[r("a-radio",{attrs:{checked:"write"===e.optionFormsRadio,value:"write"},on:{change:function(t){return e.optionFormsRadioChange("write")}}},[e._v("可编辑")])],1)])],1):e._e()],1)]),r("a-tab-pane",{key:"others",attrs:{tab:"其他配置"}},[r("a-card",{staticStyle:{margin:"5px"},attrs:{size:"small",title:"消息配置"}},[r("a-input",{staticStyle:{"margin-bottom":"5px"},attrs:{placeholder:"待办跳转地址;以/结尾,例如:/${appKey}#/res_path/"},model:{value:e.nodeRef.data.other_options.resPath,callback:function(t){e.$set(e.nodeRef.data.other_options,"resPath",t)},expression:"nodeRef.data.other_options.resPath"}}),r("a-input",{attrs:{placeholder:"消息跳转地址"},model:{value:e.nodeRef.data.other_options.redirectUri,callback:function(t){e.$set(e.nodeRef.data.other_options,"redirectUri",t)},expression:"nodeRef.data.other_options.redirectUri"}}),e.noticeTemplateAttr?r("Item",{key:e.noticeTemplateAttr.name,attrs:{formModel:e.eadApi.getComponent().actionModel,params:null!==(t=e.noticeTemplateAttr.params)&&void 0!==t?t:{},prop:e.noticeTemplateAttr.name,required:!1,schema:e.noticeTemplateAttr},on:{change:function(t){return e.handleItemChange(t,e.noticeTemplateAttr)}},model:{value:e.nodeRef.data.notice_template,callback:function(t){e.$set(e.nodeRef.data,"notice_template",t)},expression:"nodeRef.data.notice_template"}}):e._e(),r("a-alert",{attrs:{message:"模板变量:",type:"success"}},[r("div",{attrs:{slot:"description"},slot:"description"},[r("div",[e._v("${workflow.variable.sponsor} - 发起人")]),r("div",[e._v("${workflow.variable.sponsor_name} - 发起人姓名")]),r("div",[e._v("${workflow.variable.sponsor_org} - 发起人组织机构")]),r("div",[e._v("${workflow.variable.sponsor_org_name} - 发起人组织机构名称")]),r("div",[e._v("${workflow.variable.sponsor_role} - 发起人角色")]),r("div",[e._v("${workflow.variable.sponsor_role_name} - 发起人角色名")]),r("div",[e._v("${workflow_req.page_operate.approver} - 审批人")]),r("div",[e._v("${workflow_req.page_operate.approver_name} - 审批人名称")])])])],1)],1)],1)],1)],1)},Bv=[];function Fv(t){return Fv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fv(t)}function $v(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$v=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Fv(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Fv(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Vv(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Hv(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Vv(i,n,o,a,s,"next",t)}function s(t){Vv(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Uv(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Gv(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Gv(t,e){if(t){if("string"===typeof t)return zv(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zv(t,e):void 0}}function zv(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Kv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Yv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Kv(Object(r),!0).forEach((function(e){Wv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Wv(t,e,r){return e=Zv(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zv(t){var e=Jv(t,"string");return"symbol"==Fv(e)?e:String(e)}function Jv(t,e){if("object"!=Fv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Fv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Xv={name:"CCNode",props:{node:Yh,nodeHandler:Object},components:{Item:Ri},data:function(){return{defaultContent:"请选择",editName:!1,tabKey:"actors",optionViewType:"use_model",optionViewList:[],optionFormsColumns:[{title:"表单属性",key:"attrName",scopedSlots:{customRender:"attrName"}},{key:"none",slots:{title:"noneColumn"},scopedSlots:{customRender:"none"}},{key:"readonly",slots:{title:"readonlyColumn"},scopedSlots:{customRender:"readonly"}}],orgMap:null,orgData:[],roles:[],users:[],viewNametimeout:null,viewAttrLoading:!0,formsColumnFilter:void 0,formsColumnAccess:"all"}},setup:function(t){var e=t.node,r=t.nodeHandler,n=Object(N["ref"])(!1),o=r.businessAdapter.eadApi,i=function(){return{eadCache:{workflow:{}},actor_config:{type:"expression",expression:[{type:"uid",user:[],orgId:void 0,roleId:void 0,groupId:void 0}]},option_view:{use_model:!0},option_view_id:null,option_forms:[],notice_template:"",other_options:{resPath:null,redirectUri:null}}};e.data||(e.data=i()),e.data.other_options||(e.data.other_options={});var a=function(){return n.value=!0},s=function(){return n.value=!1},c={visibleDrawer:n,showDrawer:a,hideDrawer:s},l=Object(N["ref"])(!1),u=function(){return l.value=!1},f=function(){return l.value=!0},h={visiblePopover:l,showPopover:f,hidePopover:u},d=[{name:"条件分支",type:qh.JUDGE_WRAP,icon:{type:"apartment"},color:"rgb(21, 188, 131)"},{name:"并行分支",type:qh.PARALLEL_WRAP,icon:{type:"sliders"},color:"rgb(113, 141, 255)"}],p=function(t){r.wrapNode(e.code,{type:t})},v={nodes:d,wrapNode:p},y=r.isPreview?null:r.businessAdapter.eadApi.getCurrentViewSchema().model.attrs.find((function(t){return"notice_template"===t.name}));return Yv(Yv(Yv(Yv({},c),h),v),{},{nodeRef:e,eadApi:o,noticeTemplateAttr:y})},created:function(){this.loadCache(this.nodeRef)},computed:{nodeContent:function(){var t=this;if(this.nodeHandler.isPreview)return this.nodeRef.content;var e=this.node.data.actor_config,r="";if(!this.orgMap||!this.roles||!this.users)return r;if("expression"===e.type){var n=e.expression;if(n.length){if("org"===n[0].type){if(n[0].orgId)if(this.orgMap.has(n[0].orgId))r=r+=r?"、"+this.orgMap.get(n[0].orgId).org_name:this.orgMap.get(n[0].orgId).org_name;else{var o,i=null===(o=this.businessOrgData.children.find((function(t){return t.value===n[0].orgId})))||void 0===o?void 0:o.title;r=r+=r?"、"+i:i}n[0].roleId&&(r=r+=r?"-"+this.roles.find((function(t){return t.value===n[0].roleId})).label:this.roles.find((function(t){return t.value===n[0].roleId})).label)}if("uid"===n[0].type){var a=this.businessUserData.map((function(t){return t.value}));r=n[0].user.map((function(e){var r=a.includes(e)?t.businessUserData.find((function(t){return t.value===e})).label:t.users.find((function(t){return t.value===e})).label;return r.substring(0,r.indexOf("("))})).join("、")}}n.length>1&&(r+="...")}return"sponsor"===e.type&&(r="发起人自己"),this.nodeRef.content=r,r},optionFormsRadio:function(){var t=this.node.data.option_forms;if(!t.length)return"-";var e=t[0].access;return t.filter((function(t){return t.access===e})).length===t.length?e:"-"},businessOrgData:function(){var t=[],e={title:"操作视图",value:"${form_option_view}",key:"${form_option_view}",disabled:!0,children:t};return this.nodeRef.data.option_forms&&this.nodeRef.data.option_forms.length?(this.nodeRef.data.option_forms.forEach((function(e){t.push({title:e.attrName,value:"${"+e.attrCode+"}",key:"${"+e.attrCode+"}",children:[]})})),e):e},businessUserData:function(){var t=[];return this.nodeRef.data.option_forms&&this.nodeRef.data.option_forms.length?(this.nodeRef.data.option_forms.forEach((function(e){t.push({label:e.attrName+"(操作视图)",title:e.attrName+"(操作视图)",value:"${"+e.attrCode+"}",key:e.attrName+"-"+e.attrCode+"(操作视图)",children:[]})})),t):t}},methods:{filterDataset:function(t,e,r){var n=this;return t?e.filter((function(e){var n,o=Uv(r);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(e[i].toString().toLowerCase().includes(t.toLowerCase()))return!0}}catch(a){o.e(a)}finally{o.f()}return!1})).filter((function(t){return"all"===n.formsColumnAccess||-1!==n.formsColumnAccess.indexOf(t.access.toString())})):e.filter((function(t){return"all"===n.formsColumnAccess||-1!==n.formsColumnAccess.indexOf(t.access.toString())}))},getClass:function(){var t,e,r,n="";return this.node.error&&(n+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(t=t.runtimeData)||void 0===t?void 0:t.currentNodeCode)===this.node.code?n+=" ongoing":null!==(e=this.nodeHandler)&&void 0!==e&&null!==(e=e.runtimeData)&&void 0!==e&&e.caseNodes&&null!==(r=this.nodeHandler)&&void 0!==r&&null!==(r=r.runtimeData)&&void 0!==r&&null!==(r=r.caseNodes[this.node.code])&&void 0!==r&&r.status&&(n+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),n},loadCache:function(t){var e,r,n,o;this.optionViewType=null!==(e=null===(r=t.data)||void 0===r||null===(r=r.eadCache)||void 0===r||null===(r=r.workflow)||void 0===r?void 0:r.optionViewType)&&void 0!==e?e:this.optionViewType,this.optionViewList=null!==(n=null===(o=t.data)||void 0===o||null===(o=o.eadCache)||void 0===o||null===(o=o.workflow)||void 0===o?void 0:o.optionViewList)&&void 0!==n?n:this.optionViewList},hasExpression:function(t){return"uid"===t.type?t.user&&t.user.length:"org"===t.type&&(t.orgId||t.roleId||t.groupId)},handleItemChange:function(t,e){},optionFormsRadioChange:function(t){this.node.data.option_forms.forEach((function(e){return e.access=t}))},optionViewChange:function(t){var e=this;return Hv($v().mark((function r(){return $v().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e.formsColumnFilter=void 0,e.nodeRef.data.option_view_id=t,e.nodeRef.data.eadCache.workflow.optionViewList=[e.optionViewList.find((function(e){return e.value===t}))],e.viewAttrLoading=!0,r.next=6,e.eadApi.getViewAttrs(t);case 6:e.nodeRef.data.option_forms=r.sent.filter((function(t){return"value"===t.type&&"none"!==t.access})).filter((function(t){return"primary"!==t.key_type})).map((function(t){return{attrId:t.id,attrName:t.alias,attrCode:t.name,access:"none",required:t.required}})),e.viewAttrLoading=!1;case 8:case"end":return r.stop()}}),r)})))()},optionViewSearch:function(t){var e=this;this.viewNametimeout&&(clearTimeout(this.viewNametimeout),this.viewNametimeout=null);var r=function(){t&&e.eadApi.getViews(t).then((function(t){e.optionViewList=t.map((function(t){return{value:t.view_id,text:t.view_name}}))}))};this.viewNametimeout=setTimeout(r,300)},changeViewType:function(t){var e=this;return Hv($v().mark((function r(){var n,o;return $v().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=t.target,o=n.value,e.nodeRef.data.eadCache.workflow.optionViewType=o,"use_model"!==o){r.next=10;break}return e.nodeRef.data.option_view_id=void 0,e.viewAttrLoading=!0,r.next=8,e.eadApi.getViewAttrs(e.eadApi.getValues().option_view_id);case 8:e.nodeRef.data.option_forms=r.sent.filter((function(t){return"value"===t.type&&"none"!==t.access})).filter((function(t){return"primary"!==t.key_type})).map((function(t){return{attrId:t.id,attrName:t.alias,attrCode:t.name,access:"none",required:t.required}})),e.$nextTick((function(){e.viewAttrLoading=!1}));case 10:case"end":return r.stop()}}),r)})))()},hideDrawer:function(){var t=this,e=Object(N["ref"])(!0);this.$refs.nameForm.validate((function(r){r||(e.value=!1,t.$message.error("节点名称校验不通过"))})),e.value&&(this.visibleDrawer=!1)},changeTags:function(t){},showEditName:function(){var t=this;this.editName=!0,Object(N["nextTick"])((function(){t.$refs.nameInput.focus()}))},close:function(){this.nodeHandler.deleteNode(this.node.code)},click:function(){this.nodeHandler.isPreview||(this.nodeRef.error=null,this.showDrawer())},more:function(){this.showPopover()}},mounted:function(){var t=this;return Hv($v().mark((function e(){var r,n,o,i,a,s,c;return $v().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.nodeHandler.businessAdapter.getActorData();case 2:n=e.sent,o=n.viewAttrs,i=n.orgMap,a=n.orgData,s=n.roles,c=n.users,null!==(r=t.nodeRef.data.option_forms)&&void 0!==r&&r.length||(t.nodeRef.data.option_forms=o.filter((function(t){return"value"===t.type&&"none"!==t.access})).filter((function(t){return"primary"!==t.key_type})).map((function(t){return{attrId:t.id,attrName:t.alias,attrCode:t.name,access:"none",required:t.required}}))),t.viewAttrLoading=!1,t.orgMap=i,t.orgData=a,t.roles=s,t.users=c;case 14:case"end":return e.stop()}}),e)})))()}},Qv=Xv,ty=(r("fdc3"),qr(Qv,qv,Bv,!1,null,"0743a454",null)),ey=ty.exports,ry=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"node",class:t.getClass(),on:{click:t.click}},[e("div",{staticClass:"title"},[e("span",[e("a-icon",{attrs:{type:"control"}})],1),e("span",[t._v(" "+t._s(t.node.name))]),t.nodeHandler.isPreview?t._e():e("span",{staticClass:"title-right"},[e("a-icon",{staticClass:"close",attrs:{type:"close"},on:{click:function(e){return e.stopPropagation(),t.close.apply(null,arguments)}}})],1)]),e("div",{staticClass:"content"},[e("span",{staticClass:"content-main"},[e("span",{staticClass:"error-tooltip"},[e("a-tooltip",[e("template",{slot:"title"},[t._v(" "+t._s(t.node.error)+" ")]),e("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),t.nodeContent?e("span",{staticStyle:{"padding-left":"5px"}},[t._v(t._s(t.nodeContent))]):e("span",{staticStyle:{"padding-left":"5px",color:"rgb(164 164 164)"}},[t._v(t._s(t.defaultContent))])]),e("span",{staticClass:"content-right"},[t.nodeHandler.isPreview?t._e():e("a-popover",{attrs:{placement:"rightTop",trigger:"click"},scopedSlots:t._u([{key:"title",fn:function(){return[e("span",{staticStyle:{"font-size":"18px"}},[t._v("追加分支")])]},proxy:!0},{key:"content",fn:function(){return[e("div",{staticClass:"add-node-box"},t._l(t.nodes,(function(r,n){var o,i;return e("div",{key:n,staticClass:"add-node-item",on:{click:function(e){return t.wrapNode(r.type)}}},[e("div",{staticClass:"icon",style:"color:"+r.color+";"},[null!==(o=r.icon)&&void 0!==o&&o.component?e("a-icon",{attrs:{component:r.icon.component}}):t._e(),null!==(i=r.icon)&&void 0!==i&&i.type?e("a-icon",{attrs:{type:r.icon.type}}):t._e()],1),e("span",[t._v(t._s(r.name))])])})),0)]},proxy:!0}],null,!1,2863198520),model:{value:t.visiblePopover,callback:function(e){t.visiblePopover=e},expression:"visiblePopover"}},[e("a-icon",{attrs:{type:"plus"},on:{click:function(t){return t.stopPropagation(),function(){}.apply(null,arguments)}}})],1)],1)])]),e("a-drawer",{attrs:{"after-visible-change":t.change,closable:!0,visible:t.visibleDrawer,width:720,placement:"right"},on:{close:t.hideDrawer}},[t.editName?t._e():e("div",{staticClass:"node-drawer-title",on:{click:t.showEditName}},[e("a-icon",{attrs:{type:"edit"}}),t._v(" "+t._s(t.node.name)+" ")],1),e("a-form-model",{directives:[{name:"show",rawName:"v-show",value:t.editName,expression:"editName"}],ref:"nameForm",attrs:{model:t.nodeRef,rules:{name:[{required:!0,message:"请填写节点名称",trigger:"blur"},{min:2,max:20,message:"2-20个字",trigger:"blur"}]},layout:"inline"}},[e("a-form-model-item",{ref:"name",attrs:{prop:"name"}},[e("a-input",{ref:"nameInput",attrs:{placeholder:"节点名称"},on:{blur:function(){t.editName=!1}},model:{value:t.nodeRef.name,callback:function(e){t.$set(t.nodeRef,"name",e)},expression:"nodeRef.name"}})],1)],1),e("a-row",[e("a-col",{attrs:{span:4}},[t._v(" 驱动 ")]),e("a-col",{attrs:{span:20}},[e("a-select",{staticStyle:{width:"100%"},attrs:{"default-active-first-option":!1,"filter-option":!1,"not-found-content":null,options:t.driverList,"show-arrow":!1,allowClear:"",placeholder:"输入驱动","show-search":""},on:{change:t.handleDriverChange,search:t.handleDriverSearch},model:{value:t.nodeRef.data.other_options.driver,callback:function(e){t.$set(t.nodeRef.data.other_options,"driver",e)},expression:"nodeRef.data.other_options.driver"}})],1)],1)],1)],1)},ny=[];function oy(t){return oy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oy(t)}function iy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ay(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?iy(Object(r),!0).forEach((function(e){sy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sy(t,e,r){return e=cy(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cy(t){var e=ly(t,"string");return"symbol"==oy(e)?e:String(e)}function ly(t,e){if("object"!=oy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=oy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var uy={name:"TriggerNode",props:{node:Yh,nodeHandler:Object},data:function(){return{defaultContent:"请选择",editName:!1,driverList:null,driverTimeout:null}},setup:function(t){var e=t.node,r=t.nodeHandler,n=r.businessAdapter.eadApi,o=function(){return{eadCache:{workflow:{}},other_options:{driver:void 0}}};e.data||(e.data=o());var i=Object(N["ref"])(!1),a=function(t){},s=function(){return i.value=!0},c=function(){return i.value=!1},l={visibleDrawer:i,showDrawer:s,hideDrawer:c,change:a},u=Object(N["ref"])(!1),f=function(){return u.value=!1},h=function(){return u.value=!0},d={visiblePopover:u,showPopover:h,hidePopover:f},p=[{name:"条件分支",type:qh.JUDGE_WRAP,icon:{type:"apartment"},color:"rgb(21, 188, 131)"},{name:"并行分支",type:qh.PARALLEL_WRAP,icon:{type:"sliders"},color:"rgb(113, 141, 255)"}],v=function(t){r.wrapNode(e.code,{type:t})},y={nodes:p,wrapNode:v};return ay(ay(ay(ay({},l),d),y),{},{nodeRef:e,eadApi:n})},computed:{nodeContent:function(){var t,e,r=null,n=this.nodeRef.data.other_options;n.driver&&(r=null===(e=this.driverList.find((function(t){return t.value===n.driver})))||void 0===e?void 0:e.title);return r=null!==(t=r)&&void 0!==t?t:this.nodeRef.content,this.nodeRef.content=r,r}},methods:{getClass:function(){var t,e,r,n="";return this.node.error&&(n+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(t=t.runtimeData)||void 0===t?void 0:t.currentNodeCode)===this.node.code?n+=" ongoing":null!==(e=this.nodeHandler)&&void 0!==e&&null!==(e=e.runtimeData)&&void 0!==e&&e.caseNodes&&null!==(r=this.nodeHandler)&&void 0!==r&&null!==(r=r.runtimeData)&&void 0!==r&&null!==(r=r.caseNodes[this.node.code])&&void 0!==r&&r.status&&(n+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),n},loadCache:function(t){var e,r;this.driverList=null!==(e=null===(r=t.data)||void 0===r||null===(r=r.eadCache)||void 0===r||null===(r=r.workflow)||void 0===r?void 0:r.driverList)&&void 0!==e?e:null},handleDriverChange:function(t,e){},handleDriverSearch:function(t){var e=this;this.driverTimeout&&(clearTimeout(this.driverTimeout),this.driverTimeout=null);var r=function(){t&&e.eadApi.getDrivers(t).then((function(t){e.driverList=t.map((function(t){return{value:t.driver_id,label:t.driver_name,title:t.driver_desc}})),e.nodeRef.data.eadCache.workflow.driverList=e.driverList}))};this.driverTimeout=setTimeout(r,300)},close:function(){this.nodeHandler.deleteNode(this.node.code)},click:function(){this.nodeHandler.isPreview||(this.nodeRef.error=null,this.showDrawer())},more:function(){this.showPopover()},showEditName:function(){var t=this;this.editName=!0,Object(N["nextTick"])((function(){t.$refs.nameInput.focus()}))}},created:function(){this.loadCache(this.nodeRef)},mounted:function(){}},fy=uy,hy=(r("7e56"),qr(fy,ry,ny,!1,null,"7af4eb1a",null)),dy=hy.exports,py=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"node",class:t.getClass(),on:{click:t.click}},[e("div",{staticClass:"title"},[e("span",[e("a-icon",{attrs:{type:"clock-circle"}})],1),e("span",[t._v(" "+t._s(t.node.name))]),t.nodeHandler.isPreview?t._e():e("span",{staticClass:"title-right"},[e("a-icon",{staticClass:"close",attrs:{type:"close"},on:{click:function(e){return e.stopPropagation(),t.close.apply(null,arguments)}}})],1)]),e("div",{staticClass:"content"},[e("span",{staticClass:"content-main"},[e("span",{staticClass:"error-tooltip"},[e("a-tooltip",[e("template",{slot:"title"},[t._v(" "+t._s(t.node.error)+" ")]),e("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),t.nodeContent?e("span",{staticStyle:{"padding-left":"5px"}},[t._v(t._s(t.nodeContent))]):e("span",{staticStyle:{"padding-left":"5px",color:"rgb(164 164 164)"}},[t._v(t._s(t.defaultContent))])]),e("span",{staticClass:"content-right"},[t.nodeHandler.isPreview?t._e():e("a-popover",{attrs:{placement:"rightTop",trigger:"click"},scopedSlots:t._u([{key:"title",fn:function(){return[e("span",{staticStyle:{"font-size":"18px"}},[t._v("追加分支")])]},proxy:!0},{key:"content",fn:function(){return[e("div",{staticClass:"add-node-box"},t._l(t.nodes,(function(r,n){var o,i;return e("div",{key:n,staticClass:"add-node-item",on:{click:function(e){return t.wrapNode(r.type)}}},[e("div",{staticClass:"icon",style:"color:"+r.color+";"},[null!==(o=r.icon)&&void 0!==o&&o.component?e("a-icon",{attrs:{component:r.icon.component}}):t._e(),null!==(i=r.icon)&&void 0!==i&&i.type?e("a-icon",{attrs:{type:r.icon.type}}):t._e()],1),e("span",[t._v(t._s(r.name))])])})),0)]},proxy:!0}],null,!1,2863198520),model:{value:t.visiblePopover,callback:function(e){t.visiblePopover=e},expression:"visiblePopover"}},[e("a-icon",{attrs:{type:"plus"},on:{click:function(t){return t.stopPropagation(),function(){}.apply(null,arguments)}}})],1)],1)])]),e("a-drawer",{attrs:{"after-visible-change":t.change,closable:!0,title:t.node.name,visible:t.visibleDrawer,width:720,placement:"right"},on:{close:t.hideDrawer}},[e("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[e("a-col",{attrs:{span:4}},[t._v("延时方式")]),e("a-col",{attrs:{span:8}},[e("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:t.nodeRef.data.other_options.type,callback:function(e){t.$set(t.nodeRef.data.other_options,"type",e)},expression:"nodeRef.data.other_options.type"}},[e("a-radio-button",{attrs:{value:"relatively"}},[t._v(" 固定时长 ")]),e("a-radio-button",{attrs:{value:"absolute"}},[t._v(" 指定时间 ")])],1)],1)],1),"relatively"===t.nodeRef.data.other_options.type?e("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[e("a-col",{attrs:{span:4}},[t._v("固定时长")]),e("a-col",{attrs:{span:8}},[e("a-input-group",{attrs:{compact:""}},[e("a-input-number",{staticStyle:{width:"70%"},attrs:{max:999,min:1},on:{change:function(e){e||(t.nodeRef.data.other_options.time=1)}},model:{value:t.nodeRef.data.other_options.time,callback:function(e){t.$set(t.nodeRef.data.other_options,"time",e)},expression:"nodeRef.data.other_options.time"}}),e("a-select",{staticStyle:{width:"30%"},attrs:{options:[{value:"minute",label:"分钟"},{value:"hour",label:"小时"},{value:"day",label:"天"},{value:"week",label:"周"},{value:"month",label:"月"},{value:"year",label:"年"}],placeholder:"单位",width:"30%"},model:{value:t.nodeRef.data.other_options.unit,callback:function(e){t.$set(t.nodeRef.data.other_options,"unit",e)},expression:"nodeRef.data.other_options.unit"}})],1)],1)],1):t._e(),"absolute"===t.nodeRef.data.other_options.type?e("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[e("a-col",{attrs:{span:4}},[t._v("指定时间")]),e("a-col",{attrs:{span:8}},[e("a-date-picker",{attrs:{placeholder:"指定时间","show-time":"",valueFormat:"x"},model:{value:t.nodeRef.data.other_options.timestamp,callback:function(e){t.$set(t.nodeRef.data.other_options,"timestamp",e)},expression:"nodeRef.data.other_options.timestamp"}})],1)],1):t._e(),e("a-row",[e("a-col",{attrs:{span:4}},[t._v(" 驱动 ")]),e("a-col",{attrs:{span:20}},[e("a-select",{staticStyle:{width:"100%"},attrs:{"default-active-first-option":!1,"filter-option":!1,"not-found-content":null,options:t.driverList,"show-arrow":!1,allowClear:"",placeholder:"选择驱动","show-search":""},on:{search:t.handleDriverSearch},model:{value:t.nodeRef.data.other_options.driver,callback:function(e){t.$set(t.nodeRef.data.other_options,"driver",e)},expression:"nodeRef.data.other_options.driver"}})],1)],1)],1)],1)},vy=[],yy=r("c32d"),my=r.n(yy);function gy(t){return gy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gy(t)}function by(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function wy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?by(Object(r),!0).forEach((function(e){_y(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):by(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _y(t,e,r){return e=xy(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xy(t){var e=ky(t,"string");return"symbol"==gy(e)?e:String(e)}function ky(t,e){if("object"!=gy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=gy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Oy={name:"DelayNode",props:{node:Yh,nodeHandler:Object},data:function(){return{defaultContent:"请选择",driverList:null,driverTimeout:null}},setup:function(t){var e=t.node,r=t.nodeHandler,n=r.businessAdapter.eadApi,o=function(){return{eadCache:{workflow:{}},other_options:{type:"relatively",timestamp:null,time:1,unit:"minute",driver:void 0}}};e.data||(e.data=o());var i=Object(N["ref"])(!1),a=function(t){},s=function(){return i.value=!0},c=function(){return i.value=!1},l={visibleDrawer:i,showDrawer:s,hideDrawer:c,change:a},u=Object(N["ref"])(!1),f=function(){return u.value=!1},h=function(){return u.value=!0},d={visiblePopover:u,showPopover:h,hidePopover:f},p=[{name:"条件分支",type:qh.JUDGE_WRAP,icon:{type:"apartment"},color:"rgb(21, 188, 131)"},{name:"并行分支",type:qh.PARALLEL_WRAP,icon:{type:"sliders"},color:"rgb(113, 141, 255)"}],v=function(t){r.wrapNode(e.code,{type:t})},y={nodes:p,wrapNode:v};return wy(wy(wy(wy({},l),d),y),{},{nodeRef:e,eadApi:n})},computed:{nodeContent:function(){var t=null,e=this.nodeRef.data.other_options;if("relatively"===e.type){var r={minute:"分钟",hour:"小时",day:"天",week:"周",month:"月",year:"年"};t=e.time+r[e.unit]+"后执行"}if("absolute"===e.type){var n=e.timestamp;if(n){var o=my()(n,"x").format("YYYY-MM-DD HH:mm:ss");t=o+"执行"}}return e.driver&&(null===t?t="...":t+="..."),this.nodeRef.content=t,t}},methods:{getClass:function(){var t,e,r,n="";return this.node.error&&(n+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(t=t.runtimeData)||void 0===t?void 0:t.currentNodeCode)===this.node.code?n+=" ongoing":null!==(e=this.nodeHandler)&&void 0!==e&&null!==(e=e.runtimeData)&&void 0!==e&&e.caseNodes&&null!==(r=this.nodeHandler)&&void 0!==r&&null!==(r=r.runtimeData)&&void 0!==r&&null!==(r=r.caseNodes[this.node.code])&&void 0!==r&&r.status&&(n+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),n},loadCache:function(t){var e,r;this.driverList=null!==(e=null===(r=t.data)||void 0===r||null===(r=r.eadCache)||void 0===r||null===(r=r.workflow)||void 0===r?void 0:r.driverList)&&void 0!==e?e:null},handleDriverSearch:function(t){var e=this;this.driverTimeout&&(clearTimeout(this.driverTimeout),this.driverTimeout=null);var r=function(){t&&e.eadApi.getDrivers(t).then((function(t){e.driverList=t.map((function(t){return{value:t.driver_id,label:t.driver_name}})),e.nodeRef.data.eadCache.workflow.driverList=e.driverList}))};this.driverTimeout=setTimeout(r,300)},close:function(){this.nodeHandler.deleteNode(this.node.code)},click:function(){this.nodeHandler.isPreview||(this.nodeRef.error=null,this.showDrawer())},more:function(){this.showPopover()}},created:function(){this.loadCache(this.nodeRef)},mounted:function(){}},Ey=Oy,Sy=(r("4dd1"),qr(Ey,py,vy,!1,null,"7fbee4d6",null)),jy=Sy.exports,Ny={EndNode:ap,StartNode:Cp,ParallelNode:Mp,ParallelWrapNode:Hp,CheckNode:dv,JudgeNode:Cv,JudgeWrapNode:Ev,CCNode:ey,TriggerNode:dy,DelayNode:jy},Ly=function(){var t=this,e=t._self._c;return e("div",{staticClass:"add-node-btn-box"},[e("div",{staticClass:"add-node-btn"},[e("div",{staticClass:"add-node-popover-body"},[e("a-popover",{attrs:{placement:"rightTop",trigger:"click"},scopedSlots:t._u([{key:"title",fn:function(){return[e("span",{staticStyle:{"font-size":"18px"}},[t._v("添加流程节点")])]},proxy:!0},{key:"content",fn:function(){return[e("div",{staticClass:"add-node-box"},t._l(t.nodes,(function(r,n){var o,i;return e("div",{key:n,staticClass:"add-node-item",class:r.disabled?"disabled":"",on:{click:function(e){return t.addNode(r.type)}}},[e("div",{staticClass:"icon",style:"color:"+r.color+";"},[null!==(o=r.icon)&&void 0!==o&&o.component?e("a-icon",{attrs:{component:r.icon.component}}):t._e(),null!==(i=r.icon)&&void 0!==i&&i.type?e("a-icon",{attrs:{type:r.icon.type}}):t._e()],1),e("span",[t._v(t._s(r.name))])])})),0)]},proxy:!0}]),model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[t.nodeHandler.isPreview?t._e():e("a-button",{attrs:{icon:"plus",shape:"circle",type:"primary"}})],1)],1)])])},Py=[],Cy={name:"AddNode",props:{node:Yh,nodeHandler:Object},data:function(){return{visible:!1}},methods:{hide:function(){this.visible=!1}},setup:function(t){var e=t.node,r=t.nodeHandler,n={template:'\n <svg viewBox="0 0 1024 1024">\n <path fill=" currentColor" d="M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0zm544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"></path>\n </svg>\n '},o=[{name:"审批人",type:qh.CHECK,icon:{component:n},color:"rgb(255, 148, 62)"},{name:"抄送人",type:qh.CC,icon:{type:"mail"},color:"rgb(50, 150, 250)"},{name:"触发器",type:qh.TRIGGER,icon:{type:"control"},color:"rgb(53, 184, 129)"},{disabled:!0,name:"延迟等待",type:qh.DELAY,icon:{type:"clock-circle"},color:"rgb(219,86,69)"},{name:"条件分支",type:qh.JUDGE_WRAP,icon:{type:"apartment"},color:"rgb(21, 188, 131)"},{name:"并行分支",type:qh.PARALLEL_WRAP,icon:{type:"sliders"},color:"rgb(113, 141, 255)"}],i=function(t){o.find((function(e){return e.type===t})).disabled||(r.insertNode(e.code,{type:t}),this.visible=!1)};return{nodes:o,addNode:i}}},Ay=Cy,Ty=r("3593"),Ry=r.n(Ty),Dy=qr(Ay,Ly,Py,!1,null,"14eb0ec0",null);"function"===typeof Ry.a&&Ry()(Dy);var Iy=Dy.exports;function My(t){return My="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},My(t)}function qy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function By(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qy(Object(r),!0).forEach((function(e){Fy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Fy(t,e,r){return e=$y(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $y(t){var e=Vy(t,"string");return"symbol"==My(e)?e:String(e)}function Vy(t,e){if("object"!=My(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=My(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Hy={name:"NodeWrap",computed:{NodeType:function(){return qh}},components:By({AddNode:Iy},Ny),props:{nodeConfig:Object,nodeHandler:Object},setup:function(t){var e=t.nodeConfig,r=Yh.parse(e.node),n=r.type,o=qh.getNodeType(n),i=o.mode,a=o.component,s={};return[qh.START].forEach((function(t){return s[t]="start-node-box"})),[qh.CHECK,qh.CC,qh.PARALLEL,qh.JUDGE,qh.TRIGGER,qh.DELAY].forEach((function(t){return s[t]="node-box"})),[qh.PARALLEL_WRAP,qh.JUDGE_WRAP].forEach((function(t){return s[t]="wrap-box"})),{mode:i,type:n,component:a,node:Object(N["ref"])(r),uiStyle:s}}},Uy=Hy,Gy=qr(Uy,Qd,tp,!1,null,"63654330",null),zy=Gy.exports;function Ky(t){return Ky="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ky(t)}function Yy(t,e,r){return e=tm(e),Wy(t,Jy()?Reflect.construct(e,r||[],tm(t).constructor):e.apply(t,r))}function Wy(t,e){if(e&&("object"===Ky(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Zy(t)}function Zy(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Jy(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Jy=function(){return!!t})()}function Xy(){return Xy="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=Qy(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},Xy.apply(this,arguments)}function Qy(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=tm(t),null===t)break;return t}function tm(t){return tm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tm(t)}function em(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rm(t,e)}function rm(t,e){return rm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rm(t,e)}function nm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function om(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,am(n.key),n)}}function im(t,e,r){return e&&om(t.prototype,e),r&&om(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function am(t){var e=sm(t,"string");return"symbol"==Ky(e)?e:String(e)}function sm(t,e){if("object"!=Ky(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ky(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var cm=function(){function t(){nm(this,t)}return im(t,[{key:"getNodeData",value:function(){throw new Error("【BusinessAdapter】 Not supported, Please override the method")}},{key:"verifyNodeData",value:function(t){throw new Error("【BusinessAdapter】 Not supported, Please override the method")}},{key:"verifyNode",value:function(t){throw new Error("【BusinessAdapter】 Not supported, Please override the method")}},{key:"saveNodeData",value:function(t){throw new Error("【BusinessAdapter】 Not supported, Please override the method")}},{key:"saveNode",value:function(t){throw new Error("【BusinessAdapter】 Not supported, Please override the method")}}],[{key:"getBusinessAdapter",value:function(){var e=function(t){function e(){return nm(this,e),Yy(this,e,arguments)}return em(e,t),im(e,[{key:"getNodeData",value:function(t){return[]}},{key:"verifyNodeData",value:function(t){Xy(tm(e.prototype),"verifyNodeData",this).call(this,t)}},{key:"verifyNode",value:function(t){Xy(tm(e.prototype),"verifyNode",this).call(this,t)}},{key:"saveNode",value:function(t){Xy(tm(e.prototype),"saveNode",this).call(this,t)}},{key:"saveNodeData",value:function(t){Xy(tm(e.prototype),"saveNodeData",this).call(this,t)}}],[{key:"getBusinessAdapter",value:function(){return new e}}]),e}(t);return e.getBusinessAdapter()}}]),t}(),lm=cm,um={name:"NodeContainer",components:{NodeWrap:zy},props:{defaultZoomScale:Number,hideZoom:Boolean,nodeData:Array,isPreview:Boolean,runtimeData:Object,businessAdapter:lm},data:function(){return{zoomScale:100,middle:0}},setup:function(t){var e=new Xd(t.nodeData,t.businessAdapter),r=Object(N["ref"])(!1);return{nodeHandler:e,done:r}},methods:{zoom:function(t){this.zoomScale+=t},toMiddle:function(){var t=document.getElementById("workflow-box");t.scrollLeft=this.middle}},mounted:function(){var t=this;this.nodeHandler.setRefresh((function(){})),this.defaultZoomScale&&(this.zoomScale=this.defaultZoomScale),this.isPreview&&this.nodeHandler.setPreview(!0),this.runtimeData&&this.nodeHandler.setRuntime(this.runtimeData),this.done=!0,this.$nextTick((function(){var e=t.$refs["workflow-box"],r=e.scrollWidth;e.scrollLeft=t.middle=(r-e.clientWidth)/2,t.$emit("nodeHandlerReady",t.nodeHandler)}))}},fm=um,hm=(r("c92e"),qr(fm,wh,_h,!1,null,null,null)),dm=hm.exports;function pm(t){return pm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pm(t)}function vm(t){return bm(t)||gm(t)||mm(t)||ym()}function ym(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function mm(t,e){if(t){if("string"===typeof t)return wm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wm(t,e):void 0}}function gm(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function bm(t){if(Array.isArray(t))return wm(t)}function wm(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _m(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_m=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==pm(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(pm(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function xm(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function km(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){xm(i,n,o,a,s,"next",t)}function s(t){xm(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Om(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Em(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Mm(n.key),n)}}function Sm(t,e,r){return e&&Em(t.prototype,e),r&&Em(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function jm(t,e,r){return e=Tm(e),Nm(t,Lm()?Reflect.construct(e,r||[],Tm(t).constructor):e.apply(t,r))}function Nm(t,e){if(e&&("object"===pm(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Pm(t)}function Lm(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Lm=function(){return!!t})()}function Pm(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Cm(){return Cm="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=Am(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},Cm.apply(this,arguments)}function Am(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=Tm(t),null===t)break;return t}function Tm(t){return Tm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Tm(t)}function Rm(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Dm(t,e)}function Dm(t,e){return Dm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Dm(t,e)}function Im(t,e,r){return e=Mm(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mm(t){var e=qm(t,"string");return"symbol"==pm(e)?e:String(e)}function qm(t,e){if("object"!=pm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=pm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Bm(t,e,r){Fm(t,e),e.set(t,r)}function Fm(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function $m(t,e){var r=Um(t,e,"get");return Vm(t,r)}function Vm(t,e){return e.get?e.get.call(t):e.value}function Hm(t,e,r){var n=Um(t,e,"set");return Gm(t,n,r),r}function Um(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function Gm(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}var zm=new WeakMap,Km=new WeakMap,Ym=function(t){function e(){var t;Om(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=jm(this,e,[].concat(n)),Bm(Pm(t),zm,{writable:!0,value:void 0}),Im(Pm(t),"nodeHandler",void 0),Im(Pm(t),"eadApi",void 0),Bm(Pm(t),Km,{writable:!0,value:void 0}),t}return Rm(e,t),Sm(e,[{key:"init",value:function(){var t=km(_m().mark((function t(){return _m().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.getActorData();case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getNodeData",value:function(){var t;Hm(this,zm,this.eadApi.getValues().model_id);var e=this.eadApi.getValues().node_json,r=e?null===(t=JSON.parse(e))||void 0===t?void 0:t.node:null;return r?vm(Object.values(r)):[]}},{key:"getModel",value:function(){return this.eadApi.getValues()}},{key:"verifyNodeData",value:function(t){var e=this,r=!1;return t.forEach((function(t){if(t.error="",[qh.TRIGGER].includes(t.type)&&(t.data.other_options.driver||(t.error+="触发器必须要设置驱动;",r=!0)),[qh.JUDGE].includes(t.type)&&(t.content||(t.error+="条件分支必须要设置描述;",r=!0)),qh.JUDGE.includes(t.type)){var n,o=e.nodeHandler.getWrapNode(t.code);"inclusive"===(null===(n=o.data)||void 0===n?void 0:n.gateway_type)&&t.data.isDefault&&(t.error+="条件节点策略为[包含],不允许设置默认分支;",r=!0)}if([qh.JUDGE].includes(t.type)&&(t.data.isDefault||t.data.condition||(t.error+="条件分支非默认的必须要设置表达式;",r=!0)),[qh.JUDGE].includes(t.type)&&t.data.isDefault){var i=e.nodeHandler.getWrapNode(t.code),a=i.childNodeCodes.findIndex((function(e){return e===t.code}));i.childNodeCodes.map((function(t){return e.nodeHandler.getNode(t).data.isDefault})).filter((function(t){return t})).length>1&&(t.error+="条件分支中的默认只能设置一个;",r=!0),i.childNodeCodes.length-1!==a&&(t.error+="条件分支中的默认优先级必须在最后面;",r=!0)}if([qh.DELAY].includes(t.type)&&"absolute"===t.data.other_options.type&&(t.data.other_options.timestamp||(t.error+="延迟等待类型为指定时间时,必须设置时间;",r=!0)),[qh.START,qh.CHECK,qh.CC].includes(t.type)&&"custom"===t.data.eadCache.workflow.optionViewType&&(t.data.option_view_id||(t.error+="表单视图为自主选择时,必须指定表单视图;",r=!0)),[qh.CHECK,qh.CC].includes(t.type)&&"expression"===t.data.actor_config.type){t.data.actor_config.expression.length||(t.error+="执行人策略为表达式时,表达式必须有值;",r=!0);var s=t.data.actor_config.expression.filter((function(t){return"uid"===t.type?!!t.user.length:"org"===t.type?!!t.orgId||!!t.roleId||!!t.groupId:void 0})).length;s<1&&(t.error+="执行人策略为表达式时,至少要有一条有意义的表达式;",r=!0)}t.type===qh.CHECK&&("assign"===t.data.back_type&&(t.data.back_node_id||(t.error+="驳回类型为指定退回节点时 必须指定驳回节点;",r=!0)),"custom"===t.data.back_type&&(t.data.custom_back_nodes&&t.data.custom_back_nodes.length||(t.error+="驳回类型为自主选择回退节点时,必须指定可自选的驳回节点编码;",r=!0))),t.name.endsWith("*")&&(t.error+="是否完善了这个节点?是的话请删除*",r=!0)})),!r}},{key:"saveNode",value:function(t){Cm(Tm(e.prototype),"saveNode",this).call(this,t)}},{key:"saveNodeData",value:function(t){Cm(Tm(e.prototype),"saveNodeData",this).call(this,t)}},{key:"getActorData",value:function(){var t=km(_m().mark((function t(){var e,r,n,o,i,a,s,c,l,u,f,h;return _m().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(h=function(t){if(t.length){var e=[];t.forEach((function(t){var r=c.get(t.key);t.children=r?r.map((function(t){var r={title:t.org_name,value:t.org_id,key:t.org_id,children:[]};return e.push(r),r})):[]})),h(e)}},!$m(this,Km)){t.next=3;break}return t.abrupt("return",$m(this,Km));case 3:if(null===(e=this.nodeHandler)||void 0===e||!e.isPreview){t.next=5;break}return t.abrupt("return",{viewAttrs:[],orgMap:{},orgData:[],roles:[],users:[]});case 5:return t.next=7,Promise.all([this.eadApi.getViewAttrs(this.eadApi.getValues().option_view_id),this.eadApi.getOrgs(),this.eadApi.getRoles(this.eadApi.getValues().app_key),this.eadApi.getUsers()]);case 7:return r=t.sent,n=r[0],o=r[1],i=r[2].map((function(t){return{value:t.role_id,label:t.role_name}})),a=r[3].map((function(t){return{value:t.uid,label:t.name,title:t.name,key:t.name}})),s=new Map,c=new Map,o.forEach((function(t){t.children=[],s.set(t.org_id,t),t.parent_org_id&&(c.has(t.parent_org_id)||c.set(t.parent_org_id,[]),c.get(t.parent_org_id).push(t))})),l=o.filter((function(t){return!t.parent_org_id})),u=l.map((function(t){return{title:t.org_name,value:t.org_id,key:t.org_id,children:[]}})),f=u,h(u),f.unshift({title:"发起人所在部门",value:"${sponsor_org}",key:"${sponsor_org}",children:[]}),s.set("${sponsor_org}",{org_name:"发起人所在部门",org_id:"${sponsor_org}",parent_org_id:""}),a.unshift({value:"${sponsor}",label:"发起人(sponsor)",title:"发起人(sponsor)",key:"发起人(sponsor)"}),Hm(this,Km,{viewAttrs:n,orgMap:s,orgData:f,roles:i,users:a}),t.abrupt("return",$m(this,Km));case 24:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getAvailableBackStep",value:function(t){var e=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=[];if(n){var i=this.nodeHandler.getNode(t);o.push(i);var a=i.isWrapNode();if(a){var s=[];i.childNodeCodes.forEach((function(t){var r=e.nodeHandler.getNextNodeStreamLast(t);r&&s.push.apply(s,vm(e.getAvailableBackStep(r.code,!1,!0)))})),o.push.apply(o,s)}}var c=t;while(c){var l;if(this.nodeHandler.handlePreNodeStream(c,(function(t){o.push(t);var r=t.isWrapNode();if(r){var n=[];t.childNodeCodes.forEach((function(t){var r=e.nodeHandler.getNextNodeStreamLast(t);r&&n.push.apply(n,vm(e.getAvailableBackStep(r.code,!1,!0)))})),o.push.apply(o,n)}})),r)c=null===(l=this.nodeHandler.getWrapNode(c))||void 0===l?void 0:l.code;else c=null}return o.filter((function(t){return[qh.START,qh.CHECK].includes(t.type)}))}}],[{key:"getBusinessAdapter",value:function(){return new e}}]),e}(lm),Wm=Ym;function Zm(t){return Zm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zm(t)}function Jm(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Jm=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Zm(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Zm(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Xm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Xm(Object(r),!0).forEach((function(e){tg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tg(t,e,r){return e=ag(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eg(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function rg(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){eg(i,n,o,a,s,"next",t)}function s(t){eg(i,n,o,a,s,"throw",t)}a(void 0)}))}}function ng(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function og(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ag(n.key),n)}}function ig(t,e,r){return e&&og(t.prototype,e),r&&og(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ag(t){var e=sg(t,"string");return"symbol"==Zm(e)?e:String(e)}function sg(t,e){if("object"!=Zm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Zm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function cg(t,e,r){lg(t,e),e.set(t,r)}function lg(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ug(t,e){var r=dg(t,e,"get");return fg(t,r)}function fg(t,e){return e.get?e.get.call(t):e.value}function hg(t,e,r){var n=dg(t,e,"set");return pg(t,n,r),r}function dg(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function pg(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}var vg=new WeakMap,yg=new WeakMap,mg=function(){function t(e){ng(this,t),cg(this,vg,{writable:!0,value:void 0}),cg(this,yg,{writable:!0,value:void 0}),hg(this,vg,e),hg(this,yg,window.location.origin+"/ead")}return ig(t,[{key:"getComponent",value:function(){return ug(this,vg)}},{key:"setComponent",value:function(t){hg(this,vg,t)}},{key:"getCurrentViewSchema",value:function(){return ug(this,vg).$attrs.schema}},{key:"getCurrentUserName",value:function(){return ug(this,vg).$store.state.user.name}},{key:"getModelIdName",value:function(){return ug(this,vg).$attrs.schema.model.idName}},{key:"runCurrentAction",value:function(){var t=rg(Jm().mark((function t(){var e,r,n,o,i,a,s,c;return Jm().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=ug(this,vg).action,r=ug(this,vg).$attrs.schema.url,n=e.key,o=e.method,t.next=7,ug(this,vg).$api[o.toLowerCase()]("/api/".concat(r).concat(n?"/".concat(n):""),Qm({},ug(this,vg).actionModel));case 7:return i=t.sent,a=i.data,t.abrupt("return",a);case 12:return t.prev=12,t.t0=t["catch"](0),s=t.t0.response.data,c=s&&s.content||"系统错误请与管理员联系。",ug(this,vg).$message.error(c),t.abrupt("return",null);case 18:return t.prev=18,t.finish(18);case 20:case"end":return t.stop()}}),t,this,[[0,12,18,20]])})));function e(){return t.apply(this,arguments)}return e}()},{key:"getViewAttrs",value:function(){var t=rg(Jm().mark((function t(e){var r,n,o,i,a;return Jm().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ug(this,vg).$api.get("".concat(ug(this,yg),"/api/flowdir-viewattr?view_id=").concat(e));case 3:return r=t.sent,n=r.data.collection,o=void 0===n?[]:n,t.abrupt("return",o);case 9:t.prev=9,t.t0=t["catch"](0),i=t.t0.response.data,a=i&&i.content||"系统错误请与管理员联系。",this.$message.error(a);case 14:return t.prev=14,t.finish(14);case 16:case"end":return t.stop()}}),t,this,[[0,9,14,16]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getUsers",value:function(){var t=rg(Jm().mark((function t(){var e,r,n,o,i;return Jm().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ug(this,vg).$api.get("".concat(ug(this,yg),"/api/flowdir-user"));case 3:return e=t.sent,r=e.data.collection,n=void 0===r?[]:r,t.abrupt("return",n);case 9:t.prev=9,t.t0=t["catch"](0),o=t.t0.response.data,i=o&&o.content||"系统错误请与管理员联系。",this.$message.error(i);case 14:return t.prev=14,t.finish(14);case 16:case"end":return t.stop()}}),t,this,[[0,9,14,16]])})));function e(){return t.apply(this,arguments)}return e}()},{key:"getRoles",value:function(){var t=rg(Jm().mark((function t(e){var r,n,o,i,a;return Jm().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ug(this,vg).$api.get("".concat(ug(this,yg),"/api/flowdir-role?app_key=")+e);case 3:return r=t.sent,n=r.data.collection,o=void 0===n?[]:n,t.abrupt("return",o);case 9:t.prev=9,t.t0=t["catch"](0),i=t.t0.response.data,a=i&&i.content||"系统错误请与管理员联系。",this.$message.error(a);case 14:return t.prev=14,t.finish(14);case 16:case"end":return t.stop()}}),t,this,[[0,9,14,16]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getOrgs",value:function(){var t=rg(Jm().mark((function t(){var e,r,n,o,i;return Jm().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ug(this,vg).$api.get("".concat(ug(this,yg),"/api/flowdir-org"));case 3:return e=t.sent,r=e.data.collection,n=void 0===r?[]:r,t.abrupt("return",n);case 9:t.prev=9,t.t0=t["catch"](0),o=t.t0.response.data,i=o&&o.content||"系统错误请与管理员联系。",this.$message.error(i);case 14:return t.prev=14,t.finish(14);case 16:case"end":return t.stop()}}),t,this,[[0,9,14,16]])})));function e(){return t.apply(this,arguments)}return e}()},{key:"getDataset",value:function(){var t=rg(Jm().mark((function t(e,r){var n,o,i,a,s;return Jm().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ug(this,vg).$api.get("".concat(ug(this,yg),"/dataset/").concat(e),{params:Qm({},r)});case 3:return n=t.sent,o=n.data.data,i=void 0===o?[]:o,t.abrupt("return",i);case 9:t.prev=9,t.t0=t["catch"](0),a=t.t0.response.data,s=a&&a.content||"系统错误请与管理员联系。",this.$message.error(s);case 14:return t.prev=14,t.finish(14);case 16:case"end":return t.stop()}}),t,this,[[0,9,14,16]])})));function e(e,r){return t.apply(this,arguments)}return e}()},{key:"getDatasetApi",value:function(){var t=rg(Jm().mark((function t(e,r){var n,o,i,a,s;return Jm().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ug(this,vg).$api.get("".concat(ug(this,yg),"/api/").concat(e),{params:Qm({},r)});case 3:return n=t.sent,o=n.data.collection,i=void 0===o?[]:o,t.abrupt("return",i);case 9:t.prev=9,t.t0=t["catch"](0),a=t.t0.response.data,s=a&&a.content||"系统错误请与管理员联系。",this.$message.error(s);case 14:return t.prev=14,t.finish(14);case 16:case"end":return t.stop()}}),t,this,[[0,9,14,16]])})));function e(e,r){return t.apply(this,arguments)}return e}()},{key:"getViews",value:function(){var t=rg(Jm().mark((function t(e){var r,n,o,i,a;return Jm().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ug(this,vg).$api.get("".concat(ug(this,yg),"/api/flowdir-view?name=")+e);case 3:return r=t.sent,n=r.data.collection,o=void 0===n?[]:n,t.abrupt("return",o);case 9:t.prev=9,t.t0=t["catch"](0),i=t.t0.response.data,a=i&&i.content||"系统错误请与管理员联系。",this.$message.error(a);case 14:return t.prev=14,t.finish(14);case 16:case"end":return t.stop()}}),t,this,[[0,9,14,16]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getDrivers",value:function(){var t=rg(Jm().mark((function t(e){var r,n,o,i,a;return Jm().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ug(this,vg).$api.get("".concat(ug(this,yg),"/api/flowdir-driver?name=")+e);case 3:return r=t.sent,n=r.data.collection,o=void 0===n?[]:n,t.abrupt("return",o);case 9:t.prev=9,t.t0=t["catch"](0),i=t.t0.response.data,a=i&&i.content||"系统错误请与管理员联系。",this.$message.error(a);case 14:return t.prev=14,t.finish(14);case 16:case"end":return t.stop()}}),t,this,[[0,9,14,16]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getSelections",value:function(){return ug(this,vg).$attrs.selections}},{key:"getUrl",value:function(){return ug(this,vg).$attrs.schema.url}},{key:"getValues",value:function(){return ug(this,vg).values}},{key:"getModelValues",value:function(){return ug(this,vg).actionModel}},{key:"getCurrentAction",value:function(){return ug(this,vg).action}}]),t}(),gg=mg,bg={name:"workflow-designer",mixins:[hn],components:{NodeContainer:dm},setup:function(){var t=new gg,e=Wm.getBusinessAdapter();e.eadApi=t;var r=[],n=Object(N["ref"])(null);return{nodeData:r,businessAdapter:e,eadApi:t,oldHandleCommit:n}},data:function(){return{init:!1,loading:!1,isError:!1,errorInfo:""}},computed:{nodeHandler:function(){return this.businessAdapter.nodeHandler}},methods:{validNodeData:function(){return this.nodeHandler.verify()},handleCommit:function(){if(this.validNodeData()){var t=this.nodeHandler.map(),e={};Object.keys(t).forEach((function(r){e[r]=Object.fromEntries(t[r])})),this.actionModel.workflow_data=e,this.$emit("commit",this.actionModel)}else this.$message.error("校验未通过")}},mounted:function(){var t=this;this.eadApi.setComponent(this),this.nodeData=this.businessAdapter.getNodeData(),this.businessAdapter.init().then((function(){t.init=!0})).catch((function(e){t.isError=!0,t.init=!0,t.errorInfo=JSON.stringify(e),t.$message.error("系统错误,请联系管理员")}))}},wg=bg,_g=qr(wg,gh,bh,!1,null,"a2ad5ee6",null),xg=_g.exports,kg=function(){var t,e,r=this,n=this,o=n._self._c;return o("a-form-model",{ref:"form",staticStyle:{"min-height":"400px"},attrs:{model:n.actionModel,rules:n.rules}},[o("a-spin",{attrs:{spinning:n.loading}},[o("a-tabs",{on:{change:function(){return r.$refs.nodeContainer.toMiddle()}},model:{value:n.paneKey,callback:function(t){n.paneKey=t},expression:"paneKey"}},[n.paneSet.has("1")&&this.currentNode?o("a-tab-pane",{key:"1",attrs:{tab:"操作"}},[n.OPERATE.CHECK===n.workflowReq.operate?o("a-radio-group",{staticStyle:{"margin-bottom":"10px"},on:{change:function(t){return n.loadTodo()}},model:{value:n.workflowReq.page_operate.action,callback:function(t){n.$set(n.workflowReq.page_operate,"action",t)},expression:"workflowReq.page_operate.action"}},[o("a-radio-button",{attrs:{value:n.CHECK_ACTION.PASS}},[n._v(" "+n._s(null!==(t=n.currentNode.data.other_options)&&void 0!==t&&null!==(t=t.custom_action)&&void 0!==t&&t.pass?n.currentNode.data.other_options.custom_action.pass:"审批通过")+" ")]),n.runtimeData.pageOperate.allowBack?o("a-radio-button",{attrs:{value:n.CHECK_ACTION.BACK}},[n._v(" "+n._s(null!==(e=n.currentNode.data.other_options)&&void 0!==e&&null!==(e=e.custom_action)&&void 0!==e&&e.pass?n.currentNode.data.other_options.custom_action.back:" 审批退回")+" ")]):n._e(),n.runtimeData.pageOperate.allowReassign?o("a-radio-button",{attrs:{value:n.CHECK_ACTION.REASSIGN}},[n._v(" 转办 ")]):n._e(),n.runtimeData.pageOperate.allowInvolve?o("a-radio-button",{attrs:{value:n.CHECK_ACTION.INVOLVE}},[n._v(" 加签 ")]):n._e(),n.runtimeData.pageOperate.allowEnd?o("a-radio-button",{attrs:{value:n.CHECK_ACTION.END}},[n._v(" 结束 ")]):n._e()],1):n._e(),(n.workflowReq.operate===n.OPERATE.START||n.workflowReq.operate===n.OPERATE.CHECK&&[n.CHECK_ACTION.PASS].includes(n.workflowReq.page_operate.action))&&n.runtimeData.currentNodeFormItem&&n.runtimeData.currentNodeFormItem.length?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[n._l(n.runtimeData.currentNodeFormItem,(function(t){return[t?o("Item",{key:t.name,attrs:{formModel:n.actionModel,params:{},prop:t.name,required:t.required,schema:t},on:{change:function(e){return n.handleItemChange(e,t)}},model:{value:n.actionModel[t.name],callback:function(e){n.$set(n.actionModel,t.name,e)},expression:"actionModel[attr.name]"}}):n._e()]}))],2)],1):n._e(),n.OPERATE.CHECK===n.workflowReq.operate?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-form-model-item",{attrs:{label:[n.CHECK_ACTION.REASSIGN,n.CHECK_ACTION.INVOLVE,n.CHECK_ACTION.END].includes(n.workflowReq.page_operate.action)?"备注":"审批意见",prop:"xxx",size:"small"}},[o("a-textarea",{attrs:{"auto-size":{minRows:4,maxRows:6},placeholder:"请输入".concat([n.CHECK_ACTION.REASSIGN,n.CHECK_ACTION.INVOLVE,n.CHECK_ACTION.END].includes(n.workflowReq.page_operate.action)?"备注":"审批或退回意见")},model:{value:n.workflowReq.page_operate.operate_content,callback:function(t){n.$set(n.workflowReq.page_operate,"operate_content",t)},expression:"workflowReq.page_operate.operate_content"}})],1)],1):n._e(),n.isCustomBack&&n.OPERATE.CHECK===n.workflowReq.operate&&n.workflowReq.page_operate.action===n.CHECK_ACTION.BACK?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-form-model-item",{attrs:{label:"退回步骤",prop:"xxx",size:"small"}},[o("a-select",{model:{value:n.workflowReq.page_operate.custom_back_node_code,callback:function(t){n.$set(n.workflowReq.page_operate,"custom_back_node_code",t)},expression:"workflowReq.page_operate.custom_back_node_code"}},n._l(n.currentNode.data.custom_back_nodes,(function(t){return o("a-select-option",{key:t,attrs:{value:t}},[n._v(" "+n._s(n.nodeHandler.getNode(t).name)+" ")])})),1)],1)],1):n._e(),n.runtimeData.todos&&n.runtimeData.todos.length&&(n.OPERATE.START===n.workflowReq.operate||n.OPERATE.CHECK===n.workflowReq.operate&&(n.workflowReq.page_operate.action===n.CHECK_ACTION.PASS||n.workflowReq.page_operate.action===n.CHECK_ACTION.BACK&&"bpmn"===n.currentNode.data.back_type))?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-card",{attrs:{size:"small",title:"后续步骤"}},[n.runtimeData.todos&&n.runtimeData.todos.length?o("a-tabs",{attrs:{"tab-position":"top"},model:{value:n.currentTodo,callback:function(t){n.currentTodo=t},expression:"currentTodo"}},n._l(n.runtimeData.todos,(function(t){var e,r,i,a,s,c,l,u;return o("a-tab-pane",{key:t.node_code,attrs:{disabled:!n.availableTodo(t),tab:null!==(e=null===(r=n.nodeHandler.getNode(t.node_code))||void 0===r?void 0:r.name)&&void 0!==e?e:"-"}},[n.availableTodo(t)?o("div",{staticClass:"actors"},[o("div",{staticStyle:{width:"60%"}},[o("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(e){return n.filterTodoItemActors(e,t)}}}),o("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":t.actorsf.value,pagination:!1,"row-selection":null!==(i=t.optional)&&void 0!==i&&i.enable?{type:t.optional.multi?"checkbox":"radio",selectedRowKeys:t.selected,onChange:function(e){t.selected=e}}:null,rowKey:"uid",size:"middle"}})],1),o("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{title:(null!==(a={queue:"依次",orsign:"或签",sign:"会签"}[null!==(s=t.optional)&&void 0!==s&&s.enable&&null!==(c=t.optional)&&void 0!==c&&c.multi||(null===(l=t.optional)||void 0===l||!l.enable)&&t.actorsf.value.length>=2?null===t||void 0===t?void 0:t.actor_check_mode:""])&&void 0!==a?a:"")+"执行人列表",size:"small"}},[o("draggable",{attrs:{disabled:!("queue"===(null===t||void 0===t?void 0:t.actor_check_mode)&&null!==(u=t.optional)&&void 0!==u&&u.enable),animation:"100",chosenClass:"chosen"},model:{value:t.selected,callback:function(e){n.$set(t,"selected",e)},expression:"item.selected"}},[o("transition-group",{attrs:{name:"flip-list",type:"transition"}},[t.selected&&null!==t&&void 0!==t&&t.selected.length?n._l(t.selected,(function(t){return o("div",{key:t,staticClass:"item"},[n._v(" "+n._s(n.userCache[t])+" ")])})):n._e()],2)],1)],1)],1):n._e()])})),1):n._e()],1)],1):n._e(),n.OPERATE.CHECK===n.workflowReq.operate&&n.workflowReq.page_operate.action===n.CHECK_ACTION.REASSIGN?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-card",{attrs:{size:"small",title:"转办执行人"}},[o("div",{staticClass:"actors"},[o("div",{staticStyle:{width:"60%"}},[n.runtimeData.reassign.actors?[o("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(t){return n.reassignUserFilter=t}}}),o("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":n.filterActors(n.reassignUserFilter,n.runtimeData.reassign.actors),pagination:!1,"row-selection":{type:"radio",selectedRowKeys:n.runtimeData.reassign.selected,onChange:function(t){n.runtimeData.reassign.selected=t}},rowKey:"uid",size:"middle"}})]:[o("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(){n.reassignUserPagination.current=1,n.handleTableChangeReassignUser(n.reassignUserPagination)}},model:{value:n.reassignUserFilter,callback:function(t){n.reassignUserFilter=t},expression:"reassignUserFilter"}}),o("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":n.reassignUserData,loading:n.loadingReassignUser,pagination:n.reassignUserPagination,"row-key":function(t){return t.uid},"row-selection":{type:"radio",selectedRowKeys:n.runtimeData.reassign.selected,onChange:function(t){r.reassignUserData.filter((function(e){return t.includes(e.uid)})).forEach((function(t){return n.userCache[t.uid]="".concat(t.name,"(").concat(t.org_name,")")})),n.runtimeData.reassign.selected=t}}},on:{change:n.handleTableChangeReassignUser}})]],2),o("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{size:"small",title:"转办人"}},[o("draggable",{attrs:{disabled:!0,chosenClass:"chosen"},model:{value:n.runtimeData.reassign.selected,callback:function(t){n.$set(n.runtimeData.reassign,"selected",t)},expression:"runtimeData.reassign.selected"}},[o("transition-group",n._l(n.runtimeData.reassign.selected,(function(t){return o("div",{key:t,staticClass:"item"},[n._v(" "+n._s(n.userCache[t])+" ")])})),0)],1)],1)],1)])],1):n._e(),n.OPERATE.CHECK===n.workflowReq.operate&&n.workflowReq.page_operate.action===n.CHECK_ACTION.INVOLVE?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-card",{attrs:{size:"small",title:"加签执行人"}},[o("div",{staticClass:"actors"},[o("div",{staticStyle:{width:"60%"}},[n.runtimeData.involve.actors?[o("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(t){return n.involveUserFilter=t}}}),o("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":n.filterActors(n.involveUserFilter,n.runtimeData.involve.actors),pagination:!1,"row-selection":{type:"radio",selectedRowKeys:n.runtimeData.involve.selected,onChange:function(t){n.runtimeData.involve.selected=t}},rowKey:"uid",size:"middle"}})]:[o("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(){n.involveUserPagination.current=1,n.handleTableChangeInvolveUser(n.involveUserPagination)}},model:{value:n.involveUserFilter,callback:function(t){n.involveUserFilter=t},expression:"involveUserFilter"}}),o("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":n.involveUserData,loading:n.loadingInvolveUser,pagination:n.involveUserPagination,"row-key":function(t){return t.uid},"row-selection":{type:"radio",selectedRowKeys:n.runtimeData.involve.selected,onChange:function(t){r.involveUserData.filter((function(e){return t.includes(e.uid)})).forEach((function(t){return n.userCache[t.uid]="".concat(t.name,"(").concat(t.org_name,")")})),n.runtimeData.involve.selected=t}}},on:{change:n.handleTableChangeInvolveUser}})]],2),o("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{size:"small",title:"加签人"}},[o("draggable",{attrs:{disabled:!0,chosenClass:"chosen"},model:{value:n.runtimeData.involve.selected,callback:function(t){n.$set(n.runtimeData.involve,"selected",t)},expression:"runtimeData.involve.selected"}},[o("transition-group",n._l(n.runtimeData.involve.selected,(function(t){return o("div",{key:t,staticClass:"item"},[n._v(" "+n._s(n.userCache[t])+" ")])})),0)],1)],1)],1)])],1):n._e()],1):n._e(),n.paneSet.has("2")?o("a-tab-pane",{key:"2",attrs:{"force-render":"",tab:"审批记录"}},[o("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[o("a-list",{attrs:{dataSource:this.runtimeData.logList},scopedSlots:n._u([{key:"renderItem",fn:function(t){return o("a-list-item",{},[o("a-list-item-meta",[o("strong",{attrs:{slot:"title"},slot:"title"},[n._v(" "+n._s(t.node_name)+" ")]),n.$store.state.app.icon?o("a-avatar",{attrs:{slot:"avatar",src:n.$store.state.app.icon},slot:"avatar"}):o("a-avatar",{attrs:{slot:"avatar",icon:"user"},slot:"avatar"}),o("a-space",{attrs:{slot:"description",direction:"vertical"},slot:"description"},[o("div",[n._v(n._s(t.operate_desc))]),t.operate_content?o("div",[n._v(" 审批意见:"+n._s(t.operate_content)+" ")]):n._e(),o("a-space",[o("span",{staticStyle:{color:"#18274a"}},[o("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"clock-circle-o"}}),n._v(" "+n._s(n.moment(t.create_time).format("YYYY-MM-DD HH:mm"))+" ")],1),o("a-divider",{attrs:{type:"vertical"}}),o("span",{staticStyle:{color:"#18274a"}},[o("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"user"}}),n._v(" "+n._s(t.operator.name)+"("+n._s(t.operator.org_name)+") ")],1)],1)],1)],1)],1)}}],null,!1,2687742983)})],1)],1):n._e(),n.paneSet.has("3")?o("a-tab-pane",{key:"3",attrs:{tab:"流程图"}},[o("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[o("div",{staticStyle:{position:"absolute","z-index":"999"}},[o("a-button",{directives:[{name:"show",rawName:"v-show",value:!n.fullscreenLoading,expression:"!fullscreenLoading"}],attrs:{icon:"arrows-alt",type:"link"},on:{click:n.showFullScreenFlow}}),o("a-icon",{directives:[{name:"show",rawName:"v-show",value:n.fullscreenLoading,expression:"fullscreenLoading"}],attrs:{type:"loading-3-quarters"}})],1),n.initNodeContainer?o("NodeContainer",{ref:"nodeContainer",staticStyle:{heigth:"350px"},attrs:{"business-adapter":n.businessAdapter,"default-zoom-scale":70,"hide-zoom":!0,"is-preview":!0,"node-data":n.nodeData,"runtime-data":n.runtimeData},on:{nodeHandlerReady:n.nodeHandlerReady}}):n._e()],1)],1):n._e()],1)],1),o("a-modal",{staticClass:"jjh-fullscreen",attrs:{bodyStyle:{height:"85vh","overflow-y":"scroll","padding-bottom":"0"},destroyOnClose:!0,"dialog-style":{top:"0px"},visible:n.fullscreen,title:"流程图",width:"100%"},on:{cancel:n.hideFullScreenFlow}},[n.initNodeContainer?o("NodeContainer",{ref:"nodeContainer1",attrs:{"business-adapter":n.businessAdapter,"is-preview":!0,"node-data":n.nodeData,"runtime-data":n.runtimeData}}):n._e(),o("template",{slot:"footer"},[o("a-button",{key:"back",on:{click:n.hideFullScreenFlow}},[n._v("关闭")])],1)],2)],1)},Og=[],Eg=r("289a"),Sg=r.n(Eg);function jg(t){return jg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jg(t)}function Ng(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Ag(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Lg(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Lg=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==jg(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(jg(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Pg(t){return Rg(t)||Tg(t)||Ag(t)||Cg()}function Cg(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ag(t,e){if(t){if("string"===typeof t)return Dg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Dg(t,e):void 0}}function Tg(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Rg(t){if(Array.isArray(t))return Dg(t)}function Dg(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ig(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Mg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ig(Object(r),!0).forEach((function(e){qg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ig(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qg(t,e,r){return e=Bg(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bg(t){var e=Fg(t,"string");return"symbol"==jg(e)?e:String(e)}function Fg(t,e){if("object"!=jg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=jg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function $g(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Vg(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){$g(i,n,o,a,s,"next",t)}function s(t){$g(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Hg={START:"start",CHECK:"check",QUERY:"query"},Ug={PREVIEW:"preview",CONFIRM:"confirm"},Gg={PASS:"pass",BACK:"back",REASSIGN:"reassign",INVOLVE:"involve",END:"end"},zg={name:"runtime-workflow",mixins:[hn],components:{NodeContainer:dm,Item:Ri,draggable:Sg.a},data:function(){return{OPERATE:Hg,OPERATE_MODE:Ug,CHECK_ACTION:Gg,nodeHandler:null,loading:!0,paneSet:new Set,initNodeContainer:!1,fullscreen:!1,fullscreenLoading:!1,nodeData:null,paneKey:"3",currentNode:null,currentTodo:null,runtimeData:{currentNodeCode:"审批人",currentNodeOptionForms:[],currentNodeFormItem:null,pageOperate:{allowBack:!0,allowReassign:!0,allowInvolve:!0,allowEnd:!0},customBackNodes:["上报人"],caseNodes:{"上报人":{status:"finish"},"审批人":{status:"ongoing"},"抄送人":{status:"finish"}},actorLogs:{"上报人":[{operator:{name:"jianghui",org_name:"部门"},status:"finish",operate:"reassign",operate_desc:"专办给 to xxx",create_time:1613241234123,sequent:[{operator:{name:"jianghui",org_name:"部门"},status:"finish",operate:"start",operate_desc:"接收专班;并上报",create_time:1613241244123}]},{operator:{name:"jianghui",org_name:"部门"},status:"finish",operate:"involve",operate_desc:"加签 给 xxx",create_time:1613241234123,sequent:[{operator:{name:"jianghui",org_name:"部门"},status:"finish",operate_desc:"完成",operate:"start",create_time:1613241244123}],callback:{operator:{name:"jianghui",org_name:"部门"},status:"finish",operate:"start",operate_desc:"接收到加签结果;继续处理",create_time:1613241234123}},{operator:{name:"jianghui",org_name:"部门"},status:"ongoing",operate_desc:"正在处理中"}],"审批人":[{operator:{name:"jianghui3",org_name:"部门"},status:"ongoing",operate_desc:"接收到加签结果;继续处理"}]},logList:[{node_name:"上报人",operate:"start",operate_desc:"由王盛发起流程",operate_content:"审批意见",create_time:1613241234123,operator:{name:"jianghui",org_name:"部门"}},{node_name:"上报人",operate_desc:"上报完成",operate_content:"审批意见",create_time:1613241234123,operator:{name:"jianghui",org_name:"部门"}}],todos:[{node_code:"审批人2",condition:"(true) && (true)",optional:{multi:!0,enable:!0},actor_check_mode:"queue",actors:[{uid:1,name:"jianghui0",org_name:"部门1"},{uid:2,name:"jianghui1",org_name:"部门2"},{uid:3,name:"jianghui2",org_name:"部门2"},{uid:4,name:"jianghui3",org_name:"部门3"},{uid:5,name:"jianghui4",org_name:"部门3"}],selected:[]},{node_code:"审批人3",actor_check_mode:"sign",optional:{multi:!0,enable:!0},actors:[{uid:1,name:"jianghui",org_name:"部门1"},{uid:2,name:"jianghui1",org_name:"部门2"}],selected:[]},{node_code:"审批人5",actor_check_mode:"",optional:{multi:!1,enable:!0},actors:[{uid:1,name:"jianghui",org_name:"部门1"},{uid:2,name:"jianghui1",org_name:"部门2"}],selected:[]},{node_code:"审批人4",actor_check_mode:"queue",optional:{multi:!1,enable:!1},selected:[1,2],actors:[{uid:1,name:"jianghui",org_name:"部门1"},{uid:2,name:"jianghui1",org_name:"部门2"}]}],involve:{selected:[]},reassign:{selected:[]}},isCustomBack:null,reassignUserFilter:"",loadingReassignUser:!1,reassignUserData:[],reassignUserPagination:{pageSizeOptions:["10","20"],current:1,pageSize:10},involveUserFilter:"",loadingInvolveUser:!1,involveUserData:[],involveUserPagination:{pageSizeOptions:["10","20"],current:1,pageSize:10},userCache:{},expressionError:!1,workflow:{},activityColumns:[]}},setup:function(t){var e=t.columns,r=new gg,n=Wm.getBusinessAdapter(),o={operate_mode:Ug.PREVIEW,operate:Hg.QUERY,page_operate:{action:Gg.PASS,operate_content:"",custom_back_node_code:void 0,todos:void 0,involve:void 0,reassign:void 0},model_id:null,data_id:null};return{columnsRef:Object(N["ref"])(e),workflowReq:Object(N["ref"])(o),eadApi:r,businessAdapter:n}},created:function(){},mounted:function(){var t=this;return Vg(Lg().mark((function e(){var r,n,o,i,a,s,c,l,u,f,h,d,p;return Lg().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.activityColumns=t.view.schema.model.attrs.filter((function(t){return"none"!==t.access})).map((function(t){return t.name})),t.columnsRef=t.columnsRef.map((function(t){return Mg({},t)})),t.eadApi.setComponent(t),t.businessAdapter.eadApi=t.eadApi,t.workflowReq.operate=null!==(r=Hg[t.configs["workflow.operate"].toUpperCase()])&&void 0!==r?r:t.workflowReq.operate,t.workflowReq.data_id=t.eadApi.getModelValues()[t.eadApi.getModelIdName()],t.workflowReq.model_id=t.configs["workflow.id"],t.eadApi.getModelValues().workflow_req=t.workflowReq,e.next=10,t.eadApi.runCurrentAction();case 10:if(c=e.sent,c){e.next=15;break}return t.loading=!1,t.$emit("close"),e.abrupt("return");case 15:Object.keys(t.actionModel).forEach((function(e){Object.keys(c.data).includes(e)&&(t.actionModel[e]=c.data[e])})),t.workflow=null===c||void 0===c||null===(n=c.data)||void 0===n?void 0:n.workflow,l=null===c||void 0===c||null===(o=c.data)||void 0===o||null===(o=o.workflow)||void 0===o?void 0:o.runtime_data,l&&Object.keys(l).length&&(t.runtimeData=l),t.runtimeData.logList||(t.runtimeData.logList=[]),t.runtimeData.todos&&t.runtimeData.todos.forEach((function(t){(!t.optional||t.optional&&!t.optional.enable)&&(t.selected&&t.selected.length||(t.selected=t.actors.map((function(t){return t.uid})))),t.optional&&t.optional.enable&&!t.optional.multi&&(t.selected&&t.selected.length||(t.selected=[t.actors[0].uid]))})),t.runtimeData.actorLogs||(t.runtimeData.actorLogs={}),t.runtimeData.caseNodes&&t.runtimeData.caseNodes.length&&(u={},t.runtimeData.caseNodes.forEach((function(t){u[t.node_code]=Mg({},t)})),t.runtimeData.caseNodes=u),t.runtimeData.todos&&t.runtimeData.todos.forEach((function(t){t.actorfilter||(t.actorfilter=""),t.actorsf=Object(N["ref"])(Pg(t.actors))})),f=[],null!==(i=t.runtimeData)&&void 0!==i&&null!==(i=i.involve)&&void 0!==i&&i.actors&&f.push.apply(f,Pg(t.runtimeData.involve.actors)),null!==(a=t.runtimeData)&&void 0!==a&&null!==(a=a.reassign)&&void 0!==a&&a.actors&&f.push.apply(f,Pg(t.runtimeData.reassign.actors)),t.runtimeData.todos&&t.runtimeData.todos.forEach((function(t){f.push.apply(f,Pg(t.actors))})),f.forEach((function(e){t.userCache[e.uid]="".concat(e.name,"(").concat(e.org_name,")")})),h=null===c||void 0===c||null===(s=c.data)||void 0===s||null===(s=s.workflow)||void 0===s?void 0:s.node_json,d=h?null===h||void 0===h?void 0:h.node:null,t.nodeData=d?Pg(Object.values(d)):[],p=t.paneSet,[Hg.START,Hg.CHECK].includes(t.workflowReq.operate)&&p.add("1"),p.add("2"),p.add("3"),t.initNodeContainer=!0,t.$nextTick((function(){t.paneKey=Pg(p.values())[0]})),t.validExpression(),t.loadTodo(),t.actionModel.workflow_req=t.workflowReq,t.actionModel.workflow=t.workflow,t.loading=!1,t.workflowReq.operate_mode=Ug.CONFIRM,t.workflowReq.operate===Hg.CHECK&&(t.fetchInvolveUser(),t.fetchReassignUser());case 45:case"end":return e.stop()}}),e)})))()},methods:{filterTodoItemActors:function(t,e){e.actorsf.value=this.filterActors(t,e.actors)},filterActors:function(t,e){return t?e.filter((function(e){return e.name.toString().toLowerCase().includes(t.toLowerCase())})):e},handleTableChangeReassignUser:function(t){var e=Mg({},this.reassignUserPagination);e.current=t.current,this.reassignUserPagination=e,this.fetchReassignUser({userName:this.reassignUserFilter,pagination:{pageSize:t.pageSize,current:t.current}})},fetchReassignUser:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{userName:this.reassignUserFilter,pagination:this.reassignUserPagination};this.loadingReassignUser=!0,this.getAllUsers(e.userName,e.pagination).then((function(e){var r=Mg({},t.reassignUserPagination);r.total=e.count,t.loadingReassignUser=!1,t.reassignUserData=e.results,t.reassignUserPagination=r}))},handleTableChangeInvolveUser:function(t){var e=Mg({},this.involveUserPagination);e.current=t.current,this.involveUserPagination=e,this.fetchInvolveUser({userName:this.involveUserFilter,pagination:{pageSize:t.pageSize,current:t.current}})},fetchInvolveUser:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{userName:this.involveUserFilter,pagination:this.involveUserPagination};this.loadingInvolveUser=!0,this.getAllUsers(e.userName,e.pagination).then((function(e){var r=Mg({},t.involveUserPagination);r.total=e.count,t.loadingInvolveUser=!1,t.involveUserData=e.results,t.involveUserPagination=r}))},getAllUsers:function(t,e){var r=this;return Vg(Lg().mark((function n(){var o,i;return Lg().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,r.eadApi.getDatasetApi("flowdir-allusercount",{user_name:t});case 2:return o=n.sent,n.next=5,r.eadApi.getDatasetApi("flowdir-alluser",{user_name:t,limit_index:(e.current-1)*e.pageSize,limit_num:e.pageSize});case 5:return i=n.sent,n.abrupt("return",{count:o[0].count,results:i});case 7:case"end":return n.stop()}}),n)})))()},handleCommit:function(){var t,e=this,r=!1;if(this.workflowReq.operate===Hg.START&&(null!==(t=this.runtimeData.todos)&&void 0!==t&&t.length)){var n=this.getAvailableTodos(),o=this.nodeHandler.getAllRoute(this.currentNode.code).find((function(t){return"end"===t.type}));if(!n.length&&!o)return void this.$message.error("无法匹配到符合条件的后续步骤");this.workflowReq.page_operate.todos=n}if(this.workflowReq.operate===Hg.CHECK){var i,a;if(this.workflowReq.page_operate.action===Gg.BACK)if("bpmn"===this.currentNode.data.back_type&&(r=!0),null!==(i=this.runtimeData.todos)&&void 0!==i&&i.length){var s=this.getAvailableTodos(),c=this.nodeHandler.getAllRoute(this.currentNode.code).find((function(t){return"end"===t.type}));if(!s.length&&!c)return void this.$message.error("无法匹配到符合条件的后续步骤");this.workflowReq.page_operate.todos=s}if(this.workflowReq.page_operate.action===Gg.PASS)if(null!==(a=this.runtimeData.todos)&&void 0!==a&&a.length){var l=this.getAvailableTodos(),u=this.nodeHandler.getAllRoute(this.currentNode.code).find((function(t){return"end"===t.type}));if(!l.length&&!u)return void this.$message.error("无法匹配到符合条件的后续步骤");this.workflowReq.page_operate.todos=l}if(this.workflowReq.page_operate.action===Gg.INVOLVE){var f;if(null===(f=this.runtimeData.involve)||void 0===f||null===(f=f.selected)||void 0===f||!f.length)return void this.$message.error("请选择加签人");this.workflowReq.page_operate.involve=this.runtimeData.involve}if(this.workflowReq.page_operate.action===Gg.REASSIGN){var h;if(null===(h=this.runtimeData.reassign)||void 0===h||null===(h=h.selected)||void 0===h||!h.length)return void this.$message.error("请选择转办人");this.workflowReq.page_operate.reassign=this.runtimeData.reassign}}if(this.currentNode.data.other_options.assert&&this.currentNode.data.other_options.assert.length){var d,p=this.currentNode.data.other_options.assert.filter((function(t){return"all"===t.action||t.action===e.workflowReq.page_operate.action})).filter((function(t){return t.expression&&t.message})),v=Ng(p);try{var y,m=function(){var t=d.value;try{var r={};e.activityColumns.forEach((function(t){return r[t]=e.actionModel[t]}));var n=new Function(Object.keys(r),"return "+t.expression),o=n.apply(void 0,Pg(Object.values(r)));if(!o)return e.$message.error(t.message),{v:void 0}}catch(i){return e.$message.error("断言表达式配置错误,"+t.message),{v:void 0}}};for(v.s();!(d=v.n()).done;)if(y=m(),y)return y.v}catch(b){v.e(b)}finally{v.f()}}this.actionModel.workflow=this.workflow,this.actionModel.workflow_req=this.workflowReq;var g=Mg({},this.actionModel);g.workflow_req=Mg({},this.workflowReq),g.workflow_req.page_operate=Mg({},this.workflowReq.page_operate),r&&(g.workflow_req.page_operate.action="BPMN_BACK"),this.$emit("commit",g)},nodeHandlerReady:function(t){var e,r,n=this;this.nodeHandler=t;var o=this.currentNode=t.getNode(this.runtimeData.currentNodeCode);!this.runtimeData.PageOperate&&null!==o&&void 0!==o&&null!==(e=o.data)&&void 0!==e&&e.page_options&&(this.runtimeData.PageOperate=o.data.page_options);var i=null!==(r=this.runtimeData.currentNodeOptionForms)&&void 0!==r?r:null===o||void 0===o?void 0:o.data.option_forms;this.runtimeData.currentNodeFormItem=i.filter((function(t){return"none"!==t.access})).map((function(t){var e=n.columns.find((function(e){return e.name===t.attrCode}));return e&&(e.params||(e.params={}),e.params.readonly="readonly"===t.access,e.required=t.required),e})).filter((function(t){return t})),this.isCustomBack="custom"===(null===o||void 0===o?void 0:o.data.back_type),this.isCustomBack&&(this.runtimeData.customBackNodes||(this.runtimeData.customBackNodes=Pg(null===o||void 0===o?void 0:o.data.custom_back_nodes)),this.workflowReq.page_operate.custom_back_node_code=this.runtimeData.customBackNodes[0])},showFullScreenFlow:function(){var t=this;this.fullscreenLoading=!0,setTimeout((function(){t.$nextTick((function(){t.fullscreen=!0}))}),50)},hideFullScreenFlow:function(){this.fullscreenLoading=!1,this.fullscreen=!1},handleItemChange:function(t,e){var r=this;return Vg(Lg().mark((function n(){var o,i,a;return Lg().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(o=e.name,!(t instanceof FileList)){n.next=14;break}if(!t[0]){n.next=11;break}return i=new FormData,i.append(o,t[0]),n.next=7,r.$api.post("/upload",i);case 7:a=n.sent,t=a.data.data[o],n.next=12;break;case 11:t=null;case 12:n.next=15;break;case 14:t instanceof Date&&(t=r.moment(t).format("YYYY-MM-DD"));case 15:["time","datetime"].includes(e.dataType)&&(t=r.moment(t,"YYYY-MM-DD HH:mm").valueOf()),["date"].includes(e.dataType)&&(t=r.moment(t,"YYYY-MM-DD").valueOf()),r.actionModel[o]=t,r.loadTodo();case 19:case"end":return n.stop()}}),n)})))()},validExpression:function(){var t,e=Ng(this.runtimeData.todos);try{for(e.s();!(t=e.n()).done;){var r=t.value;if(this.availableTodo(r),this.expressionError)return!1}}catch(n){e.e(n)}finally{e.f()}return!0},getAvailableTodos:function(){var t,e=[],r=Ng(this.runtimeData.todos);try{for(r.s();!(t=r.n()).done;){var n=t.value;this.availableTodo(n)&&e.push({node_id:n.node_id,node_code:n.node_code,selected:n.selected})}}catch(o){r.e(o)}finally{r.f()}return e},loadTodo:function(){var t=this;if(this.runtimeData.todos)if(this.currentTodo)this.availableTodo(this.runtimeData.todos.find((function(e){return e.node_code===t.currentTodo})))||(this.currentTodo=null,this.loadTodo());else{var e,r=Ng(this.runtimeData.todos);try{for(r.s();!(e=r.n()).done;){var n=e.value;if(this.availableTodo(n))return void(this.currentTodo=n.node_code)}}catch(o){r.e(o)}finally{r.f()}}},availableTodo:function(t){var e=this;if(this.expressionError)return!1;var r=t.condition;if(!r)return!0;try{var n={};this.activityColumns.forEach((function(t){return n[t]=e.actionModel[t]}));var o=new Function(Object.keys(n),"return "+r),i=o.apply(void 0,Pg(Object.values(n)));return t.available=i,i}catch(a){this.expressionError=!0,this.$message.error("[".concat(t.node_code,"]表达式执行错误,请联系系统管理员!表达式:").concat(r))}return!1}}},Kg=zg,Yg=(r("f005"),qr(Kg,kg,Og,!1,null,"bf3aa83e",null)),Wg=Yg.exports,Zg=(r("1f51"),{NormalForm:zc,UploadForm:rl,PickerViewForm:pl,AlgorithmForm:Wu,PickerTransferForm:mf,PickerTreeForm:Af,PickerSelectViewForm:Qf,WorkflowReport:mh,WorkflowDesigner:xg,RuntimeWorkflow:Wg});function Jg(t){return Jg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jg(t)}function Xg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Xg(Object(r),!0).forEach((function(e){tb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tb(t,e,r){return e=eb(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eb(t){var e=rb(t,"string");return"symbol"==Jg(e)?e:String(e)}function rb(t,e){if("object"!=Jg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Jg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var nb={mixins:[Kt,Yt,Fc],components:Qg({},Zg)},ob=nb,ib=qr(ob,Mc,qc,!1,null,null,null),ab=ib.exports,sb={ModelList:ja,ModelProfile:Ic,ModelForm:ab},cb={props:{view:{type:Object},modelViewType:{type:String}},inject:["page"],computed:{namespace:function(){return"v-".concat(this.page.pageKey)}},methods:{createView:function(){return{extends:Ut(sb["Model".concat(this.modelViewType)])(this.namespace)}}}},lb=cb,ub=qr(lb,kt,Ot,!1,null,null,null),fb=ub.exports,hb={components:{ViewBox:fb},props:{views:{type:[Array]},viewLayout:{type:String,default:"blank"}}},db=hb,pb=qr(db,_t,xt,!1,null,null,null),vb=pb.exports,yb={mixins:[wt],components:{Views:vb}},mb=yb,gb=qr(mb,ht,dt,!1,null,null,null),bb=gb.exports,wb=function(){var t=this,e=t._self._c;return e("layout-page-".concat(t.layout),{tag:"component"},[e("Frame",{attrs:{url:"".concat(t.url),height:t.height}})],1)},_b=[],xb={mixins:[wt],components:{Frame:ss},props:{url:String,height:String},data:function(){return{loading:!0}}},kb=xb,Ob=qr(kb,wb,_b,!1,null,null,null),Eb=Ob.exports,Sb=function(){var t=this,e=t._self._c;return e("keep-alive",[e("router-view")],1)},jb=[],Nb={},Lb=qr(Nb,Sb,jb,!1,null,null,null),Pb=Lb.exports;function Cb(t){return Cb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cb(t)}function Ab(t){return Ib(t)||Db(t)||Rb(t)||Tb()}function Tb(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Rb(t,e){if(t){if("string"===typeof t)return Mb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mb(t,e):void 0}}function Db(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Ib(t){if(Array.isArray(t))return Mb(t)}function Mb(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function qb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qb(Object(r),!0).forEach((function(e){Fb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Fb(t,e,r){return e=$b(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $b(t){var e=Vb(t,"string");return"symbol"==Cb(e)?e:String(e)}function Vb(t,e){if("object"!=Cb(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Cb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Hb(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Hb=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Cb(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Cb(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Ub(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Gb(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ub(i,n,o,a,s,"next",t)}function s(t){Ub(i,n,o,a,s,"throw",t)}a(void 0)}))}}var zb=ft(bb),Kb=["catalog-tab","catalog"],Yb={data:function(){return{messageTimer:0}},created:function(){var t=this;return Gb(Hb().mark((function e(){return Hb().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.$router.addRoutes([{path:"/sign-in",component:t.$theme.pages.Signin,props:{layout:"wall"}}]),e.next=3,t.$store.dispatch("loadResources");case 3:"poll"===t.$store.state.config.message.type&&"1"===t.$store.state.app.remind&&t.startMessage();case 4:case"end":return e.stop()}}),e)})))()},computed:Bb(Bb({},Object(u["mapState"])(["status","resources"])),{},{routes:function(){return this.resources.length?[{path:"/",redirect:"/"+this.resources[0].key,children:this.resToRoute(Ab(this.resources)),component:this.$theme.layouts.router.Sidebar}]:[]}}),methods:{addRoutes:function(){this.$router.addRoutes(this.routes),this.$emit("routed")},resToRoute:function(t){var e=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=this.$theme.layouts.router.Tabs;return t.map((function(t){var o,i="".concat(r,"/").concat(t.key),a=t.key,s={},c=null;switch(t.type){case"catalog-tab":o=n,s.resources=t.childs,s.parentPath=i;break;case"component":o=e.$theme.pages[t.key.replace(/^\S/,(function(t){return t.toUpperCase()}))],s.pageKey=t.url;break;case"iframe":if(o=Eb,s.pageKey=t.url,s.url=t.url,t.url&&t.url.split("?")[1]){var l=t.url.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;l&&(s.height=l.split("=")[1])}break;case"view":o=Pb,s.pageKey=t.url;break;case"link":o={template:"<span></span>",activated:function(){this.$router.back()}};break;default:o=Pb;break}return"view"===t.type&&"standard"===t.viewType&&(c=[{path:"",component:{extends:zb(t.url,!0)},props:{modelViewType:"profile"===t.catalogType?"Profile":"List",pageKey:t.url},meta:{name:t.name,key:i}},{path:":id",component:{extends:zb(t.url,!0)},props:function(){return{modelViewType:"Profile",pageKey:t.url}},meta:{name:t.name,key:i}}]),!c&&t.childs&&(c=e.resToRoute(t.childs,t,"".concat(r,"/").concat(a))),{name:c?null:t.url,path:a,redirect:Kb.includes(t.type)&&t.childs&&t.childs.length?"".concat(r,"/").concat(a,"/").concat(t.childs[0].key):null,children:c,component:o,props:s,meta:{name:"list"===t.type?null:t.name}}}))},modelPageRoute:function(){},startMessage:function(){var t=this;return Gb(Hb().mark((function e(){return Hb().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("loadMessages");case 2:t.messageTimer&&clearInterval(t.messageTimer),t.messageTimer=setInterval((function(){t.$store.dispatch("loadMessages")}),1e4);case 4:case"end":return e.stop()}}),e)})))()}},watch:{status:function(t){401===t&&"/sign-in"!==this.$route.path&&this.$router.push("/sign-in")},resources:function(t,e){!e.length&&this.addRoutes()}}},Wb=Yb,Zb=qr(Wb,c,l,!1,null,null,null),Jb=Zb.exports,Xb={components:{Router:Jb},created:function(){}},Qb=Xb,tw=qr(Qb,a,s,!1,null,null,null),ew=tw.exports;r("e39e");function rw(t){return rw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rw(t)}function nw(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */nw=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==rw(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(rw(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function ow(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function iw(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ow(i,n,o,a,s,"next",t)}function s(t){ow(i,n,o,a,s,"throw",t)}a(void 0)}))}}function aw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function sw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?aw(Object(r),!0).forEach((function(e){cw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):aw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cw(t,e,r){return e=lw(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lw(t){var e=uw(t,"string");return"symbol"==rw(e)?e:String(e)}function uw(t,e){if("object"!=rw(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=rw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var fw=window.Rainbow,hw=fw.app,dw=hw.csrfToken,pw=hw.baseURL,vw=!1,yw={};function mw(t){E.setDefaults({baseURL:pw!==["/","{app.appKey}"].join("$")?pw:t,headers:yw}),L.a.use(E),L.a.use(f.a);var e=function(){return{resources:[],apps:[],user:{},token:JSON.parse(localStorage.getItem("token")),app:sw({},fw.app),config:{message:{type:"poll"}},messages:[],historys:[],loading:!1,committing:!1,status:200,message:"",baseURL:E.instance.defaults.baseURL}};return new f.a.Store({state:e(),strict:vw,plugins:[],mutations:{setResources:function(t,e){t.resources=e},setApp:function(t,e){t.app=sw(sw({},t.app),e)},setUser:function(t,e){t.user=e},setToken:function(t,e){t.token=e},setMessages:function(t,e){t.messages=e},readMessages:function(t,e){if(e.length>1)t.messages=[];else if(1===e.length){var r=t.messages.findIndex((function(t){return e[0].message_id===t.message_id}));-1!==r&&t.messages.splice(r,1)}},clear:function(t){t.resources=t.apps=t.messages=[],t.user=null,localStorage.removeItem("signToken"),t.signToken=null},setStatus:function(t,e){var r=e.status,n=e.message;t.status=r,t.message=n},setLoading:function(t,e){t.loading=e},setCommitting:function(t,e){t.committing=e},setHistorys:function(t,e){var r=t.historys.findIndex((function(t){return t.key===e.key}));-1!==r?t.historys[r]=e:t.historys.push(e)},removeHistorys:function(t,e){var r=t.historys.findIndex((function(t){return t.key===e}));return-1!==r&&t.historys.splice(r,1),r}},actions:{loadResources:function(t){return iw(nw().mark((function e(){var r,n,o,i,a,s,c;return nw().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,n=t.dispatch,r("setLoading",!0),e.prev=2,e.next=5,E.get("/api");case 5:o=e.sent,i=o.data,a=i.resources,s=i.user,c=i.app,r("setResources",a),r("setApp",c),r("setUser",s),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](2),n("handleError",e.t0);case 18:return e.prev=18,r("setLoading",!1),e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[2,15,18,21]])})))()},loadMessages:function(t){return iw(nw().mark((function e(){var r,n,o;return nw().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,e.prev=1,e.next=4,E.get("/api/sys-msg?status=unread");case 4:n=e.sent,o=n.data.collection,r("setMessages",o),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](1);case 11:case"end":return e.stop()}}),e,null,[[1,9]])})))()},readMessages:function(t,e){return iw(nw().mark((function r(){var n;return nw().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,r.next=3,E.post("/api/sys-msg/read",e);case 3:n("readMessages",e);case 4:case"end":return r.stop()}}),r)})))()},emptyMessages:function(t,e){return iw(nw().mark((function r(){var n;return nw().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,r.next=3,E.post("/api/sys-msg/reads",e);case 3:n("readMessages",e);case 4:case"end":return r.stop()}}),r)})))()},signin:function(t){var e=arguments;return iw(nw().mark((function r(){var n,o,i,a,s,c,l,u;return nw().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},n("setCommitting",!0),r.prev=3,r.next=6,E.post("/api/signin",i.data,{});case 6:return a=r.sent,s=a.data,c=s.data,l=s.content,u=a.status,n("clear"),n("setStatus",{status:u,message:l}),r.abrupt("return",c);case 16:r.prev=16,r.t0=r["catch"](3),o("handleError",r.t0);case 19:return r.prev=19,n("setCommitting",!1),r.finish(19);case 22:case"end":return r.stop()}}),r,null,[[3,16,19,22]])})))()},getSms:function(t){var e=arguments;return iw(nw().mark((function r(){var n,o,i,a,s,c,l,u;return nw().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},n("setCommitting",!0),r.prev=3,r.next=6,E.post("/api/sms",i.data,{});case 6:return a=r.sent,s=a.data,c=s.data,l=s.content,u=a.status,n("clear"),n("setStatus",{status:u,message:l}),r.abrupt("return",c);case 16:r.prev=16,r.t0=r["catch"](3),o("handleError",r.t0);case 19:return r.prev=19,n("setCommitting",!1),r.finish(19);case 22:case"end":return r.stop()}}),r,null,[[3,16,19,22]])})))()},signout:function(t,e){return iw(nw().mark((function e(){var r,n,o,i,a,s,c;return nw().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,n=t.dispatch,r("setCommitting",!0),e.prev=2,e.next=5,E.post("/api/signout");case 5:return o=e.sent,i=o.data,a=i.data,s=i.content,c=o.status,r("clear"),r("setStatus",{status:c,message:s}),e.abrupt("return",a);case 15:e.prev=15,e.t0=e["catch"](2),n("handleError",e.t0);case 18:return e.prev=18,r("setCommitting",!1),e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[2,15,18,21]])})))()},changePassword:function(t){var e=arguments;return iw(nw().mark((function r(){var n,o,i,a,s,c,l,u;return nw().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},n("setCommitting",!0),r.prev=3,r.next=6,E.post("/api/change-password",i.data,{});case 6:return a=r.sent,s=a.data,c=s.data,l=s.content,u=a.status,n("clear"),n("setStatus",{status:u,message:l}),r.abrupt("return",c);case 16:r.prev=16,r.t0=r["catch"](3),o("handleError",r.t0);case 19:return r.prev=19,n("setCommitting",!1),r.finish(19);case 22:case"end":return r.stop()}}),r,null,[[3,16,19,22]])})))()},handleError:function(t,e){var r=t.commit;if(!e.response)return r("setStatus",{status:0,message:"网络请求错误,请检查您的网络连接。"});var n=e.response,o=n.status,i=n.data,a=i&&i.content||"系统错误请与管理员联系。";return r("setStatus",{status:o,message:a}),e}},getters:{token:function(){},resources:function(){},app:function(t){return t.app},user:function(t){return t.user},config:function(t){return function(e){return t.config.find((function(t){return t.key===e}))}}}})}dw&&"${app.csrfToken}"!==dw&&(yw["x-csrf-token"]=dw);var gw=r("6389"),bw=r.n(gw);L.a.use(bw.a);var ww=new bw.a,_w=function(){var t=this,e=t._self._c;return e("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.copyText,expression:"copyText",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:t.onError,expression:"onError",arg:"error"}]},[t._v(" "+t._s(t.text)+" ")])},xw=[],kw={name:"clipboard",props:{text:{type:String,default:"文本内容"},copyText:{type:[String,Number],default:"复制文本内容"}},methods:{onCopy:function(t){this.$message.success("复制成功")},onError:function(t){this.$message.error("复制失败")}}},Ow=kw,Ew=qr(Ow,_w,xw,!1,null,null,null),Sw=Ew.exports,jw=function(){var t=this,e=t._self._c;return e(t.component,{tag:"component"},[t._t("default",null,{collection:t.dataSource,model:t.model,schema:t.schema,schemas:t.schemas,count:t.count}),t._t("empty"),t._t("error")],2)},Nw=[];function Lw(t){return Lw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lw(t)}function Pw(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Pw=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Lw(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Lw(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Cw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Aw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Cw(Object(r),!0).forEach((function(e){Dw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Tw(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Rw(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Tw(i,n,o,a,s,"next",t)}function s(t){Tw(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Dw(t,e,r){return e=Iw(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Iw(t){var e=Mw(t,"string");return"symbol"==Lw(e)?e:String(e)}function Mw(t,e){if("object"!=Lw(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Lw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function qw(t,e){return Hw(t)||Vw(t,e)||Fw(t,e)||Bw()}function Bw(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Fw(t,e){if(t){if("string"===typeof t)return $w(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$w(t,e):void 0}}function $w(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Vw(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}function Hw(t){if(Array.isArray(t))return t}var Uw={props:{name:{type:String},component:{type:[String,Object],default:"div"},query:{type:Object},filter:{type:Object},transform:{type:Function},limit:{type:Number},page:{type:Number},schemaMode:{type:[Boolean,String],default:!1},dataset:{type:Boolean,default:!1}},data:function(){return{collection:[],model:{},schema:null,count:0,status:0,loading:!1}},computed:{dataSource:function(){var t=this.collection,e=this.filter,r=e?t.filter((function(t){return Object.keys(e).every((function(r){var n=e[r];return n&&!Array.isArray(n)&&(n=[n]),null===n||n.includes(t[r])}))})):t;return this.transform?r.map(this.transform):r},schemas:function(){var t=this.schema?this.schema.model.attrs.filter((function(t){return t.list||"wordbook"===t.dataType&&t.typeObject})):[],e=t.map((function(t){return t.list?[t.name,t.list.split(",").map((function(t){var e=t.split(":"),r=qw(e,2),n=r[0],o=r[1];return o?Dw({},n,o):n}))]:[t.name,t.typeObject.data&&t.typeObject.data.collection||[]]}));return Object.fromEntries(e)}},methods:{load:function(){var t=this;return Rw(Pw().mark((function e(){var r,n,o,i,a,s,c,l,u,f,h,d,p,v,y;return Pw().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.name,n=t.query,o=t.limit,i=void 0===o?0:o,a=t.page,s=t.dataset,t.collection=[],t.model={},t.count=0,t.status=0,t.loading=!0,c=s?"dataset":"api",e.prev=7,e.next=10,t.$api.get("/".concat(c,"/").concat(r,"?").concat(j.a.stringify(Aw(Aw({},n),{},{_size:i,$limit:a}))));case 10:l=e.sent,u=l.data,f=u.collection,h=u.count,d=u.model,p=u.data,v=l.status,t.collection=f||p,t.model=d,t.count=h,t.status=v,e.next=27;break;case 23:return e.prev=23,e.t0=e["catch"](7),e.t0.response?(y=e.t0.response.status,t.status=y):t.status=-1,e.abrupt("return",e.t0);case 27:return e.prev=27,t.loading=!1,e.finish(27);case 30:case"end":return e.stop()}}),e,null,[[7,23,27,30]])})))()},loadSchema:function(){var t=this;return Rw(Pw().mark((function e(){var r,n,o,i;return Pw().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.name,e.prev=1,e.next=4,t.$api.get("/schemas/".concat(r));case 4:n=e.sent,o=n.data,t.schema=o,e.next=13;break;case 9:return e.prev=9,e.t0=e["catch"](1),e.t0.response?(i=e.t0.response.status,t.status=i):t.status=-1,e.abrupt("return",e.t0);case 13:return e.prev=13,t.loading=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[1,9,13,16]])})))()}},created:function(){var t=this;return Rw(Pw().mark((function e(){return Pw().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("await"!==t.schemaMode){e.next=6;break}return e.next=3,t.loadSchema();case 3:t.load(),e.next=7;break;case 6:"async"===t.schemaMode?(t.loadSchema(),t.load()):t.schemaMode?t.loadSchema():t.load();case 7:case"end":return e.stop()}}),e)})))()},watch:{name:function(t){this.load()},page:function(){this.load()}}},Gw=Uw,zw=qr(Gw,jw,Nw,!1,null,null,null),Kw=zw.exports,Yw=r("0934"),Ww=r.n(Yw);function Zw(t){var e=Ww.a.enc.Utf8.parse(t),r="1234123412ABCDEF",n="ABCDEF1234123412",o=Ww.a.enc.Utf8.parse(r),i=Ww.a.enc.Utf8.parse(n),a=Ww.a.AES.encrypt(e,o,{iv:i,mode:Ww.a.mode.CBC,padding:Ww.a.pad.Pkcs7}),s=a.ciphertext.toString();return s}r("517c"),r("aa23")},"1f44":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("f97e"),r("a638"),r("57eb"),r("023d"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.StreamCipher,o=e.algo,i=[],a=[],s=[],c=o.Rabbit=n.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],o=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(r=0;r<4;r++)l.call(this);for(r=0;r<8;r++)o[r]^=n[r+4&7];if(e){var i=e.words,a=i[0],s=i[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=c>>>16|4294901760&u,h=u<<16|65535&c;o[0]^=c,o[1]^=f,o[2]^=u,o[3]^=h,o[4]^=c,o[5]^=f,o[6]^=u,o[7]^=h;for(r=0;r<4;r++)l.call(this)}},_doProcessBlock:function(t,e){var r=this._X;l.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),t[e+n]^=i[n]},blockSize:4,ivSize:2});function l(){for(var t=this._X,e=this._C,r=0;r<8;r++)a[r]=e[r];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0;for(r=0;r<8;r++){var n=t[r]+e[r],o=65535&n,i=n>>>16,c=((o*o>>>17)+o*i>>>15)+i*i,l=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=c^l}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=n._createHelper(c)}(),t.Rabbit}))},"1f51":function(t,e,r){},2206:function(t,e,r){},"22ae":function(t,e,r){},2364:function(e,r){e.exports=t},2387:function(t,e,r){"use strict";r("f39c")},"23a7":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){return t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function r(t,e,r,n){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,n.encryptBlock(o,0);for(var a=0;a<r;a++)t[e+a]^=o[a]}return e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,o=n.blockSize;r.call(this,t,e,o,n),this._prevBlock=t.slice(e,e+o)}}),e.Decryptor=e.extend({processBlock:function(t,e){var n=this._cipher,o=n.blockSize,i=t.slice(e,e+o);r.call(this,t,e,o,n),this._prevBlock=i}}),e}(),t.mode.CFB}))},"289a":function(t,r){t.exports=e},"2a55":function(t,e,r){"use strict";e.byteLength=u,e.toByteArray=h,e.fromByteArray=v;for(var n=[],o=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)n[s]=a[s],o[a.charCodeAt(s)]=s;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function u(t){var e=l(t),r=e[0],n=e[1];return 3*(r+n)/4-n}function f(t,e,r){return 3*(e+r)/4-r}function h(t){var e,r,n=l(t),a=n[0],s=n[1],c=new i(f(t,a,s)),u=0,h=s>0?a-4:a;for(r=0;r<h;r+=4)e=o[t.charCodeAt(r)]<<18|o[t.charCodeAt(r+1)]<<12|o[t.charCodeAt(r+2)]<<6|o[t.charCodeAt(r+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;return 2===s&&(e=o[t.charCodeAt(r)]<<2|o[t.charCodeAt(r+1)]>>4,c[u++]=255&e),1===s&&(e=o[t.charCodeAt(r)]<<10|o[t.charCodeAt(r+1)]<<4|o[t.charCodeAt(r+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e),c}function d(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function p(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),o.push(d(n));return o.join("")}function v(t){for(var e,r=t.length,o=r%3,i=[],a=16383,s=0,c=r-o;s<c;s+=a)i.push(p(t,s,s+a>c?c:s+a));return 1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},"2b1b":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("f97e"),r("a638"),r("57eb"),r("023d"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.BlockCipher,o=e.algo;const i=16,a=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var c={pbox:[],sbox:[]};function l(t,e){let r=e>>24&255,n=e>>16&255,o=e>>8&255,i=255&e,a=t.sbox[0][r]+t.sbox[1][n];return a^=t.sbox[2][o],a+=t.sbox[3][i],a}function u(t,e,r){let n,o=e,a=r;for(let s=0;s<i;++s)o^=t.pbox[s],a=l(t,o)^a,n=o,o=a,a=n;return n=o,o=a,a=n,a^=t.pbox[i],o^=t.pbox[i+1],{left:o,right:a}}function f(t,e,r){let n,o=e,a=r;for(let s=i+1;s>1;--s)o^=t.pbox[s],a=l(t,o)^a,n=o,o=a,a=n;return n=o,o=a,a=n,a^=t.pbox[1],o^=t.pbox[0],{left:o,right:a}}function h(t,e,r){for(let i=0;i<4;i++){t.sbox[i]=[];for(let e=0;e<256;e++)t.sbox[i][e]=s[i][e]}let n=0;for(let s=0;s<i+2;s++)t.pbox[s]=a[s]^e[n],n++,n>=r&&(n=0);let o=0,c=0,l=0;for(let a=0;a<i+2;a+=2)l=u(t,o,c),o=l.left,c=l.right,t.pbox[a]=o,t.pbox[a+1]=c;for(let i=0;i<4;i++)for(let e=0;e<256;e+=2)l=u(t,o,c),o=l.left,c=l.right,t.sbox[i][e]=o,t.sbox[i][e+1]=c;return!0}var d=o.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4;h(c,e,r)}},encryptBlock:function(t,e){var r=u(c,t[e],t[e+1]);t[e]=r.left,t[e+1]=r.right},decryptBlock:function(t,e){var r=f(c,t[e],t[e+1]);t[e]=r.left,t[e+1]=r.right},blockSize:2,keySize:4,ivSize:2});e.Blowfish=n._createHelper(d)}(),t.Blowfish}))},"2b25":function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.WordArray,o=r.Hasher,i=e.algo,a=[],s=i.SHA1=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],s=r[3],c=r[4],l=0;l<80;l++){if(l<16)a[l]=0|t[e+l];else{var u=a[l-3]^a[l-8]^a[l-14]^a[l-16];a[l]=u<<1|u>>>31}var f=(n<<5|n>>>27)+c+a[l];f+=l<20?1518500249+(o&i|~o&s):l<40?1859775393+(o^i^s):l<60?(o&i|o&s|i&s)-1894007588:(o^i^s)-899497514,c=s,s=i,i=o<<30|o>>>2,o=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+s|0,r[4]=r[4]+c|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),e[15+(n+64>>>9<<4)]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=o._createHelper(s),e.HmacSHA1=o._createHmacHelper(s)}(),t.SHA1}))},"2b76":function(t,e,r){},"2e09":function(t,e,r){},"2f4d":function(t,e,r){"use strict";r("3cd6")},"336c":function(t,e){t.exports=r},3593:function(t,e){},"37eb":function(t,e,r){!function(e,n){t.exports=n(r("788a"))}(0,(function(t){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=2)}([function(e,r){e.exports=t},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(4),o=r.n(n),i=r(6),a=r(5),s=a(o.a,i.a,!1,null,null,null);e.default=s.exports},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.install=e.quillEditor=e.Quill=void 0;var o=r(0),i=n(o),a=r(1),s=n(a),c=window.Quill||i.default,l=function(t,e){e&&(s.default.props.globalOptions.default=function(){return e}),t.component(s.default.name,s.default)},u={Quill:c,quillEditor:s.default,install:l};e.default=u,e.Quill=c,e.quillEditor=s.default,e.install=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert text here ...",readOnly:!1}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=r(0),i=n(o),a=r(3),s=n(a),c=window.Quill||i.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),n=1;n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r},writable:!0,configurable:!0}),e.default={name:"quill-editor",data:function(){return{_options:{},_content:"",defaultOptions:s.default}},props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},mounted:function(){this.initialize()},beforeDestroy:function(){this.quill=null,delete this.quill},methods:{initialize:function(){var t=this;this.$el&&(this._options=Object.assign({},this.defaultOptions,this.globalOptions,this.options),this.quill=new c(this.$refs.editor,this._options),this.quill.enable(!1),(this.value||this.content)&&this.quill.pasteHTML(this.value||this.content),this.disabled||this.quill.enable(!0),this.quill.on("selection-change",(function(e){e?t.$emit("focus",t.quill):t.$emit("blur",t.quill)})),this.quill.on("text-change",(function(e,r,n){var o=t.$refs.editor.children[0].innerHTML,i=t.quill,a=t.quill.getText();"<p><br></p>"===o&&(o=""),t._content=o,t.$emit("input",t._content),t.$emit("change",{html:o,text:a,quill:i})})),this.$emit("ready",this.quill))}},watch:{content:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},value:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},disabled:function(t,e){this.quill&&this.quill.enable(!t)}}}},function(t,e){t.exports=function(t,e,r,n,o,i){var a,s=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(a=t,s=t.default);var l,u="function"==typeof s?s.options:s;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId=o),i?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=l):n&&(l=n),l){var f=u.functional,h=f?u.render:u.beforeCreate;f?(u._injectStyles=l,u.render=function(t,e){return l.call(e),h(t,e)}):u.beforeCreate=h?[].concat(h,l):[l]}return{esModule:a,exports:s,options:u}}},function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"quill-editor"},[t._t("toolbar"),t._v(" "),r("div",{ref:"editor"})],2)},o=[],i={render:n,staticRenderFns:o};e.a=i}])}))},3815:function(t,e,r){},"3cd6":function(t,e,r){},"41ea":function(t,e,r){"use strict";r("a3d2")},4927:function(t,e,r){"use strict";r("3815")},"49fc":function(t,e,r){},"4af3":function(t,e,r){},"4c29":function(t,e,r){"use strict";r("0d6e")},"4dd1":function(t,e,r){"use strict";r("cb5c")},"4dd6":function(t,e,r){"use strict";r("4eb0")},"4eb0":function(t,e,r){},"517c":function(t,e,r){},"521b":function(t,e,r){},5288:function(t,e,r){},5596:function(t,e,r){"use strict";r("7826")},"55ab":function(t,e,r){},"57eb":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("2b25"),r("fb70"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.Base,o=r.WordArray,i=e.algo,a=i.MD5,s=i.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var r,n=this.cfg,i=n.hasher.create(),a=o.create(),s=a.words,c=n.keySize,l=n.iterations;while(s.length<c){r&&i.update(r),r=i.update(t).finalize(e),i.reset();for(var u=1;u<l;u++)r=i.finalize(r),i.reset();a.concat(r)}return a.sigBytes=4*c,a}});e.EvpKDF=function(t,e,r){return s.create(r).compute(t,e)}}(),t.EvpKDF}))},5880:function(t,e){t.exports=n},"5aeb":function(t,e){t.exports=o},"5c90":function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){return function(e){var r=t,n=r.lib,o=n.Base,i=n.WordArray,a=r.x64={};a.Word=o.extend({init:function(t,e){this.high=t,this.low=e}}),a.WordArray=o.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=r!=e?r:8*t.length},toX32:function(){for(var t=this.words,e=t.length,r=[],n=0;n<e;n++){var o=t[n];r.push(o.high),r.push(o.low)}return i.create(r,this.sigBytes)},clone:function(){for(var t=o.clone.call(this),e=t.words=this.words.slice(0),r=e.length,n=0;n<r;n++)e[n]=e[n].clone();return t}})}(),t}))},6029:function(t,e,r){},6389:function(t,e){t.exports=i},"67ae":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("5c90"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.Hasher,o=e.x64,i=o.Word,a=o.WordArray,s=e.algo;function c(){return i.create.apply(i,arguments)}var l=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],u=[];(function(){for(var t=0;t<80;t++)u[t]=c()})();var f=s.SHA512=n.extend({_doReset:function(){this._hash=new a.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],s=r[4],c=r[5],f=r[6],h=r[7],d=n.high,p=n.low,v=o.high,y=o.low,m=i.high,g=i.low,b=a.high,w=a.low,_=s.high,x=s.low,k=c.high,O=c.low,E=f.high,S=f.low,j=h.high,N=h.low,L=d,P=p,C=v,A=y,T=m,R=g,D=b,I=w,M=_,q=x,B=k,F=O,$=E,V=S,H=j,U=N,G=0;G<80;G++){var z,K,Y=u[G];if(G<16)K=Y.high=0|t[e+2*G],z=Y.low=0|t[e+2*G+1];else{var W=u[G-15],Z=W.high,J=W.low,X=(Z>>>1|J<<31)^(Z>>>8|J<<24)^Z>>>7,Q=(J>>>1|Z<<31)^(J>>>8|Z<<24)^(J>>>7|Z<<25),tt=u[G-2],et=tt.high,rt=tt.low,nt=(et>>>19|rt<<13)^(et<<3|rt>>>29)^et>>>6,ot=(rt>>>19|et<<13)^(rt<<3|et>>>29)^(rt>>>6|et<<26),it=u[G-7],at=it.high,st=it.low,ct=u[G-16],lt=ct.high,ut=ct.low;z=Q+st,K=X+at+(z>>>0<Q>>>0?1:0),z+=ot,K=K+nt+(z>>>0<ot>>>0?1:0),z+=ut,K=K+lt+(z>>>0<ut>>>0?1:0),Y.high=K,Y.low=z}var ft=M&B^~M&$,ht=q&F^~q&V,dt=L&C^L&T^C&T,pt=P&A^P&R^A&R,vt=(L>>>28|P<<4)^(L<<30|P>>>2)^(L<<25|P>>>7),yt=(P>>>28|L<<4)^(P<<30|L>>>2)^(P<<25|L>>>7),mt=(M>>>14|q<<18)^(M>>>18|q<<14)^(M<<23|q>>>9),gt=(q>>>14|M<<18)^(q>>>18|M<<14)^(q<<23|M>>>9),bt=l[G],wt=bt.high,_t=bt.low,xt=U+gt,kt=H+mt+(xt>>>0<U>>>0?1:0),Ot=(xt=xt+ht,kt=kt+ft+(xt>>>0<ht>>>0?1:0),xt=xt+_t,kt=kt+wt+(xt>>>0<_t>>>0?1:0),xt=xt+z,kt=kt+K+(xt>>>0<z>>>0?1:0),yt+pt),Et=vt+dt+(Ot>>>0<yt>>>0?1:0);H=$,U=V,$=B,V=F,B=M,F=q,q=I+xt|0,M=D+kt+(q>>>0<I>>>0?1:0)|0,D=T,I=R,T=C,R=A,C=L,A=P,P=xt+Ot|0,L=kt+Et+(P>>>0<xt>>>0?1:0)|0}p=n.low=p+P,n.high=d+L+(p>>>0<P>>>0?1:0),y=o.low=y+A,o.high=v+C+(y>>>0<A>>>0?1:0),g=i.low=g+R,i.high=m+T+(g>>>0<R>>>0?1:0),w=a.low=w+I,a.high=b+D+(w>>>0<I>>>0?1:0),x=s.low=x+q,s.high=_+M+(x>>>0<q>>>0?1:0),O=c.low=O+F,c.high=k+B+(O>>>0<F>>>0?1:0),S=f.low=S+V,f.high=E+$+(S>>>0<V>>>0?1:0),N=h.low=N+U,h.high=j+H+(N>>>0<U>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),e[31+(n+128>>>10<<5)]=r,t.sigBytes=4*e.length,this._process();var o=this._hash.toX32();return o},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=n._createHelper(f),e.HmacSHA512=n._createHmacHelper(f)}(),t.SHA512}))},"690b":function(t,e,r){},"6d57":function(t,e,r){"use strict";r("4af3")},7144:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("f97e"),r("a638"),r("57eb"),r("023d"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.BlockCipher,o=e.algo,i=[],a=[],s=[],c=[],l=[],u=[],f=[],h=[],d=[],p=[];(function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,n=0;for(e=0;e<256;e++){var o=n^n<<1^n<<2^n<<3^n<<4;o=o>>>8^255&o^99,i[r]=o,a[o]=r;var v=t[r],y=t[v],m=t[y],g=257*t[o]^16843008*o;s[r]=g<<24|g>>>8,c[r]=g<<16|g>>>16,l[r]=g<<8|g>>>24,u[r]=g;g=16843009*m^65537*y^257*v^16843008*r;f[o]=g<<24|g>>>8,h[o]=g<<16|g>>>16,d[o]=g<<8|g>>>24,p[o]=g,r?(r=v^t[t[t[m^v]]],n^=t[t[n]]):r=n=1}})();var v=[0,1,2,4,8,16,32,64,128,27,54],y=o.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,n=this._nRounds=r+6,o=4*(n+1),a=this._keySchedule=[],s=0;s<o;s++)s<r?a[s]=e[s]:(u=a[s-1],s%r?r>6&&s%r==4&&(u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u]):(u=u<<8|u>>>24,u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u],u^=v[s/r|0]<<24),a[s]=a[s-r]^u);for(var c=this._invKeySchedule=[],l=0;l<o;l++){s=o-l;if(l%4)var u=a[s];else u=a[s-4];c[l]=l<4||s<=4?u:f[i[u>>>24]]^h[i[u>>>16&255]]^d[i[u>>>8&255]]^p[i[255&u]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,c,l,u,i)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,f,h,d,p,a);r=t[e+1];t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,o,i,a,s){for(var c=this._nRounds,l=t[e]^r[0],u=t[e+1]^r[1],f=t[e+2]^r[2],h=t[e+3]^r[3],d=4,p=1;p<c;p++){var v=n[l>>>24]^o[u>>>16&255]^i[f>>>8&255]^a[255&h]^r[d++],y=n[u>>>24]^o[f>>>16&255]^i[h>>>8&255]^a[255&l]^r[d++],m=n[f>>>24]^o[h>>>16&255]^i[l>>>8&255]^a[255&u]^r[d++],g=n[h>>>24]^o[l>>>16&255]^i[u>>>8&255]^a[255&f]^r[d++];l=v,u=y,f=m,h=g}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^r[d++],y=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&l])^r[d++],m=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[d++],g=(s[h>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^r[d++];t[e]=v,t[e+1]=y,t[e+2]=m,t[e+3]=g},keySize:8});e.AES=n._createHelper(y)}(),t.AES}))},"71ef":function(t,e,r){},7826:function(t,e,r){},"784f":function(t,e,r){},"788a":function(t,e,r){(function(e){
9
+ e.read=function(t,e,r,n,o){var i,a,s=8*o-n-1,c=(1<<s)-1,l=c>>1,u=-7,f=r?o-1:0,h=r?-1:1,d=t[e+f];for(f+=h,i=d&(1<<-u)-1,d>>=-u,u+=s;u>0;i=256*i+t[e+f],f+=h,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=n;u>0;a=256*a+t[e+f],f+=h,u-=8);if(0===i)i=1-l;else{if(i===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),i-=l}return(d?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,s,c,l=8*i-o-1,u=(1<<l)-1,f=u>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:i-1,p=n?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),e+=a+f>=1?h/c:h*Math.pow(2,1-f),e*c>=2&&(a++,c/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(e*c-1)*Math.pow(2,o),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[r+d]=255&s,d+=p,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;t[r+d]=255&a,d+=p,a/=256,l-=8);t[r+d-p]|=128*v}},"1aba":function(t,e,r){"use strict";if(r.r(e),r.d(e,"App",(function(){return ew})),r.d(e,"createStore",(function(){return mw})),r.d(e,"create",(function(){return Ut})),r.d(e,"template",(function(){return xe})),r.d(e,"WebRouters",(function(){return ww})),r.d(e,"WebViews",(function(){return sb})),r.d(e,"Descriptions",(function(){return es})),r.d(e,"Frame",(function(){return ss})),r.d(e,"Clipboard",(function(){return Sw})),r.d(e,"Collection",(function(){return Kw})),r.d(e,"FormItem",(function(){return Ri})),r.d(e,"FormBase",(function(){return hn})),r.d(e,"encrypt",(function(){return Zw})),"undefined"!==typeof window){var n=window.document.currentScript,o=r("dc36");n=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var a=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.$store.state.loading}},[e("Router",{on:{routed:function(e){t.spinning=!1}}})],1)},s=[],c=function(){var t=this,e=t._self._c;return e("router-view")},l=[],u=r("5880"),f=r.n(u),h=r("cebe"),d=r.n(h);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function v(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */v=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),s=new A(n||[]);return o(a,"_invoke",{value:N(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",y="executing",m="completed",g={};function b(){}function w(){}function _(){}var x={};l(x,a,(function(){return this}));var k=Object.getPrototypeOf,O=k&&k(k(T([])));O&&O!==r&&n.call(O,a)&&(x=O);var E=_.prototype=b.prototype=Object.create(x);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==p(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function N(e,r,n){var o=h;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=L(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?m:d,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function L(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(p(e)+" is not iterable")}return w.prototype=_,o(E,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:w,configurable:!0}),w.displayName=l(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(j.prototype),l(j.prototype,s,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new j(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,c,"Generator"),l(E,a,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach((function(e){g(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function g(t,e,r){return e=b(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b(t){var e=w(t,"string");return"symbol"==p(e)?e:String(e)}function w(t,e){if("object"!=p(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function _(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function x(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){_(i,n,o,a,s,"next",t)}function s(t){_(i,n,o,a,s,"throw",t)}a(void 0)}))}}var k=d.a.create({timeout:6e5,withCredentials:!0}),O={axios:d.a,instance:k,install:function(t){t.prototype.$api=O},setDefaults:function(t){Object.keys(t).forEach((function(e){k.defaults[e]=t[e]}))},request:function(t,e,r,n){return x(v().mark((function o(){var i;return v().wrap((function(o){while(1)switch(o.prev=o.next){case 0:return o.next=2,k.request(m(m({},n),{},{method:t,url:e,data:r}));case 2:return i=o.sent,o.abrupt("return",i);case 4:case"end":return o.stop()}}),o)})))()},get:function(t){var e=arguments;return x(v().mark((function r(){var n,o,i;return v().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.length>1&&void 0!==e[1]?e[1]:null,o=e.length>2&&void 0!==e[2]?e[2]:null,r.next=4,O.request("get",t,o,n);case 4:return i=r.sent,r.abrupt("return",i);case 6:case"end":return r.stop()}}),r)})))()},post:function(t,e){var r=arguments;return x(v().mark((function n(){var o,i;return v().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=r.length>2&&void 0!==r[2]?r[2]:null,n.next=3,O.request("post",t,e,o);case 3:return i=n.sent,n.abrupt("return",i);case 5:case"end":return n.stop()}}),n)})))()},put:function(t,e){var r=arguments;return x(v().mark((function n(){var o,i;return v().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=r.length>2&&void 0!==r[2]?r[2]:null,n.next=3,O.request("put",t,e,o);case 3:return i=n.sent,n.abrupt("return",i);case 5:case"end":return n.stop()}}),n)})))()},delete:function(t,e){var r=arguments;return x(v().mark((function n(){var o,i;return v().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=r.length>2&&void 0!==r[2]?r[2]:null,n.next=3,O.request("delete",t,e,o);case 3:return i=n.sent,n.abrupt("return",i);case 5:case"end":return n.stop()}}),n)})))()}},E=O,S=r("796d"),j=r.n(S),N=r("8bbf"),L=r.n(N);function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function C(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function A(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?C(Object(r),!0).forEach((function(e){T(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function T(t,e,r){return e=R(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function R(t){var e=D(t,"string");return"symbol"==P(e)?e:String(e)}function D(t,e){if("object"!=P(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function I(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */I=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new C(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(A([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==P(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function A(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(P(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=A,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function M(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function q(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){M(i,n,o,a,s,"next",t)}function s(t){M(i,n,o,a,s,"throw",t)}a(void 0)}))}}function B(t,e){return U(t)||H(t,e)||$(t,e)||F()}function F(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $(t,e){if(t){if("string"===typeof t)return V(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?V(t,e):void 0}}function V(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function H(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}function U(t){if(Array.isArray(t))return t}var G=function t(e,r,n){for(var o=0;o<e.length;o++){if(e[o][n]===r)return[e,o];if(e[o]._childList){var i=t(e[o]._childList,r,n);if(i)return i}}return null};function z(t,e,r,n){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,i=e.slice(2),a={namespaced:!0,state:function(){return{namespace:i,data:{rows:[],count:0,size:15},schema:null,wordbooks:{},expired:0,loading:!1,committing:!1,status:0,message:""}},mutations:{setSchema:function(t,e){t.schema=e},setStatus:function(t,e){var r=e.status,n=e.message;t.status=r,t.message=n},setLoading:function(t,e){t.loading=e},setCommitting:function(t,e){t.committing=e},setData:function(t,e){var r=e.rows,n=e.count,o=e.size;t.data.rows=r,t.data.count=n,t.data.size=o},appendData:function(t,e){var r=e.rows||[];t.data.rows=t.data.rows.concat(r)},saveData:function(t,e){var r=e.rows,n=e.idName,o=e.parentIdName;r=Array.isArray(r)?r:[r],r.forEach((function(e){var r=G(t.data.rows,e[n],n);if(r){r[0][r[1]]._childList&&(e._childList=r[0][r[1]]._childList);var i=r,a=B(i,2),s=a[0],c=a[1];o&&e[o]!==s[c][o]?(s.splice(c,1),r=null):L.a.set(s,c,e)}if(!r&&e[n]&&o&&e[o]){var l=G(t.data.rows,e[o],n);if(l){var u=l[0][l[1]];u._childList?u._childList.unshift(e):L.a.set(u,"_childList",[e])}else t.data.rows.unshift(e)}else!r&&e[n]&&t.data.rows.unshift(e)}))},removeData:function(t,e){var r=e.rows,n=e.idName;e.parentIdName;r=Array.isArray(r)?r:[r],r.forEach((function(e){var r=G(t.data.rows,e[n],n);if(r){var o=B(r,2),i=o[0],a=o[1];i.splice(a,1)}}))},setWordbook:function(t,e){var r=e.rows,n=e.key;t.wordbooks[n]?t.wordbooks[n]=r:L.a.set(t.wordbooks,n,r)},replaceNamespace:function(t,e){t.namespace=e.reduce((function(t,e){return t.replace(":id",e)}),i)},createSubViewStore:function(e,n){function o(e,n){e.model.attrs.filter((function(t){return"model"===t.metaType})).map((function(e){var i="".concat(n,"/:id/").concat(e.name);t.hasModule(i)||(z(t,i,r,e.name,!1,e.subView),e.subView&&o(e.subView,i))}))}o(n,"v-".concat(i))}},actions:{loadSchema:function(t,e){return q(I().mark((function e(){var r,n,o,a,s,c,l,u;return I().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,t.state.namespace,r("setLoading",!0),e.prev=2,e.next=5,E.get("/schemas/".concat(i.replace(/\/:id/g,"")));case 5:n=e.sent,o=n.data,a=n.status,r("createSubViewStore",o),r("setSchema",o),r("setStatus",{status:a}),e.next=20;break;case 13:if(e.prev=13,e.t0=e["catch"](2),e.t0.response){e.next=17;break}return e.abrupt("return",r("setStatus",{status:0,message:"网络请求错误,请检查您的网络链接。"}));case 17:s=e.t0.response,c=s.status,l=s.data,u=l&&l.content||"系统错误请与管理员联系。",r("setStatus",{status:c,message:u});case 20:return e.prev=20,r("setLoading",!1),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[2,13,20,23]])})))()},loadData:function(t){var e=arguments;return q(I().mark((function r(){var n,o,i,a,s,c,l,u,f,h,d,p,v,y,m,g,b,w,_,x,k,O,S,N,L,P;return I().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=t.getters,a=t.state.namespace,s=e.length>1&&void 0!==e[1]?e[1]:{},c=s.url,l=void 0===c?a:c,u=s.method,f=void 0===u?"get":u,h=s.data,d=void 0===h?null:h,p=s.key,v=s.query,y=s.options,m=s.mute,g=void 0!==m&&m,!g&&n("setLoading",!0),r.prev=4,r.next=7,E[f]("/api/".concat(l).concat(p?"/".concat(p):"","?").concat(j.a.stringify(v)),d,y);case 7:return b=r.sent,w=b.data,_=w.collection,x=w.model,k=w.count,O=w.pagination,S=b.status,N=i.idName,L=i.parentIdName,P=i.nodeName,x?n("saveData",{rows:x,idName:N,parentIdName:L,nodeName:P}):n("setData",{rows:_||[],count:k,size:O&&O.size}),n("setStatus",{status:S,message:""}),r.abrupt("return",_||x);case 20:return r.prev=20,r.t0=r["catch"](4),r.abrupt("return",o("handleError",{error:r.t0,mute:g}));case 23:return r.prev=23,!g&&n("setLoading",!1),r.finish(23);case 26:case"end":return r.stop()}}),r,null,[[4,20,23,26]])})))()},loadWordBook:function(t){var e=arguments;return q(I().mark((function r(){var n,o,i,a,s,c,l,u,f,h,d,p,v,y,m;return I().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=t.state.namespace,a=e.length>1&&void 0!==e[1]?e[1]:{},s=a.url,c=void 0===s?i:s,l=a.method,u=void 0===l?"get":l,f=a.data,h=void 0===f?null:f,d=a.key,p=a.query,v=a.options,r.prev=3,r.next=6,E[u.toLowerCase()]("/api/".concat(c).concat(d?"/".concat(d):"","?").concat(j.a.stringify(p)),h,v);case 6:return y=r.sent,m=y.data,m.collection&&d&&n("setWordBook",{rows:m.collection,key:d}),r.abrupt("return",m);case 12:return r.prev=12,r.t0=r["catch"](3),r.abrupt("return",o("handleError",{error:r.t0}));case 15:case"end":return r.stop()}}),r,null,[[3,12]])})))()},saveData:function(t){var e=arguments;return q(I().mark((function r(){var n,o,i,a,s,c,l,u,f,h,d,p,v,y,m,g,b,w,_,x,k,O,S,N,L,P,C,A;return I().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=t.getters,a=t.state.namespace,s=e.length>1&&void 0!==e[1]?e[1]:{},c=s.url,l=void 0===c?a:c,u=s.type,f=void 0===u?"save":u,h=s.method,d=void 0===h?"post":h,p=s.data,v=void 0===p?null:p,y=s.key,m=s.query,g=s.options,b=s.mute,w=void 0!==b&&b,n("setCommitting",!0),r.prev=4,r.next=7,E[d.toLowerCase()]("/api/".concat(l).concat(y?"/".concat(y):"","?").concat(j.a.stringify(m)),v,g);case 7:return _=r.sent,x=_.data,k=x.data,O=x.content,S=_.status,N=_.statusText,L=i.idName,P=i.parentIdName,C=i.nodeName,k&&(A="remove"===f?"removeData":"saveData",s.params&&s.params.mode&&"notUpdate"===s.params.mode||n(A,{rows:k.data||k,idName:L,parentIdName:P,nodeName:C})),n("setStatus",{status:S,message:w?"":O||N}),r.abrupt("return",k);case 19:return r.prev=19,r.t0=r["catch"](4),r.abrupt("return",o("handleError",{error:r.t0}));case 22:return r.prev=22,n("setCommitting",!1),r.finish(22);case 25:case"end":return r.stop()}}),r,null,[[4,19,22,25]])})))()},executeData:function(t,e){return q(I().mark((function r(){var n,o,i;return I().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.dispatch,o=e.method,i=void 0===o?"post":o,r.next=4,n("saveData",A({type:"execute",method:i},e));case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()},removeData:function(t,e){return q(I().mark((function r(){var n,o,i;return I().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.dispatch,o=e.method,i=void 0===o?"delete":o,r.next=4,n("saveData",A({type:"remove",method:i},e));case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()},handleError:function(t,e){var r=t.commit,n=e.error,o=e.mute;if(!n.response)return r("setStatus",{status:0,message:!o&&"网络请求错误,请检查您的网络连接。"});var i=n.response,a=i.status,s=i.data,c=o?null:s&&s.content||"系统错误请与管理员联系。";return r("setStatus",{status:a,message:c}),n},resetStatus:function(t){var e=t.commit;e("setStatus",{status:0,message:""})}},getters:{schema:function(t,e,i){return o||(i[r].views.find((function(t){return t.key===n}))||t.schema)},model:function(t,e){return e.schema?e.schema.model:null},idName:function(t,e){return e.model?e.model.idName:null},parentIdName:function(t,e){return e.model?e.model.parentIdName:null},nodeName:function(t,e){return e.model?e.model.nodeName:null},titleName:function(t,e){var r=e.model.attrs.find((function(t){return"title"===t.display}));return r?r.name:null},titleSchema:function(t,e){var r=e.model.attrs.find((function(t){return"title"===t.display}));return r||null},config:function(t,e){return function(t){var r;return e.schema&&e.schema.configs&&(r=e.schema.configs.find((function(e){return e.key===t}))),r?r.value:null}},wordbook:function(t){return function(e){return t.wordbooks[e]||[]}},find:function(t,e){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=t.data;if(!r)return n;"object"!==P(r)&&(r=T({},e.idName,r));var o=Object.keys(r);return n.filter((function(t){return o.every((function(e){return t[e]===r[e]}))}))}},findOne:function(t,e,r){return function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=n||e.idName||"id",i=G(t.data.rows,r,o);return i?i[0][i[1]]:null}},findAll:function(t){var e=t.data.rows;return e},apiURL:function(t,e,r){var n=t.namespace,o=r.baseURL;return"".concat(o,"/api/").concat(n)},apiBaseURL:function(t,e,r){var n=r.baseURL;return n}}};t.registerModule(e,a)}function K(t){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K(t)}function Y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Y=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==K(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(K(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function W(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Z(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){W(i,n,o,a,s,"next",t)}function s(t){W(i,n,o,a,s,"throw",t)}a(void 0)}))}}var J=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n={namespaced:!0,state:function(){return{namespace:e.slice(2),schema:null,views:[],actions:[],configs:[],params:[],rules:[],version:0,loading:!1,status:200,message:"",single:r}},mutations:{setSchema:function(t,e){t.schema=e},setViews:function(t,e){t.views=e},setStatus:function(t,e){var r=e.status,n=e.message;t.status=r,t.message=n},setLoading:function(t,e){t.loading=e},createViewStore:function(n,o){function i(n,o){n.model.attrs.filter((function(t){return"model"===t.metaType})).map((function(n){var a="".concat(o,"/:id/").concat(n.name);t.hasModule(a)||(z(t,a,e,n.name,r,n.subView),n.subView&&i(n.subView,a))}))}o.map((function(n){var o="v-".concat(e.slice(2)).concat(r?"":"-".concat(n.key));t.hasModule(o)||(z(t,o,e,n.key,r),i(n,o))}))},setViewData:function(t,e){}},actions:{loadSchema:function(t,e){return Z(Y().mark((function e(){var n,o,i,a,s,c,l,u,f,h;return Y().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,o=t.state.namespace,n("setLoading",!0),e.prev=2,e.next=5,E.get("/schemas/".concat(o));case 5:i=e.sent,a=i.data,s=i.status,c=i.statusText,n("createViewStore",r?[a]:a.views),n("setViews",r?[a]:a.views),delete a.views,n("setSchema",a),n("setStatus",{status:s,message:a.message||c}),e.next=23;break;case 16:if(e.prev=16,e.t0=e["catch"](2),e.t0.response){e.next=20;break}return e.abrupt("return",n("setStatus",{status:0,message:"网络请求错误,请检查您的网络链接。"}));case 20:l=e.t0.response,u=l.status,f=l.data,h=f&&f.content||"系统错误请与管理员联系。",n("setStatus",{status:u,message:h});case 23:return e.prev=23,n("setLoading",!1),e.finish(23);case 26:case"end":return e.stop()}}),e,null,[[2,16,23,26]])})))()}},getters:{schema:function(t){return t.schema},views:function(t){return t.views},config:function(t){return function(e){return t.configs.find((function(t){return t.key===e}))}}}};t.registerModule(e,n)};function X(t){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},X(t)}function Q(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Q=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==X(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(X(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function tt(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function et(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){tt(i,n,o,a,s,"next",t)}function s(t){tt(i,n,o,a,s,"throw",t)}a(void 0)}))}}function rt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function nt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?rt(Object(r),!0).forEach((function(e){ot(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ot(t,e,r){return e=it(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function it(t){var e=at(t,"string");return"symbol"==X(e)?e:String(e)}function at(t,e){if("object"!=X(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=X(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var st=["loading","schema","status","message","single"],ct=["loadSchema"],lt=["views"],ut=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=Object(u["createNamespacedHelpers"])(t),n=r.mapState,o=r.mapActions,i=r.mapMutations,a=r.mapGetters;return{data:function(){return{storeNamespace:t}},computed:nt(nt({},n(st)),a(lt)),methods:nt(nt({},o(ct)),i(["setStatus"])),beforeCreate:function(){this.$store.hasModule(t)||J(this.$store,t,e)},created:function(){var t=this;return et(Q().mark((function e(){return Q().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.t0=!t.schema,!e.t0){e.next=4;break}return e.next=4,t.loadSchema();case 4:t.status>399&&t.message&&(t.$message.error(t.message),t.setStatus({status:0,message:""}));case 5:case"end":return e.stop()}}),e)})))()},watch:{status:function(t){401===t&&(this.$router.push("/sign-in"),window.location.reload())}}}},ft=function(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{extends:t,mixins:[ut("p-".concat(e),r)]}}},ht=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.loading,delay:50}},[e("layout-page-".concat(t.layout),{tag:"component",scopedSlots:t._u([t._l(t.slots,(function(r){return{key:r,fn:function(){return[e("views",{key:"slot-".concat(r),attrs:{views:t.slotViews(r),modelViewType:t.modelViewType}})]},proxy:!0}}))],null,!0)})],1)},dt=[];function pt(t){return gt(t)||mt(t)||yt(t)||vt()}function vt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function yt(t,e){if(t){if("string"===typeof t)return bt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bt(t,e):void 0}}function mt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function gt(t){if(Array.isArray(t))return bt(t)}function bt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var wt={props:{pageKey:{type:String,required:!0},layout:{type:String,default:"base"},modelViewType:{type:String}},provide:function(){return{page:this,view:null}},computed:{slots:function(){var t=["default","header","footer","sider","left","right"],e=this.$theme.layouts.page["".concat(this.layout.replace(/^\S/,(function(t){return t.toUpperCase()})),"Layout")].slots;return e&&Array.from(new Set([].concat(pt(e),t)))||[]}},methods:{slotViews:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return this.views.filter((function(e){return e.slot===t||"default"===t&&!e.slot}))}},activated:function(){},deactivated:function(){}},_t=function(){var t=this,e=t._self._c;return e("a-row",t._l(t.views,(function(r){return e("a-col",{key:r.key,attrs:{span:r.span||24}},[e("layout-view-".concat(r.layout||t.viewLayout),{tag:"component",attrs:{view:r}},[e("ViewBox",t._b({attrs:{view:r}},"ViewBox",t.$attrs,!1))],1)],1)})),1)},xt=[],kt=function(){var t=this,e=t._self._c;return e("keep-alive",[e(t.createView(),t._b({tag:"component",attrs:{pageKey:t.page.pageKey,viewKey:t.view.key,mode:"page",layout:"layout-view-model-list"}},"component",t.view,!1))],1)},Ot=[];function Et(t){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(t)}function St(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */St=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Et(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Et(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function jt(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Nt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){jt(i,n,o,a,s,"next",t)}function s(t){jt(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Lt(t){return Tt(t)||At(t)||Ct(t)||Pt()}function Pt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ct(t,e){if(t){if("string"===typeof t)return Rt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Rt(t,e):void 0}}function At(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Tt(t){if(Array.isArray(t))return Rt(t)}function Rt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Dt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function It(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Dt(Object(r),!0).forEach((function(e){Mt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Dt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Mt(t,e,r){return e=qt(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qt(t){var e=Bt(t,"string");return"symbol"==Et(e)?e:String(e)}function Bt(t,e){if("object"!=Et(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ft=["loading","committing","data","status","message"],$t=["loadSchema","loadData","saveData","executeData","removeData","resetStatus"],Vt=["schema","model","idName","nodeName","parentIdName","titleSchema","titleName","findAll","find","findOne","config","apiURL","apiBaseURL"],Ht=function(t){var e=Object(u["createNamespacedHelpers"])(t),r=e.mapState,n=e.mapActions,o=e.mapGetters,i=e.mapMutations;return{data:function(){return{storeNamespace:t}},computed:It(It(It({},r(Ft)),o(Vt)),{},{configs:function(){var t=this.schema,e=t.configs,r=void 0===e?[]:e,n=t.resConfigs,o=void 0===n?[]:n,i=[].concat(Lt(r),Lt(o));return Object.fromEntries(i.map((function(t){var e=t.value;try{"JSON"===t.type&&(e=JSON.parse(t.value))}catch(r){}return[t.key,e]})))},defaults:function(){var t=this.schema,e=t.params,r=void 0===e?[]:e,n=t.resParams,o=void 0===n?[]:n,i=[].concat(Lt(r),Lt(o));return Object.fromEntries(i.map((function(t){var e=t.value;try{"JSON"===t.type&&(e=JSON.parse(t.value))}catch(r){}return[t.key,e]})))}}),methods:It(It({},i(["replaceNamespace"])),n($t)),created:function(){var t=this;return Nt(St().mark((function e(){return St().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.parentIds&&t.replaceNamespace(t.parentIds),t.delay||t.id||t.schema&&t.load();case 2:case"end":return e.stop()}}),e)})))()},watch:{status:function(t){401===t&&(this.$router.push("/sign-in"),window.location.reload())}}}},Ut=function(t){return function(e){return{extends:t,mixins:[Ht("".concat(e))]}}},Gt=function(){var t=this,e=t._self._c;return e("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:!t.schema||t.actioning}},[t.schema?e("div",[t.actionViewVisible&&"block"===t.actionViewMode?t._e():e(t.layout,{tag:"component",scopedSlots:t._u([t.configs["list.header"]?{key:"header",fn:function(){return[e(t.configs["list.header"],{tag:"component"})]},proxy:!0}:null,t.configs["list.footer"]?{key:"footer",fn:function(){return[e(t.configs["list.footer"],{tag:"component"})]},proxy:!0}:null,t.configs["list.sider"]?{key:"sider",fn:function(){return[e(t.configs["list.sider"],{tag:"component"})]},proxy:!0}:null,{key:"pagination",fn:function(){return[t.data.size?e("PaginationSize",{attrs:{total:t.data.count,current:Number(t.query.$limit),pageSize:Number(t.query._size),"show-total":function(e,r){return e?"当前页面 ".concat(r[0],"-").concat(r[1]," 项,选定 ").concat(t.selections.length," 项,共 ").concat(e," 项"):null},pageSizeOptions:["15","30","50","100"],"show-size-changer":""},on:{change:t.handlePaginationPageChange,showSizeChange:t.handleShowSizeChange}}):t._e()]},proxy:!0},t.actions.length?{key:"actions-none",fn:function(){return[e("ActionGroup",{attrs:{actions:t.actions},on:{action:t.handleAction}})]},proxy:!0}:null,{key:"actions-setting",fn:function(){return[e("ActionGroup",{attrs:{actions:t.settingActions},on:{action:t.handleAction}})]},proxy:!0},t.filters.length?{key:"filters",fn:function(){return[e("FilterForm",{attrs:{columns:t.filters,params:{$parent:t.params.$parent}},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}})]},proxy:!0}:null,t.treeFilters.length?{key:"tree-filters",fn:function(){return[e("FilterForm",{attrs:{columns:t.treeFilters,params:{$parent:t.params.$parent},layout:"vertical"},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}})]},proxy:!0}:null],null,!0)},[e("list-".concat(t.configs["list.widget"]||"table"),{tag:"component",attrs:{rowKey:t.idName,loading:t.loading,rowSelection:t.rowSelection,columns:t.columns,dataSource:t.dataSource,item:t.configs["list.item"],childrenColumnName:"_childList",rowClassName:t.listSeparateColor,scroll:{x:Number(t.configs["list.scrollX"])||null,y:Number(t.configs["list.scrollY"])||null}},on:{profile:function(e){return t.handleModelProfile(e)},"row-action":t.handleRowAction}})],1),t.actionViewVisible?e("Popup",{class:{"ant-modal-tip":t.actionParams.actionViewTip},attrs:{visible:t.actionViewVisible,title:t.action.name,type:t.actionViewMode,okButtonProps:t.actionOkButtonProps,cancelButtonProps:t.actionCancelButtonProps,width:t.configs["profile.popup.width"],footer:"hide"===t.actionParams.footer?null:void 0},on:{ok:t.submitActionView,close:t.closeActionView,cancel:t.closeActionView}},[t.actionViewVisible?e("ActionView",{attrs:{action:t.action,submited:t.actionSubmited,values:t.actionModel,modelViewType:t.actionViewType,widget:t.actionViewWidget,parentIds:t.parentIds,params:t.actionParams,commitResult:t.actionCommitResult,selections:t.selections,schema:t.schema},on:{commit:t.commitActionView,profile:t.handleModelProfile,close:t.closeActionView}}):t._e(),t.action.params&&t.action.params.autofill?e("a-row",{attrs:{slot:"footer",type:"flex",justify:"space-between",align:"middle"},slot:"footer"},[e("a-col",[e("a-checkbox",{on:{change:t.handleAutoFill}},[t._v(" 自动填充表单 ")])],1),e("a-col",[e("a-space",[e("a-button",{attrs:{icon:"close",disabled:t.committing},on:{click:t.closeActionView}},[t._v(" 取消 ")]),e("a-button",{attrs:{type:"primary",icon:"check",loading:t.committing},on:{click:t.submitActionView}},[t._v(" 确认 ")])],1)],1)],1):t._e()],1):t._e()],1):t._e()])},zt=[],Kt={props:{pageKey:{type:String,required:!0},viewKey:{type:String,required:!0},type:{type:String,enum:["model-list","model-profile","model-form","model-sheet","report","nav","com","container","post-list","post-profile","post-form"]},widget:{type:[String,Object],enum:["list-normal","list-table","list-grid","list-menu","list-sheet","list-calendar","list-map","list-kanban","profile-tile","profile-group","form-normal","form-filter","form-setting","form-wizard","form-editor","report-chart","report-crosstab","report-com","report-map","report-canvas","nav-menu","nav-link","nav-flow"]},mode:{type:String,enum:["page","embed","picker","widget"]},title:String,subtitle:String,icon:String,description:String,params:{type:[Object,Array],default:function(){return{}}},options:Object,nestedLevel:{type:Number,default:0},delay:{type:Boolean,default:!1},defaultSelections:{type:[String],default:null}},inject:["page","view"],provide:function(){return{view:this}},activated:function(){},deactivated:function(){}},Yt={props:{modelId:{type:String},parentIds:Array,parentModel:Object},provide:function(){return{model:this.model}},data:function(){return{}},computed:{hide:function(){var t=this.configs.hide;return t?Array.isArray(t)?t:t.split(","):[]}},methods:{}};function Wt(t){return Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wt(t)}function Zt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Zt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Wt(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Wt(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Jt(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Xt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Jt(i,n,o,a,s,"next",t)}function s(t){Jt(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Qt(t){return ne(t)||re(t)||ee(t)||te()}function te(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ee(t,e){if(t){if("string"===typeof t)return oe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oe(t,e):void 0}}function re(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ne(t){if(Array.isArray(t))return oe(t)}function oe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ie(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ae(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ie(Object(r),!0).forEach((function(e){se(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function se(t,e,r){return e=ce(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ce(t){var e=le(t,"string");return"symbol"==Wt(e)?e:String(e)}function le(t,e){if("object"!=Wt(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Wt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ue={props:{profileMode:{type:String,default:"page",enum:["page","embed","column","collapse","preview"]},layout:{type:String,default:"layout-view-model-list"}},data:function(){return{query:{},schemaFuncQueue:[],unwatchQuery:null,autoRefreshTimer:null}},computed:{columns:function(){var t=this,e=this.$createElement,r=this.idName,n=this.hide,o=this.model.attrs.filter((function(t){return!["all","list"].includes(t.hidden)&&!n.includes(t.name)&&t.name!==r&&"model"!==t.metaType&&"link"!==t.type})).map((function(r){var n=Object.fromEntries(r.configs.map((function(t){return[t.key,t.value]})));return{dataIndex:r.name,key:r.name,title:r.alias,align:["Integer","Number"].includes(r.metaType)?"right":"left",schema:r,width:n["list.width"],fixed:n["list.fixed"]||!1,ellipsis:"true"===n["list.ellipsis"],customRender:function(n,o,i){return e("Cell",{on:{profile:function(){return t.handleModelProfile(o)},change:function(e){return t.handleCellChange(e,r.name,o)}},attrs:{value:n,row:o,schema:r,editable:t.configs["list.actionRowNotEditing.key"]&&t.configs["list.actionRowNotEditing.value"]?t.actionRowEditing&&!t.configs["list.actionRowNotEditing.value"].split(",").includes(o[t.configs["list.actionRowNotEditing.key"]]):t.actionRowEditing,idName:t.idName,rowIndex:i}})}}})),i=[],a=null;return this.configs&&this.configs["list.collapse.action"]&&(isNaN(Number(this.configs["list.collapse.action"]))?i=this.configs["list.collapse.action"].split(","):a=Number(this.configs["list.collapse.action"])),this.inlineActions&&this.inlineActions.length&&!this.actionRowEditing&&o.push({title:"操作",key:"_action",fixed:this.configs["list.scrollX"]?"right":null,customRender:function(r,n){var o=null;return o=i.length?[e("span",[t.rowActions(n).filter((function(t){return!i.includes(t.key)})).map((function(r,o){return[o?e("a-divider",{attrs:{type:"vertical"}}):"",e("a",{on:{click:function(e){return t.handleRowAction(r,n,e)}}},[r.name,"file"===r.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(r,e.target.files),e.target.value=""}}}):""])]}))]),t.rowActions(n).filter((function(t){return!i.includes(t.key)})).length?e("a-divider",{attrs:{type:"vertical"}}):"",t.rowActions(n).filter((function(t){return i.includes(t.key)})).length?e("a-dropdown",{attrs:{trigger:["click"]}},[e("a",{class:"ant-dropdown-link",on:{click:function(t){return t.preventDefault()}}},["更多 ",e("a-icon",{attrs:{type:"down"}})]),e("a-menu",{slot:"overlay"},[t.rowActions(n).filter((function(t){return i.includes(t.key)})).map((function(r,o){return e("a-menu-item",{key:r.id},[e("a",{on:{click:function(e){return t.handleRowAction(r,n,e)}}},[r.name,"file"===r.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(r,e.target.files),e.target.value=""}}}):""])])}))])]):""]:a?[e("span",[t.rowActions(n).slice(0,a).map((function(r,o){return[o?e("a-divider",{attrs:{type:"vertical"}}):"",e("a",{on:{click:function(e){return t.handleRowAction(r,n,e)}}},[r.name,"file"===r.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(r,e.target.files),e.target.value=""}}}):""])]}))]),t.rowActions(n).slice(0,a).length?e("a-divider",{attrs:{type:"vertical"}}):"",t.rowActions(n).slice(a).length?e("a-dropdown",{attrs:{trigger:["click"]}},[e("a",{class:"ant-dropdown-link",on:{click:function(t){return t.preventDefault()}}},["更多 ",e("a-icon",{attrs:{type:"down"}})]),e("a-menu",{slot:"overlay"},[t.rowActions(n).slice(a).map((function(r,o){return e("a-menu-item",{key:r.id},[e("a",{on:{click:function(e){return t.handleRowAction(r,n,e)}}},[r.name,"file"===r.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(r,e.target.files),e.target.value=""}}}):""])])}))])]):""]:t.rowActions(n).map((function(r,o){return[o?e("a-divider",{attrs:{type:"vertical"}}):"",e("a",{on:{click:function(e){return t.handleRowAction(r,n,e)}}},[r.name,"file"===r.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(r,e.target.files),e.target.value=""}}}):""])]})),{children:o}},actions:function(e){return t.rowActions(e)}}),o},configs:function(){return this.schema&&this.schema.configs&&this.schema.configs.length?Object.fromEntries(this.schema.configs.map((function(t){return[t.key,t.value]}))):null},filters:function(){var t=this;return this.model&&this.model.filters?this.model.filters.filter((function(e){return!t.hide.includes(e.name)&&!["tree-select"].includes(e.control)})).map((function(e){var r=t.model.attrs.find((function(t){return t.name===e.name}));return ae(ae({},r),e)})):[]},treeFilters:function(){var t=this;return this.model&&this.model.filters?this.model.filters.filter((function(e){return!t.hide.includes(e.name)&&["tree-select"].includes(e.control)})).map((function(e){var r=t.model.attrs.find((function(t){return t.name===e.name}));return ae(ae({},r),e)})):[]},filterValues:function(){var t=[].concat(Qt(this.filters),Qt(this.treeFilters)).filter((function(t){return!!t.value})).map((function(t){return[t.name,t.value]}));return ae(ae({},Object.fromEntries(t)),this.defaults)},dataSource:function(){var t=this,e=this.findAll;if(this.actionModel){var r=e.find((function(e){return e[t.idName]===t.actionModel[t.idName]}));for(var n in r)r[n]!==this.actionModel[n]&&(this.actionModel[n]=r[n])}return e},next:function(){var t=this,e=this.actionModel&&this.actionModel[this.idName],r=this.findAll.findIndex((function(r){return r[t.idName]===e}));return this.findAll[r+1]},previous:function(){var t=this,e=this.actionModel&&this.actionModel[this.idName],r=this.findAll.findIndex((function(r){return r[t.idName]===e}));return this.findAll[r-1]}},created:function(){var t=this;return Xt(Zt().mark((function e(){var r;return Zt().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.schema){e.next=4;break}return e.next=3,t.loadSchema();case 3:while(t.schemaFuncQueue.length>0)r=t.schemaFuncQueue.pop(),r();case 4:t.query=t.params.route&&t.params.route.query.close?ae(ae(ae({},t.query),t.params.filters),t.filterValues):ae(ae(ae(ae({},t.query),t.params.filters),t.filterValues),t.$route.query);case 5:case"end":return e.stop()}}),e)})))()},activated:function(){var t=this;this.schema?this.configs&&this.configs["auto-refresh"]&&(this.autoRefreshTimer=!0,this.autoRefresh(+this.configs["auto-refresh"])):this.schemaFuncQueue.push((function(){t.configs&&t.configs["auto-refresh"]&&(t.autoRefreshTimer=!0,t.autoRefresh(+t.configs["auto-refresh"]))})),this.parentIds||"page"!==this.mode||j.a.stringify(this.query)!==j.a.stringify(this.$route.query)&&this.$router.push({query:this.query}),this.unwatchQuery=this.$watch("query",{handler:function(t,e){var r=Object.keys(t),n=Object.keys(e),o=r.some((function(e){return!n.includes(e)&&!t[e]}));o||(this.load(),this.clearSelection&&this.clearSelection(),!this.parentIds&&"page"===this.mode&&this.$router.push({query:this.query}))},deep:!0})},deactivated:function(){this.autoRefreshTimer&&clearTimeout(this.autoRefreshTimer),this.autoRefreshTimer=null,this.unwatchQuery&&this.unwatchQuery()},methods:{autoRefresh:function(t){var e=this;return Xt(Zt().mark((function r(){return Zt().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,e.handleRefresh();case 2:e.autoRefreshTimer&&(e.autoRefreshTimer=setTimeout((function(){return e.autoRefresh(t)}),t));case 3:case"end":return r.stop()}}),r)})))()},load:function(){var t=arguments,e=this;return Xt(Zt().mark((function r(){var n,o;return Zt().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.length>0&&void 0!==t[0]&&t[0],r.next=3,e.loadData({query:e.query,mute:n});case 3:return o=r.sent,r.abrupt("return",o);case 5:case"end":return r.stop()}}),r)})))()},handleNext:function(){this.actionModel=ae({},this.next)},handlePrevious:function(){this.actionModel=ae({},this.previous)},handleModelProfile:function(t){var e={name:this.titleName?String(this.formatter(t,t[this.titleName],this.titleSchema)):"详情",key:"_profile"};this.action=e,this.actionModel=ae({},t),this.actionParams={$parent:this.params.$parent},this.handleProfile(e)},handleProfile:function(t){var e=this.actionModel;this.parentIds||"page"!==this.mode?(this.actionViewMode="drawer",this.actionViewType="Profile",this.showActionView()):this.$router.push("".concat(this.$route.path,"/").concat(e[this.idName]))},handleFilterChange:function(t,e){this.query[t]?this.query[t]=e:this.$set(this.query,t,e)},listSeparateColor:function(t,e){var r=this.configs["list.separateKey"]||null,n=this.configs["list.separateValue"]||null;return r&&n&&t[r]===n?"list-separate-color":""},onFileChange:function(t,e){var r=t.list?t.list:"file";this.handleAction(t,null,se({},r,e))}}},fe={props:{paginationMode:{type:String,default:"auto",enum:["front","server","auto"]},paginationType:{type:String,default:"size",enum:["size","node","time"]}},data:function(){return{query:{$limit:1,$page:1,_size:15}}},methods:{handlePaginationPageChange:function(t){this.query.$limit=t,this.clearSelection&&this.clearSelection()},handleShowSizeChange:function(t,e){this.query._size=e,this.clearSelection&&this.clearSelection()}}};function he(t){return ye(t)||ve(t)||pe(t)||de()}function de(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pe(t,e){if(t){if("string"===typeof t)return me(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?me(t,e):void 0}}function ve(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ye(t){if(Array.isArray(t))return me(t)}function me(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ge={props:{pickerMode:{type:String,enum:["single","multiple"],default:"multiple"}},data:function(){return{selections:[]}},computed:{rowSelection:function(){var t=this;return this.pickerMode&&this.schema.handle?!this.bulkActions.length&&!this.pickerMode||this.actionRowEditing?null:{selectedRowKeys:this.selections.map((function(e){return e[t.idName]})),onChange:this.handleSelectionChange,type:"single"===this.pickerMode?"radio":"checkbox"}:null}},methods:{getSelection:function(){},addSelection:function(){},removeSelection:function(){},clearSelection:function(){"picker"===this.mode&&"multiple"===this.pickerMode||(this.selections=[])},handleSelectionChange:function(t){var e=this.idName,r=this.dataSource,n=function t(r,n){for(var o=0;o<r.length;o++){if(r[o][e]===n)return r[o];if(r[o]._childList){var i=t(r[o]._childList,n);if(i)return i}}return null};"picker"===this.mode&&"multiple"===this.pickerMode?(this.selections=[].concat(he(this.selections),he(t.map((function(t){return n(r,t)})).filter((function(t){return t})))),this.selections=Array.from(new Set(this.selections.map((function(t){return JSON.stringify(t)})))).map((function(t){return JSON.parse(t)})),this.selections=this.selections.filter((function(r){var n=t.findIndex((function(t){return t===r[e]}));return-1!==n}))):this.selections=t.map((function(t){return n(r,t)})),this.$emit("selected",this.selections)}}};function be(t){return be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},be(t)}function we(t,e){return Object.keys(t).every((function(r){var n=t[r],o=r.split(".").reduce((function(t,e){return t&&Object.hasOwn(t,e)?t[e]:void 0}),e);if(o||""===o||null===o){if(Array.isArray(n))return n.includes(o);if("object"!==be(n)||1!==Object.keys(n).length)return"object"===be(n)&&Object.keys(n).length>1?we(n,e):n===o;if(n["!"]&&Array.isArray(n["!"]))return!n["!"].includes(o);if(n["!"])return n!==o;if(n[">"])return o>n[">"];if(n[">="])return o>=n[">="];if(n["<"])return o<n["<"];if(n["<="])return o<=n["<="]}}))}var _e=r("9f89");function xe(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/\${([\s\S]+?)}/g;return _e(t,{reInterpolate:r})(e)}function ke(t){return ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ke(t)}function Oe(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Oe=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==ke(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(ke(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Ee(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Se(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ee(i,n,o,a,s,"next",t)}function s(t){Ee(i,n,o,a,s,"throw",t)}a(void 0)}))}}var je=function(t,e){return Ne.apply(this,arguments)};function Ne(){return Ne=Se(Oe().mark((function t(e,r){var n,o,i,a,s,c;return Oe().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("refresh"!==e){t.next=5;break}if("true"!==r.configs["flush-badges"]){t.next=4;break}return t.next=4,null===(i=window)||void 0===i||null===(i=i.sidebar)||void 0===i?void 0:i.setBadges();case 4:return t.abrupt("return");case 5:if(a=null===e||void 0===e||null===(n=e.params)||void 0===n||null===(n=n.commit)||void 0===n?void 0:n.type,s=(null!==(o=r.storeNamespace.match(new RegExp(":id","g")))&&void 0!==o?o:[]).length,a&&["load","loadAll"].includes(a)&&r.load&&r.load(),!a||!["parent.load","parent.loadAll"].includes(a)){t.next=14;break}if(t.t0=r.view&&r.view.load,!t.t0){t.next=13;break}return t.next=13,r.view.load();case 13:s&&r.load&&r.load();case 14:if(a&&["loadSchema","loadAll"].includes(a)&&r.loadSchema&&r.loadSchema(),!a||!["parent.loadSchema","parent.loadAll"].includes(a)){t.next=21;break}if(t.t1=r.view&&this.view.loadSchema,!t.t1){t.next=20;break}return t.next=20,r.view.loadSchema();case 20:s&&r.loadSchema&&r.loadSchema();case 21:if("true"!==r.configs["flush-badges"]){t.next=24;break}return t.next=24,null===(c=window)||void 0===c||null===(c=c.sidebar)||void 0===c?void 0:c.setBadges();case 24:case"end":return t.stop()}}),t,this)}))),Ne.apply(this,arguments)}function Le(t){return Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Le(t)}function Pe(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Pe=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Le(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Le(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Ce(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Ae(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ce(i,n,o,a,s,"next",t)}function s(t){Ce(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Te=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e?r&&r.viewMode&&"download"===r.viewMode?window.open("/file/getfile/".concat(e,"?_time=").concat((new Date).getTime(),"&viewMode=").concat(r.viewMode),"_blank"):window.open("/file/getfile/".concat(e,"?_time=").concat((new Date).getTime()),"_blank"):window.open("".concat(t,"/api/download?_time=").concat((new Date).getTime()),"_blank")},Re={methods:{handleFile:function(t){var e=this;return Ae(Pe().mark((function r(){var n,o,i,a;return Pe().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=t.list?t.list:"file",o=new FormData,i=e.idName,e.actionModel[n]){r.next=5;break}return r.abrupt("return");case 5:return o.append(n,e.actionModel[n][0]),e.actionModel[i]&&o.append(i,e.actionModel[i]),a=e.$message.loading("正在".concat(t.name,",请稍等..."),0),r.next=10,e.saveData({key:t.key,data:o});case 10:je(t,e),a();case 12:case"end":return r.stop()}}),r)})))()},handleFilesUpload:function(t){var e=this;return Ae(Pe().mark((function t(){return Pe().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.actionViewWidget="upload-form",e.showActionView();case 2:case"end":return t.stop()}}),t)})))()},handleDownload:function(t){var e=this;return Ae(Pe().mark((function r(){var n,o;return Pe().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=function(){var r=Ae(Pe().mark((function r(){var n,o,i;return Pe().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.$message.loading("正在".concat(t.name,",请稍等..."),0),r.next=3,e.executeData({key:t.key,data:e.actionModel||e.selections[0]});case 3:o=r.sent,n(),o instanceof Error||(i=o&&o.file_id?o.file_id:null,Te(e.apiBaseURL,i,{viewMode:"download"}));case 6:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),!t.params||!t.params.confirm){r.next=6;break}o=t.params.confirm,e.$confirm({title:o.title||t.name,content:o.content||"您确认要执行【".concat(t.name,"】操作吗?"),onOk:function(){n()}}),r.next=8;break;case 6:return r.next=8,n();case 8:case"end":return r.stop()}}),r)})))()},handleExport:function(t){var e=arguments,r=this;return Ae(Pe().mark((function n(){var o,i,a;return Pe().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(o=e.length>1&&void 0!==e[1]&&e[1],i=function(){var e=Ae(Pe().mark((function e(){var n,i,a;return Pe().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=r.$message.loading("正在".concat(t.name,",请稍等..."),0),e.next=3,r.executeData({key:t.key,data:r.selections.length?o?r.selections[0]:r.selections:r.actionModel||{}});case 3:i=e.sent,n(),i instanceof Error||(a=i&&i.file_id?i.file_id:null,Te(r.apiBaseURL,a));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!t.params||!t.params.confirm){n.next=7;break}a=t.params.confirm,r.$confirm({title:a.title||t.name,content:a.content||"您确认要执行【".concat(t.name,"】操作吗?"),onOk:function(){i()}}),n.next=9;break;case 7:return n.next=9,i();case 9:case"end":return n.stop()}}),n)})))()},handleExportFilter:function(t){var e=this;return Ae(Pe().mark((function r(){var n,o;return Pe().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=function(){var r=Ae(Pe().mark((function r(){var n,o,i;return Pe().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.$message.loading("正在".concat(t.name,",请稍等..."),0),r.next=3,e.executeData({key:t.key,data:e.selections.length?e.selections:{},query:e.query});case 3:o=r.sent,n(),o instanceof Error||(i=o&&o.file_id?o.file_id:null,Te(e.apiBaseURL,i));case 6:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),!t.params||!t.params.confirm){r.next=6;break}o=t.params.confirm,e.$confirm({title:o.title||t.name,content:o.content||"您确认要执行【".concat(t.name,"】操作吗?"),onOk:function(){n()}}),r.next=8;break;case 6:return r.next=8,n();case 8:case"end":return r.stop()}}),r)})))()},handleExportOne:function(t){this.handleExport(t,!0)}}};function De(t){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},De(t)}function Ie(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Me(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ie(Object(r),!0).forEach((function(e){qe(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qe(t,e,r){return e=Be(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Be(t){var e=Fe(t,"string");return"symbol"==De(e)?e:String(e)}function Fe(t,e){if("object"!=De(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=De(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function $e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$e=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==De(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(De(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Ve(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function He(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ve(i,n,o,a,s,"next",t)}function s(t){Ve(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Ue=r("9f89"),Ge=/\${([\s\S]+?)}/g,ze={methods:{handleViewPicker:function(t){var e=this;return He($e().mark((function t(){return $e().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.actionViewWidget="picker-view-form",e.showActionView();case 2:case"end":return t.stop()}}),t)})))()},handleTreeSelect:function(t){var e=this;return He($e().mark((function r(){var n,o,i,a,s,c,l,u,f,h;return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.params,o=n.treeUrl,i=n.dataUrl,a=n.keyName,s=n.titleName,c=n.valueName,l=n.valuesName,e.actioning=!0,u=Me(Me({},e.actionModel),{},{$parent:e.actionParams.$parent}),r.next=5,e.$api.get(Ue(o,{reInterpolate:Ge})(u));case 5:return f=r.sent,r.next=8,e.$api.get(Ue(i,{reInterpolate:Ge})(u));case 8:h=r.sent,e.actioning=!1,e.actionParams=Me(Me({},e.actionParams),{},{treeData:f.data&&f.data.collection,data:h.data&&h.data.collection,keyName:a,titleName:s,valueName:c,valuesName:l}),e.actionViewWidget="picker-tree-form",e.showActionView();case 13:case"end":return r.stop()}}),r)})))()},handleTransferSelect:function(t){var e=this;return He($e().mark((function r(){var n,o,i,a,s,c,l,u,f,h,d;return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.params,o=n.treeUrl,i=n.dataUrl,a=n.keyName,s=n.titleName,c=n.valueName,l=n.valuesName,u=n.selected,e.actioning=!0,f=Me(Me({},e.actionModel),{},{$parent:e.actionParams.$parent}),r.next=5,e.$api.get(Ue(o,{reInterpolate:Ge})(f));case 5:return h=r.sent,r.next=8,e.$api.get(Ue(i,{reInterpolate:Ge})(f));case 8:d=r.sent,e.actioning=!1,e.actionParams=Me(Me({},e.actionParams),{},{treeData:h.data&&h.data.collection,data:d.data&&d.data.collection,keyName:a,titleName:s,valueName:c,valuesName:l,selected:u}),e.actionViewWidget="picker-transfer-form",e.showActionView();case 13:case"end":return r.stop()}}),r)})))()},handleAlgorithm:function(){var t=this;return He($e().mark((function e(){return $e().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.actionViewWidget="algorithm-form",t.actionViewMode="fullscreen",t.showActionView();case 3:case"end":return e.stop()}}),e)})))()},handleSelectViewPicker:function(t){var e=this;return He($e().mark((function r(){var n,o,i,a,s;return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.params,o=n.treeUrl,i=n.valuesName,e.actioning=!0,a=Me(Me({},e.actionModel),{},{$parent:e.actionParams.$parent}),r.next=5,e.$api.get(Ue(o,{reInterpolate:Ge})(a));case 5:s=r.sent,e.actioning=!1,e.actionParams=Me(Me({},e.actionParams),{},{treeData:s.data&&s.data.collection,valuesName:i}),e.actionViewWidget="picker-select-view-form",e.showActionView();case 10:case"end":return r.stop()}}),r)})))()}}};function Ke(t){return Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ke(t)}function Ye(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function We(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ye(Object(r),!0).forEach((function(e){Qe(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ye(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ze(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ze=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Ke(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Ke(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Je(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Xe(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Je(i,n,o,a,s,"next",t)}function s(t){Je(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Qe(t,e,r){return e=tr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tr(t){var e=er(t,"string");return"symbol"==Ke(e)?e:String(e)}function er(t,e){if("object"!=Ke(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ke(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var rr={mixins:[Re,ze],methods:{handleRowAction:function(){},handleFindAll:function(){},handleFindOne:function(){},handleCreate:function(t){this.formMode="create",this.parentIdName&&this.actionModel&&(this.actionModel=Qe({},this.parentIdName,this.actionModel[this.nodeName])),this.showActionView()},handleUpdate:function(t){this.formMode="update",this.showActionView()},handleDelete:function(t){var e=this;return Xe(Ze().mark((function r(){return Ze().wrap((function(r){while(1)switch(r.prev=r.next){case 0:e.$confirm({title:t.name,content:"此操作将永久删除该数据, 是否继续?",okText:"确定",cancelText:"取消",onOk:function(){var r=Xe(Ze().mark((function r(){return Ze().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,e.removeData({key:t.key,method:t.method||"delete",data:e.profile?[e.profile[e.idName]]:e.selections.length?e.selections.map((function(t){return t[e.idName]})):[e.actionModel[e.idName]]});case 2:e.selections=[],e.id?e.handleBack():e.findAll.length||e.load&&e.load(),je(t,e);case 5:case"end":return r.stop()}}),r)})));function n(){return r.apply(this,arguments)}return n}()});case 1:case"end":return r.stop()}}),r)})))()},handleBulkEdit:function(){this.actionRowEditing=!0},handleCancelEdit:function(){var t=this;return Xe(Ze().mark((function e(){return Ze().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.editions.length?t.editions.length&&t.$confirm({title:"提示",content:"已编辑数据将无法保存, 是否继续?",okText:"确定",cancelText:"取消",onOk:function(){t.closeActionView()}}):t.closeActionView();case 1:case"end":return e.stop()}}),e)})))()},handleSaveEdit:function(){var t=arguments,e=this;return Xe(Ze().mark((function r(){return Ze().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return t.length>0&&void 0!==t[0]?t[0]:e.formAction,e.actioning=!0,r.next=4,e.commitActionView(e.editions);case 4:e.actioning=!1;case 5:case"end":return r.stop()}}),r)})))()},handleOne:function(t){var e=this;return Xe(Ze().mark((function r(){return Ze().wrap((function(r){while(1)switch(r.prev=r.next){case 0:e.handleBulk(t,1);case 1:case"end":return r.stop()}}),r)})))()},handleBulk:function(t){var e=arguments,r=this;return Xe(Ze().mark((function n(){var o,i,a,s,c,l,u,f,h,d,p,v;return Ze().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(o=e.length>1&&void 0!==e[1]?e[1]:0,i=r.selections.length,a=r.action.params,s=void 0===a?{}:a,c=s.actionAfterDriver,l=void 0===c?{}:c,u=l.redirect,f=void 0!==u&&u,!(o&&i>o)){n.next=5;break}return n.abrupt("return",r.$message.error("所选数据不允许超过 ".concat(o," 条")));case 5:h=i>1?" ".concat(i," 条"):"",d={method:t.method||"post",key:t.key,data:r.selections.length?r.selections:[r.actionModel],type:t.params&&t.params.commit?t.params.commit.type:""},p=function(){t.params&&t.params.commit&&"remove"===t.params.commit.type&&(r.id?r.handleBack():r.findAll.length||r.load&&r.load())},v=function(t){f&&t.redirectUrl&&r.$router.push(t.redirectUrl)},r.$confirm({title:t.name,content:"确认对选定的".concat(h,"数据进行【").concat(t.name,"】操作?"),okText:"确定",cancelText:"取消",onOk:t.params&&t.params.sync?function(){var e=r.saveData(d);p(),je(t,r),v(e)}:Xe(Ze().mark((function e(){var n;return Ze().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,r.saveData(d);case 2:n=e.sent,p(),je(t,r),v(n);case 6:case"end":return e.stop()}}),e)})))});case 10:case"end":return n.stop()}}),n)})))()},handleEver:function(t){var e=this;return Xe(Ze().mark((function r(){var n;return Ze().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.$message.loading("正在".concat(t.name,",请稍等..."),0),r.next=3,e.executeData({key:t.key,data:{},query:e.query?e.query:{}});case 3:n();case 4:case"end":return r.stop()}}),r)})))()},handleRouter:function(t){var e=this;return Xe(Ze().mark((function r(){var n;return Ze().wrap((function(r){while(1)switch(r.prev=r.next){case 0:n=t.legend,n=xe(n,We({$parent:e.params.$parent,user:e.$store.state.user},e.actionModel)),e.$router.push(n);case 3:case"end":return r.stop()}}),r)})))()},handleLink:function(t){var e=this;return Xe(Ze().mark((function r(){var n;return Ze().wrap((function(r){while(1)switch(r.prev=r.next){case 0:n=t.legend,n=xe(n,We({$parent:e.params.$parent,user:e.$store.state.user},e.actionModel)),window.open(n,"_blank");case 3:case"end":return r.stop()}}),r)})))()},handleBlank:function(t){var e=this;this.$confirm({title:t.name,content:"确认对选定的数据进行【".concat(t.name,"】操作?"),okText:"确定",cancelText:"取消",onOk:function(){var r=Xe(Ze().mark((function r(){var n,o;return Ze().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.key?"".concat(e.pageKey,"/").concat(t.key):t.id,r.next=3,e.$api[t.method.toLowerCase()||"post"]("api/".concat(n),e.actionModel||e.selections[0]);case 3:o=r.sent,200===o.data.status?window.open(o.data.data.openNewUrl,"_blank"):e.$message.error(o.data.content);case 5:case"end":return r.stop()}}),r)})));function n(){return r.apply(this,arguments)}return n}()})},handleRefresh:function(){var t=this;return Xe(Ze().mark((function e(){var r,n;return Ze().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.load){e.next=7;break}return e.next=3,t.load();case 3:return r=e.sent,e.next=6,je("refresh",t);case 6:r instanceof Error&&(n=r.response.data.code,404===n&&t.handleBack());case 7:case"end":return e.stop()}}),e)})))()},handleBack:function(){this.parentIds||"page"!==this.mode?this.$emit("close"):this.$router.back()},handleAutoFill:function(t){this.defaultModel||(this.defaultModel=We({},this.actionModel));var e=this.schema.id,r=t.target.checked,n=JSON.parse(localStorage.getItem("form_".concat(e)));if(n)for(var o in n)r?this.$set(this.actionModel,o,n[o]):this.$set(this.actionModel,o,this.defaultModel[o])}}};function nr(t){return nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nr(t)}function or(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */or=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==nr(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(nr(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function ir(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ar(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ir(Object(r),!0).forEach((function(e){sr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ir(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sr(t,e,r){return e=cr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cr(t){var e=lr(t,"string");return"symbol"==nr(e)?e:String(e)}function lr(t,e){if("object"!=nr(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=nr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function ur(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function fr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ur(i,n,o,a,s,"next",t)}function s(t){ur(i,n,o,a,s,"throw",t)}a(void 0)}))}}var hr={methods:{handleFlowReport:function(t){var e=this;return fr(or().mark((function r(){var n,o;return or().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.actionModel,e.actionConfirmMode=e.actioning=!0,r.next=4,e.saveData({key:t.key,data:ar({},n)});case 4:if(o=r.sent,e.actionConfirmMode=e.actioning=!1,o.data){r.next=8;break}return r.abrupt("return");case 8:e.actionModel=ar(ar({},n),{},{confirm:1,todo_actors:[]}),e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionParams.flow=o,e.actionViewVisible=!0;case 12:case"end":return r.stop()}}),r)})))()},handleFlowCheck:function(t){var e=this;return fr(or().mark((function r(){var n,o;return or().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.actionModel,e.actionConfirmMode=e.actioning=!0,r.next=4,e.saveData({key:t.key,data:ar({},n)});case 4:if(o=r.sent,e.actionConfirmMode=e.actioning=!1,o.data){r.next=8;break}return r.abrupt("return");case 8:e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionModel=ar(ar({},n),{},{data:ar({},o.data),confirm:1,deal_note:"",flow_action_name:"submit",form_param:[],todo_actors:[],todo_id:o.data.todo_id,back_step:""}),e.actionParams.flow=o,e.actionViewVisible=!0;case 12:case"end":return r.stop()}}),r)})))()},handleFlowReassign:function(t){var e=this;return fr(or().mark((function r(){var n,o;return or().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.actionModel,e.actionConfirmMode=e.actioning=!0,r.next=4,e.saveData({key:t.key,data:ar({},n)});case 4:if(o=r.sent,e.actionConfirmMode=e.actioning=!1,o.data){r.next=8;break}return r.abrupt("return");case 8:e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionModel=ar(ar({},n),{},{data:ar({},o.data),confirm:1,deal_note:"",flow_action_name:"reassign",form_param:[],todo_actors:[],todo_id:o.data.todo_id,back_step:""}),e.actionParams.flow=o,e.actionViewVisible=!0;case 12:case"end":return r.stop()}}),r)})))()},handleFlowQuery:function(t){var e=this;return fr(or().mark((function r(){var n,o;return or().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.actionModel,e.actionConfirmMode=e.actioning=!0,r.next=4,e.saveData({key:t.key,data:ar({},n)});case 4:if(o=r.sent,e.actionConfirmMode=e.actioning=!1,o.data){r.next=8;break}return r.abrupt("return");case 8:e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionParams.flow=o,e.actionViewVisible=!0;case 11:case"end":return r.stop()}}),r)})))()},getActionWidget:function(t){var e=null;return t.configs.length&&(e=Object.fromEntries(t.configs.map((function(t){return[t.key,t.value]})))),e&&e["action.widget"]?e["action.widget"]:void 0}}};function dr(t){return dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dr(t)}function pr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */pr=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==dr(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(dr(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function vr(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function yr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){vr(i,n,o,a,s,"next",t)}function s(t){vr(i,n,o,a,s,"throw",t)}a(void 0)}))}}var mr={methods:{commit:function(){return yr(pr().mark((function t(){return pr().wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()}}};function gr(t){return gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gr(t)}function br(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */br=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==gr(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(gr(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function wr(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function _r(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){wr(i,n,o,a,s,"next",t)}function s(t){wr(i,n,o,a,s,"throw",t)}a(void 0)}))}}function xr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function kr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xr(Object(r),!0).forEach((function(e){Or(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Or(t,e,r){return e=Er(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Er(t){var e=Sr(t,"string");return"symbol"==gr(e)?e:String(e)}function Sr(t,e){if("object"!=gr(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=gr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var jr={create:["createonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},Nr={none:function(t,e){return 0===t&&!e},single:function(t,e){return 1===t||e},somewhat:function(t,e){return t>0||e},mulpitle:function(t,e){return t>1&&!e}},Lr={mixins:[rr,hr,mr],data:function(){return{action:null,actioning:!1,submitting:!1,actionViewMode:"modal",actionViewType:"Form",actionViewWidget:"normal-form",actionViewVisible:!1,actionModel:null,actionParams:{},actionViewShowRules:[],actionSubmited:0,actionConfirmMode:!1,actionRowEditing:!1,actionCommitResult:{template:null,data:null},defaultModel:null,unwatchs:[],editions:[],preview:!1}},computed:{actions:function(){var t=this,e=this.model.actions;if(!e)return[];var r=this.selections.length||0,n=!!this.profile;return e.filter((function(e){var o=!0,i=e.selected,a=e.action;return i&&Nr[i]&&(o=Nr[i](r,n)),"single"===e.selected&&"profile"===a&&n&&(o=!1),o&&!t.actionRowEditing&&t.showAction(e)}))},bulkActions:function(){var t=this.model.actions;return t?t.filter((function(t){return["somewhat","mulpitle"].includes(t.selected)})):[]},backActions:function(){return[{key:"_back",name:"返回",icon:"left",action:"back"}]},navActions:function(){return this.previous||this.next?[{key:"_previous",name:"",icon:"left",action:"previous",disabled:!this.previous},{key:"_next",name:"",icon:"right",action:"next",disabled:!this.next}]:[]},settingActions:function(){var t=[{key:"",name:"保存",icon:"save",method:"PUT",action:"saveEdit",primary:"1"},{key:"_cancle",name:"取消",icon:"stop",action:"cancelEdit",group:"1"}];return this.actionRowEditing?this.editions.length?t:t.filter((function(t){return["cancelEdit"].includes(t.action)})):[{key:"_refresh",name:"",icon:"reload",action:"refresh"}]},inlineActions:function(){return this.model.actions&&this.model.actions.filter((function(t){return["single","somewhat"].includes(t.selected)}))},sheetActions:function(){},firstAction:function(){},lastAction:function(){},actionOkButtonProps:function(){return{props:{loading:this.committing,icon:"check"}}},actionCancelButtonProps:function(){return{props:{disabled:this.committing,icon:"close"}}}},methods:{rowActions:function(t){var e=this;return this.inlineActions.filter((function(r){return e.showAction(r,t)}))},showAction:function(t,e){var r=t.params&&!!t.params.show,n=t.params&&(t.params.show||t.params.hide),o=this.params||this,i=o.$parent;if(!n)return!0;var a=this.profile?[this.profile]:e?[e]:this.selections||[],s=r;return a.length?s=r?a.every((function(t){return we(n,kr(kr({},t),{},{$parent:i}))})):a.some((function(t){return we(n,kr(kr({},t),{},{$parent:i}))})):i&&(s=we(n,{$parent:i})),r?s:!s},actionBeforeDriver:function(t){var e=this;return _r(br().mark((function r(){var n,o,i,a,s,c,l;return br().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,e.$api.get("/dataset/".concat(t,"?").concat(j.a.stringify(e.$store.state.user)));case 3:if(n=r.sent,o=n.data.data,i=void 0===o?[]:o,!i.length){r.next=14;break}if("500"!==i[0].code){r.next=12;break}return e.$message.error(i[0].content),r.abrupt("return",!1);case 12:if("200"!==i[0].code){r.next=14;break}return r.abrupt("return",!0);case 14:r.next=22;break;case 16:r.prev=16,r.t0=r["catch"](0),r.t0.response||e.$message.error("网络请求错误,请检查您的网络连接。"),a=r.t0.response,s=a.status,c=a.data,l=c&&c.content||"系统错误请与管理员联系。",e.$message.error("".concat(s,", ").concat(l));case 22:case"end":return r.stop()}}),r,null,[[0,16]])})))()},handleRowAction:function(t,e,r){var n=r.target.getElementsByTagName("input");if(this.selections=[e],"file"!==t.action)return this.handleAction(t,e);r.stopPropagation(),n[0]&&void 0===n[0].click()||r.path&&r.path[1].getElementsByTagName("input")[0].click()},handleAction:function(t,e,r){var n=this;return _r(br().mark((function o(){var i,a,s,c,l;return br().wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(n.action=t,i=n.action.params,a=void 0===i?{}:i,s=a.actionBeforeDriver,c=void 0===s?"":s,!c){o.next=8;break}return o.next=5,n.actionBeforeDriver(c);case 5:if(l=o.sent,l){o.next=8;break}return o.abrupt("return",!1);case 8:return e||(e=n.profile||n.selections[0]||{}),["modal","drawer","fullscreen"].includes(t.display)&&(n.actionViewMode=t.display),n.actionModel=kr(kr(kr({},e),r),n.defaults),n.actionParams=kr(kr({},t.params),{},{$parent:n.params.$parent}),"page"===t.display?n.routeAction(t):n.dispatchAction(t),o.abrupt("return",n);case 14:case"end":return o.stop()}}),o)})))()},handleCellChange:function(t,e,r){var n=this.idName,o=this.editions.find((function(t){return t[n]===r[n]}));o||(o=kr({},r),this.editions.push(o)),o[e]=t},trigger:function(t){var e=this.actions.find((function(e){return e.key===t}));return this.dispatchAction(e),this},dispatchAction:function(t){var e={POST:"handleCreate",PUT:"handleUpdate",DELETE:"handleDelete","e.send-email":"handleSendMail","e.flow-report":"handleFlowReport","e.flow-query":"handleFlowQuery","e.flow-submit":"handleFlowCheck","e.flow-check":"handleFlowCheck","e.flow-open":"handleFlowCheck","e.flow-reassign":"handleFlowReassign",viewSelect:"handleViewPicker",algorithm:"handleAlgorithm"};try{if(t.action&&e[t.action])this[e[t.action]](t);else if(t.action){var r=t.action.replace(/^\S/,(function(t){return t.toUpperCase()}));this["handle".concat(r)](t)}else this[e[t.method]](t)}catch(n){this.$message.error("前端事件异常【".concat(t.name,"】"))}return this},routeAction:function(t){return this.$router.push({path:t.key}),this},showActionView:function(){this.actionViewVisible=!0},submitActionView:function(){this.submitting=!0,this.actionSubmited=(new Date).getTime()},commitActionView:function(t){var e=arguments,r=this;return _r(br().mark((function n(){var o,i,a,s,c,l,u,f,h,d,p,v,y,m,g,b,w,_,x,k,O,E,S;return br().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=e.length>1&&void 0!==e[1]?e[1]:null,o&&(r.preview=o.preview),i=r.selections,a=r.actionModel,s=r.idName,c=r.editions,l=r.action,u=l.key,f=l.method,h=l.params,d=void 0===h?{}:h,p=d.commit,v=void 0===p?{}:p,y=v.type,m=v.redirectProfile,g=d.autofill,b=r.schema,i.length>1?(delete t[s],t=i.map((function(e){return kr(kr({},e),t)}))):a&&!c.length&&(t=kr(kr({},a),t)),w=Object.keys(t).every((function(e){return!(t[e]instanceof File)&&!(t[e]&&t[e]instanceof Array&&t[e].some((function(t){return t instanceof File})))})),_={},x=Object.keys(t).find((function(e){return t[e]&&t[e]instanceof Array&&t[e].some((function(t){return t instanceof File}))}))?"1":"0","1"===x&&(_.multiple=x),w||(t=r.transformData(t)),n.next=11,r.saveData({data:t,key:u,method:f,query:_,type:y,params:o});case 11:if(k=n.sent,k){if(g){for(S in O=kr({},k),E=r.filterColumns().map((function(t){return t.name})),O)E.includes(S)||delete O[S];localStorage.setItem("form_".concat(b.id),JSON.stringify(O))}r.actionCommitResult.data=function(){return{data:k}},m&&r.handleModelProfile&&r.handleModelProfile(k),r.id&&y&&"remove"===y&&r.handleBack()}je({params:{commit:{type:y}}},r);case 14:case"end":return n.stop()}}),n)})))()},filterColumns:function(){var t=this.action,e=this.params,r=this.model,n=this.hide,o=this.formMode,i=t&&t.view?t.view.model.attrs:e&&e.attrs?e.attrs:r.attrs?r.attrs:[];if(t&&t.list){var a=this.action.list.split(",");return i.filter((function(t){return!n.includes(t.name)&&a.includes(t.name)}))}return i.filter((function(t){return jr[o].includes(t.access)&&!n.includes(t.name)&&"collection"!==t.metaType&&"model"!==t.metaType&&"link"!==t.type}))},transformData:function(t){var e=new FormData;for(var r in t)if("object"!==gr(t[r])||t[r]instanceof File)e.append("".concat(r),t[r]);else for(var n in t[r])Array.isArray(t[r])?e.append("".concat(r),t[r][n]instanceof File||"object"!==gr(t[r][n])?t[r][n]:JSON.stringify(t[r][n])):e.append("".concat(r,".").concat(n),t[r][n]instanceof File||"object"!==gr(t[r][n])?t[r][n]:JSON.stringify(t[r][n]));return e},closeActionView:function(t){return this.action=null,this.formModal=null,this.actionViewVisible=!1,this.submitting=!1,this.actionViewMode="modal",this.actionViewType="Form",this.actionViewWidget="normal-form",this.actionViewStoreNamespace=null,this.actionParams={},this.actionCommitResult={template:null,data:null},this.actionRowEditing=!1,this.editions=[],this.clearSelection&&this.clearSelection(),this.defaultModel=null,this},handleUpdateStatus:function(t){t>399&&this.message&&(this.$message.error(this.message),this.resetStatus())},handleUpdateMessage:function(t){var e=this.action&&this.action.configs,r=e&&e.find((function(t){return"result"===t.key}));200===this.status&&t&&(!this.actionConfirmMode&&this.$message.success(t),r?this.actionCommitResult.template=r.value:this.actionConfirmMode||!this.preview&&this.closeActionView()),this.resetStatus()}},activated:function(){this.unwatchs=[this.$watch("status",this.handleUpdateStatus),this.$watch("message",this.handleUpdateMessage)]},deactivated:function(){this.unwatchs.map((function(t){return t()})),this.unwatchs=[]}},Pr=function(t,e){var r=t,n=e.list.split(",").map((function(t){return t.split(":")}));return r=n.find((function(e){return String(e[0])===String(t)})),r=r?r[1]?r[1]:r[0]:"-",r},Cr=function(t,e){var r=t,n=e.typeObject.model.attrs.find((function(t){return"title"===t.display})),o=e.typeObject.model.idName;function i(t,e){for(var r=null,n=0;n<e.length;n++)if(String(e[n][o])===String(t)?r=e[n]:e[n]._childList&&(r=i(t,e[n]._childList)),r)return r;return r}return r=i(t,e.typeObject.data.collection),r=r?r[n?n.name:e.typeObject.model.idName]:t?"-":"",r},Ar=function(t,e,r){var n;switch(e.dataType){case"year":n="YYYY";break;case"month":n="YYYY-MM";break;case"date":n="YYYY-MM-DD";break;case"datetime":n="YYYY-MM-DD HH:mm";break;default:n="YYYY-MM-DD HH:mm";break}return r(t).format(n)},Tr={methods:{formatter:function(t,e,r){var n=e;r.list&&e&&(n=["checkbox","multiple","tree-suggests"].includes(r.control)?e&&e.split(",").map((function(t){return Pr(t,r)})).join(","):Pr(e,r)),"wordbook"===r.dataType&&r.typeObject&&e&&(n=["checkbox","multiple","tree-suggests"].includes(r.control)?e.split(",").map((function(t){return Cr(t,r)})).join(","):Cr(e,r));var o=["year","month","date","datetime","time"];return o.includes(r.dataType)&&(e||0===e)&&(n=Ar(e,r,this.moment)),n}}},Rr=function(){var t=this,e=t._self._c;return e("a-table",t._b({class:{"list-table-header-selection-checkbox":t.$attrs.rowSelection&&t.$attrs.rowSelection.type&&"checkbox"===t.$attrs.rowSelection.type&&t.showSelectionText},attrs:{pagination:!1,size:"middle"}},"a-table",t.$attrs,!1))},Dr=[],Ir={computed:{showSelectionText:function(){if(this.$store.state.app.config.length){var t=Object.fromEntries(this.$store.state.app.config.map((function(t){return[t.config_key,t.config_value]})));return"1"===t["show-selection-text"]||!1}return!1}}},Mr=Ir;function qr(t,e,r,n,o,i,a,s){var c,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=r,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=c):o&&(c=s?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:l}}var Br=qr(Mr,Rr,Dr,!1,null,null,null),Fr=Br.exports,$r=function(){var t=this,e=t._self._c;return e("a-list",t._b({attrs:{itemLayout:"horizontal",pagination:!1,size:"default",split:!1},scopedSlots:t._u([{key:"renderItem",fn:function(r){var n=r.item;return[e("a-list-item",[e(t.component,{tag:"component",attrs:{item:n}})],1)]}}])},"a-list",t.$attrs,!1))},Vr=[],Hr={props:["item"],computed:{component:function(){return{props:["item"],template:this.item||"<div></div>"}}}},Ur=Hr,Gr=qr(Ur,$r,Vr,!1,null,null,null),zr=Gr.exports,Kr={ListTable:Fr,ListNormal:zr},Yr=function(){var t=this,e=t._self._c;return e("a-form-model",{attrs:{layout:t.layout}},[t._l(t.attrs,(function(r,n){return e("Item",{key:"".concat(n,"-").concat(r.name),attrs:{formModel:t.actionModel,prop:r.name,schema:r,params:t.params,labelType:!1,isFilter:""},on:{change:function(e){return t.handleItemChange(e,r)},fill:function(e){return t.handleItemFill(e,r)}},model:{value:t.actionModel[r.name],callback:function(e){t.$set(t.actionModel,r.name,e)},expression:"actionModel[col.name]"}})})),t.view.configs["filters.collapse"]?e("a-form-model-item",[e("a-popover",{attrs:{trigger:"click",placement:"bottomRight"},scopedSlots:t._u([{key:"content",fn:function(){return t._l(t.columns.slice(t.view.configs["filters.collapse"]),(function(r,n){return e("Item",{key:"".concat(n,"-").concat(r.name),attrs:{formModel:t.actionModel,prop:r.name,schema:r,params:t.params,labelType:!1,isFilter:""},on:{change:function(e){return t.handleItemChange(e,r)},fill:function(e){return t.handleItemFill(e,r)}},model:{value:t.actionModel[r.name],callback:function(e){t.$set(t.actionModel,r.name,e)},expression:"actionModel[col.name]"}})}))},proxy:!0}],null,!1,2124004358),model:{value:t.collapse,callback:function(e){t.collapse=e},expression:"collapse"}},[e("a-button",{attrs:{type:"link",icon:"filter"}},[t._v(" 更多筛选")])],1)],1):t._e()],2)},Wr=[];function Zr(t){return Zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zr(t)}function Jr(t){return en(t)||tn(t)||Qr(t)||Xr()}function Xr(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Qr(t,e){if(t){if("string"===typeof t)return rn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rn(t,e):void 0}}function tn(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function en(t){if(Array.isArray(t))return rn(t)}function rn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function nn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */nn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Zr(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Zr(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function on(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function an(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){on(i,n,o,a,s,"next",t)}function s(t){on(i,n,o,a,s,"throw",t)}a(void 0)}))}}function sn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function cn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?sn(Object(r),!0).forEach((function(e){ln(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ln(t,e,r){return e=un(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function un(t){var e=fn(t,"string");return"symbol"==Zr(e)?e:String(e)}function fn(t,e){if("object"!=Zr(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Zr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var hn={model:{prop:"values",event:"change"},props:{action:{type:Object},columns:{type:Array},values:{type:Object},mode:{type:String,enum:["fully","normal","simple"],default:"normal"},layout:{type:String,enum:["horizontal","vertical","inline"],default:"horizontal"},params:{type:[Object],default:function(){return{}}},submited:{type:Number},continueText:{type:String},submitText:{type:String},resetText:{type:String},footer:{type:String},onContinue:{type:Function},onSubmit:{type:Function},onReset:{type:Function}},data:function(){return{actionModel:cn({},this.values)||{},hasFile:!1}},created:function(){if(this.defaultValues)for(var t in this.defaultValues)void 0===this.actionModel[t]&&this.$set(this.actionModel,t,this.defaultValues[t])},computed:{defaultValues:function(){var t=this.columns?this.columns.filter((function(t){return!!t.value})).map((function(t){return[t.name,t.value]})):[];return t.length?Object.fromEntries(t):null},rules:function(){var t={};return this.columns.forEach((function(e){var r,n=["date","time","month","week","range","tree-suggest"].includes(e.control);(t[e.name]=[],e.required&&t[e.name].push({required:!0,message:"".concat(e.alias,"不能为空"),trigger:n?"change":"blur"}),e.maxLength&&e.minLength)&&(r=e.maxLength&&e.minLength?"长度在 ".concat(e.minLength," 到 ").concat(e.maxLength," 个字符"):e.maxLength?"长度不多于 ".concat(e.maxLength," 个字符"):"长度不少于 ".concat(e.minLength," 个字符"),t[e.name].push({min:e.minLength,max:e.maxLength,message:r,trigger:"blur"}))})),t},configs:function(){return Object.fromEntries(this.action.configs.map((function(t){return[t.key,t.value]})))}},provide:function(){return{form:this}},inject:["view"],methods:{setModel:function(t,e){this.actionModel[t]?this.actionModel[t]=e:this.$set(this.actionModel,t,e)},handleItemChange:function(t,e){var r=e.name;this.setModel(r,t)},handleItemFill:function(t){var e=this;t.forEach((function(t){return e.setModel(t.name,t.value)}))},handleSubmit:function(){var t=this;return an(nn().mark((function e(){return nn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.$refs.form){e.next=3;break}return e.next=3,t.$refs.form.validate();case 3:t.handleCommit();case 4:case"end":return e.stop()}}),e)})))()},handleCommit:function(){var t=this;return an(nn().mark((function e(){var r,n,o,i,a;return nn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:Array.isArray(t.actionModel)?r=t.actionModel:(n=t.params,o=void 0===n?{}:n,i=o.valuesName,a=i?[].concat(Jr(t.columns),[{name:i}]):t.columns,r=Object.fromEntries(a.map((function(e){var r=void 0===t.actionModel[e.name]?null:t.actionModel[e.name];return[e.name,r]})))),t.$emit("commit",r);case 2:case"end":return e.stop()}}),e)})))()}},watch:{submited:function(){this.handleSubmit()},actionModel:{handler:function(t){this.$emit("change",t)},deep:!0},values:{handler:function(t){for(var e in t)this.setModel(e,t[e])},deep:!0}}},dn=function(){var t=this,e=t._self._c;return(t.changeMode?t.multiConditionStatus:t.showModel)?e("a-form-model-item",{ref:"item",attrs:{label:t.label,help:t.help,extra:t.extra,"validate-status":t.validateStatus,colon:!1,"has-feedback":!1,prop:t.prop,rules:t.rules}},[["select","chosen"].includes(t.schema.control)?e("a-select",{staticStyle:{width:"100%","min-width":"199px"},attrs:{value:t.value,allowClear:"",showSearch:"chosen"===t.schema.control,optionFilterProp:"children",filterOption:t.filterOption,disabled:t.readonly,dropdownMatchSelectWidth:!1,placeholder:t.placeholder},on:{change:function(e){return t.$emit("change",e)}}},t._l(t.options,(function(r,n){return e("a-select-option",{key:n,attrs:{title:r.label,value:r.value}},[t._v(" "+t._s(r.label)+" ")])})),1):["multiple"].includes(t.schema.control)?e("a-select",{staticStyle:{width:"100%","min-width":"199px"},attrs:{mode:"multiple",allowClear:"",defaultValue:t.value?t.value.split(","):[],disabled:t.readonly,dropdownMatchSelectWidth:!1,placeholder:t.placeholder},on:{change:function(e){return t.$emit("change",e.join(","))}}},t._l(t.options,(function(r,n){return e("a-select-option",{key:n,attrs:{title:r.label,value:r.value}},[t._v(" "+t._s(r.label)+" ")])})),1):"Boolean"===t.schema.metaType?e("a-switch",{attrs:{disabled:t.readonly,defaultChecked:t.value},on:{change:function(e){return t.$emit("change",e)}}}):"daterange"===t.schema.control?e("a-range-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,valueFormat:"YYYY-MM-DD",placeholder:["开始".concat(t.placeholder),"结束".concat(t.placeholder)],defaultValue:t.value&&t.value.split(",").every((function(t){return t}))?t.value.split(",").map((function(e){return t.moment(Number(e)||e)})):null,disabledDate:function(e){return t.disableDateFn(e)},allowClear:""},on:{change:function(e,r){t.$emit("change",r.join(","))}}}):["date","datetime"].includes(t.schema.control)||"date"===t.schema.dataType?e("a-date-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,format:"datetime"===t.schema.control?"YYYY-MM-DD HH:mm":"YYYY-MM-DD",valueFormat:"datetime"===t.schema.control?"YYYY-MM-DD HH:mm":"YYYY-MM-DD",value:t.value?t.moment(Number(t.value)||t.value):null,showTime:"datetime"===t.schema.control&&{format:"HH:mm"},allowClear:"",placeholder:t.placeholder,disabledDate:function(e){return t.disableDateFn(e)}},on:{change:function(e,r){t.$emit("change",r)}}}):"year"===t.schema.control?e("a-date-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,format:"YYYY",mode:"year",value:t.value?t.moment(t.value):null,allowClear:"",placeholder:t.placeholder,open:t.yearPickerPanelOpen,disabledDate:function(e){return t.disableDateFn(e)}},on:{panelChange:function(e){t.$emit("change",t.moment(e).format("YYYY")),t.yearPickerPanelOpen=!1},openChange:function(e){return t.yearPickerPanelOpen=e}}}):["birthday"].includes(t.schema.control)?e("a-date-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,format:"YYYY-MM-DD HH:mm",valueFormat:"YYYY-MM-DD HH:mm",defaultValue:t.value?t.moment(t.value):null,showTime:{format:"HH:mm"},allowClear:"",disabledDate:function(e){return t.disableDateFn(e)},placeholder:t.placeholder},on:{change:function(e,r){t.$emit("change",r)}}}):["month"].includes(t.schema.control)||"month"===t.schema.dataType?e("a-month-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,defaultValue:t.value?t.moment(Number(t.value)||t.value):null,allowClear:"",placeholder:t.placeholder,disabledDate:function(e){return t.disableDateFn(e)}},on:{change:function(e,r){t.$emit("change",r)}}}):["week"].includes(t.schema.control)||"week"===t.schema.dataType?e("a-week-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,defaultValue:t.value?t.moment(Number(t.value)||t.value,"YYYY-w"):null,format:"YYYY-w",allowClear:"",placeholder:t.placeholder,disabledDate:function(e){return t.disableDateFn(e)}},on:{change:function(e,r){t.$emit("change",r)}}}):["time"].includes(t.schema.control)?e("a-time-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{allowClear:"",placeholder:t.placeholder,format:"HH:mm",disabled:t.readonly,defaultValue:t.value?t.moment(t.value,"HH:mm"):null,disabledDate:function(e){return t.disableDateFn(e)}},on:{change:function(e,r){t.$emit("change",r)}}}):"multiple"===t.schema.control?e("a-checkbox-group",{attrs:{options:t.options,defaultValue:t.value},on:{change:function(e){return t.$emit("change",e)}}}):"radio"===t.schema.control?e("a-radio-group",{attrs:{defaultValue:t.value},on:{change:function(e){return t.$emit("change",e.target.value)}}},[t._l(t.options,(function(r){return e("a-radio",{key:r.value,attrs:{disabled:t.readonly,value:["Number","Integer"].includes(t.schema.metaType)?Number(r.value):r.value}},[t._v(" "+t._s(r.label)+" ")])})),e("a-radio",{directives:[{name:"show",rawName:"v-show",value:0,expression:"0"}],key:"_empty",attrs:{value:""}},[t._v(" 全部 ")])],2):"radio-image"===t.schema.control?e("a-radio-group",{staticClass:"radio-image",attrs:{defaultValue:t.value},on:{change:function(e){return t.$emit("change",e.target.value)}}},t._l(t.options,(function(r){return e("a-radio-button",{key:r.value,attrs:{disabled:t.readonly,value:["Number","Integer"].includes(t.schema.metaType)?Number(r.value):r.value}},[e("a-avatar",{attrs:{size:48,src:r.label,shape:"square"}})],1)})),1):"button-group"===t.schema.control?e("a-radio-group",{attrs:{defaultValue:t.value},on:{change:function(e){return t.$emit("change",e.target.value)}}},[e("a-radio-button",{key:"_empty",attrs:{value:""}},[t._v(" 全部 ")]),t._l(t.options,(function(r){return e("a-radio-button",{key:r.value,attrs:{disabled:t.readonly,value:r.value}},[t._v(" "+t._s(r.label)+" ")])}))],2):"file"===t.schema.control?[t.value&&!t.reUpload?e("span",[t.formModel[t.view.idName]?e("a",{attrs:{href:"".concat(t.view.apiURL,"/").concat(t.formModel[t.view.idName],"?_file=").concat(t.schema.name,"&_mode=inline"),target:"_blank"}},[t._v(" 下载查看 ")]):t._e(),t.formModel[t.view.idName]&&!t.readonly?e("span",[t._v("-")]):t._e(),t.readonly?t._e():e("span",[e("a",{attrs:{href:"javascript:void(0);"},on:{click:t.handleReupload}},[t._v(" 重新上传 ")])])]):e("a-input",{staticStyle:{margin:"4px 0"},attrs:{type:"file",accept:t.schema.params&&t.schema.params.fileType?t.schema.params.fileType:"*",disabled:t.readonly},on:{change:function(e){return t.handleFilesChange(e,t.schema.params&&t.schema.params.fileSize?t.schema.params.fileSize:null)}}})]:"files"===t.schema.control?e("div",[e("a-upload",{attrs:{beforeUpload:t.beforeFilesUpload,multiple:"",showUploadList:!1,accept:t.schema.params&&t.schema.params.fileType?t.schema.params.fileType:"*"}},[e("a-button",{on:{click:function(e){return t.setFileSize(t.schema.params&&t.schema.params.fileSize?t.schema.params.fileSize:null)}}},[e("a-icon",{attrs:{type:"upload"}}),t._v(" 批量上传 ")],1)],1),t.defaultFileList.length?e("a-list",{attrs:{"item-layout":"horizontal","data-source":t.defaultFileList,size:"small"},scopedSlots:t._u([{key:"renderItem",fn:function(r,n){return e("a-list-item",{},[e("a-list-item-meta",[e("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(r.file_name||r.name))]),e("a-space",{attrs:{slot:"description",size:"middle"},slot:"description"},[e("span",{attrs:{slot:"description"},slot:"description"},[e("a-icon",{attrs:{type:"user"}}),t._v(" "+t._s(r.creator_name||t.$store.state.user.name)+" ")],1),e("span",{attrs:{slot:"description"},slot:"description"},[e("a-icon",{attrs:{type:"clock-circle"}}),t._v(" "+t._s(t.moment(r.create_time).format("YYYY-MM-DD HH:mm"))+" ")],1)])],1),t.schema.params&&t.schema.params.control&&t.schema.params.control.deleteActionRoles&&t.schema.params.control.deleteActionRoles.includes(t.$store.state.user.roleId)||!(t.schema.params&&t.schema.params.control&&t.schema.params.control.deleteActionRoles)?e("a-icon",{staticStyle:{color:"#f5222d"},attrs:{slot:"actions",type:"close-circle"},on:{click:function(e){return t.handleRemove(n)}},slot:"actions"}):t._e()],1)}}],null,!1,3361518064)}):t._e()],1):"image"===t.schema.control?e("a-upload",{staticClass:"avatar-uploader",attrs:{accept:"image/*","list-type":"picture-card","default-file-list":t.defaultFileList,"before-upload":t.beforeUpload,remove:function(){return t.$emit("change",null)}}},[t.formModel[t.schema.name]?t._e():e("div",[e("a-icon",{attrs:{type:"plus"}}),e("div",{staticClass:"ant-upload-text"},[t._v("上传")])],1)]):"view-select"!==t.schema.control||t.readonly?"textarea"===t.schema.control?e("a-textarea",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,defaultValue:t.value,disabled:t.readonly,maxLength:t.schema.maxLength?t.schema.maxLength:512,"auto-size":{minRows:t.schema.params&&t.schema.params.control&&t.schema.params.control.minRows||1,maxRows:t.schema.params&&t.schema.params.control&&t.schema.params.control.maxRows||10},allowClear:""},on:{blur:function(e){return t.$emit("change",e.target.value)},pressEnter:function(e){return t.$emit("change",e.target.value)}}}):"csv-json"===t.schema.control?e("span",[e("a-textarea",{staticStyle:{width:"100%","min-width":"199px"},attrs:{defaultValue:t.value,placeholder:t.placeholder,disabled:t.readonly,maxLength:t.schema.maxLength?t.schema.maxLength:512,"auto-size":{minRows:t.schema.params&&t.schema.params.control&&t.schema.params.control.minRows||1,maxRows:t.schema.params&&t.schema.params.control&&t.schema.params.control.maxRows||10},allowClear:""},on:{blur:function(e){return t.$emit("change",e.target.value)},pressEnter:function(e){return t.$emit("change",e.target.value)}}})],1):"tree-suggest"===t.schema.control?e("a-tree-select",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,dropdownStyle:{maxHeight:"300px",overflow:"auto"},treeData:t.async?t.asyncTreeData:t.treeData,loadData:t.async&&t.handleAsyncLoadData||null,allowClear:"",value:t.value},on:{change:function(e){return t.$emit("change",e)}}}):"tree-suggests"===t.schema.control?e("a-tree-select",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,dropdownStyle:{maxHeight:"300px",overflow:"auto"},treeData:t.async?t.asyncTreeData:t.treeData,loadData:t.async&&t.handleAsyncLoadData||null,allowClear:"",multiple:"",value:t.value?t.value.split(","):void 0},on:{change:function(e){return t.$emit("change",e?e.join(","):void 0)}}}):"tree-select"===t.schema.control?e("div",[t._e(),e("a-tree",{attrs:{replaceFields:{title:"label"},treeData:t.treeUrl?t.loadTreeData:t.async?t.asyncTreeData:t.treeData,selectedKeys:[t.defaultValue],loadData:t.async&&t.handleAsyncLoadData||null,defaultExpandedKeys:t.treeUrl?[t.loadTreeData[0]&&t.loadTreeData[0].key]:[t.treeData[0]&&t.treeData[0].key]},on:{select:t.handleTreeSelect}})],1):"password"===t.schema.control?e("a-input-password",{tag:"component",staticStyle:{width:"100%","min-width":"199px"},attrs:{name:t.schema.name,placeholder:t.placeholder,allowClear:""},on:{change:function(e){return t.$emit("change",e.target.value)}}}):"editor"===t.schema.control?e("Editor",{staticStyle:{width:"100%","min-width":"199px"},attrs:{value:t.formModel[t.schema.name],placeholder:t.placeholder,disabled:t.readonly,params:t.schema.params||void 0},on:{change:function(e){return t.$emit("change",e)}}}):"verify"===t.schema.control?e("VerificationCode",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,url:t.schema.params.url,time:t.schema.params.time,phone:t.formModel[t.schema.params.phoneName]},on:{change:function(e){return t.$emit("change",e)}}}):"map-marker"===t.schema.control?e("MapMarker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,name:t.schema.name,mapCenter:t.schema.params&&(t.schema.params.mapCenter?JSON.parse(t.schema.params.mapCenter):t.schema.params.control.mapCenter)},on:{change:function(e){return t.$emit("change",e)},map:t.handleMapComplete},model:{value:t.formModel[t.schema.name],callback:function(e){t.$set(t.formModel,t.schema.name,e)},expression:"formModel[schema.name]"}}):"map-polygon"===t.schema.control?e("MapPolygon",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,name:t.schema.name,mapCenter:t.schema.params&&(t.schema.params.mapCenter?JSON.parse(t.schema.params.mapCenter):t.schema.params.control.mapCenter)},on:{change:function(e){return t.$emit("change",e)}},model:{value:t.formModel[t.schema.name],callback:function(e){t.$set(t.formModel,t.schema.name,e)},expression:"formModel[schema.name]"}}):"transfer"===t.schema.control?e("Transfer",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,treeUrl:t.schema.params.control.url,titleName:t.schema.params.control.displayValue,keyName:t.schema.params.control.realValue},on:{submit:t.handlePickerComplete,selected:t.handlePickerSelected},model:{value:t.formModel[t.schema.name],callback:function(e){t.$set(t.formModel,t.schema.name,e)},expression:"formModel[schema.name]"}}):e("a-".concat(t.type),{ref:"aInput",tag:"component",staticClass:"form-item",attrs:{defaultValue:t.value,name:t.schema.name,placeholder:t.placeholder,disabled:t.readonly,allowClear:""},on:{blur:function(e){return t.$emit("change",e.target.value)},pressEnter:function(e){return t.$emit("change",e.target.value)}}}):e("a-input",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,"read-only":"",value:t.valueLabel,allowClear:""}},[e("a-icon",{attrs:{slot:"addonAfter",type:"search"},on:{click:function(e){return t.handlePickerShow(t.schema)}},slot:"addonAfter"})],1),t.pickerViewShow?e("Popup",{attrs:{visible:t.pickerViewShow,title:t.schema.alias,type:"modal",okButtonProps:{props:{icon:"check"}},cancelButtonProps:{props:{icon:"close"}}},on:{ok:t.handlePickerComplete,close:t.handlePickerClose,cancel:t.handlePickerClose}},[t.pickerViewShow?e("Picker",t._b({ref:"picker",attrs:{viewKey:t.schema.name,params:{filters:t.pickerFilter,route:t.pickerRoute},mode:"picker"},on:{selected:t.handlePickerSelected}},"Picker",t.pickerViewOptions,!1)):t._e()],1):t._e()],2):t._e()},pn=[];function vn(t){return vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vn(t)}function yn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */yn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==vn(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(vn(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function mn(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function gn(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){mn(i,n,o,a,s,"next",t)}function s(t){mn(i,n,o,a,s,"throw",t)}a(void 0)}))}}function bn(t){return kn(t)||xn(t)||_n(t)||wn()}function wn(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _n(t,e){if(t){if("string"===typeof t)return On(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?On(t,e):void 0}}function xn(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function kn(t){if(Array.isArray(t))return On(t)}function On(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function En(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Sn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?En(Object(r),!0).forEach((function(e){jn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):En(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jn(t,e,r){return e=Nn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Nn(t){var e=Ln(t,"string");return"symbol"==vn(e)?e:String(e)}function Ln(t,e){if("object"!=vn(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=vn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Pn={props:{schema:{type:Object},formModel:{type:Object},type:{type:String,enum:["cell","divider","computed","text","number","checkbox","radio","switch","textarea","rate","select","slider","upload","cascader","transfer","color","search","date","time","month","week","range","signature","view","tree","box","html","markdown","code","location","mentions","face","photos","files","conditions","flow","array","matrix","table","sheet","nested"],default:"input"},prop:{type:String},labelType:{type:[String,Boolean],default:!0},value:{type:[String,Boolean,Array,Number,Object,FileList,File]},params:{type:[Object],default:function(){return{}}},required:{type:Boolean,default:!1},isFilter:{type:Boolean,default:!1}},model:{prop:"value",event:"change"},inject:["view"],data:function(){return{pickerViewOptions:{},pickerViewShow:!1,filterRules:[],showRules:[],hideRules:[],requireRules:[],swiftRules:[],showModel:!0,requireModel:this.required,reUpload:!1,selections:[],valueLabel:null,valueReal:null,defaultFileList:[],defaultValue:this.formModel[this.schema.name]||"",defaultFileSize:null,asyncTreeData:[],loadTreeData:[],multiConditionCheck:{},multiConditionStatus:!0,changeMode:"",yearPickerPanelOpen:!1}},computed:{placeholder:function(){var t;return null!==(t=this.schema)&&void 0!==t&&null!==(t=t.params)&&void 0!==t&&null!==(t=t.control)&&void 0!==t&&t.placeholder?this.schema.params.control.placeholder:this.schema.alias||this.schema.name},label:function(){return!1===this.labelType?null:this.schema.alias||this.schema.name},help:function(){return""},extra:function(){return""},readonly:function(){return!!this.schema.params&&this.schema.params.readonly},validateStatus:function(){return null},options:function(){var t=this;if(this.schema.list){var e,r=this.swiftRules[0];return r&&this.formModel[r.key]&&(e=r.value.find((function(e){return e.value===t.formModel[r.key]}))),this.schema.list.split(",").filter((function(t){return!e||e.items.includes(t.split(":")[0])})).map((function(e){var r=e.split(":");return"radio-image"===t.schema.control?{label:r[1]?"".concat(r[1],":").concat(r[2]):r[0],value:r[0]}:{label:r[1]?r[1]:r[0],value:r[0]}}))}if("wordbook"===this.schema.dataType&&this.schema.typeObject){var n=this.schema.typeObject.model.attrs.find((function(t){return"title"===t.display})),o=this.schema.typeObject.model.idName;n=n.name||o;var i=this.filterRules.length?this.schema.typeObject.data.collection.filter((function(e){return t.filterRules.every((function(r){return we(Object.fromEntries([[r.key,e[r.value]]]),Sn(Sn({},t.formModel),{},{$parent:t.params.$parent}))}))})):this.schema.typeObject.data.collection;return i.map((function(t){return{label:t[n],value:t[o]}}))}return this.schema.params&&this.schema.params.control&&this.schema.params.control.options?this.formModel[this.schema.params.control.options].split(",").map((function(t){var e=t.split(":");return{label:"".concat(e[0]," (").concat(e[1],")"),value:e[1]}})):[]},treeData:function(){var t=this;if("wordbook"===this.schema.dataType&&this.schema.typeObject){var e=this.schema.typeObject.model.attrs.find((function(t){return"title"===t.display})),r=this.schema.typeObject.model.idName;e=e.name||r;var n=function n(o){return o.filter((function(e){return!t.filterRules.length||t.filterRules.every((function(r){return we(Object.fromEntries([[r.key,e[r.value]]]),Sn(Sn({},t.formModel),{},{$parent:t.params.$parent}))}))})).map((function(o){return{label:o[e],value:o[r],key:o[r],disabled:t.schema.params&&t.schema.params.control.leafCheck&&!!o._childList,children:o._childList?n(o._childList):null}}))},o=this.schema.typeObject.data,i=o.node,a=o.collection,s=this.async&&i?[{label:i[e],value:i[r],key:i[r],children:n(a)}]:n(a);return s}return[]},rules:function(){var t=["date","time","month","week","range","datetime"].includes(this.schema.control),e={required:!0,message:"".concat(this.schema.alias,"不能为空"),trigger:t?"change":"blur"};return!this.isFilter&&this.requireModel?[e]:null},configs:function(){return this.schema.configs&&this.schema.configs.length&&Object.fromEntries(this.schema.configs.map((function(t){return[t.key,t.value]})))},pickerFilter:function(){var t=this.schema.params,e=t&&t.control&&t.control.filters,r={};if(!e)return null;for(var n in e){var o=e[n].split(".").reduce((function(t,e){return t&&t[e]||void 0}),Sn(Sn(Sn({},this.view.params),this.params),this.formModel));r[n]=void 0===o?e[n]:o}return r},pickerRoute:function(){var t=this.schema.params,e=t&&t.control&&t.control.route?t.control.route:null;return e},async:function(){var t=this.schema,e=t.dataType,r=t.typeObject;return"wordbook"===e&&r&&r.model.sync||!1},treeUrl:function(){if(!this.schema.params)return null;var t=this.schema.params.treeUrl;return t||null},defaultValueUrl:function(){var t=this.schema.params,e=void 0===t?{}:t,r=e.control,n=void 0===r?{}:r,o=n.defaultValueUrl,i=void 0===o?"":o;return i}},created:function(){this.init()},methods:{init:function(){var t=this.schema,e=t.control,r=t.metaType;this.defaultValueUrl&&!this.defaultValue&&this.getDefaultValueUrl(),this.watch(),"view-select"===e&&this.initPicker(),"Boolean"!==r&&"switch"!==e||this.initSwitch(),["image","file","files"].includes(e)&&this.initFile(),this.configs&&this.configs.required&&(this.requireModel=!0),this.async&&this.treeData&&(this.asyncTreeData=this.treeData),this.treeUrl&&this.handleLoadTreeData()},initPicker:function(){var t=this.schema,e=t.params,r=void 0===e?{}:e,n=r.control,o=void 0===n?{}:n,i=o.displayValue,a=o.realValue,s=o.labelValue,c=t.name,l=s||i||c,u=a;this.valueLabel=this.formModel[l],this.valueReal=this.formModel[u]},initSwitch:function(){void 0===this.formModel[this.schema.name]&&this.$emit("change",!1)},initFile:function(){var t=this.view,e=this.schema.name,r=this.formModel,n=r[e],o="".concat(t.apiURL,"/").concat(r[t.idName],"?_file=").concat(e,"&_mode=inline");if(n)try{var i=JSON.parse(n);Array.isArray(i)&&(this.defaultFileList=i)}catch(a){this.defaultFileList=[{uid:0,url:o,name:n}]}},initDate:function(){},reset:function(){},watch:function(){var t=this,e=this.schema.params,r=void 0===e?{}:e,n=r.control,o=void 0===n?{}:n,i=o.events,a=o.changeMode;if(a&&(this.changeMode=a),i){var s=function(){var e=c.split(":"),r=[];Array.isArray(i[c])?r.push.apply(r,bn(i[c])):r.push(i[c]),r.forEach((function(r){var n=r.split(";");n.forEach((function(r){var n=r.split("|");"filter"===n[0]?t.filterRules.push({key:e[1],value:n[1]}):"show"===n[0]?t.showRules.push({key:e[1],value:n[1]}):"hide"===n[0]?t.hideRules.push({key:e[1],value:n[1]}):"require"===n[0]?t.requireRules.push({key:e[1],value:n[1]}):"swift"===n[0]&&t.swiftRules.push({key:e[1],value:n[1].split("/").map((function(t){var e=t.split(":");return{value:e[0],items:e[1].split(",")}}))})}))}))};for(var c in i)s()}this.showRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){t.show(e.key,e.value.split(","))})),t.show(e.key,e.value.split(","))})),this.hideRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){t.hide(e.key,e.value.split(","))})),t.hide(e.key,e.value.split(","))})),this.requireRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){t.require(e.key,e.value.split(","))})),t.require(e.key,e.value.split(","))})),this.filterRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){if(t.schema.required&&t.options.length){var e=t.options.find((function(e){return e.value===t.value}));t.$emit("change",e&&t.value||t.options[0].value)}else t.$emit("change","")}))})),this.swiftRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(e){t.schema.required&&t.options.length&&e?t.$emit("change",t.options[0].value):t.$emit("change","")}))}))},require:function(t,e){var r=this.params.$parent;e.includes(Sn(Sn({},r),this.formModel)[t])?this.requireModel=!0:"filter"!==this.type&&(this.requireModel=!1)},show:function(t,e){var r=this.params.$parent;e.includes(Sn(Sn({},r),this.formModel)[t])?(this.showModel=!0,this.$emit("change",this.defaultValue)):"filter"!==this.type&&(this.showModel=!1,this.$emit("change","")),this.handleMultiConditionCheck(t,this.showModel,"show")},hide:function(t,e){var r=this.params.$parent;e.includes(Sn(Sn({},r),this.formModel)[t])?(this.showModel=!1,this.$emit("change","")):"filter"!==this.type&&(this.showModel=!0,this.$emit("change",this.defaultValue)),this.handleMultiConditionCheck(t,this.showModel,"hide")},handleMultiConditionCheck:function(t,e,r){t in this.multiConditionCheck?this.multiConditionCheck[t]=e:this.$set(this.multiConditionCheck,t,e),"every"===this.changeMode?this.multiConditionStatus=Object.values(this.multiConditionCheck).every((function(t){return t})):"some"===this.changeMode&&(this.multiConditionStatus=Object.values(this.multiConditionCheck).some((function(t){return t})))},fill:function(){},filterOption:function(t,e){return e.componentOptions.children[0].text.toLowerCase().indexOf(t.toLowerCase())>=0},expression:function(){},handlePickerShow:function(){var t=this.schema.params,e=void 0===t?{}:t,r=e.control,n=void 0===r?{}:r,o=n.multiple;this.pickerViewOptions={schema:this.schema,filters:this.pickerFilter,pickerMode:o?"multiple":"single"},this.pickerViewShow=!0},handlePickerSelected:function(t){this.selections=t},handlePickerClose:function(){this.pickerViewShow=!1,this.selections=[]},handlePickerComplete:function(){var t=this.schema,e=t.control,r=t.params,n=void 0===r?{}:r,o=n.control,i=void 0===o?{}:o,a=i.displayValue,s=i.realValue,c=i.multiple,l=i.fills,u=this.$refs.picker&&this.$refs.picker.$refs.view,f=s||u.idName,h=a||u.titleName||u.idName;if(!this.selections.length)return"transfer"===e&&this.$emit("change",""),this.$message.error("请选择数据");if(l){var d=this.selections[0],p=Object.keys(l).map((function(t){return{name:t,value:d[l[t]]}}));this.$emit("fill",p)}this.$emit("change",c?this.selections.map((function(t){return t[f]})).join(","):this.selections[0][f]),this.valueLabel=c?this.selections.map((function(t){return t[h]})).join(","):this.selections[0][h],this.valueReal=c?this.selections.map((function(t){return t[f]})).join(","):this.selections[0][f],this.$refs.item&&this.$refs.item.clearValidate(),this.handlePickerClose()},handleMapComplete:function(t){var e=this.schema.params,r=void 0===e?{}:e,n=r.control,o=void 0===n?{}:n,i=o.fills;if(i){var a=Object.keys(i).map((function(e){return{name:e,value:t[i[e]]}}));this.$emit("fill",a)}},handleChange:function(){},handleReupload:function(){this.reUpload=!0},handleAsyncLoadData:function(t){var e=this;return gn(yn().mark((function r(){var n,o,i,a,s,c,l;return yn().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.schema.typeObject.model,o=n.attrs,i=n.idName,a=e.view.apiURL,s=o.find((function(t){return"title"===t.display})),s=s.name||i,r.next=6,e.$api.get("".concat(a,"/").concat(e.schema.name,"?_node=").concat(t.eventKey),{baseURL:""});case 6:return c=r.sent,l=c.data.collection,t.dataRef.children=l.map((function(t){return{label:t[s],value:t[i],key:t[i]}})),e.asyncTreeData=bn(e.asyncTreeData),r.abrupt("return",new Promise((function(t){return t()})));case 11:case"end":return r.stop()}}),r)})))()},handleLoadTreeData:function(){var t=this;return gn(yn().mark((function e(){var r,n,o,i,a,s,c;return yn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.treeUrl||!t.schema.typeObject){e.next=12;break}return e.next=3,t.$api.get("".concat(t.treeUrl,"?").concat(j.a.stringify(t.pickerFilter)));case 3:r=e.sent,n=r.data.collection,o=t.schema.typeObject.model.attrs.find((function(t){return"title"===t.display})),i=t.schema.typeObject.model.idName,o=o.name||i,a=function e(r){return r.map((function(r){return{label:r[o],value:r[i],key:r[i],disabled:t.schema.params&&t.schema.params.control.leafCheck&&!!r._childList,children:r._childList?e(r._childList):null}}))},s=t.schema.typeObject.data.node,c=t.async&&s?[{label:s[o],value:s[i],key:s[i],children:a(n)}]:a(n),t.loadTreeData=bn(c);case 12:case"end":return e.stop()}}),e)})))()},handleFilesChange:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=this.$el.getElementsByTagName("input")[0],n=r.files[0].size,o=e?this.unitConversion(e):0;e&&n>o?(this.$message.error("上传文件大小不能超过".concat(e)),this.reUpload=!1):this.$emit("change",r.files[0])},transformList:function(){},clearValidate:function(){},beforeUpload:function(t){return this.$emit("change",t),this.$refs.item.clearValidate(),!1},handleRemove:function(t){this.defaultFileList.splice(t,1),this.$emit("change",this.defaultFileList)},beforeFilesUpload:function(t){var e=t.size,r=t.name,n=this.defaultFileSize?this.unitConversion(this.defaultFileSize):0;return this.defaultFileSize&&e>n?this.$message.error("上传 ".concat(r," 文件大小不能超过").concat(this.defaultFileSize),5):this.defaultFileList.push(t),this.$emit("change",this.defaultFileList),this.$refs.item.clearValidate(),!1},setFileSize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.defaultFileSize=t},unitConversion:function(t){var e=0;return e=-1!==t.indexOf("KB")?1024*Number(t.split("KB")[0]):-1!==t.indexOf("MB")?1024*Number(t.split("MB")[0])*1024:Number(t),e},handleTreeSelect:function(t){this.schema.required&&!t.length||(this.defaultValue=t[0],this.$emit("change",t[0]))},getDefaultValueUrl:function(){var t=this;return gn(yn().mark((function e(){var r,n,o,i,a,s,c;return yn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$api.get("/dataset/".concat(t.defaultValueUrl,"?").concat(j.a.stringify(t.$store.state.user)));case 3:r=e.sent,n=r.data.data,o=void 0===n?[]:n,o.length&&t.$emit("change",o[0].start_time),e.next=15;break;case 9:e.prev=9,e.t0=e["catch"](0),e.t0.response||t.$message.error("网络请求错误,请检查您的网络连接。"),i=e.t0.response,a=i.status,s=i.data,c=s&&s.content||"系统错误请与管理员联系。",t.$message.error("".concat(a,", ").concat(c));case 15:case"end":return e.stop()}}),e,null,[[0,9]])})))()},disableDateFn:function(t){var e=this.schema.params&&this.schema.params.control?this.schema.params.control:null;if(e&&e.disableDateValidate){var r=e.disableDateValidate,n=new Function("current","moment","return ".concat(r));return n(t,this.moment)}return null}}},Cn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-quill-editor"},[e("quill-editor",{ref:"quillEditor",attrs:{options:t.editorOption},on:{change:function(e){return t.onEditorChange(e)},ready:function(e){return t.onEditorReady(e)}}}),e("input",{staticStyle:{display:"none"},attrs:{type:"file",multiple:""},on:{change:t.handleUploadChange}})],1)},An=[],Tn=(r("690b"),r("521b"),r("55ab"),r("37eb"));function Rn(t){return Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rn(t)}function Dn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Dn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Rn(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Rn(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function In(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Mn(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){In(i,n,o,a,s,"next",t)}function s(t){In(i,n,o,a,s,"throw",t)}a(void 0)}))}}function qn(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Bn(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Bn(t,e){if(t){if("string"===typeof t)return Fn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fn(t,e):void 0}}function Fn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var $n={props:{value:{type:String,default:""},placeholder:{type:String,default:"请编辑内容"},disabled:{type:Boolean},params:{type:Object}},components:{quillEditor:Tn["quillEditor"]},computed:{editorParams:function(){return this.params&&this.params.control&&this.params.control.toolbar?JSON.parse(this.params.control.toolbar):null}},data:function(){return{content:this.value,editorOption:{placeholder:this.disabled?"当前为不可编辑状态":this.placeholder,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["image","video"]]}},baseUrl:window.location.origin,quill:null,pos:0}},created:function(){this.editorParams&&(this.editorOption.modules.toolbar=this.editorParams)},mounted:function(){this.$refs.quillEditor.quill.getModule("toolbar").addHandler("image",this.handleImage),this.quill=this.$refs.quillEditor.quill,this.disabled&&this.$refs.quillEditor.quill.enable(!1)},methods:{onEditorChange:function(t){t.editor;var e=t.html;t.text;this.$emit("change",e)},onEditorReady:function(t){t.container.querySelector(".ql-blank").innerHTML=this.content},handleImage:function(){var t=document.querySelector('.form-quill-editor input[type="file"]');t&&t.click()},handleUploadChange:function(t){var e=new FormData,r=t.target.files;if(r&&r.length){var n,o=qn(r);try{for(o.s();!(n=o.n()).done;){var i=n.value;e.append(i.lastModified+i.size,i)}}catch(a){o.e(a)}finally{o.f()}}this.getfileurl(e),t.target.value=""},getfileurl:function(t){var e=this;return Mn(Dn().mark((function r(){var n,o,i;return Dn().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,e.$api.post("".concat(e.baseUrl,"/file/getfileurl"),t);case 2:n=r.sent,o=n.data,i=n.status,200===i&&o.forEach((function(t){e.insertEmbedImage("".concat(e.baseUrl).concat(t))}));case 6:case"end":return r.stop()}}),r)})))()},insertEmbedImage:function(t){var e;this.pos=(null===(e=this.quill.getSelection())||void 0===e?void 0:e.index)||0,this.quill.insertEmbed(this.pos,"image",t),this.quill.setSelection(this.pos+1)}}},Vn=$n,Hn=(r("80ad"),qr(Vn,Cn,An,!1,null,null,null)),Un=Hn.exports,Gn=function(){var t=this,e=t._self._c;return e("a-input-group",{attrs:{compact:""}},[e("a-input",{staticStyle:{width:"60%"},attrs:{placeholder:t.placeholder,allowClear:""},on:{change:function(e){return t.$emit("change",e.target.value)}}}),e("a-button",{staticStyle:{width:"40%"},attrs:{disabled:t.disabled},on:{click:t.getVerification}},[t._v(" "+t._s(t.text)+" ")])],1)},zn=[];function Kn(t){return Kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kn(t)}function Yn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Yn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Kn(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Kn(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Wn(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Zn(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Wn(i,n,o,a,s,"next",t)}function s(t){Wn(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Jn={mixins:[hn],props:{phone:{type:String,default:""},url:{type:String},time:{type:String,default:"60"},placeholder:{type:String}},data:function(){return{disabled:!1,timer:this.time}},computed:{text:function(){return this.disabled?"".concat(this.timer,"秒后重新获取"):"获取短信验证码"}},methods:{getVerification:function(){var t=this;return Zn(Yn().mark((function e(){var r,n,o,i,a;return Yn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!==t.phone){e.next=3;break}return t.$message.error("手机号码不能为空"),e.abrupt("return");case 3:return t.disabled=!0,r=setInterval((function(){t.timer--,t.timer<=0&&t.reset(r)}),1e3),e.prev=5,e.next=8,t.$api.post(t.url,{phone:t.phone});case 8:n=e.sent,o=n.data,i=n.status,200===i&&t.$message.success(o.content),e.next=22;break;case 14:if(e.prev=14,e.t0=e["catch"](5),e.t0.response){e.next=19;break}return t.$message.error("网络请求错误,请检查您的网络连接。"),e.abrupt("return");case 19:a=e.t0.response.data,t.$message.error(a.content),t.reset(r);case 22:case"end":return e.stop()}}),e,null,[[5,14]])})))()},reset:function(t){this.disabled=!1,this.timer=this.time,clearInterval(t)}}},Xn=Jn,Qn=qr(Xn,Gn,zn,!1,null,null,null),to=Qn.exports;function eo(t){return eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eo(t)}function ro(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function no(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ro(Object(r),!0).forEach((function(e){oo(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ro(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function oo(t,e,r){return e=io(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function io(t){var e=ao(t,"string");return"symbol"==eo(e)?e:String(e)}function ao(t,e){if("object"!=eo(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=eo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var so=function(){var t=this,e=t._self._c;return e("div",[e("a-input",{attrs:{placeholder:t.placeholder,allowClear:""},on:{change:t.handleChange},model:{value:t.markerVal,callback:function(e){t.markerVal=e},expression:"markerVal"}},[e("a-icon",{attrs:{slot:"addonAfter",type:"environment"},on:{click:t.showModal},slot:"addonAfter"})],1),e("a-modal",t._b({attrs:{title:t.placeholder},on:{ok:t.submit,cancel:t.cancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},"a-modal",no({},t.fullscreenOptions),!1),[e("el-amap-search-box",{staticClass:"amap-search-box",attrs:{"search-option":t.searchOption,"on-search-result":t.handleSearch}}),e("el-amap",{staticClass:"amap-box",attrs:{vid:"amap-vue-marker".concat(t._uid),center:t.center,plugin:t.plugin,zoom:t.zoom,"amap-manager":t.amapManager,events:t.events}},t._l(t.markers,(function(t){return e("el-amap-marker",{key:t.id,attrs:{position:t.path,title:t.title}})})),1)],1)],1)},co=[],lo=r("5aeb"),uo={model:{prop:"value",event:"change"},props:{placeholder:{type:String,default:""},name:{type:String,default:""},value:{type:String,default:""},mapCenter:{type:Array,default:function(){return[116.405285,39.904989]}},mapZoom:{type:Number,default:18}},data:function(){var t=this;return{visible:!1,markerVal:this.value,fullscreenOptions:{width:"100%",bodyStyle:{height:"".concat(document.body.clientHeight-108,"px"),overflowY:"auto",padding:"0"},dialogStyle:{padding:0},centered:!0},mapInstance:null,center:this.mapCenter,zoom:this.mapZoom,amapManager:null,markers:[],mouseTool:null,geocoder:null,geolocation:null,plugin:[{pName:"Scale"},{pName:"ToolBar",position:"RB"}],events:{init:function(e){t.mapInstance=e,t.initMap()},zoomend:function(){t.zoom=t.mapInstance.getZoom()}},searchOption:{citylimit:!1,autoFitView:!0},position:{lng:0,lat:0,name:""}}},mounted:function(){this.amapManager=new lo["AMapManager"]},methods:{handleChange:function(t){var e=t.target.value;this.markerVal=e,this.markerVal||this.initDefault(),this.$emit("change",this.markerVal)},initMap:function(){var t=this;lo["lazyAMapApiLoaderInstance"]&&lo["lazyAMapApiLoaderInstance"].load().then((function(){t.markerVal&&t.initMarkers(),AMap.plugin(["AMap.MouseTool"],(function(){t.mouseTool=new AMap.MouseTool(t.mapInstance),t.drawMarker()})),t.geocoder=new AMap.Geocoder}))},drawMarker:function(){var t=this;this.mouseTool.marker({visible:!1}),this.mouseTool.on("draw",(function(e){var r=e.obj.w.position,n=r.lng,o=r.lat;t.position.lat=o,t.position.lng=n,t.getAddress(n,o),t.markers.length&&(t.markers=[]),t.markers.push({id:t._uid,path:[n,o],title:"[".concat(n,",").concat(o,"]")})}))},initMarkers:function(){var t=this.markerVal.split("/");this.zoom=t.length&&t[1]?t[1]:18;var e=t.length&&t[0]&&t[0].split(",");e.length&&(this.center=[Number(e[0]),Number(e[1])],this.markers=[{id:this._uid,path:[Number(e[0]),Number(e[1])],title:"[".concat(Number(e[0]),",").concat(Number(e[1]),"]")}])},showModal:function(){this.visible=!0,this.markerVal&&this.initMarkers()},submit:function(t){if(this.markers.length){var e=this.markers[0]&&this.markers[0].path[0],r=this.markers[0]&&this.markers[0].path[1],n="".concat(e,", ").concat(r,"/").concat(this.zoom);this.markerVal=n,this.$emit("change",this.markerVal);var o=Object.assign({zoom:this.zoom},this.position);this.$emit("map",o)}else this.initDefault();this.visible=!1},cancel:function(){this.markers.length&&!this.markerVal&&this.initDefault(),this.visible=!1},initDefault:function(){this.markers=[],this.center=this.mapCenter,this.zoom=this.mapZoom},handleSearch:function(t){if(this.markers=[],t&&t.length){var e=t[0],r=e.lat,n=e.lng;this.position.lat=r,this.position.lng=n,this.getAddress(n,r),this.center=[n,r],this.markers.push({id:this._uid,path:[n,r],title:"[".concat(n,",").concat(r,"]")})}},getAddress:function(t,e){var r=this;this.geocoder.getAddress([t,e],(function(t,e){"complete"===t&&e.regeocode?r.position.name=e.regeocode.formattedAddress:r.$message.error("根据经纬度查询地址失败")}))}}},fo=uo,ho=(r("ff21"),qr(fo,so,co,!1,null,"09b502b8",null)),po=ho.exports;function vo(t){return vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vo(t)}function yo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function mo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yo(Object(r),!0).forEach((function(e){go(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yo(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function go(t,e,r){return e=bo(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bo(t){var e=wo(t,"string");return"symbol"==vo(e)?e:String(e)}function wo(t,e){if("object"!=vo(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=vo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var _o=function(){var t=this,e=t._self._c;return e("div",[e("a-input",{attrs:{placeholder:t.placeholder,allowClear:""},on:{change:t.handleChange},model:{value:t.markers,callback:function(e){t.markers=e},expression:"markers"}},[e("a-icon",{attrs:{slot:"addonAfter",type:"environment"},on:{click:t.showModal},slot:"addonAfter"})],1),e("a-modal",t._b({attrs:{title:t.placeholder},on:{ok:t.submit,cancel:t.cancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},"a-modal",mo({},t.fullscreenOptions),!1),[e("el-amap-search-box",{staticClass:"amap-search-box",attrs:{"search-option":t.searchOption,"on-search-result":t.handleSearch}}),e("el-amap",{staticClass:"amap-box",attrs:{vid:"amap-vue-polygon".concat(t._uid),center:t.center,plugin:t.plugin,zoom:t.zoom,"amap-manager":t.amapManager,events:t.events}})],1)],1)},xo=[];function ko(t){return ko="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ko(t)}function Oo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Eo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Oo(Object(r),!0).forEach((function(e){So(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Oo(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function So(t,e,r){return e=jo(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jo(t){var e=No(t,"string");return"symbol"==ko(e)?e:String(e)}function No(t,e){if("object"!=ko(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ko(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Lo={model:{prop:"value",event:"change"},props:{placeholder:{type:String,default:""},name:{type:String,default:""},value:{type:String,default:""},mapCenter:{type:Array,default:function(){return[116.405285,39.904989]}},mapZoom:{type:Number,default:18}},data:function(){var t=this;return{visible:!1,fullscreenOptions:{width:"100%",bodyStyle:{height:"".concat(document.body.clientHeight-108,"px"),overflowY:"auto",padding:"0"},dialogStyle:{padding:0},centered:!0},mapInstance:null,center:this.mapCenter,zoom:this.mapZoom,markers:this.value,polygonInstance:null,polygons:null,amapManager:null,mouseTool:null,polygonOption:{fillColor:"#2B6CDD",fillOpacity:.5,strokeColor:"#2B6CDD",strokeWeight:1},plugin:[{pName:"Scale"},{pName:"ToolBar",position:"RB"}],events:{init:function(e){t.mapInstance=e,t.initMap()},zoomend:function(){t.zoom=t.mapInstance.getZoom()}},searchOption:{citylimit:!1,autoFitView:!0}}},mounted:function(){this.amapManager=new lo["AMapManager"]},methods:{initMap:function(){var t=this;lo["lazyAMapApiLoaderInstance"].load().then((function(){AMap.plugin(["AMap.MouseTool"],(function(){t.mouseTool=new AMap.MouseTool(t.mapInstance),t.drawPolygon()}))}))},handleChange:function(t){var e=t.target.value;this.markers=e,this.markers||this.initDefault(),this.$emit("change",this.markers)},drawPolygon:function(){var t=this;this.mouseTool.polygon(),this.mouseTool.on("draw",(function(e){var r=e.obj.w.path,n=r.map((function(t){return[t.lng,t.lat]}));t.initPolygon(n),t.mouseTool.close(!0)}))},initPolygon:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];setTimeout((function(){t.mapInstance&&(t.polygonInstance&&t.mapInstance.remove(t.polygonInstance),t.polygonEditor&&t.polygonEditor.close(),t.polygonInstance=new AMap.Polygon(Eo({map:t.mapInstance,path:e},t.polygonOption)),t.polygons=e,t.polygonEditor=new AMap.PolyEditor(t.mapInstance,t.polygonInstance),t.polygonEditor.open(),t.polygonEditor.on("adjust",(function(e){var r=e.target.w.path;t.polygons=r})),t.polygonEditor.on("end",(function(e){e.type,e.target;t.drawPolygon()})))}),500)},showModal:function(){if(this.visible=!0,this.markers){var t=this.markers.split("/"),e=t.length&&t[0];this.zoom=t.length&&t[1]?t[1]:18;var r=JSON.parse(e);this.center=r[0]?[Number(r[0][0]),Number(r[0][1])]:[98.5868,24.434008],this.initPolygon(r)}},submit:function(t){if(this.polygons){var e=this.polygons.map((function(t){return[t.lng,t.lat]}));this.markers=JSON.stringify(e)+"/".concat(this.zoom),this.polygonEditor&&this.polygonEditor.close()}else this.initDefault();this.$emit("change",this.markers),this.visible=!1},cancel:function(){this.markers||this.initDefault(),this.polygonEditor&&this.polygonEditor.close(),this.visible=!1},initDefault:function(){this.polygonInstance&&this.mapInstance&&this.mapInstance.remove(this.polygonInstance),this.polygonEditor&&this.polygonEditor.close(),this.polygons=null,this.center=this.mapCenter,this.zoom=this.mapZoom},handleSearch:function(t){if(t&&t.length){var e=t[0],r=e.lat,n=e.lng;this.center=[n,r]}}}},Po=Lo,Co=(r("8c96"),qr(Po,_o,xo,!1,null,"03415b3c",null)),Ao=Co.exports;function To(t){return Mo(t)||Io(t)||Do(t)||Ro()}function Ro(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Do(t,e){if(t){if("string"===typeof t)return qo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qo(t,e):void 0}}function Io(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Mo(t){if(Array.isArray(t))return qo(t)}function qo(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Bo=function(){var t=this,e=t._self._c;return e("div",[e("a-input",{attrs:{placeholder:t.placeholder,"read-only":""},model:{value:t.checkedValues,callback:function(e){t.checkedValues=e},expression:"checkedValues"}},[e("a-icon",{attrs:{slot:"addonAfter",type:"search"},on:{click:function(e){t.visible=!0}},slot:"addonAfter"})],1),e("a-modal",{attrs:{title:t.placeholder},on:{ok:t.handleSubmit,cancel:t.handleCancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[e("a-transfer",{staticClass:"tree-transfer",attrs:{"data-source":t.dataSource,"target-keys":t.checkedKeys,render:function(t){return t.title},"show-select-all":!1,"list-style":{maxHeight:"450px",overflowY:"auto"},"show-search":""},on:{change:t.onChange,search:t.handleSearch},scopedSlots:t._u([{key:"children",fn:function(r){var n=r.props,o=n.direction,i=n.selectedKeys,a=r.on.itemSelect;return["left"===o?e("a-spin",{attrs:{spinning:t.leftLoding}},[e("a-tree",{attrs:{blockNode:"",checkable:"",checkStrictly:"",checkedKeys:[].concat(To(i),To(t.checkedKeys)),treeData:t.filterTreeNodes},on:{check:function(e,r){t.onChecked(e,r,[].concat(To(i),To(t.checkedKeys)),a)},select:function(e,r){t.onChecked(e,r,[].concat(To(i),To(t.checkedKeys)),a)}}})],1):t._e()]}}])})],1)],1)},Fo=[];function $o(t){return $o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$o(t)}function Vo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Vo=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==$o(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError($o(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Ho(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Uo(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ho(i,n,o,a,s,"next",t)}function s(t){Ho(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Go=r("9f89"),zo=/\${([\s\S]+?)}/g,Ko={model:{prop:"value",event:"change"},props:{placeholder:{type:String,default:"请选择数据"},treeUrl:{type:String,default:""},value:{type:String,default:""},titleName:{type:String,default:""},keyName:{type:String,default:""},selected:{type:Object,default:function(){return{}}}},data:function(){return{visible:!1,dataSource:[],checkedKeys:[],treeData:[],inputValue:"",leftLoding:!1,checkedValues:""}},computed:{treeNodes:function(){var t=this.treeData,e=this.titleName,r=this.keyName,n=this.checkedKeys,o=this.selected,i=function t(i){return i.map((function(i){var a;return i._childList&&(a=t(i._childList)),{title:i[e],key:i[r],children:a,disabled:n.includes(i[r])||o&&!we(o,i)}}))};return i(t)},filterTreeNodes:function(){var t=this;return this.inputValue?this.treeNodes.filter((function(e){return-1!==e.title.indexOf(t.inputValue)})):this.treeNodes},flattenTreeData:function(){var t=this,e=[];return this.treeData.forEach((function(r){e.push(r),r.children&&t.flatten(r.children)})),e}},created:function(){this.load()},methods:{load:function(){var t=this;return Uo(Vo().mark((function e(){var r,n;return Vo().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.treeUrl,n=null,!r){e.next=6;break}return e.next=5,t.$api.get(Go(r,{reInterpolate:zo})());case 5:n=e.sent;case 6:n&&n.data&&(t.treeData=n.data.collection,t.treeNodes&&t.flatten(JSON.parse(JSON.stringify(t.treeNodes)))),t.value&&(t.checkedKeys=t.value.split(","),t.setCheckValues());case 8:case"end":return e.stop()}}),e)})))()},getSelections:function(){var t=this;return this.flattenTreeData.filter((function(e){return t.checkedKeys.includes(e[t.keyName])}))},setCheckValues:function(){var t=this;this.checkedValues=this.treeNodes&&this.treeNodes.filter((function(e){return t.checkedKeys.includes(e.key)})).map((function(t){return t.title})).join(",")},onChange:function(t){this.checkedKeys=t,this.$emit("selected",this.getSelections())},isChecked:function(t,e){return-1!==t.indexOf(e)},onChecked:function(t,e,r,n){var o=e.node.eventKey;n(o,!this.isChecked(r,o))},flatten:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((function(e){t.dataSource.push({title:e.title,key:e.key}),e.children&&t.flatten(e.children)}))},handleSubmit:function(){this.setCheckValues(),this.$emit("submit",this.getSelections()),this.visible=!1},handleCancel:function(){this.$emit("selected",this.getSelections()),this.value?(this.checkedKeys=this.value.split(","),this.setCheckValues()):this.checkedKeys=[],this.visible=!1},handleSearch:function(t,e){var r=this,n=null;"left"===t&&(this.leftLoding=!0,n=setTimeout((function(){n&&clearTimeout(n),r.inputValue=e,r.leftLoding=!1}),1e3))}}},Yo=Ko,Wo=(r("9fc0"),qr(Yo,Bo,Fo,!1,null,"d5aa2650",null)),Zo=Wo.exports,Jo=function(){var t=this,e=t._self._c;return e("layout-view-blank",{tag:"component"},[e("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:t.loading,delay:100}},["multiple"===t.pickerMode?t._l(t.selections,(function(r){return e("a-tag",{key:r[t.idName],attrs:{closable:""},on:{close:function(e){return t.handleRemove(r)}}},[t._v(" "+t._s(r[t.titleName||t.idName])+" ")])})):t._e(),e("keep-alive",[t.loading?t._e():e(t.createView,t._g(t._b({ref:"view",tag:"component",attrs:{pageKey:t.pageKey,viewKey:t.viewKey,pickerMode:t.pickerMode,mode:t.mode,layout:"layout-view-model-list-embed"},on:{selected:t.handleSelected}},"component",t.$attrs,!1),t.$listeners))],1)],2)],1)},Xo=[],Qo={props:{schema:{type:Object},pickerMode:{type:String,enum:["single","multiple"],default:"single"},mode:{type:String,default:"picker"}}};function ti(t){return ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ti(t)}function ei(t){return ii(t)||oi(t)||ni(t)||ri()}function ri(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ni(t,e){if(t){if("string"===typeof t)return ai(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ai(t,e):void 0}}function oi(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ii(t){if(Array.isArray(t))return ai(t)}function ai(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function si(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */si=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==ti(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(ti(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function ci(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function li(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ci(i,n,o,a,s,"next",t)}function s(t){ci(i,n,o,a,s,"throw",t)}a(void 0)}))}}function ui(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fi(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ui(Object(r),!0).forEach((function(e){hi(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ui(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hi(t,e,r){return e=di(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function di(t){var e=pi(t,"string");return"symbol"==ti(e)?e:String(e)}function pi(t,e){if("object"!=ti(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ti(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var vi={mixins:[Qo],components:fi({},sb),data:function(){return{pageKey:null,viewKey:null,storeNamespace:null,loading:!0,selections:[],idName:"",titleName:""}},created:function(){this.initView()},computed:{createView:function(){return{extends:Ut(sb.ModelList)("".concat(this.storeNamespace))}}},methods:{create:Ut,initView:function(){var t=this;return li(si().mark((function e(){var r,n,o;return si().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.schema.configs.find((function(t){return"picker.view"===t.key})),n=r?r.value:"",o="p-".concat(n),t.$store.hasModule(o)){e.next=7;break}return J(t.$store,o,!0),e.next=7,t.$store.dispatch("".concat(o,"/loadSchema"));case 7:t.pageKey=n,t.viewKey=n,t.storeNamespace="v-".concat(n),t.loading=!1;case 11:case"end":return e.stop()}}),e)})))()},handleSelected:function(t){this.idName=this.$refs.view.idName,this.titleName=this.$refs.view.titleName,this.selections="multiple"===this.pickerMode&&"picker"!==this.$refs.view.mode?Array.from(new Set([].concat(ei(this.selections),ei(t)).map((function(t){return JSON.stringify(t)})))).map((function(t){return JSON.parse(t)})):t,this.$emit("selected",this.selections)},handleRemove:function(t){var e=this.idName,r=this.selections,n=r.findIndex((function(r){return r[e]===t[e]}));-1!==n&&r.splice(n,1),this.$emit("selected",r)}}},yi=vi,mi=qr(yi,Jo,Xo,!1,null,null,null),gi=mi.exports;function bi(t){return bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bi(t)}function wi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wi(Object(r),!0).forEach((function(e){xi(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wi(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xi(t,e,r){return e=ki(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ki(t){var e=Oi(t,"string");return"symbol"==bi(e)?e:String(e)}function Oi(t,e){if("object"!=bi(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=bi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ei=function(){var t=this,e=t._self._c;return e(t.options.component,t._g(t._b({tag:"component",scopedSlots:t._u([{key:"title",fn:function(){return[t._t("title",(function(){return[t._v(t._s(t.title))]}))]},proxy:!0},t.$slots.footer?{key:"footer",fn:function(){return[t._t("footer")]},proxy:!0}:null],null,!0)},"component",_i(_i({},t.options),t.$attrs),!1),t.$listeners),[t._t("default")],2)},Si=[],ji={props:{type:{type:String,enum:["modal","drawer","fullscreen"],default:"modal"},title:{type:String},committing:{type:Boolean,default:!1},width:{type:String},footer:{type:String}},data:function(){return{modalOptions:{component:"a-modal",width:"750px",bodyStyle:{maxHeight:this.width||"500px",overflowY:"auto"},centered:!0,footer:this.footer,maskClosable:!1},fullscreenOptions:{component:"a-modal",width:"100%",bodyStyle:{height:this.footer&&"hide"===this.footer?"".concat(document.body.clientHeight-53,"px"):"".concat(document.body.clientHeight-108,"px"),overflowY:"auto"},dialogStyle:{padding:0},centered:!0,footer:this.footer},drawerOptions:{component:"a-drawer",width:this.width||"750px",destroyOnClose:!0,bodyStyle:{padding:0},footer:this.footer},viewOptions:{component:"div"}}},computed:{options:function(){return this["".concat(this.type,"Options")]}}},Ni=ji,Li=qr(Ni,Ei,Si,!1,null,null,null),Pi=Li.exports,Ci={mixins:[Pn],components:{Editor:Un,Picker:gi,Popup:Pi,VerificationCode:to,MapMarker:po,MapPolygon:Ao,Transfer:Zo},mounted:function(){["select","chosen"].includes(this.schema.control)&&this.options.length&&([!0,"true",1,"1","Yes","Y","y","on"].includes(this.configs["select-first-option"])||this.schema.required&&![!1,"false",0,"0","No","N","n","off"].includes(this.configs["select-first-option"]))&&(this.value||this.$emit("change",this.options[0].value))},watch:{value:function(t,e){var r=this.$refs.aInput;r&&(r.setValue(t),this.$refs.item.clearValidate())}}},Ai=Ci,Ti=(r("143b"),qr(Ai,dn,pn,!1,null,null,null)),Ri=Ti.exports,Di={mixins:[hn],components:{Item:Ri},props:{columns:{type:Array},layout:{type:String,default:"inline"}},computed:{attrs:function(){return this.view.configs["filters.collapse"]?this.columns.slice(0,this.view.configs["filters.collapse"]):this.columns}},data:function(){return{collapse:!1}}},Ii=Di,Mi=qr(Ii,Yr,Wr,!1,null,null,null),qi=Mi.exports,Bi=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{display:"inline-block"}},t._l(t.groups,(function(r,n){return e("a-button-group",{key:"group-".concat(n),staticStyle:{"margin-right":"16px","flex-wrap":"wrap"}},t._l(r.actions,(function(r){return e("a-button",{key:r.id,staticStyle:{"margin-top":"2px","margin-bottom":"2px"},attrs:{type:r.primary?"primary":"default",icon:r.icon,disabled:r.disabled},on:{click:function(e){return t.handleClick(r,e)}}},[t._v(" "+t._s(r.name)+" "),"file"===r.action?e("input",{staticStyle:{display:"none"},attrs:{type:"file",name:"file"},on:{change:function(e){t.onFileChange(r,e.target.files),e.target.value=""}}}):t._e()])})),1)})),1)},Fi=[];function $i(t){return $i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$i(t)}function Vi(t,e,r){return e=Hi(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hi(t){var e=Ui(t,"string");return"symbol"==$i(e)?e:String(e)}function Ui(t,e){if("object"!=$i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=$i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Gi={props:{actions:{type:Array,default:function(){return[]}},type:{type:String,default:"button"}},computed:{groups:function(){var t=[];return this.actions.forEach((function(e,r){var n=t.length-1;e.group||!r?t.push({actions:[e]}):t[n].actions.push(e)})),t}},methods:{handleClick:function(t,e){var r=e.target.getElementsByTagName("input");"file"===t.action?(e.stopPropagation(),r[0]&&void 0===r[0].click()||e.path&&e.path[1].getElementsByTagName("input")[0].click()):this.$emit("action",t)},onFileChange:function(t,e){var r=t.list?t.list:"file";this.$emit("action",t,null,Vi({},r,e))}}},zi=Gi,Ki=qr(zi,Bi,Fi,!1,null,null,null),Yi=Ki.exports,Wi=function(){var t=this,e=t._self._c;return e("div",[t.$attrs.params.actionViewTip?e("a-alert",{staticStyle:{margin:"0 -24px 8px"},attrs:{message:t.$attrs.params.actionViewTip,"show-icon":"",banner:""}}):t._e(),e(t.createView,t._g(t._b({tag:"component",attrs:{pageKey:t.page.pageKey,viewKey:t.action.key||t.action.method.toLowerCase(),delay:!0,action:t.action}},"component",t.$attrs,!1),t.$listeners))],1)},Zi=[],Ji={inject:["page","view"],props:{action:{type:Object},modelViewType:{type:String}},computed:{createView:function(){return{extends:Ut(sb["Model".concat(this.modelViewType)])("".concat(this.view.storeNamespace))}}}},Xi=Ji,Qi=qr(Xi,Wi,Zi,!1,null,null,null),ta=Qi.exports,ea=function(){var t=this,e=t._self._c;return e("a-pagination",t._g(t._b({attrs:{"show-quick-jumper":""}},"a-pagination",t.$attrs,!1),t.$listeners))},ra=[],na={},oa=qr(na,ea,ra,!1,null,null,null),ia=oa.exports,aa=function(){var t=this,e=t._self._c;return e("span",[t.editable&&["write","updateonly"].includes(t.schema.access)?e("Item",{attrs:{formModel:t.editRow,prop:t.schema.name,schema:t.schema,params:{},labelType:!1},on:{change:function(e){return t.$emit("change",e)},fill:function(e){return t.$emit("fill",e)}},model:{value:t.editValue,callback:function(e){t.editValue=e},expression:"editValue"}}):t.component?e(t.component,t._b({tag:"component",attrs:{text:t.text}},"component",t.$props,!1)):t.script?e("span",{domProps:{innerHTML:t._s(t.text)}}):"title"===t.schema.display?e("a",{on:{click:function(e){return t.$emit("profile")}}},[t._v(" "+t._s(t.text)+" ")]):e("span",[t._v(t._s(t.text))])],1)},sa=[];function ca(t){return ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ca(t)}function la(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ua(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?la(Object(r),!0).forEach((function(e){fa(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):la(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function fa(t,e,r){return e=ha(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ha(t){var e=da(t,"string");return"symbol"==ca(e)?e:String(e)}function da(t,e){if("object"!=ca(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ca(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var pa={mixins:[Tr],components:{Item:Ri},props:["editable","value","row","schema","mode","viewURL","idName","vid","rowIndex"],data:function(){return{component:null,script:null,editValue:this.value}},computed:{text:function(){return this.formatter(this.row,this.value,this.schema)},editRow:function(){return ua({},this.row)}},created:function(){var t=this;if(this.schema&&this.schema.format){var e=this.schema.format.slice(0,8);"function"===e?this.script=this.schema.format:this.component={props:["editable","value","row","schema","mode","viewURL","idName","text","vid","rowIndex"],data:function(){return{model:{}}},methods:{profile:function(){t.$emit("profile")}},template:"title"===this.schema.display?'<a @click="profile">'.concat(this.schema.format,"</a> "):this.schema.format}}},watch:{value:function(t,e){t!==e&&(this.editValue=t)},editable:function(t){t&&this.editValue!==this.editRow[this.schema.name]&&(this.editValue=this.editRow[this.schema.name])}}},va=pa,ya=qr(va,aa,sa,!1,null,null,null),ma=ya.exports;function ga(t){return ga="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ga(t)}function ba(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function wa(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ba(Object(r),!0).forEach((function(e){_a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ba(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _a(t,e,r){return e=xa(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xa(t){var e=ka(t,"string");return"symbol"==ga(e)?e:String(e)}function ka(t,e){if("object"!=ga(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ga(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Oa={mixins:[Kt,Yt,ge,Lr,Tr,ue,fe],components:wa(wa(wa({},Kr),sb),{},{FilterForm:qi,ActionGroup:Yi,ActionView:ta,PaginationSize:ia,Popup:Pi,Cell:ma})},Ea=Oa,Sa=(r("41ea"),qr(Ea,Gt,zt,!1,null,null,null)),ja=Sa.exports,Na=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.actioning}},[e(t.layout,{tag:"component",scopedSlots:t._u([{key:"actions-none",fn:function(){return[t.routeId?e("ActionGroup",{attrs:{actions:t.backActions},on:{action:t.handleAction}}):t._e(),t.navActions.length?e("ActionGroup",{attrs:{actions:t.navActions},on:{action:t.handleAction}}):t._e()]},proxy:!0},t.actions.length?{key:"actions-single",fn:function(){return[e("ActionGroup",{attrs:{actions:t.actions},on:{action:t.handleAction}})]},proxy:!0}:null,{key:"actions-setting",fn:function(){return[e("ActionGroup",{attrs:{actions:t.settingActions},on:{action:t.handleAction}})]},proxy:!0}],null,!0)},[e("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:!t.profile}},[t.profile?e("profile-".concat(t.configs["profile.widget"]||"normal"),{tag:"component",attrs:{groups:t.groups,columns:t.columns,subviews:t.subviews,loading:t.loading,profile:t.profile,column:t.parentIds?1:2,configs:t.configs},scopedSlots:t._u([{key:"cell",fn:function(r){var n=r.value,o=r.column;return[e("Cell",{attrs:{row:t.profile,schema:o,value:n}})]}},{key:"action",fn:function(){return[e("ActionGroup",{attrs:{actions:t.actions},on:{action:t.handleAction}})]},proxy:!0}],null,!1,1366521354)}):t._e()],1),t.actionViewVisible?e("Popup",{class:{"ant-modal-tip":t.actionParams.actionViewTip},attrs:{visible:t.actionViewVisible,title:t.action.name,type:t.actionViewMode,okButtonProps:t.actionOkButtonProps,cancelButtonProps:t.actionCancelButtonProps,footer:"hide"===t.actionParams.footer?null:void 0},on:{ok:t.submitActionView,close:t.closeActionView,cancel:t.closeActionView}},[t.actionViewVisible?e("ActionView",{attrs:{action:t.action,submited:t.actionSubmited,values:t.actionModel,modelViewType:t.actionViewType,widget:t.actionViewWidget,parentIds:t.parentIds,params:t.actionParams,selections:t.profile,schema:t.schema,commitResult:t.actionCommitResult},on:{commit:t.commitActionView}}):t._e(),t.action.params&&t.action.params.autofill?e("a-row",{attrs:{slot:"footer",type:"flex",justify:"space-between",align:"middle"},slot:"footer"},[e("a-col",[e("a-checkbox",{on:{change:t.handleAutoFill}},[t._v(" 自动填充表单 ")])],1),e("a-col",[e("a-space",[e("a-button",{attrs:{icon:"close",disabled:t.committing},on:{click:t.closeActionView}},[t._v(" 取消 ")]),e("a-button",{attrs:{type:"primary",icon:"check",loading:t.committing},on:{click:t.submitActionView}},[t._v(" 确认 ")])],1)],1)],1):t._e()],1):t._e()],1)],1)},La=[];function Pa(t){return Pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pa(t)}function Ca(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ca=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Pa(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Pa(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Aa(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Ta(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Aa(i,n,o,a,s,"next",t)}function s(t){Aa(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Ra={props:{profileId:{type:String},values:{type:Object},hasList:{type:Boolean,default:!0},editMode:{type:String,default:"none",enum:["none","item","action","default"]},tileMode:{type:String,enum:["normal","portal","navigation"]},groupMode:{type:String,enum:["layout","tabs","steps"]},groupLayout:{type:String,enum:["horizontal","vertical"]},detailGroupName:{type:String,default:"详情"},detailLayout:{type:String,enum:["header","first-group","mix"]},layout:{type:String,default:"layout-view-model-list"}},data:function(){return{setProfileID:null,routeId:null,unwatchRoute:null}},computed:{columns:function(){var t=this.model.attrs.filter((function(t){return!["all"].includes(t.hidden)&&"model"!==t.metaType&&"link"!==t.type}));return t},subviews:function(){var t=this;return this.model.attrs.filter((function(e){var r=e.params,n=void 0===r?{}:r,o=n.show;return!["all"].includes(e.hidden)&&["collection","link"].includes(e.type)&&(!o||we(o,t.profile))}))},groups:function(){var t=[];return this.columns.forEach((function(e,r){var n=t.length-1;e.group||!r?t.push({name:e.group,columns:[e]}):t[n].columns.push(e)})),t},layouts:function(){},id:function(){var t=this.values,e=this.idName,r=this.profileId,n=this.routeId,o=this.findAll;return t?t[e]:r||n||o[0]&&o[0][e]},profile:function(){var t=this.values||this.findOne(this.id)||null;return this.params.$parent&&(t.$parent=this.params.$parent),t},next:function(){var t=this,e=this.findAll.findIndex((function(e){return e[t.idName]===t.id}));return this.findAll[e+1]},previous:function(){var t=this,e=this.findAll.findIndex((function(e){return e[t.idName]===t.id}));return this.findAll[e-1]},backActions:function(){return[{key:"_back",name:"返回",icon:"left",action:"list"}]}},methods:{showColumn:function(){},navigationTo:function(t){this.parentIds||"page"!==this.mode?this.$emit("profile",t):this.$router.replace({params:{id:t[this.idName]}})},handleNext:function(){this.next&&this.navigationTo(this.next)},handlePrevious:function(){this.previous&&this.navigationTo(this.previous)},handleList:function(){this.parentIds||"page"!==this.mode?this.$emit("close"):this.$router.replace(this.$route.meta.key)},load:function(){var t=arguments,e=this;return Ta(Ca().mark((function r(){var n,o,i;return Ca().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.length>0&&void 0!==t[0]&&t[0],r.next=3,e.loadData({key:e.id,mute:n});case 3:if(o=r.sent,!(o instanceof Error)){r.next=8;break}return i=o.response.data.code,404===i&&e.handleBack(),r.abrupt("return");case 8:return r.abrupt("return",o);case 9:case"end":return r.stop()}}),r)})))()}},created:function(){this.routeId=this.$route.params.id},activated:function(){var t=this;this.routeId=this.$route.params.id,!this.profile&&this.id&&this.load(),this.unwatchRoute=this.$watch("$route.params.id",(function(e){t.routeId=e}))},deactivated:function(){this.unwatchRoute&&this.unwatchRoute()}};function Da(t){return Ba(t)||qa(t)||Ma(t)||Ia()}function Ia(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ma(t,e){if(t){if("string"===typeof t)return Fa(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fa(t,e):void 0}}function qa(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Ba(t){if(Array.isArray(t))return Fa(t)}function Fa(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var $a=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},t._l(t.groups,(function(r,n){return e("Descriptions",{key:"g-".concat(n),staticClass:"profile-normal-descriptions",staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[r.name?e("div",{attrs:{slot:"title"},slot:"title"},[e("strong",[t._v(t._s(r.name))])]):t._e(),t._l(r.columns,(function(r,o){return[!t.collapse||t.showDescItems["showDescItem".concat(n)]||o<t.collapse?e("DescriptionsItem",{key:r.name,attrs:{span:r.column?r.column/12:1,label:r.alias||r.name,tooltip:r.legend}},[t._t("cell",null,{value:t.profile[r.name],column:r})],2):t._e()]})),t.collapse?e("div",{staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[e("a",{staticClass:"showdesc-btn",on:{click:function(e){t.showDescItems["showDescItem".concat(n)]=!t.showDescItems["showDescItem".concat(n)]}}},[e("a-icon",{attrs:{type:t.showDescItems["showDescItem".concat(n)]?"double-left":"double-right"}})],1)]):t._e()],2)})),1),t.tabs.length?e("a-card",{attrs:{size:"small",type:"inner"}},[e("a-tabs",{attrs:{animated:!1,"default-active-key":t.activeTabKey,size:"small"},on:{change:t.handleChange}},t._l(t.tabs,(function(r,n){return e("a-tab-pane",{key:String(n),attrs:{tab:r.tab}},["link"===r.type?e("Frame",{attrs:{url:t.templateURL(r.value,t.profile),height:t.iframeHeight(r.value)}}):e("keep-alive",[e(t.Views[n],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(Da(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:r.name,params:{$parent:t.profile}}})],1)],1)})),1)],1):t._e()],1)},Va=[],Ha={DESCRIPTIONS_ITEM:!0,props:{label:String,span:{type:Number,default:1},align:{type:String,default:"left"},tooltip:{type:String,default:""}},render:function(){return this.$slots.default},renderError:function(){}},Ua=function(){var t=this,e=t._self._c;return e("tr",{staticClass:"ant-descriptions-row"},[t._t("default")],2)},Ga=[],za={},Ka=za,Ya=qr(Ka,Ua,Ga,!1,null,null,null),Wa=Ya.exports;function Za(t){return Za="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Za(t)}function Ja(t,e,r){return e=Xa(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xa(t){var e=Qa(t,"string");return"symbol"==Za(e)?e:String(e)}function Qa(t,e){if("object"!=Za(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Za(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ts=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=[],n=[],o=e,i=t.filter((function(t){var e=t.componentOptions||{Ctor:{}},r=e.Ctor.options;return!!r&&r.DESCRIPTIONS_ITEM}));return i.forEach((function(t,a){var s=t.componentOptions.propsData.span||1;if(a===i.length-1)return n.push(t),void r.push(n);s<o?(o-=s,n.push(t)):(n.push(t),r.push(n),o=e,n=[])})),r},es={DescriptionsItem:Ha,components:{Row:Wa},props:{title:String,bordered:{type:Boolean,default:!1},column:{type:[Number,Object],default:3},size:{type:[Boolean,String],default:!1,enum:["default","middle","small"]},layout:{type:String,default:"horizontal",enum:["horizontal","vertical"]},inline:{type:Boolean,default:!0},colon:{type:Boolean,default:!0},profile:{type:Boolean,default:!1}},render:function(t){var e=this.title,r=this.bordered,n=this.size,o=this.colon,i=this.layout,a=this.inline,s=this.column,c=this.$slots,l=this.profile,u=ts(c.default,s);return t("div",{class:Ja(Ja(Ja({"ant-descriptions":!0},"ant-descriptions-".concat(n),!0),"ant-descriptions-bordered",!!r),"ant-descriptions-profile",!!l)},[e&&t("div",{class:"ant-descriptions-title"},[e]),!e&&c.title&&t("div",{class:"ant-descriptions-title"},[c.title]),t("div",{class:"ant-descriptions-view"},[t("table",[t("tbody",[u.map((function(e){return"vertical"===i?[t(Wa,[" ",e.map((function(e){var r=e.componentOptions.propsData,n=r.span,o=r.label,i=r.align,a=r.tooltip;return t("th",{class:"ant-descriptions-item-label",style:{"text-align":i},attrs:{colSpan:n}},a?[o,t("a-tooltip",{attrs:{placement:"right"}},[t("template",{slot:"title"},[t("span",[a])]),t("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]:[o])}))," "]),t(Wa,[" ",e.map((function(e){var r=e.componentOptions.propsData,n=r.span,o=r.align;return t("td",{class:"ant-descriptions-item-content",style:{"text-align":o,"white-space":"pre-wrap"},attrs:{colSpan:n}},[e])}))," "])]:t(Wa,[" ",e.map((function(e){var n=e.componentOptions.propsData,i=n.label,s=n.span,c=n.align,l=n.tooltip;return r||!a?[t("th",{class:"ant-descriptions-item-label"},l?[i,t("a-tooltip",{attrs:{placement:"right"}},[t("template",{slot:"title"},[t("span",[l])]),t("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]:[i]),t("td",{class:"ant-descriptions-item-content",style:{"text-align":c,"white-space":"pre-wrap"},attrs:{colSpan:s?2*s-1:""}},[e])]:t("td",{class:"ant-descriptions-item",attrs:{colSpan:s},style:{"text-align":c}},l?[t("span",{class:{"ant-descriptions-item-label":!0,"ant-descriptions-item-colon":o}},[i,t("a-tooltip",{attrs:{placement:"right"}},[t("template",{slot:"title"},[t("span",[l])]),t("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]),t("span",{class:"ant-descriptions-item-content",style:"white-space:pre-wrap"},[e])]:[t("span",{class:{"ant-descriptions-item-label":!0,"ant-descriptions-item-colon":o}},[i]),t("span",{class:"ant-descriptions-item-content",style:"white-space:pre-wrap"},[e])])}))," "])}))])])]),c.footer&&t("div",[c.footer])])},renderError:function(){}},rs=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.loading,delay:50}},[e("iframe",{style:{height:t.height},attrs:{frameborder:"0",src:"".concat(t.url),width:"100%"},on:{load:t.handleLoad}})])},ns=[],os={props:{url:String,query:Object,height:{type:[Number,String],default:"100vh"}},data:function(){return{loading:!0}},methods:{handleLoad:function(){this.loading=!1,this.$emit("load")}}},is=os,as=qr(is,rs,ns,!1,null,null,null),ss=as.exports;function cs(t){return cs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cs(t)}function ls(t){return ds(t)||hs(t)||fs(t)||us()}function us(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function fs(t,e){if(t){if("string"===typeof t)return ps(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ps(t,e):void 0}}function hs(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ds(t){if(Array.isArray(t))return ps(t)}function ps(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function vs(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ys(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vs(Object(r),!0).forEach((function(e){ms(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vs(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ms(t,e,r){return e=gs(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gs(t){var e=bs(t,"string");return"symbol"==cs(e)?e:String(e)}function bs(t,e){if("object"!=cs(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=cs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ws,_s,xs=es.DescriptionsItem,ks={components:ys({Descriptions:es,DescriptionsItem:xs,Frame:ss},sb),inject:["page","view"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1}},data:function(){return{activeTabKey:"0",views:ls(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&ls(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,showDescItems:{}}},methods:{handleChange:function(t){this.activeTabKey=t},templateURL:function(t,e){return xe(t,e)},iframeHeight:function(t){var e;if(t&&t.split("?")[1]){var r=t.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;r&&(e=r.split("=")[1])}return e}},created:function(){var t=this;if(this.groups.length&&this.collapse&&this.groups.forEach((function(e,r){t.$set(t.showDescItems,"showDescItem".concat(r),!1)})),this.$route.query&&this.$route.query.activeTabKey){var e=this.tabs.find((function(e){return e.name===t.$route.query.activeTabKey}));e&&(this.activeTabKey=e.key)}},computed:{tabs:function(){return this.views.map((function(t,e){return ys(ys({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:Ut(sb.ModelList)("".concat(t.storeNamespace,"/:id/").concat(e.name))}}))},collapse:function(){return this.view.configs["profile.collapse"]?Number(this.view.configs["profile.collapse"]):null}},watch:{profile:function(){this.views=ls(this.subviews),this.id=this.view.id}}},Os=ks,Es=(r("4927"),qr(Os,$a,Va,!1,null,null,null)),Ss=Es.exports,js={},Ns=qr(js,ws,_s,!1,null,null,null),Ls=Ns.exports;function Ps(t){return Rs(t)||Ts(t)||As(t)||Cs()}function Cs(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function As(t,e){if(t){if("string"===typeof t)return Ds(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ds(t,e):void 0}}function Ts(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Rs(t){if(Array.isArray(t))return Ds(t)}function Ds(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Is=function(){var t=this,e=t._self._c;return e("a-row",[t.view.configs["profile.tile.hideAnchor"]?t._e():e("a-col",{attrs:{span:3}},[e("a-anchor",{attrs:{affix:t.affix,getContainer:t.getContainer,offsetTop:t.view.configs["profile.tile.offsetTop"]&&Number(t.view.configs["profile.tile.offsetTop"])||0},on:{change:t.handleChange,click:t.handleClick}},[t._l(t.groups,(function(t,r){return e("a-anchor-link",{key:"anchor-g-".concat(r),attrs:{href:"#profile-tile-group-".concat(r),title:t.name}})})),t._l(t.tabs,(function(t,r){return e("a-anchor-link",{key:"anchor-t-".concat(r),attrs:{href:"#profile-tile-tab-".concat(r),title:t.tab}})}))],2)],1),e("a-col",{attrs:{span:t.view.configs["profile.tile.hideAnchor"]?24:21}},[e("a-spin",{attrs:{spinning:t.loading}},t._l(t.groups,(function(r,n){return e("a-card",{key:"g-".concat(n),staticClass:"gs-card",attrs:{size:"small",id:"profile-tile-group-".concat(n),title:r.name,bordered:!1,headStyle:{borderBottom:0}}},[t._e(),e("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[t._l(r.columns,(function(r,o){return[!t.collapse||t.showDescItems["showDescItem".concat(n)]||o<t.collapse?e("DescriptionsItem",{key:r.name,attrs:{span:r.column?r.column/12:1,label:r.alias||r.name,tooltip:r.legend}},[t._t("cell",null,{value:t.profile[r.name],column:r})],2):t._e()]})),t.collapse?e("div",{staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[e("a",{staticClass:"showdesc-btn",on:{click:function(e){t.showDescItems["showDescItem".concat(n)]=!t.showDescItems["showDescItem".concat(n)]}}},[e("a-icon",{attrs:{type:t.showDescItems["showDescItem".concat(n)]?"double-left":"double-right"}})],1)]):t._e()],2)],1)})),1),t._l(t.tabs,(function(r,n){return e("a-card",{key:String(n),staticClass:"gs-card",attrs:{tab:r.tab,size:"small",id:"profile-tile-tab-".concat(n),title:r.tab,bordered:!1,headStyle:{borderBottom:0}}},["link"===r.type?e("Frame",{attrs:{url:t.templateURL(r.value,t.profile),height:t.iframeHeight(r.value)}}):e("keep-alive",[e(t.Views[n],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(Ps(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:r.name,params:{$parent:t.profile}}})],1)],1)}))],2)],1)},Ms=[];function qs(t){return qs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qs(t)}function Bs(t){return Hs(t)||Vs(t)||$s(t)||Fs()}function Fs(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $s(t,e){if(t){if("string"===typeof t)return Us(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Us(t,e):void 0}}function Vs(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Hs(t){if(Array.isArray(t))return Us(t)}function Us(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Gs(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function zs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Gs(Object(r),!0).forEach((function(e){Ks(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gs(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ks(t,e,r){return e=Ys(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ys(t){var e=Ws(t,"string");return"symbol"==qs(e)?e:String(e)}function Ws(t,e){if("object"!=qs(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=qs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Zs=es.DescriptionsItem,Js={components:zs({Descriptions:es,DescriptionsItem:Zs,Frame:ss},sb),inject:["page","view","container"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1}},data:function(){return{activeTabKey:"0",views:Bs(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&Bs(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,affix:!0,showDescItems:{}}},created:function(){var t=this;this.groups.length&&this.collapse&&this.groups.forEach((function(e,r){t.$set(t.showDescItems,"showDescItem".concat(r),!1)}))},methods:{handleChange:function(t){},templateURL:function(t,e){return xe(t,e)},handleClick:function(t,e){t.preventDefault()},getContainer:function(){var t=this.container&&this.container.$refs.container;return t&&t.$el||t||window},iframeHeight:function(t){var e;if(t&&t.split("?")[1]){var r=t.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;r&&(e=r.split("=")[1])}return e}},computed:{tabs:function(){return this.views.map((function(t,e){return zs(zs({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:Ut(sb.ModelList)("".concat(t.storeNamespace,"/:id/").concat(e.name))}}))},collapse:function(){return this.view.configs["profile.collapse"]?Number(this.view.configs["profile.collapse"]):null}},watch:{profile:function(){this.views=Bs(this.subviews),this.id=this.view.id}},activated:function(){this.affix=!0},deactivated:function(){this.affix=!1}},Xs=Js,Qs=(r("d149"),qr(Xs,Is,Ms,!1,null,null,null)),tc=Qs.exports;function ec(t){return ic(t)||oc(t)||nc(t)||rc()}function rc(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function nc(t,e){if(t){if("string"===typeof t)return ac(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ac(t,e):void 0}}function oc(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ic(t){if(Array.isArray(t))return ac(t)}function ac(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var sc=function(){var t=this,e=t._self._c;return t.tabs.length?e("div",[t.basicAttrsColumns.length?e("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[t._l(t.basicAttrsColumns,(function(r){return[e("DescriptionsItem",{key:r.name,attrs:{span:r.column?r.column/12:1,label:r.alias||r.name,tooltip:r.legend}},[t._t("cell",null,{value:t.profile[r.name],column:r})],2)]}))],2):t._e(),e("a-tabs",{attrs:{animated:!1,"default-active-key":t.activeTabKey},on:{change:t.handleChange}},t._l(t.tabs,(function(r,n){return e("a-tab-pane",{key:String(n),attrs:{tab:r.tab}},["profile"===r.type?e("a-spin",{attrs:{spinning:t.loading}},t._l(t.groups,(function(r,n){return e("Descriptions",{key:"g-".concat(n),staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[r.name?e("div",{attrs:{slot:"title"},slot:"title"},[e("strong",[t._v(t._s(r.name))])]):t._e(),t._l(t.subAttrsColumns(r.columns),(function(r,o){return[!t.collapse||t.showDescItems["showDescItem".concat(n)]||o<t.collapse?e("DescriptionsItem",{key:r.name,attrs:{span:r.column?r.column/12:1,label:r.alias||r.name,tooltip:r.legend}},[t._t("cell",null,{value:t.profile[r.name],column:r})],2):t._e()]})),t.collapse?e("div",{staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[e("a",{staticClass:"showdesc-btn",on:{click:function(e){t.showDescItems["showDescItem".concat(n)]=!t.showDescItems["showDescItem".concat(n)]}}},[e("a-icon",{attrs:{type:t.showDescItems["showDescItem".concat(n)]?"double-left":"double-right"}})],1)]):t._e()],2)})),1):"link"===r.type?e("Frame",{attrs:{url:t.templateURL(r.value,t.profile),height:t.iframeHeight(r.value)}}):e("keep-alive",[e(t.Views[n],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(ec(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:r.name,params:{$parent:t.profile}}})],1)],1)})),1)],1):t._e()},cc=[];function lc(t){return lc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lc(t)}function uc(t){return pc(t)||dc(t)||hc(t)||fc()}function fc(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function hc(t,e){if(t){if("string"===typeof t)return vc(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vc(t,e):void 0}}function dc(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function pc(t){if(Array.isArray(t))return vc(t)}function vc(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function yc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function mc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yc(Object(r),!0).forEach((function(e){gc(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yc(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function gc(t,e,r){return e=bc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bc(t){var e=wc(t,"string");return"symbol"==lc(e)?e:String(e)}function wc(t,e){if("object"!=lc(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=lc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var _c=es.DescriptionsItem,xc={components:mc({Descriptions:es,DescriptionsItem:_c,Frame:ss},sb),inject:["page","view"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1},configs:{type:Object}},data:function(){return{activeTabKey:"0",views:null,id:this.view.id,parentIds:this.view.parentIds&&uc(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,showDescItems:{}}},methods:{handleChange:function(t){this.activeTabKey=t},templateURL:function(t,e){return xe(t,e)},iframeHeight:function(t){var e;if(t&&t.split("?")[1]){var r=t.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;r&&(e=r.split("=")[1])}return e},subAttrsColumns:function(t){var e=this;return this.basicAttrs.length?t.filter((function(t){return!e.basicAttrs.includes(t.name)})):t}},created:function(){var t=this;if(this.groups.length&&this.collapse&&this.groups.forEach((function(e,r){t.$set(t.showDescItems,"showDescItem".concat(r),!1)})),this.$route.query&&this.$route.query.activeTabKey){var e=this.tabs.find((function(e){return e.name===t.$route.query.activeTabKey}));e&&(this.activeTabKey=e.key)}this.views=[this.profileTab].concat(uc(this.subviews))},computed:{tabs:function(){return this.views?this.views.map((function(t,e){return mc(mc({},t),{},{key:String(e),tab:t.alias||t.name})})):[]},Views:function(){var t=this;return this.views?this.views.map((function(e){return{extends:Ut(sb.ModelList)("".concat(t.storeNamespace,"/:id/").concat(e.name))}})):[]},collapse:function(){return this.view.configs["profile.collapse"]?Number(this.view.configs["profile.collapse"]):null},basicAttrs:function(){var t=[];return this.view.configs&&this.view.configs["profile.tabs.basicAttrs"]&&(t=this.view.configs["profile.tabs.basicAttrs"].split(",")),t},basicAttrsColumns:function(){var t=this;return this.basicAttrs.length?this.columns.filter((function(e){return t.basicAttrs.includes(e.name)})):[]},profileTab:function(){return{name:this.view.configs&&this.view.configs["profile.tabs.profileTitle"]?this.view.configs["profile.tabs.profileTitle"]:"详情",type:"profile"}}},watch:{profile:function(){this.views=[this.profileTab].concat(uc(this.subviews)),this.id=this.view.id}}},kc=xc,Oc=(r("b69c"),qr(kc,sc,cc,!1,null,null,null)),Ec=Oc.exports,Sc={ProfileNormal:Ss,ProfilePortal:Ls,ProfileTile:tc,ProfileTabs:Ec};function jc(t){return jc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jc(t)}function Nc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Lc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Nc(Object(r),!0).forEach((function(e){Pc(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nc(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Pc(t,e,r){return e=Cc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Cc(t){var e=Ac(t,"string");return"symbol"==jc(e)?e:String(e)}function Ac(t,e){if("object"!=jc(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=jc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Tc={mixins:[Kt,Yt,ge,Lr,Tr,Ra],components:Lc({ActionGroup:Yi,ActionView:ta,Popup:Pi,Cell:ma},Sc)},Rc=Tc,Dc=(r("a6b9"),qr(Rc,Na,La,!1,null,null,null)),Ic=Dc.exports,Mc=function(){var t=this,e=t._self._c;return e("layout-view-blank",{tag:"component"},[t.commitResult.template&&t.commitResult.data?e("a-result",{attrs:{status:"success",title:t.message}},[e(t.commitResult,{tag:"component"})],1):e(t.formWidget||t.widget,t._g(t._b({tag:"component",attrs:{action:t.action,columns:t.columns,params:t.params}},"component",t.$attrs,!1),t.$listeners))],1)},qc=[],Bc={create:["createonly","updateonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},Fc={model:{event:"change"},props:{value:{type:[Object,Array]},action:{type:Object},layout:{type:String,enum:["horizontal","vertical","inline","group"]},editType:{type:String,default:"create",enum:["create","update","bulk","save"]},submitType:{type:String,default:"submit",enum:["change","submit"]},allowUnsubmittedCache:{type:Boolean,default:!0},allowPreviousCache:{type:Boolean,default:!1},displayReadonly:{type:String,default:"none",enum:["none","readonly","all"]},isGroup:{type:Boolean,default:!1},commitResult:{type:Object},submitActions:{type:Array,default:function(){return[{name:"确定",icon:"",handle:"submit"},{name:"取消",icon:"",handle:"cancel"}]}}},created:function(){"create"===this.editType&&this.allowUnsubmittedCache&&this.getLocalStore()},computed:{columns:function(){var t=this.action,e=this.params,r=this.model,n=this.editType,o=this.hide,i=t&&t.view?t.view.model.attrs:e&&e.attrs?e.attrs:r.attrs?r.attrs:[];if(t&&t.list){var a=this.action.list.split(",");return i.filter((function(t){return!o.includes(t.name)&&a.includes(t.name)}))}return i.filter((function(t){return Bc[n].includes(t.access)&&!o.includes(t.name)&&"collection"!==t.metaType&&"model"!==t.metaType&&"link"!==t.type}))},rules:function(){},formWidget:function(){var t=Object.fromEntries(this.action.configs.map((function(t){return[t.key,t.value]})))||[],e=t["form.widget"]||this.configs["form.widget"]||null;return e}},methods:{setLocalStore:function(){},getLocalStore:function(){},reset:function(){},validate:function(){},handleChange:function(){this.$emit("change")},handleSubmit:function(){this.$emit("submited")},handleCommit:function(){this.$emit("commited")}}},$c=function(){var t=this,e=t._self._c;return e("a-form-model",{ref:"form",attrs:{rules:t.rules,model:t.actionModel}},[e("a-row",{attrs:{gutter:24}},t._l(t.columns,(function(r){return e("a-col",{key:r.name,staticStyle:{"min-height":"0"},attrs:{span:r.column||12}},[e("Item",{attrs:{formModel:t.actionModel,prop:r.name,schema:r,params:t.params},on:{change:function(e){return t.handleItemChange(e,r)},fill:function(e){return t.handleItemFill(e,r)}},model:{value:t.actionModel[r.name],callback:function(e){t.$set(t.actionModel,r.name,e)},expression:"actionModel[col.name]"}})],1)})),1)],1)},Vc=[],Hc={mixins:[hn],components:{Item:Ri}},Uc=Hc,Gc=qr(Uc,$c,Vc,!1,null,null,null),zc=Gc.exports,Kc=function(){var t=this,e=t._self._c;return e("div",[e("a-upload",{attrs:{multiple:"",beforeUpload:t.beforeUpload,showUploadList:!1}},[e("a-button",[e("a-icon",{attrs:{type:"upload"}}),t._v(" 批量上传 ")],1)],1),t._l(t.fileList,(function(r,n){return e("div",{key:n,staticClass:"form-file-upload"},[e("a-row",{attrs:{type:"flex",justify:"space-between",align:"middle"}},[e("a-col",["uploading"===r.status?e("a-icon",{attrs:{type:"loading"}}):"done"===r.status?e("a-icon",{attrs:{type:"paper-clip"}}):t._e(),t._v(" "+t._s(r.file.name)+" ")],1),e("a-col",[r.status?t._e():e("a-icon",{attrs:{type:"close"},on:{click:function(e){return t.handleRemove(n)}}})],1)],1)],1)}))],2)},Yc=[];function Wc(t){return Wc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wc(t)}function Zc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Zc=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Wc(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Wc(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Jc(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Xc(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Jc(i,n,o,a,s,"next",t)}function s(t){Jc(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Qc={mixins:[hn],data:function(){return{fileList:[]}},methods:{handleRemove:function(t){var e=this.fileList.slice();e.splice(t,1),this.fileList=e},beforeUpload:function(t){return this.fileList.push({file:t,status:""}),!1},handleSubmit:function(){var t=this;return Xc(Zc().mark((function e(){var r;return Zc().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.view.view.selections,0!==t.fileList.length){e.next=3;break}return e.abrupt("return",t.$message.error("请选择文件"));case 3:if(!(r&&r.length>1)){e.next=5;break}return e.abrupt("return",t.$message.error("请选择一条文件进行上传"));case 5:t.handleCommit();case 6:case"end":return e.stop()}}),e)})))()},handleCommit:function(){var t=this;return Xc(Zc().mark((function e(){var r,n,o,i,a,s,c,l,u,f,h,d;return Zc().wrap((function(e){while(1)switch(e.prev=e.next){case 0:d=function(){return d=Xc(Zc().mark((function t(e){var r,d,p;return Zc().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.status="uploading",r=o.key,d=o.method,p=new FormData,p.append("file",e.file),a&&p.append("data[".concat(i,"]"),a[i]),t.next=7,n({data:p,key:r,method:d,mute:!0});case 7:f++,e.status="done",f>=u.length?(s(),c(),l.success("上传完成")):h(u[f]);case 10:case"end":return t.stop()}}),t)}))),d.apply(this,arguments)},h=function(t){return d.apply(this,arguments)},r=t.view.view,n=r.saveData,o=r.action,i=r.idName,a=r.actionModel,s=r.closeActionView,c=r.load,l=r.$message,u=t.fileList,f=0,h(u[f]);case 6:case"end":return e.stop()}}),e)})))()}}},tl=Qc,el=qr(tl,Kc,Yc,!1,null,null,null),rl=el.exports,nl=function(){var t=this,e=t._self._c;return e("Picker",t._g(t._b({attrs:{viewKey:t.action.key||t.action.method.toLowerCase(),schema:t.action,params:{filters:t.pickerFilter},pickerMode:t.pickerMode},on:{selected:t.handleViewPickerSelected}},"Picker",t.$attrs,!1),t.$listeners))},ol=[];function il(t){return il="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},il(t)}function al(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function sl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?al(Object(r),!0).forEach((function(e){cl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):al(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cl(t,e,r){return e=ll(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ll(t){var e=ul(t,"string");return"symbol"==il(e)?e:String(e)}function ul(t,e){if("object"!=il(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=il(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var fl={mixins:[hn],components:{Picker:gi},computed:{pickerFilter:function(){var t=this.action.params,e=t&&t.filters,r={};if(!e)return null;for(var n in e){var o=e[n].split(".").reduce((function(t,e){return t&&t[e]||void 0}),sl(sl({},this.params),this.actionModel));r[n]=void 0===o?e[n]:o}return r},pickerMode:function(){var t=this.action.params,e=void 0===t?{}:t,r=e.multiple,n=e.pickerMode;return"none"===n?null:r?"multiple":"single"}},methods:{handleSubmit:function(){if(!this.actionModel||!this.actionModel.length)return this.$message.error("请选择数据");this.handleCommit()},handleViewPickerSelected:function(t){var e=this.configs["picker.view.value"],r=e;this.actionModel=r?t.map((function(t){return cl({},r,t[e])})):t}}},hl=fl,dl=qr(hl,nl,ol,!1,null,null,null),pl=dl.exports,vl=function(){var t=this,e=t._self._c;return e("div",[e("a-steps",{attrs:{current:t.current}},t._l(t.steps,(function(r){return e("a-step",{key:r.title,attrs:{title:r.title}},["核心解读"===r.title?e("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.coreAlgorithmCount},slot:"subTitle"}):t._e(),"描述解读"===r.title?e("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.describeAlgorithmCount},slot:"subTitle"}):t._e(),"排盘数据"===r.title?e("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.paipanDataCount},slot:"subTitle"}):t._e(),"术数分析"===r.title?e("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.surgeryAnalysisCount},slot:"subTitle"}):t._e()],1)})),1),Object.keys(t.algorithmList).length&&t.current<t.steps.length-1?e("div",{staticClass:"algorithm-preview"},[e("strong",[t._v("算法集合预览:")]),t._v(t._s(t.algorithmList)+" ")]):t._e(),e("a-spin",{attrs:{spinning:t.loading}},[0===t.current?e("div",{staticClass:"steps-content"},[e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),e("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[e("a-tabs",{attrs:{defaultActiveKey:"".concat(t.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},t._l(t.algorithmData[0].children,(function(r,n){return e("a-tab-pane",{key:r.name+n.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(r.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(r.children)}})],1),e("CheckboxGroup",{attrs:{title:r.name,data:r.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,r.name,n)}}})],1)})),1)]:e("a-empty")],2):t._e(),1===t.current?e("div",{staticClass:"steps-content"},[e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),e("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[e("a-tabs",{attrs:{defaultActiveKey:"".concat(t.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},t._l(t.algorithmData[0].children,(function(r,n){return e("a-tab-pane",{key:r.name+n.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(r.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(r.children)}})],1),e("CheckboxGroup",{attrs:{title:r.name,data:r.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,r.name,n)}}})],1)})),1)]:e("a-empty")],2):t._e(),2===t.current?e("div",{staticClass:"steps-content"},[e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),e("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[e("a-tabs",{attrs:{defaultActiveKey:"".concat(t.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},t._l(t.algorithmData[0].children,(function(r,n){return e("a-tab-pane",{key:r.name+n.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(r.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(r.children)}})],1),e("CheckboxGroup",{attrs:{title:r.name,data:r.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,r.name,n)}}})],1)})),1)]:e("a-empty")],2):t._e(),3===t.current?e("div",{staticClass:"steps-content"},[e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),e("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[e("a-tabs",{attrs:{defaultActiveKey:"".concat(t.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},t._l(t.algorithmData[0].children,(function(r,n){return e("a-tab-pane",{key:r.name+n.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(r.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(r.children)}})],1),e("CheckboxGroup",{attrs:{title:r.name,data:r.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,r.name,n)}}})],1)})),1)]:e("a-empty")],2):t._e(),4===t.current?e("div",{staticClass:"steps-content"},[e("AlgorithmForm",{attrs:{algorithmList:t.algorithmList},on:{close:function(e){return t.$emit("close")}}})],1):t._e()]),e("div",{staticClass:"steps-action"},[t.current>0?e("a-button",{staticStyle:{"margin-right":"8px"},on:{click:t.prev}},[t._v(" 上一步 ")]):t._e(),t.current<t.steps.length-1?e("a-button",{attrs:{type:"primary"},on:{click:t.next}},[t._v(" 下一步 ")]):t._e()],1)],1)},yl=[];function ml(t){return ml="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ml(t)}function gl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */gl=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==ml(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(ml(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function bl(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function wl(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){bl(i,n,o,a,s,"next",t)}function s(t){bl(i,n,o,a,s,"throw",t)}a(void 0)}))}}var _l={namespaced:!0,state:{loading:!1,data:{},district:[],status:200,message:""},mutations:{setLoading:function(t,e){t.loading=e},setData:function(t,e){var r=e.key,n=e.rows;t.data[r]?t.data[r]=n:L.a.set(t.data,r,n)},setDistrict:function(t,e){t.district=e},setStatus:function(t,e){var r=e.status,n=e.message;t.status=r,t.message=n}},actions:{loadData:function(t){var e=arguments;return wl(gl().mark((function r(){var n,o,i,a,s,c,l,u;return gl().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},a=i.methods,s=void 0===a?"get":a,c=i.key,l=i.query,n("setLoading",!0),r.prev=4,r.next=7,E[s](l?"/api/".concat(c?"".concat(c):"","?").concat(j.a.stringify(l)):"/api/".concat(c?"".concat(c):""));case 7:u=r.sent,u.data&&c&&n("setData",{rows:u.data,key:c}),r.next=14;break;case 11:r.prev=11,r.t0=r["catch"](4),o("handleError",r.t0);case 14:return r.prev=14,n("setLoading",!1),r.finish(14);case 17:case"end":return r.stop()}}),r,null,[[4,11,14,17]])})))()},loadDistrict:function(t){return wl(gl().mark((function e(){var r,n,o,i;return gl().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,n=t.dispatch,r("setLoading",!0),e.prev=2,e.next=5,E.get("/dataset/%E8%A1%8C%E6%94%BF%E5%8C%BA%E5%88%92");case 5:o=e.sent,i=o.data,i&&r("setDistrict",i.data),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](2),n("handleError",e.t0);case 13:return e.prev=13,r("setLoading",!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,10,13,16]])})))()},getResult:function(t){var e=arguments;return wl(gl().mark((function r(){var n,o,i,a,s,c;return gl().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},a=i.key,s=i.params,n("setLoading",!0),r.prev=4,r.next=7,E.post(a,s,{});case 7:if(c=r.sent,!c||!c.data){r.next=10;break}return r.abrupt("return",c.data);case 10:r.next=15;break;case 12:r.prev=12,r.t0=r["catch"](4),o("handleError",r.t0);case 15:return r.prev=15,n("setLoading",!1),r.finish(15);case 18:case"end":return r.stop()}}),r,null,[[4,12,15,18]])})))()},handleError:function(t,e){var r=t.commit;if(!e.response)return r("setStatus",{status:0,message:"网络请求错误,请检查您的网络连接。"});var n=e.response,o=n.status,i=n.data,a=i&&i.content||"系统错误请与管理员联系。";r("setStatus",{status:o,message:a})}}};function xl(t){return xl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xl(t)}function kl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ol(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?kl(Object(r),!0).forEach((function(e){El(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kl(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function El(t,e,r){return e=Sl(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Sl(t){var e=jl(t,"string");return"symbol"==xl(e)?e:String(e)}function jl(t,e){if("object"!=xl(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=xl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}for(var Nl=Object(u["createNamespacedHelpers"])("m-algorithm"),Ll=Nl.mapState,Pl=Nl.mapActions,Cl=["loading","data","message"],Al=["loadData","loadDistrict","getResult"],Tl={computed:Ol({},Ll(Cl)),methods:Ol({},Pl(Al)),beforeCreate:function(){this.$store.state["m-algorithm"]||this.$store.registerModule("m-algorithm",_l)}},Rl=function(){var t=this,e=t._self._c;return e("div",{staticClass:"algorithm-checkbox"},[e("a-row",{staticStyle:{width:"100%",padding:"0 32px"},attrs:{gutter:24}},t._l(t.data,(function(r){return e("a-col",{key:r.id,staticClass:"algorithm-item",class:{"algorithm-item-actived":r.checked},attrs:{span:6}},[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{span:20}},[e("a-checkbox",{staticClass:"text-ellipsis",attrs:{checked:r.checked},on:{change:function(e){return t.onCheckChange(e,r)}}},[e("a-tooltip",[e("template",{slot:"title"},[t._v(" "+t._s(r.name)+" ")]),t._v(" "+t._s(r.name)+" ")],2)],1)],1),e("a-col",{staticClass:"params-setting",attrs:{span:4},on:{click:function(e){return t.showDrawer(r.read_id)}}},[r.checked?e("a-icon",{staticClass:"algorithm-item-action",attrs:{type:"setting"}}):t._e()],1)],1)],1)})),1),e("a-drawer",{attrs:{title:"高级配置",placement:"right",visible:t.visible,width:"512",bodyStyle:{overflow:"auto"}},on:{close:function(e){t.visible=!1}}},[e("h3",{staticStyle:{"margin-bottom":"16px"}},[t._v("解读详情")]),e("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{size:"small",column:1,bordered:""}},[e("DescriptionsItem",{attrs:{label:"编码"}},[t._v(t._s(t.algorithmDetail.code))]),e("DescriptionsItem",{attrs:{label:"名称"}},[t._v(t._s(t.algorithmDetail.name))]),e("DescriptionsItem",{attrs:{label:"解读分类"}},[t._v(t._s(t.algorithmDetail.classify))]),e("DescriptionsItem",{attrs:{label:"算法类别"}},[t._v(t._s(t.algorithmDetail.type))]),e("DescriptionsItem",{attrs:{label:"作者"}},[t._v(t._s(t.algorithmDetail.author))]),e("DescriptionsItem",{attrs:{label:"标签"}},[t._v(t._s(t.algorithmDetail.core_basis))]),e("DescriptionsItem",{attrs:{label:"解读维度"}},[t._v(t._s(t.algorithmDetail.latitude))]),e("DescriptionsItem",{attrs:{label:"解读赋值"}},[t._v(t._s(t.algorithmDetail.app_product))])],1),e("h3",{staticStyle:{"margin-bottom":"16px"}},[t._v("参数配置")]),e("a-tabs",{attrs:{type:"editable-card"},on:{edit:t.onEdit},model:{value:t.activeKey,callback:function(e){t.activeKey=e},expression:"activeKey"}},t._l(t.panes,(function(r,n){return e("a-tab-pane",{key:r.key,attrs:{tab:"".concat(r.title,"_").concat(n+1),closable:0!==n}},[e("AlgorithmParams",{attrs:{algorithmParams:r.algorithmParams,algorithmParamsKey:r.key},on:{submit:t.submitForm}})],1)})),1),e("div",{style:{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},[e("a-button",{style:{marginRight:"8px"},on:{click:function(e){t.visible=!1}}},[t._v(" 取消 ")]),e("a-button",{attrs:{type:"primary",loading:t.btnLoading},on:{click:function(e){return t.submitParams(t.copyPaneParams)}}},[t._v(" 确定 ")])],1)],1)],1)},Dl=[],Il=function(){var t=this,e=t._self._c;return e("a-form-model",{ref:"dynamicValidateForm",attrs:{model:t.dynamicValidateForm}},[t._l(t.dynamicValidateForm.algorithms,(function(r,n){return e("a-form-model-item",{key:r.key,attrs:{prop:"algorithms."+n+".value",rules:{required:!0,message:"请输入算法参数",trigger:"blur"}}},[e("a-input",{staticStyle:{width:"60%","margin-right":"8px"},attrs:{placeholder:"请输入算法参数"},on:{blur:function(e){return t.submitForm("dynamicValidateForm")}},model:{value:r.value,callback:function(e){t.$set(r,"value",e)},expression:"domain.value"}}),e("a-icon",{staticClass:"dynamic-delete-button",attrs:{type:"minus-circle-o",disabled:1===t.dynamicValidateForm.algorithms.length},on:{click:function(e){return t.removeDomain(r)}}})],1)})),e("a-form-model-item",[e("a-button",{staticStyle:{width:"60%"},attrs:{type:"dashed"},on:{click:t.addDomain}},[e("a-icon",{attrs:{type:"plus"}}),t._v(" 增加 ")],1)],1),e("a-form-model-item",[e("a-button",{on:{click:function(e){return t.resetForm("dynamicValidateForm")}}},[t._v(" 重置 ")])],1)],2)},Ml=[],ql={props:{algorithmParams:{type:Array,default:function(){return[]}},algorithmParamsKey:{type:[String,Number]}},data:function(){return{dynamicValidateForm:{algorithms:this.algorithmParams}}},methods:{submitForm:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;e.setParams()}))},setParams:function(){var t=this.dynamicValidateForm.algorithms.map((function(t){return t.value})),e={key:this.algorithmParamsKey,algorithmParams:t};this.$emit("submit",e)},resetForm:function(t){this.$refs[t].resetFields(),this.dynamicValidateForm.algorithms=[],this.setParams()},removeDomain:function(t){var e=this.dynamicValidateForm.algorithms.indexOf(t);-1!==e&&this.dynamicValidateForm.algorithms.splice(e,1),this.setParams()},addDomain:function(){this.dynamicValidateForm.algorithms.push({value:"",key:Date.now()})}},watch:{algorithmParams:function(t){this.dynamicValidateForm.algorithms=t}}},Bl=ql,Fl=qr(Bl,Il,Ml,!1,null,null,null),$l=Fl.exports,Vl=es.DescriptionsItem,Hl={props:{title:{type:String},data:{type:Array,require:!0},defaultCheckedList:{type:Array}},components:{Descriptions:es,DescriptionsItem:Vl,AlgorithmParams:$l},data:function(){return{checkedList:this.defaultCheckedList||[],visible:!1,btnLoading:!1,algorithmId:null,algorithmParams:[],activeKey:0,panes:[],paneParams:{},copyPaneParams:{}}},computed:{algorithmDetail:function(){var t=this;return this.data.find((function(e){return e.read_id===t.algorithmId}))||{}}},methods:{onCheckChange:function(t,e){if(e.checked=t.target.checked,e.checked)this.checkedList.push(e);else{var r=this.checkedList.findIndex((function(t){return e.read_id===t.read_id}));this.checkedList.splice(r,1)}this.$emit("change",this.checkedList)},showDrawer:function(t){var e=this;this.algorithmId=t;var r=this.checkedList.find((function(e){return e.read_id===t})).values;if(r.length)this.panes=r.map((function(t,r){var n={key:"".concat(e.algorithmId).concat(r),title:"参数",algorithmParams:t.map((function(t,e){return{key:e,value:t}}))};return n}));else{var n={key:"".concat(this.algorithmId,"0"),title:"参数",algorithmParams:[]};this.submitForm(n),this.panes=[n]}this.activeKey=this.panes[0].key,this.visible=!0},submitForm:function(t){var e=t.key;this.paneParams[e]?this.paneParams[e]=t.algorithmParams:this.$set(this.paneParams,e,t.algorithmParams),this.setParams()},setParams:function(){for(var t in this.copyPaneParams=Object.assign({},this.paneParams),this.copyPaneParams)-1===t.indexOf(this.algorithmId)&&delete this.copyPaneParams[t]},submitParams:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.btnLoading=!0;var r=this.checkedList.find((function(e){return e.read_id===t.algorithmId}));e&&(r.values=Object.values(e)),this.$emit("change",this.checkedList),this.visible=this.btnLoading=!1},onEdit:function(t,e){this[e](t)},add:function(){var t=this.panes,e=t.length?t.length:0,r="".concat(this.algorithmId).concat(e),n={title:"参数",algorithmParams:[],key:r};this.submitForm(n),this.panes.push(n),this.panes=t,this.activeKey=r},remove:function(t){delete this.paneParams[t],this.setParams();var e,r=this.activeKey;this.panes.forEach((function(r,n){r.key===t&&(e=n-1)}));var n=this.panes.filter((function(e){return e.key!==t}));n.length&&r===t&&(r=e>=0?n[e].key:n[0].key),this.panes=n,this.activeKey=r}},watch:{}},Ul=Hl,Gl=(r("9897"),qr(Ul,Rl,Dl,!1,null,null,null)),zl=Gl.exports,Kl=function(){var t=this,e=t._self._c;return e("div",[e("a-row",{attrs:{type:"flex"}},[e("a-col",{staticStyle:{padding:"24px","background-color":"#fafafa"},attrs:{span:12}},[e("div",{staticStyle:{"text-align":"center","margin-bottom":"24px"}},[t._v(" 可 "),e("a",{on:{click:function(e){t.pickerVisible=!0}}},[t._v(" 选择系统中现有命例 ")]),t._v(" ,快速填充命例信息。 ")]),e("a-form-model",{ref:"profileForm",attrs:{layout:t.formLayout,model:t.profile,rules:t.profileRules}},[e("a-form-model-item",{attrs:{label:"昵称",prop:"nick_name","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入昵称",allowClear:""},model:{value:t.profile.nick_name,callback:function(e){t.$set(t.profile,"nick_name",e)},expression:"profile.nick_name"}})],1),e("a-form-model-item",{attrs:{label:"性别","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-radio-group",{model:{value:t.profile.gender,callback:function(e){t.$set(t.profile,"gender",e)},expression:"profile.gender"}},[e("a-radio",{attrs:{value:"male"}},[t._v("男")]),e("a-radio",{attrs:{value:"female"}},[t._v("女")])],1)],1),e("a-form-model-item",{attrs:{label:"公历","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-radio-group",{on:{change:t.handleLunarChange},model:{value:t.profile.is_lunar,callback:function(e){t.$set(t.profile,"is_lunar",e)},expression:"profile.is_lunar"}},[e("a-radio",{attrs:{value:!1}},[t._v("公历")]),e("a-radio",{attrs:{value:!0}},[t._v("农历")])],1)],1),t.hasDaylight?e("a-form-model-item",{attrs:{label:"夏令时","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-radio-group",{model:{value:t.profile.is_day_light,callback:function(e){t.$set(t.profile,"is_day_light",e)},expression:"profile.is_day_light"}},[e("a-radio",{attrs:{value:!0}},[t._v("是")]),e("a-radio",{attrs:{value:!1}},[t._v("否")])],1)],1):t._e(),e("a-form-model-item",{attrs:{label:"出生日期",prop:"birthday","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[e("a-input",{attrs:{placeholder:"请选择出生日期",allowClear:""},model:{value:t.profile.birthday,callback:function(e){t.$set(t.profile,"birthday",e)},expression:"profile.birthday"}}),e("DateTimePicker",{attrs:{slot:"content",isLunar:t.profile.is_lunar},on:{change:t.handleDateTimeChange},slot:"content"})],1)],1),t.hasLeap?e("a-form-model-item",{attrs:{label:"是否为闰月","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-radio-group",{model:{value:t.profile.is_leap,callback:function(e){t.$set(t.profile,"is_leap",e)},expression:"profile.is_leap"}},[e("a-radio",{attrs:{value:!0}},[t._v("是")]),e("a-radio",{attrs:{value:!1}},[t._v("否")])],1)],1):t._e(),e("a-form-model-item",{attrs:{label:"是否为双胞胎","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-radio-group",{model:{value:t.profile.is_twins,callback:function(e){t.$set(t.profile,"is_twins",e)},expression:"profile.is_twins"}},[e("a-radio",{attrs:{value:!0}},[t._v("是")]),e("a-radio",{attrs:{value:!1}},[t._v("否")])],1),t.profile.is_twins?e("a-input",{attrs:{addonBefore:"第",addonAfter:"胎"},model:{value:t.profile.birth_num,callback:function(e){t.$set(t.profile,"birth_num",e)},expression:"profile.birth_num"}}):t._e()],1),e("a-form-model-item",{attrs:{label:"出生地",prop:"place","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-cascader",{attrs:{options:t.districts,allowClear:"",placeholder:"请选择出生地"},on:{change:t.handleDistrictChange},model:{value:t.profile.place,callback:function(e){t.$set(t.profile,"place",e)},expression:"profile.place"}})],1),e("a-form-model-item",{attrs:{label:"算法","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[t._v(" "+t._s(t.profile.code)+" ")]),e("a-form-model-item",{attrs:{label:"产品编码",prop:"productCode","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入产品编码",allowClear:""},model:{value:t.profile.productCode,callback:function(e){t.$set(t.profile,"productCode",e)},expression:"profile.productCode"}})],1),e("a-form-model-item",{attrs:{label:"产品名称",prop:"productName","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入产品名称",allowClear:""},model:{value:t.profile.productName,callback:function(e){t.$set(t.profile,"productName",e)},expression:"profile.productName"}})],1),t.showMore?t._e():e("p",{staticStyle:{"text-align":"center"}},[e("a-button",{attrs:{type:"link"},on:{click:function(e){t.showMore=!0}}},[t._v("更多设置")])],1),t.showMore?[e("a-form-model-item",{attrs:{label:"姓",prop:"first_name","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入真实姓",allowClear:""},model:{value:t.profile.first_name,callback:function(e){t.$set(t.profile,"first_name",e)},expression:"profile.first_name"}})],1),e("a-form-model-item",{attrs:{label:"名",prop:"last_name","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入真实名",allowClear:""},model:{value:t.profile.last_name,callback:function(e){t.$set(t.profile,"last_name",e)},expression:"profile.last_name"}})],1),e("a-form-model-item",{attrs:{label:"开始时间",prop:"begin_input_time","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.beginTimeVisible,callback:function(e){t.beginTimeVisible=e},expression:"beginTimeVisible"}},[e("a-input",{attrs:{placeholder:"请选择开始时间",allowClear:""},model:{value:t.profile.begin_input_time,callback:function(e){t.$set(t.profile,"begin_input_time",e)},expression:"profile.begin_input_time"}}),e("DateTimePicker",{attrs:{slot:"content"},on:{change:function(e){return t.profile.begin_input_time=e}},slot:"content"})],1)],1),e("a-form-model-item",{attrs:{label:"结束时间",prop:"end_input_time","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.endTimeVisible,callback:function(e){t.endTimeVisible=e},expression:"endTimeVisible"}},[e("a-input",{attrs:{placeholder:"请选择结束时间",allowClear:""},model:{value:t.profile.end_input_time,callback:function(e){t.$set(t.profile,"end_input_time",e)},expression:"profile.end_input_time"}}),e("DateTimePicker",{attrs:{slot:"content"},on:{change:function(e){return t.profile.end_input_time=e}},slot:"content"})],1)],1),e("a-form-model-item",{attrs:{label:"数字占卜",prop:"yicuojin","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入三个数字,以英文逗号分隔(例如:1, 2, 3)",allowClear:""},model:{value:t.profile.yicuojin,callback:function(e){t.$set(t.profile,"yicuojin",e)},expression:"profile.yicuojin"}})],1),e("a-form-model-item",{attrs:{label:"文王卦",prop:"wenwanggua","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入六个字符,以英文逗号分隔(例如:断, 连, 断, 断, 连, 断)",allowClear:""},model:{value:t.profile.wenwanggua,callback:function(e){t.$set(t.profile,"wenwanggua",e)},expression:"profile.wenwanggua"}})],1),e("a-form-model-item",{attrs:{label:"文王卦类型",prop:"wenwanggualeixing","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-select",{attrs:{placeholder:"请选择文王卦类型"},on:{change:function(e){return t.profile.wenwanggualeixing=e}}},t._l(t.wenwangguaType,(function(r){return e("a-select-option",{key:r,attrs:{value:r}},[t._v(" "+t._s(r)+" ")])})),1)],1),e("a-form-model-item",{attrs:{label:"大六壬占时",prop:"daliurenzhanshi","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入时辰(例如:子)",allowClear:""},model:{value:t.profile.daliurenzhanshi,callback:function(e){t.$set(t.profile,"daliurenzhanshi",e)},expression:"profile.daliurenzhanshi"}})],1),e("a-form-model-item",{attrs:{label:"当前时间",prop:"now_time","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.nowTimeVisible,callback:function(e){t.nowTimeVisible=e},expression:"nowTimeVisible"}},[e("a-input",{attrs:{placeholder:"请选择当前时间",allowClear:""},model:{value:t.profile.now_time,callback:function(e){t.$set(t.profile,"now_time",e)},expression:"profile.now_time"}}),e("DateTimePicker",{attrs:{slot:"content"},on:{change:function(e){return t.profile.now_time=e}},slot:"content"})],1)],1),e("a-form-model-item",{attrs:{label:"答题测试结果",prop:"test_result","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入测试结果(例如:分数或者 A、B、C、D)",allowClear:""},model:{value:t.profile.test_result,callback:function(e){t.$set(t.profile,"test_result",e)},expression:"profile.test_result"}})],1),e("a-form-model-item",{attrs:{label:"DISC 测试结果",prop:"disc_result","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入测试结果(例如:1,2,3,4)",allowClear:""},model:{value:t.profile.disc_result,callback:function(e){t.$set(t.profile,"disc_result",e)},expression:"profile.disc_result"}})],1)]:t._e()],2),e("div",{staticStyle:{"text-align":"center"}},[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit("0")}}},[t._v("立即测算")])],1)],1),e("a-col",{attrs:{span:12}},[t.codeValue?e("CodeEditor",{attrs:{width:"100%",value:t.codeValue}}):e("div",{staticStyle:{border:"1px solid #eee",height:"100%",position:"relative"}},[e("a-empty",{staticStyle:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"},attrs:{description:"暂无测试结果"}})],1)],1)],1),e("a-modal",{attrs:{title:"选择命例",width:720,bodyStyle:{maxHeight:"480px",overflow:"auto"}},on:{ok:t.confirm},model:{value:t.pickerVisible,callback:function(e){t.pickerVisible=e},expression:"pickerVisible"}},[e("ProfileSelect",{on:{select:t.handleProfileSelect}})],1),e("a-button",{staticStyle:{position:"fixed",bottom:"10px",left:"106px"},attrs:{type:"primary"},on:{click:function(e){return t.submit("1")}}},[t._v(" 发布产品 ")])],1)},Yl=[],Wl={computed:{districts:function(){var t=this.$store.state["m-algorithm"].district,e=t&&t.filter((function(t){return"1"===t.level})),r=t&&t.filter((function(t){return"2"===t.level})),n=t&&t.filter((function(t){return"3"===t.level}));return e.map((function(t){return{value:t.district_id,label:t.district_name,children:r.filter((function(e){return e.parent===t.district_id})).map((function(t){return{value:t.district_id,label:t.district_name,children:n.filter((function(e){return e.parent===t.district_id})).map((function(t){return{value:t.district_id,label:t.district_name,time_zone:t.time_zone}}))}}))}}))||[]}}},Zl=function(){var t=this,e=t._self._c;return e("div",{ref:"monaco",staticStyle:{border:"1px solid #e8e8e8"},style:{width:t.width,height:t.height}})},Jl=[],Xl=r("2364"),Ql=null,tu={props:{width:{type:String,default:"800px"},height:{type:String,default:"600px"},value:{type:[Array,String],default:function(){return["function x() {",'\tconsole.log("Hello world!");',"}"]}}},mounted:function(){this.getResult(this.value)},methods:{getResult:function(t){Ql&&Ql.dispose();var e=Xl["Uri"].parse("json://grid/settings.json");Ql=Xl["editor"].create(this.$refs.monaco,{value:JSON.stringify(t,null,"\t"),language:"json",Uri:e})}},watch:{value:function(t){this.getResult(t)}}},eu=tu,ru=qr(eu,Zl,Jl,!1,null,null,null),nu=ru.exports,ou=function(){var t=this,e=t._self._c;return e("a-row",{staticClass:"custom-datepicker",attrs:{type:"flex"}},[e("a-col",[e("ul",t._l(t.years,(function(r,n){return e("li",{key:n,class:{active:t.value.yearIndex===n},on:{click:function(e){return t.change("year",n)}}},[t._v(" "+t._s(r)+"年 ")])})),0)]),e("a-col",[e("ul",t._l(t.months,(function(r,n){return e("li",{key:r,class:{active:t.value.monthIndex===n},on:{click:function(e){return t.change("month",n)}}},[t._v(" "+t._s(r)+"月 ")])})),0)]),e("a-col",[e("ul",t._l(t.days,(function(r,n){return e("li",{key:r,class:{active:t.value.dayIndex===n},on:{click:function(e){return t.change("day",n)}}},[t._v(" "+t._s(r)+"日 ")])})),0)]),e("a-col",[e("ul",t._l(t.hours,(function(r,n){return e("li",{key:r,class:{active:t.value.hourIndex===n},on:{click:function(e){return t.change("hour",n)}}},[t._v(" "+t._s(r)+"时 ")])})),0)]),e("a-col",[e("ul",t._l(t.minutes,(function(r,n){return e("li",{key:r,class:{active:t.value.minuteIndex===n},on:{click:function(e){return t.change("minute",n)}}},[t._v(" "+t._s(r)+"分 ")])})),0)])],1)},iu=[],au=[],su=[],cu=[],lu=[],uu=1901;uu<=2030;uu++)au.push("".concat(uu));for(var fu=1;fu<=12;fu++)su.push(fu<10?"0".concat(fu):"".concat(fu));for(var hu=0;hu<=23;hu++)cu.push(hu<10?"0".concat(hu):"".concat(hu));for(var du=0;du<=59;du++)lu.push(du<10?"0".concat(du):"".concat(du));var pu={props:{isLunar:{type:Boolean,default:!1}},data:function(){return{years:au,year:"1901",months:su,month:"01",day:"01",hours:cu,hour:"00",minutes:lu,minute:"00"}},computed:{days:function(){var t=[];if(this.isLunar)for(var e=1;e<=30;e++)t.push(e<10?"0".concat(e):"".concat(e));else if(["01","03","05","07","08","10","12"].includes(this.month))for(var r=1;r<=31;r++)t.push(r<10?"0".concat(r):"".concat(r));else if(["04","06","09","11"].includes(this.month))for(var n=1;n<=30;n++)t.push(n<10?"0".concat(n):"".concat(n));else if("02"===this.month)if(parseInt(this.year)%4===0&&parseInt(this.year)%100!==0||parseInt(this.year)%400===0)for(var o=1;o<=29;o++)t.push(o<10?"0".concat(o):"".concat(o));else for(var i=1;i<=28;i++)t.push(i<10?"0".concat(i):"".concat(i));return t},value:function(){var t=this.years.indexOf(this.year),e=this.months.indexOf(this.month),r=this.days.indexOf(this.day),n=this.hours.indexOf(this.hour),o=this.minutes.indexOf(this.minute);return{yearIndex:t,monthIndex:e,dayIndex:r,hourIndex:n,minuteIndex:o}}},created:function(){},methods:{change:function(t,e){"year"===t?this.year=this.years[e]:"month"===t?this.month=this.months[e]:"day"===t?this.day=this.days[e]:"hour"===t?this.hour=this.hours[e]:"minute"===t&&(this.minute=this.minutes[e]);var r="".concat(this.year,"-").concat(this.month,"-").concat(this.day," ").concat(this.hour,":").concat(this.minute);this.$emit("change",r)}}},vu=pu,yu=(r("6d57"),qr(vu,ou,iu,!1,null,null,null)),mu=yu.exports,gu=function(){var t=this,e=t._self._c;return e("div",[e("a-input",{staticStyle:{width:"200px","margin-bottom":"24px"},attrs:{placeholder:"昵称",allowClear:""},on:{change:t.handleNameChange},model:{value:t.nickName,callback:function(e){t.nickName=e},expression:"nickName"}}),e("a-table",{attrs:{columns:t.columns,loading:t.loading,"data-source":t.userCase(),rowSelection:t.rowSelection,pagination:{current:t.getPagination?parseInt(t.getPagination.current):1,total:t.getPagination?parseFloat(t.getPagination.count):0,defaultPageSize:15},rowKey:"profile_id"},on:{change:t.handleChange},scopedSlots:t._u([{key:"gender",fn:function(r){return e("span",{},[t._v(" "+t._s("female"===r?"女":"男")+" ")])}}])})],1)},bu=[],wu=[{title:"昵称",dataIndex:"nick_name",key:"nick_name"},{title:"姓氏",dataIndex:"first_name",key:"first_name"},{title:"名字",dataIndex:"last_name",key:"last_name"},{title:"性别",dataIndex:"gender",key:"gender",scopedSlots:{customRender:"gender"}},{title:"生日",dataIndex:"birthday",key:"birthday"}],_u={mixins:[Tl],data:function(){return{columns:wu,rowSelection:{type:"radio",onSelect:this.onSelect},nickName:"",currentPage:1}},created:function(){this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage}})},computed:{getPagination:function(){return this.data["user-case"]?this.data["user-case"].pagination:null}},methods:{userCase:function(){return this.data["user-case"]?this.data["user-case"].collection:[]},onSelect:function(t){this.$emit("select",t)},handleChange:function(t){this.currentPage=t.current,this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage}}),this.userCase()},handleNameChange:function(t){this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage,nick_name:this.nickName}})}}},xu=_u,ku=qr(xu,gu,bu,!1,null,null,null),Ou=ku.exports;function Eu(t){return Eu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eu(t)}function Su(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Su=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Eu(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Eu(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function ju(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Nu(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ju(i,n,o,a,s,"next",t)}function s(t){ju(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Lu=["流年","流月","商务","健康","婚姻","爱情","工作","出行","学业","财运","家宅"],Pu={mixins:[Tl,Wl],props:["algorithmList"],components:{CodeEditor:nu,DateTimePicker:mu,ProfileSelect:Ou},data:function(){return{visible:!1,beginTimeVisible:!1,endTimeVisible:!1,nowTimeVisible:!1,showMore:!1,formLayout:"horizontal",formItemLayout:{labelCol:{span:6},wrapperCol:{span:14}},codeValue:null,wenwangguaType:Lu,profile:{nick_name:"",gender:"male",is_lunar:!1,birthday:null,place:[],is_twins:!1,is_leap:!1,birth_num:0,time_zone:8,is_day_light:!1,province:"",city:"",district:"",code:JSON.stringify(this.algorithmList)||"",productCode:"",productName:"",is_submit:"",first_name:"",last_name:"",begin_input_time:"",end_input_time:"",yicuojin:"",wenwanggua:"",wenwanggualeixing:"",daliurenzhanshi:"",now_time:"",test_result:"",disc_result:""},systemProfile:{},profileRules:{productCode:[{required:!0,message:"请输入产品编码",trigger:"blur"}],productName:[{required:!0,message:"请输入产品名称",trigger:"blur"}]},hasLeap:!1,hasDaylight:!1,pickerVisible:!1}},created:function(){this.loadDistrict()},methods:{submit:function(t){var e=this;return Nu(Su().mark((function r(){return Su().wrap((function(r){while(1)switch(r.prev=r.next){case 0:e.profile.is_submit=t,e.$refs.profileForm.validate(function(){var r=Nu(Su().mark((function r(n){var o;return Su().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(!n){r.next=10;break}return r.next=3,e.getResult({key:"/api/algorithm-product/algorithm",params:e.profile});case 3:if(o=r.sent,!o||!o.data||"0"!==t){r.next=7;break}return e.codeValue=[JSON.parse(o.data)],r.abrupt("return");case 7:o?(e.$message.success("增加算法产品成功"),e.$emit("close")):e.$message.error(e.message),r.next=11;break;case 10:return r.abrupt("return",!1);case 11:case"end":return r.stop()}}),r)})));return function(t){return r.apply(this,arguments)}}());case 2:case"end":return r.stop()}}),r)})))()},handleDistrictChange:function(t,e){e&&e.length?(this.profile.province=e[0].label,this.profile.city=e[1].label,this.profile.district=e[2].label,this.profile.time_zone=e[e.length-1].time_zone):(this.profile.province="",this.profile.city="",this.profile.district="",this.profile.time_zone=8)},handleDateTimeChange:function(t){this.profile.birthday=t,this.bindHasLunar(this.profile.birthday),this.bindDaylight(this.profile.birthday)},handleLunarChange:function(){this.profile.birthday&&(this.bindHasLunar(this.profile.birthday),this.bindDaylight(this.profile.birthday))},timeStamp:function(t){return new Date(t).getTime()},bindHasLunar:function(t){var e=t?t.substring(4,0):"",r=t?t.substring(5,7):"",n=this.lunarLeapMonthOfYear(e)<10?"0"+this.lunarLeapMonthOfYear(e).toString():this.lunarLeapMonthOfYear(e).toString();this.profile.is_lunar&&(r===n&&"00"!==n?(this.hasLeap=!0,this.profile.is_leap=!0):(this.hasLeap=!1,this.profile.is_leap=!1))},bindDaylight:function(t){if(""!==t){var e=t.replace(/-/g,"/"),r=this.timeStamp(e),n=[];n=this.profile.is_lunar?[{start:this.timeStamp("1986/03/26 02:00"),end:this.timeStamp("1986/08/11 02:00")},{start:this.timeStamp("1987/03/15 02:00"),end:this.timeStamp("1987/07/21 02:00")},{start:this.timeStamp("1988/02/24 02:00"),end:this.timeStamp("1988/08/01 02:00")},{start:this.timeStamp("1989/03/11 02:00"),end:this.timeStamp("1989/08/18 02:00")},{start:this.timeStamp("1990/03/20 02:00"),end:this.timeStamp("1990/07/28 02:00")},{start:this.timeStamp("1991/02/30 02:00"),end:this.timeStamp("1991/08/08 02:00")}]:[{start:this.timeStamp("1986/05/04 02:00"),end:this.timeStamp("1986/09/14 02:00")},{start:this.timeStamp("1987/04/12 02:00"),end:this.timeStamp("1987/09/13 02:00")},{start:this.timeStamp("1988/04/10 02:00"),end:this.timeStamp("1988/09/11 02:00")},{start:this.timeStamp("1989/04/16 02:00"),end:this.timeStamp("1989/09/17 02:00")},{start:this.timeStamp("1990/04/15 02:00"),end:this.timeStamp("1990/09/16 02:00")},{start:this.timeStamp("1991/04/14 02:00"),end:this.timeStamp("1991/09/15 02:00")}],n.length&&(r>=n[0].start&&r<=n[0].end||r>=n[1].start&&r<=n[1].end||r>=n[2].start&&r<=n[2].end||r>=n[3].start&&r<=n[3].end||r>=n[4].start&&r<=n[4].end||r>=n[5].start&&r<=n[5].end)?(this.hasDaylight=!0,this.profile.is_day_light=!0):(this.hasDaylight=!1,this.profile.is_day_light=!1)}},lunarLeapMonthOfYear:function(t){var e=[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42448,83315,21200,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46496,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,21952,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19415,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448];return 15&e[t-1900]},handleProfileSelect:function(t){this.systemProfile={},this.systemProfile=t},confirm:function(){this.profile.nick_name=this.systemProfile.nick_name||this.systemProfile.nick_name,this.profile.gender=this.systemProfile.gender||this.profile.gender,this.profile.is_lunar=this.systemProfile.is_lunar||this.profile.is_lunar,this.profile.birthday=this.systemProfile.birthday||this.profile.birthday,this.profile.province=this.systemProfile.province||this.profile.province,this.profile.city=this.systemProfile.city||this.profile.city,this.profile.district=this.systemProfile.district||this.profile.district,this.profile.place=this.checkProfilePlace(this.profile.province,this.profile.city,this.profile.district)||this.profile.district,this.profile.is_twins=!!(this.systemProfile.birth_num&&this.systemProfile.birth_num>0),this.profile.is_leap=this.systemProfile.is_leap||this.profile.is_leap,this.profile.birth_num=this.systemProfile.birth_num||this.profile.birth_num,this.profile.time_zone=this.systemProfile.time_zone||this.profile.time_zone,this.profile.is_day_light=this.systemProfile.is_day_light||this.profile.is_day_light,this.pickerVisible=!1},checkProfilePlace:function(t,e,r){var n=this.$store.state["m-algorithm"].district,o=n.find((function(e){return e.district_name===t}))?n.find((function(e){return e.district_name===t})).district_id:"",i=n.find((function(t){return t.district_name===e}))?n.find((function(t){return t.district_name===e})).district_id:"",a=n.find((function(t){return t.district_name===r}))?n.find((function(t){return t.district_name===r})).district_id:"";return[o,i,a]}},watch:{algorithmList:function(t){this.profile.code=JSON.stringify(t)}}},Cu=Pu,Au=qr(Cu,Kl,Yl,!1,null,null,null),Tu=Au.exports;function Ru(t){return Ru="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ru(t)}function Du(t){return Bu(t)||qu(t)||Mu(t)||Iu()}function Iu(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Mu(t,e){if(t){if("string"===typeof t)return Fu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fu(t,e):void 0}}function qu(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Bu(t){if(Array.isArray(t))return Fu(t)}function Fu(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function $u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Vu(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$u(Object(r),!0).forEach((function(e){Hu(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Hu(t,e,r){return e=Uu(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Uu(t){var e=Gu(t,"string");return"symbol"==Ru(e)?e:String(e)}function Gu(t,e){if("object"!=Ru(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ru(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var zu={mixins:[Tl],components:{CheckboxGroup:zl,AlgorithmForm:Tu},data:function(){return{current:0,steps:[{title:"核心解读"},{title:"描述解读"},{title:"排盘数据"},{title:"术数分析"},{title:"算法验证及发布"}],nameKeyword:"",codeKeyword:"",search:{nameKeyword:"",codeKeyword:""},type:"核心解读",showTime:{format:"HH:mm"},badgeStyle:{backgroundColor:"#8c8c8c"},pickerVisible:!1,defaultCheckedList:[]}},created:function(){this.loadData({key:"algorithm-read",query:{_size:9999}})},computed:{algorithmData:function(){var t=this,e=this.data["algorithm-read"]&&this.data["algorithm-read"].collection,r=e&&e.filter((function(e){return""!==t.search.nameKeyword||""!==t.search.codeKeyword?e.classify===t.type&&-1!==e.name.indexOf(t.search.nameKeyword)&&-1!==e.code.indexOf(t.search.codeKeyword):e.classify===t.type})).map((function(e){var r=Vu(Vu({},e),{},{values:[],checked:!1});return t.checkedList.length&&t.checkedList.forEach((function(e){e.read_id===r.read_id&&(t.$set(r,"values",e.values),t.$set(r,"checked",e.checked))})),r})),n=Du(new Set(r&&r.map((function(t){return t.classify})))),o=n&&n.map((function(t){var e=r.filter((function(e){return e.classify===t})),n=Du(new Set(e.map((function(t){return t.type})))),o=n.map((function(t){return{name:t,children:e.filter((function(e){return e.type===t}))}}));return{name:t,children:o}}));return o||[]},algorithmCount:function(){var t=this.defaultCheckedList,e=t.filter((function(t){return"核心解读"===t.classify})).length||0,r=t.filter((function(t){return"描述解读"===t.classify})).length||0,n=t.filter((function(t){return"排盘数据"===t.classify})).length||0,o=t.filter((function(t){return"术数分析"===t.classify})).length||0;return{coreAlgorithmCount:e,describeAlgorithmCount:r,paipanDataCount:n,surgeryAnalysisCount:o}},algorithmList:function(){var t=this.defaultCheckedList,e=[],r=[];return t.forEach((function(n){var o=n.code;r=n.values.length>1?n.values.map((function(t,e){var r=e+1,n=1===r?o:r<10?"".concat(o,"_0").concat(r):"".concat(o,"_").concat(r);return[n,t||[]]})):t.map((function(t){return[t.code,t.values.length?t.values[0]:[]]})),e=[].concat(Du(e),Du(r))})),Object.fromEntries(e)},checkedList:function(){return this.defaultCheckedList||[]}},methods:{next:function(){this.current++,this.type=this.steps[this.current].title},prev:function(){this.current--,this.type=this.steps[this.current].title},handleChange:function(t,e,r,n){var o=this;t.forEach((function(t){var e=o.defaultCheckedList.findIndex((function(e){return e.read_id===t.read_id}));-1===e?o.defaultCheckedList=[].concat(Du(o.defaultCheckedList),[t]):o.defaultCheckedList[e]=t}))},onSearch:function(){this.search.nameKeyword=this.nameKeyword,this.search.codeKeyword=this.codeKeyword},algorithmTotal:function(t){var e=t.map((function(t){return t.read_id})),r=this.checkedList.map((function(t){return t.read_id}));return e.filter((function(t){return r.includes(t)})).length}},watch:{nameKeyword:function(t){""===t&&this.onSearch()},codeKeyword:function(t){""===t&&this.onSearch()}}},Ku=zu,Yu=(r("4dd6"),qr(Ku,vl,yl,!1,null,null,null)),Wu=Yu.exports;function Zu(t){return tf(t)||Qu(t)||Xu(t)||Ju()}function Ju(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Xu(t,e){if(t){if("string"===typeof t)return ef(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ef(t,e):void 0}}function Qu(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function tf(t){if(Array.isArray(t))return ef(t)}function ef(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var rf=function(){var t=this,e=t._self._c;return e("div",[e("a-transfer",{staticClass:"tree-transfer",attrs:{"data-source":t.dataSource,"target-keys":t.checkedKeys,render:function(t){return t.title},"show-select-all":!1,"list-style":{maxHeight:"450px",overflowY:"auto"},showSearch:t.showSearch},on:{change:t.onChange,search:t.handleSearch},scopedSlots:t._u([{key:"children",fn:function(r){var n=r.props,o=n.direction,i=n.selectedKeys,a=r.on.itemSelect;return["left"===o?e("a-spin",{attrs:{spinning:t.leftLoding}},[e("a-tree",{attrs:{blockNode:"",checkable:"",checkStrictly:"",checkedKeys:[].concat(Zu(i),Zu(t.checkedKeys)),treeData:t.filterTreeNodes},on:{check:function(e,r){t.onChecked(e,r,[].concat(Zu(i),Zu(t.checkedKeys)),a)},select:function(e,r){t.onChecked(e,r,[].concat(Zu(i),Zu(t.checkedKeys)),a)}}})],1):t._e()]}}])})],1)},nf=[];function of(t){return of="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},of(t)}function af(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */af=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==of(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(of(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function sf(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function cf(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){sf(i,n,o,a,s,"next",t)}function s(t){sf(i,n,o,a,s,"throw",t)}a(void 0)}))}}function lf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function uf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lf(Object(r),!0).forEach((function(e){ff(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ff(t,e,r){return e=hf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hf(t){var e=df(t,"string");return"symbol"==of(e)?e:String(e)}function df(t,e){if("object"!=of(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=of(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var pf={mixins:[hn],data:function(){var t=this;return{targetKeys:[],dataSource:[],checkedKeys:this.params.data?this.params.data.map((function(e){return e[t.params.valueName]})):[],treeData:this.params.treeData||[],titleName:this.params.titleName,keyName:this.params.keyName,valuesName:this.params.valuesName,selected:this.params.selected||null,unselected:this.params.unselected||null,inputValue:"",leftLoding:!1}},computed:{treeNodes:function(){var t=this.treeData,e=this.titleName,r=this.keyName,n=this.checkedKeys,o=this.selected,i=this.unselected,a=function t(a){return a.map((function(a){var s;return a._childList&&(s=t(a._childList)),{title:a[e],key:a[r],children:s,disabled:n.includes(a[r])||o&&!we(o,a)||i&&we(i,a)}}))};return a(t)},filterTreeNodes:function(){var t=this;return this.inputValue?this.treeNodes.filter((function(e){return-1!==e.title.indexOf(t.inputValue)})):this.treeNodes},multiple:function(){return void 0===this.params.multiple||this.params.multiple},showSearch:function(){return void 0===this.params.showSearch||this.params.showSearch}},created:function(){this.treeNodes&&this.flatten(JSON.parse(JSON.stringify(this.treeNodes))),this.checkedKeys&&(this.actionModel=uf(uf({},this.actionModel),{},ff({},this.valuesName,this.checkedKeys)))},methods:{onChange:function(t,e){if((this.checkedKeys.length>1||t.length>1)&&"right"===e&&!this.multiple)return this.$message.error("只能选择 1 个人!"),!1;this.checkedKeys=t,this.actionModel=uf(uf({},this.actionModel),{},ff({},this.valuesName,this.checkedKeys))},isChecked:function(t,e){return-1!==t.indexOf(e)},onChecked:function(t,e,r,n){var o=e.node.eventKey;n(o,!this.isChecked(r,o))},flatten:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((function(e){t.dataSource.push({title:e.title,key:e.key}),e.children&&t.flatten(e.children)}))},handleSubmit:function(){var t=this;return cf(af().mark((function e(){return af().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.handleCommit();case 1:case"end":return e.stop()}}),e)})))()},handleSearch:function(t,e){var r=this,n=null;"left"===t&&(this.leftLoding=!0,n=setTimeout((function(){n&&clearTimeout(n),r.inputValue=e,r.leftLoding=!1}),1e3))}}},vf=pf,yf=(r("2387"),qr(vf,rf,nf,!1,null,"0ce5108d",null)),mf=yf.exports,gf=function(){var t=this,e=t._self._c;return e("a-tree",{attrs:{checkable:"",autoExpandParent:t.autoExpandParent,defaultCheckedKeys:t.checkedKeys,treeData:t.treeNodes,checkStrictly:""},on:{check:t.handleCheck}})},bf=[];function wf(t){return wf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wf(t)}function _f(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==wf(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(wf(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function xf(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function kf(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){xf(i,n,o,a,s,"next",t)}function s(t){xf(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Of(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ef(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Of(Object(r),!0).forEach((function(e){Sf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Of(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Sf(t,e,r){return e=jf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jf(t){var e=Nf(t,"string");return"symbol"==wf(e)?e:String(e)}function Nf(t,e){if("object"!=wf(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=wf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Lf={mixins:[hn],data:function(){var t=this;return{autoExpandParent:!0,checkedKeys:this.params.data.map((function(e){return e[t.params.valueName]})),treeData:this.params.treeData||[],titleName:this.params.titleName,keyName:this.params.keyName,valueName:this.params.valueName,valuesName:this.params.valuesName}},computed:{treeNodes:function(){var t=this.treeData,e=this.titleName,r=this.keyName,n=function t(n){return n.map((function(n){var o;return n._childList&&(o=t(n._childList)),{title:n[e],key:n[r],children:o}}))};return n(t)}},created:function(){this.checkedKeys&&(this.actionModel=Ef(Ef({},this.actionModel),{},Sf({},this.valuesName,this.checkedKeys)))},methods:{handleCheck:function(t,e){var r=t.checked;if(r.includes(e.node.eventKey)){var n=e.node;while(n&&n.eventKey)r.includes(n.eventKey)||r.push(n.eventKey),n=n.$parent}this.actionModel=Ef(Ef({},this.actionModel),{},Sf({},this.valuesName,r))},handleSubmit:function(){var t=this;return kf(_f().mark((function e(){return _f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.handleCommit();case 1:case"end":return e.stop()}}),e)})))()}}},Pf=Lf,Cf=qr(Pf,gf,bf,!1,null,null,null),Af=Cf.exports,Tf=function(){var t=this,e=t._self._c;return e("a-table",{attrs:{columns:t.cols,"data-source":t.treeData,rowKey:"type_id",scroll:{y:400},pagination:!1,rowSelection:{selectedRowKeys:t.selectedRowKeys,onChange:t.handleRowChange,onSelect:t.handleRowSelect,type:"checkbox"}},scopedSlots:t._u([{key:"expert",fn:function(r,n){return e("span",{},[e("a-select",{staticStyle:{width:"120px"},attrs:{placeholder:"请选择",allowClear:""},on:{change:function(e){return t.handleSelectChange(e,n)}}},t._l(t.experts,(function(r){return e("a-select-option",{key:r.expert_id,attrs:{value:r.expert_id}},[t._v(" "+t._s(r.expert_name)+" ")])})),1)],1)}}])})},Rf=[];function Df(t){return Df="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Df(t)}function If(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Mf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?If(Object(r),!0).forEach((function(e){qf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):If(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qf(t,e,r){return e=Bf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bf(t){var e=Ff(t,"string");return"symbol"==Df(e)?e:String(e)}function Ff(t,e){if("object"!=Df(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Df(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function $f(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Df(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Df(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Vf(t){return zf(t)||Gf(t)||Uf(t)||Hf()}function Hf(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Uf(t,e){if(t){if("string"===typeof t)return Kf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kf(t,e):void 0}}function Gf(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function zf(t){if(Array.isArray(t))return Kf(t)}function Kf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Yf(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Wf(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Yf(i,n,o,a,s,"next",t)}function s(t){Yf(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Zf={mixins:[hn],computed:{selectedRowKeys:function(){return this.selections.map((function(t){return t.type_id}))}},data:function(){return{treeData:this.params.treeData||[],valuesName:this.params.valuesName,cols:[{title:"评审技术要求",dataIndex:"review_tech_require",key:"review_tech_require"},{title:"评审专家",key:"expert",scopedSlots:{customRender:"expert"}}],experts:[],selections:[]}},created:function(){var t=this;return Wf($f().mark((function e(){var r,n;return $f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$api.get("/api/view-select-expert");case 3:r=e.sent,n=r.data.collection,t.experts=Vf(n),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),t.handleError(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))()},methods:{handleSelectChange:function(t,e){var r=this.treeData.findIndex((function(t){return t.type_id===e.type_id}));-1!==r&&(this.treeData[r].expert_id=t)},handleSubmit:function(){this.handleCommit()},handleRowChange:function(t,e){this.selections=e,this.actionModel=Mf(Mf({},this.actionModel),{},qf({},this.valuesName,this.selections))},handleRowSelect:function(t,e){var r=this.treeData.findIndex((function(e){return e.type_id===t.type_id}));-1!==r&&(this.treeData[r].checked=e?1:0)},handleError:function(t){t.response||this.$message.error("网络请求错误,请检查您的网络连接。");var e=t.response,r=e.status,n=e.data,o=n&&n.content||"系统错误请与管理员联系。";this.$message.error("".concat(r,", ").concat(o))}}},Jf=Zf,Xf=qr(Jf,Tf,Rf,!1,null,null,null),Qf=Xf.exports,th=function(){var t=this,e=t._self._c;return e("a-form-model",{ref:"form",staticStyle:{"min-height":"400px"},attrs:{model:t.actionModel,rules:t.rules}},[e("a-tabs",{attrs:{"tab-position":"top",size:"small"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.actionModel.confirm?e("a-tab-pane",{key:"1",staticClass:"flow-approve-content",attrs:{tab:"上报/审批",bodyStyle:{"overflow-y":"auto","max-height":"350px"}}},[t.actionModel.flow_action_name?e("div",{staticStyle:{"margin-bottom":"15px"}},[e("a-form-model-item",{attrs:{prop:"flow_action_name",size:"small"}},[e("a-radio-group",{attrs:{defaultValue:"submit"},model:{value:t.actionModel.flow_action_name,callback:function(e){t.$set(t.actionModel,"flow_action_name",e)},expression:"actionModel.flow_action_name"}},[e("a-radio-button",{attrs:{value:"submit"}},[t._v("审批通过")]),t.allowBack?e("a-radio-button",{attrs:{value:"back"}},[t._v(" 审批退回 ")]):t._e(),t.allowReassign?e("a-radio-button",{attrs:{value:"reassign"}},[t._v(" 转办 ")]):t._e(),t.allowInvolve?e("a-radio-button",{attrs:{value:"involve"}},[t._v(" 加签 ")]):t._e()],1)],1),t._l(t.attrs,(function(r){return[!r.scope||r.scope.includes(t.actionModel.flow_action_name)?e("Item",{key:r.name,attrs:{formModel:t.actionModel,prop:r.name,schema:r,required:r.required,params:{}},on:{change:function(e){return t.handleItemChange(e,r)}},model:{value:t.actionModel[r.name],callback:function(e){t.$set(t.actionModel,r.name,e)},expression:"actionModel[attr.name]"}}):t._e()]})),e("a-form-model-item",{attrs:{label:["reassign","involve"].includes(t.actionModel.flow_action_name)?"备注":"审批意见",prop:"deal_note",size:"small"}},[e("a-textarea",{attrs:{placeholder:"请输入".concat(["reassign","involve"].includes(t.actionModel.flow_action_name)?"备注":"审批或退回意见"),"auto-size":{minRows:4,maxRows:6}},model:{value:t.actionModel.deal_note,callback:function(e){t.$set(t.actionModel,"deal_note",e)},expression:"actionModel.deal_note"}})],1),"back"===t.actionModel.flow_action_name&&t.backs&&t.backs.length?e("a-form-model-item",{attrs:{label:"退回步骤",prop:"deal_note",size:"small"}},[e("a-select",{model:{value:t.actionModel.back_step,callback:function(e){t.$set(t.actionModel,"back_step",e)},expression:"actionModel.back_step"}},t._l(t.backs,(function(r){return e("a-select-option",{key:r.step_id,attrs:{value:r.step_id}},[t._v(" "+t._s(r.step_name)+" ")])})),1)],1):t._e(),t.allowOver?e("a-form-model-item",{attrs:{label:"结束工作流",prop:"allow_over",size:"small"}},[e("a-switch",{model:{value:t.actionModel.is_over,callback:function(e){t.$set(t.actionModel,"is_over",e)},expression:"actionModel.is_over"}})],1):t._e()],2):t._e(),t.actionModel.flow_action_name?t._e():e("a-card",{style:{marginBottom:t.actionModel.flow_action_name?"15px":"0"},attrs:{bordered:!!t.actionModel.flow_action_name}},t._l(t.attrs,(function(r){return e("Item",{key:r.name,attrs:{formModel:t.actionModel,prop:r.name,schema:r,params:{}},on:{change:function(e){return t.handleItemChange(e,r)}},model:{value:t.actionModel[r.name],callback:function(e){t.$set(t.actionModel,r.name,e)},expression:"actionModel[attr.name]"}})})),1),t.todos.length&&!["back","reassign","involve"].includes(t.actionModel.flow_action_name)&&t.todos[0].todo_actors.length?t._l(t.todos,(function(r,n){return e("div",{key:r.todo_id},[t.actionModel.flow_action_name?e("h4",[t._v("后续步骤")]):t._e(),e("div",{staticClass:"ant-table ant-table-scroll-position-left ant-table-small workflow-table"},[e("div",{staticClass:"ant-table-content"},[e("div",{staticClass:"ant-table-body"},[e("table",[e("thead",{staticClass:"ant-table-thead"},[e("tr",[e("th",{key:"no",attrs:{width:"10%"}},[e("span",[t._v("序号")])]),e("th",{key:"template_name"},[e("span",[t._v("下一步步骤名称")])]),e("th",{key:"template_desc"},[e("span",[t._v("下一步审批者")])])])]),e("tbody",{staticClass:"ant-table-tbody"},[e("tr",{staticClass:"ant-table-row ant-table-row-level-0"},[e("td",[e("p",{staticStyle:{padding:"12px 0"}},[t._v(t._s(n+1))])]),e("td",[e("p",{staticStyle:{padding:"12px 0"}},[t._v(" "+t._s(r.current_step.step_name)+" ")])]),e("td",[e("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{placeholder:"搜索姓名","enter-button":""},on:{search:function(e){return t.operatorNameValue=e}}}),e("a-table",{attrs:{dataSource:t.filterOperators(r.todo_actors.map((function(t){return t.operator}))),rowKey:"actor_id",rowSelection:t.rowSelection,pagination:!1,size:"middle"}},[e("a-table-column",{key:"actor_name",attrs:{title:"姓名",dataIndex:"actor_name"}}),e("a-table-column",{key:"actor_org_name",attrs:{title:"所在单位/部门",dataIndex:"actor_org_name"}})],1)],1)])])])])])])])})):t._e()],2):t._e(),e("a-tab-pane",{key:t.actionModel.confirm?"2":"1",attrs:{tab:"审批记录"}},[e("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px",padding:"20px"}}},[e("a-list",{attrs:{itemLayout:"horizontal",dataSource:t.logs},scopedSlots:t._u([{key:"renderItem",fn:function(r){return e("a-list-item",{},[e("a-list-item-meta",[e("div",{attrs:{slot:"title"},slot:"title"},[t._v(" "+t._s(r.step_name)+" - "+t._s(r.operator.actor_name)+" - "+t._s(r.operator.actor_org_name)+" ")]),t.$store.state.app.icon?e("a-avatar",{attrs:{slot:"avatar",src:t.$store.state.app.icon},slot:"avatar"}):e("a-avatar",{attrs:{slot:"avatar",icon:"user"},slot:"avatar"}),e("div",{attrs:{slot:"description"},slot:"description"},[e("div",[t._v(" "+t._s(r.deal_desc)+" ")]),r.deal_note?e("div",[t._v(" 审批意见:"+t._s(r.deal_note)+" ")]):t._e(),e("div",[e("a-icon",{attrs:{type:"clock-circle-o"}}),t._v(" "+t._s(t.moment(r.deal_time).format("YYYY-MM-DD HH:mm"))+" ")],1)])],1)],1)}}])})],1)],1),e("a-tab-pane",{key:"3",attrs:{tab:"工作流步骤"}},[e("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px",padding:"20px"}}},[e("a-timeline",t._l(t.steps,(function(r,n){return e("a-timeline-item",{key:r.step_id,attrs:{color:t.stepIndex>n?"blue":t.stepIndex===n?"green":"#999"}},[t._v(" "+t._s(n+1)+". "+t._s(r.step_name)+" "),t.stepIndex>n?e("span",[t._v(" "+t._s(r.operator?"(".concat(r.operator,")"):"")+" ")]):t._e(),t.stepIndex===n?e("span",[t._v(" "+t._s(t.operatorName)+" ")]):t._e()])})),1)],1)],1),e("a-tab-pane",{key:"4",attrs:{tab:"流程图",forceRender:""}},[e("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px"}}},[e("div",{ref:"graph"})])],1)],1)],1)},eh=[],rh=r("336c"),nh=r.n(rh);function oh(t){return oh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oh(t)}function ih(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ih=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==oh(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(oh(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function ah(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function sh(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ah(i,n,o,a,s,"next",t)}function s(t){ah(i,n,o,a,s,"throw",t)}a(void 0)}))}}function ch(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function lh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ch(Object(r),!0).forEach((function(e){uh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ch(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function uh(t,e,r){return e=fh(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fh(t){var e=hh(t,"string");return"symbol"==oh(e)?e:String(e)}function hh(t,e){if("object"!=oh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=oh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}nh.a.track(!1);var dh=r("019f"),ph={mixins:[hn],components:{Item:Ri},data:function(){return{actionModel:lh(lh({},this.values),{},{is_over:!1})||{},todos:this.params.flow&&this.params.flow.flow_data.todo&&this.params.flow.flow_data.todo.constructor===Array?this.params.flow.flow_data.todo:[this.params.flow.flow_data.todo],current:this.params.flow&&this.params.flow.flow_data.case,formItems:this.params.flow&&this.params.flow.flow_data.form_param||[],backs:this.params.flow&&this.params.flow.flow_data.back_step,allowBack:this.params.flow&&this.params.flow.flow_data.allow_back,allowReassign:this.params.flow&&this.params.flow.flow_data.allow_reassign,allowInvolve:this.params.flow&&this.params.flow.flow_data.allow_involve,allowOver:this.params.flow&&this.params.flow.flow_data.allow_over,caseSteps:this.params.flow&&this.params.flow.model.case_step,logs:this.params.flow&&this.params.flow.flow_data.logs,rowSelection:{onChange:this.handleSelectionChange,columnWidth:"35px",type:this.params&&this.params.rowSelectionType?this.params.rowSelectionType:"checkbox",selectedRowKeys:[]||!1},activeName:"1",operatorNameValue:""}},created:function(){var t=this;if(this.todos&&1===this.todos.length&&this.todos[0].todo_actors&&1===this.todos[0].todo_actors.length&&(this.rowSelection.selectedRowKeys=this.params.flow.flow_data.todo&&this.params.flow.flow_data.todo[0]&&this.params.flow.flow_data.todo[0].todo_actors&&this.params.flow.flow_data.todo[0].todo_actors.map((function(t){return t.operator.actor_id})),this.actionModel.todo_actors=this.rowSelection.selectedRowKeys),this.todos&&this.todos.forEach((function(e){if(e.next_default_actor&&e.todo_actors){var r=e.todo_actors.map((function(t){return t.operator.actor_id}));t.rowSelection.selectedRowKeys=r.filter((function(t){return e.next_default_actor===t})),t.actionModel.todo_actors=t.rowSelection.selectedRowKeys}})),this.defaultValues)for(var e in this.defaultValues)void 0===this.actionModel[e]&&this.$set(this.actionModel,e,this.defaultValues[e])},mounted:function(){var t=this;setTimeout((function(){t.renderGraph()}),50)},methods:{handleSelectionChange:function(t){this.rowSelection.selectedRowKeys=this.actionModel.todo_actors=t},handleCommit:function(){var t=this;return sh(ih().mark((function e(){return ih().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.todos[0].todo_actors.length||t.actionModel.todo_actors.length||["back","reassign","involve"].includes(t.actionModel.flow_action_name)||t.params.todoActorsNotRequired){e.next=3;break}return t.$message.error("请选择下一步审批者"),e.abrupt("return");case 3:t.$emit("commit",t.actionModel);case 4:case"end":return e.stop()}}),e)})))()},handleItemChange:function(t,e){var r=this;return sh(ih().mark((function n(){var o,i,a,s;return ih().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(o=e.name,!(t instanceof FileList)){n.next=14;break}if(!t[0]){n.next=11;break}return i=new FormData,i.append(o,t[0]),n.next=7,r.$api.post("/upload",i);case 7:a=n.sent,t=a.data.data[o],n.next=12;break;case 11:t=null;case 12:n.next=15;break;case 14:t instanceof Date&&(t=r.moment(t).format("YYYY-MM-DD"));case 15:s=lh({},r.actionModel.data),s[o]=t,r.actionModel.data=lh({},s);case 18:case"end":return n.stop()}}),n)})))()},renderGraph:function(){var t=this;nh.a.registerNode("rect",{getPath:function(t){var e=150,r=40;return nh.a.Util.getRectPath(-e/2,-r/2,e,r,10)}});var e={nodes:this.steps.map((function(t,e){return{id:t.step_id,name:t.step_name,stepIndex:e}})),edges:this.steps.slice(1).map((function(e){var r=t.steps.find((function(t){return t.step_id===e.before_step_id}))||t.steps.find((function(t){return t.after_step_id===e.step_id}));return{source:r&&r.step_id,target:e.step_id}}))},r=new nh.a.Graph({container:this.$refs.graph,fitView:"cc",height:72*this.steps.length,plugins:[new dh({ranksep:30})],defaultIntersectBox:"rect"});r.node({shape:"rect",label:function(t){return t.name},style:function(e){return{stroke:t.stepIndex>e.stepIndex?"#0285cd":t.stepIndex===e.stepIndex?"#52c41a":"#999",fill:"#999",fillOpacity:.3,lineWidth:2}}}),r.edge({style:{endArrow:!0}}),r.read(e)},filterOperators:function(t){var e=this;return this.operatorNameValue?t.filter((function(t){return t.actor_name.toString().toLowerCase().includes(e.operatorNameValue.toLowerCase())})):t}},computed:{lastStepID:function(){return this.logs&&this.logs.length>0&&this.current&&"on-going"===this.current.case_status&&this.todos&&this.todos.length>0?this.todos[0].current_step_id:this.current&&"success"===this.current.case_status?this.caseSteps[this.caseSteps.length-1].step_id:this.caseSteps[0].step_id},stepIndex:function(){var t=this,e=this.steps.findIndex((function(e){return t.lastStepID===e.step_id}));return!this.action||"e.flow-check"!==this.action.action&&"e.flow-submit"!==this.action.action?e:e-1},steps:function(){return this.caseSteps.filter((function(t){return Number(t.valid)}))},attrs:function(){var t=this,e=this.formItems.map((function(t){return t.attr_name})),r=this.view.schema.model.attrs.filter((function(t){return e.includes(t.name)})).map((function(e){var r=t.formItems.find((function(t){return t.attr_name===e.name}));return lh(lh({},e),r)}));return["reassign","involve"].includes(this.actionModel.flow_action_name)?r.filter((function(e){return e.attr_name===t.actionModel.flow_action_name})):r.filter((function(t){return!["reassign","involve"].includes(t.attr_name)}))},defaultValues:function(){var t=this.attrs?this.attrs.filter((function(t){return!!t.value})).map((function(t){return[t.name,t.value]})):[];return t.length?Object.fromEntries(t):null},operatorName:function(){var t=[];return!this.action||"e.flow-check"!==this.action.action&&"e.flow-submit"!==this.action.action?this.logs&&this.logs.length>0&&this.todos&&this.todos.length>0&&this.todos[0].todo_actors?t=this.todos[0].todo_actors.filter((function(t){return"close"!==t.status})).map((function(t){return t.operator_name})):this.logs&&0===this.logs.length&&(t=[this.$store.state.user.name]):t=[this.$store.state.user.name],t.length>0?"(".concat(t.join("、"),")"):""}}},vh=ph,yh=(r("e993"),qr(vh,th,eh,!1,null,null,null)),mh=yh.exports,gh=function(){var t=this,e=t._self._c;return e("a-spin",{staticStyle:{height:"inherit"},attrs:{spinning:t.loading}},[e("a-spin",{staticStyle:{height:"inherit"},attrs:{spinning:!t.init}},[this.isError?t._e():e("div",{staticClass:"jjh",staticStyle:{"background-color":"red"}},[t.init?e("NodeContainer",{attrs:{"business-adapter":t.businessAdapter,"node-data":t.nodeData}}):t._e()],1),t.isError?e("div",[t._v("系统错误! 尝试关闭并重新打开")]):t._e()])],1)},bh=[],wh=function(){var t=this,e=t._self._c;return e("section",{ref:"workflow-box",staticClass:"jjh-workflow-container",attrs:{id:"workflow-box"}},[t.hideZoom?t._e():e("div",{staticClass:"zoom-box"},[e("a-affix",{attrs:{"offset-top":30}},[e("div",{staticStyle:{display:"flex","align-items":"center"}},[e("a-button",{attrs:{disabled:t.zoomScale>=150,shape:"circle"},on:{click:function(e){return t.zoom(10)}}},[t._v(" + ")]),e("div",{staticStyle:{margin:"10px"}},[t._v(t._s(t.zoomScale)+"%")]),e("a-button",{attrs:{disabled:t.zoomScale<=40,shape:"circle"},on:{click:function(e){return t.zoom(-10)}}},[t._v(" - ")])],1)])],1),e("div",{staticClass:"box-scale",style:"transform: scale("+t.zoomScale/100+"); transform-origin: 50% 0px 0px;"},[t.done?e("node-wrap",{key:t.nodeHandler.isPreview,attrs:{"node-config":{node:t.nodeHandler.getStartNode()},"node-handler":t.nodeHandler}}):t._e()],1)])},_h=[];function xh(t){return xh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xh(t)}function kh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Oh(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,jh(n.key),n)}}function Eh(t,e,r){return e&&Oh(t.prototype,e),r&&Oh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Sh(t,e,r){return e=jh(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jh(t){var e=Nh(t,"string");return"symbol"==xh(e)?e:String(e)}function Nh(t,e){if("object"!=xh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=xh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Lh(t,e,r){return Ch(t,e),Ph(r,"get"),Ah(t,r)}function Ph(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}function Ch(t,e){if(t!==e)throw new TypeError("Private static access of wrong provenance")}function Ah(t,e){return e.get?e.get.call(t):e.value}var Th=function(){function t(e,r,n){kh(this,t),Sh(this,"name",void 0),Sh(this,"mode",void 0),Sh(this,"component",void 0),this.name=e,this.mode=r,this.component=n}return Eh(t,null,[{key:"registerNodeType",value:function(e,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){throw new Error("【flow-designer】NodeType: 类型"+e+"不支持创建节点")},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=new t(e,r,n);return Lh(this,t,Rh).set(e,a),Lh(this,t,Dh).set(e,o),i&&Lh(this,t,Ih).set(e,i),a}},{key:"getNodeType",value:function(e){return Lh(this,t,Rh).get(e)}},{key:"getBranchType",value:function(e){return Lh(this,t,Ih).get(e)}},{key:"createNode",value:function(e){if(!Lh(this,t,Dh).has(e))throw new Error("【flow-designer】NodeType: 类型"+e+"不支持创建节点");return Lh(this,t,Dh).get(e)()}},{key:"createWrap",value:function(e){if(!Lh(this,t,Dh).has(e))throw new Error("【flow-designer】NodeType: 类型"+e+"不支持创建节点");return Lh(this,t,Dh).get(e)()}}]),t}();Sh(Th,"START","start"),Sh(Th,"END","end"),Sh(Th,"CHECK","check"),Sh(Th,"CC","cc"),Sh(Th,"TRIGGER","trigger"),Sh(Th,"DELAY","delay"),Sh(Th,"PARALLEL_WRAP","parallel_wrap"),Sh(Th,"PARALLEL","parallel"),Sh(Th,"JUDGE_WRAP","judge_wrap"),Sh(Th,"JUDGE","judge");var Rh={writable:!0,value:new Map},Dh={writable:!0,value:new Map},Ih={writable:!0,value:new Map};function Mh(){Th.registerNodeType(Th.START,"single","StartNode"),Th.registerNodeType(Th.CHECK,"single","CheckNode",(function(){return new Yh("审批人","审批人",null,Th.CHECK)})),Th.registerNodeType(Th.CC,"single","CCNode",(function(){return new Yh("抄送人","抄送人",null,Th.CC)})),Th.registerNodeType(Th.TRIGGER,"single","TriggerNode",(function(){return new Yh("触发器","触发器",null,Th.TRIGGER)})),Th.registerNodeType(Th.DELAY,"single","DelayNode",(function(){return new Yh("延迟等待","延迟等待",null,Th.DELAY)})),Th.registerNodeType(Th.END,"single","EndNode"),Th.registerNodeType(Th.PARALLEL_WRAP,"wrap","ParallelWrapNode",(function(){return[new Yh("并行分支","并行分支","gateway",Th.PARALLEL_WRAP,null,null,[]),new Yh("分支","NodeHandler Automatic generated","并行任务(同时进行)",Th.PARALLEL),new Yh("分支","NodeHandler Automatic generated","并行任务(同时进行)",Th.PARALLEL)]}),Th.PARALLEL),Th.registerNodeType(Th.PARALLEL,"single","ParallelNode",(function(){return new Yh("NodeHandler Automatic generated","NodeHandler Automatic generated","并行任务(同时进行)",Th.PARALLEL)})),Th.registerNodeType(Th.JUDGE_WRAP,"wrap","JudgeWrapNode",(function(){return[new Yh("条件分支","条件分支","gateway",Th.JUDGE_WRAP,null,null,[]),new Yh("条件","NodeHandler Automatic generated",null,Th.JUDGE),new Yh("条件","NodeHandler Automatic generated",null,Th.JUDGE)]}),Th.JUDGE),Th.registerNodeType(Th.JUDGE,"single","JudgeNode",(function(){return new Yh("NodeHandler Automatic generated","NodeHandler Automatic generated",null,Th.JUDGE)}))}Mh();var qh=Th;function Bh(t){return Bh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bh(t)}function Fh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $h(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Uh(n.key),n)}}function Vh(t,e,r){return e&&$h(t.prototype,e),r&&$h(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Hh(t,e,r){return e=Uh(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Uh(t){var e=Gh(t,"string");return"symbol"==Bh(e)?e:String(e)}function Gh(t,e){if("object"!=Bh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Bh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var zh,Kh=function(){function t(e,r,n,o,i,a,s){Fh(this,t),Hh(this,"name",void 0),Hh(this,"code",void 0),Hh(this,"content",void 0),Hh(this,"type",void 0),Hh(this,"data",void 0),Hh(this,"nextNodeCode",void 0),Hh(this,"childNodeCodes",void 0),Hh(this,"error",void 0),this.name=e,this.code=r,this.content=n,this.type=o,this.data=i,this.nextNodeCode=a,this.childNodeCodes=s}return Vh(t,[{key:"isBranchNode",value:function(){return[qh.JUDGE,qh.PARALLEL].includes(this.type)}},{key:"isHeadNode",value:function(){return[qh.START,qh.JUDGE,qh.PARALLEL].includes(this.type)}},{key:"isFootNode",value:function(){return this.type===qh.END||!this.nextNodeCode}},{key:"isWrapNode",value:function(){return[qh.PARALLEL_WRAP,qh.JUDGE_WRAP].includes(this.type)}}],[{key:"parse",value:function(e){return(null===e||void 0===e?void 0:e.constructor)===t?e:new t(e.name,e.code,e.content,e.type,e.data,e.nextNodeCode,e.childNodeCodes)}}]),t}(),Yh=Kh;function Wh(t){return Wh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wh(t)}function Zh(t){return td(t)||Qh(t)||Xh(t)||Jh()}function Jh(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Xh(t,e){if(t){if("string"===typeof t)return ed(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ed(t,e):void 0}}function Qh(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function td(t){if(Array.isArray(t))return ed(t)}function ed(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function rd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nd(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sd(n.key),n)}}function od(t,e,r){return e&&nd(t.prototype,e),r&&nd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function id(t,e){ud(t,e),e.add(t)}function ad(t,e,r){return e=sd(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sd(t){var e=cd(t,"string");return"symbol"==Wh(e)?e:String(e)}function cd(t,e){if("object"!=Wh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Wh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function ld(t,e,r){ud(t,e),e.set(t,r)}function ud(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function fd(t,e,r){return dd(t,e),hd(r,"get"),bd(t,r)}function hd(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}function dd(t,e){if(t!==e)throw new TypeError("Private static access of wrong provenance")}function pd(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}function vd(t,e,r){var n=gd(t,e,"set");return yd(t,n,r),r}function yd(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function md(t,e){var r=gd(t,e,"get");return bd(t,r)}function gd(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function bd(t,e){return e.get?e.get.call(t):e.value}var wd=new WeakMap,_d=new WeakMap,xd=new WeakMap,kd=new WeakMap,Od=new WeakMap,Ed=new WeakMap,Sd=new WeakMap,jd=new WeakMap,Nd=new WeakMap,Ld=new WeakSet,Pd=new WeakSet,Cd=new WeakSet,Ad=new WeakSet,Td=new WeakSet,Rd=new WeakSet,Dd=new WeakSet,Id=new WeakSet,Md=new WeakSet,qd=new WeakSet,Bd=new WeakSet,Fd=function(){function t(e,r){var n=this;if(rd(this,t),id(this,Bd),id(this,qd),id(this,Md),id(this,Id),id(this,Dd),id(this,Rd),id(this,Td),id(this,Ad),id(this,Cd),id(this,Pd),id(this,Ld),ld(this,wd,{writable:!0,value:new Map}),ld(this,_d,{writable:!0,value:new Map}),ld(this,xd,{writable:!0,value:new Map}),ld(this,kd,{writable:!0,value:new Map}),ld(this,Od,{writable:!0,value:new Map}),ld(this,Ed,{writable:!0,value:void 0}),ld(this,Sd,{writable:!0,value:void 0}),ld(this,jd,{writable:!0,value:void 0}),ld(this,Nd,{writable:!0,value:void 0}),ad(this,"isPreview",void 0),ad(this,"runtimeData",void 0),ad(this,"businessAdapter",void 0),e&&e.length||(e=[{name:"上报人",code:"上报人",type:"start",nextNodeCode:"流程结束"},{name:"流程结束",code:"流程结束",type:"end"}]),e.forEach((function(t){var e=Yh.parse(t);if(e.type===qh.START){if(md(n,Ed))throw new Error("【flow-designer】NodeHandler创建失败;只能有一个起始节点");vd(n,Ed,e)}if(e.type===qh.END){if(md(n,Sd))throw new Error("【flow-designer】NodeHandler创建失败;只能有一个结束节点");vd(n,Sd,e)}pd(n,Td,Gd).call(n,e)})),!md(this,Ed))throw new Error("【flow-designer】NodeHandler创建失败;没有起始节点");if(!md(this,Sd))throw new Error("【flow-designer】NodeHandler创建失败;没有结束节点");var o=md(this,Ed),i=new Set;try{pd(this,Id,Yd).call(this,i,o)}catch(a){if(a.msg)throw new Error("【flow-designer】NodeHandler创建失败;"+a.msg);throw new Error("【flow-designer】NodeHandler创建失败;"+a)}Zh(md(this,wd).values()).filter((function(t){return t.isWrapNode()})).forEach((function(t){return t.childNodeCodes.forEach((function(e){return md(n,xd).set(e,t.code)}))})),Zh(md(this,wd).values()).filter((function(t){return t.isBranchNode()})).forEach((function(t){var e=n.getNextNode(t.code);while(e)md(n,kd).set(e.code,t.code),e=n.getNextNode(e.code)})),window.nodeHandler=this,this.businessAdapter=r,r.nodeHandler=this}return od(t,[{key:"setPreview",value:function(t){this.isPreview=t,this.refresh()}},{key:"setRuntime",value:function(t){this.runtimeData=t}},{key:"setRefresh",value:function(t){vd(this,jd,t)}},{key:"refresh",value:function(){if(!md(this,jd))throw new Error("【flow-designer】NodeHandler刷新失败;未定义刷新方法");md(this,jd).call(this)}},{key:"map",value:function(){return{node:md(this,wd),preNode:md(this,_d),parentNodeMap:md(this,xd),branchNodeMap:md(this,kd),nodeCodeVersionMap:md(this,Od)}}},{key:"getStartNode",value:function(){return md(this,Ed)}},{key:"getEndNode",value:function(){return md(this,Sd)}},{key:"hasNextNode",value:function(t){var e=md(this,wd).get(t),r=null===e||void 0===e?void 0:e.nextNodeCode;return!!r}},{key:"getNextNode",value:function(t){var e=md(this,wd).get(t);if(!e)throw new Error("【flow-designer】NodeHandler获取后续节点失败;指定节点不存在:"+t);return this.getNode(e.nextNodeCode)}},{key:"handleNextNodeStream",value:function(t,e){var r=[];while(this.hasNextNode(t)){var n=this.getNextNode(t);t=n.code,r.push(n)}r.forEach((function(t){return e(t)}))}},{key:"getNextNodeStreamLast",value:function(t){var e=null;return this.handleNextNodeStream(t,(function(t){e=t})),e}},{key:"hasNode",value:function(t){return md(this,wd).has(t)}},{key:"getNode",value:function(t){return md(this,wd).get(t)}},{key:"hasPreNode",value:function(t){return md(this,_d).has(t)}},{key:"getPreNode",value:function(t){return this.getNode(this.nowNodeCode(md(this,_d).get(t)))}},{key:"handlePreNodeStream",value:function(t,e){var r=[];while(this.hasPreNode(t)){var n=this.getPreNode(t);t=n.code,r.push(n)}r.forEach((function(t){return e(t)}))}},{key:"hasWrapNode",value:function(t){var e=this.getNode(t),r=e;return e.isBranchNode()||(r=this.getBranchNode(e.code)),!!r}},{key:"getWrapNode",value:function(t){var e=this.getNode(t);if(!e)throw new Error("【flow-designer】NodeHandler获取包装器节点出错:指定节点不存在"+t);var r=e;if(e.isBranchNode()||(r=this.getBranchNode(e.code)),!r)return null;var n=this.nowNodeCode(md(this,xd).get(r.code));return this.getNode(n)}},{key:"hasBranchNode",value:function(t){return md(this,kd).has(t)}},{key:"getBranchNode",value:function(t){var e=this.nowNodeCode(md(this,kd).get(t));return this.getNode(e)}},{key:"nowNodeCode",value:function(t){if(!t)return null;var e=t,r=md(this,Od).get(e);while(r)e=r,r=md(this,Od).get(e);return e}},{key:"verify",value:function(){return this.businessAdapter.verifyNodeData(Zh(md(this,wd).values()))}},{key:"getAllRoute",value:function(t){var e=[];return pd(this,Ld,$d).call(this,t,e),e}},{key:"insertNode",value:function(t,e){var r=this.getNode(t);if(!r)throw new Error("【flow-designer】NodeHandler插入节点出错: source节点不存在:"+t);var n=r.nextNodeCode,o=this.getNode(n),i=e.type,a=qh.getNodeType(i);if("single"===a.mode){var s=qh.createNode(i);pd(this,Td,Gd).call(this,s),pd(this,Cd,Hd).call(this,r,s),o&&pd(this,Bd,Zd).call(this,s,o.code),pd(this,Bd,Zd).call(this,r,s.code)}if("wrap"===a.mode){var c=qh.createWrap(i),l=c[0];pd(this,Ad,Ud).call(this,l,c);var u=l.code;pd(this,Cd,Hd).call(this,r,l),o&&pd(this,Bd,Zd).call(this,l,o.code),pd(this,Bd,Zd).call(this,r,u)}this.refresh()}},{key:"wrapNode",value:function(t,e){var r,n=this.getNode(t);if(!n)throw new Error("【flow-designer】NodeHandler包装节点出错: source节点不存在");var o=e.type,i=qh.getNodeType(o);if("wrap"!==i.mode)throw new Error("【flow-designer】NodeHandler包装节点出错: 包装节点类型的模式必须为包装;非预期:"+i.mode);var a=qh.createWrap(o),s=a[0],c=a[1];pd(this,Ad,Ud).call(this,s,a),pd(this,Cd,Hd).call(this,n,s);var l=s.code,u=this.getPreNode(t),f=null,h=t;while(1){var d=f=this.getNextNode(h);if(!d)break;if(md(this,kd).set(h,c.code),d.type===qh.END){pd(this,Bd,Zd).call(this,this.getNode(h),null);break}h=d.code}pd(this,Bd,Zd).call(this,u,l),pd(this,Bd,Zd).call(this,s,null===(r=f)||void 0===r?void 0:r.code),pd(this,Bd,Zd).call(this,c,n.code),this.refresh()}},{key:"updateNode",value:function(t,e){if(!e)throw new Error("【flow-designer】NodeHandler更新节点出错: 更新内容不存在");var r=this.getNode(t);if(r)throw new Error("【flow-designer】NodeHandler更新节点出错: 要更新的节点不存在:"+t);md(this,wd).set(e.code,e)}},{key:"deleteNode",value:function(t){pd(this,Rd,zd).call(this,t),this.refresh()}},{key:"moveBranchNode",value:function(t,e){var r=this.getNode(t);if(!r.isBranchNode())throw new Error("【flow-designer】NodeHandler移动分支节点出错: 移动的节点必须是分支节点:"+t);var n=this.getWrapNode(t),o=n.childNodeCodes,i=o.indexOf(t),a=i+e;if(a<0||a>=o.length)throw new Error("【flow-designer】NodeHandler移动分支节点出错: 位移数出错:"+a);var s=o[a];o[a]=o.splice(i,1,s)[0],this.refresh()}},{key:"addBranch",value:function(t,e){var r=this.getNode(t);if(!r.isWrapNode())throw new Error("【flow-designer】NodeHandler 新增分支出错,只有wrap节点才可以创建分支:"+t);var n=qh.getBranchType(r.type),o=qh.createNode(n);return o.name=e+(r.childNodeCodes.length+1),o.code=t+o.name,pd(this,Td,Gd).call(this,o,null,t),this.refresh(),o}}]),t}();function $d(t,e){var r=this,n=this.getNode(t),o=n.nextNodeCode,i=this.getNode(o),a=t;while(!i){var s=this.getWrapNode(a);s&&(i=this.getNextNode(s.code),a=s.code)}if(!i)throw new Error("至少存在一条路");if([qh.CHECK,qh.END].includes(i.type))e.push(i);else{if(i.isWrapNode()){var c=i.childNodeCodes,l=0;if(c.forEach((function(t){var n=r.getNextNode(t);while(1){if(!n)return;if([qh.CHECK,qh.END].includes(n.type)&&(e.push(n),l+=1),n.isWrapNode()&&pd(r,Pd,Vd).call(r,n,e))return void(l+=1);n=r.getNextNode(n.code)}})),c.length===l)return}pd(this,Ld,$d).call(this,i.code,e)}}function Vd(t,e){var r=this,n=!0,o=t.childNodeCodes;return o.forEach((function(t){var o=r.getNextNode(t);while(1){if(!o)return void(n=!1);if([qh.CHECK,qh.END].includes(o.type))return void e.push(o);if(o.isWrapNode()){if(pd(r,Pd,Vd).call(r,o,e))return;n=!1}o=r.getNextNode(o.code)}})),n}function Hd(t,e){t.isBranchNode()&&md(this,kd).set(e.code,t.code),md(this,kd).has(t.code)&&md(this,kd).set(e.code,md(this,kd).get(t.code))}function Ud(t,e){pd(this,Td,Gd).call(this,t);for(var r=t.code,n=1;n<e.length;n++){var o=e[n];o.name=o.name+(t.childNodeCodes.length+1),o.code=r+o.name,pd(this,Td,Gd).call(this,o),md(this,xd).set(o.code,r),t.childNodeCodes.push(o.code)}}function Gd(t,e,r){pd(this,Dd,Kd).call(this,t);var n=t.code;md(this,wd).set(n,t),t.nextNodeCode&&pd(this,Md,Wd).call(this,t),e&&md(this,kd).set(n,e),r&&(this.getNode(r).childNodeCodes.push(n),md(this,xd).set(n,r))}function zd(t){var e=this;if(!this.hasNode(t))throw new Error("【flow-designer】NodeHandler删除节点出错: 要删除的节点不存在:"+t);var r=this.getNode(t);if(r.isWrapNode()&&r.childNodeCodes.forEach((function(t){return pd(e,Rd,zd).call(e,t)})),r.isBranchNode()){var n=this.getWrapNode(t),o=n.childNodeCodes;if(o.splice(o.indexOf(t),1),this.handleNextNodeStream(t,(function(t){pd(e,Rd,zd).call(e,t.code)})),md(this,wd).delete(t),md(this,xd).delete(t),1===o.length){var i=this.getNode(o[0]),a=this.getNextNode(i.code),s=this.getPreNode(n.code),c=this.getNextNode(n.code),l=this.getNextNodeStreamLast(i.code);pd(this,Bd,Zd).call(this,s,null===c||void 0===c?void 0:c.code),a&&(this.handleNextNodeStream(i.code,(function(t){md(e,kd).delete(t.code)})),pd(this,Bd,Zd).call(this,s,a.code),pd(this,Bd,Zd).call(this,i,null),pd(this,Bd,Zd).call(this,l,null===c||void 0===c?void 0:c.code),null!==s&&void 0!==s&&s.isBranchNode()&&md(this,kd).set(a.code,s.code)),md(this,_d).delete(n.code),pd(this,Bd,Zd).call(this,n,null),pd(this,Rd,zd).call(this,n.code)}}else{var u=this.getPreNode(t),f=this.hasNextNode(t)&&this.getNextNode(t);md(this,_d).delete(t),u&&pd(this,Bd,Zd).call(this,u,null===f||void 0===f?void 0:f.code),md(this,wd).delete(t),md(this,kd).delete(t)}}function Kd(t){var e=t.code;while(md(this,wd).has(t.code))fd(zh,zh,Jd)[e]||(fd(zh,zh,Jd)[e]=0),t.code=e+ ++fd(zh,zh,Jd)[e]}function Yd(t,e){var r=this;if(e.type!==qh.END&&(t.add(e.code),e.childNodeCodes&&e.childNodeCodes.forEach((function(n){var o=r.getNode(n);if(!o)throw{success:!1,msg:"node:".concat(e.name,"的子步骤不存在").concat(n)};pd(r,Id,Yd).call(r,t,o)})),e.nextNodeCode)){var n=this.getNode(e.nextNodeCode);if(e.nextNodeCode&&!n)throw{success:!1,msg:"node:".concat(e.name,"的后续步骤不存在").concat(e.nextNodeCode)};if(t.has(n.code))throw{success:!1,msg:"不支持循环节点:"+n.name};n&&pd(this,Id,Yd).call(this,t,n)}}function Wd(t){t.nextNodeCode&&md(this,_d).set(t.nextNodeCode,t.code)}function Zd(t,e){t.nextNodeCode=e,pd(this,Md,Wd).call(this,t)}zh=Fd;var Jd={writable:!0,value:{}},Xd=Fd,Qd=function(){var t=this,e=t._self._c;return e("div",{staticClass:"node-wrap"},[e("div",[e("div",{class:t.uiStyle[t.type]},[e(t.component,{tag:"component",attrs:{node:t.node,nodeHandler:t.nodeHandler,option:t.nodeConfig.option}})],1),t.type!==t.NodeType.END?e("div",[e("add-node",{attrs:{node:t.node,"node-handler":t.nodeHandler}})],1):t._e()]),t.node.nextNodeCode&&t.nodeHandler.hasNextNode(t.node.code)?e("node-wrap",{key:t.node.nextNodeCode,attrs:{"node-config":{node:t.nodeHandler.getNextNode(t.node.code)},"node-handler":t.nodeHandler}}):t._e()],1)},tp=[],ep=function(){var t=this,e=t._self._c;return e("div",{staticClass:"end-node"},[e("div",{staticClass:"end-node-circle"}),e("div",{staticClass:"end-node-text"},[t._v(" "+t._s(t.node.name))])])},rp=[],np={name:"EndNode",props:{node:Yh,nodeHandler:Object},setup:function(){}},op=np,ip=(r("c14c"),qr(op,ep,rp,!1,null,"778e5139",null)),ap=ip.exports,sp=function(){var t,e,r,n,o=this,i=o._self._c;return i("div",[null!==(t=o.nodeHandler)&&void 0!==t&&null!==(t=t.runtimeData)&&void 0!==t&&null!==(t=t.actorLogs[o.node.code])&&void 0!==t&&t.length?i("a-popover",{attrs:{placement:"rightTop"},scopedSlots:o._u([{key:"content",fn:function(){return[i("div",{staticStyle:{"min-width":"300px","max-width":"1200px"}},[i("runtime-workflow-actors",{attrs:{actors:o.nodeHandler.runtimeData.actorLogs[o.node.code]}})],1)]},proxy:!0}],null,!1,193291077)},[i("div",{staticClass:"node",class:o.getClass(),on:{click:o.click}},[i("div",{staticClass:"title"},[i("span",[i("a-icon",{attrs:{fill:"",theme:"filled",type:"flag"}})],1),i("span",[o._v(" "+o._s(o.node.name))]),null!==(e=o.nodeRef)&&void 0!==e&&null!==(e=e.data)&&void 0!==e&&null!==(e=e.other_options)&&void 0!==e&&null!==(e=e.assert)&&void 0!==e&&e.length?i("span",[i("a-icon",{attrs:{type:"control"}})],1):o._e()]),i("div",{staticClass:"content"},[i("span",{staticClass:"content-main"},[i("span",{staticClass:"error-tooltip"},[i("a-tooltip",[i("template",{slot:"title"},[o._v(" "+o._s(o.node.error)+" ")]),i("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),o.nodeContent?i("span",{staticStyle:{"padding-left":"5px"}},[i("span",{domProps:{innerHTML:o._s(o.nodeContent)}})]):i("span",{staticStyle:{"padding-left":"5px",color:"#666"}},[o._v(o._s(o.defaultContent))])])])])]):i("div",{staticClass:"node",class:o.getClass(),on:{click:o.click}},[i("div",{staticClass:"title"},[i("span",[i("a-icon",{attrs:{fill:"",theme:"filled",type:"flag"}})],1),i("span",[o._v(" "+o._s(o.node.name))]),null!==(r=o.nodeRef)&&void 0!==r&&null!==(r=r.data)&&void 0!==r&&null!==(r=r.other_options)&&void 0!==r&&null!==(r=r.assert)&&void 0!==r&&r.length?i("span",[i("a-icon",{attrs:{type:"control"}})],1):o._e()]),i("div",{staticClass:"content"},[i("span",{staticClass:"content-main"},[i("span",{staticClass:"error-tooltip"},[i("a-tooltip",[i("template",{slot:"title"},[o._v(" "+o._s(o.node.error)+" ")]),i("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),o.nodeContent?i("span",{staticStyle:{"padding-left":"5px"}},[i("span",{domProps:{innerHTML:o._s(o.nodeContent)}})]):i("span",{staticStyle:{"padding-left":"5px",color:"#666"}},[o._v(o._s(o.defaultContent))])])])]),o.nodeHandler.isPreview?o._e():i("a-drawer",{attrs:{closable:!0,visible:o.visible,width:720,placement:"right"},on:{close:o.hideDrawer}},[o.editName?o._e():i("div",{staticClass:"node-drawer-title",on:{click:o.showEditName}},[i("a-icon",{attrs:{type:"edit"}}),o._v(" "+o._s(o.node.name)+" ")],1),i("a-form-model",{directives:[{name:"show",rawName:"v-show",value:o.editName,expression:"editName"}],ref:"nameForm",attrs:{model:o.nodeRef,rules:{name:[{required:!0,message:"请填写节点名称",trigger:"blur"},{min:2,max:20,message:"2-20个字",trigger:"blur"}]},layout:"inline"}},[i("a-form-model-item",{ref:"name",attrs:{prop:"name"}},[i("a-input",{ref:"nameInput",attrs:{placeholder:"节点名称"},on:{blur:function(){o.editName=!1}},model:{value:o.nodeRef.name,callback:function(t){o.$set(o.nodeRef,"name",t)},expression:"nodeRef.name"}})],1)],1),i("a-tabs",{attrs:{"default-active-key":"1"},on:{change:o.changeTags},model:{value:o.tabKey,callback:function(t){o.tabKey=t},expression:"tabKey"}},[i("a-tab-pane",{key:"actors",attrs:{tab:"设置发起人"}},[i("div",{staticStyle:{color:"#717171","margin-bottom":"10px"}},[o._v("选择能发起该审批的人员/部门,不选则默认开放给所有人")]),i("a-button",{staticClass:"node-form-item",attrs:{disabled:"",icon:"plus",shape:"round",type:"primary"}},[o._v("请选择")]),i("a-alert",{attrs:{banner:"",message:"不支持在这里设置发起人! 如为发起人设置权限,请使用EAD动作权限配置实现"}})],1),i("a-tab-pane",{key:"forms",attrs:{tab:"操作视图"}},[i("div",{staticClass:"node-form-item"},[i("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[i("a-col",{attrs:{span:24}},[i("a-radio-group",{staticClass:"node-form-item",on:{change:o.changeViewType},model:{value:o.optionViewType,callback:function(t){o.optionViewType=t},expression:"optionViewType"}},[i("a-radio",{attrs:{value:"use_model"}},[o._v(" 沿用工作流模型 ")]),i("a-radio",{attrs:{value:"custom"}},[o._v(" 自主选择 ")])],1)],1)],1),i("a-row",[i("a-col",{attrs:{span:24}},["custom"===o.optionViewType?i("a-select",{staticClass:"node-form-item",staticStyle:{width:"100%"},attrs:{"default-active-first-option":!1,"filter-option":!1,"not-found-content":null,"show-arrow":!1,placeholder:"请输入表单视图名称","show-search":""},on:{change:o.optionViewChange,search:o.optionViewSearch},model:{value:o.nodeRef.data.option_view_id,callback:function(t){o.$set(o.nodeRef.data,"option_view_id",t)},expression:"nodeRef.data.option_view_id"}},o._l(o.optionViewList,(function(t){return i("a-select-option",{key:t.value,attrs:{value:t.value}},[o._v(" "+o._s(t.text)+" ")])})),1):o._e()],1)],1)],1),i("div",{key:o.nodeRef.data.option_view_id,staticClass:"node-from-item"},[i("a-divider",{attrs:{orientation:"left"}},[o._v("表单权限")]),"use_model"===o.optionViewType||o.nodeRef.data.option_view_id?i("a-spin",{attrs:{spinning:o.viewAttrLoading}},[i("a-row",[i("a-col",{attrs:{span:11}},[i("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索表单属性"},on:{search:function(t){return o.formsColumnFilter=t}}})],1),i("a-col",{attrs:{span:1}}),i("a-col",{attrs:{span:11}},[i("a-radio-group",{attrs:{"button-style":"solid"},model:{value:o.formsColumnAccess,callback:function(t){o.formsColumnAccess=t},expression:"formsColumnAccess"}},[i("a-radio-button",{attrs:{value:"all"}},[o._v(" 无 ")]),i("a-radio-button",{attrs:{value:"none"}},[o._v(" 隐藏 ")]),i("a-radio-button",{attrs:{value:"readonly"}},[o._v(" 只读 ")]),i("a-radio-button",{attrs:{value:"write"}},[o._v(" 可写 ")]),i("a-radio-button",{attrs:{value:"readonlywrite"}},[o._v(" 读写 ")])],1)],1)],1),i("a-table",{attrs:{columns:o.optionFormsColumns,"data-source":o.filterDataset(o.formsColumnFilter,o.nodeRef.data.option_forms,["attrName","attrCode"]),"row-key":function(t){return t.attrId}},scopedSlots:o._u([{key:"attrName",fn:function(t,e){return i("span",{},[o._v(o._s(e.attrName)+"("+o._s(e.attrCode)+")")])}},{key:"none",fn:function(t,e){return i("span",{},[i("a-radio",{attrs:{checked:"none"===e.access,value:"none"},on:{change:function(){return e.access="none"}}},[o._v("隐藏")])],1)}},{key:"readonly",fn:function(t,e){return i("span",{},[i("a-radio",{attrs:{checked:"readonly"===e.access,value:"readonly"},on:{change:function(){return e.access="readonly"}}},[o._v("只读")])],1)}},{key:"write",fn:function(t,e){return i("span",{},[i("a-radio",{attrs:{checked:"write"===e.access,value:"write"},on:{change:function(){return e.access="write"}}},[o._v("可编辑")])],1)}},{key:"required",fn:function(t,e){return i("span",{},["write"===e.access?i("a-switch",{model:{value:e.required,callback:function(t){o.$set(e,"required",t)},expression:"record.required"}}):o._e()],1)}}],null,!1,274236117)},[i("span",{attrs:{slot:"noneColumn"},slot:"noneColumn"},[i("a-radio",{attrs:{checked:"none"===o.optionFormsRadio,value:"none"},on:{change:function(t){return o.optionFormsRadioChange("none")}}},[o._v("隐藏")])],1),i("span",{attrs:{slot:"readonlyColumn"},slot:"readonlyColumn"},[i("a-radio",{attrs:{checked:"readonly"===o.optionFormsRadio,value:"readonly"},on:{change:function(t){return o.optionFormsRadioChange("readonly")}}},[o._v("只读")])],1),i("span",{attrs:{slot:"writeColumn"},slot:"writeColumn"},[i("a-radio",{attrs:{checked:"write"===o.optionFormsRadio,value:"write"},on:{change:function(t){return o.optionFormsRadioChange("write")}}},[o._v("可编辑")])],1)])],1):o._e()],1)]),i("a-tab-pane",{key:"others",attrs:{tab:"其他配置"}},[i("a-card",{staticStyle:{margin:"5px"},attrs:{size:"small",title:"消息配置"}},[i("a-input",{staticStyle:{"margin-bottom":"5px"},attrs:{placeholder:"待办跳转地址;以/结尾,例如:/${appKey}#/res_path/"},model:{value:o.nodeRef.data.other_options.resPath,callback:function(t){o.$set(o.nodeRef.data.other_options,"resPath",t)},expression:"nodeRef.data.other_options.resPath"}}),i("a-input",{attrs:{placeholder:"消息跳转地址"},model:{value:o.nodeRef.data.other_options.redirectUri,callback:function(t){o.$set(o.nodeRef.data.other_options,"redirectUri",t)},expression:"nodeRef.data.other_options.redirectUri"}}),o.noticeTemplateAttr?i("Item",{key:o.noticeTemplateAttr.name,staticClass:"j",attrs:{formModel:o.eadApi.getComponent().actionModel,params:null!==(n=o.noticeTemplateAttr.params)&&void 0!==n?n:{},prop:o.noticeTemplateAttr.name,required:!1,schema:o.noticeTemplateAttr},on:{change:function(t){return o.handleItemChange(t,o.noticeTemplateAttr)}},model:{value:o.nodeRef.data.notice_template,callback:function(t){o.$set(o.nodeRef.data,"notice_template",t)},expression:"nodeRef.data.notice_template"}}):o._e(),i("a-alert",{attrs:{message:"模板变量:",type:"success"}},[i("div",{attrs:{slot:"description"},slot:"description"},[i("div",[o._v("${workflow.variable.sponsor} - 发起人")]),i("div",[o._v("${workflow.variable.sponsor_name} - 发起人姓名")]),i("div",[o._v("${workflow.variable.sponsor_org} - 发起人组织机构")]),i("div",[o._v("${workflow.variable.sponsor_org_name} - 发起人组织机构名称")]),i("div",[o._v("${workflow.variable.sponsor_role} - 发起人角色")]),i("div",[o._v("${workflow.variable.sponsor_role_name} - 发起人角色名")])])])],1),i("div",{staticClass:"node-form-item"},[i("a-divider",{attrs:{orientation:"left"}},[o._v("自定义参数")]),i("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[i("a-col",{attrs:{span:24}},[i("a-textarea",{attrs:{"auto-size":"",placeholder:"自定义参数(JSONObject格式); {}"},model:{value:o.nodeRef.data.other_options.custom,callback:function(t){o.$set(o.nodeRef.data.other_options,"custom",t)},expression:"nodeRef.data.other_options.custom"}})],1)],1)],1)],1),o.nodeRef.data.other_options.assert?i("a-tab-pane",{key:"assert",attrs:{tab:"断言"}},[i("div",[o.nodeRef.data.other_options.assert?i("assert-designer",{attrs:{data:o.nodeRef.data.other_options.assert,"hide-action":!0}}):o._e()],1)]):o._e()],1)],1)],1)},cp=[],lp=function(){var t=this,e=t._self._c;return e("a-list",{attrs:{"data-source":t.actors,"item-layout":"horizontal"},scopedSlots:t._u([{key:"renderItem",fn:function(r){return e("a-list-item",{staticStyle:{display:"flex","flex-direction":"column","align-items":"flex-start"}},[e("a-list-item-meta",[e("a",{style:{color:{ongoing:"green",finish:"blue"}[r.status]},attrs:{slot:"title"},slot:"title"},[t._v(t._s(r.operator.name)+" ("+t._s(r.operator.org_name)+")")]),e("a-avatar",{attrs:{slot:"avatar",icon:"user"},slot:"avatar"}),e("div",{attrs:{slot:"description"},slot:"description"},[r.operate?e("a-tag",{attrs:{color:"#108ee9"}},[t._v(t._s(r.operate))]):t._e(),t._v(" "+t._s(r.operate_desc)+" "+t._s(r.operate_content)+" "),e("div",{staticStyle:{color:"rgb(24, 39, 74)"}},[r.create_time?e("span",[e("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"clock-circle-o"}}),t._v(" "+t._s(t.moment(r.create_time).format("YYYY-MM-DD HH:mm"))+" ")],1):t._e()]),e("div",[r.sequent&&r.sequent.length?e("runtime-workflow-actors",{attrs:{actors:r.sequent}}):t._e()],1)],1)],1),r.callback?e("div",[e("a-list-item-meta",[e("a",{style:{color:{ongoing:"green",finish:"blue"}[r.callback.status]},attrs:{slot:"title"},slot:"title"},[t._v(t._s(r.callback.operator.name)+" ("+t._s(r.callback.operator.org_name)+")")]),e("a-avatar",{attrs:{slot:"avatar",icon:"user"},slot:"avatar"}),e("div",{attrs:{slot:"description"},slot:"description"},[r.callback.operate?e("a-tag",{attrs:{color:"#108ee9"}},[t._v(t._s(r.callback.operate))]):t._e(),t._v(" "+t._s(r.callback.operate_desc)+" "+t._s(r.callback.operate_content)+" "),e("div",{staticStyle:{color:"rgb(24, 39, 74)"}},[r.callback.create_time?e("span",[e("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"clock-circle-o"}}),t._v(" "+t._s(t.moment(r.callback.create_time).format("YYYY-MM-DD HH:mm")))],1):t._e()])],1)],1)],1):t._e()],1)}}])})},up=[],fp={name:"runtime-workflow-actors",props:{actors:Array}},hp=fp,dp=qr(hp,lp,up,!1,null,"2d32df45",null),pp=dp.exports,vp=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{display:"flex","margin-bottom":"5px"}},[e("a-button",{staticStyle:{"margin-right":"5px"},attrs:{type:"primary"},on:{click:function(e){return t.addDefault()}}},[t._v("新增断言项")]),t.hideAction?t._e():e("a-select",{staticStyle:{width:"120px"},attrs:{allowClear:"",placeholder:"审批动作"},model:{value:t.filter,callback:function(e){t.filter=e},expression:"filter"}},t._l([{value:"all",label:"全部"},{value:"pass",label:"通过"},{value:"back",label:"退回"},{value:"reassign",label:"转办"},{value:"involve",label:"加签"},{value:"end",label:"结束"}],(function(r){return e("a-select-option",{key:r.value,attrs:{value:r.value}},[t._v(" "+t._s(r.label)+" ")])})),1)],1),e("a-table",{attrs:{columns:t.columns,"data-source":t.filterDataset(t.filter,t.dataRef,"action"),pagination:!1,"row-key":function(t,e){return e}},scopedSlots:t._u([{key:"action",fn:function(r,n){return e("span",{},[e("a-select",{staticStyle:{width:"100%"},model:{value:n.action,callback:function(e){t.$set(n,"action",e)},expression:"reccord.action"}},t._l([{value:"all",label:"全部"},{value:"pass",label:"通过"},{value:"back",label:"退回"},{value:"reassign",label:"转办"},{value:"involve",label:"加签"},{value:"end",label:"结束"}],(function(r){return e("a-select-option",{key:r.value,attrs:{value:r.value}},[t._v(" "+t._s(r.label)+" ")])})),1),t._v(" "+t._s()+" ")],1)}},{key:"expression",fn:function(r,n){return e("span",{},[e("a-textarea",{attrs:{"auto-size":"",placeholder:"需要进行检查的条件"},model:{value:n.expression,callback:function(e){t.$set(n,"expression",e)},expression:"record.expression"}})],1)}},{key:"message",fn:function(r,n){return e("span",{},[e("a-textarea",{attrs:{"auto-size":"",placeholder:"条件不满足输出的消息"},model:{value:n.message,callback:function(e){t.$set(n,"message",e)},expression:"record.message"}})],1)}},{key:"operate",fn:function(r,n,o){return e("span",{},[e("a-button",{attrs:{icon:"delete",type:"link"},on:{click:function(){return t.dataRef.splice(o,1)}}})],1)}}])})],1)},yp=[],mp={name:"AssertDesigner",props:{data:Array,hideAction:Boolean},data:function(){return{filter:void 0,columns:[{title:"审批动作",dataIndex:"action",key:"action",scopedSlots:{customRender:"action"}},{title:"条件",dataIndex:"expression",key:"expression",scopedSlots:{customRender:"expression"}},{title:"消息",key:"message",dataIndex:"message",scopedSlots:{customRender:"message"}},{title:"操作",key:"operate",scopedSlots:{customRender:"operate"}}]}},setup:function(t){var e=t.data,r=Object(N["ref"])(e);return{dataRef:r}},mounted:function(){this.hideAction&&this.columns.splice(0,1)},methods:{filterDataset:function(t,e,r){return t?e.filter((function(e){return e[r].toString().toLowerCase().includes(t)})):e},addDefault:function(){this.dataRef.push({action:"all",expression:"",message:""})}}},gp=mp,bp=(r("bd28"),qr(gp,vp,yp,!1,null,"3d6b7fb8",null)),wp=bp.exports;function _p(t){return _p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_p(t)}function xp(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */xp=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==_p(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(_p(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function kp(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Op(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){kp(i,n,o,a,s,"next",t)}function s(t){kp(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Ep(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Sp(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Sp(t,e){if(t){if("string"===typeof t)return jp(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jp(t,e):void 0}}function jp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Np={name:"StartNode",props:{node:Yh,nodeHandler:Object},components:{AssertDesigner:wp,RuntimeWorkflowActors:pp,Item:Ri},data:function(){return{defaultContent:"所有人",editName:!1,tabKey:"actors",optionViewType:"use_model",optionViewId:null,optionViewList:[],optionFormsColumns:[{title:"表单属性",key:"attrName",scopedSlots:{customRender:"attrName"}},{key:"none",slots:{title:"noneColumn"},scopedSlots:{customRender:"none"}},{key:"readonly",slots:{title:"readonlyColumn"},scopedSlots:{customRender:"readonly"}},{key:"write",slots:{title:"writeColumn"},scopedSlots:{customRender:"write"}},{title:"必填",dataIndex:"required",key:"required",scopedSlots:{customRender:"required"}}],viewNametimeout:null,viewAttrLoading:!0,optionFormsCache:{},formsColumnFilter:void 0,formsColumnAccess:"all"}},setup:function(t){var e=t.node,r=t.nodeHandler,n=r.businessAdapter.eadApi,o=function(){return{eadCache:{workflow:{}},actor_config:{type:"all"},option_view_id:null,other_options:{allowWithdraw:!1,resPath:null,redirectUri:null,assert:[],custom:null},option_forms:[],notice_template:""}};e.data||(e.data=o()),e.data.other_options.assert||(e.data.other_options.assert=[]);var i=Object(N["ref"])(!1),a=function(){return i.value=!0},s=r.isPreview?null:r.businessAdapter.eadApi.getCurrentViewSchema().model.attrs.find((function(t){return"notice_template"===t.name}));return{visible:i,showDrawer:a,nodeRef:e,eadApi:n,noticeTemplateAttr:s}},computed:{nodeContent:function(){var t,e,r;if((null===(t=this.nodeHandler)||void 0===t||null===(t=t.runtimeData)||void 0===t?void 0:t.currentNodeCode)===this.nodeRef.code)return'<span class="actor pending">'.concat(this.eadApi.getCurrentUserName(),"</span>");if(null!==(e=this.nodeHandler)&&void 0!==e&&null!==(e=e.runtimeData)&&void 0!==e&&e.caseNodes&&null!==(r=this.nodeHandler)&&void 0!==r&&null!==(r=r.runtimeData)&&void 0!==r&&null!==(r=r.caseNodes[this.node.code])&&void 0!==r&&r.status){var n,o="",i=null===(n=this.nodeHandler)||void 0===n||null===(n=n.runtimeData)||void 0===n?void 0:n.caseNodes[this.node.code].actors;return i.forEach((function(t){o&&(o+="、"),o+='<span class="actor '.concat(t.status,'">').concat(t.operator.name,"</span>")})),o}return this.nodeRef.content},optionFormsRadio:function(){var t=this.node.data.option_forms;if(!t.length)return"-";var e=t[0].access;return t.filter((function(t){return t.access===e})).length===t.length?e:"-"}},created:function(){this.loadCache(this.nodeRef)},methods:{filterDataset:function(t,e,r){var n=this;return t?e.filter((function(e){var n,o=Ep(r);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(e[i].toString().toLowerCase().includes(t.toLowerCase()))return!0}}catch(a){o.e(a)}finally{o.f()}return!1})).filter((function(t){return"all"===n.formsColumnAccess||-1!==n.formsColumnAccess.indexOf(t.access.toString())})):e.filter((function(t){return"all"===n.formsColumnAccess||-1!==n.formsColumnAccess.indexOf(t.access.toString())}))},getClass:function(){var t,e,r,n="";return this.node.error&&(n+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(t=t.runtimeData)||void 0===t?void 0:t.currentNodeCode)===this.node.code?n+=" ongoing":null!==(e=this.nodeHandler)&&void 0!==e&&null!==(e=e.runtimeData)&&void 0!==e&&e.caseNodes&&null!==(r=this.nodeHandler)&&void 0!==r&&null!==(r=r.runtimeData)&&void 0!==r&&null!==(r=r.caseNodes[this.node.code])&&void 0!==r&&r.status&&(n+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),n},loadCache:function(t){var e,r,n,o;this.optionViewType=null!==(e=null===(r=t.data)||void 0===r||null===(r=r.eadCache)||void 0===r||null===(r=r.workflow)||void 0===r?void 0:r.optionViewType)&&void 0!==e?e:this.optionViewType,this.optionViewList=null!==(n=null===(o=t.data)||void 0===o||null===(o=o.eadCache)||void 0===o||null===(o=o.workflow)||void 0===o?void 0:o.optionViewList)&&void 0!==n?n:this.optionViewList},handleItemChange:function(t,e){},optionFormsRadioChange:function(t){this.node.data.option_forms.forEach((function(e){return e.access=t}))},optionViewChange:function(t){var e=this;return Op(xp().mark((function r(){return xp().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e.formsColumnFilter=void 0,e.optionViewId&&(e.optionFormsCache[e.optionViewId]=e.nodeRef.data.option_forms),e.optionViewId=t,e.nodeRef.data.eadCache.workflow.optionViewList=[e.optionViewList.find((function(e){return e.value===t}))],e.viewAttrLoading=!0,r.next=7,e.eadApi.getViewAttrs(t);case 7:e.nodeRef.data.option_forms=r.sent.filter((function(t){return"value"===t.type&&"none"!==t.access})).filter((function(t){return"primary"!==t.key_type})).map((function(r){var n,o,i,a=null===(n=e.optionFormsCache[t])||void 0===n?void 0:n.find((function(t){return t.attrId===r.id})),s=null!==(o=null===a||void 0===a?void 0:a.access)&&void 0!==o?o:"none";return r.required=null!==(i="write"===(null===a||void 0===a?void 0:a.access))&&void 0!==i?i:r.required,{attrId:r.id,attrName:r.alias,attrCode:r.name,access:s,required:r.required}})),e.$nextTick((function(){e.viewAttrLoading=!1}));case 9:case"end":return r.stop()}}),r)})))()},optionViewSearch:function(t){var e=this;this.viewNametimeout&&(clearTimeout(this.viewNametimeout),this.viewNametimeout=null);var r=function(){t&&e.eadApi.getViews(t).then((function(t){e.optionViewList=t.map((function(t){return{value:t.view_id,text:t.view_name}}))}))};this.viewNametimeout=setTimeout(r,300)},changeViewType:function(t){var e=this;return Op(xp().mark((function r(){var n,o;return xp().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=t.target,o=n.value,e.nodeRef.data.eadCache.workflow.optionViewType=o,"custom"===o&&(e.optionFormsCache[e.eadApi.getValues().option_view_id]=e.nodeRef.data.option_forms),"use_model"!==o){r.next=13;break}return e.optionViewId&&(e.optionFormsCache[e.optionViewId]=e.nodeRef.data.option_forms),e.optionViewId=null,e.nodeRef.data.option_view_id=void 0,e.viewAttrLoading=!0,r.next=11,e.eadApi.getViewAttrs(e.eadApi.getValues().option_view_id);case 11:e.nodeRef.data.option_forms=r.sent.filter((function(t){return"value"===t.type&&"none"!==t.access})).filter((function(t){return"primary"!==t.key_type})).map((function(t){var r,n,o,i=null===(r=e.optionFormsCache[e.eadApi.getValues().option_view_id])||void 0===r?void 0:r.find((function(e){return e.attrId===t.id})),a=null!==(n=null===i||void 0===i?void 0:i.access)&&void 0!==n?n:"none";return t.required=null!==(o="write"===(null===i||void 0===i?void 0:i.access))&&void 0!==o?o:t.required,{attrId:t.id,attrName:t.alias,attrCode:t.name,access:a,required:t.required}})),e.viewAttrLoading=!1;case 13:case"end":return r.stop()}}),r)})))()},hideDrawer:function(){var t=this,e=Object(N["ref"])(!0);this.$refs.nameForm.validate((function(r){r||(e.value=!1,t.$message.error("节点名称校验不通过"))})),e.value&&(this.visible=!1)},changeTags:function(t){},showEditName:function(){var t=this;this.editName=!0,Object(N["nextTick"])((function(){t.$refs.nameInput.focus()}))},close:function(){},click:function(){this.nodeHandler.isPreview||(this.nodeRef.error=null,this.showDrawer())},more:function(){}},mounted:function(){var t=Op(xp().mark((function t(){var e,r,n;return xp().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.nodeHandler.isPreview){t.next=6;break}return t.next=3,this.nodeHandler.businessAdapter.getActorData();case 3:r=t.sent,n=r.viewAttrs,null!==(e=this.nodeRef.data.option_forms)&&void 0!==e&&e.length||(this.nodeRef.data.option_forms=n.filter((function(t){return"value"===t.type&&"none"!==t.access})).filter((function(t){return"primary"!==t.key_type})).map((function(t){return{attrId:t.id,attrName:t.alias,attrCode:t.name,access:"none",required:t.required}})));case 6:this.viewAttrLoading=!1;case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},Lp=Np,Pp=(r("4c29"),qr(Lp,sp,cp,!1,null,"e7950f88",null)),Cp=Pp.exports,Ap=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"node",on:{click:t.click}},[t.nodeHandler.isPreview?e("div",{staticClass:"disable node-left"}):t._e(),t.nodeHandler.isPreview?t._e():e("div",{staticClass:"node-left",class:t.option.left?"":"disable",on:{click:function(e){return e.stopPropagation(),t.toLeft.apply(null,arguments)}}},[e("span",[t.option.left?e("a-icon",{staticClass:"icon",attrs:{type:"left"}}):t._e()],1)]),e("div",{staticClass:"node-content"},[e("div",{staticClass:"title"},[e("span",{staticClass:"title-main",staticStyle:{"margin-right":"5px"}},[e("a-icon",{attrs:{type:"sliders"}})],1),e("span",{staticClass:"title-main"},[t._v(t._s(t.node.name))]),t.nodeHandler.isPreview?t._e():e("span",{staticClass:"title-right"},[e("a-icon",{staticClass:"close",attrs:{type:"close"},on:{click:function(e){return e.stopPropagation(),t.close.apply(null,arguments)}}})],1)]),e("div",{staticClass:"content"},[e("span",{staticClass:"content-main"},[t.node.content?e("span",[t._v(t._s(t.node.content))]):e("span",{staticStyle:{color:"#666"}},[t._v(t._s(t.defaultContent))])])])]),t.nodeHandler.isPreview?e("div",{staticClass:"disable node-right"}):t._e(),t.nodeHandler.isPreview?t._e():e("div",{staticClass:"node-right",class:t.option.right?"":"disable",on:{click:function(e){return e.stopPropagation(),t.toRight.apply(null,arguments)}}},[e("span",[t.option.right?e("a-icon",{staticClass:"icon",attrs:{type:"right"}}):t._e()],1)])]),e("a-drawer",{attrs:{closable:!0,visible:t.visible,width:720,placement:"right"},on:{close:t.hideDrawer}},[t.editName?t._e():e("div",{staticClass:"node-drawer-title",on:{click:t.showEditName}},[e("a-icon",{attrs:{type:"edit"}}),t._v(" "+t._s(t.node.name)+" ")],1),e("a-form-model",{directives:[{name:"show",rawName:"v-show",value:t.editName,expression:"editName"}],ref:"nameForm",attrs:{model:t.nodeRef,rules:{name:[{required:!0,message:"请填写节点名称",trigger:"blur"},{min:2,max:20,message:"2-20个字",trigger:"blur"}]},layout:"inline"}},[e("a-form-model-item",{ref:"name",attrs:{prop:"name"}},[e("a-input",{ref:"nameInput",attrs:{placeholder:"节点名称"},on:{blur:function(){t.editName=!1}},model:{value:t.nodeRef.name,callback:function(e){t.$set(t.nodeRef,"name",e)},expression:"nodeRef.name"}})],1)],1),e("a-row",{staticStyle:{display:"flex","align-items":"center","margin-top":"5px"}},[e("a-col",{attrs:{span:2}},[t._v("描述")]),e("a-col",{attrs:{span:22}},[e("a-textarea",{attrs:{"auto-size":""},model:{value:t.nodeRef.content,callback:function(e){t.$set(t.nodeRef,"content",e)},expression:"nodeRef.content"}})],1)],1)],1)],1)},Tp=[],Rp={name:"ParallelNode",props:{option:{left:Boolean,right:Boolean,index:Number},node:Yh,nodeHandler:Object},data:function(){return{defaultContent:"无",editName:!1,tabKey:"actors"}},setup:function(t){var e=Object(N["ref"])(!1),r=function(){return e.value=!0};return{visible:e,showDrawer:r,nodeRef:t.node}},methods:{getClass:function(){var t,e,r,n="";return this.node.error&&(n+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(t=t.runtimeData)||void 0===t?void 0:t.currentNodeCode)===this.node.code?n+=" ongoing":null!==(e=this.nodeHandler)&&void 0!==e&&null!==(e=e.runtimeData)&&void 0!==e&&e.caseNodes&&null!==(r=this.nodeHandler)&&void 0!==r&&null!==(r=r.runtimeData)&&void 0!==r&&null!==(r=r.caseNodes[this.node.code])&&void 0!==r&&r.status&&(n+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),n},hideDrawer:function(){var t=this,e=Object(N["ref"])(!0);this.$refs.nameForm.validate((function(r){r||(e.value=!1,t.$message.error("节点名称校验不通过"))})),e.value&&(this.visible=!1)},changeTags:function(t){},showEditName:function(){var t=this;this.editName=!0,Object(N["nextTick"])((function(){t.$refs.nameInput.focus()}))},close:function(){this.nodeHandler.deleteNode(this.node.code)},click:function(){this.showDrawer()},toLeft:function(){this.option.left?this.nodeHandler.moveBranchNode(this.node.code,-1):this.click()},toRight:function(){this.option.right?this.nodeHandler.moveBranchNode(this.node.code,1):this.click()}},mounted:function(){}},Dp=Rp,Ip=(r("5596"),qr(Dp,Ap,Tp,!1,null,"9a75cb32",null)),Mp=Ip.exports,qp=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"branch-wrap"},[e("div",{staticClass:"branch-box"},[e("div",{staticClass:"add-branch"},[t.nodeHandler.isPreview?t._e():e("a-button",{staticStyle:{color:"rgb(113, 141, 255)"},attrs:{shape:"round"},on:{click:t.addBranch}},[t._v(" 添加分支 ")])],1),t._l(t.childNodeCodes,(function(r,n){return[e("div",{key:r,staticClass:"branch-item"},[e("div",{staticClass:"branch-item-line"}),t.nodeHandler.hasNode(r)?e(t.NodeWrap,{tag:"component",attrs:{"node-config":{node:t.nodeHandler.getNode(r),option:{left:0!==n,right:n!==t.childNodeCodes.length-1,index:n}},"node-handler":t.nodeHandler}}):t._e(),0===n?e("div",{staticClass:"top-left-cover-line"}):t._e(),0===n?e("div",{staticClass:"bottom-left-cover-line"}):t._e(),n===t.childNodeCodes.length-1?e("div",{staticClass:"top-right-cover-line"}):t._e(),n===t.childNodeCodes.length-1?e("div",{staticClass:"bottom-right-cover-line"}):t._e()],1)]}))],2)])])},Bp=[],Fp={name:"ParallelWrapNode",computed:{NodeWrap:function(){return zy}},props:{node:Yh,nodeHandler:Object},setup:function(t){var e=t.node,r=t.nodeHandler,n=e.childNodeCodes,o=r.businessAdapter.eadApi,i=function(){return{gateway_type:"parallel"}};return e.data||(e.data=i()),{childNodeCodes:n,eadApi:o}},methods:{addBranch:function(){this.nodeHandler.addBranch(this.node.code,"分支")}}},$p=Fp,Vp=qr($p,qp,Bp,!1,null,"4a228ede",null),Hp=Vp.exports;function Up(t){return Yp(t)||Kp(t)||zp(t)||Gp()}function Gp(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function zp(t,e){if(t){if("string"===typeof t)return Wp(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wp(t,e):void 0}}function Kp(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Yp(t){if(Array.isArray(t))return Wp(t)}function Wp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Zp=function(){var t,e,r,n,o,i=this,a=i._self._c;return a("div",[null!==(t=i.nodeHandler)&&void 0!==t&&null!==(t=t.runtimeData)&&void 0!==t&&null!==(t=t.actorLogs[i.node.code])&&void 0!==t&&t.length?a("a-popover",{attrs:{placement:"rightTop"},scopedSlots:i._u([{key:"content",fn:function(){return[a("div",{staticStyle:{"min-width":"300px","max-width":"1200px"}},[a("runtime-workflow-actors",{attrs:{actors:i.nodeHandler.runtimeData.actorLogs[i.node.code]}})],1)]},proxy:!0}],null,!1,193291077)},[a("div",{staticClass:"node",class:[i.node.error?"error":"",null!==(e=i.nodeHandler)&&void 0!==e&&null!==(e=e.runtimeData)&&void 0!==e&&null!==(e=e.caseNodes[i.node.code])&&void 0!==e&&e.status?i.nodeHandler.runtimeData.caseNodes[i.node.code].status:""],on:{click:i.click}},[a("div",{staticClass:"title"},[a("span",[a("a-icon",{attrs:{component:i.icon}})],1),a("span",[i._v(" "+i._s(i.node.name))]),null!==(r=i.nodeRef)&&void 0!==r&&null!==(r=r.data)&&void 0!==r&&null!==(r=r.other_options)&&void 0!==r&&null!==(r=r.assert)&&void 0!==r&&r.length?a("span",[a("a-icon",{attrs:{type:"control"}})],1):i._e(),i.nodeHandler.isPreview?i._e():a("span",{staticClass:"title-right"},[a("a-icon",{staticClass:"close",attrs:{type:"close"},on:{click:function(t){return t.stopPropagation(),i.close.apply(null,arguments)}}})],1)]),a("div",{staticClass:"content"},[a("span",{staticClass:"content-main"},[a("span",{staticClass:"error-tooltip"},[a("a-tooltip",[a("template",{slot:"title"},[i._v(" "+i._s(i.node.error)+" ")]),a("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),i.nodeContent?a("span",{staticStyle:{"padding-left":"5px"}},[a("span",{domProps:{innerHTML:i._s(i.nodeContent)}})]):a("span",{staticStyle:{"padding-left":"5px",color:"rgb(164 164 164)"}},[i._v(i._s(i.defaultContent))])]),a("span",{staticClass:"content-right"},[i.nodeHandler.isPreview?i._e():a("a-popover",{attrs:{placement:"rightTop",trigger:"click"},scopedSlots:i._u([{key:"title",fn:function(){return[a("span",{staticStyle:{"font-size":"18px"}},[i._v("追加分支")])]},proxy:!0},{key:"content",fn:function(){return[a("div",{staticClass:"add-node-box"},i._l(i.nodes,(function(t,e){var r,n;return a("div",{key:e,staticClass:"add-node-item",on:{click:function(e){return i.wrapNode(t.type)}}},[a("div",{staticClass:"icon",style:"color:"+t.color+";"},[null!==(r=t.icon)&&void 0!==r&&r.component?a("a-icon",{attrs:{component:t.icon.component}}):i._e(),null!==(n=t.icon)&&void 0!==n&&n.type?a("a-icon",{attrs:{type:t.icon.type}}):i._e()],1),a("span",[i._v(i._s(t.name))])])})),0)]},proxy:!0}],null,!1,2863198520),model:{value:i.visiblePopover,callback:function(t){i.visiblePopover=t},expression:"visiblePopover"}},[a("a-icon",{attrs:{type:"plus"},on:{click:function(t){return t.stopPropagation(),function(){}.apply(null,arguments)}}})],1)],1)])])]):a("div",{staticClass:"node",class:i.getClass(),on:{click:i.click}},[a("div",{staticClass:"title"},[a("span",[a("a-icon",{attrs:{component:i.icon}})],1),a("span",[i._v(" "+i._s(i.node.name))]),null!==(n=i.nodeRef)&&void 0!==n&&null!==(n=n.data)&&void 0!==n&&null!==(n=n.other_options)&&void 0!==n&&null!==(n=n.assert)&&void 0!==n&&n.length?a("span",[a("a-icon",{attrs:{type:"control"}})],1):i._e(),i.nodeHandler.isPreview?i._e():a("span",{staticClass:"title-right"},[a("a-icon",{staticClass:"close",attrs:{type:"close"},on:{click:function(t){return t.stopPropagation(),i.close.apply(null,arguments)}}})],1)]),a("div",{staticClass:"content"},[a("span",{staticClass:"content-main"},[a("span",{staticClass:"error-tooltip"},[a("a-tooltip",[a("template",{slot:"title"},[i._v(" "+i._s(i.node.error)+" ")]),a("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),i.nodeContent?a("span",{staticStyle:{"padding-left":"5px"}},[a("span",{domProps:{innerHTML:i._s(i.nodeContent)}})]):a("span",{staticStyle:{"padding-left":"5px",color:"rgb(164 164 164)"}},[i._v(i._s(i.defaultContent))])]),a("span",{staticClass:"content-right"},[i.nodeHandler.isPreview?i._e():a("a-popover",{attrs:{placement:"rightTop",trigger:"click"},scopedSlots:i._u([{key:"title",fn:function(){return[a("span",{staticStyle:{"font-size":"18px"}},[i._v("追加分支")])]},proxy:!0},{key:"content",fn:function(){return[a("div",{staticClass:"add-node-box"},i._l(i.nodes,(function(t,e){var r,n;return a("div",{key:e,staticClass:"add-node-item",on:{click:function(e){return i.wrapNode(t.type)}}},[a("div",{staticClass:"icon",style:"color:"+t.color+";"},[null!==(r=t.icon)&&void 0!==r&&r.component?a("a-icon",{attrs:{component:t.icon.component}}):i._e(),null!==(n=t.icon)&&void 0!==n&&n.type?a("a-icon",{attrs:{type:t.icon.type}}):i._e()],1),a("span",[i._v(i._s(t.name))])])})),0)]},proxy:!0}],null,!1,2863198520),model:{value:i.visiblePopover,callback:function(t){i.visiblePopover=t},expression:"visiblePopover"}},[a("a-icon",{attrs:{type:"plus"},on:{click:function(t){return t.stopPropagation(),function(){}.apply(null,arguments)}}})],1)],1)])]),i.nodeHandler.isPreview?i._e():a("a-drawer",{attrs:{closable:!0,visible:i.visibleDrawer,width:720,placement:"right"},on:{close:i.hideDrawer}},[i.editName?i._e():a("div",{staticClass:"node-drawer-title",on:{click:i.showEditName}},[a("a-icon",{attrs:{type:"edit"}}),i._v(" "+i._s(i.node.name)+" ")],1),a("a-form-model",{directives:[{name:"show",rawName:"v-show",value:i.editName,expression:"editName"}],ref:"nameForm",attrs:{model:i.nodeRef,rules:{name:[{required:!0,message:"请填写节点名称",trigger:"blur"},{min:2,max:20,message:"2-20个字",trigger:"blur"}]},layout:"inline"}},[a("a-form-model-item",{ref:"name",attrs:{prop:"name"}},[a("a-input",{ref:"nameInput",attrs:{placeholder:"节点名称"},on:{blur:function(){i.editName=!1}},model:{value:i.nodeRef.name,callback:function(t){i.$set(i.nodeRef,"name",t)},expression:"nodeRef.name"}})],1)],1),a("a-tabs",{attrs:{"default-active-key":"1"},on:{change:i.changeTags},model:{value:i.tabKey,callback:function(t){i.tabKey=t},expression:"tabKey"}},[a("a-tab-pane",{key:"actors",attrs:{tab:"设置人"}},[a("div",{staticClass:"node-form-item"},[i._v(" 配置执行人策略 "),a("a-radio-group",{attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.actor_config.type,callback:function(t){i.$set(i.nodeRef.data.actor_config,"type",t)},expression:"nodeRef.data.actor_config.type"}},[a("a-radio-button",{attrs:{value:"expression"}},[i._v(" 表达式 ")]),a("a-radio-button",{attrs:{value:"sponsor"}},[i._v(" 发起人自己 ")])],1)],1),"expression"===i.nodeRef.data.actor_config.type?a("div",{staticStyle:{width:"100%"}},[i._l(i.nodeRef.data.actor_config.expression,(function(t,e){return a("div",{key:e},[a("a-row",{staticClass:"node-form-item",staticStyle:{display:"flex","align-items":"center"}},[a("a-col",{attrs:{span:"4"}},[a("a-radio-group",{attrs:{"button-style":"solid",size:"small"},model:{value:t.type,callback:function(e){i.$set(t,"type",e)},expression:"item.type"}},[a("a-radio-button",{attrs:{value:"uid"}},[a("a-icon",{attrs:{type:"user"}})],1),a("a-radio-button",{attrs:{value:"org"}},[a("a-icon",{attrs:{type:"team"}})],1)],1),i.nodeRef.data.actor_config.expression.length>1?a("a-button",{attrs:{icon:"delete",type:"link"},on:{click:function(){return i.nodeRef.data.actor_config.expression.splice(e,1)}}}):i._e()],1),"uid"===t.type?a("a-col",{attrs:{span:"18"}},[a("div",[a("a-select",{staticStyle:{width:"100%"},attrs:{filterOption:i.filterUser,options:[].concat(Up(i.businessUserData),Up(i.users)),mode:"multiple",placeholder:"选择人"},model:{value:t.user,callback:function(e){i.$set(t,"user",e)},expression:"item.user"}})],1)]):i._e(),"org"===t.type?a("a-col",{attrs:{span:"18"}},[a("div",[a("a-row",[a("a-col",{attrs:{span:8}},[a("a-tree-select",{staticStyle:{width:"100%"},attrs:{"dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-data":[i.businessOrgData].concat(Up(i.orgData)),allowClear:"",placeholder:"部门","tree-default-expand-all":""},model:{value:t.orgId,callback:function(e){i.$set(t,"orgId",e)},expression:"item.orgId"}})],1),a("a-col",{attrs:{span:8}},[a("a-select",{staticStyle:{width:"100%"},attrs:{options:i.roles,allowClear:"",placeholder:"角色"},model:{value:t.roleId,callback:function(e){i.$set(t,"roleId",e)},expression:"item.roleId"}})],1)],1)],1)]):i._e(),i.nodeRef.data.actor_config.expression.length===e+1&&i.hasExpression(t)?a("a-col",{attrs:{span:"2"}},[a("a-button",{attrs:{icon:"plus",shape:"circle",type:"primary"},on:{click:function(){i.nodeRef.data.actor_config.expression.push({type:"uid",user:[],orgId:void 0,roleId:void 0,groupId:void 0})}}})],1):i._e()],1)],1)})),a("div",{staticClass:"node-form-item"},[a("a-row",[a("a-col",{attrs:{span:4}},[i._v("自选")]),a("a-col",{attrs:{span:20}},[a("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.actor_config.optional.enable,callback:function(t){i.$set(i.nodeRef.data.actor_config.optional,"enable",t)},expression:"nodeRef.data.actor_config.optional.enable"}},[a("a-radio-button",{attrs:{value:!1}},[i._v(" 禁用 ")]),a("a-radio-button",{attrs:{value:!0}},[i._v(" 启用 ")])],1),i.nodeRef.data.actor_config.optional.enable?a("a-radio-group",{attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.actor_config.optional.multi,callback:function(t){i.$set(i.nodeRef.data.actor_config.optional,"multi",t)},expression:"nodeRef.data.actor_config.optional.multi"}},[a("a-radio-button",{attrs:{value:!1}},[i._v(" 可选单人 ")]),a("a-radio-button",{attrs:{value:!0}},[i._v(" 可选多人 ")])],1):i._e()],1)],1)],1),!i.nodeRef.data.actor_config.optional.enable&&!i.isSingle||i.nodeRef.data.actor_config.optional.enable&&i.nodeRef.data.actor_config.optional.multi?a("div",{staticClass:"node-form-item"},[a("a-row",[a("a-col",{attrs:{span:4}},[i._v("多人审批模式")]),a("a-col",{attrs:{span:20}},[a("a-radio-group",{attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.actor_config.check_mode,callback:function(t){i.$set(i.nodeRef.data.actor_config,"check_mode",t)},expression:"nodeRef.data.actor_config.check_mode"}},[a("a-radio-button",{attrs:{value:"queue"}},[i._v("依次审批")]),a("a-radio-button",{attrs:{value:"orsign"}},[i._v("或签")]),a("a-radio-button",{attrs:{value:"sign"}},[i._v("会签")])],1)],1)],1)],1):i._e()],2):i._e(),a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:4}},[i._v("审批人为空时")]),a("a-col",{attrs:{span:20}},[a("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.other_options.approverIsNull,callback:function(t){i.$set(i.nodeRef.data.other_options,"approverIsNull",t)},expression:"nodeRef.data.other_options.approverIsNull"}},[a("a-radio-button",{attrs:{disabled:"",value:"next"}},[i._v(" 跳过 ")]),a("a-radio-button",{attrs:{value:"error"}},[i._v(" 提示错误 ")])],1)],1)],1)],1),a("a-tab-pane",{key:"forms",attrs:{tab:"操作视图"}},[a("div",{staticClass:"node-form-item"},[a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:24}},[a("a-radio-group",{staticClass:"node-form-item",on:{change:i.changeViewType},model:{value:i.optionViewType,callback:function(t){i.optionViewType=t},expression:"optionViewType"}},[a("a-radio",{attrs:{value:"use_model"}},[i._v(" 沿用工作流模型 ")]),a("a-radio",{attrs:{value:"custom"}},[i._v(" 自主选择 ")])],1)],1)],1),a("a-row",[a("a-col",{attrs:{span:24}},["custom"===i.optionViewType?a("a-select",{staticClass:"node-form-item",staticStyle:{width:"100%"},attrs:{"default-active-first-option":!1,"filter-option":!1,"not-found-content":null,"show-arrow":!1,placeholder:"请输入表单视图名称","show-search":""},on:{change:i.optionViewChange,search:i.optionViewSearch},model:{value:i.nodeRef.data.option_view_id,callback:function(t){i.$set(i.nodeRef.data,"option_view_id",t)},expression:"nodeRef.data.option_view_id"}},i._l(i.optionViewList,(function(t){return a("a-select-option",{key:t.value,attrs:{value:t.value}},[i._v(" "+i._s(t.text)+" ")])})),1):i._e()],1)],1)],1),a("div",{key:i.nodeRef.data.option_view_id,staticClass:"node-from-item"},[a("a-divider",{attrs:{orientation:"left"}},[i._v("表单权限")]),"use_model"===i.optionViewType||i.nodeRef.data.option_view_id?a("a-spin",{attrs:{spinning:i.viewAttrLoading}},[a("a-row",[a("a-col",{attrs:{span:11}},[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索表单属性"},on:{search:function(t){return i.formsColumnFilter=t}}})],1),a("a-col",{attrs:{span:1}}),a("a-col",{attrs:{span:11}},[a("a-radio-group",{attrs:{"button-style":"solid"},model:{value:i.formsColumnAccess,callback:function(t){i.formsColumnAccess=t},expression:"formsColumnAccess"}},[a("a-radio-button",{attrs:{value:"all"}},[i._v(" 无 ")]),a("a-radio-button",{attrs:{value:"none"}},[i._v(" 隐藏 ")]),a("a-radio-button",{attrs:{value:"readonly"}},[i._v(" 只读 ")]),a("a-radio-button",{attrs:{value:"write"}},[i._v(" 可写 ")]),a("a-radio-button",{attrs:{value:"readonlywrite"}},[i._v(" 读写 ")])],1)],1)],1),a("a-table",{attrs:{columns:i.optionFormsColumns,"data-source":i.filterDataset(i.formsColumnFilter,i.nodeRef.data.option_forms,["attrName","attrCode"]),"row-key":function(t){return t.attrId}},scopedSlots:i._u([{key:"attrName",fn:function(t,e){return a("span",{},[i._v(i._s(e.attrName)+"("+i._s(e.attrCode)+")")])}},{key:"none",fn:function(t,e){return a("span",{},[a("a-radio",{attrs:{checked:"none"===e.access,value:"none"},on:{change:function(){return e.access="none"}}},[i._v("隐藏")])],1)}},{key:"readonly",fn:function(t,e){return a("span",{},[a("a-radio",{attrs:{checked:"readonly"===e.access,value:"readonly"},on:{change:function(){return e.access="readonly"}}},[i._v("只读")])],1)}},{key:"write",fn:function(t,e){return a("span",{},[a("a-radio",{attrs:{checked:"write"===e.access,value:"write"},on:{change:function(){return e.access="write"}}},[i._v("可编辑")])],1)}},{key:"required",fn:function(t,e){return a("span",{},["write"===e.access?a("a-switch",{model:{value:e.required,callback:function(t){i.$set(e,"required",t)},expression:"record.required"}}):i._e()],1)}}],null,!1,274236117)},[a("span",{attrs:{slot:"noneColumn"},slot:"noneColumn"},[a("a-radio",{attrs:{checked:"none"===i.optionFormsRadio,value:"none"},on:{change:function(t){return i.optionFormsRadioChange("none")}}},[i._v("隐藏")])],1),a("span",{attrs:{slot:"readonlyColumn"},slot:"readonlyColumn"},[a("a-radio",{attrs:{checked:"readonly"===i.optionFormsRadio,value:"readonly"},on:{change:function(t){return i.optionFormsRadioChange("readonly")}}},[i._v("只读")])],1),a("span",{attrs:{slot:"writeColumn"},slot:"writeColumn"},[a("a-radio",{attrs:{checked:"write"===i.optionFormsRadio,value:"write"},on:{change:function(t){return i.optionFormsRadioChange("write")}}},[i._v("可编辑")])],1)])],1):i._e()],1)]),a("a-tab-pane",{key:"others",attrs:{tab:"其他配置"}},[a("a-card",{staticStyle:{margin:"5px"},attrs:{size:"small",title:"消息配置"}},[a("a-input",{staticStyle:{"margin-bottom":"5px"},attrs:{placeholder:"待办跳转地址;以/结尾,例如:/${appKey}#/res_path/"},model:{value:i.nodeRef.data.other_options.resPath,callback:function(t){i.$set(i.nodeRef.data.other_options,"resPath",t)},expression:"nodeRef.data.other_options.resPath"}}),a("a-input",{attrs:{placeholder:"消息跳转地址"},model:{value:i.nodeRef.data.other_options.redirectUri,callback:function(t){i.$set(i.nodeRef.data.other_options,"redirectUri",t)},expression:"nodeRef.data.other_options.redirectUri"}}),i.noticeTemplateAttr?a("Item",{key:i.noticeTemplateAttr.name,staticClass:"node-form-item",attrs:{formModel:i.eadApi.getComponent().actionModel,params:null!==(o=i.noticeTemplateAttr.params)&&void 0!==o?o:{},prop:i.noticeTemplateAttr.name,required:!1,schema:i.noticeTemplateAttr},on:{change:function(t){return i.handleItemChange(t,i.noticeTemplateAttr)}},model:{value:i.nodeRef.data.notice_template,callback:function(t){i.$set(i.nodeRef.data,"notice_template",t)},expression:"nodeRef.data.notice_template"}}):i._e(),a("a-alert",{attrs:{message:"模板变量:",type:"success"}},[a("div",{attrs:{slot:"description"},slot:"description"},[a("div",[i._v("${workflow.variable.sponsor} - 发起人")]),a("div",[i._v("${workflow.variable.sponsor_name} - 发起人姓名")]),a("div",[i._v("${workflow.variable.sponsor_org} - 发起人组织机构")]),a("div",[i._v("${workflow.variable.sponsor_org_name} - 发起人组织机构名称")]),a("div",[i._v("${workflow.variable.sponsor_role} - 发起人角色")]),a("div",[i._v("${workflow.variable.sponsor_role_name} - 发起人角色名")]),a("div",[i._v("${workflow_req.page_operate.action} - 审批动作")]),a("div",[i._v("${workflow_req.page_operate.approver} - 审批人")]),a("div",[i._v("${workflow_req.page_operate.approver_name} - 审批人名称")])])])],1),a("div",{staticClass:"node-form-item"},[a("a-divider",{attrs:{orientation:"left"}},[i._v("退回配置")]),a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:4}},[i._v("退回配置")]),a("a-col",{attrs:{span:20}},[a("a-radio-group",{staticClass:"node-from-item",staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.page_options.allowBack,callback:function(t){i.$set(i.nodeRef.data.page_options,"allowBack",t)},expression:"nodeRef.data.page_options.allowBack"}},[a("a-radio-button",{attrs:{value:!1}},[i._v(" 禁止 ")]),a("a-radio-button",{attrs:{value:!0}},[i._v(" 允许 ")])],1)],1)],1),a("a-row",[a("a-col",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"},attrs:{span:24}},[i.nodeRef.data.page_options.allowBack?a("a-radio-group",{attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.back_type,callback:function(t){i.$set(i.nodeRef.data,"back_type",t)},expression:"nodeRef.data.back_type"}},[a("a-radio-button",{attrs:{value:"start"}},[i._v(" 退回发起人 ")]),a("a-radio-button",{attrs:{value:"before"}},[i._v(" 退回上一步 ")]),i.availableBackStep.length?a("a-radio-button",{attrs:{value:"assign"}},[i._v(" 指定退回节点 ")]):i._e(),i.availableBackStep.length?a("a-radio-button",{attrs:{value:"custom"}},[i._v(" 自主选择退回节点 ")]):i._e(),a("a-radio-button",{attrs:{value:"bpmn"}},[i._v(" 后续节点控制 ")])],1):i._e()],1)],1),i.nodeRef.data.page_options.allowBack&&"custom"===i.nodeRef.data.back_type?a("a-row",{staticStyle:{display:"flex","align-items":"center"}},[a("a-col",{attrs:{span:5}},[i._v("自主选择退回节点")]),a("a-col",{attrs:{span:19}},[a("a-select",{staticStyle:{width:"100%"},attrs:{options:i.availableBackStep,mode:"multiple",placeholder:"可选退回节点"},model:{value:i.nodeRef.data.custom_back_nodes,callback:function(t){i.$set(i.nodeRef.data,"custom_back_nodes",t)},expression:"nodeRef.data.custom_back_nodes"}})],1)],1):i._e(),i.nodeRef.data.page_options.allowBack&&"assign"===i.nodeRef.data.back_type?a("a-row",{staticStyle:{display:"flex","align-items":"center"}},[a("a-col",{attrs:{span:4}},[i._v("指定退回节点")]),a("a-col",{attrs:{span:20}},[a("a-select",{staticStyle:{width:"100%"},attrs:{options:i.availableBackStep,placeholder:"指定退回节点"},model:{value:i.nodeRef.data.back_node_id,callback:function(t){i.$set(i.nodeRef.data,"back_node_id",t)},expression:"nodeRef.data.back_node_id"}})],1)],1):i._e(),i.nodeRef.data.page_options.allowBack&&"bpmn"===i.nodeRef.data.back_type?a("a-row",[a("a-alert",{attrs:{message:"退回表达式: workflow_req.page_operate.action === 'back'",type:"success"}})],1):i._e()],1),i.nodeRef.data.timeout_remind.enable?a("div",[a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:4}},[i._v("超时时间")]),a("a-col",{attrs:{span:8}},[a("a-input-group",{attrs:{compact:""}},[a("a-input-number",{staticStyle:{width:"70%"},attrs:{max:100,min:1},on:{change:function(t){t||(i.nodeRef.data.timeout_remind.outTime.time=1)}},model:{value:i.nodeRef.data.timeout_remind.outTime.time,callback:function(t){i.$set(i.nodeRef.data.timeout_remind.outTime,"time",t)},expression:"nodeRef.data.timeout_remind.outTime.time"}}),a("a-select",{staticStyle:{width:"30%"},attrs:{options:[{value:"minute",label:"分钟"},{value:"hour",label:"小时"},{value:"day",label:"天"},{value:"week",label:"周"},{value:"month",label:"月"},{value:"year",label:"年"}],placeholder:"单位"},model:{value:i.nodeRef.data.timeout_remind.outTime.unit,callback:function(t){i.$set(i.nodeRef.data.timeout_remind.outTime,"unit",t)},expression:"nodeRef.data.timeout_remind.outTime.unit"}})],1)],1)],1),a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:4}},[i._v("提醒周期")]),a("a-col",{attrs:{span:20}},[a("a-radio-group",{attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.timeout_remind.outCycle,callback:function(t){i.$set(i.nodeRef.data.timeout_remind,"outCycle",t)},expression:"nodeRef.data.timeout_remind.outCycle"}},[a("a-radio-button",{attrs:{value:"once"}},[i._v(" 一次 ")]),a("a-radio-button",{attrs:{value:"day"}},[i._v(" 每天 ")]),a("a-radio-button",{attrs:{value:"week"}},[i._v(" 每周 ")]),a("a-radio-button",{attrs:{value:"month"}},[i._v(" 每月 ")]),a("a-radio-button",{attrs:{value:"year"}},[i._v(" 每年 ")])],1)],1)],1),a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:4}},[i._v("超时驱动")]),a("a-col",{attrs:{span:20}},[a("a-select",{staticStyle:{width:"100%"},attrs:{"default-active-first-option":!1,"filter-option":!1,"not-found-content":null,options:i.driverList,"show-arrow":!1,allowClear:"",placeholder:"输入驱动","show-search":""},on:{change:i.handleDriverChange,search:i.handleDriverSearch},model:{value:i.nodeRef.data.timeout_remind.outDriver,callback:function(t){i.$set(i.nodeRef.data.timeout_remind,"outDriver",t)},expression:"nodeRef.data.timeout_remind.outDriver"}})],1)],1)],1):i._e(),a("div",{staticClass:"node-form-item"},[a("a-divider",{attrs:{orientation:"left"}},[i._v("转办配置")]),a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:4}},[i._v("允许转办")]),a("a-col",{attrs:{span:20}},[a("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.page_options.allowReassign,callback:function(t){i.$set(i.nodeRef.data.page_options,"allowReassign",t)},expression:"nodeRef.data.page_options.allowReassign"}},[a("a-radio-button",{attrs:{value:!1}},[i._v(" 禁止 ")]),a("a-radio-button",{attrs:{value:!0}},[i._v(" 允许 ")])],1)],1)],1)],1),a("div",{staticClass:"node-form-item"},[a("a-divider",{attrs:{orientation:"left"}},[i._v("加签配置")]),a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:4}},[i._v("允许加签")]),a("a-col",{attrs:{span:20}},[a("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.page_options.allowInvolve,callback:function(t){i.$set(i.nodeRef.data.page_options,"allowInvolve",t)},expression:"nodeRef.data.page_options.allowInvolve"}},[a("a-radio-button",{attrs:{value:!1}},[i._v(" 禁止 ")]),a("a-radio-button",{attrs:{value:!0}},[i._v(" 允许 ")])],1)],1)],1)],1),a("div",{staticClass:"node-form-item"},[a("a-divider",{attrs:{orientation:"left"}},[i._v("流程结束")]),a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:4}},[i._v("允许结束")]),a("a-col",{attrs:{span:20}},[a("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.page_options.allowEnd,callback:function(t){i.$set(i.nodeRef.data.page_options,"allowEnd",t)},expression:"nodeRef.data.page_options.allowEnd"}},[a("a-radio-button",{attrs:{value:!1}},[i._v(" 禁止 ")]),a("a-radio-button",{attrs:{value:!0,disabled:""}},[i._v(" 允许 ")])],1)],1)],1)],1),a("div",[a("a-divider",{attrs:{orientation:"left"}},[i._v("超时提醒")])],1),a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:4}},[i._v("超时提醒设置")]),a("a-col",{attrs:{span:20}},[a("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.timeout_remind.enable,callback:function(t){i.$set(i.nodeRef.data.timeout_remind,"enable",t)},expression:"nodeRef.data.timeout_remind.enable"}},[a("a-radio-button",{attrs:{value:!1}},[i._v(" 禁用 ")]),a("a-radio-button",{attrs:{value:!0,disabled:""}},[i._v(" 启用 ")])],1)],1)],1),a("div",{staticClass:"node-form-item"},[a("a-divider",{attrs:{orientation:"left"}},[i._v("其他配置")]),a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:4}},[i._v("是否回执")]),a("a-col",{attrs:{span:20}},[a("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:i.nodeRef.data.other_options.allowReceipt,callback:function(t){i.$set(i.nodeRef.data.other_options,"allowReceipt",t)},expression:"nodeRef.data.other_options.allowReceipt"}},[a("a-radio-button",{attrs:{value:!1}},[i._v(" 禁止 ")]),a("a-radio-button",{attrs:{value:!0,disabled:""}},[i._v(" 允许 ")])],1)],1)],1)],1),a("div",{staticClass:"node-form-item"},[a("a-divider",{attrs:{orientation:"left"}},[i._v("自定义参数")]),a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{attrs:{span:24}},[a("a-textarea",{attrs:{"auto-size":"",placeholder:"自定义参数(JSONObject); {}"},model:{value:i.nodeRef.data.other_options.custom,callback:function(t){i.$set(i.nodeRef.data.other_options,"custom",t)},expression:"nodeRef.data.other_options.custom"}})],1)],1)],1),a("div",{staticClass:"node-form-item"},[a("a-divider",{attrs:{orientation:"left"}},[i._v("自定义动作名称")]),a("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[a("a-col",{staticStyle:{display:"flex","align-items":"center"},attrs:{span:3}},[i._v("审批通过:")]),a("a-col",{staticStyle:{display:"flex","align-items":"center"},attrs:{span:6}},[a("a-input",{attrs:{placeholder:"审批通过"},model:{value:i.nodeRef.data.other_options.custom_action.pass,callback:function(t){i.$set(i.nodeRef.data.other_options.custom_action,"pass",t)},expression:"nodeRef.data.other_options.custom_action.pass"}})],1),a("a-col",{attrs:{span:5}}),a("a-col",{staticStyle:{display:"flex","align-items":"center"},attrs:{span:3}},[i._v("审批退回:")]),a("a-col",{staticStyle:{display:"flex","align-items":"center"},attrs:{span:6}},[a("a-input",{attrs:{placeholder:"审批退回"},model:{value:i.nodeRef.data.other_options.custom_action.back,callback:function(t){i.$set(i.nodeRef.data.other_options.custom_action,"back",t)},expression:"nodeRef.data.other_options.custom_action.back"}})],1)],1)],1)],1),i.nodeRef.data.other_options.assert?a("a-tab-pane",{key:"assert",attrs:{tab:"断言"}},[a("div",[i.nodeRef.data.other_options.assert?a("assert-designer",{attrs:{data:i.nodeRef.data.other_options.assert,"hide-action":!1}}):i._e()],1)]):i._e()],1)],1)],1)},Jp=[];function Xp(t){return Xp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xp(t)}function Qp(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Qp=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Xp(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Xp(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function tv(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function ev(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){tv(i,n,o,a,s,"next",t)}function s(t){tv(i,n,o,a,s,"throw",t)}a(void 0)}))}}function rv(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=nv(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function nv(t,e){if(t){if("string"===typeof t)return ov(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ov(t,e):void 0}}function ov(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function iv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function av(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?iv(Object(r),!0).forEach((function(e){sv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sv(t,e,r){return e=cv(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cv(t){var e=lv(t,"string");return"symbol"==Xp(e)?e:String(e)}function lv(t,e){if("object"!=Xp(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Xp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var uv={name:"CheckNode",props:{node:Yh,nodeHandler:Object},components:{AssertDesigner:wp,RuntimeWorkflowActors:pp,Item:Ri},data:function(){return{defaultContent:"请选择",editName:!1,tabKey:"actors",optionViewType:"use_model",optionViewId:null,optionViewList:[],optionFormsColumns:[{title:"表单属性",key:"attrName",scopedSlots:{customRender:"attrName"}},{key:"none",slots:{title:"noneColumn"},scopedSlots:{customRender:"none"}},{key:"readonly",slots:{title:"readonlyColumn"},scopedSlots:{customRender:"readonly"}},{key:"write",slots:{title:"writeColumn"},scopedSlots:{customRender:"write"}},{title:"必填",dataIndex:"required",key:"required",scopedSlots:{customRender:"required"}}],orgMap:null,orgData:[],roles:[],users:[],viewNameTimeout:null,viewAttrLoading:!0,driverList:null,driverTimeout:null,optionFormsCache:{},formsColumnFilter:void 0,formsColumnAccess:"all"}},setup:function(t){var e=t.node,r=t.nodeHandler,n={template:'\n <svg viewBox="0 0 1024 1024">\n <path fill=" currentColor" d="M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0zm544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"></path>\n </svg>\n '},o=Object(N["ref"])(!1),i=r.businessAdapter.eadApi,a=function(){return{eadCache:{workflow:{}},actor_config:{type:"expression",expression:[{type:"org",user:[],orgId:void 0,roleId:void 0,groupId:void 0}],optional:{enable:!1,multi:!1},check_mode:"queue"},option_view_id:"",option_forms:[],back_type:"start",back_node_id:"",custom_back_nodes:[],timeout_remind:{enable:!1,outTime:{time:1,unit:"day"},outCycle:"once",outDriver:void 0},page_options:{allowInvolve:!1,allowReassign:!1,allowBack:!1,allowEnd:!1},other_options:{allowReceipt:!1,allowWithdraw:!1,approverIsNull:"error",resPath:null,redirectUri:null,assert:[],custom_action:{}},notice_template:null}};e.data||(e.data=a()),e.data.other_options.custom_action||(e.data.other_options.custom_action={}),e.data.other_options.assert||(e.data.other_options.assert=[]);var s=function(){return o.value=!0},c={visibleDrawer:o,showDrawer:s},l=Object(N["ref"])(!1),u=function(){return l.value=!1},f=function(){return l.value=!0},h={visiblePopover:l,showPopover:f,hidePopover:u},d=[{name:"条件分支",type:qh.JUDGE_WRAP,icon:{type:"apartment"},color:"rgb(21, 188, 131)"},{name:"并行分支",type:qh.PARALLEL_WRAP,icon:{type:"sliders"},color:"rgb(113, 141, 255)"}],p=function(t){r.wrapNode(e.code,{type:t})},v={nodes:d,wrapNode:p},y=r.isPreview?null:r.businessAdapter.eadApi.getCurrentViewSchema().model.attrs.find((function(t){return"notice_template"===t.name}));return av(av(av(av({icon:n},c),h),v),{},{nodeRef:e,eadApi:i,noticeTemplateAttr:y})},computed:{isSingle:function(){return"expression"===this.nodeRef.data.actor_config.type?1===this.nodeRef.data.actor_config.expression.length&&"uid"===this.nodeRef.data.actor_config.expression[0].type&&this.nodeRef.data.actor_config.expression[0].user.length<=1:"sponsor"===this.nodeRef.data.actor_config.type},availableBackStep:function(){var t=this.nodeHandler.businessAdapter.getAvailableBackStep(this.node.code).map((function(t){return{value:t.code,label:t.name}}));return t.length&&(this.node.data.back_node_id=t[0].value,this.node.data.custom_back_nodes=t.map((function(t){return t.value}))),t},nodeContent:function(){var t=this;if(this.nodeHandler.isPreview){var e,r,n,o="";if(null!==(e=this.nodeHandler)&&void 0!==e&&null!==(e=e.runtimeData)&&void 0!==e&&e.caseNodes&&null!==(r=this.nodeHandler)&&void 0!==r&&null!==(r=r.runtimeData)&&void 0!==r&&null!==(r=r.caseNodes[this.node.code])&&void 0!==r&&r.status){var i,a=null===(i=this.nodeHandler)||void 0===i||null===(i=i.runtimeData)||void 0===i?void 0:i.caseNodes[this.node.code].actors;a.forEach((function(t){o&&(o+="、"),o+='<span class="actor '.concat(t.status,'">').concat(t.operator.name,"</span>")})),o||(o+="&nbsp;")}return(null===(n=this.nodeHandler)||void 0===n||null===(n=n.runtimeData)||void 0===n?void 0:n.currentNodeCode)===this.nodeRef.code&&(o&&"&nbsp;"!==o&&(o+="、"),o+='<span class="actor pending">'.concat(this.eadApi.getCurrentUserName(),"</span>")),o||this.nodeRef.content}var s=this.node.data.actor_config,c="";if(!this.orgMap||!this.roles||!this.users)return c;if("expression"===s.type){var l=s.expression;if(l.length){if("org"===l[0].type){if(l[0].orgId)if(this.orgMap.has(l[0].orgId))c=c+=c?"、"+this.orgMap.get(l[0].orgId).org_name:this.orgMap.get(l[0].orgId).org_name;else{var u,f=null===(u=this.businessOrgData.children.find((function(t){return t.value===l[0].orgId})))||void 0===u?void 0:u.title;c=c+=c?"、"+f:f}l[0].roleId&&(c=c+=c?"-"+this.roles.find((function(t){return t.value===l[0].roleId})).label:this.roles.find((function(t){return t.value===l[0].roleId})).label)}if("uid"===l[0].type){var h=this.businessUserData.map((function(t){return t.value}));c=l[0].user.map((function(e){var r=h.includes(e)?t.businessUserData.find((function(t){return t.value===e})).label:t.users.find((function(t){return t.value===e})).label;return r.substring(0,r.indexOf("("))})).join("、")}}l.length>1&&(c+="...")}return"sponsor"===s.type&&(c="发起人自己"),this.nodeRef.content=c,c},optionFormsRadio:function(){var t=this.node.data.option_forms;if(!t.length)return"-";var e=t[0].access;return t.filter((function(t){return t.access===e})).length===t.length?e:"-"},businessOrgData:function(){var t=[],e={title:"操作视图",value:"${form_option_view}",key:"${form_option_view}",disabled:!0,children:t};return this.nodeRef.data.option_forms&&this.nodeRef.data.option_forms.length?(this.nodeRef.data.option_forms.forEach((function(e){t.push({title:e.attrName,value:"${"+e.attrCode+"}",key:"${"+e.attrCode+"}",children:[]})})),e):e},businessUserData:function(){var t=[];return this.nodeRef.data.option_forms&&this.nodeRef.data.option_forms.length?(this.nodeRef.data.option_forms.forEach((function(e){t.push({label:e.attrName+"(操作视图)",title:e.attrName+"(操作视图)",value:"${"+e.attrCode+"}",key:e.attrName+"-"+e.attrCode+"(操作视图)",children:[]})})),t):t}},methods:{filterDataset:function(t,e,r){var n=this;return t?e.filter((function(e){var n,o=rv(r);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(e[i].toString().toLowerCase().includes(t.toLowerCase()))return!0}}catch(a){o.e(a)}finally{o.f()}return!1})).filter((function(t){return"all"===n.formsColumnAccess||-1!==n.formsColumnAccess.indexOf(t.access.toString())})):e.filter((function(t){return"all"===n.formsColumnAccess||-1!==n.formsColumnAccess.indexOf(t.access.toString())}))},getClass:function(){var t,e,r,n="";return this.node.error&&(n+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(t=t.runtimeData)||void 0===t?void 0:t.currentNodeCode)===this.node.code?n+=" ongoing":null!==(e=this.nodeHandler)&&void 0!==e&&null!==(e=e.runtimeData)&&void 0!==e&&e.caseNodes&&null!==(r=this.nodeHandler)&&void 0!==r&&null!==(r=r.runtimeData)&&void 0!==r&&null!==(r=r.caseNodes[this.node.code])&&void 0!==r&&r.status&&(n+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),n},filterUser:function(t,e){var r=e.data;return-1!==r.key.indexOf(t)},loadCache:function(t){var e,r,n,o,i,a;this.optionViewType=null!==(e=null===(r=t.data)||void 0===r||null===(r=r.eadCache)||void 0===r||null===(r=r.workflow)||void 0===r?void 0:r.optionViewType)&&void 0!==e?e:this.optionViewType,this.optionViewList=null!==(n=null===(o=t.data)||void 0===o||null===(o=o.eadCache)||void 0===o||null===(o=o.workflow)||void 0===o?void 0:o.optionViewList)&&void 0!==n?n:this.optionViewList,this.driverList=null!==(i=null===(a=t.data)||void 0===a||null===(a=a.eadCache)||void 0===a||null===(a=a.workflow)||void 0===a?void 0:a.driverList)&&void 0!==i?i:this.driverList},handleDriverChange:function(t,e){},handleDriverSearch:function(t){var e=this;this.driverTimeout&&(clearTimeout(this.driverTimeout),this.driverTimeout=null);var r=function(){t&&e.eadApi.getDrivers(t).then((function(t){e.driverList=t.map((function(t){return{value:t.driver_id,label:t.driver_name,title:t.driver_name}})),e.nodeRef.data.eadCache.workflow.driverList=e.driverList}))};this.driverTimeout=setTimeout(r,300)},hasExpression:function(t){return"uid"===t.type?t.user&&t.user.length:"org"===t.type&&(t.orgId||t.roleId||t.groupId)},handleItemChange:function(t,e){},optionFormsRadioChange:function(t){this.node.data.option_forms.forEach((function(e){return e.access=t}))},optionViewChange:function(t){var e=this;return ev(Qp().mark((function r(){return Qp().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e.formsColumnFilter=void 0,e.optionViewId&&(e.optionFormsCache[e.optionViewId]=e.nodeRef.data.option_forms),e.optionViewId=t,e.nodeRef.data.eadCache.workflow.optionViewList=[e.optionViewList.find((function(e){return e.value===t}))],e.viewAttrLoading=!0,r.next=7,e.eadApi.getViewAttrs(t);case 7:e.nodeRef.data.option_forms=r.sent.filter((function(t){return"value"===t.type&&"none"!==t.access})).filter((function(t){return"primary"!==t.key_type})).map((function(r){var n,o,i,a=null===(n=e.optionFormsCache[t])||void 0===n?void 0:n.find((function(t){return t.attrId===r.id})),s=null!==(o=null===a||void 0===a?void 0:a.access)&&void 0!==o?o:"none";return r.required=null!==(i="write"===(null===a||void 0===a?void 0:a.access))&&void 0!==i?i:r.required,{attrId:r.id,attrName:r.alias,attrCode:r.name,access:s,required:r.required}})),e.$nextTick((function(){e.viewAttrLoading=!1}));case 9:case"end":return r.stop()}}),r)})))()},optionViewSearch:function(t){var e=this;this.viewNameTimeout&&(clearTimeout(this.viewNameTimeout),this.viewNameTimeout=null);var r=function(){t&&e.eadApi.getViews(t).then((function(t){e.optionViewList=t.map((function(t){return{value:t.view_id,text:t.view_name}}))}))};this.viewNameTimeout=setTimeout(r,300)},changeViewType:function(t){var e=this;return ev(Qp().mark((function r(){var n,o;return Qp().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=t.target,o=n.value,e.nodeRef.data.eadCache.workflow.optionViewType=o,"custom"===o&&(e.optionFormsCache[e.eadApi.getValues().option_view_id]=e.nodeRef.data.option_forms),"use_model"!==o){r.next=13;break}return e.optionViewId&&(e.optionFormsCache[e.optionViewId]=e.nodeRef.data.option_forms),e.optionViewId=null,e.nodeRef.data.option_view_id=void 0,e.viewAttrLoading=!0,r.next=11,e.eadApi.getViewAttrs(e.eadApi.getValues().option_view_id);case 11:e.nodeRef.data.option_forms=r.sent.filter((function(t){return"value"===t.type&&"none"!==t.access})).filter((function(t){return"primary"!==t.key_type})).map((function(t){var r,n,o,i=null===(r=e.optionFormsCache[e.eadApi.getValues().option_view_id])||void 0===r?void 0:r.find((function(e){return e.attrId===t.id})),a=null!==(n=null===i||void 0===i?void 0:i.access)&&void 0!==n?n:"none";return t.required=null!==(o="write"===(null===i||void 0===i?void 0:i.access))&&void 0!==o?o:t.required,{attrId:t.id,attrName:t.alias,attrCode:t.name,access:a,required:t.required}})),e.viewAttrLoading=!1;case 13:case"end":return r.stop()}}),r)})))()},hideDrawer:function(){var t=this,e=Object(N["ref"])(!0);this.$refs.nameForm.validate((function(r){r||(e.value=!1,t.$message.error("节点名称校验不通过"))})),e.value&&(this.visibleDrawer=!1)},changeTags:function(t){},showEditName:function(){var t=this;this.editName=!0,Object(N["nextTick"])((function(){t.$refs.nameInput.focus()}))},close:function(){this.nodeHandler.deleteNode(this.node.code)},click:function(){this.nodeHandler.isPreview||(this.nodeRef.error=null,this.showDrawer())},more:function(){this.showPopover()}},created:function(){this.loadCache(this.nodeRef)},mounted:function(){var t=ev(Qp().mark((function t(){var e,r,n,o,i,a,s;return Qp().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.nodeHandler.businessAdapter.getActorData();case 2:r=t.sent,n=r.viewAttrs,o=r.orgMap,i=r.orgData,a=r.roles,s=r.users,null!==(e=this.nodeRef.data.option_forms)&&void 0!==e&&e.length||(this.nodeRef.data.option_forms=n.filter((function(t){return"value"===t.type&&"none"!==t.access})).filter((function(t){return"primary"!==t.key_type})).map((function(t){return{attrId:t.id,attrName:t.alias,attrCode:t.name,access:"none",required:t.required}}))),this.viewAttrLoading=!1,this.orgMap=o,this.orgData=i,this.roles=a,this.users=s;case 14:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},fv=uv,hv=(r("f2fb"),qr(fv,Zp,Jp,!1,null,"14b216a6",null)),dv=hv.exports,pv=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"branch-wrap"},[e("div",{staticClass:"branch-box"},[e("div",{staticClass:"add-branch"},[t.nodeHandler.isPreview?t._e():e("a-button",{staticStyle:{color:"#15bc83"},attrs:{shape:"round"},on:{click:t.addBranch}},[t._v("添加条件 ")]),t.nodeHandler.isPreview?t._e():e("div",{staticClass:"wrap-more"},["exclusive"===t.nodeRef.data.gateway_type?e("a-button",{staticStyle:{"background-color":"#15bc83","border-color":"#15bc83",transform:"rotate(45deg)"},attrs:{icon:"plus",type:"primary",size:"small"},on:{click:function(){return t.nodeRef.data.gateway_type="inclusive"}}}):t._e(),"inclusive"===t.nodeRef.data.gateway_type?e("a-button",{staticStyle:{"background-color":"#15bc83","border-color":"#15bc83",transform:"rotate(45deg)",width:"24px",display:"flex","justify-content":"center","align-items":"center"},attrs:{type:"primary",size:"small"},on:{click:function(){return t.nodeRef.data.gateway_type="exclusive"}}},[e("a-icon",{attrs:{component:t.includeIcon}})],1):t._e()],1)],1),t._l(t.childNodeCodes,(function(r,n){return[e("div",{key:r,staticClass:"branch-item"},[e("div",{staticClass:"branch-item-line"}),t.nodeHandler.hasNode(r)?e(t.NodeWrap,{tag:"component",attrs:{"node-config":{node:t.nodeHandler.getNode(r),option:{left:0!==n,right:n!==t.childNodeCodes.length-1,index:n}},"node-handler":t.nodeHandler}}):t._e(),0===n?e("div",{staticClass:"top-left-cover-line"}):t._e(),0===n?e("div",{staticClass:"bottom-left-cover-line"}):t._e(),n===t.childNodeCodes.length-1?e("div",{staticClass:"top-right-cover-line"}):t._e(),n===t.childNodeCodes.length-1?e("div",{staticClass:"bottom-right-cover-line"}):t._e()],1)]}))],2)]),e("a-drawer",{attrs:{closable:!0,title:t.node.name,visible:t.visibleDrawer,width:720,placement:"right"},on:{close:t.hideDrawer}},[e("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[e("a-col",{attrs:{span:4}},[t._v(" 条件执行策略 ")]),e("a-col",{attrs:{span:20}},[e("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:t.nodeRef.data.gateway_type,callback:function(e){t.$set(t.nodeRef.data,"gateway_type",e)},expression:"nodeRef.data.gateway_type"}},[e("a-radio-button",{attrs:{value:"exclusive"}},[t._v(" 唯一 ")]),e("a-radio-button",{attrs:{value:"inclusive"}},[t._v(" 包含 ")])],1)],1)],1)],1)],1)},vv=[];function yv(t){return yv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yv(t)}function mv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function gv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mv(Object(r),!0).forEach((function(e){bv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function bv(t,e,r){return e=wv(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wv(t){var e=_v(t,"string");return"symbol"==yv(e)?e:String(e)}function _v(t,e){if("object"!=yv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=yv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var xv={name:"JudgeWrapNode",computed:{NodeWrap:function(){return zy}},props:{node:Yh,nodeHandler:Object},setup:function(t){var e=t.node,r=t.nodeHandler,n=e.childNodeCodes,o={template:' <svg viewBox="0 0 1024 1024">\n <ellipse fill=" currentColor" cx="512" cy="512" id="svg_2" rx="468.5" ry="446.56354" stroke="null"/>\n </svg>'},i=r.businessAdapter.eadApi,a=function(){return{gateway_type:"exclusive"}};e.data||(e.data=a());var s=Object(N["ref"])(!1),c=function(){return s.value=!0},l=function(){return s.value=!1},u={visibleDrawer:s,showDrawer:c,hideDrawer:l};return gv({includeIcon:o,childNodeCodes:n,nodeRef:e,eadApi:i},u)},methods:{addBranch:function(){this.nodeHandler.addBranch(this.node.code,"条件")}}},kv=xv,Ov=(r("13e9"),qr(kv,pv,vv,!1,null,"0ab38de0",null)),Ev=Ov.exports,Sv=function(){var t,e=this,r=e._self._c;return r("div",[r("div",{staticClass:"node",class:e.getClass(),on:{click:e.click}},[e.nodeHandler.isPreview?r("div",{staticClass:"disable node-left"}):e._e(),e.nodeHandler.isPreview?e._e():r("div",{staticClass:"node-left",class:e.option.left?"":"disable",on:{click:function(t){return t.stopPropagation(),e.toLeft.apply(null,arguments)}}},[r("span",[e.option.left?r("a-icon",{staticClass:"icon",attrs:{type:"left"}}):e._e()],1)]),r("div",{staticClass:"node-content"},[r("div",{staticClass:"title"},[r("span",{staticClass:"title-main",staticStyle:{"margin-right":"5px"}},["exclusive"===(null===(t=e.wrapNode)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.gateway_type)?r("a-icon",{attrs:{type:"apartment"}}):r("a-icon",{attrs:{type:"deployment-unit"}})],1),r("span",{staticClass:"title-main"},[e._v(e._s(e.node.name))]),e.nodeHandler.isPreview?e._e():r("span",{staticClass:"title-right"},[r("a-icon",{staticClass:"close",attrs:{type:"close"},on:{click:function(t){return t.stopPropagation(),e.close.apply(null,arguments)}}}),r("span",{staticClass:"info"},[e._v("优先级"+e._s(e.option.index+1))])],1)]),r("div",{staticClass:"content"},[r("span",{staticClass:"content-main"},[r("span",{staticClass:"error-tooltip"},[r("a-tooltip",[r("template",{slot:"title"},[e._v(" "+e._s(e.node.error)+" ")]),r("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),e.node.content?r("span",[e._v(e._s(e.node.content))]):r("span",{staticStyle:{color:"rgb(164 164 164)"}},[e._v(e._s(e.defaultContent))])])])]),e.nodeHandler.isPreview?r("div",{staticClass:"disable node-right"}):e._e(),e.nodeHandler.isPreview?e._e():r("div",{staticClass:"node-right",class:e.option.right?"":"disable",on:{click:function(t){return t.stopPropagation(),e.toRight.apply(null,arguments)}}},[r("span",[e.option.right?r("a-icon",{staticClass:"icon",attrs:{type:"right"}}):e._e()],1)])]),r("a-drawer",{attrs:{"after-visible-change":e.change,closable:!0,visible:e.visible,width:720,placement:"right"},on:{close:e.hideDrawer}},[e.editName?e._e():r("div",{staticClass:"node-drawer-title",on:{click:e.showEditName}},[r("a-icon",{attrs:{type:"edit"}}),e._v(" "+e._s(e.node.name)+" ")],1),r("a-form-model",{directives:[{name:"show",rawName:"v-show",value:e.editName,expression:"editName"}],ref:"nameForm",attrs:{model:e.nodeRef,rules:{name:[{required:!0,message:"请填写节点名称",trigger:"blur"},{min:2,max:20,message:"2-20个字",trigger:"blur"}]},layout:"inline"}},[r("a-form-model-item",{ref:"name",attrs:{prop:"name"}},[r("a-input",{ref:"nameInput",attrs:{placeholder:"节点名称"},on:{blur:function(){e.editName=!1}},model:{value:e.nodeRef.name,callback:function(t){e.$set(e.nodeRef,"name",t)},expression:"nodeRef.name"}})],1)],1),r("div",[e.hasDefault?e._e():r("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[r("a-col",{attrs:{span:2}},[e._v("默认")]),r("a-col",{attrs:{span:22}},[r("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:e.nodeRef.data.isDefault,callback:function(t){e.$set(e.nodeRef.data,"isDefault",t)},expression:"nodeRef.data.isDefault"}},[r("a-radio-button",{attrs:{value:!1}},[e._v(" 否 ")]),r("a-radio-button",{attrs:{value:!0}},[e._v(" 是 ")])],1)],1)],1),e.nodeRef.data.isDefault?e._e():r("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[r("a-col",{attrs:{span:2}},[e._v("表达式")]),r("a-col",{attrs:{span:22}},[r("a-textarea",{attrs:{"auto-size":""},model:{value:e.nodeRef.data.condition,callback:function(t){e.$set(e.nodeRef.data,"condition",t)},expression:"nodeRef.data.condition"}})],1)],1),r("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[r("a-col",{attrs:{span:2}},[e._v("描述")]),r("a-col",{attrs:{span:22}},[r("a-textarea",{attrs:{"auto-size":""},model:{value:e.nodeRef.content,callback:function(t){e.$set(e.nodeRef,"content",t)},expression:"nodeRef.content"}})],1)],1)],1)],1)],1)},jv=[],Nv={name:"JudgeNode",props:{option:{left:Boolean,right:Boolean,index:Number},node:Yh,nodeHandler:Object},computed:{hasDefault:function(){var t=this,e=this.nodeHandler.getWrapNode(this.nodeRef.code).childNodeCodes,r=e.filter((function(e){return e!==t.nodeRef.code})).filter((function(e){var r;return null===(r=t.nodeHandler.getNode(e))||void 0===r||null===(r=r.data)||void 0===r?void 0:r.isDefault})).length;return!!r}},data:function(){return{defaultContent:"请设置条件",editName:!1,wrapNode:null}},setup:function(t){var e=t.node,r=t.nodeHandler,n=Object(N["ref"])(!1),o=function(t){},i=function(){return n.value=!0},a=function(){return n.value=!1},s=r.businessAdapter.eadApi,c=function(){return{condition:"",isDefault:!1}};return e.data||(e.data=c()),{visible:n,showDrawer:i,hideDrawer:a,change:o,nodeRef:e,eadApi:s}},methods:{getClass:function(){var t,e,r,n="";return this.node.error&&(n+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(t=t.runtimeData)||void 0===t?void 0:t.currentNodeCode)===this.node.code?n+=" ongoing":null!==(e=this.nodeHandler)&&void 0!==e&&null!==(e=e.runtimeData)&&void 0!==e&&e.caseNodes&&null!==(r=this.nodeHandler)&&void 0!==r&&null!==(r=r.runtimeData)&&void 0!==r&&null!==(r=r.caseNodes[this.node.code])&&void 0!==r&&r.status&&(n+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),n},showEditName:function(){var t=this;this.editName=!0,Object(N["nextTick"])((function(){t.$refs.nameInput.focus()}))},close:function(){this.nodeHandler.deleteNode(this.node.code)},click:function(){this.nodeHandler.isPreview||(this.nodeRef.error=null,this.showDrawer())},toLeft:function(){this.option.left?this.nodeHandler.moveBranchNode(this.node.code,-1):this.click()},toRight:function(){this.option.right?this.nodeHandler.moveBranchNode(this.node.code,1):this.click()}},mounted:function(){var t=this.nodeHandler;this.wrapNode=t.getWrapNode(this.node.code)}},Lv=Nv,Pv=(r("2f4d"),qr(Lv,Sv,jv,!1,null,"3cf68a4f",null)),Cv=Pv.exports;function Av(t){return Iv(t)||Dv(t)||Rv(t)||Tv()}function Tv(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Rv(t,e){if(t){if("string"===typeof t)return Mv(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mv(t,e):void 0}}function Dv(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Iv(t){if(Array.isArray(t))return Mv(t)}function Mv(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var qv=function(){var t,e=this,r=e._self._c;return r("div",[r("div",{staticClass:"node",class:e.getClass(),on:{click:e.click}},[r("div",{staticClass:"title"},[r("span",[r("a-icon",{attrs:{type:"mail"}})],1),r("span",[e._v(" "+e._s(e.node.name))]),e.nodeHandler.isPreview?e._e():r("span",{staticClass:"title-right"},[r("a-icon",{staticClass:"close",attrs:{type:"close"},on:{click:function(t){return t.stopPropagation(),e.close.apply(null,arguments)}}})],1)]),r("div",{staticClass:"content"},[r("span",{staticClass:"content-main"},[r("span",{staticClass:"error-tooltip"},[r("a-tooltip",[r("template",{slot:"title"},[e._v(" "+e._s(e.node.error)+" ")]),r("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),e.nodeContent?r("span",{staticStyle:{"padding-left":"5px"}},[e._v(e._s(e.nodeContent))]):r("span",{staticStyle:{"padding-left":"5px",color:"rgb(164 164 164)"}},[e._v(e._s(e.defaultContent))])]),r("span",{staticClass:"content-right"},[e.nodeHandler.isPreview?e._e():r("a-popover",{attrs:{placement:"rightTop",trigger:"click"},scopedSlots:e._u([{key:"title",fn:function(){return[r("span",{staticStyle:{"font-size":"18px"}},[e._v("追加分支")])]},proxy:!0},{key:"content",fn:function(){return[r("div",{staticClass:"add-node-box"},e._l(e.nodes,(function(t,n){var o,i;return r("div",{key:n,staticClass:"add-node-item",on:{click:function(r){return e.wrapNode(t.type)}}},[r("div",{staticClass:"icon",style:"color:"+t.color+";"},[null!==(o=t.icon)&&void 0!==o&&o.component?r("a-icon",{attrs:{component:t.icon.component}}):e._e(),null!==(i=t.icon)&&void 0!==i&&i.type?r("a-icon",{attrs:{type:t.icon.type}}):e._e()],1),r("span",[e._v(e._s(t.name))])])})),0)]},proxy:!0}],null,!1,2863198520),model:{value:e.visiblePopover,callback:function(t){e.visiblePopover=t},expression:"visiblePopover"}},[r("a-icon",{attrs:{type:"plus"},on:{click:function(t){return t.stopPropagation(),function(){}.apply(null,arguments)}}})],1)],1)])]),e.nodeHandler.isPreview?e._e():r("a-drawer",{attrs:{closable:!0,visible:e.visibleDrawer,width:720,placement:"right"},on:{close:e.hideDrawer}},[e.editName?e._e():r("div",{staticClass:"node-drawer-title",on:{click:e.showEditName}},[r("a-icon",{attrs:{type:"edit"}}),e._v(" "+e._s(e.node.name)+" ")],1),r("a-form-model",{directives:[{name:"show",rawName:"v-show",value:e.editName,expression:"editName"}],ref:"nameForm",attrs:{model:e.nodeRef,rules:{name:[{required:!0,message:"请填写节点名称",trigger:"blur"},{min:2,max:20,message:"2-20个字",trigger:"blur"}]},layout:"inline"}},[r("a-form-model-item",{ref:"name",attrs:{prop:"name"}},[r("a-input",{ref:"nameInput",attrs:{placeholder:"节点名称"},on:{blur:function(){e.editName=!1}},model:{value:e.nodeRef.name,callback:function(t){e.$set(e.nodeRef,"name",t)},expression:"nodeRef.name"}})],1)],1),r("a-tabs",{attrs:{"default-active-key":"1"},on:{change:e.changeTags},model:{value:e.tabKey,callback:function(t){e.tabKey=t},expression:"tabKey"}},[r("a-tab-pane",{key:"actors",attrs:{tab:"设置人"}},e._l(e.nodeRef.data.actor_config.expression,(function(t,n){return r("div",{key:n},[r("a-row",{staticClass:"node-form-item",staticStyle:{display:"flex","align-items":"center"}},[r("a-col",{attrs:{span:"4"}},[r("a-radio-group",{attrs:{"button-style":"solid",size:"small"},model:{value:t.type,callback:function(r){e.$set(t,"type",r)},expression:"item.type"}},[r("a-radio-button",{attrs:{value:"uid"}},[r("a-icon",{attrs:{type:"user"}})],1),r("a-radio-button",{attrs:{value:"org"}},[r("a-icon",{attrs:{type:"team"}})],1)],1),e.nodeRef.data.actor_config.expression.length>1?r("a-button",{attrs:{icon:"delete",type:"link"},on:{click:function(){return e.nodeRef.data.actor_config.expression.splice(n,1)}}}):e._e()],1),"uid"===t.type?r("a-col",{attrs:{span:"18"}},[r("div",[r("a-select",{staticStyle:{width:"100%"},attrs:{options:[].concat(Av(e.businessUserData),Av(e.users)),mode:"multiple",placeholder:"选择人"},model:{value:t.user,callback:function(r){e.$set(t,"user",r)},expression:"item.user"}})],1)]):e._e(),"org"===t.type?r("a-col",{attrs:{span:"18"}},[r("div",[r("a-row",[r("a-col",{attrs:{span:8}},[r("a-tree-select",{staticStyle:{width:"100%"},attrs:{"dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-data":[e.businessOrgData].concat(Av(e.orgData)),allowClear:"",placeholder:"部门","tree-default-expand-all":""},model:{value:t.orgId,callback:function(r){e.$set(t,"orgId",r)},expression:"item.orgId"}})],1),r("a-col",{attrs:{span:8}},[r("a-select",{staticStyle:{width:"100%"},attrs:{options:e.roles,allowClear:"",placeholder:"角色"},model:{value:t.roleId,callback:function(r){e.$set(t,"roleId",r)},expression:"item.roleId"}})],1)],1)],1)]):e._e(),e.nodeRef.data.actor_config.expression.length===n+1&&e.hasExpression(t)?r("a-col",{attrs:{span:"2"}},[r("a-button",{attrs:{icon:"plus",shape:"circle",type:"primary"},on:{click:function(){e.nodeRef.data.actor_config.expression.push({type:"uid",user:[],orgId:void 0,roleId:void 0,groupId:void 0})}}})],1):e._e()],1)],1)})),0),r("a-tab-pane",{key:"forms",attrs:{tab:"操作视图"}},[r("div",{staticClass:"node-form-item"},[r("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[r("a-col",{attrs:{span:24}},[r("a-radio-group",{staticClass:"node-form-item",on:{change:e.changeViewType},model:{value:e.optionViewType,callback:function(t){e.optionViewType=t},expression:"optionViewType"}},[r("a-radio",{attrs:{value:"use_model"}},[e._v(" 沿用工作流模型 ")]),r("a-radio",{attrs:{value:"custom"}},[e._v(" 自主选择 ")])],1)],1)],1),r("a-row",[r("a-col",{attrs:{span:24}},["custom"===e.optionViewType?r("a-select",{staticClass:"node-form-item",staticStyle:{width:"100%"},attrs:{"default-active-first-option":!1,"filter-option":!1,"not-found-content":null,"show-arrow":!1,placeholder:"请输入表单视图名称","show-search":""},on:{change:e.optionViewChange,search:e.optionViewSearch},model:{value:e.nodeRef.data.option_view_id,callback:function(t){e.$set(e.nodeRef.data,"option_view_id",t)},expression:"nodeRef.data.option_view_id"}},e._l(e.optionViewList,(function(t){return r("a-select-option",{key:t.value,attrs:{value:t.value}},[e._v(" "+e._s(t.text)+" ")])})),1):e._e()],1)],1)],1),r("div",{key:e.nodeRef.data.option_view_id,staticClass:"node-from-item"},[r("a-divider",{attrs:{orientation:"left"}},[e._v("表单权限")]),"use_model"===e.optionViewType||e.nodeRef.data.option_view_id?r("a-spin",{attrs:{spinning:e.viewAttrLoading}},[r("a-row",[r("a-col",{attrs:{span:11}},[r("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索表单属性"},on:{search:function(t){return e.formsColumnFilter=t}}})],1),r("a-col",{attrs:{span:1}}),r("a-col",{attrs:{span:11}},[r("a-radio-group",{attrs:{"button-style":"solid"},model:{value:e.formsColumnAccess,callback:function(t){e.formsColumnAccess=t},expression:"formsColumnAccess"}},[r("a-radio-button",{attrs:{value:"all"}},[e._v(" 无 ")]),r("a-radio-button",{attrs:{value:"none"}},[e._v(" 隐藏 ")]),r("a-radio-button",{attrs:{value:"readonly"}},[e._v(" 只读 ")]),r("a-radio-button",{attrs:{value:"write"}},[e._v(" 可写 ")]),r("a-radio-button",{attrs:{value:"readonlywrite"}},[e._v(" 读写 ")])],1)],1)],1),r("a-table",{attrs:{columns:e.optionFormsColumns,"data-source":e.filterDataset(e.formsColumnFilter,e.nodeRef.data.option_forms,["attrName","attrCode"]),"row-key":function(t){return t.attrId}},scopedSlots:e._u([{key:"attrName",fn:function(t,n){return r("span",{},[e._v(e._s(n.attrName)+"("+e._s(n.attrCode)+")")])}},{key:"none",fn:function(t,n){return r("span",{},[r("a-radio",{attrs:{checked:"none"===n.access,value:"none"},on:{change:function(){return n.access="none"}}},[e._v("隐藏")])],1)}},{key:"readonly",fn:function(t,n){return r("span",{},[r("a-radio",{attrs:{checked:"readonly"===n.access,value:"readonly"},on:{change:function(){return n.access="readonly"}}},[e._v("只读")])],1)}},{key:"write",fn:function(t,n){return r("span",{},[r("a-radio",{attrs:{checked:"write"===n.access,value:"write"},on:{change:function(){return n.access="write"}}},[e._v("可编辑")])],1)}},{key:"required",fn:function(t,n){return r("span",{},["write"===n.access?r("a-switch",{model:{value:n.required,callback:function(t){e.$set(n,"required",t)},expression:"record.required"}}):e._e()],1)}}],null,!1,274236117)},[r("span",{attrs:{slot:"noneColumn"},slot:"noneColumn"},[r("a-radio",{attrs:{checked:"none"===e.optionFormsRadio,value:"none"},on:{change:function(t){return e.optionFormsRadioChange("none")}}},[e._v("隐藏")])],1),r("span",{attrs:{slot:"readonlyColumn"},slot:"readonlyColumn"},[r("a-radio",{attrs:{checked:"readonly"===e.optionFormsRadio,value:"readonly"},on:{change:function(t){return e.optionFormsRadioChange("readonly")}}},[e._v("只读")])],1),r("span",{attrs:{slot:"writeColumn"},slot:"writeColumn"},[r("a-radio",{attrs:{checked:"write"===e.optionFormsRadio,value:"write"},on:{change:function(t){return e.optionFormsRadioChange("write")}}},[e._v("可编辑")])],1)])],1):e._e()],1)]),r("a-tab-pane",{key:"others",attrs:{tab:"其他配置"}},[r("a-card",{staticStyle:{margin:"5px"},attrs:{size:"small",title:"消息配置"}},[r("a-input",{staticStyle:{"margin-bottom":"5px"},attrs:{placeholder:"待办跳转地址;以/结尾,例如:/${appKey}#/res_path/"},model:{value:e.nodeRef.data.other_options.resPath,callback:function(t){e.$set(e.nodeRef.data.other_options,"resPath",t)},expression:"nodeRef.data.other_options.resPath"}}),r("a-input",{attrs:{placeholder:"消息跳转地址"},model:{value:e.nodeRef.data.other_options.redirectUri,callback:function(t){e.$set(e.nodeRef.data.other_options,"redirectUri",t)},expression:"nodeRef.data.other_options.redirectUri"}}),e.noticeTemplateAttr?r("Item",{key:e.noticeTemplateAttr.name,attrs:{formModel:e.eadApi.getComponent().actionModel,params:null!==(t=e.noticeTemplateAttr.params)&&void 0!==t?t:{},prop:e.noticeTemplateAttr.name,required:!1,schema:e.noticeTemplateAttr},on:{change:function(t){return e.handleItemChange(t,e.noticeTemplateAttr)}},model:{value:e.nodeRef.data.notice_template,callback:function(t){e.$set(e.nodeRef.data,"notice_template",t)},expression:"nodeRef.data.notice_template"}}):e._e(),r("a-alert",{attrs:{message:"模板变量:",type:"success"}},[r("div",{attrs:{slot:"description"},slot:"description"},[r("div",[e._v("${workflow.variable.sponsor} - 发起人")]),r("div",[e._v("${workflow.variable.sponsor_name} - 发起人姓名")]),r("div",[e._v("${workflow.variable.sponsor_org} - 发起人组织机构")]),r("div",[e._v("${workflow.variable.sponsor_org_name} - 发起人组织机构名称")]),r("div",[e._v("${workflow.variable.sponsor_role} - 发起人角色")]),r("div",[e._v("${workflow.variable.sponsor_role_name} - 发起人角色名")]),r("div",[e._v("${workflow_req.page_operate.approver} - 审批人")]),r("div",[e._v("${workflow_req.page_operate.approver_name} - 审批人名称")])])])],1)],1)],1)],1)],1)},Bv=[];function Fv(t){return Fv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fv(t)}function $v(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$v=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Fv(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Fv(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Vv(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Hv(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Vv(i,n,o,a,s,"next",t)}function s(t){Vv(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Uv(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Gv(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Gv(t,e){if(t){if("string"===typeof t)return zv(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zv(t,e):void 0}}function zv(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Kv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Yv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Kv(Object(r),!0).forEach((function(e){Wv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Wv(t,e,r){return e=Zv(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zv(t){var e=Jv(t,"string");return"symbol"==Fv(e)?e:String(e)}function Jv(t,e){if("object"!=Fv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Fv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Xv={name:"CCNode",props:{node:Yh,nodeHandler:Object},components:{Item:Ri},data:function(){return{defaultContent:"请选择",editName:!1,tabKey:"actors",optionViewType:"use_model",optionViewList:[],optionFormsColumns:[{title:"表单属性",key:"attrName",scopedSlots:{customRender:"attrName"}},{key:"none",slots:{title:"noneColumn"},scopedSlots:{customRender:"none"}},{key:"readonly",slots:{title:"readonlyColumn"},scopedSlots:{customRender:"readonly"}}],orgMap:null,orgData:[],roles:[],users:[],viewNametimeout:null,viewAttrLoading:!0,formsColumnFilter:void 0,formsColumnAccess:"all"}},setup:function(t){var e=t.node,r=t.nodeHandler,n=Object(N["ref"])(!1),o=r.businessAdapter.eadApi,i=function(){return{eadCache:{workflow:{}},actor_config:{type:"expression",expression:[{type:"uid",user:[],orgId:void 0,roleId:void 0,groupId:void 0}]},option_view:{use_model:!0},option_view_id:null,option_forms:[],notice_template:"",other_options:{resPath:null,redirectUri:null}}};e.data||(e.data=i()),e.data.other_options||(e.data.other_options={});var a=function(){return n.value=!0},s=function(){return n.value=!1},c={visibleDrawer:n,showDrawer:a,hideDrawer:s},l=Object(N["ref"])(!1),u=function(){return l.value=!1},f=function(){return l.value=!0},h={visiblePopover:l,showPopover:f,hidePopover:u},d=[{name:"条件分支",type:qh.JUDGE_WRAP,icon:{type:"apartment"},color:"rgb(21, 188, 131)"},{name:"并行分支",type:qh.PARALLEL_WRAP,icon:{type:"sliders"},color:"rgb(113, 141, 255)"}],p=function(t){r.wrapNode(e.code,{type:t})},v={nodes:d,wrapNode:p},y=r.isPreview?null:r.businessAdapter.eadApi.getCurrentViewSchema().model.attrs.find((function(t){return"notice_template"===t.name}));return Yv(Yv(Yv(Yv({},c),h),v),{},{nodeRef:e,eadApi:o,noticeTemplateAttr:y})},created:function(){this.loadCache(this.nodeRef)},computed:{nodeContent:function(){var t=this;if(this.nodeHandler.isPreview)return this.nodeRef.content;var e=this.node.data.actor_config,r="";if(!this.orgMap||!this.roles||!this.users)return r;if("expression"===e.type){var n=e.expression;if(n.length){if("org"===n[0].type){if(n[0].orgId)if(this.orgMap.has(n[0].orgId))r=r+=r?"、"+this.orgMap.get(n[0].orgId).org_name:this.orgMap.get(n[0].orgId).org_name;else{var o,i=null===(o=this.businessOrgData.children.find((function(t){return t.value===n[0].orgId})))||void 0===o?void 0:o.title;r=r+=r?"、"+i:i}n[0].roleId&&(r=r+=r?"-"+this.roles.find((function(t){return t.value===n[0].roleId})).label:this.roles.find((function(t){return t.value===n[0].roleId})).label)}if("uid"===n[0].type){var a=this.businessUserData.map((function(t){return t.value}));r=n[0].user.map((function(e){var r=a.includes(e)?t.businessUserData.find((function(t){return t.value===e})).label:t.users.find((function(t){return t.value===e})).label;return r.substring(0,r.indexOf("("))})).join("、")}}n.length>1&&(r+="...")}return"sponsor"===e.type&&(r="发起人自己"),this.nodeRef.content=r,r},optionFormsRadio:function(){var t=this.node.data.option_forms;if(!t.length)return"-";var e=t[0].access;return t.filter((function(t){return t.access===e})).length===t.length?e:"-"},businessOrgData:function(){var t=[],e={title:"操作视图",value:"${form_option_view}",key:"${form_option_view}",disabled:!0,children:t};return this.nodeRef.data.option_forms&&this.nodeRef.data.option_forms.length?(this.nodeRef.data.option_forms.forEach((function(e){t.push({title:e.attrName,value:"${"+e.attrCode+"}",key:"${"+e.attrCode+"}",children:[]})})),e):e},businessUserData:function(){var t=[];return this.nodeRef.data.option_forms&&this.nodeRef.data.option_forms.length?(this.nodeRef.data.option_forms.forEach((function(e){t.push({label:e.attrName+"(操作视图)",title:e.attrName+"(操作视图)",value:"${"+e.attrCode+"}",key:e.attrName+"-"+e.attrCode+"(操作视图)",children:[]})})),t):t}},methods:{filterDataset:function(t,e,r){var n=this;return t?e.filter((function(e){var n,o=Uv(r);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(e[i].toString().toLowerCase().includes(t.toLowerCase()))return!0}}catch(a){o.e(a)}finally{o.f()}return!1})).filter((function(t){return"all"===n.formsColumnAccess||-1!==n.formsColumnAccess.indexOf(t.access.toString())})):e.filter((function(t){return"all"===n.formsColumnAccess||-1!==n.formsColumnAccess.indexOf(t.access.toString())}))},getClass:function(){var t,e,r,n="";return this.node.error&&(n+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(t=t.runtimeData)||void 0===t?void 0:t.currentNodeCode)===this.node.code?n+=" ongoing":null!==(e=this.nodeHandler)&&void 0!==e&&null!==(e=e.runtimeData)&&void 0!==e&&e.caseNodes&&null!==(r=this.nodeHandler)&&void 0!==r&&null!==(r=r.runtimeData)&&void 0!==r&&null!==(r=r.caseNodes[this.node.code])&&void 0!==r&&r.status&&(n+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),n},loadCache:function(t){var e,r,n,o;this.optionViewType=null!==(e=null===(r=t.data)||void 0===r||null===(r=r.eadCache)||void 0===r||null===(r=r.workflow)||void 0===r?void 0:r.optionViewType)&&void 0!==e?e:this.optionViewType,this.optionViewList=null!==(n=null===(o=t.data)||void 0===o||null===(o=o.eadCache)||void 0===o||null===(o=o.workflow)||void 0===o?void 0:o.optionViewList)&&void 0!==n?n:this.optionViewList},hasExpression:function(t){return"uid"===t.type?t.user&&t.user.length:"org"===t.type&&(t.orgId||t.roleId||t.groupId)},handleItemChange:function(t,e){},optionFormsRadioChange:function(t){this.node.data.option_forms.forEach((function(e){return e.access=t}))},optionViewChange:function(t){var e=this;return Hv($v().mark((function r(){return $v().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e.formsColumnFilter=void 0,e.nodeRef.data.option_view_id=t,e.nodeRef.data.eadCache.workflow.optionViewList=[e.optionViewList.find((function(e){return e.value===t}))],e.viewAttrLoading=!0,r.next=6,e.eadApi.getViewAttrs(t);case 6:e.nodeRef.data.option_forms=r.sent.filter((function(t){return"value"===t.type&&"none"!==t.access})).filter((function(t){return"primary"!==t.key_type})).map((function(t){return{attrId:t.id,attrName:t.alias,attrCode:t.name,access:"none",required:t.required}})),e.viewAttrLoading=!1;case 8:case"end":return r.stop()}}),r)})))()},optionViewSearch:function(t){var e=this;this.viewNametimeout&&(clearTimeout(this.viewNametimeout),this.viewNametimeout=null);var r=function(){t&&e.eadApi.getViews(t).then((function(t){e.optionViewList=t.map((function(t){return{value:t.view_id,text:t.view_name}}))}))};this.viewNametimeout=setTimeout(r,300)},changeViewType:function(t){var e=this;return Hv($v().mark((function r(){var n,o;return $v().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=t.target,o=n.value,e.nodeRef.data.eadCache.workflow.optionViewType=o,"use_model"!==o){r.next=10;break}return e.nodeRef.data.option_view_id=void 0,e.viewAttrLoading=!0,r.next=8,e.eadApi.getViewAttrs(e.eadApi.getValues().option_view_id);case 8:e.nodeRef.data.option_forms=r.sent.filter((function(t){return"value"===t.type&&"none"!==t.access})).filter((function(t){return"primary"!==t.key_type})).map((function(t){return{attrId:t.id,attrName:t.alias,attrCode:t.name,access:"none",required:t.required}})),e.$nextTick((function(){e.viewAttrLoading=!1}));case 10:case"end":return r.stop()}}),r)})))()},hideDrawer:function(){var t=this,e=Object(N["ref"])(!0);this.$refs.nameForm.validate((function(r){r||(e.value=!1,t.$message.error("节点名称校验不通过"))})),e.value&&(this.visibleDrawer=!1)},changeTags:function(t){},showEditName:function(){var t=this;this.editName=!0,Object(N["nextTick"])((function(){t.$refs.nameInput.focus()}))},close:function(){this.nodeHandler.deleteNode(this.node.code)},click:function(){this.nodeHandler.isPreview||(this.nodeRef.error=null,this.showDrawer())},more:function(){this.showPopover()}},mounted:function(){var t=this;return Hv($v().mark((function e(){var r,n,o,i,a,s,c;return $v().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.nodeHandler.businessAdapter.getActorData();case 2:n=e.sent,o=n.viewAttrs,i=n.orgMap,a=n.orgData,s=n.roles,c=n.users,null!==(r=t.nodeRef.data.option_forms)&&void 0!==r&&r.length||(t.nodeRef.data.option_forms=o.filter((function(t){return"value"===t.type&&"none"!==t.access})).filter((function(t){return"primary"!==t.key_type})).map((function(t){return{attrId:t.id,attrName:t.alias,attrCode:t.name,access:"none",required:t.required}}))),t.viewAttrLoading=!1,t.orgMap=i,t.orgData=a,t.roles=s,t.users=c;case 14:case"end":return e.stop()}}),e)})))()}},Qv=Xv,ty=(r("fdc3"),qr(Qv,qv,Bv,!1,null,"0743a454",null)),ey=ty.exports,ry=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"node",class:t.getClass(),on:{click:t.click}},[e("div",{staticClass:"title"},[e("span",[e("a-icon",{attrs:{type:"control"}})],1),e("span",[t._v(" "+t._s(t.node.name))]),t.nodeHandler.isPreview?t._e():e("span",{staticClass:"title-right"},[e("a-icon",{staticClass:"close",attrs:{type:"close"},on:{click:function(e){return e.stopPropagation(),t.close.apply(null,arguments)}}})],1)]),e("div",{staticClass:"content"},[e("span",{staticClass:"content-main"},[e("span",{staticClass:"error-tooltip"},[e("a-tooltip",[e("template",{slot:"title"},[t._v(" "+t._s(t.node.error)+" ")]),e("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),t.nodeContent?e("span",{staticStyle:{"padding-left":"5px"}},[t._v(t._s(t.nodeContent))]):e("span",{staticStyle:{"padding-left":"5px",color:"rgb(164 164 164)"}},[t._v(t._s(t.defaultContent))])]),e("span",{staticClass:"content-right"},[t.nodeHandler.isPreview?t._e():e("a-popover",{attrs:{placement:"rightTop",trigger:"click"},scopedSlots:t._u([{key:"title",fn:function(){return[e("span",{staticStyle:{"font-size":"18px"}},[t._v("追加分支")])]},proxy:!0},{key:"content",fn:function(){return[e("div",{staticClass:"add-node-box"},t._l(t.nodes,(function(r,n){var o,i;return e("div",{key:n,staticClass:"add-node-item",on:{click:function(e){return t.wrapNode(r.type)}}},[e("div",{staticClass:"icon",style:"color:"+r.color+";"},[null!==(o=r.icon)&&void 0!==o&&o.component?e("a-icon",{attrs:{component:r.icon.component}}):t._e(),null!==(i=r.icon)&&void 0!==i&&i.type?e("a-icon",{attrs:{type:r.icon.type}}):t._e()],1),e("span",[t._v(t._s(r.name))])])})),0)]},proxy:!0}],null,!1,2863198520),model:{value:t.visiblePopover,callback:function(e){t.visiblePopover=e},expression:"visiblePopover"}},[e("a-icon",{attrs:{type:"plus"},on:{click:function(t){return t.stopPropagation(),function(){}.apply(null,arguments)}}})],1)],1)])]),e("a-drawer",{attrs:{"after-visible-change":t.change,closable:!0,visible:t.visibleDrawer,width:720,placement:"right"},on:{close:t.hideDrawer}},[t.editName?t._e():e("div",{staticClass:"node-drawer-title",on:{click:t.showEditName}},[e("a-icon",{attrs:{type:"edit"}}),t._v(" "+t._s(t.node.name)+" ")],1),e("a-form-model",{directives:[{name:"show",rawName:"v-show",value:t.editName,expression:"editName"}],ref:"nameForm",attrs:{model:t.nodeRef,rules:{name:[{required:!0,message:"请填写节点名称",trigger:"blur"},{min:2,max:20,message:"2-20个字",trigger:"blur"}]},layout:"inline"}},[e("a-form-model-item",{ref:"name",attrs:{prop:"name"}},[e("a-input",{ref:"nameInput",attrs:{placeholder:"节点名称"},on:{blur:function(){t.editName=!1}},model:{value:t.nodeRef.name,callback:function(e){t.$set(t.nodeRef,"name",e)},expression:"nodeRef.name"}})],1)],1),e("a-row",[e("a-col",{attrs:{span:4}},[t._v(" 驱动 ")]),e("a-col",{attrs:{span:20}},[e("a-select",{staticStyle:{width:"100%"},attrs:{"default-active-first-option":!1,"filter-option":!1,"not-found-content":null,options:t.driverList,"show-arrow":!1,allowClear:"",placeholder:"输入驱动","show-search":""},on:{change:t.handleDriverChange,search:t.handleDriverSearch},model:{value:t.nodeRef.data.other_options.driver,callback:function(e){t.$set(t.nodeRef.data.other_options,"driver",e)},expression:"nodeRef.data.other_options.driver"}})],1)],1)],1)],1)},ny=[];function oy(t){return oy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oy(t)}function iy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ay(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?iy(Object(r),!0).forEach((function(e){sy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sy(t,e,r){return e=cy(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cy(t){var e=ly(t,"string");return"symbol"==oy(e)?e:String(e)}function ly(t,e){if("object"!=oy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=oy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var uy={name:"TriggerNode",props:{node:Yh,nodeHandler:Object},data:function(){return{defaultContent:"请选择",editName:!1,driverList:null,driverTimeout:null}},setup:function(t){var e=t.node,r=t.nodeHandler,n=r.businessAdapter.eadApi,o=function(){return{eadCache:{workflow:{}},other_options:{driver:void 0}}};e.data||(e.data=o());var i=Object(N["ref"])(!1),a=function(t){},s=function(){return i.value=!0},c=function(){return i.value=!1},l={visibleDrawer:i,showDrawer:s,hideDrawer:c,change:a},u=Object(N["ref"])(!1),f=function(){return u.value=!1},h=function(){return u.value=!0},d={visiblePopover:u,showPopover:h,hidePopover:f},p=[{name:"条件分支",type:qh.JUDGE_WRAP,icon:{type:"apartment"},color:"rgb(21, 188, 131)"},{name:"并行分支",type:qh.PARALLEL_WRAP,icon:{type:"sliders"},color:"rgb(113, 141, 255)"}],v=function(t){r.wrapNode(e.code,{type:t})},y={nodes:p,wrapNode:v};return ay(ay(ay(ay({},l),d),y),{},{nodeRef:e,eadApi:n})},computed:{nodeContent:function(){var t,e,r=null,n=this.nodeRef.data.other_options;n.driver&&(r=null===(e=this.driverList.find((function(t){return t.value===n.driver})))||void 0===e?void 0:e.title);return r=null!==(t=r)&&void 0!==t?t:this.nodeRef.content,this.nodeRef.content=r,r}},methods:{getClass:function(){var t,e,r,n="";return this.node.error&&(n+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(t=t.runtimeData)||void 0===t?void 0:t.currentNodeCode)===this.node.code?n+=" ongoing":null!==(e=this.nodeHandler)&&void 0!==e&&null!==(e=e.runtimeData)&&void 0!==e&&e.caseNodes&&null!==(r=this.nodeHandler)&&void 0!==r&&null!==(r=r.runtimeData)&&void 0!==r&&null!==(r=r.caseNodes[this.node.code])&&void 0!==r&&r.status&&(n+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),n},loadCache:function(t){var e,r;this.driverList=null!==(e=null===(r=t.data)||void 0===r||null===(r=r.eadCache)||void 0===r||null===(r=r.workflow)||void 0===r?void 0:r.driverList)&&void 0!==e?e:null},handleDriverChange:function(t,e){},handleDriverSearch:function(t){var e=this;this.driverTimeout&&(clearTimeout(this.driverTimeout),this.driverTimeout=null);var r=function(){t&&e.eadApi.getDrivers(t).then((function(t){e.driverList=t.map((function(t){return{value:t.driver_id,label:t.driver_name,title:t.driver_desc}})),e.nodeRef.data.eadCache.workflow.driverList=e.driverList}))};this.driverTimeout=setTimeout(r,300)},close:function(){this.nodeHandler.deleteNode(this.node.code)},click:function(){this.nodeHandler.isPreview||(this.nodeRef.error=null,this.showDrawer())},more:function(){this.showPopover()},showEditName:function(){var t=this;this.editName=!0,Object(N["nextTick"])((function(){t.$refs.nameInput.focus()}))}},created:function(){this.loadCache(this.nodeRef)},mounted:function(){}},fy=uy,hy=(r("7e56"),qr(fy,ry,ny,!1,null,"7af4eb1a",null)),dy=hy.exports,py=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"node",class:t.getClass(),on:{click:t.click}},[e("div",{staticClass:"title"},[e("span",[e("a-icon",{attrs:{type:"clock-circle"}})],1),e("span",[t._v(" "+t._s(t.node.name))]),t.nodeHandler.isPreview?t._e():e("span",{staticClass:"title-right"},[e("a-icon",{staticClass:"close",attrs:{type:"close"},on:{click:function(e){return e.stopPropagation(),t.close.apply(null,arguments)}}})],1)]),e("div",{staticClass:"content"},[e("span",{staticClass:"content-main"},[e("span",{staticClass:"error-tooltip"},[e("a-tooltip",[e("template",{slot:"title"},[t._v(" "+t._s(t.node.error)+" ")]),e("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),t.nodeContent?e("span",{staticStyle:{"padding-left":"5px"}},[t._v(t._s(t.nodeContent))]):e("span",{staticStyle:{"padding-left":"5px",color:"rgb(164 164 164)"}},[t._v(t._s(t.defaultContent))])]),e("span",{staticClass:"content-right"},[t.nodeHandler.isPreview?t._e():e("a-popover",{attrs:{placement:"rightTop",trigger:"click"},scopedSlots:t._u([{key:"title",fn:function(){return[e("span",{staticStyle:{"font-size":"18px"}},[t._v("追加分支")])]},proxy:!0},{key:"content",fn:function(){return[e("div",{staticClass:"add-node-box"},t._l(t.nodes,(function(r,n){var o,i;return e("div",{key:n,staticClass:"add-node-item",on:{click:function(e){return t.wrapNode(r.type)}}},[e("div",{staticClass:"icon",style:"color:"+r.color+";"},[null!==(o=r.icon)&&void 0!==o&&o.component?e("a-icon",{attrs:{component:r.icon.component}}):t._e(),null!==(i=r.icon)&&void 0!==i&&i.type?e("a-icon",{attrs:{type:r.icon.type}}):t._e()],1),e("span",[t._v(t._s(r.name))])])})),0)]},proxy:!0}],null,!1,2863198520),model:{value:t.visiblePopover,callback:function(e){t.visiblePopover=e},expression:"visiblePopover"}},[e("a-icon",{attrs:{type:"plus"},on:{click:function(t){return t.stopPropagation(),function(){}.apply(null,arguments)}}})],1)],1)])]),e("a-drawer",{attrs:{"after-visible-change":t.change,closable:!0,title:t.node.name,visible:t.visibleDrawer,width:720,placement:"right"},on:{close:t.hideDrawer}},[e("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[e("a-col",{attrs:{span:4}},[t._v("延时方式")]),e("a-col",{attrs:{span:8}},[e("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:t.nodeRef.data.other_options.type,callback:function(e){t.$set(t.nodeRef.data.other_options,"type",e)},expression:"nodeRef.data.other_options.type"}},[e("a-radio-button",{attrs:{value:"relatively"}},[t._v(" 固定时长 ")]),e("a-radio-button",{attrs:{value:"absolute"}},[t._v(" 指定时间 ")])],1)],1)],1),"relatively"===t.nodeRef.data.other_options.type?e("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[e("a-col",{attrs:{span:4}},[t._v("固定时长")]),e("a-col",{attrs:{span:8}},[e("a-input-group",{attrs:{compact:""}},[e("a-input-number",{staticStyle:{width:"70%"},attrs:{max:999,min:1},on:{change:function(e){e||(t.nodeRef.data.other_options.time=1)}},model:{value:t.nodeRef.data.other_options.time,callback:function(e){t.$set(t.nodeRef.data.other_options,"time",e)},expression:"nodeRef.data.other_options.time"}}),e("a-select",{staticStyle:{width:"30%"},attrs:{options:[{value:"minute",label:"分钟"},{value:"hour",label:"小时"},{value:"day",label:"天"},{value:"week",label:"周"},{value:"month",label:"月"},{value:"year",label:"年"}],placeholder:"单位",width:"30%"},model:{value:t.nodeRef.data.other_options.unit,callback:function(e){t.$set(t.nodeRef.data.other_options,"unit",e)},expression:"nodeRef.data.other_options.unit"}})],1)],1)],1):t._e(),"absolute"===t.nodeRef.data.other_options.type?e("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[e("a-col",{attrs:{span:4}},[t._v("指定时间")]),e("a-col",{attrs:{span:8}},[e("a-date-picker",{attrs:{placeholder:"指定时间","show-time":"",valueFormat:"x"},model:{value:t.nodeRef.data.other_options.timestamp,callback:function(e){t.$set(t.nodeRef.data.other_options,"timestamp",e)},expression:"nodeRef.data.other_options.timestamp"}})],1)],1):t._e(),e("a-row",[e("a-col",{attrs:{span:4}},[t._v(" 驱动 ")]),e("a-col",{attrs:{span:20}},[e("a-select",{staticStyle:{width:"100%"},attrs:{"default-active-first-option":!1,"filter-option":!1,"not-found-content":null,options:t.driverList,"show-arrow":!1,allowClear:"",placeholder:"选择驱动","show-search":""},on:{search:t.handleDriverSearch},model:{value:t.nodeRef.data.other_options.driver,callback:function(e){t.$set(t.nodeRef.data.other_options,"driver",e)},expression:"nodeRef.data.other_options.driver"}})],1)],1)],1)],1)},vy=[],yy=r("c32d"),my=r.n(yy);function gy(t){return gy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gy(t)}function by(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function wy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?by(Object(r),!0).forEach((function(e){_y(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):by(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _y(t,e,r){return e=xy(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xy(t){var e=ky(t,"string");return"symbol"==gy(e)?e:String(e)}function ky(t,e){if("object"!=gy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=gy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Oy={name:"DelayNode",props:{node:Yh,nodeHandler:Object},data:function(){return{defaultContent:"请选择",driverList:null,driverTimeout:null}},setup:function(t){var e=t.node,r=t.nodeHandler,n=r.businessAdapter.eadApi,o=function(){return{eadCache:{workflow:{}},other_options:{type:"relatively",timestamp:null,time:1,unit:"minute",driver:void 0}}};e.data||(e.data=o());var i=Object(N["ref"])(!1),a=function(t){},s=function(){return i.value=!0},c=function(){return i.value=!1},l={visibleDrawer:i,showDrawer:s,hideDrawer:c,change:a},u=Object(N["ref"])(!1),f=function(){return u.value=!1},h=function(){return u.value=!0},d={visiblePopover:u,showPopover:h,hidePopover:f},p=[{name:"条件分支",type:qh.JUDGE_WRAP,icon:{type:"apartment"},color:"rgb(21, 188, 131)"},{name:"并行分支",type:qh.PARALLEL_WRAP,icon:{type:"sliders"},color:"rgb(113, 141, 255)"}],v=function(t){r.wrapNode(e.code,{type:t})},y={nodes:p,wrapNode:v};return wy(wy(wy(wy({},l),d),y),{},{nodeRef:e,eadApi:n})},computed:{nodeContent:function(){var t=null,e=this.nodeRef.data.other_options;if("relatively"===e.type){var r={minute:"分钟",hour:"小时",day:"天",week:"周",month:"月",year:"年"};t=e.time+r[e.unit]+"后执行"}if("absolute"===e.type){var n=e.timestamp;if(n){var o=my()(n,"x").format("YYYY-MM-DD HH:mm:ss");t=o+"执行"}}return e.driver&&(null===t?t="...":t+="..."),this.nodeRef.content=t,t}},methods:{getClass:function(){var t,e,r,n="";return this.node.error&&(n+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(t=t.runtimeData)||void 0===t?void 0:t.currentNodeCode)===this.node.code?n+=" ongoing":null!==(e=this.nodeHandler)&&void 0!==e&&null!==(e=e.runtimeData)&&void 0!==e&&e.caseNodes&&null!==(r=this.nodeHandler)&&void 0!==r&&null!==(r=r.runtimeData)&&void 0!==r&&null!==(r=r.caseNodes[this.node.code])&&void 0!==r&&r.status&&(n+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),n},loadCache:function(t){var e,r;this.driverList=null!==(e=null===(r=t.data)||void 0===r||null===(r=r.eadCache)||void 0===r||null===(r=r.workflow)||void 0===r?void 0:r.driverList)&&void 0!==e?e:null},handleDriverSearch:function(t){var e=this;this.driverTimeout&&(clearTimeout(this.driverTimeout),this.driverTimeout=null);var r=function(){t&&e.eadApi.getDrivers(t).then((function(t){e.driverList=t.map((function(t){return{value:t.driver_id,label:t.driver_name}})),e.nodeRef.data.eadCache.workflow.driverList=e.driverList}))};this.driverTimeout=setTimeout(r,300)},close:function(){this.nodeHandler.deleteNode(this.node.code)},click:function(){this.nodeHandler.isPreview||(this.nodeRef.error=null,this.showDrawer())},more:function(){this.showPopover()}},created:function(){this.loadCache(this.nodeRef)},mounted:function(){}},Ey=Oy,Sy=(r("4dd1"),qr(Ey,py,vy,!1,null,"7fbee4d6",null)),jy=Sy.exports,Ny={EndNode:ap,StartNode:Cp,ParallelNode:Mp,ParallelWrapNode:Hp,CheckNode:dv,JudgeNode:Cv,JudgeWrapNode:Ev,CCNode:ey,TriggerNode:dy,DelayNode:jy},Ly=function(){var t=this,e=t._self._c;return e("div",{staticClass:"add-node-btn-box"},[e("div",{staticClass:"add-node-btn"},[e("div",{staticClass:"add-node-popover-body"},[e("a-popover",{attrs:{placement:"rightTop",trigger:"click"},scopedSlots:t._u([{key:"title",fn:function(){return[e("span",{staticStyle:{"font-size":"18px"}},[t._v("添加流程节点")])]},proxy:!0},{key:"content",fn:function(){return[e("div",{staticClass:"add-node-box"},t._l(t.nodes,(function(r,n){var o,i;return e("div",{key:n,staticClass:"add-node-item",class:r.disabled?"disabled":"",on:{click:function(e){return t.addNode(r.type)}}},[e("div",{staticClass:"icon",style:"color:"+r.color+";"},[null!==(o=r.icon)&&void 0!==o&&o.component?e("a-icon",{attrs:{component:r.icon.component}}):t._e(),null!==(i=r.icon)&&void 0!==i&&i.type?e("a-icon",{attrs:{type:r.icon.type}}):t._e()],1),e("span",[t._v(t._s(r.name))])])})),0)]},proxy:!0}]),model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[t.nodeHandler.isPreview?t._e():e("a-button",{attrs:{icon:"plus",shape:"circle",type:"primary"}})],1)],1)])])},Py=[],Cy={name:"AddNode",props:{node:Yh,nodeHandler:Object},data:function(){return{visible:!1}},methods:{hide:function(){this.visible=!1}},setup:function(t){var e=t.node,r=t.nodeHandler,n={template:'\n <svg viewBox="0 0 1024 1024">\n <path fill=" currentColor" d="M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0zm544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"></path>\n </svg>\n '},o=[{name:"审批人",type:qh.CHECK,icon:{component:n},color:"rgb(255, 148, 62)"},{name:"抄送人",type:qh.CC,icon:{type:"mail"},color:"rgb(50, 150, 250)"},{name:"触发器",type:qh.TRIGGER,icon:{type:"control"},color:"rgb(53, 184, 129)"},{disabled:!0,name:"延迟等待",type:qh.DELAY,icon:{type:"clock-circle"},color:"rgb(219,86,69)"},{name:"条件分支",type:qh.JUDGE_WRAP,icon:{type:"apartment"},color:"rgb(21, 188, 131)"},{name:"并行分支",type:qh.PARALLEL_WRAP,icon:{type:"sliders"},color:"rgb(113, 141, 255)"}],i=function(t){o.find((function(e){return e.type===t})).disabled||(r.insertNode(e.code,{type:t}),this.visible=!1)};return{nodes:o,addNode:i}}},Ay=Cy,Ty=r("3593"),Ry=r.n(Ty),Dy=qr(Ay,Ly,Py,!1,null,"14eb0ec0",null);"function"===typeof Ry.a&&Ry()(Dy);var Iy=Dy.exports;function My(t){return My="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},My(t)}function qy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function By(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qy(Object(r),!0).forEach((function(e){Fy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Fy(t,e,r){return e=$y(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $y(t){var e=Vy(t,"string");return"symbol"==My(e)?e:String(e)}function Vy(t,e){if("object"!=My(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=My(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Hy={name:"NodeWrap",computed:{NodeType:function(){return qh}},components:By({AddNode:Iy},Ny),props:{nodeConfig:Object,nodeHandler:Object},setup:function(t){var e=t.nodeConfig,r=Yh.parse(e.node),n=r.type,o=qh.getNodeType(n),i=o.mode,a=o.component,s={};return[qh.START].forEach((function(t){return s[t]="start-node-box"})),[qh.CHECK,qh.CC,qh.PARALLEL,qh.JUDGE,qh.TRIGGER,qh.DELAY].forEach((function(t){return s[t]="node-box"})),[qh.PARALLEL_WRAP,qh.JUDGE_WRAP].forEach((function(t){return s[t]="wrap-box"})),{mode:i,type:n,component:a,node:Object(N["ref"])(r),uiStyle:s}}},Uy=Hy,Gy=qr(Uy,Qd,tp,!1,null,"63654330",null),zy=Gy.exports;function Ky(t){return Ky="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ky(t)}function Yy(t,e,r){return e=tm(e),Wy(t,Jy()?Reflect.construct(e,r||[],tm(t).constructor):e.apply(t,r))}function Wy(t,e){if(e&&("object"===Ky(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Zy(t)}function Zy(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Jy(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Jy=function(){return!!t})()}function Xy(){return Xy="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=Qy(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},Xy.apply(this,arguments)}function Qy(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=tm(t),null===t)break;return t}function tm(t){return tm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tm(t)}function em(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rm(t,e)}function rm(t,e){return rm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rm(t,e)}function nm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function om(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,am(n.key),n)}}function im(t,e,r){return e&&om(t.prototype,e),r&&om(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function am(t){var e=sm(t,"string");return"symbol"==Ky(e)?e:String(e)}function sm(t,e){if("object"!=Ky(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ky(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var cm=function(){function t(){nm(this,t)}return im(t,[{key:"getNodeData",value:function(){throw new Error("【BusinessAdapter】 Not supported, Please override the method")}},{key:"verifyNodeData",value:function(t){throw new Error("【BusinessAdapter】 Not supported, Please override the method")}},{key:"verifyNode",value:function(t){throw new Error("【BusinessAdapter】 Not supported, Please override the method")}},{key:"saveNodeData",value:function(t){throw new Error("【BusinessAdapter】 Not supported, Please override the method")}},{key:"saveNode",value:function(t){throw new Error("【BusinessAdapter】 Not supported, Please override the method")}}],[{key:"getBusinessAdapter",value:function(){var e=function(t){function e(){return nm(this,e),Yy(this,e,arguments)}return em(e,t),im(e,[{key:"getNodeData",value:function(t){return[]}},{key:"verifyNodeData",value:function(t){Xy(tm(e.prototype),"verifyNodeData",this).call(this,t)}},{key:"verifyNode",value:function(t){Xy(tm(e.prototype),"verifyNode",this).call(this,t)}},{key:"saveNode",value:function(t){Xy(tm(e.prototype),"saveNode",this).call(this,t)}},{key:"saveNodeData",value:function(t){Xy(tm(e.prototype),"saveNodeData",this).call(this,t)}}],[{key:"getBusinessAdapter",value:function(){return new e}}]),e}(t);return e.getBusinessAdapter()}}]),t}(),lm=cm,um={name:"NodeContainer",components:{NodeWrap:zy},props:{defaultZoomScale:Number,hideZoom:Boolean,nodeData:Array,isPreview:Boolean,runtimeData:Object,businessAdapter:lm},data:function(){return{zoomScale:100,middle:0}},setup:function(t){var e=new Xd(t.nodeData,t.businessAdapter),r=Object(N["ref"])(!1);return{nodeHandler:e,done:r}},methods:{zoom:function(t){this.zoomScale+=t},toMiddle:function(){var t=document.getElementById("workflow-box");t.scrollLeft=this.middle}},mounted:function(){var t=this;this.nodeHandler.setRefresh((function(){})),this.defaultZoomScale&&(this.zoomScale=this.defaultZoomScale),this.isPreview&&this.nodeHandler.setPreview(!0),this.runtimeData&&this.nodeHandler.setRuntime(this.runtimeData),this.done=!0,this.$nextTick((function(){var e=t.$refs["workflow-box"],r=e.scrollWidth;e.scrollLeft=t.middle=(r-e.clientWidth)/2,t.$emit("nodeHandlerReady",t.nodeHandler)}))}},fm=um,hm=(r("c92e"),qr(fm,wh,_h,!1,null,null,null)),dm=hm.exports;function pm(t){return pm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pm(t)}function vm(t){return bm(t)||gm(t)||mm(t)||ym()}function ym(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function mm(t,e){if(t){if("string"===typeof t)return wm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wm(t,e):void 0}}function gm(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function bm(t){if(Array.isArray(t))return wm(t)}function wm(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _m(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_m=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==pm(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(pm(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function xm(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function km(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){xm(i,n,o,a,s,"next",t)}function s(t){xm(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Om(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Em(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Mm(n.key),n)}}function Sm(t,e,r){return e&&Em(t.prototype,e),r&&Em(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function jm(t,e,r){return e=Tm(e),Nm(t,Lm()?Reflect.construct(e,r||[],Tm(t).constructor):e.apply(t,r))}function Nm(t,e){if(e&&("object"===pm(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Pm(t)}function Lm(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Lm=function(){return!!t})()}function Pm(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Cm(){return Cm="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=Am(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},Cm.apply(this,arguments)}function Am(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=Tm(t),null===t)break;return t}function Tm(t){return Tm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Tm(t)}function Rm(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Dm(t,e)}function Dm(t,e){return Dm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Dm(t,e)}function Im(t,e,r){return e=Mm(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mm(t){var e=qm(t,"string");return"symbol"==pm(e)?e:String(e)}function qm(t,e){if("object"!=pm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=pm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Bm(t,e,r){Fm(t,e),e.set(t,r)}function Fm(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function $m(t,e){var r=Um(t,e,"get");return Vm(t,r)}function Vm(t,e){return e.get?e.get.call(t):e.value}function Hm(t,e,r){var n=Um(t,e,"set");return Gm(t,n,r),r}function Um(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function Gm(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}var zm=new WeakMap,Km=new WeakMap,Ym=function(t){function e(){var t;Om(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=jm(this,e,[].concat(n)),Bm(Pm(t),zm,{writable:!0,value:void 0}),Im(Pm(t),"nodeHandler",void 0),Im(Pm(t),"eadApi",void 0),Bm(Pm(t),Km,{writable:!0,value:void 0}),t}return Rm(e,t),Sm(e,[{key:"init",value:function(){var t=km(_m().mark((function t(){return _m().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.getActorData();case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getNodeData",value:function(){var t;Hm(this,zm,this.eadApi.getValues().model_id);var e=this.eadApi.getValues().node_json,r=e?null===(t=JSON.parse(e))||void 0===t?void 0:t.node:null;return r?vm(Object.values(r)):[]}},{key:"getModel",value:function(){return this.eadApi.getValues()}},{key:"verifyNodeData",value:function(t){var e=this,r=!1;return t.forEach((function(t){if(t.error="",[qh.TRIGGER].includes(t.type)&&(t.data.other_options.driver||(t.error+="触发器必须要设置驱动;",r=!0)),[qh.JUDGE].includes(t.type)&&(t.content||(t.error+="条件分支必须要设置描述;",r=!0)),qh.JUDGE.includes(t.type)){var n,o=e.nodeHandler.getWrapNode(t.code);"inclusive"===(null===(n=o.data)||void 0===n?void 0:n.gateway_type)&&t.data.isDefault&&(t.error+="条件节点策略为[包含],不允许设置默认分支;",r=!0)}if([qh.JUDGE].includes(t.type)&&(t.data.isDefault||t.data.condition||(t.error+="条件分支非默认的必须要设置表达式;",r=!0)),[qh.JUDGE].includes(t.type)&&t.data.isDefault){var i=e.nodeHandler.getWrapNode(t.code),a=i.childNodeCodes.findIndex((function(e){return e===t.code}));i.childNodeCodes.map((function(t){return e.nodeHandler.getNode(t).data.isDefault})).filter((function(t){return t})).length>1&&(t.error+="条件分支中的默认只能设置一个;",r=!0),i.childNodeCodes.length-1!==a&&(t.error+="条件分支中的默认优先级必须在最后面;",r=!0)}if([qh.DELAY].includes(t.type)&&"absolute"===t.data.other_options.type&&(t.data.other_options.timestamp||(t.error+="延迟等待类型为指定时间时,必须设置时间;",r=!0)),[qh.START,qh.CHECK,qh.CC].includes(t.type)&&"custom"===t.data.eadCache.workflow.optionViewType&&(t.data.option_view_id||(t.error+="表单视图为自主选择时,必须指定表单视图;",r=!0)),[qh.CHECK,qh.CC].includes(t.type)&&"expression"===t.data.actor_config.type){t.data.actor_config.expression.length||(t.error+="执行人策略为表达式时,表达式必须有值;",r=!0);var s=t.data.actor_config.expression.filter((function(t){return"uid"===t.type?!!t.user.length:"org"===t.type?!!t.orgId||!!t.roleId||!!t.groupId:void 0})).length;s<1&&(t.error+="执行人策略为表达式时,至少要有一条有意义的表达式;",r=!0)}t.type===qh.CHECK&&("assign"===t.data.back_type&&(t.data.back_node_id||(t.error+="驳回类型为指定退回节点时 必须指定驳回节点;",r=!0)),"custom"===t.data.back_type&&(t.data.custom_back_nodes&&t.data.custom_back_nodes.length||(t.error+="驳回类型为自主选择回退节点时,必须指定可自选的驳回节点编码;",r=!0))),t.name.endsWith("*")&&(t.error+="是否完善了这个节点?是的话请删除*",r=!0)})),!r}},{key:"saveNode",value:function(t){Cm(Tm(e.prototype),"saveNode",this).call(this,t)}},{key:"saveNodeData",value:function(t){Cm(Tm(e.prototype),"saveNodeData",this).call(this,t)}},{key:"getActorData",value:function(){var t=km(_m().mark((function t(){var e,r,n,o,i,a,s,c,l,u,f,h;return _m().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(h=function(t){if(t.length){var e=[];t.forEach((function(t){var r=c.get(t.key);t.children=r?r.map((function(t){var r={title:t.org_name,value:t.org_id,key:t.org_id,children:[]};return e.push(r),r})):[]})),h(e)}},!$m(this,Km)){t.next=3;break}return t.abrupt("return",$m(this,Km));case 3:if(null===(e=this.nodeHandler)||void 0===e||!e.isPreview){t.next=5;break}return t.abrupt("return",{viewAttrs:[],orgMap:{},orgData:[],roles:[],users:[]});case 5:return t.next=7,Promise.all([this.eadApi.getViewAttrs(this.eadApi.getValues().option_view_id),this.eadApi.getOrgs(),this.eadApi.getRoles(this.eadApi.getValues().app_key),this.eadApi.getUsers()]);case 7:return r=t.sent,n=r[0],o=r[1],i=r[2].map((function(t){return{value:t.role_id,label:t.role_name}})),a=r[3].map((function(t){return{value:t.uid,label:t.name,title:t.name,key:t.name}})),s=new Map,c=new Map,o.forEach((function(t){t.children=[],s.set(t.org_id,t),t.parent_org_id&&(c.has(t.parent_org_id)||c.set(t.parent_org_id,[]),c.get(t.parent_org_id).push(t))})),l=o.filter((function(t){return!t.parent_org_id})),u=l.map((function(t){return{title:t.org_name,value:t.org_id,key:t.org_id,children:[]}})),f=u,h(u),f.unshift({title:"发起人所在部门",value:"${sponsor_org}",key:"${sponsor_org}",children:[]}),s.set("${sponsor_org}",{org_name:"发起人所在部门",org_id:"${sponsor_org}",parent_org_id:""}),a.unshift({value:"${sponsor}",label:"发起人(sponsor)",title:"发起人(sponsor)",key:"发起人(sponsor)"}),Hm(this,Km,{viewAttrs:n,orgMap:s,orgData:f,roles:i,users:a}),t.abrupt("return",$m(this,Km));case 24:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getAvailableBackStep",value:function(t){var e=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=[];if(n){var i=this.nodeHandler.getNode(t);o.push(i);var a=i.isWrapNode();if(a){var s=[];i.childNodeCodes.forEach((function(t){var r=e.nodeHandler.getNextNodeStreamLast(t);r&&s.push.apply(s,vm(e.getAvailableBackStep(r.code,!1,!0)))})),o.push.apply(o,s)}}var c=t;while(c){var l;if(this.nodeHandler.handlePreNodeStream(c,(function(t){o.push(t);var r=t.isWrapNode();if(r){var n=[];t.childNodeCodes.forEach((function(t){var r=e.nodeHandler.getNextNodeStreamLast(t);r&&n.push.apply(n,vm(e.getAvailableBackStep(r.code,!1,!0)))})),o.push.apply(o,n)}})),r)c=null===(l=this.nodeHandler.getWrapNode(c))||void 0===l?void 0:l.code;else c=null}return o.filter((function(t){return[qh.START,qh.CHECK].includes(t.type)}))}}],[{key:"getBusinessAdapter",value:function(){return new e}}]),e}(lm),Wm=Ym;function Zm(t){return Zm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zm(t)}function Jm(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Jm=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Zm(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Zm(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Xm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Xm(Object(r),!0).forEach((function(e){tg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tg(t,e,r){return e=ag(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eg(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function rg(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){eg(i,n,o,a,s,"next",t)}function s(t){eg(i,n,o,a,s,"throw",t)}a(void 0)}))}}function ng(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function og(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ag(n.key),n)}}function ig(t,e,r){return e&&og(t.prototype,e),r&&og(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ag(t){var e=sg(t,"string");return"symbol"==Zm(e)?e:String(e)}function sg(t,e){if("object"!=Zm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Zm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function cg(t,e,r){lg(t,e),e.set(t,r)}function lg(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ug(t,e){var r=dg(t,e,"get");return fg(t,r)}function fg(t,e){return e.get?e.get.call(t):e.value}function hg(t,e,r){var n=dg(t,e,"set");return pg(t,n,r),r}function dg(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function pg(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}var vg=new WeakMap,yg=new WeakMap,mg=function(){function t(e){ng(this,t),cg(this,vg,{writable:!0,value:void 0}),cg(this,yg,{writable:!0,value:void 0}),hg(this,vg,e),hg(this,yg,window.location.origin+"/ead")}return ig(t,[{key:"getComponent",value:function(){return ug(this,vg)}},{key:"setComponent",value:function(t){hg(this,vg,t)}},{key:"getCurrentViewSchema",value:function(){return ug(this,vg).$attrs.schema}},{key:"getCurrentUserName",value:function(){return ug(this,vg).$store.state.user.name}},{key:"getModelIdName",value:function(){return ug(this,vg).$attrs.schema.model.idName}},{key:"runCurrentAction",value:function(){var t=rg(Jm().mark((function t(){var e,r,n,o,i,a,s,c;return Jm().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=ug(this,vg).action,r=ug(this,vg).$attrs.schema.url,n=e.key,o=e.method,t.next=7,ug(this,vg).$api[o.toLowerCase()]("/api/".concat(r).concat(n?"/".concat(n):""),Qm({},ug(this,vg).actionModel));case 7:return i=t.sent,a=i.data,t.abrupt("return",a);case 12:return t.prev=12,t.t0=t["catch"](0),s=t.t0.response.data,c=s&&s.content||"系统错误请与管理员联系。",ug(this,vg).$message.error(c),t.abrupt("return",null);case 18:return t.prev=18,t.finish(18);case 20:case"end":return t.stop()}}),t,this,[[0,12,18,20]])})));function e(){return t.apply(this,arguments)}return e}()},{key:"getViewAttrs",value:function(){var t=rg(Jm().mark((function t(e){var r,n,o,i,a;return Jm().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ug(this,vg).$api.get("".concat(ug(this,yg),"/api/flowdir-viewattr?view_id=").concat(e));case 3:return r=t.sent,n=r.data.collection,o=void 0===n?[]:n,t.abrupt("return",o);case 9:t.prev=9,t.t0=t["catch"](0),i=t.t0.response.data,a=i&&i.content||"系统错误请与管理员联系。",this.$message.error(a);case 14:return t.prev=14,t.finish(14);case 16:case"end":return t.stop()}}),t,this,[[0,9,14,16]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getUsers",value:function(){var t=rg(Jm().mark((function t(){var e,r,n,o,i;return Jm().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ug(this,vg).$api.get("".concat(ug(this,yg),"/api/flowdir-user"));case 3:return e=t.sent,r=e.data.collection,n=void 0===r?[]:r,t.abrupt("return",n);case 9:t.prev=9,t.t0=t["catch"](0),o=t.t0.response.data,i=o&&o.content||"系统错误请与管理员联系。",this.$message.error(i);case 14:return t.prev=14,t.finish(14);case 16:case"end":return t.stop()}}),t,this,[[0,9,14,16]])})));function e(){return t.apply(this,arguments)}return e}()},{key:"getRoles",value:function(){var t=rg(Jm().mark((function t(e){var r,n,o,i,a;return Jm().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ug(this,vg).$api.get("".concat(ug(this,yg),"/api/flowdir-role?app_key=")+e);case 3:return r=t.sent,n=r.data.collection,o=void 0===n?[]:n,t.abrupt("return",o);case 9:t.prev=9,t.t0=t["catch"](0),i=t.t0.response.data,a=i&&i.content||"系统错误请与管理员联系。",this.$message.error(a);case 14:return t.prev=14,t.finish(14);case 16:case"end":return t.stop()}}),t,this,[[0,9,14,16]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getOrgs",value:function(){var t=rg(Jm().mark((function t(){var e,r,n,o,i;return Jm().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ug(this,vg).$api.get("".concat(ug(this,yg),"/api/flowdir-org"));case 3:return e=t.sent,r=e.data.collection,n=void 0===r?[]:r,t.abrupt("return",n);case 9:t.prev=9,t.t0=t["catch"](0),o=t.t0.response.data,i=o&&o.content||"系统错误请与管理员联系。",this.$message.error(i);case 14:return t.prev=14,t.finish(14);case 16:case"end":return t.stop()}}),t,this,[[0,9,14,16]])})));function e(){return t.apply(this,arguments)}return e}()},{key:"getDataset",value:function(){var t=rg(Jm().mark((function t(e,r){var n,o,i,a,s;return Jm().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ug(this,vg).$api.get("".concat(ug(this,yg),"/dataset/").concat(e),{params:Qm({},r)});case 3:return n=t.sent,o=n.data.data,i=void 0===o?[]:o,t.abrupt("return",i);case 9:t.prev=9,t.t0=t["catch"](0),a=t.t0.response.data,s=a&&a.content||"系统错误请与管理员联系。",this.$message.error(s);case 14:return t.prev=14,t.finish(14);case 16:case"end":return t.stop()}}),t,this,[[0,9,14,16]])})));function e(e,r){return t.apply(this,arguments)}return e}()},{key:"getDatasetApi",value:function(){var t=rg(Jm().mark((function t(e,r){var n,o,i,a,s;return Jm().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ug(this,vg).$api.get("".concat(ug(this,yg),"/api/").concat(e),{params:Qm({},r)});case 3:return n=t.sent,o=n.data.collection,i=void 0===o?[]:o,t.abrupt("return",i);case 9:t.prev=9,t.t0=t["catch"](0),a=t.t0.response.data,s=a&&a.content||"系统错误请与管理员联系。",this.$message.error(s);case 14:return t.prev=14,t.finish(14);case 16:case"end":return t.stop()}}),t,this,[[0,9,14,16]])})));function e(e,r){return t.apply(this,arguments)}return e}()},{key:"getViews",value:function(){var t=rg(Jm().mark((function t(e){var r,n,o,i,a;return Jm().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ug(this,vg).$api.get("".concat(ug(this,yg),"/api/flowdir-view?name=")+e);case 3:return r=t.sent,n=r.data.collection,o=void 0===n?[]:n,t.abrupt("return",o);case 9:t.prev=9,t.t0=t["catch"](0),i=t.t0.response.data,a=i&&i.content||"系统错误请与管理员联系。",this.$message.error(a);case 14:return t.prev=14,t.finish(14);case 16:case"end":return t.stop()}}),t,this,[[0,9,14,16]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getDrivers",value:function(){var t=rg(Jm().mark((function t(e){var r,n,o,i,a;return Jm().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ug(this,vg).$api.get("".concat(ug(this,yg),"/api/flowdir-driver?name=")+e);case 3:return r=t.sent,n=r.data.collection,o=void 0===n?[]:n,t.abrupt("return",o);case 9:t.prev=9,t.t0=t["catch"](0),i=t.t0.response.data,a=i&&i.content||"系统错误请与管理员联系。",this.$message.error(a);case 14:return t.prev=14,t.finish(14);case 16:case"end":return t.stop()}}),t,this,[[0,9,14,16]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getSelections",value:function(){return ug(this,vg).$attrs.selections}},{key:"getUrl",value:function(){return ug(this,vg).$attrs.schema.url}},{key:"getValues",value:function(){return ug(this,vg).values}},{key:"getModelValues",value:function(){return ug(this,vg).actionModel}},{key:"getCurrentAction",value:function(){return ug(this,vg).action}}]),t}(),gg=mg,bg={name:"workflow-designer",mixins:[hn],components:{NodeContainer:dm},setup:function(){var t=new gg,e=Wm.getBusinessAdapter();e.eadApi=t;var r=[],n=Object(N["ref"])(null);return{nodeData:r,businessAdapter:e,eadApi:t,oldHandleCommit:n}},data:function(){return{init:!1,loading:!1,isError:!1,errorInfo:""}},computed:{nodeHandler:function(){return this.businessAdapter.nodeHandler}},methods:{validNodeData:function(){return this.nodeHandler.verify()},handleCommit:function(){if(this.validNodeData()){var t=this.nodeHandler.map(),e={};Object.keys(t).forEach((function(r){e[r]=Object.fromEntries(t[r])})),this.actionModel.workflow_data=e,this.$emit("commit",this.actionModel)}else this.$message.error("校验未通过")}},mounted:function(){var t=this;this.eadApi.setComponent(this),this.nodeData=this.businessAdapter.getNodeData(),this.businessAdapter.init().then((function(){t.init=!0})).catch((function(e){t.isError=!0,t.init=!0,t.errorInfo=JSON.stringify(e),t.$message.error("系统错误,请联系管理员")}))}},wg=bg,_g=qr(wg,gh,bh,!1,null,"a2ad5ee6",null),xg=_g.exports,kg=function(){var t,e,r=this,n=this,o=n._self._c;return o("a-form-model",{ref:"form",staticStyle:{"min-height":"400px"},attrs:{model:n.actionModel,rules:n.rules}},[o("a-spin",{attrs:{spinning:n.loading}},[o("a-tabs",{on:{change:function(){return r.$refs.nodeContainer.toMiddle()}},model:{value:n.paneKey,callback:function(t){n.paneKey=t},expression:"paneKey"}},[n.paneSet.has("1")&&this.currentNode?o("a-tab-pane",{key:"1",attrs:{tab:"操作"}},[n.OPERATE.CHECK===n.workflowReq.operate?o("a-radio-group",{staticStyle:{"margin-bottom":"10px"},on:{change:function(t){return n.loadTodo()}},model:{value:n.workflowReq.page_operate.action,callback:function(t){n.$set(n.workflowReq.page_operate,"action",t)},expression:"workflowReq.page_operate.action"}},[o("a-radio-button",{attrs:{value:n.CHECK_ACTION.PASS}},[n._v(" "+n._s(null!==(t=n.currentNode.data.other_options)&&void 0!==t&&null!==(t=t.custom_action)&&void 0!==t&&t.pass?n.currentNode.data.other_options.custom_action.pass:"审批通过")+" ")]),n.runtimeData.pageOperate.allowBack?o("a-radio-button",{attrs:{value:n.CHECK_ACTION.BACK}},[n._v(" "+n._s(null!==(e=n.currentNode.data.other_options)&&void 0!==e&&null!==(e=e.custom_action)&&void 0!==e&&e.pass?n.currentNode.data.other_options.custom_action.back:" 审批退回")+" ")]):n._e(),n.runtimeData.pageOperate.allowReassign?o("a-radio-button",{attrs:{value:n.CHECK_ACTION.REASSIGN}},[n._v(" 转办 ")]):n._e(),n.runtimeData.pageOperate.allowInvolve?o("a-radio-button",{attrs:{value:n.CHECK_ACTION.INVOLVE}},[n._v(" 加签 ")]):n._e(),n.runtimeData.pageOperate.allowEnd?o("a-radio-button",{attrs:{value:n.CHECK_ACTION.END}},[n._v(" 结束 ")]):n._e()],1):n._e(),(n.workflowReq.operate===n.OPERATE.START||n.workflowReq.operate===n.OPERATE.CHECK&&[n.CHECK_ACTION.PASS].includes(n.workflowReq.page_operate.action))&&n.runtimeData.currentNodeFormItem&&n.runtimeData.currentNodeFormItem.length?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[n._l(n.runtimeData.currentNodeFormItem,(function(t){return[t?o("Item",{key:t.name,attrs:{formModel:n.actionModel,params:{},prop:t.name,required:t.required,schema:t},on:{change:function(e){return n.handleItemChange(e,t)}},model:{value:n.actionModel[t.name],callback:function(e){n.$set(n.actionModel,t.name,e)},expression:"actionModel[attr.name]"}}):n._e()]}))],2)],1):n._e(),n.OPERATE.CHECK===n.workflowReq.operate?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-form-model-item",{attrs:{label:[n.CHECK_ACTION.REASSIGN,n.CHECK_ACTION.INVOLVE,n.CHECK_ACTION.END].includes(n.workflowReq.page_operate.action)?"备注":"审批意见",prop:"xxx",size:"small"}},[o("a-textarea",{attrs:{"auto-size":{minRows:4,maxRows:6},placeholder:"请输入".concat([n.CHECK_ACTION.REASSIGN,n.CHECK_ACTION.INVOLVE,n.CHECK_ACTION.END].includes(n.workflowReq.page_operate.action)?"备注":"审批或退回意见")},model:{value:n.workflowReq.page_operate.operate_content,callback:function(t){n.$set(n.workflowReq.page_operate,"operate_content",t)},expression:"workflowReq.page_operate.operate_content"}})],1)],1):n._e(),n.isCustomBack&&n.OPERATE.CHECK===n.workflowReq.operate&&n.workflowReq.page_operate.action===n.CHECK_ACTION.BACK?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-form-model-item",{attrs:{label:"退回步骤",prop:"xxx",size:"small"}},[o("a-select",{model:{value:n.workflowReq.page_operate.custom_back_node_code,callback:function(t){n.$set(n.workflowReq.page_operate,"custom_back_node_code",t)},expression:"workflowReq.page_operate.custom_back_node_code"}},n._l(n.currentNode.data.custom_back_nodes,(function(t){return o("a-select-option",{key:t,attrs:{value:t}},[n._v(" "+n._s(n.nodeHandler.getNode(t).name)+" ")])})),1)],1)],1):n._e(),n.runtimeData.todos&&n.runtimeData.todos.length&&(n.OPERATE.START===n.workflowReq.operate||n.OPERATE.CHECK===n.workflowReq.operate&&(n.workflowReq.page_operate.action===n.CHECK_ACTION.PASS||n.workflowReq.page_operate.action===n.CHECK_ACTION.BACK&&"bpmn"===n.currentNode.data.back_type))?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-card",{attrs:{size:"small",title:"后续步骤"}},[n.runtimeData.todos&&n.runtimeData.todos.length?o("a-tabs",{attrs:{"tab-position":"top"},model:{value:n.currentTodo,callback:function(t){n.currentTodo=t},expression:"currentTodo"}},n._l(n.runtimeData.todos,(function(t){var e,r,i,a,s,c,l,u;return o("a-tab-pane",{key:t.node_code,attrs:{disabled:!n.availableTodo(t),tab:null!==(e=null===(r=n.nodeHandler.getNode(t.node_code))||void 0===r?void 0:r.name)&&void 0!==e?e:"-"}},[n.availableTodo(t)?o("div",{staticClass:"actors"},[o("div",{staticStyle:{width:"60%"}},[o("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(e){return n.filterTodoItemActors(e,t)}}}),o("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":t.actorsf.value,pagination:!1,"row-selection":null!==(i=t.optional)&&void 0!==i&&i.enable?{type:t.optional.multi?"checkbox":"radio",selectedRowKeys:t.selected,onChange:function(e){t.selected=e}}:null,rowKey:"uid",size:"middle"}})],1),o("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{title:(null!==(a={queue:"依次",orsign:"或签",sign:"会签"}[null!==(s=t.optional)&&void 0!==s&&s.enable&&null!==(c=t.optional)&&void 0!==c&&c.multi||(null===(l=t.optional)||void 0===l||!l.enable)&&t.actorsf.value.length>=2?null===t||void 0===t?void 0:t.actor_check_mode:""])&&void 0!==a?a:"")+"执行人列表",size:"small"}},[o("draggable",{attrs:{disabled:!("queue"===(null===t||void 0===t?void 0:t.actor_check_mode)&&null!==(u=t.optional)&&void 0!==u&&u.enable),animation:"100",chosenClass:"chosen"},model:{value:t.selected,callback:function(e){n.$set(t,"selected",e)},expression:"item.selected"}},[o("transition-group",{attrs:{name:"flip-list",type:"transition"}},[t.selected&&null!==t&&void 0!==t&&t.selected.length?n._l(t.selected,(function(t){return o("div",{key:t,staticClass:"item"},[n._v(" "+n._s(n.userCache[t])+" ")])})):n._e()],2)],1)],1)],1):n._e()])})),1):n._e()],1)],1):n._e(),n.OPERATE.CHECK===n.workflowReq.operate&&n.workflowReq.page_operate.action===n.CHECK_ACTION.REASSIGN?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-card",{attrs:{size:"small",title:"转办执行人"}},[o("div",{staticClass:"actors"},[o("div",{staticStyle:{width:"60%"}},[n.runtimeData.reassign.actors?[o("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(t){return n.reassignUserFilter=t}}}),o("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":n.filterActors(n.reassignUserFilter,n.runtimeData.reassign.actors),pagination:!1,"row-selection":{type:"radio",selectedRowKeys:n.runtimeData.reassign.selected,onChange:function(t){n.runtimeData.reassign.selected=t}},rowKey:"uid",size:"middle"}})]:[o("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(){n.reassignUserPagination.current=1,n.handleTableChangeReassignUser(n.reassignUserPagination)}},model:{value:n.reassignUserFilter,callback:function(t){n.reassignUserFilter=t},expression:"reassignUserFilter"}}),o("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":n.reassignUserData,loading:n.loadingReassignUser,pagination:n.reassignUserPagination,"row-key":function(t){return t.uid},"row-selection":{type:"radio",selectedRowKeys:n.runtimeData.reassign.selected,onChange:function(t){r.reassignUserData.filter((function(e){return t.includes(e.uid)})).forEach((function(t){return n.userCache[t.uid]="".concat(t.name,"(").concat(t.org_name,")")})),n.runtimeData.reassign.selected=t}}},on:{change:n.handleTableChangeReassignUser}})]],2),o("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{size:"small",title:"转办人"}},[o("draggable",{attrs:{disabled:!0,chosenClass:"chosen"},model:{value:n.runtimeData.reassign.selected,callback:function(t){n.$set(n.runtimeData.reassign,"selected",t)},expression:"runtimeData.reassign.selected"}},[o("transition-group",n._l(n.runtimeData.reassign.selected,(function(t){return o("div",{key:t,staticClass:"item"},[n._v(" "+n._s(n.userCache[t])+" ")])})),0)],1)],1)],1)])],1):n._e(),n.OPERATE.CHECK===n.workflowReq.operate&&n.workflowReq.page_operate.action===n.CHECK_ACTION.INVOLVE?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-card",{attrs:{size:"small",title:"加签执行人"}},[o("div",{staticClass:"actors"},[o("div",{staticStyle:{width:"60%"}},[n.runtimeData.involve.actors?[o("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(t){return n.involveUserFilter=t}}}),o("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":n.filterActors(n.involveUserFilter,n.runtimeData.involve.actors),pagination:!1,"row-selection":{type:"radio",selectedRowKeys:n.runtimeData.involve.selected,onChange:function(t){n.runtimeData.involve.selected=t}},rowKey:"uid",size:"middle"}})]:[o("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(){n.involveUserPagination.current=1,n.handleTableChangeInvolveUser(n.involveUserPagination)}},model:{value:n.involveUserFilter,callback:function(t){n.involveUserFilter=t},expression:"involveUserFilter"}}),o("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":n.involveUserData,loading:n.loadingInvolveUser,pagination:n.involveUserPagination,"row-key":function(t){return t.uid},"row-selection":{type:"radio",selectedRowKeys:n.runtimeData.involve.selected,onChange:function(t){r.involveUserData.filter((function(e){return t.includes(e.uid)})).forEach((function(t){return n.userCache[t.uid]="".concat(t.name,"(").concat(t.org_name,")")})),n.runtimeData.involve.selected=t}}},on:{change:n.handleTableChangeInvolveUser}})]],2),o("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{size:"small",title:"加签人"}},[o("draggable",{attrs:{disabled:!0,chosenClass:"chosen"},model:{value:n.runtimeData.involve.selected,callback:function(t){n.$set(n.runtimeData.involve,"selected",t)},expression:"runtimeData.involve.selected"}},[o("transition-group",n._l(n.runtimeData.involve.selected,(function(t){return o("div",{key:t,staticClass:"item"},[n._v(" "+n._s(n.userCache[t])+" ")])})),0)],1)],1)],1)])],1):n._e()],1):n._e(),n.paneSet.has("2")?o("a-tab-pane",{key:"2",attrs:{"force-render":"",tab:"审批记录"}},[o("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[o("a-list",{attrs:{dataSource:this.runtimeData.logList},scopedSlots:n._u([{key:"renderItem",fn:function(t){return o("a-list-item",{},[o("a-list-item-meta",[o("strong",{attrs:{slot:"title"},slot:"title"},[n._v(" "+n._s(t.node_name)+" ")]),n.$store.state.app.icon?o("a-avatar",{attrs:{slot:"avatar",src:n.$store.state.app.icon},slot:"avatar"}):o("a-avatar",{attrs:{slot:"avatar",icon:"user"},slot:"avatar"}),o("a-space",{attrs:{slot:"description",direction:"vertical"},slot:"description"},[o("div",[n._v(n._s(t.operate_desc))]),t.operate_content?o("div",[n._v(" 审批意见:"+n._s(t.operate_content)+" ")]):n._e(),o("a-space",[o("span",{staticStyle:{color:"#18274a"}},[o("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"clock-circle-o"}}),n._v(" "+n._s(n.moment(t.create_time).format("YYYY-MM-DD HH:mm"))+" ")],1),o("a-divider",{attrs:{type:"vertical"}}),o("span",{staticStyle:{color:"#18274a"}},[o("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"user"}}),n._v(" "+n._s(t.operator.name)+"("+n._s(t.operator.org_name)+") ")],1)],1)],1)],1)],1)}}],null,!1,2687742983)})],1)],1):n._e(),n.paneSet.has("3")?o("a-tab-pane",{key:"3",attrs:{tab:"流程图"}},[o("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[o("div",{staticStyle:{position:"absolute","z-index":"999"}},[o("a-button",{directives:[{name:"show",rawName:"v-show",value:!n.fullscreenLoading,expression:"!fullscreenLoading"}],attrs:{icon:"arrows-alt",type:"link"},on:{click:n.showFullScreenFlow}}),o("a-icon",{directives:[{name:"show",rawName:"v-show",value:n.fullscreenLoading,expression:"fullscreenLoading"}],attrs:{type:"loading-3-quarters"}})],1),n.initNodeContainer?o("NodeContainer",{ref:"nodeContainer",staticStyle:{heigth:"350px"},attrs:{"business-adapter":n.businessAdapter,"default-zoom-scale":70,"hide-zoom":!0,"is-preview":!0,"node-data":n.nodeData,"runtime-data":n.runtimeData},on:{nodeHandlerReady:n.nodeHandlerReady}}):n._e()],1)],1):n._e()],1)],1),o("a-modal",{staticClass:"jjh-fullscreen",attrs:{bodyStyle:{height:"85vh","overflow-y":"scroll","padding-bottom":"0"},destroyOnClose:!0,"dialog-style":{top:"0px"},visible:n.fullscreen,title:"流程图",width:"100%"},on:{cancel:n.hideFullScreenFlow}},[n.initNodeContainer?o("NodeContainer",{ref:"nodeContainer1",attrs:{"business-adapter":n.businessAdapter,"is-preview":!0,"node-data":n.nodeData,"runtime-data":n.runtimeData}}):n._e(),o("template",{slot:"footer"},[o("a-button",{key:"back",on:{click:n.hideFullScreenFlow}},[n._v("关闭")])],1)],2)],1)},Og=[],Eg=r("289a"),Sg=r.n(Eg);function jg(t){return jg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jg(t)}function Ng(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Ag(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Lg(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Lg=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==jg(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(jg(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Pg(t){return Rg(t)||Tg(t)||Ag(t)||Cg()}function Cg(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ag(t,e){if(t){if("string"===typeof t)return Dg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Dg(t,e):void 0}}function Tg(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Rg(t){if(Array.isArray(t))return Dg(t)}function Dg(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ig(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Mg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ig(Object(r),!0).forEach((function(e){qg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ig(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qg(t,e,r){return e=Bg(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bg(t){var e=Fg(t,"string");return"symbol"==jg(e)?e:String(e)}function Fg(t,e){if("object"!=jg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=jg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function $g(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Vg(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){$g(i,n,o,a,s,"next",t)}function s(t){$g(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Hg={START:"start",CHECK:"check",QUERY:"query"},Ug={PREVIEW:"preview",CONFIRM:"confirm"},Gg={PASS:"pass",BACK:"back",REASSIGN:"reassign",INVOLVE:"involve",END:"end"},zg={name:"runtime-workflow",mixins:[hn],components:{NodeContainer:dm,Item:Ri,draggable:Sg.a},data:function(){return{OPERATE:Hg,OPERATE_MODE:Ug,CHECK_ACTION:Gg,nodeHandler:null,loading:!0,paneSet:new Set,initNodeContainer:!1,fullscreen:!1,fullscreenLoading:!1,nodeData:null,paneKey:"3",currentNode:null,currentTodo:null,runtimeData:{currentNodeCode:"审批人",currentNodeOptionForms:[],currentNodeFormItem:null,pageOperate:{allowBack:!0,allowReassign:!0,allowInvolve:!0,allowEnd:!0},customBackNodes:["上报人"],caseNodes:{"上报人":{status:"finish"},"审批人":{status:"ongoing"},"抄送人":{status:"finish"}},actorLogs:{"上报人":[{operator:{name:"jianghui",org_name:"部门"},status:"finish",operate:"reassign",operate_desc:"专办给 to xxx",create_time:1613241234123,sequent:[{operator:{name:"jianghui",org_name:"部门"},status:"finish",operate:"start",operate_desc:"接收专班;并上报",create_time:1613241244123}]},{operator:{name:"jianghui",org_name:"部门"},status:"finish",operate:"involve",operate_desc:"加签 给 xxx",create_time:1613241234123,sequent:[{operator:{name:"jianghui",org_name:"部门"},status:"finish",operate_desc:"完成",operate:"start",create_time:1613241244123}],callback:{operator:{name:"jianghui",org_name:"部门"},status:"finish",operate:"start",operate_desc:"接收到加签结果;继续处理",create_time:1613241234123}},{operator:{name:"jianghui",org_name:"部门"},status:"ongoing",operate_desc:"正在处理中"}],"审批人":[{operator:{name:"jianghui3",org_name:"部门"},status:"ongoing",operate_desc:"接收到加签结果;继续处理"}]},logList:[{node_name:"上报人",operate:"start",operate_desc:"由王盛发起流程",operate_content:"审批意见",create_time:1613241234123,operator:{name:"jianghui",org_name:"部门"}},{node_name:"上报人",operate_desc:"上报完成",operate_content:"审批意见",create_time:1613241234123,operator:{name:"jianghui",org_name:"部门"}}],todos:[{node_code:"审批人2",condition:"(true) && (true)",optional:{multi:!0,enable:!0},actor_check_mode:"queue",actors:[{uid:1,name:"jianghui0",org_name:"部门1"},{uid:2,name:"jianghui1",org_name:"部门2"},{uid:3,name:"jianghui2",org_name:"部门2"},{uid:4,name:"jianghui3",org_name:"部门3"},{uid:5,name:"jianghui4",org_name:"部门3"}],selected:[]},{node_code:"审批人3",actor_check_mode:"sign",optional:{multi:!0,enable:!0},actors:[{uid:1,name:"jianghui",org_name:"部门1"},{uid:2,name:"jianghui1",org_name:"部门2"}],selected:[]},{node_code:"审批人5",actor_check_mode:"",optional:{multi:!1,enable:!0},actors:[{uid:1,name:"jianghui",org_name:"部门1"},{uid:2,name:"jianghui1",org_name:"部门2"}],selected:[]},{node_code:"审批人4",actor_check_mode:"queue",optional:{multi:!1,enable:!1},selected:[1,2],actors:[{uid:1,name:"jianghui",org_name:"部门1"},{uid:2,name:"jianghui1",org_name:"部门2"}]}],involve:{selected:[]},reassign:{selected:[]}},isCustomBack:null,reassignUserFilter:"",loadingReassignUser:!1,reassignUserData:[],reassignUserPagination:{pageSizeOptions:["10","20"],current:1,pageSize:10},involveUserFilter:"",loadingInvolveUser:!1,involveUserData:[],involveUserPagination:{pageSizeOptions:["10","20"],current:1,pageSize:10},userCache:{},expressionError:!1,workflow:{},activityColumns:[]}},setup:function(t){var e=t.columns,r=new gg,n=Wm.getBusinessAdapter(),o={operate_mode:Ug.PREVIEW,operate:Hg.QUERY,page_operate:{action:Gg.PASS,operate_content:"",custom_back_node_code:void 0,todos:void 0,involve:void 0,reassign:void 0},model_id:null,data_id:null};return{columnsRef:Object(N["ref"])(e),workflowReq:Object(N["ref"])(o),eadApi:r,businessAdapter:n}},created:function(){},mounted:function(){var t=this;return Vg(Lg().mark((function e(){var r,n,o,i,a,s,c,l,u,f,h,d,p;return Lg().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.activityColumns=t.view.schema.model.attrs.filter((function(t){return"none"!==t.access})).map((function(t){return t.name})),t.columnsRef=t.columnsRef.map((function(t){return Mg({},t)})),t.eadApi.setComponent(t),t.businessAdapter.eadApi=t.eadApi,t.workflowReq.operate=null!==(r=Hg[t.configs["workflow.operate"].toUpperCase()])&&void 0!==r?r:t.workflowReq.operate,t.workflowReq.data_id=t.eadApi.getModelValues()[t.eadApi.getModelIdName()],t.workflowReq.model_id=t.configs["workflow.id"],t.eadApi.getModelValues().workflow_req=t.workflowReq,e.next=10,t.eadApi.runCurrentAction();case 10:if(c=e.sent,c){e.next=15;break}return t.loading=!1,t.$emit("close"),e.abrupt("return");case 15:Object.keys(t.actionModel).forEach((function(e){Object.keys(c.data).includes(e)&&(t.actionModel[e]=c.data[e])})),t.workflow=null===c||void 0===c||null===(n=c.data)||void 0===n?void 0:n.workflow,l=null===c||void 0===c||null===(o=c.data)||void 0===o||null===(o=o.workflow)||void 0===o?void 0:o.runtime_data,l&&Object.keys(l).length&&(t.runtimeData=l),t.runtimeData.logList||(t.runtimeData.logList=[]),t.runtimeData.todos&&t.runtimeData.todos.forEach((function(t){(!t.optional||t.optional&&!t.optional.enable)&&(t.selected&&t.selected.length||(t.selected=t.actors.map((function(t){return t.uid})))),t.optional&&t.optional.enable&&!t.optional.multi&&(t.selected&&t.selected.length||(t.selected=[t.actors[0].uid]))})),t.runtimeData.actorLogs||(t.runtimeData.actorLogs={}),t.runtimeData.caseNodes&&t.runtimeData.caseNodes.length&&(u={},t.runtimeData.caseNodes.forEach((function(t){u[t.node_code]=Mg({},t)})),t.runtimeData.caseNodes=u),t.runtimeData.todos&&t.runtimeData.todos.forEach((function(t){t.actorfilter||(t.actorfilter=""),t.actorsf=Object(N["ref"])(Pg(t.actors))})),f=[],null!==(i=t.runtimeData)&&void 0!==i&&null!==(i=i.involve)&&void 0!==i&&i.actors&&f.push.apply(f,Pg(t.runtimeData.involve.actors)),null!==(a=t.runtimeData)&&void 0!==a&&null!==(a=a.reassign)&&void 0!==a&&a.actors&&f.push.apply(f,Pg(t.runtimeData.reassign.actors)),t.runtimeData.todos&&t.runtimeData.todos.forEach((function(t){f.push.apply(f,Pg(t.actors))})),f.forEach((function(e){t.userCache[e.uid]="".concat(e.name,"(").concat(e.org_name,")")})),h=null===c||void 0===c||null===(s=c.data)||void 0===s||null===(s=s.workflow)||void 0===s?void 0:s.node_json,d=h?null===h||void 0===h?void 0:h.node:null,t.nodeData=d?Pg(Object.values(d)):[],p=t.paneSet,[Hg.START,Hg.CHECK].includes(t.workflowReq.operate)&&p.add("1"),p.add("2"),p.add("3"),t.initNodeContainer=!0,t.$nextTick((function(){t.paneKey=Pg(p.values())[0]})),t.validExpression(),t.loadTodo(),t.actionModel.workflow_req=t.workflowReq,t.actionModel.workflow=t.workflow,t.loading=!1,t.workflowReq.operate_mode=Ug.CONFIRM,t.workflowReq.operate===Hg.CHECK&&(t.fetchInvolveUser(),t.fetchReassignUser());case 45:case"end":return e.stop()}}),e)})))()},methods:{filterTodoItemActors:function(t,e){e.actorsf.value=this.filterActors(t,e.actors)},filterActors:function(t,e){return t?e.filter((function(e){return e.name.toString().toLowerCase().includes(t.toLowerCase())})):e},handleTableChangeReassignUser:function(t){var e=Mg({},this.reassignUserPagination);e.current=t.current,this.reassignUserPagination=e,this.fetchReassignUser({userName:this.reassignUserFilter,pagination:{pageSize:t.pageSize,current:t.current}})},fetchReassignUser:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{userName:this.reassignUserFilter,pagination:this.reassignUserPagination};this.loadingReassignUser=!0,this.getAllUsers(e.userName,e.pagination).then((function(e){var r=Mg({},t.reassignUserPagination);r.total=e.count,t.loadingReassignUser=!1,t.reassignUserData=e.results,t.reassignUserPagination=r}))},handleTableChangeInvolveUser:function(t){var e=Mg({},this.involveUserPagination);e.current=t.current,this.involveUserPagination=e,this.fetchInvolveUser({userName:this.involveUserFilter,pagination:{pageSize:t.pageSize,current:t.current}})},fetchInvolveUser:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{userName:this.involveUserFilter,pagination:this.involveUserPagination};this.loadingInvolveUser=!0,this.getAllUsers(e.userName,e.pagination).then((function(e){var r=Mg({},t.involveUserPagination);r.total=e.count,t.loadingInvolveUser=!1,t.involveUserData=e.results,t.involveUserPagination=r}))},getAllUsers:function(t,e){var r=this;return Vg(Lg().mark((function n(){var o,i;return Lg().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,r.eadApi.getDatasetApi("flowdir-allusercount",{user_name:t});case 2:return o=n.sent,n.next=5,r.eadApi.getDatasetApi("flowdir-alluser",{user_name:t,limit_index:(e.current-1)*e.pageSize,limit_num:e.pageSize});case 5:return i=n.sent,n.abrupt("return",{count:o[0].count,results:i});case 7:case"end":return n.stop()}}),n)})))()},handleCommit:function(){var t,e=this,r=!1;if(this.workflowReq.operate===Hg.START&&(null!==(t=this.runtimeData.todos)&&void 0!==t&&t.length)){var n=this.getAvailableTodos(),o=this.nodeHandler.getAllRoute(this.currentNode.code).find((function(t){return"end"===t.type}));if(!n.length&&!o)return void this.$message.error("无法匹配到符合条件的后续步骤");this.workflowReq.page_operate.todos=n}if(this.workflowReq.operate===Hg.CHECK){var i,a;if(this.workflowReq.page_operate.action===Gg.BACK)if("bpmn"===this.currentNode.data.back_type&&(r=!0),null!==(i=this.runtimeData.todos)&&void 0!==i&&i.length){var s=this.getAvailableTodos(),c=this.nodeHandler.getAllRoute(this.currentNode.code).find((function(t){return"end"===t.type}));if(!s.length&&!c)return void this.$message.error("无法匹配到符合条件的后续步骤");this.workflowReq.page_operate.todos=s}if(this.workflowReq.page_operate.action===Gg.PASS)if(null!==(a=this.runtimeData.todos)&&void 0!==a&&a.length){var l=this.getAvailableTodos(),u=this.nodeHandler.getAllRoute(this.currentNode.code).find((function(t){return"end"===t.type}));if(!l.length&&!u)return void this.$message.error("无法匹配到符合条件的后续步骤");this.workflowReq.page_operate.todos=l}if(this.workflowReq.page_operate.action===Gg.INVOLVE){var f;if(null===(f=this.runtimeData.involve)||void 0===f||null===(f=f.selected)||void 0===f||!f.length)return void this.$message.error("请选择加签人");this.workflowReq.page_operate.involve=this.runtimeData.involve}if(this.workflowReq.page_operate.action===Gg.REASSIGN){var h;if(null===(h=this.runtimeData.reassign)||void 0===h||null===(h=h.selected)||void 0===h||!h.length)return void this.$message.error("请选择转办人");this.workflowReq.page_operate.reassign=this.runtimeData.reassign}}if(this.currentNode.data.other_options.assert&&this.currentNode.data.other_options.assert.length){var d,p=this.currentNode.data.other_options.assert.filter((function(t){return"all"===t.action||t.action===e.workflowReq.page_operate.action})).filter((function(t){return t.expression&&t.message})),v=Ng(p);try{var y,m=function(){var t=d.value;try{var r={};e.activityColumns.forEach((function(t){return r[t]=e.actionModel[t]}));var n=new Function(Object.keys(r),"return "+t.expression),o=n.apply(void 0,Pg(Object.values(r)));if(!o)return e.$message.error(t.message),{v:void 0}}catch(i){return e.$message.error("断言表达式配置错误,"+t.message),{v:void 0}}};for(v.s();!(d=v.n()).done;)if(y=m(),y)return y.v}catch(b){v.e(b)}finally{v.f()}}this.actionModel.workflow=this.workflow,this.actionModel.workflow_req=this.workflowReq;var g=Mg({},this.actionModel);g.workflow_req=Mg({},this.workflowReq),g.workflow_req.page_operate=Mg({},this.workflowReq.page_operate),r&&(g.workflow_req.page_operate.action="BPMN_BACK"),this.$emit("commit",g)},nodeHandlerReady:function(t){var e,r,n=this;this.nodeHandler=t;var o=this.currentNode=t.getNode(this.runtimeData.currentNodeCode);!this.runtimeData.PageOperate&&null!==o&&void 0!==o&&null!==(e=o.data)&&void 0!==e&&e.page_options&&(this.runtimeData.PageOperate=o.data.page_options);var i=null!==(r=this.runtimeData.currentNodeOptionForms)&&void 0!==r?r:null===o||void 0===o?void 0:o.data.option_forms;this.runtimeData.currentNodeFormItem=i.filter((function(t){return"none"!==t.access})).map((function(t){var e=n.columns.find((function(e){return e.name===t.attrCode}));return e&&(e.params||(e.params={}),e.params.readonly="readonly"===t.access,e.required=t.required),e})).filter((function(t){return t})),this.isCustomBack="custom"===(null===o||void 0===o?void 0:o.data.back_type),this.isCustomBack&&(this.runtimeData.customBackNodes||(this.runtimeData.customBackNodes=Pg(null===o||void 0===o?void 0:o.data.custom_back_nodes)),this.workflowReq.page_operate.custom_back_node_code=this.runtimeData.customBackNodes[0])},showFullScreenFlow:function(){var t=this;this.fullscreenLoading=!0,setTimeout((function(){t.$nextTick((function(){t.fullscreen=!0}))}),50)},hideFullScreenFlow:function(){this.fullscreenLoading=!1,this.fullscreen=!1},handleItemChange:function(t,e){var r=this;return Vg(Lg().mark((function n(){var o,i,a;return Lg().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(o=e.name,!(t instanceof FileList)){n.next=14;break}if(!t[0]){n.next=11;break}return i=new FormData,i.append(o,t[0]),n.next=7,r.$api.post("/upload",i);case 7:a=n.sent,t=a.data.data[o],n.next=12;break;case 11:t=null;case 12:n.next=15;break;case 14:t instanceof Date&&(t=r.moment(t).format("YYYY-MM-DD"));case 15:["time","datetime"].includes(e.dataType)&&(t=r.moment(t,"YYYY-MM-DD HH:mm").valueOf()),["date"].includes(e.dataType)&&(t=r.moment(t,"YYYY-MM-DD").valueOf()),r.actionModel[o]=t,r.loadTodo();case 19:case"end":return n.stop()}}),n)})))()},validExpression:function(){var t,e=Ng(this.runtimeData.todos);try{for(e.s();!(t=e.n()).done;){var r=t.value;if(this.availableTodo(r),this.expressionError)return!1}}catch(n){e.e(n)}finally{e.f()}return!0},getAvailableTodos:function(){var t,e=[],r=Ng(this.runtimeData.todos);try{for(r.s();!(t=r.n()).done;){var n=t.value;this.availableTodo(n)&&e.push({node_id:n.node_id,node_code:n.node_code,selected:n.selected})}}catch(o){r.e(o)}finally{r.f()}return e},loadTodo:function(){var t=this;if(this.runtimeData.todos)if(this.currentTodo)this.availableTodo(this.runtimeData.todos.find((function(e){return e.node_code===t.currentTodo})))||(this.currentTodo=null,this.loadTodo());else{var e,r=Ng(this.runtimeData.todos);try{for(r.s();!(e=r.n()).done;){var n=e.value;if(this.availableTodo(n))return void(this.currentTodo=n.node_code)}}catch(o){r.e(o)}finally{r.f()}}},availableTodo:function(t){var e=this;if(this.expressionError)return!1;var r=t.condition;if(!r)return!0;try{var n={};this.activityColumns.forEach((function(t){return n[t]=e.actionModel[t]}));var o=new Function(Object.keys(n),"return "+r),i=o.apply(void 0,Pg(Object.values(n)));return t.available=i,i}catch(a){this.expressionError=!0,this.$message.error("[".concat(t.node_code,"]表达式执行错误,请联系系统管理员!表达式:").concat(r))}return!1}}},Kg=zg,Yg=(r("f005"),qr(Kg,kg,Og,!1,null,"bf3aa83e",null)),Wg=Yg.exports,Zg=(r("1f51"),{NormalForm:zc,UploadForm:rl,PickerViewForm:pl,AlgorithmForm:Wu,PickerTransferForm:mf,PickerTreeForm:Af,PickerSelectViewForm:Qf,WorkflowReport:mh,WorkflowDesigner:xg,RuntimeWorkflow:Wg});function Jg(t){return Jg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jg(t)}function Xg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Xg(Object(r),!0).forEach((function(e){tb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tb(t,e,r){return e=eb(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eb(t){var e=rb(t,"string");return"symbol"==Jg(e)?e:String(e)}function rb(t,e){if("object"!=Jg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Jg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var nb={mixins:[Kt,Yt,Fc],components:Qg({},Zg)},ob=nb,ib=qr(ob,Mc,qc,!1,null,null,null),ab=ib.exports,sb={ModelList:ja,ModelProfile:Ic,ModelForm:ab},cb={props:{view:{type:Object},modelViewType:{type:String}},inject:["page"],computed:{namespace:function(){return"v-".concat(this.page.pageKey)}},methods:{createView:function(){return{extends:Ut(sb["Model".concat(this.modelViewType)])(this.namespace)}}}},lb=cb,ub=qr(lb,kt,Ot,!1,null,null,null),fb=ub.exports,hb={components:{ViewBox:fb},props:{views:{type:[Array]},viewLayout:{type:String,default:"blank"}}},db=hb,pb=qr(db,_t,xt,!1,null,null,null),vb=pb.exports,yb={mixins:[wt],components:{Views:vb}},mb=yb,gb=qr(mb,ht,dt,!1,null,null,null),bb=gb.exports,wb=function(){var t=this,e=t._self._c;return e("layout-page-".concat(t.layout),{tag:"component"},[e("Frame",{attrs:{url:"".concat(t.url),height:t.height}})],1)},_b=[],xb={mixins:[wt],components:{Frame:ss},props:{url:String,height:String},data:function(){return{loading:!0}}},kb=xb,Ob=qr(kb,wb,_b,!1,null,null,null),Eb=Ob.exports,Sb=function(){var t=this,e=t._self._c;return e("keep-alive",[e("router-view")],1)},jb=[],Nb={},Lb=qr(Nb,Sb,jb,!1,null,null,null),Pb=Lb.exports;function Cb(t){return Cb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cb(t)}function Ab(t){return Ib(t)||Db(t)||Rb(t)||Tb()}function Tb(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Rb(t,e){if(t){if("string"===typeof t)return Mb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mb(t,e):void 0}}function Db(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Ib(t){if(Array.isArray(t))return Mb(t)}function Mb(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function qb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qb(Object(r),!0).forEach((function(e){Fb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Fb(t,e,r){return e=$b(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $b(t){var e=Vb(t,"string");return"symbol"==Cb(e)?e:String(e)}function Vb(t,e){if("object"!=Cb(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Cb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Hb(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Hb=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Cb(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Cb(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Ub(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Gb(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ub(i,n,o,a,s,"next",t)}function s(t){Ub(i,n,o,a,s,"throw",t)}a(void 0)}))}}var zb=ft(bb),Kb=["catalog-tab","catalog"],Yb={data:function(){return{messageTimer:0}},created:function(){var t=this;return Gb(Hb().mark((function e(){return Hb().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.$router.addRoutes([{path:"/sign-in",component:t.$theme.pages.Signin,props:{layout:"wall"}}]),e.next=3,t.$store.dispatch("loadResources");case 3:"poll"===t.$store.state.config.message.type&&"1"===t.$store.state.app.remind&&t.startMessage();case 4:case"end":return e.stop()}}),e)})))()},computed:Bb(Bb({},Object(u["mapState"])(["status","resources"])),{},{routes:function(){return this.resources.length?[{path:"/",redirect:"/"+this.resources[0].key,children:this.resToRoute(Ab(this.resources)),component:this.$theme.layouts.router.Sidebar}]:[]}}),methods:{addRoutes:function(){this.$router.addRoutes(this.routes),this.$emit("routed")},resToRoute:function(t){var e=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=this.$theme.layouts.router.Tabs;return t.map((function(t){var o,i="".concat(r,"/").concat(t.key),a=t.key,s={},c=null;switch(t.type){case"catalog-tab":o=n,s.resources=t.childs,s.parentPath=i;break;case"component":o=e.$theme.pages[t.key.replace(/^\S/,(function(t){return t.toUpperCase()}))],s.pageKey=t.url;break;case"iframe":if(o=Eb,s.pageKey=t.url,s.url=t.url,t.url&&t.url.split("?")[1]){var l=t.url.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;l&&(s.height=l.split("=")[1])}break;case"view":o=Pb,s.pageKey=t.url;break;case"link":o={template:"<span></span>",activated:function(){this.$router.back()}};break;default:o=Pb;break}return"view"===t.type&&"standard"===t.viewType&&(c=[{path:"",component:{extends:zb(t.url,!0)},props:{modelViewType:"profile"===t.catalogType?"Profile":"List",pageKey:t.url},meta:{name:t.name,key:i}},{path:":id",component:{extends:zb(t.url,!0)},props:function(){return{modelViewType:"Profile",pageKey:t.url}},meta:{name:t.name,key:i}}]),!c&&t.childs&&(c=e.resToRoute(t.childs,t,"".concat(r,"/").concat(a))),{name:c?null:t.url,path:a,redirect:Kb.includes(t.type)&&t.childs&&t.childs.length?"".concat(r,"/").concat(a,"/").concat(t.childs[0].key):null,children:c,component:o,props:s,meta:{name:"list"===t.type?null:t.name}}}))},modelPageRoute:function(){},startMessage:function(){var t=this;return Gb(Hb().mark((function e(){return Hb().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("loadMessages");case 2:t.messageTimer&&clearInterval(t.messageTimer),t.messageTimer=setInterval((function(){t.$store.dispatch("loadMessages")}),1e4);case 4:case"end":return e.stop()}}),e)})))()}},watch:{status:function(t){401===t&&"/sign-in"!==this.$route.path&&this.$router.push("/sign-in")},resources:function(t,e){!e.length&&this.addRoutes()}}},Wb=Yb,Zb=qr(Wb,c,l,!1,null,null,null),Jb=Zb.exports,Xb={components:{Router:Jb},created:function(){}},Qb=Xb,tw=qr(Qb,a,s,!1,null,null,null),ew=tw.exports;r("e39e");function rw(t){return rw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rw(t)}function nw(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */nw=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==rw(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(rw(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function ow(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function iw(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ow(i,n,o,a,s,"next",t)}function s(t){ow(i,n,o,a,s,"throw",t)}a(void 0)}))}}function aw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function sw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?aw(Object(r),!0).forEach((function(e){cw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):aw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cw(t,e,r){return e=lw(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lw(t){var e=uw(t,"string");return"symbol"==rw(e)?e:String(e)}function uw(t,e){if("object"!=rw(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=rw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var fw=window.Rainbow,hw=fw.app,dw=hw.csrfToken,pw=hw.baseURL,vw=!1,yw={};function mw(t){E.setDefaults({baseURL:pw!==["/","{app.appKey}"].join("$")?pw:t,headers:yw}),L.a.use(E),L.a.use(f.a);var e=function(){return{resources:[],apps:[],user:{},token:JSON.parse(localStorage.getItem("token")),app:sw({},fw.app),config:{message:{type:"poll"}},messages:[],historys:[],loading:!1,committing:!1,status:200,message:"",baseURL:E.instance.defaults.baseURL}};return new f.a.Store({state:e(),strict:vw,plugins:[],mutations:{setResources:function(t,e){t.resources=e},setApp:function(t,e){t.app=sw(sw({},t.app),e)},setUser:function(t,e){t.user=e},setToken:function(t,e){t.token=e},setMessages:function(t,e){t.messages=e},readMessages:function(t,e){if(e.length>1)t.messages=[];else if(1===e.length){var r=t.messages.findIndex((function(t){return e[0].message_id===t.message_id}));-1!==r&&t.messages.splice(r,1)}},clear:function(t){t.resources=t.apps=t.messages=[],t.user=null,localStorage.removeItem("signToken"),t.signToken=null},setStatus:function(t,e){var r=e.status,n=e.message;t.status=r,t.message=n},setLoading:function(t,e){t.loading=e},setCommitting:function(t,e){t.committing=e},setHistorys:function(t,e){var r=t.historys.findIndex((function(t){return t.key===e.key}));-1!==r?t.historys[r]=e:t.historys.push(e)},removeHistorys:function(t,e){var r=t.historys.findIndex((function(t){return t.key===e}));return-1!==r&&t.historys.splice(r,1),r}},actions:{loadResources:function(t){return iw(nw().mark((function e(){var r,n,o,i,a,s,c;return nw().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,n=t.dispatch,r("setLoading",!0),e.prev=2,e.next=5,E.get("/api");case 5:o=e.sent,i=o.data,a=i.resources,s=i.user,c=i.app,r("setResources",a),r("setApp",c),r("setUser",s),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](2),n("handleError",e.t0);case 18:return e.prev=18,r("setLoading",!1),e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[2,15,18,21]])})))()},loadMessages:function(t){return iw(nw().mark((function e(){var r,n,o;return nw().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,e.prev=1,e.next=4,E.get("/api/sys-msg?status=unread");case 4:n=e.sent,o=n.data.collection,r("setMessages",o),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](1);case 11:case"end":return e.stop()}}),e,null,[[1,9]])})))()},readMessages:function(t,e){return iw(nw().mark((function r(){var n;return nw().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,r.next=3,E.post("/api/sys-msg/read",e);case 3:n("readMessages",e);case 4:case"end":return r.stop()}}),r)})))()},emptyMessages:function(t,e){return iw(nw().mark((function r(){var n;return nw().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,r.next=3,E.post("/api/sys-msg/reads",e);case 3:n("readMessages",e);case 4:case"end":return r.stop()}}),r)})))()},signin:function(t){var e=arguments;return iw(nw().mark((function r(){var n,o,i,a,s,c,l,u;return nw().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},n("setCommitting",!0),r.prev=3,r.next=6,E.post("/api/signin",i.data,{});case 6:return a=r.sent,s=a.data,c=s.data,l=s.content,u=a.status,n("clear"),n("setStatus",{status:u,message:l}),r.abrupt("return",c);case 16:r.prev=16,r.t0=r["catch"](3),o("handleError",r.t0);case 19:return r.prev=19,n("setCommitting",!1),r.finish(19);case 22:case"end":return r.stop()}}),r,null,[[3,16,19,22]])})))()},getSms:function(t){var e=arguments;return iw(nw().mark((function r(){var n,o,i,a,s,c,l,u;return nw().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},n("setCommitting",!0),r.prev=3,r.next=6,E.post("/api/sms",i.data,{});case 6:return a=r.sent,s=a.data,c=s.data,l=s.content,u=a.status,n("clear"),n("setStatus",{status:u,message:l}),r.abrupt("return",c);case 16:r.prev=16,r.t0=r["catch"](3),o("handleError",r.t0);case 19:return r.prev=19,n("setCommitting",!1),r.finish(19);case 22:case"end":return r.stop()}}),r,null,[[3,16,19,22]])})))()},signout:function(t,e){return iw(nw().mark((function e(){var r,n,o,i,a,s,c;return nw().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,n=t.dispatch,r("setCommitting",!0),e.prev=2,e.next=5,E.post("/api/signout");case 5:return o=e.sent,i=o.data,a=i.data,s=i.content,c=o.status,r("clear"),r("setStatus",{status:c,message:s}),e.abrupt("return",a);case 15:e.prev=15,e.t0=e["catch"](2),n("handleError",e.t0);case 18:return e.prev=18,r("setCommitting",!1),e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[2,15,18,21]])})))()},changePassword:function(t){var e=arguments;return iw(nw().mark((function r(){var n,o,i,a,s,c,l,u;return nw().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},n("setCommitting",!0),r.prev=3,r.next=6,E.post("/api/change-password",i.data,{});case 6:return a=r.sent,s=a.data,c=s.data,l=s.content,u=a.status,n("clear"),n("setStatus",{status:u,message:l}),r.abrupt("return",c);case 16:r.prev=16,r.t0=r["catch"](3),o("handleError",r.t0);case 19:return r.prev=19,n("setCommitting",!1),r.finish(19);case 22:case"end":return r.stop()}}),r,null,[[3,16,19,22]])})))()},handleError:function(t,e){var r=t.commit;if(!e.response)return r("setStatus",{status:0,message:"网络请求错误,请检查您的网络连接。"});var n=e.response,o=n.status,i=n.data,a=i&&i.content||"系统错误请与管理员联系。";return r("setStatus",{status:o,message:a}),e}},getters:{token:function(){},resources:function(){},app:function(t){return t.app},user:function(t){return t.user},config:function(t){return function(e){return t.config.find((function(t){return t.key===e}))}}}})}dw&&"${app.csrfToken}"!==dw&&(yw["x-csrf-token"]=dw);var gw=r("6389"),bw=r.n(gw);L.a.use(bw.a);var ww=new bw.a,_w=function(){var t=this,e=t._self._c;return e("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.copyText,expression:"copyText",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:t.onError,expression:"onError",arg:"error"}]},[t._v(" "+t._s(t.text)+" ")])},xw=[],kw={name:"clipboard",props:{text:{type:String,default:"文本内容"},copyText:{type:[String,Number],default:"复制文本内容"}},methods:{onCopy:function(t){this.$message.success("复制成功")},onError:function(t){this.$message.error("复制失败")}}},Ow=kw,Ew=qr(Ow,_w,xw,!1,null,null,null),Sw=Ew.exports,jw=function(){var t=this,e=t._self._c;return e(t.component,{tag:"component"},[t._t("default",null,{collection:t.dataSource,model:t.model,schema:t.schema,schemas:t.schemas,count:t.count}),t._t("empty"),t._t("error")],2)},Nw=[];function Lw(t){return Lw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lw(t)}function Pw(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Pw=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Lw(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Lw(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Cw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Aw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Cw(Object(r),!0).forEach((function(e){Dw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Tw(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function Rw(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Tw(i,n,o,a,s,"next",t)}function s(t){Tw(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Dw(t,e,r){return e=Iw(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Iw(t){var e=Mw(t,"string");return"symbol"==Lw(e)?e:String(e)}function Mw(t,e){if("object"!=Lw(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Lw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function qw(t,e){return Hw(t)||Vw(t,e)||Fw(t,e)||Bw()}function Bw(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Fw(t,e){if(t){if("string"===typeof t)return $w(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$w(t,e):void 0}}function $w(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Vw(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}function Hw(t){if(Array.isArray(t))return t}var Uw={props:{name:{type:String},component:{type:[String,Object],default:"div"},query:{type:Object},filter:{type:Object},transform:{type:Function},limit:{type:Number},page:{type:Number},schemaMode:{type:[Boolean,String],default:!1},dataset:{type:Boolean,default:!1}},data:function(){return{collection:[],model:{},schema:null,count:0,status:0,loading:!1}},computed:{dataSource:function(){var t=this.collection,e=this.filter,r=e?t.filter((function(t){return Object.keys(e).every((function(r){var n=e[r];return n&&!Array.isArray(n)&&(n=[n]),null===n||n.includes(t[r])}))})):t;return this.transform?r.map(this.transform):r},schemas:function(){var t=this.schema?this.schema.model.attrs.filter((function(t){return t.list||"wordbook"===t.dataType&&t.typeObject})):[],e=t.map((function(t){return t.list?[t.name,t.list.split(",").map((function(t){var e=t.split(":"),r=qw(e,2),n=r[0],o=r[1];return o?Dw({},n,o):n}))]:[t.name,t.typeObject.data&&t.typeObject.data.collection||[]]}));return Object.fromEntries(e)}},methods:{load:function(){var t=this;return Rw(Pw().mark((function e(){var r,n,o,i,a,s,c,l,u,f,h,d,p,v,y;return Pw().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.name,n=t.query,o=t.limit,i=void 0===o?0:o,a=t.page,s=t.dataset,t.collection=[],t.model={},t.count=0,t.status=0,t.loading=!0,c=s?"dataset":"api",e.prev=7,e.next=10,t.$api.get("/".concat(c,"/").concat(r,"?").concat(j.a.stringify(Aw(Aw({},n),{},{_size:i,$limit:a}))));case 10:l=e.sent,u=l.data,f=u.collection,h=u.count,d=u.model,p=u.data,v=l.status,t.collection=f||p,t.model=d,t.count=h,t.status=v,e.next=27;break;case 23:return e.prev=23,e.t0=e["catch"](7),e.t0.response?(y=e.t0.response.status,t.status=y):t.status=-1,e.abrupt("return",e.t0);case 27:return e.prev=27,t.loading=!1,e.finish(27);case 30:case"end":return e.stop()}}),e,null,[[7,23,27,30]])})))()},loadSchema:function(){var t=this;return Rw(Pw().mark((function e(){var r,n,o,i;return Pw().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.name,e.prev=1,e.next=4,t.$api.get("/schemas/".concat(r));case 4:n=e.sent,o=n.data,t.schema=o,e.next=13;break;case 9:return e.prev=9,e.t0=e["catch"](1),e.t0.response?(i=e.t0.response.status,t.status=i):t.status=-1,e.abrupt("return",e.t0);case 13:return e.prev=13,t.loading=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[1,9,13,16]])})))()}},created:function(){var t=this;return Rw(Pw().mark((function e(){return Pw().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("await"!==t.schemaMode){e.next=6;break}return e.next=3,t.loadSchema();case 3:t.load(),e.next=7;break;case 6:"async"===t.schemaMode?(t.loadSchema(),t.load()):t.schemaMode?t.loadSchema():t.load();case 7:case"end":return e.stop()}}),e)})))()},watch:{name:function(t){this.load()},page:function(){this.load()}}},Gw=Uw,zw=qr(Gw,jw,Nw,!1,null,null,null),Kw=zw.exports,Yw=r("0934"),Ww=r.n(Yw);function Zw(t){var e=Ww.a.enc.Utf8.parse(t),r="1234123412ABCDEF",n="ABCDEF1234123412",o=Ww.a.enc.Utf8.parse(r),i=Ww.a.enc.Utf8.parse(n),a=Ww.a.AES.encrypt(e,o,{iv:i,mode:Ww.a.mode.CBC,padding:Ww.a.pad.Pkcs7}),s=a.ciphertext.toString();return s}r("517c"),r("aa23")},"1f44":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("f97e"),r("a638"),r("57eb"),r("023d"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.StreamCipher,o=e.algo,i=[],a=[],s=[],c=o.Rabbit=n.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],o=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(r=0;r<4;r++)l.call(this);for(r=0;r<8;r++)o[r]^=n[r+4&7];if(e){var i=e.words,a=i[0],s=i[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=c>>>16|4294901760&u,h=u<<16|65535&c;o[0]^=c,o[1]^=f,o[2]^=u,o[3]^=h,o[4]^=c,o[5]^=f,o[6]^=u,o[7]^=h;for(r=0;r<4;r++)l.call(this)}},_doProcessBlock:function(t,e){var r=this._X;l.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),t[e+n]^=i[n]},blockSize:4,ivSize:2});function l(){for(var t=this._X,e=this._C,r=0;r<8;r++)a[r]=e[r];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0;for(r=0;r<8;r++){var n=t[r]+e[r],o=65535&n,i=n>>>16,c=((o*o>>>17)+o*i>>>15)+i*i,l=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=c^l}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=n._createHelper(c)}(),t.Rabbit}))},"1f51":function(t,e,r){},2206:function(t,e,r){},"22ae":function(t,e,r){},2364:function(e,r){e.exports=t},2387:function(t,e,r){"use strict";r("f39c")},"23a7":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){return t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function r(t,e,r,n){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,n.encryptBlock(o,0);for(var a=0;a<r;a++)t[e+a]^=o[a]}return e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,o=n.blockSize;r.call(this,t,e,o,n),this._prevBlock=t.slice(e,e+o)}}),e.Decryptor=e.extend({processBlock:function(t,e){var n=this._cipher,o=n.blockSize,i=t.slice(e,e+o);r.call(this,t,e,o,n),this._prevBlock=i}}),e}(),t.mode.CFB}))},"289a":function(t,r){t.exports=e},"2a55":function(t,e,r){"use strict";e.byteLength=u,e.toByteArray=h,e.fromByteArray=v;for(var n=[],o=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)n[s]=a[s],o[a.charCodeAt(s)]=s;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function u(t){var e=l(t),r=e[0],n=e[1];return 3*(r+n)/4-n}function f(t,e,r){return 3*(e+r)/4-r}function h(t){var e,r,n=l(t),a=n[0],s=n[1],c=new i(f(t,a,s)),u=0,h=s>0?a-4:a;for(r=0;r<h;r+=4)e=o[t.charCodeAt(r)]<<18|o[t.charCodeAt(r+1)]<<12|o[t.charCodeAt(r+2)]<<6|o[t.charCodeAt(r+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;return 2===s&&(e=o[t.charCodeAt(r)]<<2|o[t.charCodeAt(r+1)]>>4,c[u++]=255&e),1===s&&(e=o[t.charCodeAt(r)]<<10|o[t.charCodeAt(r+1)]<<4|o[t.charCodeAt(r+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e),c}function d(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function p(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),o.push(d(n));return o.join("")}function v(t){for(var e,r=t.length,o=r%3,i=[],a=16383,s=0,c=r-o;s<c;s+=a)i.push(p(t,s,s+a>c?c:s+a));return 1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},"2b1b":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("f97e"),r("a638"),r("57eb"),r("023d"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.BlockCipher,o=e.algo;const i=16,a=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var c={pbox:[],sbox:[]};function l(t,e){let r=e>>24&255,n=e>>16&255,o=e>>8&255,i=255&e,a=t.sbox[0][r]+t.sbox[1][n];return a^=t.sbox[2][o],a+=t.sbox[3][i],a}function u(t,e,r){let n,o=e,a=r;for(let s=0;s<i;++s)o^=t.pbox[s],a=l(t,o)^a,n=o,o=a,a=n;return n=o,o=a,a=n,a^=t.pbox[i],o^=t.pbox[i+1],{left:o,right:a}}function f(t,e,r){let n,o=e,a=r;for(let s=i+1;s>1;--s)o^=t.pbox[s],a=l(t,o)^a,n=o,o=a,a=n;return n=o,o=a,a=n,a^=t.pbox[1],o^=t.pbox[0],{left:o,right:a}}function h(t,e,r){for(let i=0;i<4;i++){t.sbox[i]=[];for(let e=0;e<256;e++)t.sbox[i][e]=s[i][e]}let n=0;for(let s=0;s<i+2;s++)t.pbox[s]=a[s]^e[n],n++,n>=r&&(n=0);let o=0,c=0,l=0;for(let a=0;a<i+2;a+=2)l=u(t,o,c),o=l.left,c=l.right,t.pbox[a]=o,t.pbox[a+1]=c;for(let i=0;i<4;i++)for(let e=0;e<256;e+=2)l=u(t,o,c),o=l.left,c=l.right,t.sbox[i][e]=o,t.sbox[i][e+1]=c;return!0}var d=o.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4;h(c,e,r)}},encryptBlock:function(t,e){var r=u(c,t[e],t[e+1]);t[e]=r.left,t[e+1]=r.right},decryptBlock:function(t,e){var r=f(c,t[e],t[e+1]);t[e]=r.left,t[e+1]=r.right},blockSize:2,keySize:4,ivSize:2});e.Blowfish=n._createHelper(d)}(),t.Blowfish}))},"2b25":function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.WordArray,o=r.Hasher,i=e.algo,a=[],s=i.SHA1=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],s=r[3],c=r[4],l=0;l<80;l++){if(l<16)a[l]=0|t[e+l];else{var u=a[l-3]^a[l-8]^a[l-14]^a[l-16];a[l]=u<<1|u>>>31}var f=(n<<5|n>>>27)+c+a[l];f+=l<20?1518500249+(o&i|~o&s):l<40?1859775393+(o^i^s):l<60?(o&i|o&s|i&s)-1894007588:(o^i^s)-899497514,c=s,s=i,i=o<<30|o>>>2,o=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+s|0,r[4]=r[4]+c|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),e[15+(n+64>>>9<<4)]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=o._createHelper(s),e.HmacSHA1=o._createHmacHelper(s)}(),t.SHA1}))},"2b76":function(t,e,r){},"2e09":function(t,e,r){},"2f4d":function(t,e,r){"use strict";r("3cd6")},"336c":function(t,e){t.exports=r},3593:function(t,e){},"37eb":function(t,e,r){!function(e,n){t.exports=n(r("788a"))}(0,(function(t){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=2)}([function(e,r){e.exports=t},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(4),o=r.n(n),i=r(6),a=r(5),s=a(o.a,i.a,!1,null,null,null);e.default=s.exports},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.install=e.quillEditor=e.Quill=void 0;var o=r(0),i=n(o),a=r(1),s=n(a),c=window.Quill||i.default,l=function(t,e){e&&(s.default.props.globalOptions.default=function(){return e}),t.component(s.default.name,s.default)},u={Quill:c,quillEditor:s.default,install:l};e.default=u,e.Quill=c,e.quillEditor=s.default,e.install=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert text here ...",readOnly:!1}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=r(0),i=n(o),a=r(3),s=n(a),c=window.Quill||i.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),n=1;n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r},writable:!0,configurable:!0}),e.default={name:"quill-editor",data:function(){return{_options:{},_content:"",defaultOptions:s.default}},props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},mounted:function(){this.initialize()},beforeDestroy:function(){this.quill=null,delete this.quill},methods:{initialize:function(){var t=this;this.$el&&(this._options=Object.assign({},this.defaultOptions,this.globalOptions,this.options),this.quill=new c(this.$refs.editor,this._options),this.quill.enable(!1),(this.value||this.content)&&this.quill.pasteHTML(this.value||this.content),this.disabled||this.quill.enable(!0),this.quill.on("selection-change",(function(e){e?t.$emit("focus",t.quill):t.$emit("blur",t.quill)})),this.quill.on("text-change",(function(e,r,n){var o=t.$refs.editor.children[0].innerHTML,i=t.quill,a=t.quill.getText();"<p><br></p>"===o&&(o=""),t._content=o,t.$emit("input",t._content),t.$emit("change",{html:o,text:a,quill:i})})),this.$emit("ready",this.quill))}},watch:{content:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},value:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},disabled:function(t,e){this.quill&&this.quill.enable(!t)}}}},function(t,e){t.exports=function(t,e,r,n,o,i){var a,s=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(a=t,s=t.default);var l,u="function"==typeof s?s.options:s;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId=o),i?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=l):n&&(l=n),l){var f=u.functional,h=f?u.render:u.beforeCreate;f?(u._injectStyles=l,u.render=function(t,e){return l.call(e),h(t,e)}):u.beforeCreate=h?[].concat(h,l):[l]}return{esModule:a,exports:s,options:u}}},function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"quill-editor"},[t._t("toolbar"),t._v(" "),r("div",{ref:"editor"})],2)},o=[],i={render:n,staticRenderFns:o};e.a=i}])}))},3815:function(t,e,r){},"3cd6":function(t,e,r){},"41ea":function(t,e,r){"use strict";r("a3d2")},4927:function(t,e,r){"use strict";r("3815")},"49fc":function(t,e,r){},"4af3":function(t,e,r){},"4c29":function(t,e,r){"use strict";r("0d6e")},"4dd1":function(t,e,r){"use strict";r("cb5c")},"4dd6":function(t,e,r){"use strict";r("4eb0")},"4eb0":function(t,e,r){},"517c":function(t,e,r){},"521b":function(t,e,r){},5288:function(t,e,r){},5596:function(t,e,r){"use strict";r("7826")},"55ab":function(t,e,r){},"57eb":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("2b25"),r("fb70"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.Base,o=r.WordArray,i=e.algo,a=i.MD5,s=i.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var r,n=this.cfg,i=n.hasher.create(),a=o.create(),s=a.words,c=n.keySize,l=n.iterations;while(s.length<c){r&&i.update(r),r=i.update(t).finalize(e),i.reset();for(var u=1;u<l;u++)r=i.finalize(r),i.reset();a.concat(r)}return a.sigBytes=4*c,a}});e.EvpKDF=function(t,e,r){return s.create(r).compute(t,e)}}(),t.EvpKDF}))},5880:function(t,e){t.exports=n},"5aeb":function(t,e){t.exports=o},"5c90":function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){return function(e){var r=t,n=r.lib,o=n.Base,i=n.WordArray,a=r.x64={};a.Word=o.extend({init:function(t,e){this.high=t,this.low=e}}),a.WordArray=o.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=r!=e?r:8*t.length},toX32:function(){for(var t=this.words,e=t.length,r=[],n=0;n<e;n++){var o=t[n];r.push(o.high),r.push(o.low)}return i.create(r,this.sigBytes)},clone:function(){for(var t=o.clone.call(this),e=t.words=this.words.slice(0),r=e.length,n=0;n<r;n++)e[n]=e[n].clone();return t}})}(),t}))},6029:function(t,e,r){},6389:function(t,e){t.exports=i},"67ae":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("5c90"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.Hasher,o=e.x64,i=o.Word,a=o.WordArray,s=e.algo;function c(){return i.create.apply(i,arguments)}var l=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],u=[];(function(){for(var t=0;t<80;t++)u[t]=c()})();var f=s.SHA512=n.extend({_doReset:function(){this._hash=new a.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],s=r[4],c=r[5],f=r[6],h=r[7],d=n.high,p=n.low,v=o.high,y=o.low,m=i.high,g=i.low,b=a.high,w=a.low,_=s.high,x=s.low,k=c.high,O=c.low,E=f.high,S=f.low,j=h.high,N=h.low,L=d,P=p,C=v,A=y,T=m,R=g,D=b,I=w,M=_,q=x,B=k,F=O,$=E,V=S,H=j,U=N,G=0;G<80;G++){var z,K,Y=u[G];if(G<16)K=Y.high=0|t[e+2*G],z=Y.low=0|t[e+2*G+1];else{var W=u[G-15],Z=W.high,J=W.low,X=(Z>>>1|J<<31)^(Z>>>8|J<<24)^Z>>>7,Q=(J>>>1|Z<<31)^(J>>>8|Z<<24)^(J>>>7|Z<<25),tt=u[G-2],et=tt.high,rt=tt.low,nt=(et>>>19|rt<<13)^(et<<3|rt>>>29)^et>>>6,ot=(rt>>>19|et<<13)^(rt<<3|et>>>29)^(rt>>>6|et<<26),it=u[G-7],at=it.high,st=it.low,ct=u[G-16],lt=ct.high,ut=ct.low;z=Q+st,K=X+at+(z>>>0<Q>>>0?1:0),z+=ot,K=K+nt+(z>>>0<ot>>>0?1:0),z+=ut,K=K+lt+(z>>>0<ut>>>0?1:0),Y.high=K,Y.low=z}var ft=M&B^~M&$,ht=q&F^~q&V,dt=L&C^L&T^C&T,pt=P&A^P&R^A&R,vt=(L>>>28|P<<4)^(L<<30|P>>>2)^(L<<25|P>>>7),yt=(P>>>28|L<<4)^(P<<30|L>>>2)^(P<<25|L>>>7),mt=(M>>>14|q<<18)^(M>>>18|q<<14)^(M<<23|q>>>9),gt=(q>>>14|M<<18)^(q>>>18|M<<14)^(q<<23|M>>>9),bt=l[G],wt=bt.high,_t=bt.low,xt=U+gt,kt=H+mt+(xt>>>0<U>>>0?1:0),Ot=(xt=xt+ht,kt=kt+ft+(xt>>>0<ht>>>0?1:0),xt=xt+_t,kt=kt+wt+(xt>>>0<_t>>>0?1:0),xt=xt+z,kt=kt+K+(xt>>>0<z>>>0?1:0),yt+pt),Et=vt+dt+(Ot>>>0<yt>>>0?1:0);H=$,U=V,$=B,V=F,B=M,F=q,q=I+xt|0,M=D+kt+(q>>>0<I>>>0?1:0)|0,D=T,I=R,T=C,R=A,C=L,A=P,P=xt+Ot|0,L=kt+Et+(P>>>0<xt>>>0?1:0)|0}p=n.low=p+P,n.high=d+L+(p>>>0<P>>>0?1:0),y=o.low=y+A,o.high=v+C+(y>>>0<A>>>0?1:0),g=i.low=g+R,i.high=m+T+(g>>>0<R>>>0?1:0),w=a.low=w+I,a.high=b+D+(w>>>0<I>>>0?1:0),x=s.low=x+q,s.high=_+M+(x>>>0<q>>>0?1:0),O=c.low=O+F,c.high=k+B+(O>>>0<F>>>0?1:0),S=f.low=S+V,f.high=E+$+(S>>>0<V>>>0?1:0),N=h.low=N+U,h.high=j+H+(N>>>0<U>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),e[31+(n+128>>>10<<5)]=r,t.sigBytes=4*e.length,this._process();var o=this._hash.toX32();return o},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=n._createHelper(f),e.HmacSHA512=n._createHmacHelper(f)}(),t.SHA512}))},"690b":function(t,e,r){},"6d57":function(t,e,r){"use strict";r("4af3")},7144:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("f97e"),r("a638"),r("57eb"),r("023d"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.BlockCipher,o=e.algo,i=[],a=[],s=[],c=[],l=[],u=[],f=[],h=[],d=[],p=[];(function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,n=0;for(e=0;e<256;e++){var o=n^n<<1^n<<2^n<<3^n<<4;o=o>>>8^255&o^99,i[r]=o,a[o]=r;var v=t[r],y=t[v],m=t[y],g=257*t[o]^16843008*o;s[r]=g<<24|g>>>8,c[r]=g<<16|g>>>16,l[r]=g<<8|g>>>24,u[r]=g;g=16843009*m^65537*y^257*v^16843008*r;f[o]=g<<24|g>>>8,h[o]=g<<16|g>>>16,d[o]=g<<8|g>>>24,p[o]=g,r?(r=v^t[t[t[m^v]]],n^=t[t[n]]):r=n=1}})();var v=[0,1,2,4,8,16,32,64,128,27,54],y=o.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,n=this._nRounds=r+6,o=4*(n+1),a=this._keySchedule=[],s=0;s<o;s++)s<r?a[s]=e[s]:(u=a[s-1],s%r?r>6&&s%r==4&&(u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u]):(u=u<<8|u>>>24,u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u],u^=v[s/r|0]<<24),a[s]=a[s-r]^u);for(var c=this._invKeySchedule=[],l=0;l<o;l++){s=o-l;if(l%4)var u=a[s];else u=a[s-4];c[l]=l<4||s<=4?u:f[i[u>>>24]]^h[i[u>>>16&255]]^d[i[u>>>8&255]]^p[i[255&u]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,c,l,u,i)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,f,h,d,p,a);r=t[e+1];t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,o,i,a,s){for(var c=this._nRounds,l=t[e]^r[0],u=t[e+1]^r[1],f=t[e+2]^r[2],h=t[e+3]^r[3],d=4,p=1;p<c;p++){var v=n[l>>>24]^o[u>>>16&255]^i[f>>>8&255]^a[255&h]^r[d++],y=n[u>>>24]^o[f>>>16&255]^i[h>>>8&255]^a[255&l]^r[d++],m=n[f>>>24]^o[h>>>16&255]^i[l>>>8&255]^a[255&u]^r[d++],g=n[h>>>24]^o[l>>>16&255]^i[u>>>8&255]^a[255&f]^r[d++];l=v,u=y,f=m,h=g}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^r[d++],y=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&l])^r[d++],m=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[d++],g=(s[h>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^r[d++];t[e]=v,t[e+1]=y,t[e+2]=m,t[e+3]=g},keySize:8});e.AES=n._createHelper(y)}(),t.AES}))},"71ef":function(t,e,r){},7826:function(t,e,r){},"784f":function(t,e,r){},"788a":function(t,e,r){(function(e){
10
10
  /*!
11
11
  * Quill Editor v1.3.7
12
12
  * https://quilljs.com/