@xatlas/rainbow-core 2.1.7 → 2.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.common.js +30 -27
- package/dist/core.common.js.map +1 -1
- package/dist/core.umd.js +30 -27
- package/dist/core.umd.js.map +1 -1
- package/dist/core.umd.min.js +1 -1
- package/dist/core.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/core.umd.min.js
CHANGED
|
@@ -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}))},"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}))},"11f1":function(t,e,r){"use strict";r("4102")},"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,d=r?-1:1,h=t[e+f];for(f+=d,i=h&(1<<-u)-1,h>>=-u,u+=s;u>0;i=256*i+t[e+f],f+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=n;u>0;a=256*a+t[e+f],f+=d,u-=8);if(0===i)i=1-l;else{if(i===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=l}return(h?-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,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=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?d/c:d*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+h]=255&s,h+=p,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;t[r+h]=255&a,h+=p,a/=256,l-=8);t[r+h-p]|=128*v}},1697:function(t,e,r){"use strict";r("a573")},"193e":function(t,e,r){"use strict";r("2c52")},"1a73":function(t,e,r){},"1aba":function(t,e,r){"use strict";if(r.r(e),r.d(e,"App",(function(){return Hb})),r.d(e,"createStore",(function(){return iw})),r.d(e,"create",(function(){return $t})),r.d(e,"template",(function(){return be})),r.d(e,"WebRouters",(function(){return cw})),r.d(e,"WebViews",(function(){return Wg})),r.d(e,"Descriptions",(function(){return Ga})),r.d(e,"Frame",(function(){return Ja})),r.d(e,"Clipboard",(function(){return pw})),r.d(e,"Collection",(function(){return Dw})),r.d(e,"FormItem",(function(){return Oi})),r.d(e,"FormBase",(function(){return en})),r.d(e,"encrypt",(function(){return qw})),"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),d=r("cebe"),h=r.n(d);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 t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(P){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new j(o||[]);return n(a,"_invoke",{value:k(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(P){return{type:"throw",arg:P}}}t.wrap=l;var f={};function d(){}function h(){}function m(){}var y={};c(y,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(N([])));b&&b!==e&&r.call(b,i)&&(y=b);var w=m.prototype=d.prototype=Object.create(y);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==p(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function k(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(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 E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return h.prototype=m,n(w,"constructor",{value:m,configurable:!0}),n(m,"constructor",{value:h,configurable:!0}),h.displayName=c(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},_(x.prototype),c(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(w),c(w,s,"Generator"),c(w,i,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=N,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),E(r),f}},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;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function m(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 y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach((function(e){g(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(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)||null===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=h.a.create({timeout:6e5,withCredentials:!0}),O={axios:h.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(y(y({},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)})))()}},S=O,E=r("796d"),j=r.n(E),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)||null===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 t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==P(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}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(u){l=!0,o=u}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,S.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,d,h,p,v,m,y,g,b,w,_,x,k,O,E,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,d=s.data,h=void 0===d?null:d,p=s.key,v=s.query,m=s.options,y=s.mute,g=void 0!==y&&y,!g&&n("setLoading",!0),r.prev=4,r.next=7,S[f]("/api/".concat(l).concat(p?"/".concat(p):"","?").concat(j.a.stringify(v)),h,m);case 7:return b=r.sent,w=b.data,_=w.collection,x=w.model,k=w.count,O=w.pagination,E=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:E,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,d,h,p,v,m,y;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,d=void 0===f?null:f,h=a.key,p=a.query,v=a.options,r.prev=3,r.next=6,S[u.toLowerCase()]("/api/".concat(c).concat(h?"/".concat(h):"","?").concat(j.a.stringify(p)),d,v);case 6:return m=r.sent,y=m.data,y.collection&&h&&n("setWordBook",{rows:y.collection,key:h}),r.abrupt("return",y);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,d,h,p,v,m,y,g,b,w,_,x,k,O,E,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,d=s.method,h=void 0===d?"post":d,p=s.data,v=void 0===p?null:p,m=s.key,y=s.query,g=s.options,b=s.mute,w=void 0!==b&&b,n("setCommitting",!0),r.prev=4,r.next=7,S[h.toLowerCase()]("/api/".concat(l).concat(m?"/".concat(m):"","?").concat(j.a.stringify(y)),v,g);case 7:return _=r.sent,x=_.data,k=x.data,O=x.content,E=_.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:E,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 t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==K(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}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,d;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,S.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,d=f&&f.content||"系统错误请与管理员联系。",n("setStatus",{status:u,message:d});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(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 tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(r),!0).forEach((function(e){et(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function et(t,e,r){return e=rt(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rt(t){var e=nt(t,"string");return"symbol"===X(e)?e:String(e)}function nt(t,e){if("object"!==X(t)||null===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 ot=["loading","schema","status","message","single"],it=["loadSchema"],at=["views"],st=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.mapGetters;return{data:function(){return{storeNamespace:t}},computed:tt(tt({},n(ot)),i(at)),methods:tt({},o(it)),beforeCreate:function(){this.$store.hasModule(t)||J(this.$store,t,e)},created:function(){!this.schema&&this.loadSchema()},watch:{status:function(t){401===t&&(this.$router.push("/sign-in"),window.location.reload())}}}},ct=function(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{extends:t,mixins:[st("p-".concat(e),r)]}}},lt=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)},ut=[];function ft(t){return vt(t)||pt(t)||ht(t)||dt()}function dt(){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 ht(t,e){if(t){if("string"===typeof t)return mt(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)?mt(t,e):void 0}}function pt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function vt(t){if(Array.isArray(t))return mt(t)}function mt(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 yt={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(ft(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(){}},gt=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)},bt=[],wt=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)},_t=[];function xt(t){return xt="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},xt(t)}function kt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */kt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==xt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Ot(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 St(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ot(i,n,o,a,s,"next",t)}function s(t){Ot(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Et(t){return Pt(t)||Lt(t)||Nt(t)||jt()}function jt(){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 Nt(t,e){if(t){if("string"===typeof t)return Ct(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)?Ct(t,e):void 0}}function Lt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Pt(t){if(Array.isArray(t))return Ct(t)}function Ct(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 At(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 Tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?At(Object(r),!0).forEach((function(e){Rt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):At(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Rt(t,e,r){return e=Dt(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Dt(t){var e=It(t,"string");return"symbol"===xt(e)?e:String(e)}function It(t,e){if("object"!==xt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Mt=["loading","committing","data","status","message"],qt=["loadSchema","loadData","saveData","executeData","removeData","resetStatus"],Bt=["schema","model","idName","nodeName","parentIdName","titleSchema","titleName","findAll","find","findOne","config","apiURL","apiBaseURL"],Ft=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:Tt(Tt(Tt({},r(Mt)),o(Bt)),{},{configs:function(){var t=this.schema,e=t.configs,r=void 0===e?[]:e,n=t.resConfigs,o=void 0===n?[]:n,i=[].concat(Et(r),Et(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(Et(r),Et(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:Tt(Tt({},i(["replaceNamespace"])),n(qt)),created:function(){var t=this;return St(kt().mark((function e(){return kt().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())}}}},$t=function(t){return function(e){return{extends:t,mixins:[Ft("".concat(e))]}}},Vt=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()])},Ht=[],Ut={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(){}},Gt={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 zt(t){return zt="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},zt(t)}function Kt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Kt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==zt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Yt(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 Wt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Yt(i,n,o,a,s,"next",t)}function s(t){Yt(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Zt(t){return te(t)||Qt(t)||Xt(t)||Jt()}function Jt(){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 Xt(t,e){if(t){if("string"===typeof t)return ee(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)?ee(t,e):void 0}}function Qt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function te(t){if(Array.isArray(t))return ee(t)}function ee(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 re(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 ne(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?re(Object(r),!0).forEach((function(e){oe(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function oe(t,e,r){return e=ie(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ie(t){var e=ae(t,"string");return"symbol"===zt(e)?e:String(e)}function ae(t,e){if("object"!==zt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==zt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var se={props:{profileMode:{type:String,default:"page",enum:["page","embed","column","collapse","preview"]},layout:{type:String,default:"layout-view-model-list"}},data:function(){return{query:{},unwatchQuery: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"}}):"",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"}}):"",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.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 ne(ne({},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 ne(ne({},r),e)})):[]},filterValues:function(){var t=[].concat(Zt(this.filters),Zt(this.treeFilters)).filter((function(t){return!!t.value})).map((function(t){return[t.name,t.value]}));return ne(ne({},Object.fromEntries(t)),this.defaults)},dataSource:function(){return this.findAll},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 Wt(Kt().mark((function e(){return Kt().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.schema){e.next=3;break}return e.next=3,t.loadSchema();case 3:t.query=t.params.route&&t.params.route.query.close?ne(ne(ne({},t.query),t.params.filters),t.filterValues):ne(ne(ne(ne({},t.query),t.params.filters),t.filterValues),t.$route.query);case 4:case"end":return e.stop()}}),e)})))()},activated:function(){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.unwatchQuery&&this.unwatchQuery()},methods:{load:function(){var t=arguments,e=this;return Wt(Kt().mark((function r(){var n,o;return Kt().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=ne({},this.next)},handlePrevious:function(){this.actionModel=ne({},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=ne({},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,oe({},r,e))}}},ce={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 le(t){return he(t)||de(t)||fe(t)||ue()}function ue(){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 fe(t,e){if(t){if("string"===typeof t)return pe(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)?pe(t,e):void 0}}function de(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function he(t){if(Array.isArray(t))return pe(t)}function pe(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 ve={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(le(this.selections),le(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 me(t){return me="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},me(t)}function ye(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"!==me(n)||1!==Object.keys(n).length)return"object"===me(n)&&Object.keys(n).length>1?ye(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 ge=r("9f89");function be(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/\${([\s\S]+?)}/g;return ge(t,{reInterpolate:r})(e)}function we(t){return we="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},we(t)}function _e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_e=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==we(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function xe(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 ke(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){xe(i,n,o,a,s,"next",t)}function s(t){xe(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Oe=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")},Se={methods:{handleFile:function(t){var e=this;return ke(_e().mark((function r(){var n,o,i,a;return _e().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:a();case 11:case"end":return r.stop()}}),r)})))()},handleFilesUpload:function(t){var e=this;return ke(_e().mark((function t(){return _e().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 ke(_e().mark((function r(){var n,o;return _e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=function(){var r=ke(_e().mark((function r(){var n,o,i;return _e().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,Oe(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 ke(_e().mark((function n(){var o,i,a;return _e().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=ke(_e().mark((function e(){var n,i,a;return _e().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,Oe(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 ke(_e().mark((function r(){var n,o;return _e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=function(){var r=ke(_e().mark((function r(){var n,o,i;return _e().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,Oe(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 Ee(t){return Ee="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},Ee(t)}function je(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 Ne(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?je(Object(r),!0).forEach((function(e){Le(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):je(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Le(t,e,r){return e=Pe(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pe(t){var e=Ce(t,"string");return"symbol"===Ee(e)?e:String(e)}function Ce(t,e){if("object"!==Ee(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ee(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Ae(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ae=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Ee(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Te(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 Re(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Te(i,n,o,a,s,"next",t)}function s(t){Te(i,n,o,a,s,"throw",t)}a(void 0)}))}}var De=r("9f89"),Ie=/\${([\s\S]+?)}/g,Me={methods:{handleViewPicker:function(t){var e=this;return Re(Ae().mark((function t(){return Ae().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 Re(Ae().mark((function r(){var n,o,i,a,s,c,l,u,f,d;return Ae().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=Ne(Ne({},e.actionModel),{},{$parent:e.actionParams.$parent}),r.next=5,e.$api.get(De(o,{reInterpolate:Ie})(u));case 5:return f=r.sent,r.next=8,e.$api.get(De(i,{reInterpolate:Ie})(u));case 8:d=r.sent,e.actioning=!1,e.actionParams=Ne(Ne({},e.actionParams),{},{treeData:f.data&&f.data.collection,data:d.data&&d.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 Re(Ae().mark((function r(){var n,o,i,a,s,c,l,u,f,d,h;return Ae().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=Ne(Ne({},e.actionModel),{},{$parent:e.actionParams.$parent}),r.next=5,e.$api.get(De(o,{reInterpolate:Ie})(f));case 5:return d=r.sent,r.next=8,e.$api.get(De(i,{reInterpolate:Ie})(f));case 8:h=r.sent,e.actioning=!1,e.actionParams=Ne(Ne({},e.actionParams),{},{treeData:d.data&&d.data.collection,data:h.data&&h.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 Re(Ae().mark((function e(){return Ae().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 Re(Ae().mark((function r(){var n,o,i,a,s;return Ae().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=Ne(Ne({},e.actionModel),{},{$parent:e.actionParams.$parent}),r.next=5,e.$api.get(De(o,{reInterpolate:Ie})(a));case 5:s=r.sent,e.actioning=!1,e.actionParams=Ne(Ne({},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 qe(t){return qe="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},qe(t)}function Be(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 Fe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Be(Object(r),!0).forEach((function(e){Ue(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Be(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function $e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$e=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==qe(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}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)}))}}function Ue(t,e,r){return e=Ge(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ge(t){var e=ze(t,"string");return"symbol"===qe(e)?e:String(e)}function ze(t,e){if("object"!==qe(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==qe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ke={mixins:[Se,Me],methods:{handleRowAction:function(){},handleFindAll:function(){},handleFindOne:function(){},handleCreate:function(t){this.formMode="create",this.parentIdName&&this.actionModel&&(this.actionModel=Ue({},this.parentIdName,this.actionModel[this.nodeName])),this.showActionView()},handleUpdate:function(t){this.formMode="update",this.showActionView()},handleDelete:function(t){var e=this;return He($e().mark((function r(){return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:e.$confirm({title:t.name,content:"此操作将永久删除该数据, 是否继续?",okText:"确定",cancelText:"取消",onOk:function(){var r=He($e().mark((function r(){return $e().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();case 4: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 He($e().mark((function e(){return $e().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 He($e().mark((function r(){return $e().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 He($e().mark((function r(){return $e().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 He($e().mark((function n(){var o,i,a;return $e().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," 条"):"",r.$confirm({title:t.name,content:"确认对选定的".concat(a,"数据进行【").concat(t.name,"】操作?"),okText:"确定",cancelText:"取消",onOk:function(){var e=He($e().mark((function e(){return $e().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,r.saveData({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:""});case 2:t.params&&t.params.commit&&"remove"===t.params.commit.type&&(r.id?r.handleBack():r.findAll.length||r.load&&r.load()),t.params&&t.params.commit&&"load"===t.params.commit.type&&r.load&&r.load(),t.params&&t.params.commit&&"parent.load"===t.params.commit.type&&r.view&&r.view.load&&r.view.load();case 5:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}()});case 6:case"end":return n.stop()}}),n)})))()},handleEver:function(t){var e=this;return He($e().mark((function r(){var n;return $e().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 He($e().mark((function r(){var n;return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:n=t.legend,n=be(n,Fe({$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 He($e().mark((function r(){var n;return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:n=t.legend,n=be(n,Fe({$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 He($e().mark((function e(){var r,n;return $e().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.load){e.next=5;break}return e.next=3,t.load();case 3:r=e.sent,r instanceof Error&&(n=r.response.data.code,404===n&&t.handleBack());case 5: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=Fe({},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 Ye(t){return Ye="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},Ye(t)}function We(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */We=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Ye(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Ze(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 Je(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ze(Object(r),!0).forEach((function(e){Xe(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ze(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Xe(t,e,r){return e=Qe(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qe(t){var e=tr(t,"string");return"symbol"===Ye(e)?e:String(e)}function tr(t,e){if("object"!==Ye(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function er(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 rr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){er(i,n,o,a,s,"next",t)}function s(t){er(i,n,o,a,s,"throw",t)}a(void 0)}))}}var nr={methods:{handleFlowReport:function(t){var e=this;return rr(We().mark((function r(){var n,o;return We().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:Je({},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=Je(Je({},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 rr(We().mark((function r(){var n,o;return We().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:Je({},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=Je(Je({},n),{},{data:Je({},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 rr(We().mark((function r(){var n,o;return We().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:Je({},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=Je(Je({},n),{},{data:Je({},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 rr(We().mark((function r(){var n,o;return We().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:Je({},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 or(t){return or="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},or(t)}function ir(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ir=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==or(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ar(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 sr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ar(i,n,o,a,s,"next",t)}function s(t){ar(i,n,o,a,s,"throw",t)}a(void 0)}))}}var cr={methods:{commit:function(){return sr(ir().mark((function t(){return ir().wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()}}};function lr(t){return lr="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},lr(t)}function ur(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ur=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==lr(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function fr(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 dr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){fr(i,n,o,a,s,"next",t)}function s(t){fr(i,n,o,a,s,"throw",t)}a(void 0)}))}}function hr(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 pr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?hr(Object(r),!0).forEach((function(e){vr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vr(t,e,r){return e=mr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mr(t){var e=yr(t,"string");return"symbol"===lr(e)?e:String(e)}function yr(t,e){if("object"!==lr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==lr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var gr={create:["createonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},br={mixins:[Ke,nr,cr],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?this.model.actions.filter((function(e){return("none"===e.selected&&!t.selections.length&&!t.profile||"single"===e.selected&&(1===t.selections.length||t.profile&&"profile"!==e.action)||"somewhat"===e.selected&&(t.selections.length||t.profile)||"mulpitle"===e.selected&&t.selections.length>1||!e.selected)&&t.showAction(e)&&!t.actionRowEditing})):[];return 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=a.every((function(t){return ye(n,pr(pr({},t),{},{$parent:i}))})):i&&(s=ye(n,{$parent:i})),r?s:!s},actionBeforeDriver:function(t){var e=this;return dr(ur().mark((function r(){var n,o,i,a,s,c,l;return ur().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 dr(ur().mark((function o(){var i,a,s,c,l;return ur().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=pr(pr(pr({},e),r),n.defaults),n.actionParams=pr(pr({},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=pr({},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 dr(ur().mark((function n(){var o,i,a,s,c,l,u,f,d,h,p,v,m,y,g,b,w,_,x,k,O,S,E;return ur().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,d=l.params,h=void 0===d?{}:d,p=h.commit,v=void 0===p?{}:p,m=v.type,y=v.redirectProfile,g=h.autofill,b=r.schema,i.length>1?(delete t[s],t=i.map((function(e){return pr(pr({},e),t)}))):a&&!c.length&&(t=pr(pr({},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:m,params:o});case 11:if(k=n.sent,k){if(g){for(E in O=pr({},k),S=r.filterColumns().map((function(t){return t.name})),O)S.includes(E)||delete O[E];localStorage.setItem("form_".concat(b.id),JSON.stringify(O))}r.actionCommitResult.data=function(){return{data:k}},y&&r.handleModelProfile&&r.handleModelProfile(k),r.id&&m&&"remove"===m&&r.handleBack(),m&&"load"===m&&r.load(),m&&"parent.load"===m&&r.view&&r.view.load&&r.view.load()}case 13: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 gr[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"!==lr(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"!==lr(t[r][n])?t[r][n]:JSON.stringify(t[r][n])):e.append("".concat(r,".").concat(n),t[r][n]instanceof File||"object"!==lr(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=[]}},wr=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},_r=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},xr=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)},kr={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 wr(t,r)})).join(","):wr(e,r)),"wordbook"===r.dataType&&r.typeObject&&e&&(n=["checkbox","multiple","tree-suggests"].includes(r.control)?e.split(",").map((function(t){return _r(t,r)})).join(","):_r(e,r));var o=["year","month","date","datetime","time"];return o.includes(r.dataType)&&(e||0===e)&&(n=xr(e,r,this.moment)),n}}},Or=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))},Sr=[],Er={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}}},jr=Er;function Nr(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 Lr=Nr(jr,Or,Sr,!1,null,null,null),Pr=Lr.exports,Cr=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))},Ar=[],Tr={props:["item"],computed:{component:function(){return{props:["item"],template:this.item||"<div></div>"}}}},Rr=Tr,Dr=Nr(Rr,Cr,Ar,!1,null,null,null),Ir=Dr.exports,Mr={ListTable:Pr,ListNormal:Ir},qr=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)},Br=[];function Fr(t){return Fr="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},Fr(t)}function $r(t){return Gr(t)||Ur(t)||Hr(t)||Vr()}function Vr(){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 Hr(t,e){if(t){if("string"===typeof t)return zr(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)?zr(t,e):void 0}}function Ur(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Gr(t){if(Array.isArray(t))return zr(t)}function zr(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 Kr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Kr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Fr(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Yr(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 Wr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Yr(i,n,o,a,s,"next",t)}function s(t){Yr(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Zr(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 Jr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zr(Object(r),!0).forEach((function(e){Xr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Xr(t,e,r){return e=Qr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qr(t){var e=tn(t,"string");return"symbol"===Fr(e)?e:String(e)}function tn(t,e){if("object"!==Fr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Fr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var en={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:Jr({},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 Wr(Kr().mark((function e(){return Kr().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 Wr(Kr().mark((function e(){var r,n,o,i,a;return Kr().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($r(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}}},rn=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",[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.readonly?t._e():e("span",[t._v(" - "),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){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(t.index)}},slot:"actions"}):t._e()],1)}}],null,!1,2665482914)}):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()},nn=[];function on(t){return on="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},on(t)}function an(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */an=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==on(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function sn(t){return fn(t)||un(t)||ln(t)||cn()}function cn(){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 ln(t,e){if(t){if("string"===typeof t)return dn(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)?dn(t,e):void 0}}function un(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function fn(t){if(Array.isArray(t))return dn(t)}function dn(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 hn(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 pn(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){hn(i,n,o,a,s,"next",t)}function s(t){hn(i,n,o,a,s,"throw",t)}a(void 0)}))}}function vn(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 mn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vn(Object(r),!0).forEach((function(e){yn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function yn(t,e,r){return e=gn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gn(t){var e=bn(t,"string");return"symbol"===on(e)?e:String(e)}function bn(t,e){if("object"!==on(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==on(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var wn={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,e,r;return null!==(t=this.schema)&&void 0!==t&&null!==(e=t.params)&&void 0!==e&&null!==(r=e.control)&&void 0!==r&&r.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 ye(Object.fromEntries([[r.key,e[r.value]]]),mn(mn({},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.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}),mn(mn(mn({},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=i[c].split(";");r.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(mn(mn({},r),this.formModel)[t])?this.requireModel=!0:"filter"!==this.type&&(this.requireModel=!1)},show:function(t,e){var r=this.params.$parent;e.includes(mn(mn({},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(mn(mn({},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,d=a||u.titleName||u.idName;if(!this.selections.length)return"transfer"===e&&this.$emit("change",""),this.$message.error("请选择数据");if(l){var h=this.selections[0],p=Object.keys(l).map((function(t){return{name:t,value:h[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[d]})).join(","):this.selections[0][d],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 pn(an().mark((function r(){var n,o,i,a,s,c,l;return an().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=sn(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 pn(an().mark((function e(){var r,n,o,i,a,s,c;return an().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=sn(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 pn(an().mark((function e(){var r,n,o,i,a,s,c;return an().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}}},_n=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("a-input",{staticStyle:{display:"none"},attrs:{type:"file",multiple:""},on:{change:t.handleUploadChange}})],1)},xn=[],kn=(r("690b"),r("521b"),r("55ab"),r("37eb"));function On(t){return On="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},On(t)}function Sn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Sn=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==On(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function En(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 jn(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){En(i,n,o,a,s,"next",t)}function s(t){En(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Nn(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Ln(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 Ln(t,e){if(t){if("string"===typeof t)return Pn(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)?Pn(t,e):void 0}}function Pn(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 Cn={props:{value:{type:String,default:""},placeholder:{type:String,default:"请编辑内容"},disabled:{type:Boolean},params:{type:Object}},components:{quillEditor:kn["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"]')||null;t&&t.click()},handleUploadChange:function(t){var e=new FormData,r=t.target.files;if(r&&r.length){var n,o=Nn(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)},getfileurl:function(t){var e=this;return jn(Sn().mark((function r(){var n,o,i;return Sn().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){this.pos=this.quill.getSelection().index,this.quill.insertEmbed(this.pos,"image",t),this.quill.setSelection(this.pos+1)}}},An=Cn,Tn=(r("2f24"),Nr(An,_n,xn,!1,null,null,null)),Rn=Tn.exports,Dn=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)},In=[];function Mn(t){return Mn="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},Mn(t)}function qn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */qn=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Mn(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Bn(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 Fn(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Bn(i,n,o,a,s,"next",t)}function s(t){Bn(i,n,o,a,s,"throw",t)}a(void 0)}))}}var $n={mixins:[en],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 Fn(qn().mark((function e(){var r,n,o,i,a;return qn().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)}}},Vn=$n,Hn=Nr(Vn,Dn,In,!1,null,null,null),Un=Hn.exports;function Gn(t){return Gn="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},Gn(t)}function zn(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 Kn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zn(Object(r),!0).forEach((function(e){Yn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Yn(t,e,r){return e=Wn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wn(t){var e=Zn(t,"string");return"symbol"===Gn(e)?e:String(e)}function Zn(t,e){if("object"!==Gn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Gn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Jn=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",Kn({},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)},Xn=[],Qn=r("5aeb"),to={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 Qn["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;Qn["lazyAMapApiLoaderInstance"]&&Qn["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("根据经纬度查询地址失败")}))}}},eo=to,ro=(r("cf3f"),Nr(eo,Jn,Xn,!1,null,"09b502b8",null)),no=ro.exports;function oo(t){return oo="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},oo(t)}function io(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 ao(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?io(Object(r),!0).forEach((function(e){so(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):io(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function so(t,e,r){return e=co(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function co(t){var e=lo(t,"string");return"symbol"===oo(e)?e:String(e)}function lo(t,e){if("object"!==oo(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==oo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var uo=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",ao({},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)},fo=[];function ho(t){return ho="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},ho(t)}function po(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 vo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?po(Object(r),!0).forEach((function(e){mo(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):po(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mo(t,e,r){return e=yo(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yo(t){var e=go(t,"string");return"symbol"===ho(e)?e:String(e)}function go(t,e){if("object"!==ho(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ho(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var bo={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 Qn["AMapManager"]},methods:{initMap:function(){var t=this;Qn["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(vo({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]}}}},wo=bo,_o=(r("fa93"),Nr(wo,uo,fo,!1,null,"03415b3c",null)),xo=_o.exports;function ko(t){return jo(t)||Eo(t)||So(t)||Oo()}function Oo(){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 So(t,e){if(t){if("string"===typeof t)return No(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)?No(t,e):void 0}}function Eo(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function jo(t){if(Array.isArray(t))return No(t)}function No(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 Lo=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(ko(i),ko(t.checkedKeys)),treeData:t.filterTreeNodes},on:{check:function(e,r){t.onChecked(e,r,[].concat(ko(i),ko(t.checkedKeys)),a)},select:function(e,r){t.onChecked(e,r,[].concat(ko(i),ko(t.checkedKeys)),a)}}})],1):t._e()]}}])})],1)],1)},Po=[];function Co(t){return Co="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},Co(t)}function Ao(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ao=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Co(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function To(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 Ro(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){To(i,n,o,a,s,"next",t)}function s(t){To(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Do=r("9f89"),Io=/\${([\s\S]+?)}/g,Mo={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&&!ye(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 Ro(Ao().mark((function e(){var r,n;return Ao().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(Do(r,{reInterpolate:Io})());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))}}},qo=Mo,Bo=(r("014f"),Nr(qo,Lo,Po,!1,null,"d5aa2650",null)),Fo=Bo.exports,$o=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)},Vo=[],Ho={props:{schema:{type:Object},pickerMode:{type:String,enum:["single","multiple"],default:"single"},mode:{type:String,default:"picker"}}};function Uo(t){return Uo="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},Uo(t)}function Go(t){return Wo(t)||Yo(t)||Ko(t)||zo()}function zo(){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 Ko(t,e){if(t){if("string"===typeof t)return Zo(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)?Zo(t,e):void 0}}function Yo(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Wo(t){if(Array.isArray(t))return Zo(t)}function Zo(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 Jo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Jo=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Uo(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Xo(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 Qo(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Xo(i,n,o,a,s,"next",t)}function s(t){Xo(i,n,o,a,s,"throw",t)}a(void 0)}))}}function ti(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 ei(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ti(Object(r),!0).forEach((function(e){ri(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ti(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ri(t,e,r){return e=ni(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ni(t){var e=oi(t,"string");return"symbol"===Uo(e)?e:String(e)}function oi(t,e){if("object"!==Uo(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Uo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ii={mixins:[Ho],components:ei({},Wg),data:function(){return{pageKey:null,viewKey:null,storeNamespace:null,loading:!0,selections:[],idName:"",titleName:""}},created:function(){this.initView()},computed:{createView:function(){return{extends:$t(Wg.ModelList)("".concat(this.storeNamespace))}}},methods:{create:$t,initView:function(){var t=this;return Qo(Jo().mark((function e(){var r,n,o;return Jo().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(Go(this.selections),Go(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)}}},ai=ii,si=Nr(ai,$o,Vo,!1,null,null,null),ci=si.exports;function li(t){return li="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},li(t)}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){di(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 di(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=pi(t,"string");return"symbol"===li(e)?e:String(e)}function pi(t,e){if("object"!==li(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==li(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var vi=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",fi(fi({},t.options),t.$attrs),!1),t.$listeners),[t._t("default")],2)},mi=[],yi={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")]}}},gi=yi,bi=Nr(gi,vi,mi,!1,null,null,null),wi=bi.exports,_i={mixins:[wn],components:{Editor:Rn,Picker:ci,Popup:wi,VerificationCode:Un,MapMarker:no,MapPolygon:xo,Transfer:Fo},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.$emit("change",this.options[0].value)},watch:{value:function(t,e){var r=this.$refs.aInput;r&&(r.setValue(t),this.$refs.item.clearValidate())}}},xi=_i,ki=(r("4c8b"),Nr(xi,rn,nn,!1,null,null,null)),Oi=ki.exports,Si={mixins:[en],components:{Item:Oi},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}}},Ei=Si,ji=Nr(Ei,qr,Br,!1,null,null,null),Ni=ji.exports,Li=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)},Pi=[];function Ci(t){return Ci="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},Ci(t)}function Ai(t,e,r){return e=Ti(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ti(t){var e=Ri(t,"string");return"symbol"===Ci(e)?e:String(e)}function Ri(t,e){if("object"!==Ci(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ci(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Di={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,Ai({},r,e))}}},Ii=Di,Mi=Nr(Ii,Li,Pi,!1,null,null,null),qi=Mi.exports,Bi=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)},Fi=[],$i={inject:["page","view"],props:{action:{type:Object},modelViewType:{type:String}},computed:{createView:function(){return{extends:$t(Wg["Model".concat(this.modelViewType)])("".concat(this.view.storeNamespace))}}}},Vi=$i,Hi=Nr(Vi,Bi,Fi,!1,null,null,null),Ui=Hi.exports,Gi=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))},zi=[],Ki={},Yi=Nr(Ki,Gi,zi,!1,null,null,null),Wi=Yi.exports,Zi=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)},Ji=[];function Xi(t){return Xi="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},Xi(t)}function Qi(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 ta(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Qi(Object(r),!0).forEach((function(e){ea(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qi(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ea(t,e,r){return e=ra(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ra(t){var e=na(t,"string");return"symbol"===Xi(e)?e:String(e)}function na(t,e){if("object"!==Xi(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Xi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var oa={mixins:[kr],components:{Item:Oi},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 ta({},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])}}},ia=oa,aa=Nr(ia,Zi,Ji,!1,null,null,null),sa=aa.exports;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=da(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function da(t){var e=ha(t,"string");return"symbol"===ca(e)?e:String(e)}function ha(t,e){if("object"!==ca(t)||null===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:[Ut,Gt,ve,br,kr,se,ce],components:ua(ua(ua({},Mr),Wg),{},{FilterForm:Ni,ActionGroup:qi,ActionView:Ui,PaginationSize:Wi,Popup:wi,Cell:sa})},va=pa,ma=(r("ca3b"),Nr(va,Vt,Ht,!1,null,null,null)),ya=ma.exports,ga=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)},ba=[];function wa(t){return wa="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},wa(t)}function _a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_a=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==wa(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function xa(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 ka(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){xa(i,n,o,a,s,"next",t)}function s(t){xa(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Oa={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||ye(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 ka(_a().mark((function r(){var n,o,i;return _a().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 Sa(t){return La(t)||Na(t)||ja(t)||Ea()}function Ea(){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 ja(t,e){if(t){if("string"===typeof t)return Pa(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)?Pa(t,e):void 0}}function Na(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function La(t){if(Array.isArray(t))return Pa(t)}function Pa(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 Ca=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(Sa(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:r.name,params:{$parent:t.profile}}})],1)],1)})),1)],1):t._e()],1)},Aa=[],Ta={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(){}},Ra=function(){var t=this,e=t._self._c;return e("tr",{staticClass:"ant-descriptions-row"},[t._t("default")],2)},Da=[],Ia={},Ma=Ia,qa=Nr(Ma,Ra,Da,!1,null,null,null),Ba=qa.exports;function Fa(t){return Fa="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},Fa(t)}function $a(t,e,r){return e=Va(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Va(t){var e=Ha(t,"string");return"symbol"===Fa(e)?e:String(e)}function Ha(t,e){if("object"!==Fa(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Fa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ua=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},Ga={DescriptionsItem:Ta,components:{Row:Ba},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,r=this.title,n=this.bordered,o=this.size,i=this.colon,a=this.layout,s=this.inline,c=this.column,l=this.$slots,u=this.profile,f=Ua(l.default,c);return t("div",{class:(e={"ant-descriptions":!0},$a(e,"ant-descriptions-".concat(o),!0),$a(e,"ant-descriptions-bordered",!!n),$a(e,"ant-descriptions-profile",!!u),e)},[r&&t("div",{class:"ant-descriptions-title"},[r]),!r&&l.title&&t("div",{class:"ant-descriptions-title"},[l.title]),t("div",{class:"ant-descriptions-view"},[t("table",[t("tbody",[f.map((function(e){return"vertical"===a?[t(Ba,[" ",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(Ba,[" ",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(Ba,[" ",e.map((function(e){var r=e.componentOptions.propsData,o=r.label,a=r.span,c=r.align,l=r.tooltip;return n||!s?[t("th",{class:"ant-descriptions-item-label"},l?[o,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;"})])]:[o]),t("td",{class:"ant-descriptions-item-content",style:{"text-align":c,"white-space":"pre-wrap"},attrs:{colSpan:a?2*a-1:""}},[e])]:t("td",{class:"ant-descriptions-item",attrs:{colSpan:a},style:{"text-align":c}},l?[t("span",{class:{"ant-descriptions-item-label":!0,"ant-descriptions-item-colon":i}},[o,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":i}},[o]),t("span",{class:"ant-descriptions-item-content",style:"white-space:pre-wrap"},[e])])}))," "])}))])])]),l.footer&&t("div",[l.footer])])},renderError:function(){}},za=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}})])},Ka=[],Ya={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")}}},Wa=Ya,Za=Nr(Wa,za,Ka,!1,null,null,null),Ja=Za.exports;function Xa(t){return Xa="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},Xa(t)}function Qa(t){return ns(t)||rs(t)||es(t)||ts()}function ts(){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 es(t,e){if(t){if("string"===typeof t)return os(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)?os(t,e):void 0}}function rs(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ns(t){if(Array.isArray(t))return os(t)}function os(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 is(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 as(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?is(Object(r),!0).forEach((function(e){ss(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):is(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ss(t,e,r){return e=cs(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cs(t){var e=ls(t,"string");return"symbol"===Xa(e)?e:String(e)}function ls(t,e){if("object"!==Xa(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Xa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var us,fs,ds=Ga.DescriptionsItem,hs={components:as({Descriptions:Ga,DescriptionsItem:ds,Frame:Ja},Wg),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:Qa(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&Qa(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,showDescItems:{}}},methods:{handleChange:function(t){this.activeTabKey=t},templateURL:function(t,e){return be(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 as(as({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:$t(Wg.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=Qa(this.subviews),this.id=this.view.id}}},ps=hs,vs=(r("5dd0"),Nr(ps,Ca,Aa,!1,null,null,null)),ms=vs.exports,ys={},gs=Nr(ys,us,fs,!1,null,null,null),bs=gs.exports;function ws(t){return Os(t)||ks(t)||xs(t)||_s()}function _s(){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 xs(t,e){if(t){if("string"===typeof t)return Ss(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)?Ss(t,e):void 0}}function ks(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Os(t){if(Array.isArray(t))return Ss(t)}function Ss(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 Es=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(ws(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:r.name,params:{$parent:t.profile}}})],1)],1)}))],2)],1)},js=[];function Ns(t){return Ns="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},Ns(t)}function Ls(t){return Ts(t)||As(t)||Cs(t)||Ps()}function Ps(){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 Cs(t,e){if(t){if("string"===typeof t)return Rs(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)?Rs(t,e):void 0}}function As(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Ts(t){if(Array.isArray(t))return Rs(t)}function Rs(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 Ds(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 Is(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ds(Object(r),!0).forEach((function(e){Ms(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ds(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ms(t,e,r){return e=qs(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qs(t){var e=Bs(t,"string");return"symbol"===Ns(e)?e:String(e)}function Bs(t,e){if("object"!==Ns(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ns(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Fs=Ga.DescriptionsItem,$s={components:Is({Descriptions:Ga,DescriptionsItem:Fs,Frame:Ja},Wg),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:Ls(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&Ls(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 be(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 Is(Is({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:$t(Wg.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}},activated:function(){this.affix=!0},deactivated:function(){this.affix=!1}},Vs=$s,Hs=(r("e41e"),Nr(Vs,Es,js,!1,null,null,null)),Us=Hs.exports;function Gs(t){return Ws(t)||Ys(t)||Ks(t)||zs()}function zs(){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 Ks(t,e){if(t){if("string"===typeof t)return Zs(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)?Zs(t,e):void 0}}function Ys(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Ws(t){if(Array.isArray(t))return Zs(t)}function Zs(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 Js=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(Gs(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:r.name,params:{$parent:t.profile}}})],1)],1)})),1)],1):t._e()},Xs=[];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 tc(t){return oc(t)||nc(t)||rc(t)||ec()}function ec(){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 rc(t,e){if(t){if("string"===typeof t)return ic(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)?ic(t,e):void 0}}function nc(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function oc(t){if(Array.isArray(t))return ic(t)}function ic(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 ac(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 sc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ac(Object(r),!0).forEach((function(e){cc(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ac(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cc(t,e,r){return e=lc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lc(t){var e=uc(t,"string");return"symbol"===Qs(e)?e:String(e)}function uc(t,e){if("object"!==Qs(t)||null===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 fc=Ga.DescriptionsItem,dc={components:sc({Descriptions:Ga,DescriptionsItem:fc,Frame:Ja},Wg),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",id:this.view.id,parentIds:this.view.parentIds&&tc(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,showDescItems:{}}},methods:{handleChange:function(t){this.activeTabKey=t},templateURL:function(t,e){return be(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)}},computed:{tabs:function(){return this.views.map((function(t,e){return sc(sc({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:$t(Wg.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)})):[]},views:function(){return[{name:this.view.configs&&this.view.configs["profile.tabs.profileTitle"]?this.view.configs["profile.tabs.profileTitle"]:"详情",type:"profile"}].concat(tc(this.subviews))}},watch:{profile:function(){this.id=this.view.id}}},hc=dc,pc=(r("2a6c"),Nr(hc,Js,Xs,!1,null,null,null)),vc=pc.exports,mc={ProfileNormal:ms,ProfilePortal:bs,ProfileTile:Us,ProfileTabs:vc};function yc(t){return yc="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},yc(t)}function gc(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 bc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gc(Object(r),!0).forEach((function(e){wc(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gc(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function wc(t,e,r){return e=_c(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _c(t){var e=xc(t,"string");return"symbol"===yc(e)?e:String(e)}function xc(t,e){if("object"!==yc(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==yc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var kc={mixins:[Ut,Gt,ve,br,kr,Oa],components:bc({ActionGroup:qi,ActionView:Ui,Popup:wi,Cell:sa},mc)},Oc=kc,Sc=(r("a613"),Nr(Oc,ga,ba,!1,null,null,null)),Ec=Sc.exports,jc=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)},Nc=[],Lc={create:["createonly","updateonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},Pc={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 Lc[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")}}},Cc=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)},Ac=[],Tc={mixins:[en],components:{Item:Oi}},Rc=Tc,Dc=Nr(Rc,Cc,Ac,!1,null,null,null),Ic=Dc.exports,Mc=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)},qc=[];function Bc(t){return Bc="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},Bc(t)}function Fc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Fc=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Bc(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function $c(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 Vc(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){$c(i,n,o,a,s,"next",t)}function s(t){$c(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Hc={mixins:[en],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 Vc(Fc().mark((function e(){var r;return Fc().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 Vc(Fc().mark((function e(){var r,n,o,i,a,s,c,l,u,f,d,h;return Fc().wrap((function(e){while(1)switch(e.prev=e.next){case 0:h=function(){return h=Vc(Fc().mark((function t(e){var r,h,p;return Fc().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.status="uploading",r=o.key,h=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:h,mute:!0});case 7:f++,e.status="done",f>=u.length?(s(),c(),l.success("上传完成")):d(u[f]);case 10:case"end":return t.stop()}}),t)}))),h.apply(this,arguments)},d=function(t){return h.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,d(u[f]);case 6:case"end":return e.stop()}}),e)})))()}}},Uc=Hc,Gc=Nr(Uc,Mc,qc,!1,null,null,null),zc=Gc.exports,Kc=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))},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(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 Jc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zc(Object(r),!0).forEach((function(e){Xc(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zc(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Xc(t,e,r){return e=Qc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qc(t){var e=tl(t,"string");return"symbol"===Wc(e)?e:String(e)}function tl(t,e){if("object"!==Wc(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Wc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var el={mixins:[en],components:{Picker:ci},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}),Jc(Jc({},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 Xc({},r,t[e])})):t}}},rl=el,nl=Nr(rl,Kc,Yc,!1,null,null,null),ol=nl.exports,il=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)},al=[];function sl(t){return sl="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},sl(t)}function cl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */cl=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==sl(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ll(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 ul(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ll(i,n,o,a,s,"next",t)}function s(t){ll(i,n,o,a,s,"throw",t)}a(void 0)}))}}var fl={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 ul(cl().mark((function r(){var n,o,i,a,s,c,l,u;return cl().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,S[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 ul(cl().mark((function e(){var r,n,o,i;return cl().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,S.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 ul(cl().mark((function r(){var n,o,i,a,s,c;return cl().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,S.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 dl(t){return dl="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},dl(t)}function hl(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 pl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?hl(Object(r),!0).forEach((function(e){vl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hl(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vl(t,e,r){return e=ml(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ml(t){var e=yl(t,"string");return"symbol"===dl(e)?e:String(e)}function yl(t,e){if("object"!==dl(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==dl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}for(var gl=Object(u["createNamespacedHelpers"])("m-algorithm"),bl=gl.mapState,wl=gl.mapActions,_l=["loading","data","message"],xl=["loadData","loadDistrict","getResult"],kl={computed:pl({},bl(_l)),methods:pl({},wl(xl)),beforeCreate:function(){this.$store.state["m-algorithm"]||this.$store.registerModule("m-algorithm",fl)}},Ol=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)},Sl=[],El=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)},jl=[],Nl={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}}},Ll=Nl,Pl=Nr(Ll,El,jl,!1,null,null,null),Cl=Pl.exports,Al=Ga.DescriptionsItem,Tl={props:{title:{type:String},data:{type:Array,require:!0},defaultCheckedList:{type:Array}},components:{Descriptions:Ga,DescriptionsItem:Al,AlgorithmParams:Cl},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:{}},Rl=Tl,Dl=(r("a59b"),Nr(Rl,Ol,Sl,!1,null,null,null)),Il=Dl.exports,Ml=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)},ql=[],Bl={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}}))}}))}}))||[]}}},Fl=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}})},$l=[],Vl=r("2364"),Hl=null,Ul={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){Hl&&Hl.dispose();var e=Vl["Uri"].parse("json://grid/settings.json");Hl=Vl["editor"].create(this.$refs.monaco,{value:JSON.stringify(t,null,"\t"),language:"json",Uri:e})}},watch:{value:function(t){this.getResult(t)}}},Gl=Ul,zl=Nr(Gl,Fl,$l,!1,null,null,null),Kl=zl.exports,Yl=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)},Wl=[],Zl=[],Jl=[],Xl=[],Ql=[],tu=1901;tu<=2030;tu++)Zl.push("".concat(tu));for(var eu=1;eu<=12;eu++)Jl.push(eu<10?"0".concat(eu):"".concat(eu));for(var ru=0;ru<=23;ru++)Xl.push(ru<10?"0".concat(ru):"".concat(ru));for(var nu=0;nu<=59;nu++)Ql.push(nu<10?"0".concat(nu):"".concat(nu));var ou={props:{isLunar:{type:Boolean,default:!1}},data:function(){return{years:Zl,year:"1901",months:Jl,month:"01",day:"01",hours:Xl,hour:"00",minutes:Ql,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)}}},iu=ou,au=(r("e558"),Nr(iu,Yl,Wl,!1,null,null,null)),su=au.exports,cu=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)},lu=[],uu=[{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"}],fu={mixins:[kl],data:function(){return{columns:uu,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}})}}},du=fu,hu=Nr(du,cu,lu,!1,null,null,null),pu=hu.exports;function vu(t){return vu="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},vu(t)}function mu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */mu=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==vu(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function yu(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 gu(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){yu(i,n,o,a,s,"next",t)}function s(t){yu(i,n,o,a,s,"throw",t)}a(void 0)}))}}var bu=["流年","流月","商务","健康","婚姻","爱情","工作","出行","学业","财运","家宅"],wu={mixins:[kl,Bl],props:["algorithmList"],components:{CodeEditor:Kl,DateTimePicker:su,ProfileSelect:pu},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:bu,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 gu(mu().mark((function r(){return mu().wrap((function(r){while(1)switch(r.prev=r.next){case 0:e.profile.is_submit=t,e.$refs.profileForm.validate(function(){var r=gu(mu().mark((function r(n){var o;return mu().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)}}},_u=wu,xu=Nr(_u,Ml,ql,!1,null,null,null),ku=xu.exports;function Ou(t){return Ou="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},Ou(t)}function Su(t){return Lu(t)||Nu(t)||ju(t)||Eu()}function Eu(){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 ju(t,e){if(t){if("string"===typeof t)return Pu(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)?Pu(t,e):void 0}}function Nu(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Lu(t){if(Array.isArray(t))return Pu(t)}function Pu(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 Cu(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 Au(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Cu(Object(r),!0).forEach((function(e){Tu(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cu(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Tu(t,e,r){return e=Ru(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ru(t){var e=Du(t,"string");return"symbol"===Ou(e)?e:String(e)}function Du(t,e){if("object"!==Ou(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ou(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Iu={mixins:[kl],components:{CheckboxGroup:Il,AlgorithmForm:ku},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=Au(Au({},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=Su(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=Su(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(Su(e),Su(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(Su(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()}}},Mu=Iu,qu=(r("53e9"),Nr(Mu,il,al,!1,null,null,null)),Bu=qu.exports;function Fu(t){return Uu(t)||Hu(t)||Vu(t)||$u()}function $u(){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 Vu(t,e){if(t){if("string"===typeof t)return Gu(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)?Gu(t,e):void 0}}function Hu(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Uu(t){if(Array.isArray(t))return Gu(t)}function Gu(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 zu=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(Fu(i),Fu(t.checkedKeys)),treeData:t.filterTreeNodes},on:{check:function(e,r){t.onChecked(e,r,[].concat(Fu(i),Fu(t.checkedKeys)),a)},select:function(e,r){t.onChecked(e,r,[].concat(Fu(i),Fu(t.checkedKeys)),a)}}})],1):t._e()]}}])})],1)},Ku=[];function Yu(t){return Yu="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},Yu(t)}function Wu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Wu=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Yu(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Zu(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 Ju(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Zu(i,n,o,a,s,"next",t)}function s(t){Zu(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Xu(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 Qu(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Xu(Object(r),!0).forEach((function(e){tf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xu(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tf(t,e,r){return e=ef(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ef(t){var e=rf(t,"string");return"symbol"===Yu(e)?e:String(e)}function rf(t,e){if("object"!==Yu(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Yu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var nf={mixins:[en],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&&!ye(o,a)||i&&ye(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=Qu(Qu({},this.actionModel),{},tf({},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=Qu(Qu({},this.actionModel),{},tf({},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 Ju(Wu().mark((function e(){return Wu().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))}}},of=nf,af=(r("e58e"),Nr(of,zu,Ku,!1,null,"0ce5108d",null)),sf=af.exports,cf=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}})},lf=[];function uf(t){return uf="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},uf(t)}function ff(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ff=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==uf(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function df(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 hf(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){df(i,n,o,a,s,"next",t)}function s(t){df(i,n,o,a,s,"throw",t)}a(void 0)}))}}function pf(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 vf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pf(Object(r),!0).forEach((function(e){mf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mf(t,e,r){return e=yf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yf(t){var e=gf(t,"string");return"symbol"===uf(e)?e:String(e)}function gf(t,e){if("object"!==uf(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==uf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var bf={mixins:[en],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=vf(vf({},this.actionModel),{},mf({},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=vf(vf({},this.actionModel),{},mf({},this.valuesName,r))},handleSubmit:function(){var t=this;return hf(ff().mark((function e(){return ff().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.handleCommit();case 1:case"end":return e.stop()}}),e)})))()}}},wf=bf,_f=Nr(wf,cf,lf,!1,null,null,null),xf=_f.exports,kf=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)}}])})},Of=[];function Sf(t){return Sf="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},Sf(t)}function Ef(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 jf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ef(Object(r),!0).forEach((function(e){Nf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ef(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Nf(t,e,r){return e=Lf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Lf(t){var e=Pf(t,"string");return"symbol"===Sf(e)?e:String(e)}function Pf(t,e){if("object"!==Sf(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Sf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Cf(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Cf=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Sf(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Af(t){return If(t)||Df(t)||Rf(t)||Tf()}function Tf(){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 Rf(t,e){if(t){if("string"===typeof t)return Mf(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)?Mf(t,e):void 0}}function Df(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function If(t){if(Array.isArray(t))return Mf(t)}function Mf(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 qf(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 Bf(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){qf(i,n,o,a,s,"next",t)}function s(t){qf(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Ff={mixins:[en],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 Bf(Cf().mark((function e(){var r,n;return Cf().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=Af(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=jf(jf({},this.actionModel),{},Nf({},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))}}},$f=Ff,Vf=Nr($f,kf,Of,!1,null,null,null),Hf=Vf.exports,Uf=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)},Gf=[],zf=r("336c"),Kf=r.n(zf);function Yf(t){return Yf="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},Yf(t)}function Wf(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Wf=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Yf(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Zf(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 Jf(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Zf(i,n,o,a,s,"next",t)}function s(t){Zf(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Xf(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 Qf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Xf(Object(r),!0).forEach((function(e){td(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function td(t,e,r){return e=ed(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ed(t){var e=rd(t,"string");return"symbol"===Yf(e)?e:String(e)}function rd(t,e){if("object"!==Yf(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Yf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}Kf.a.track(!1);var nd=r("019f"),od={mixins:[en],components:{Item:Oi},data:function(){return{actionModel:Qf(Qf({},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 Jf(Wf().mark((function e(){return Wf().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 Jf(Wf().mark((function n(){var o,i,a,s;return Wf().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=Qf({},r.actionModel.data),s[o]=t,r.actionModel.data=Qf({},s);case 18:case"end":return n.stop()}}),n)})))()},renderGraph:function(){var t=this;Kf.a.registerNode("rect",{getPath:function(t){var e=150,r=40;return Kf.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 Kf.a.Graph({container:this.$refs.graph,fitView:"cc",height:72*this.steps.length,plugins:[new nd({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 Qf(Qf({},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("、"),")"):""}}},id=od,ad=(r("2409"),Nr(id,Uf,Gf,!1,null,null,null)),sd=ad.exports,cd=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)},ld=[],ud=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)])},fd=[];function dd(t){return dd="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},dd(t)}function hd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pd(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,yd(n.key),n)}}function vd(t,e,r){return e&&pd(t.prototype,e),r&&pd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function md(t,e,r){return e=yd(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yd(t){var e=gd(t,"string");return"symbol"===dd(e)?e:String(e)}function gd(t,e){if("object"!==dd(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==dd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function bd(t,e,r){return _d(t,e),wd(r,"get"),xd(t,r)}function wd(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}function _d(t,e){if(t!==e)throw new TypeError("Private static access of wrong provenance")}function xd(t,e){return e.get?e.get.call(t):e.value}var kd=function(){function t(e,r,n){hd(this,t),md(this,"name",void 0),md(this,"mode",void 0),md(this,"component",void 0),this.name=e,this.mode=r,this.component=n}return vd(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 bd(this,t,Od).set(e,a),bd(this,t,Sd).set(e,o),i&&bd(this,t,Ed).set(e,i),a}},{key:"getNodeType",value:function(e){return bd(this,t,Od).get(e)}},{key:"getBranchType",value:function(e){return bd(this,t,Ed).get(e)}},{key:"createNode",value:function(e){if(!bd(this,t,Sd).has(e))throw new Error("【flow-designer】NodeType: 类型"+e+"不支持创建节点");return bd(this,t,Sd).get(e)()}},{key:"createWrap",value:function(e){if(!bd(this,t,Sd).has(e))throw new Error("【flow-designer】NodeType: 类型"+e+"不支持创建节点");return bd(this,t,Sd).get(e)()}}]),t}();md(kd,"START","start"),md(kd,"END","end"),md(kd,"CHECK","check"),md(kd,"CC","cc"),md(kd,"TRIGGER","trigger"),md(kd,"DELAY","delay"),md(kd,"PARALLEL_WRAP","parallel_wrap"),md(kd,"PARALLEL","parallel"),md(kd,"JUDGE_WRAP","judge_wrap"),md(kd,"JUDGE","judge");var Od={writable:!0,value:new Map},Sd={writable:!0,value:new Map},Ed={writable:!0,value:new Map};function jd(){kd.registerNodeType(kd.START,"single","StartNode"),kd.registerNodeType(kd.CHECK,"single","CheckNode",(function(){return new Md("审批人","审批人",null,kd.CHECK)})),kd.registerNodeType(kd.CC,"single","CCNode",(function(){return new Md("抄送人","抄送人",null,kd.CC)})),kd.registerNodeType(kd.TRIGGER,"single","TriggerNode",(function(){return new Md("触发器","触发器",null,kd.TRIGGER)})),kd.registerNodeType(kd.DELAY,"single","DelayNode",(function(){return new Md("延迟等待","延迟等待",null,kd.DELAY)})),kd.registerNodeType(kd.END,"single","EndNode"),kd.registerNodeType(kd.PARALLEL_WRAP,"wrap","ParallelWrapNode",(function(){return[new Md("并行分支","并行分支","gateway",kd.PARALLEL_WRAP,null,null,[]),new Md("分支","NodeHandler Automatic generated","并行任务(同时进行)",kd.PARALLEL),new Md("分支","NodeHandler Automatic generated","并行任务(同时进行)",kd.PARALLEL)]}),kd.PARALLEL),kd.registerNodeType(kd.PARALLEL,"single","ParallelNode",(function(){return new Md("NodeHandler Automatic generated","NodeHandler Automatic generated","并行任务(同时进行)",kd.PARALLEL)})),kd.registerNodeType(kd.JUDGE_WRAP,"wrap","JudgeWrapNode",(function(){return[new Md("条件分支","条件分支","gateway",kd.JUDGE_WRAP,null,null,[]),new Md("条件","NodeHandler Automatic generated",null,kd.JUDGE),new Md("条件","NodeHandler Automatic generated",null,kd.JUDGE)]}),kd.JUDGE),kd.registerNodeType(kd.JUDGE,"single","JudgeNode",(function(){return new Md("NodeHandler Automatic generated","NodeHandler Automatic generated",null,kd.JUDGE)}))}jd();var Nd=kd;function Ld(t){return Ld="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},Ld(t)}function Pd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cd(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,Rd(n.key),n)}}function Ad(t,e,r){return e&&Cd(t.prototype,e),r&&Cd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Td(t,e,r){return e=Rd(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rd(t){var e=Dd(t,"string");return"symbol"===Ld(e)?e:String(e)}function Dd(t,e){if("object"!==Ld(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ld(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Id=function(){function t(e,r,n,o,i,a,s){Pd(this,t),Td(this,"name",void 0),Td(this,"code",void 0),Td(this,"content",void 0),Td(this,"type",void 0),Td(this,"data",void 0),Td(this,"nextNodeCode",void 0),Td(this,"childNodeCodes",void 0),Td(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 Ad(t,[{key:"isBranchNode",value:function(){return[Nd.JUDGE,Nd.PARALLEL].includes(this.type)}},{key:"isHeadNode",value:function(){return[Nd.START,Nd.JUDGE,Nd.PARALLEL].includes(this.type)}},{key:"isFootNode",value:function(){return this.type===Nd.END||!this.nextNodeCode}},{key:"isWrapNode",value:function(){return[Nd.PARALLEL_WRAP,Nd.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}(),Md=Id;function qd(t){return qd="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},qd(t)}function Bd(t){return Hd(t)||Vd(t)||$d(t)||Fd()}function Fd(){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 $d(t,e){if(t){if("string"===typeof t)return Ud(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)?Ud(t,e):void 0}}function Vd(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Hd(t){if(Array.isArray(t))return Ud(t)}function Ud(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 Gd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zd(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,Zd(n.key),n)}}function Kd(t,e,r){return e&&zd(t.prototype,e),r&&zd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Yd(t,e){Qd(t,e),e.add(t)}function Wd(t,e,r){return e=Zd(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zd(t){var e=Jd(t,"string");return"symbol"===qd(e)?e:String(e)}function Jd(t,e){if("object"!==qd(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==qd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Xd(t,e,r){Qd(t,e),e.set(t,r)}function Qd(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function th(t,e,r){return rh(t,e),eh(r,"get"),ch(t,r)}function eh(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}function rh(t,e){if(t!==e)throw new TypeError("Private static access of wrong provenance")}function nh(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}function oh(t,e,r){var n=sh(t,e,"set");return ih(t,n,r),r}function ih(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 ah(t,e){var r=sh(t,e,"get");return ch(t,r)}function sh(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function ch(t,e){return e.get?e.get.call(t):e.value}var lh=new WeakMap,uh=new WeakMap,fh=new WeakMap,dh=new WeakMap,hh=new WeakMap,ph=new WeakMap,vh=new WeakMap,mh=new WeakMap,yh=new WeakMap,gh=new WeakSet,bh=new WeakSet,wh=new WeakSet,_h=new WeakSet,xh=new WeakSet,kh=new WeakSet,Oh=new WeakSet,Sh=new WeakSet,Eh=new WeakSet,jh=new WeakSet,Nh=new WeakSet,Lh=function(){function t(e,r){var n=this;if(Gd(this,t),Yd(this,Nh),Yd(this,jh),Yd(this,Eh),Yd(this,Sh),Yd(this,Oh),Yd(this,kh),Yd(this,xh),Yd(this,_h),Yd(this,wh),Yd(this,bh),Yd(this,gh),Xd(this,lh,{writable:!0,value:new Map}),Xd(this,uh,{writable:!0,value:new Map}),Xd(this,fh,{writable:!0,value:new Map}),Xd(this,dh,{writable:!0,value:new Map}),Xd(this,hh,{writable:!0,value:new Map}),Xd(this,ph,{writable:!0,value:void 0}),Xd(this,vh,{writable:!0,value:void 0}),Xd(this,mh,{writable:!0,value:void 0}),Xd(this,yh,{writable:!0,value:void 0}),Wd(this,"isPreview",void 0),Wd(this,"runtimeData",void 0),Wd(this,"businessAdapter",void 0),e&&e.length||(e=[{name:"上报人",code:"上报人",type:"start",nextNodeCode:"流程结束"},{name:"流程结束",code:"流程结束",type:"end"}]),e.forEach((function(t){var e=Md.parse(t);if(e.type===Nd.START){if(ah(n,ph))throw new Error("【flow-designer】NodeHandler创建失败;只能有一个起始节点");oh(n,ph,e)}if(e.type===Nd.END){if(ah(n,vh))throw new Error("【flow-designer】NodeHandler创建失败;只能有一个结束节点");oh(n,vh,e)}nh(n,xh,Rh).call(n,e)})),!ah(this,ph))throw new Error("【flow-designer】NodeHandler创建失败;没有起始节点");if(!ah(this,vh))throw new Error("【flow-designer】NodeHandler创建失败;没有结束节点");var o=ah(this,ph),i=new Set;try{nh(this,Sh,Mh).call(this,i,o)}catch(a){if(a.msg)throw new Error("【flow-designer】NodeHandler创建失败;"+a.msg);throw new Error("【flow-designer】NodeHandler创建失败;"+a)}Bd(ah(this,lh).values()).filter((function(t){return t.isWrapNode()})).forEach((function(t){return t.childNodeCodes.forEach((function(e){return ah(n,fh).set(e,t.code)}))})),Bd(ah(this,lh).values()).filter((function(t){return t.isBranchNode()})).forEach((function(t){var e=n.getNextNode(t.code);while(e)ah(n,dh).set(e.code,t.code),e=n.getNextNode(e.code)})),window.nodeHandler=this,this.businessAdapter=r,r.nodeHandler=this}return Kd(t,[{key:"setPreview",value:function(t){this.isPreview=t,this.refresh()}},{key:"setRuntime",value:function(t){this.runtimeData=t}},{key:"setRefresh",value:function(t){oh(this,mh,t)}},{key:"refresh",value:function(){if(!ah(this,mh))throw new Error("【flow-designer】NodeHandler刷新失败;未定义刷新方法");ah(this,mh).call(this)}},{key:"map",value:function(){return{node:ah(this,lh),preNode:ah(this,uh),parentNodeMap:ah(this,fh),branchNodeMap:ah(this,dh),nodeCodeVersionMap:ah(this,hh)}}},{key:"getStartNode",value:function(){return ah(this,ph)}},{key:"getEndNode",value:function(){return ah(this,vh)}},{key:"hasNextNode",value:function(t){var e=ah(this,lh).get(t),r=null===e||void 0===e?void 0:e.nextNodeCode;return!!r}},{key:"getNextNode",value:function(t){var e=ah(this,lh).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 ah(this,lh).has(t)}},{key:"getNode",value:function(t){return ah(this,lh).get(t)}},{key:"hasPreNode",value:function(t){return ah(this,uh).has(t)}},{key:"getPreNode",value:function(t){return this.getNode(this.nowNodeCode(ah(this,uh).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(ah(this,fh).get(r.code));return this.getNode(n)}},{key:"hasBranchNode",value:function(t){return ah(this,dh).has(t)}},{key:"getBranchNode",value:function(t){var e=this.nowNodeCode(ah(this,dh).get(t));return this.getNode(e)}},{key:"nowNodeCode",value:function(t){if(!t)return null;var e=t,r=ah(this,hh).get(e);while(r)e=r,r=ah(this,hh).get(e);return e}},{key:"verify",value:function(){return this.businessAdapter.verifyNodeData(Bd(ah(this,lh).values()))}},{key:"getAllRoute",value:function(t){var e=[];return nh(this,gh,Ph).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=Nd.getNodeType(i);if("single"===a.mode){var s=Nd.createNode(i);nh(this,xh,Rh).call(this,s),nh(this,wh,Ah).call(this,r,s),o&&nh(this,Nh,Bh).call(this,s,o.code),nh(this,Nh,Bh).call(this,r,s.code)}if("wrap"===a.mode){var c=Nd.createWrap(i),l=c[0];nh(this,_h,Th).call(this,l,c);var u=l.code;nh(this,wh,Ah).call(this,r,l),o&&nh(this,Nh,Bh).call(this,l,o.code),nh(this,Nh,Bh).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=Nd.getNodeType(o);if("wrap"!==i.mode)throw new Error("【flow-designer】NodeHandler包装节点出错: 包装节点类型的模式必须为包装;非预期:"+i.mode);var a=Nd.createWrap(o),s=a[0],c=a[1];nh(this,_h,Th).call(this,s,a),nh(this,wh,Ah).call(this,n,s);var l=s.code,u=this.getPreNode(t),f=null,d=t;while(1){var h=f=this.getNextNode(d);if(!h)break;if(ah(this,dh).set(d,c.code),h.type===Nd.END){nh(this,Nh,Bh).call(this,this.getNode(d),null);break}d=h.code}nh(this,Nh,Bh).call(this,u,l),nh(this,Nh,Bh).call(this,s,null===(r=f)||void 0===r?void 0:r.code),nh(this,Nh,Bh).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);ah(this,lh).set(e.code,e)}},{key:"deleteNode",value:function(t){nh(this,kh,Dh).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=Nd.getBranchType(r.type),o=Nd.createNode(n);return o.name=e+(r.childNodeCodes.length+1),o.code=t+o.name,nh(this,xh,Rh).call(this,o,null,t),this.refresh(),o}}]),t}();function Ph(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([Nd.CHECK,Nd.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([Nd.CHECK,Nd.END].includes(n.type)&&(e.push(n),l+=1),n.isWrapNode()&&nh(r,bh,Ch).call(r,n,e))return void(l+=1);n=r.getNextNode(n.code)}})),c.length===l)return}nh(this,gh,Ph).call(this,i.code,e)}}function Ch(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([Nd.CHECK,Nd.END].includes(o.type))return void e.push(o);if(o.isWrapNode()){if(nh(r,bh,Ch).call(r,o,e))return;n=!1}o=r.getNextNode(o.code)}})),n}function Ah(t,e){t.isBranchNode()&&ah(this,dh).set(e.code,t.code),ah(this,dh).has(t.code)&&ah(this,dh).set(e.code,ah(this,dh).get(t.code))}function Th(t,e){nh(this,xh,Rh).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,nh(this,xh,Rh).call(this,o),ah(this,fh).set(o.code,r),t.childNodeCodes.push(o.code)}}function Rh(t,e,r){nh(this,Oh,Ih).call(this,t);var n=t.code;ah(this,lh).set(n,t),t.nextNodeCode&&nh(this,Eh,qh).call(this,t),e&&ah(this,dh).set(n,e),r&&(this.getNode(r).childNodeCodes.push(n),ah(this,fh).set(n,r))}function Dh(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 nh(e,kh,Dh).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){nh(e,kh,Dh).call(e,t.code)})),ah(this,lh).delete(t),ah(this,fh).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);nh(this,Nh,Bh).call(this,s,null===c||void 0===c?void 0:c.code),a&&(this.handleNextNodeStream(i.code,(function(t){ah(e,dh).delete(t.code)})),nh(this,Nh,Bh).call(this,s,a.code),nh(this,Nh,Bh).call(this,i,null),nh(this,Nh,Bh).call(this,l,null===c||void 0===c?void 0:c.code),null!==s&&void 0!==s&&s.isBranchNode()&&ah(this,dh).set(a.code,s.code)),ah(this,uh).delete(n.code),nh(this,Nh,Bh).call(this,n,null),nh(this,kh,Dh).call(this,n.code)}}else{var u=this.getPreNode(t),f=this.hasNextNode(t)&&this.getNextNode(t);ah(this,uh).delete(t),u&&nh(this,Nh,Bh).call(this,u,null===f||void 0===f?void 0:f.code),ah(this,lh).delete(t),ah(this,dh).delete(t)}}function Ih(t){var e=t.code;while(ah(this,lh).has(t.code))th(Lh,Lh,Fh)[e]||(th(Lh,Lh,Fh)[e]=0),t.code=e+ ++th(Lh,Lh,Fh)[e]}function Mh(t,e){var r=this;if(e.type!==Nd.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)};nh(r,Sh,Mh).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&&nh(this,Sh,Mh).call(this,t,n)}}function qh(t){t.nextNodeCode&&ah(this,uh).set(t.nextNodeCode,t.code)}function Bh(t,e){t.nextNodeCode=e,nh(this,Eh,qh).call(this,t)}var Fh={writable:!0,value:{}},$h=Lh,Vh=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)},Hh=[],Uh=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))])])},Gh=[],zh={name:"EndNode",props:{node:Md,nodeHandler:Object},setup:function(){}},Kh=zh,Yh=(r("6b612"),Nr(Kh,Uh,Gh,!1,null,"778e5139",null)),Wh=Yh.exports,Zh=function(){var t,e,r,n,o,i,a,s,c,l,u,f,d=this,h=d._self._c;return h("div",[null!==(t=d.nodeHandler)&&void 0!==t&&null!==(e=t.runtimeData)&&void 0!==e&&null!==(r=e.actorLogs[d.node.code])&&void 0!==r&&r.length?h("a-popover",{attrs:{placement:"rightTop"},scopedSlots:d._u([{key:"content",fn:function(){return[h("div",{staticStyle:{"min-width":"300px","max-width":"1200px"}},[h("runtime-workflow-actors",{attrs:{actors:d.nodeHandler.runtimeData.actorLogs[d.node.code]}})],1)]},proxy:!0}],null,!1,193291077)},[h("div",{staticClass:"node",class:d.getClass(),on:{click:d.click}},[h("div",{staticClass:"title"},[h("span",[h("a-icon",{attrs:{fill:"",theme:"filled",type:"flag"}})],1),h("span",[d._v(" "+d._s(d.node.name))]),null!==(n=d.nodeRef)&&void 0!==n&&null!==(o=n.data)&&void 0!==o&&null!==(i=o.other_options)&&void 0!==i&&null!==(a=i.assert)&&void 0!==a&&a.length?h("span",[h("a-icon",{attrs:{type:"control"}})],1):d._e()]),h("div",{staticClass:"content"},[h("span",{staticClass:"content-main"},[h("span",{staticClass:"error-tooltip"},[h("a-tooltip",[h("template",{slot:"title"},[d._v(" "+d._s(d.node.error)+" ")]),h("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),d.nodeContent?h("span",{staticStyle:{"padding-left":"5px"}},[h("span",{domProps:{innerHTML:d._s(d.nodeContent)}})]):h("span",{staticStyle:{"padding-left":"5px",color:"#666"}},[d._v(d._s(d.defaultContent))])])])])]):h("div",{staticClass:"node",class:d.getClass(),on:{click:d.click}},[h("div",{staticClass:"title"},[h("span",[h("a-icon",{attrs:{fill:"",theme:"filled",type:"flag"}})],1),h("span",[d._v(" "+d._s(d.node.name))]),null!==(s=d.nodeRef)&&void 0!==s&&null!==(c=s.data)&&void 0!==c&&null!==(l=c.other_options)&&void 0!==l&&null!==(u=l.assert)&&void 0!==u&&u.length?h("span",[h("a-icon",{attrs:{type:"control"}})],1):d._e()]),h("div",{staticClass:"content"},[h("span",{staticClass:"content-main"},[h("span",{staticClass:"error-tooltip"},[h("a-tooltip",[h("template",{slot:"title"},[d._v(" "+d._s(d.node.error)+" ")]),h("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),d.nodeContent?h("span",{staticStyle:{"padding-left":"5px"}},[h("span",{domProps:{innerHTML:d._s(d.nodeContent)}})]):h("span",{staticStyle:{"padding-left":"5px",color:"#666"}},[d._v(d._s(d.defaultContent))])])])]),d.nodeHandler.isPreview?d._e():h("a-drawer",{attrs:{closable:!0,visible:d.visible,width:720,placement:"right"},on:{close:d.hideDrawer}},[d.editName?d._e():h("div",{staticClass:"node-drawer-title",on:{click:d.showEditName}},[h("a-icon",{attrs:{type:"edit"}}),d._v(" "+d._s(d.node.name)+" ")],1),h("a-form-model",{directives:[{name:"show",rawName:"v-show",value:d.editName,expression:"editName"}],ref:"nameForm",attrs:{model:d.nodeRef,rules:{name:[{required:!0,message:"请填写节点名称",trigger:"blur"},{min:2,max:20,message:"2-20个字",trigger:"blur"}]},layout:"inline"}},[h("a-form-model-item",{ref:"name",attrs:{prop:"name"}},[h("a-input",{ref:"nameInput",attrs:{placeholder:"节点名称"},on:{blur:function(){d.editName=!1}},model:{value:d.nodeRef.name,callback:function(t){d.$set(d.nodeRef,"name",t)},expression:"nodeRef.name"}})],1)],1),h("a-tabs",{attrs:{"default-active-key":"1"},on:{change:d.changeTags},model:{value:d.tabKey,callback:function(t){d.tabKey=t},expression:"tabKey"}},[h("a-tab-pane",{key:"actors",attrs:{tab:"设置发起人"}},[h("div",{staticStyle:{color:"#717171","margin-bottom":"10px"}},[d._v("选择能发起该审批的人员/部门,不选则默认开放给所有人")]),h("a-button",{staticClass:"node-form-item",attrs:{disabled:"",icon:"plus",shape:"round",type:"primary"}},[d._v("请选择")]),h("a-alert",{attrs:{banner:"",message:"不支持在这里设置发起人! 如为发起人设置权限,请使用EAD动作权限配置实现"}})],1),h("a-tab-pane",{key:"forms",attrs:{tab:"操作视图"}},[h("div",{staticClass:"node-form-item"},[h("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[h("a-col",{attrs:{span:24}},[h("a-radio-group",{staticClass:"node-form-item",on:{change:d.changeViewType},model:{value:d.optionViewType,callback:function(t){d.optionViewType=t},expression:"optionViewType"}},[h("a-radio",{attrs:{value:"use_model"}},[d._v(" 沿用工作流模型 ")]),h("a-radio",{attrs:{value:"custom"}},[d._v(" 自主选择 ")])],1)],1)],1),h("a-row",[h("a-col",{attrs:{span:24}},["custom"===d.optionViewType?h("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:d.optionViewChange,search:d.optionViewSearch},model:{value:d.nodeRef.data.option_view_id,callback:function(t){d.$set(d.nodeRef.data,"option_view_id",t)},expression:"nodeRef.data.option_view_id"}},d._l(d.optionViewList,(function(t){return h("a-select-option",{key:t.value,attrs:{value:t.value}},[d._v(" "+d._s(t.text)+" ")])})),1):d._e()],1)],1)],1),h("div",{key:d.nodeRef.data.option_view_id,staticClass:"node-from-item"},[h("a-divider",{attrs:{orientation:"left"}},[d._v("表单权限")]),"use_model"===d.optionViewType||d.nodeRef.data.option_view_id?h("a-spin",{attrs:{spinning:d.viewAttrLoading}},[h("a-row",[h("a-col",{attrs:{span:11}},[h("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索表单属性"},on:{search:function(t){return d.formsColumnFilter=t}}})],1),h("a-col",{attrs:{span:1}}),h("a-col",{attrs:{span:11}},[h("a-radio-group",{attrs:{"button-style":"solid"},model:{value:d.formsColumnAccess,callback:function(t){d.formsColumnAccess=t},expression:"formsColumnAccess"}},[h("a-radio-button",{attrs:{value:"all"}},[d._v(" 无 ")]),h("a-radio-button",{attrs:{value:"none"}},[d._v(" 隐藏 ")]),h("a-radio-button",{attrs:{value:"readonly"}},[d._v(" 只读 ")]),h("a-radio-button",{attrs:{value:"write"}},[d._v(" 可写 ")]),h("a-radio-button",{attrs:{value:"readonlywrite"}},[d._v(" 读写 ")])],1)],1)],1),h("a-table",{attrs:{columns:d.optionFormsColumns,"data-source":d.filterDataset(d.formsColumnFilter,d.nodeRef.data.option_forms,["attrName","attrCode"]),"row-key":function(t){return t.attrId}},scopedSlots:d._u([{key:"attrName",fn:function(t,e){return h("span",{},[d._v(d._s(e.attrName)+"("+d._s(e.attrCode)+")")])}},{key:"none",fn:function(t,e){return h("span",{},[h("a-radio",{attrs:{checked:"none"===e.access,value:"none"},on:{change:function(){return e.access="none"}}},[d._v("隐藏")])],1)}},{key:"readonly",fn:function(t,e){return h("span",{},[h("a-radio",{attrs:{checked:"readonly"===e.access,value:"readonly"},on:{change:function(){return e.access="readonly"}}},[d._v("只读")])],1)}},{key:"write",fn:function(t,e){return h("span",{},[h("a-radio",{attrs:{checked:"write"===e.access,value:"write"},on:{change:function(){return e.access="write"}}},[d._v("可编辑")])],1)}},{key:"required",fn:function(t,e){return h("span",{},["write"===e.access?h("a-switch",{model:{value:e.required,callback:function(t){d.$set(e,"required",t)},expression:"record.required"}}):d._e()],1)}}],null,!1,274236117)},[h("span",{attrs:{slot:"noneColumn"},slot:"noneColumn"},[h("a-radio",{attrs:{checked:"none"===d.optionFormsRadio,value:"none"},on:{change:function(t){return d.optionFormsRadioChange("none")}}},[d._v("隐藏")])],1),h("span",{attrs:{slot:"readonlyColumn"},slot:"readonlyColumn"},[h("a-radio",{attrs:{checked:"readonly"===d.optionFormsRadio,value:"readonly"},on:{change:function(t){return d.optionFormsRadioChange("readonly")}}},[d._v("只读")])],1),h("span",{attrs:{slot:"writeColumn"},slot:"writeColumn"},[h("a-radio",{attrs:{checked:"write"===d.optionFormsRadio,value:"write"},on:{change:function(t){return d.optionFormsRadioChange("write")}}},[d._v("可编辑")])],1)])],1):d._e()],1)]),h("a-tab-pane",{key:"others",attrs:{tab:"其他配置"}},[h("a-card",{staticStyle:{margin:"5px"},attrs:{size:"small",title:"消息配置"}},[h("a-input",{staticStyle:{"margin-bottom":"5px"},attrs:{placeholder:"待办跳转地址;以/结尾,例如:/${appKey}#/res_path/"},model:{value:d.nodeRef.data.other_options.resPath,callback:function(t){d.$set(d.nodeRef.data.other_options,"resPath",t)},expression:"nodeRef.data.other_options.resPath"}}),h("a-input",{attrs:{placeholder:"消息跳转地址"},model:{value:d.nodeRef.data.other_options.redirectUri,callback:function(t){d.$set(d.nodeRef.data.other_options,"redirectUri",t)},expression:"nodeRef.data.other_options.redirectUri"}}),d.noticeTemplateAttr?h("Item",{key:d.noticeTemplateAttr.name,staticClass:"j",attrs:{formModel:d.eadApi.getComponent().actionModel,params:null!==(f=d.noticeTemplateAttr.params)&&void 0!==f?f:{},prop:d.noticeTemplateAttr.name,required:!1,schema:d.noticeTemplateAttr},on:{change:function(t){return d.handleItemChange(t,d.noticeTemplateAttr)}},model:{value:d.nodeRef.data.notice_template,callback:function(t){d.$set(d.nodeRef.data,"notice_template",t)},expression:"nodeRef.data.notice_template"}}):d._e(),h("a-alert",{attrs:{message:"模板变量:",type:"success"}},[h("div",{attrs:{slot:"description"},slot:"description"},[h("div",[d._v("${workflow.variable.sponsor} - 发起人")]),h("div",[d._v("${workflow.variable.sponsor_name} - 发起人姓名")]),h("div",[d._v("${workflow.variable.sponsor_org} - 发起人组织机构")]),h("div",[d._v("${workflow.variable.sponsor_org_name} - 发起人组织机构名称")]),h("div",[d._v("${workflow.variable.sponsor_role} - 发起人角色")]),h("div",[d._v("${workflow.variable.sponsor_role_name} - 发起人角色名")])])])],1),h("div",{staticClass:"node-form-item"},[h("a-divider",{attrs:{orientation:"left"}},[d._v("自定义参数")]),h("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[h("a-col",{attrs:{span:24}},[h("a-textarea",{attrs:{"auto-size":"",placeholder:"自定义参数(JSONObject格式); {}"},model:{value:d.nodeRef.data.other_options.custom,callback:function(t){d.$set(d.nodeRef.data.other_options,"custom",t)},expression:"nodeRef.data.other_options.custom"}})],1)],1)],1)],1),d.nodeRef.data.other_options.assert?h("a-tab-pane",{key:"assert",attrs:{tab:"断言"}},[h("div",[d.nodeRef.data.other_options.assert?h("assert-designer",{attrs:{data:d.nodeRef.data.other_options.assert,"hide-action":!0}}):d._e()],1)]):d._e()],1)],1)],1)},Jh=[],Xh=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)}}])})},Qh=[],tp={name:"runtime-workflow-actors",props:{actors:Array}},ep=tp,rp=Nr(ep,Xh,Qh,!1,null,"2d32df45",null),np=rp.exports,op=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)},ip=[],ap={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:""})}}},sp=ap,cp=(r("7022"),Nr(sp,op,ip,!1,null,"3d6b7fb8",null)),lp=cp.exports;function up(t){return up="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},up(t)}function fp(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */fp=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==up(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function dp(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 hp(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){dp(i,n,o,a,s,"next",t)}function s(t){dp(i,n,o,a,s,"throw",t)}a(void 0)}))}}function pp(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=vp(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 vp(t,e){if(t){if("string"===typeof t)return mp(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)?mp(t,e):void 0}}function mp(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 yp={name:"StartNode",props:{node:Md,nodeHandler:Object},components:{AssertDesigner:lp,RuntimeWorkflowActors:np,Item:Oi},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,n,o,i,a;if((null===(t=this.nodeHandler)||void 0===t||null===(e=t.runtimeData)||void 0===e?void 0:e.currentNodeCode)===this.nodeRef.code)return'<span class="actor pending">'.concat(this.eadApi.getCurrentUserName(),"</span>");if(null!==(r=this.nodeHandler)&&void 0!==r&&null!==(n=r.runtimeData)&&void 0!==n&&n.caseNodes&&null!==(o=this.nodeHandler)&&void 0!==o&&null!==(i=o.runtimeData)&&void 0!==i&&null!==(a=i.caseNodes[this.node.code])&&void 0!==a&&a.status){var s,c,l="",u=null===(s=this.nodeHandler)||void 0===s||null===(c=s.runtimeData)||void 0===c?void 0:c.caseNodes[this.node.code].actors;return u.forEach((function(t){l&&(l+="、"),l+='<span class="actor '.concat(t.status,'">').concat(t.operator.name,"</span>")})),l}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=pp(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,o,i,a,s="";return this.node.error&&(s+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(e=t.runtimeData)||void 0===e?void 0:e.currentNodeCode)===this.node.code?s+=" ongoing":null!==(r=this.nodeHandler)&&void 0!==r&&null!==(n=r.runtimeData)&&void 0!==n&&n.caseNodes&&null!==(o=this.nodeHandler)&&void 0!==o&&null!==(i=o.runtimeData)&&void 0!==i&&null!==(a=i.caseNodes[this.node.code])&&void 0!==a&&a.status&&(s+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),s},loadCache:function(t){var e,r,n,o,i,a,s,c;this.optionViewType=null!==(e=null===(r=t.data)||void 0===r||null===(n=r.eadCache)||void 0===n||null===(o=n.workflow)||void 0===o?void 0:o.optionViewType)&&void 0!==e?e:this.optionViewType,this.optionViewList=null!==(i=null===(a=t.data)||void 0===a||null===(s=a.eadCache)||void 0===s||null===(c=s.workflow)||void 0===c?void 0:c.optionViewList)&&void 0!==i?i: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 hp(fp().mark((function r(){return fp().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 hp(fp().mark((function r(){var n,o;return fp().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=hp(fp().mark((function t(){var e,r,n;return fp().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}()},gp=yp,bp=(r("11f1"),Nr(gp,Zh,Jh,!1,null,"e7950f88",null)),wp=bp.exports,_p=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)},xp=[],kp={name:"ParallelNode",props:{option:{left:Boolean,right:Boolean,index:Number},node:Md,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,o,i,a,s="";return this.node.error&&(s+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(e=t.runtimeData)||void 0===e?void 0:e.currentNodeCode)===this.node.code?s+=" ongoing":null!==(r=this.nodeHandler)&&void 0!==r&&null!==(n=r.runtimeData)&&void 0!==n&&n.caseNodes&&null!==(o=this.nodeHandler)&&void 0!==o&&null!==(i=o.runtimeData)&&void 0!==i&&null!==(a=i.caseNodes[this.node.code])&&void 0!==a&&a.status&&(s+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),s},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(){}},Op=kp,Sp=(r("93f1"),Nr(Op,_p,xp,!1,null,"9a75cb32",null)),Ep=Sp.exports,jp=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)])])},Np=[],Lp={name:"ParallelWrapNode",computed:{NodeWrap:function(){return Dm}},props:{node:Md,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,"分支")}}},Pp=Lp,Cp=Nr(Pp,jp,Np,!1,null,"4a228ede",null),Ap=Cp.exports;function Tp(t){return Mp(t)||Ip(t)||Dp(t)||Rp()}function Rp(){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 Dp(t,e){if(t){if("string"===typeof t)return qp(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)?qp(t,e):void 0}}function Ip(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Mp(t){if(Array.isArray(t))return qp(t)}function qp(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 Bp=function(){var t,e,r,n,o,i,a,s,c,l,u,f,d,h,p,v=this,m=v._self._c;return m("div",[null!==(t=v.nodeHandler)&&void 0!==t&&null!==(e=t.runtimeData)&&void 0!==e&&null!==(r=e.actorLogs[v.node.code])&&void 0!==r&&r.length?m("a-popover",{attrs:{placement:"rightTop"},scopedSlots:v._u([{key:"content",fn:function(){return[m("div",{staticStyle:{"min-width":"300px","max-width":"1200px"}},[m("runtime-workflow-actors",{attrs:{actors:v.nodeHandler.runtimeData.actorLogs[v.node.code]}})],1)]},proxy:!0}],null,!1,193291077)},[m("div",{staticClass:"node",class:[v.node.error?"error":"",null!==(n=v.nodeHandler)&&void 0!==n&&null!==(o=n.runtimeData)&&void 0!==o&&null!==(i=o.caseNodes[v.node.code])&&void 0!==i&&i.status?v.nodeHandler.runtimeData.caseNodes[v.node.code].status:""],on:{click:v.click}},[m("div",{staticClass:"title"},[m("span",[m("a-icon",{attrs:{component:v.icon}})],1),m("span",[v._v(" "+v._s(v.node.name))]),null!==(a=v.nodeRef)&&void 0!==a&&null!==(s=a.data)&&void 0!==s&&null!==(c=s.other_options)&&void 0!==c&&null!==(l=c.assert)&&void 0!==l&&l.length?m("span",[m("a-icon",{attrs:{type:"control"}})],1):v._e(),v.nodeHandler.isPreview?v._e():m("span",{staticClass:"title-right"},[m("a-icon",{staticClass:"close",attrs:{type:"close"},on:{click:function(t){return t.stopPropagation(),v.close.apply(null,arguments)}}})],1)]),m("div",{staticClass:"content"},[m("span",{staticClass:"content-main"},[m("span",{staticClass:"error-tooltip"},[m("a-tooltip",[m("template",{slot:"title"},[v._v(" "+v._s(v.node.error)+" ")]),m("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),v.nodeContent?m("span",{staticStyle:{"padding-left":"5px"}},[m("span",{domProps:{innerHTML:v._s(v.nodeContent)}})]):m("span",{staticStyle:{"padding-left":"5px",color:"rgb(164 164 164)"}},[v._v(v._s(v.defaultContent))])]),m("span",{staticClass:"content-right"},[v.nodeHandler.isPreview?v._e():m("a-popover",{attrs:{placement:"rightTop",trigger:"click"},scopedSlots:v._u([{key:"title",fn:function(){return[m("span",{staticStyle:{"font-size":"18px"}},[v._v("追加分支")])]},proxy:!0},{key:"content",fn:function(){return[m("div",{staticClass:"add-node-box"},v._l(v.nodes,(function(t,e){var r,n;return m("div",{key:e,staticClass:"add-node-item",on:{click:function(e){return v.wrapNode(t.type)}}},[m("div",{staticClass:"icon",style:"color:"+t.color+";"},[null!==(r=t.icon)&&void 0!==r&&r.component?m("a-icon",{attrs:{component:t.icon.component}}):v._e(),null!==(n=t.icon)&&void 0!==n&&n.type?m("a-icon",{attrs:{type:t.icon.type}}):v._e()],1),m("span",[v._v(v._s(t.name))])])})),0)]},proxy:!0}],null,!1,2863198520),model:{value:v.visiblePopover,callback:function(t){v.visiblePopover=t},expression:"visiblePopover"}},[m("a-icon",{attrs:{type:"plus"},on:{click:function(t){return t.stopPropagation(),function(){}.apply(null,arguments)}}})],1)],1)])])]):m("div",{staticClass:"node",class:v.getClass(),on:{click:v.click}},[m("div",{staticClass:"title"},[m("span",[m("a-icon",{attrs:{component:v.icon}})],1),m("span",[v._v(" "+v._s(v.node.name))]),null!==(u=v.nodeRef)&&void 0!==u&&null!==(f=u.data)&&void 0!==f&&null!==(d=f.other_options)&&void 0!==d&&null!==(h=d.assert)&&void 0!==h&&h.length?m("span",[m("a-icon",{attrs:{type:"control"}})],1):v._e(),v.nodeHandler.isPreview?v._e():m("span",{staticClass:"title-right"},[m("a-icon",{staticClass:"close",attrs:{type:"close"},on:{click:function(t){return t.stopPropagation(),v.close.apply(null,arguments)}}})],1)]),m("div",{staticClass:"content"},[m("span",{staticClass:"content-main"},[m("span",{staticClass:"error-tooltip"},[m("a-tooltip",[m("template",{slot:"title"},[v._v(" "+v._s(v.node.error)+" ")]),m("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),v.nodeContent?m("span",{staticStyle:{"padding-left":"5px"}},[m("span",{domProps:{innerHTML:v._s(v.nodeContent)}})]):m("span",{staticStyle:{"padding-left":"5px",color:"rgb(164 164 164)"}},[v._v(v._s(v.defaultContent))])]),m("span",{staticClass:"content-right"},[v.nodeHandler.isPreview?v._e():m("a-popover",{attrs:{placement:"rightTop",trigger:"click"},scopedSlots:v._u([{key:"title",fn:function(){return[m("span",{staticStyle:{"font-size":"18px"}},[v._v("追加分支")])]},proxy:!0},{key:"content",fn:function(){return[m("div",{staticClass:"add-node-box"},v._l(v.nodes,(function(t,e){var r,n;return m("div",{key:e,staticClass:"add-node-item",on:{click:function(e){return v.wrapNode(t.type)}}},[m("div",{staticClass:"icon",style:"color:"+t.color+";"},[null!==(r=t.icon)&&void 0!==r&&r.component?m("a-icon",{attrs:{component:t.icon.component}}):v._e(),null!==(n=t.icon)&&void 0!==n&&n.type?m("a-icon",{attrs:{type:t.icon.type}}):v._e()],1),m("span",[v._v(v._s(t.name))])])})),0)]},proxy:!0}],null,!1,2863198520),model:{value:v.visiblePopover,callback:function(t){v.visiblePopover=t},expression:"visiblePopover"}},[m("a-icon",{attrs:{type:"plus"},on:{click:function(t){return t.stopPropagation(),function(){}.apply(null,arguments)}}})],1)],1)])]),v.nodeHandler.isPreview?v._e():m("a-drawer",{attrs:{closable:!0,visible:v.visibleDrawer,width:720,placement:"right"},on:{close:v.hideDrawer}},[v.editName?v._e():m("div",{staticClass:"node-drawer-title",on:{click:v.showEditName}},[m("a-icon",{attrs:{type:"edit"}}),v._v(" "+v._s(v.node.name)+" ")],1),m("a-form-model",{directives:[{name:"show",rawName:"v-show",value:v.editName,expression:"editName"}],ref:"nameForm",attrs:{model:v.nodeRef,rules:{name:[{required:!0,message:"请填写节点名称",trigger:"blur"},{min:2,max:20,message:"2-20个字",trigger:"blur"}]},layout:"inline"}},[m("a-form-model-item",{ref:"name",attrs:{prop:"name"}},[m("a-input",{ref:"nameInput",attrs:{placeholder:"节点名称"},on:{blur:function(){v.editName=!1}},model:{value:v.nodeRef.name,callback:function(t){v.$set(v.nodeRef,"name",t)},expression:"nodeRef.name"}})],1)],1),m("a-tabs",{attrs:{"default-active-key":"1"},on:{change:v.changeTags},model:{value:v.tabKey,callback:function(t){v.tabKey=t},expression:"tabKey"}},[m("a-tab-pane",{key:"actors",attrs:{tab:"设置人"}},[m("div",{staticClass:"node-form-item"},[v._v(" 配置执行人策略 "),m("a-radio-group",{attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.actor_config.type,callback:function(t){v.$set(v.nodeRef.data.actor_config,"type",t)},expression:"nodeRef.data.actor_config.type"}},[m("a-radio-button",{attrs:{value:"expression"}},[v._v(" 表达式 ")]),m("a-radio-button",{attrs:{value:"sponsor"}},[v._v(" 发起人自己 ")])],1)],1),"expression"===v.nodeRef.data.actor_config.type?m("div",{staticStyle:{width:"100%"}},[v._l(v.nodeRef.data.actor_config.expression,(function(t,e){return m("div",{key:e},[m("a-row",{staticClass:"node-form-item",staticStyle:{display:"flex","align-items":"center"}},[m("a-col",{attrs:{span:"4"}},[m("a-radio-group",{attrs:{"button-style":"solid",size:"small"},model:{value:t.type,callback:function(e){v.$set(t,"type",e)},expression:"item.type"}},[m("a-radio-button",{attrs:{value:"uid"}},[m("a-icon",{attrs:{type:"user"}})],1),m("a-radio-button",{attrs:{value:"org"}},[m("a-icon",{attrs:{type:"team"}})],1)],1),v.nodeRef.data.actor_config.expression.length>1?m("a-button",{attrs:{icon:"delete",type:"link"},on:{click:function(){return v.nodeRef.data.actor_config.expression.splice(e,1)}}}):v._e()],1),"uid"===t.type?m("a-col",{attrs:{span:"18"}},[m("div",[m("a-select",{staticStyle:{width:"100%"},attrs:{filterOption:v.filterUser,options:[].concat(Tp(v.businessUserData),Tp(v.users)),mode:"multiple",placeholder:"选择人"},model:{value:t.user,callback:function(e){v.$set(t,"user",e)},expression:"item.user"}})],1)]):v._e(),"org"===t.type?m("a-col",{attrs:{span:"18"}},[m("div",[m("a-row",[m("a-col",{attrs:{span:8}},[m("a-tree-select",{staticStyle:{width:"100%"},attrs:{"dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-data":[v.businessOrgData].concat(Tp(v.orgData)),allowClear:"",placeholder:"部门","tree-default-expand-all":""},model:{value:t.orgId,callback:function(e){v.$set(t,"orgId",e)},expression:"item.orgId"}})],1),m("a-col",{attrs:{span:8}},[m("a-select",{staticStyle:{width:"100%"},attrs:{options:v.roles,allowClear:"",placeholder:"角色"},model:{value:t.roleId,callback:function(e){v.$set(t,"roleId",e)},expression:"item.roleId"}})],1)],1)],1)]):v._e(),v.nodeRef.data.actor_config.expression.length===e+1&&v.hasExpression(t)?m("a-col",{attrs:{span:"2"}},[m("a-button",{attrs:{icon:"plus",shape:"circle",type:"primary"},on:{click:function(){v.nodeRef.data.actor_config.expression.push({type:"uid",user:[],orgId:void 0,roleId:void 0,groupId:void 0})}}})],1):v._e()],1)],1)})),m("div",{staticClass:"node-form-item"},[m("a-row",[m("a-col",{attrs:{span:4}},[v._v("自选")]),m("a-col",{attrs:{span:20}},[m("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.actor_config.optional.enable,callback:function(t){v.$set(v.nodeRef.data.actor_config.optional,"enable",t)},expression:"nodeRef.data.actor_config.optional.enable"}},[m("a-radio-button",{attrs:{value:!1}},[v._v(" 禁用 ")]),m("a-radio-button",{attrs:{value:!0}},[v._v(" 启用 ")])],1),v.nodeRef.data.actor_config.optional.enable?m("a-radio-group",{attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.actor_config.optional.multi,callback:function(t){v.$set(v.nodeRef.data.actor_config.optional,"multi",t)},expression:"nodeRef.data.actor_config.optional.multi"}},[m("a-radio-button",{attrs:{value:!1}},[v._v(" 可选单人 ")]),m("a-radio-button",{attrs:{value:!0}},[v._v(" 可选多人 ")])],1):v._e()],1)],1)],1),!v.nodeRef.data.actor_config.optional.enable&&!v.isSingle||v.nodeRef.data.actor_config.optional.enable&&v.nodeRef.data.actor_config.optional.multi?m("div",{staticClass:"node-form-item"},[m("a-row",[m("a-col",{attrs:{span:4}},[v._v("多人审批模式")]),m("a-col",{attrs:{span:20}},[m("a-radio-group",{attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.actor_config.check_mode,callback:function(t){v.$set(v.nodeRef.data.actor_config,"check_mode",t)},expression:"nodeRef.data.actor_config.check_mode"}},[m("a-radio-button",{attrs:{value:"queue"}},[v._v("依次审批")]),m("a-radio-button",{attrs:{value:"orsign"}},[v._v("或签")]),m("a-radio-button",{attrs:{value:"sign"}},[v._v("会签")])],1)],1)],1)],1):v._e()],2):v._e(),m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:4}},[v._v("审批人为空时")]),m("a-col",{attrs:{span:20}},[m("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.other_options.approverIsNull,callback:function(t){v.$set(v.nodeRef.data.other_options,"approverIsNull",t)},expression:"nodeRef.data.other_options.approverIsNull"}},[m("a-radio-button",{attrs:{disabled:"",value:"next"}},[v._v(" 跳过 ")]),m("a-radio-button",{attrs:{value:"error"}},[v._v(" 提示错误 ")])],1)],1)],1)],1),m("a-tab-pane",{key:"forms",attrs:{tab:"操作视图"}},[m("div",{staticClass:"node-form-item"},[m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:24}},[m("a-radio-group",{staticClass:"node-form-item",on:{change:v.changeViewType},model:{value:v.optionViewType,callback:function(t){v.optionViewType=t},expression:"optionViewType"}},[m("a-radio",{attrs:{value:"use_model"}},[v._v(" 沿用工作流模型 ")]),m("a-radio",{attrs:{value:"custom"}},[v._v(" 自主选择 ")])],1)],1)],1),m("a-row",[m("a-col",{attrs:{span:24}},["custom"===v.optionViewType?m("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:v.optionViewChange,search:v.optionViewSearch},model:{value:v.nodeRef.data.option_view_id,callback:function(t){v.$set(v.nodeRef.data,"option_view_id",t)},expression:"nodeRef.data.option_view_id"}},v._l(v.optionViewList,(function(t){return m("a-select-option",{key:t.value,attrs:{value:t.value}},[v._v(" "+v._s(t.text)+" ")])})),1):v._e()],1)],1)],1),m("div",{key:v.nodeRef.data.option_view_id,staticClass:"node-from-item"},[m("a-divider",{attrs:{orientation:"left"}},[v._v("表单权限")]),"use_model"===v.optionViewType||v.nodeRef.data.option_view_id?m("a-spin",{attrs:{spinning:v.viewAttrLoading}},[m("a-row",[m("a-col",{attrs:{span:11}},[m("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索表单属性"},on:{search:function(t){return v.formsColumnFilter=t}}})],1),m("a-col",{attrs:{span:1}}),m("a-col",{attrs:{span:11}},[m("a-radio-group",{attrs:{"button-style":"solid"},model:{value:v.formsColumnAccess,callback:function(t){v.formsColumnAccess=t},expression:"formsColumnAccess"}},[m("a-radio-button",{attrs:{value:"all"}},[v._v(" 无 ")]),m("a-radio-button",{attrs:{value:"none"}},[v._v(" 隐藏 ")]),m("a-radio-button",{attrs:{value:"readonly"}},[v._v(" 只读 ")]),m("a-radio-button",{attrs:{value:"write"}},[v._v(" 可写 ")]),m("a-radio-button",{attrs:{value:"readonlywrite"}},[v._v(" 读写 ")])],1)],1)],1),m("a-table",{attrs:{columns:v.optionFormsColumns,"data-source":v.filterDataset(v.formsColumnFilter,v.nodeRef.data.option_forms,["attrName","attrCode"]),"row-key":function(t){return t.attrId}},scopedSlots:v._u([{key:"attrName",fn:function(t,e){return m("span",{},[v._v(v._s(e.attrName)+"("+v._s(e.attrCode)+")")])}},{key:"none",fn:function(t,e){return m("span",{},[m("a-radio",{attrs:{checked:"none"===e.access,value:"none"},on:{change:function(){return e.access="none"}}},[v._v("隐藏")])],1)}},{key:"readonly",fn:function(t,e){return m("span",{},[m("a-radio",{attrs:{checked:"readonly"===e.access,value:"readonly"},on:{change:function(){return e.access="readonly"}}},[v._v("只读")])],1)}},{key:"write",fn:function(t,e){return m("span",{},[m("a-radio",{attrs:{checked:"write"===e.access,value:"write"},on:{change:function(){return e.access="write"}}},[v._v("可编辑")])],1)}},{key:"required",fn:function(t,e){return m("span",{},["write"===e.access?m("a-switch",{model:{value:e.required,callback:function(t){v.$set(e,"required",t)},expression:"record.required"}}):v._e()],1)}}],null,!1,274236117)},[m("span",{attrs:{slot:"noneColumn"},slot:"noneColumn"},[m("a-radio",{attrs:{checked:"none"===v.optionFormsRadio,value:"none"},on:{change:function(t){return v.optionFormsRadioChange("none")}}},[v._v("隐藏")])],1),m("span",{attrs:{slot:"readonlyColumn"},slot:"readonlyColumn"},[m("a-radio",{attrs:{checked:"readonly"===v.optionFormsRadio,value:"readonly"},on:{change:function(t){return v.optionFormsRadioChange("readonly")}}},[v._v("只读")])],1),m("span",{attrs:{slot:"writeColumn"},slot:"writeColumn"},[m("a-radio",{attrs:{checked:"write"===v.optionFormsRadio,value:"write"},on:{change:function(t){return v.optionFormsRadioChange("write")}}},[v._v("可编辑")])],1)])],1):v._e()],1)]),m("a-tab-pane",{key:"others",attrs:{tab:"其他配置"}},[m("a-card",{staticStyle:{margin:"5px"},attrs:{size:"small",title:"消息配置"}},[m("a-input",{staticStyle:{"margin-bottom":"5px"},attrs:{placeholder:"待办跳转地址;以/结尾,例如:/${appKey}#/res_path/"},model:{value:v.nodeRef.data.other_options.resPath,callback:function(t){v.$set(v.nodeRef.data.other_options,"resPath",t)},expression:"nodeRef.data.other_options.resPath"}}),m("a-input",{attrs:{placeholder:"消息跳转地址"},model:{value:v.nodeRef.data.other_options.redirectUri,callback:function(t){v.$set(v.nodeRef.data.other_options,"redirectUri",t)},expression:"nodeRef.data.other_options.redirectUri"}}),v.noticeTemplateAttr?m("Item",{key:v.noticeTemplateAttr.name,staticClass:"node-form-item",attrs:{formModel:v.eadApi.getComponent().actionModel,params:null!==(p=v.noticeTemplateAttr.params)&&void 0!==p?p:{},prop:v.noticeTemplateAttr.name,required:!1,schema:v.noticeTemplateAttr},on:{change:function(t){return v.handleItemChange(t,v.noticeTemplateAttr)}},model:{value:v.nodeRef.data.notice_template,callback:function(t){v.$set(v.nodeRef.data,"notice_template",t)},expression:"nodeRef.data.notice_template"}}):v._e(),m("a-alert",{attrs:{message:"模板变量:",type:"success"}},[m("div",{attrs:{slot:"description"},slot:"description"},[m("div",[v._v("${workflow.variable.sponsor} - 发起人")]),m("div",[v._v("${workflow.variable.sponsor_name} - 发起人姓名")]),m("div",[v._v("${workflow.variable.sponsor_org} - 发起人组织机构")]),m("div",[v._v("${workflow.variable.sponsor_org_name} - 发起人组织机构名称")]),m("div",[v._v("${workflow.variable.sponsor_role} - 发起人角色")]),m("div",[v._v("${workflow.variable.sponsor_role_name} - 发起人角色名")]),m("div",[v._v("${workflow_req.page_operate.action} - 审批动作")]),m("div",[v._v("${workflow_req.page_operate.approver} - 审批人")]),m("div",[v._v("${workflow_req.page_operate.approver_name} - 审批人名称")])])])],1),m("div",{staticClass:"node-form-item"},[m("a-divider",{attrs:{orientation:"left"}},[v._v("退回配置")]),m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:4}},[v._v("退回配置")]),m("a-col",{attrs:{span:20}},[m("a-radio-group",{staticClass:"node-from-item",staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.page_options.allowBack,callback:function(t){v.$set(v.nodeRef.data.page_options,"allowBack",t)},expression:"nodeRef.data.page_options.allowBack"}},[m("a-radio-button",{attrs:{value:!1}},[v._v(" 禁止 ")]),m("a-radio-button",{attrs:{value:!0}},[v._v(" 允许 ")])],1)],1)],1),m("a-row",[m("a-col",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"},attrs:{span:24}},[v.nodeRef.data.page_options.allowBack?m("a-radio-group",{attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.back_type,callback:function(t){v.$set(v.nodeRef.data,"back_type",t)},expression:"nodeRef.data.back_type"}},[m("a-radio-button",{attrs:{value:"start"}},[v._v(" 退回发起人 ")]),m("a-radio-button",{attrs:{value:"before"}},[v._v(" 退回上一步 ")]),v.availableBackStep.length?m("a-radio-button",{attrs:{value:"assign"}},[v._v(" 指定退回节点 ")]):v._e(),v.availableBackStep.length?m("a-radio-button",{attrs:{value:"custom"}},[v._v(" 自主选择退回节点 ")]):v._e(),m("a-radio-button",{attrs:{value:"bpmn"}},[v._v(" 后续节点控制 ")])],1):v._e()],1)],1),v.nodeRef.data.page_options.allowBack&&"custom"===v.nodeRef.data.back_type?m("a-row",{staticStyle:{display:"flex","align-items":"center"}},[m("a-col",{attrs:{span:5}},[v._v("自主选择退回节点")]),m("a-col",{attrs:{span:19}},[m("a-select",{staticStyle:{width:"100%"},attrs:{options:v.availableBackStep,mode:"multiple",placeholder:"可选退回节点"},model:{value:v.nodeRef.data.custom_back_nodes,callback:function(t){v.$set(v.nodeRef.data,"custom_back_nodes",t)},expression:"nodeRef.data.custom_back_nodes"}})],1)],1):v._e(),v.nodeRef.data.page_options.allowBack&&"assign"===v.nodeRef.data.back_type?m("a-row",{staticStyle:{display:"flex","align-items":"center"}},[m("a-col",{attrs:{span:4}},[v._v("指定退回节点")]),m("a-col",{attrs:{span:20}},[m("a-select",{staticStyle:{width:"100%"},attrs:{options:v.availableBackStep,placeholder:"指定退回节点"},model:{value:v.nodeRef.data.back_node_id,callback:function(t){v.$set(v.nodeRef.data,"back_node_id",t)},expression:"nodeRef.data.back_node_id"}})],1)],1):v._e(),v.nodeRef.data.page_options.allowBack&&"bpmn"===v.nodeRef.data.back_type?m("a-row",[m("a-alert",{attrs:{message:"退回表达式: workflow_req.page_operate.action === 'back'",type:"success"}})],1):v._e()],1),v.nodeRef.data.timeout_remind.enable?m("div",[m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:4}},[v._v("超时时间")]),m("a-col",{attrs:{span:8}},[m("a-input-group",{attrs:{compact:""}},[m("a-input-number",{staticStyle:{width:"70%"},attrs:{max:100,min:1},on:{change:function(t){t||(v.nodeRef.data.timeout_remind.outTime.time=1)}},model:{value:v.nodeRef.data.timeout_remind.outTime.time,callback:function(t){v.$set(v.nodeRef.data.timeout_remind.outTime,"time",t)},expression:"nodeRef.data.timeout_remind.outTime.time"}}),m("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:v.nodeRef.data.timeout_remind.outTime.unit,callback:function(t){v.$set(v.nodeRef.data.timeout_remind.outTime,"unit",t)},expression:"nodeRef.data.timeout_remind.outTime.unit"}})],1)],1)],1),m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:4}},[v._v("提醒周期")]),m("a-col",{attrs:{span:20}},[m("a-radio-group",{attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.timeout_remind.outCycle,callback:function(t){v.$set(v.nodeRef.data.timeout_remind,"outCycle",t)},expression:"nodeRef.data.timeout_remind.outCycle"}},[m("a-radio-button",{attrs:{value:"once"}},[v._v(" 一次 ")]),m("a-radio-button",{attrs:{value:"day"}},[v._v(" 每天 ")]),m("a-radio-button",{attrs:{value:"week"}},[v._v(" 每周 ")]),m("a-radio-button",{attrs:{value:"month"}},[v._v(" 每月 ")]),m("a-radio-button",{attrs:{value:"year"}},[v._v(" 每年 ")])],1)],1)],1),m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:4}},[v._v("超时驱动")]),m("a-col",{attrs:{span:20}},[m("a-select",{staticStyle:{width:"100%"},attrs:{"default-active-first-option":!1,"filter-option":!1,"not-found-content":null,options:v.driverList,"show-arrow":!1,allowClear:"",placeholder:"输入驱动","show-search":""},on:{change:v.handleDriverChange,search:v.handleDriverSearch},model:{value:v.nodeRef.data.timeout_remind.outDriver,callback:function(t){v.$set(v.nodeRef.data.timeout_remind,"outDriver",t)},expression:"nodeRef.data.timeout_remind.outDriver"}})],1)],1)],1):v._e(),m("div",{staticClass:"node-form-item"},[m("a-divider",{attrs:{orientation:"left"}},[v._v("转办配置")]),m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:4}},[v._v("允许转办")]),m("a-col",{attrs:{span:20}},[m("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.page_options.allowReassign,callback:function(t){v.$set(v.nodeRef.data.page_options,"allowReassign",t)},expression:"nodeRef.data.page_options.allowReassign"}},[m("a-radio-button",{attrs:{value:!1}},[v._v(" 禁止 ")]),m("a-radio-button",{attrs:{value:!0}},[v._v(" 允许 ")])],1)],1)],1)],1),m("div",{staticClass:"node-form-item"},[m("a-divider",{attrs:{orientation:"left"}},[v._v("加签配置")]),m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:4}},[v._v("允许加签")]),m("a-col",{attrs:{span:20}},[m("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.page_options.allowInvolve,callback:function(t){v.$set(v.nodeRef.data.page_options,"allowInvolve",t)},expression:"nodeRef.data.page_options.allowInvolve"}},[m("a-radio-button",{attrs:{value:!1}},[v._v(" 禁止 ")]),m("a-radio-button",{attrs:{value:!0}},[v._v(" 允许 ")])],1)],1)],1)],1),m("div",{staticClass:"node-form-item"},[m("a-divider",{attrs:{orientation:"left"}},[v._v("流程结束")]),m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:4}},[v._v("允许结束")]),m("a-col",{attrs:{span:20}},[m("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.page_options.allowEnd,callback:function(t){v.$set(v.nodeRef.data.page_options,"allowEnd",t)},expression:"nodeRef.data.page_options.allowEnd"}},[m("a-radio-button",{attrs:{value:!1}},[v._v(" 禁止 ")]),m("a-radio-button",{attrs:{value:!0,disabled:""}},[v._v(" 允许 ")])],1)],1)],1)],1),m("div",[m("a-divider",{attrs:{orientation:"left"}},[v._v("超时提醒")])],1),m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:4}},[v._v("超时提醒设置")]),m("a-col",{attrs:{span:20}},[m("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.timeout_remind.enable,callback:function(t){v.$set(v.nodeRef.data.timeout_remind,"enable",t)},expression:"nodeRef.data.timeout_remind.enable"}},[m("a-radio-button",{attrs:{value:!1}},[v._v(" 禁用 ")]),m("a-radio-button",{attrs:{value:!0,disabled:""}},[v._v(" 启用 ")])],1)],1)],1),m("div",{staticClass:"node-form-item"},[m("a-divider",{attrs:{orientation:"left"}},[v._v("其他配置")]),m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:4}},[v._v("是否回执")]),m("a-col",{attrs:{span:20}},[m("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.other_options.allowReceipt,callback:function(t){v.$set(v.nodeRef.data.other_options,"allowReceipt",t)},expression:"nodeRef.data.other_options.allowReceipt"}},[m("a-radio-button",{attrs:{value:!1}},[v._v(" 禁止 ")]),m("a-radio-button",{attrs:{value:!0,disabled:""}},[v._v(" 允许 ")])],1)],1)],1)],1),m("div",{staticClass:"node-form-item"},[m("a-divider",{attrs:{orientation:"left"}},[v._v("自定义参数")]),m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:24}},[m("a-textarea",{attrs:{"auto-size":"",placeholder:"自定义参数(JSONObject); {}"},model:{value:v.nodeRef.data.other_options.custom,callback:function(t){v.$set(v.nodeRef.data.other_options,"custom",t)},expression:"nodeRef.data.other_options.custom"}})],1)],1)],1),m("div",{staticClass:"node-form-item"},[m("a-divider",{attrs:{orientation:"left"}},[v._v("自定义动作名称")]),m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{staticStyle:{display:"flex","align-items":"center"},attrs:{span:3}},[v._v("审批通过:")]),m("a-col",{staticStyle:{display:"flex","align-items":"center"},attrs:{span:6}},[m("a-input",{attrs:{placeholder:"审批通过"},model:{value:v.nodeRef.data.other_options.custom_action.pass,callback:function(t){v.$set(v.nodeRef.data.other_options.custom_action,"pass",t)},expression:"nodeRef.data.other_options.custom_action.pass"}})],1),m("a-col",{attrs:{span:5}}),m("a-col",{staticStyle:{display:"flex","align-items":"center"},attrs:{span:3}},[v._v("审批退回:")]),m("a-col",{staticStyle:{display:"flex","align-items":"center"},attrs:{span:6}},[m("a-input",{attrs:{placeholder:"审批退回"},model:{value:v.nodeRef.data.other_options.custom_action.back,callback:function(t){v.$set(v.nodeRef.data.other_options.custom_action,"back",t)},expression:"nodeRef.data.other_options.custom_action.back"}})],1)],1)],1)],1),v.nodeRef.data.other_options.assert?m("a-tab-pane",{key:"assert",attrs:{tab:"断言"}},[m("div",[v.nodeRef.data.other_options.assert?m("assert-designer",{attrs:{data:v.nodeRef.data.other_options.assert,"hide-action":!1}}):v._e()],1)]):v._e()],1)],1)],1)},Fp=[];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 Vp(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Vp=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==$p(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Hp(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 Up(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Hp(i,n,o,a,s,"next",t)}function s(t){Hp(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Gp(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=zp(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 zp(t,e){if(t){if("string"===typeof t)return Kp(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)?Kp(t,e):void 0}}function Kp(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 Yp(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 Wp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yp(Object(r),!0).forEach((function(e){Zp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zp(t,e,r){return e=Jp(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jp(t){var e=Xp(t,"string");return"symbol"===$p(e)?e:String(e)}function Xp(t,e){if("object"!==$p(t)||null===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)}var Qp={name:"CheckNode",props:{node:Md,nodeHandler:Object},components:{AssertDesigner:lp,RuntimeWorkflowActors:np,Item:Oi},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},d={visiblePopover:l,showPopover:f,hidePopover:u},h=[{name:"条件分支",type:Nd.JUDGE_WRAP,icon:{type:"apartment"},color:"rgb(21, 188, 131)"},{name:"并行分支",type:Nd.PARALLEL_WRAP,icon:{type:"sliders"},color:"rgb(113, 141, 255)"}],p=function(t){r.wrapNode(e.code,{type:t})},v={nodes:h,wrapNode:p},m=r.isPreview?null:r.businessAdapter.eadApi.getCurrentViewSchema().model.attrs.find((function(t){return"notice_template"===t.name}));return Wp(Wp(Wp(Wp({icon:n},c),d),v),{},{nodeRef:e,eadApi:i,noticeTemplateAttr:m})},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,i,a,s,c="";if(null!==(e=this.nodeHandler)&&void 0!==e&&null!==(r=e.runtimeData)&&void 0!==r&&r.caseNodes&&null!==(n=this.nodeHandler)&&void 0!==n&&null!==(o=n.runtimeData)&&void 0!==o&&null!==(i=o.caseNodes[this.node.code])&&void 0!==i&&i.status){var l,u,f=null===(l=this.nodeHandler)||void 0===l||null===(u=l.runtimeData)||void 0===u?void 0:u.caseNodes[this.node.code].actors;f.forEach((function(t){c&&(c+="、"),c+='<span class="actor '.concat(t.status,'">').concat(t.operator.name,"</span>")})),c||(c+=" ")}return(null===(a=this.nodeHandler)||void 0===a||null===(s=a.runtimeData)||void 0===s?void 0:s.currentNodeCode)===this.nodeRef.code&&(c&&" "!==c&&(c+="、"),c+='<span class="actor pending">'.concat(this.eadApi.getCurrentUserName(),"</span>")),c||this.nodeRef.content}var d=this.node.data.actor_config,h="";if(!this.orgMap||!this.roles||!this.users)return h;if("expression"===d.type){var p=d.expression;if(p.length){if("org"===p[0].type){if(p[0].orgId)if(this.orgMap.has(p[0].orgId))h=h+=h?"、"+this.orgMap.get(p[0].orgId).org_name:this.orgMap.get(p[0].orgId).org_name;else{var v,m=null===(v=this.businessOrgData.children.find((function(t){return t.value===p[0].orgId})))||void 0===v?void 0:v.title;h=h+=h?"、"+m:m}p[0].roleId&&(h=h+=h?"-"+this.roles.find((function(t){return t.value===p[0].roleId})).label:this.roles.find((function(t){return t.value===p[0].roleId})).label)}if("uid"===p[0].type){var y=this.businessUserData.map((function(t){return t.value}));h=p[0].user.map((function(e){var r=y.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("、")}}p.length>1&&(h+="...")}return"sponsor"===d.type&&(h="发起人自己"),this.nodeRef.content=h,h},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=Gp(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,o,i,a,s="";return this.node.error&&(s+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(e=t.runtimeData)||void 0===e?void 0:e.currentNodeCode)===this.node.code?s+=" ongoing":null!==(r=this.nodeHandler)&&void 0!==r&&null!==(n=r.runtimeData)&&void 0!==n&&n.caseNodes&&null!==(o=this.nodeHandler)&&void 0!==o&&null!==(i=o.runtimeData)&&void 0!==i&&null!==(a=i.caseNodes[this.node.code])&&void 0!==a&&a.status&&(s+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),s},filterUser:function(t,e){var r=e.data;return-1!==r.key.indexOf(t)},loadCache:function(t){var e,r,n,o,i,a,s,c,l,u,f,d;this.optionViewType=null!==(e=null===(r=t.data)||void 0===r||null===(n=r.eadCache)||void 0===n||null===(o=n.workflow)||void 0===o?void 0:o.optionViewType)&&void 0!==e?e:this.optionViewType,this.optionViewList=null!==(i=null===(a=t.data)||void 0===a||null===(s=a.eadCache)||void 0===s||null===(c=s.workflow)||void 0===c?void 0:c.optionViewList)&&void 0!==i?i:this.optionViewList,this.driverList=null!==(l=null===(u=t.data)||void 0===u||null===(f=u.eadCache)||void 0===f||null===(d=f.workflow)||void 0===d?void 0:d.driverList)&&void 0!==l?l: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 Up(Vp().mark((function r(){return Vp().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 Up(Vp().mark((function r(){var n,o;return Vp().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=Up(Vp().mark((function t(){var e,r,n,o,i,a,s;return Vp().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}()},tv=Qp,ev=(r("475a"),Nr(tv,Bp,Fp,!1,null,"14b216a6",null)),rv=ev.exports,nv=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)},ov=[];function iv(t){return iv="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},iv(t)}function av(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 sv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?av(Object(r),!0).forEach((function(e){cv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):av(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cv(t,e,r){return e=lv(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lv(t){var e=uv(t,"string");return"symbol"===iv(e)?e:String(e)}function uv(t,e){if("object"!==iv(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==iv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var fv={name:"JudgeWrapNode",computed:{NodeWrap:function(){return Dm}},props:{node:Md,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 sv({includeIcon:o,childNodeCodes:n,nodeRef:e,eadApi:i},u)},methods:{addBranch:function(){this.nodeHandler.addBranch(this.node.code,"条件")}}},dv=fv,hv=(r("05db"),Nr(dv,nv,ov,!1,null,"0ab38de0",null)),pv=hv.exports,vv=function(){var t,e,r=this,n=r._self._c;return n("div",[n("div",{staticClass:"node",class:r.getClass(),on:{click:r.click}},[r.nodeHandler.isPreview?n("div",{staticClass:"disable node-left"}):r._e(),r.nodeHandler.isPreview?r._e():n("div",{staticClass:"node-left",class:r.option.left?"":"disable",on:{click:function(t){return t.stopPropagation(),r.toLeft.apply(null,arguments)}}},[n("span",[r.option.left?n("a-icon",{staticClass:"icon",attrs:{type:"left"}}):r._e()],1)]),n("div",{staticClass:"node-content"},[n("div",{staticClass:"title"},[n("span",{staticClass:"title-main",staticStyle:{"margin-right":"5px"}},["exclusive"===(null===(t=r.wrapNode)||void 0===t||null===(e=t.data)||void 0===e?void 0:e.gateway_type)?n("a-icon",{attrs:{type:"apartment"}}):n("a-icon",{attrs:{type:"deployment-unit"}})],1),n("span",{staticClass:"title-main"},[r._v(r._s(r.node.name))]),r.nodeHandler.isPreview?r._e():n("span",{staticClass:"title-right"},[n("a-icon",{staticClass:"close",attrs:{type:"close"},on:{click:function(t){return t.stopPropagation(),r.close.apply(null,arguments)}}}),n("span",{staticClass:"info"},[r._v("优先级"+r._s(r.option.index+1))])],1)]),n("div",{staticClass:"content"},[n("span",{staticClass:"content-main"},[n("span",{staticClass:"error-tooltip"},[n("a-tooltip",[n("template",{slot:"title"},[r._v(" "+r._s(r.node.error)+" ")]),n("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),r.node.content?n("span",[r._v(r._s(r.node.content))]):n("span",{staticStyle:{color:"rgb(164 164 164)"}},[r._v(r._s(r.defaultContent))])])])]),r.nodeHandler.isPreview?n("div",{staticClass:"disable node-right"}):r._e(),r.nodeHandler.isPreview?r._e():n("div",{staticClass:"node-right",class:r.option.right?"":"disable",on:{click:function(t){return t.stopPropagation(),r.toRight.apply(null,arguments)}}},[n("span",[r.option.right?n("a-icon",{staticClass:"icon",attrs:{type:"right"}}):r._e()],1)])]),n("a-drawer",{attrs:{"after-visible-change":r.change,closable:!0,visible:r.visible,width:720,placement:"right"},on:{close:r.hideDrawer}},[r.editName?r._e():n("div",{staticClass:"node-drawer-title",on:{click:r.showEditName}},[n("a-icon",{attrs:{type:"edit"}}),r._v(" "+r._s(r.node.name)+" ")],1),n("a-form-model",{directives:[{name:"show",rawName:"v-show",value:r.editName,expression:"editName"}],ref:"nameForm",attrs:{model:r.nodeRef,rules:{name:[{required:!0,message:"请填写节点名称",trigger:"blur"},{min:2,max:20,message:"2-20个字",trigger:"blur"}]},layout:"inline"}},[n("a-form-model-item",{ref:"name",attrs:{prop:"name"}},[n("a-input",{ref:"nameInput",attrs:{placeholder:"节点名称"},on:{blur:function(){r.editName=!1}},model:{value:r.nodeRef.name,callback:function(t){r.$set(r.nodeRef,"name",t)},expression:"nodeRef.name"}})],1)],1),n("div",[r.hasDefault?r._e():n("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[n("a-col",{attrs:{span:2}},[r._v("默认")]),n("a-col",{attrs:{span:22}},[n("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:r.nodeRef.data.isDefault,callback:function(t){r.$set(r.nodeRef.data,"isDefault",t)},expression:"nodeRef.data.isDefault"}},[n("a-radio-button",{attrs:{value:!1}},[r._v(" 否 ")]),n("a-radio-button",{attrs:{value:!0}},[r._v(" 是 ")])],1)],1)],1),r.nodeRef.data.isDefault?r._e():n("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[n("a-col",{attrs:{span:2}},[r._v("表达式")]),n("a-col",{attrs:{span:22}},[n("a-textarea",{attrs:{"auto-size":""},model:{value:r.nodeRef.data.condition,callback:function(t){r.$set(r.nodeRef.data,"condition",t)},expression:"nodeRef.data.condition"}})],1)],1),n("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[n("a-col",{attrs:{span:2}},[r._v("描述")]),n("a-col",{attrs:{span:22}},[n("a-textarea",{attrs:{"auto-size":""},model:{value:r.nodeRef.content,callback:function(t){r.$set(r.nodeRef,"content",t)},expression:"nodeRef.content"}})],1)],1)],1)],1)],1)},mv=[],yv={name:"JudgeNode",props:{option:{left:Boolean,right:Boolean,index:Number},node:Md,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,n;return null===(r=t.nodeHandler.getNode(e))||void 0===r||null===(n=r.data)||void 0===n?void 0:n.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,o,i,a,s="";return this.node.error&&(s+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(e=t.runtimeData)||void 0===e?void 0:e.currentNodeCode)===this.node.code?s+=" ongoing":null!==(r=this.nodeHandler)&&void 0!==r&&null!==(n=r.runtimeData)&&void 0!==n&&n.caseNodes&&null!==(o=this.nodeHandler)&&void 0!==o&&null!==(i=o.runtimeData)&&void 0!==i&&null!==(a=i.caseNodes[this.node.code])&&void 0!==a&&a.status&&(s+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),s},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)}},gv=yv,bv=(r("5966"),Nr(gv,vv,mv,!1,null,"3cf68a4f",null)),wv=bv.exports;function _v(t){return Sv(t)||Ov(t)||kv(t)||xv()}function xv(){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 kv(t,e){if(t){if("string"===typeof t)return Ev(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)?Ev(t,e):void 0}}function Ov(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Sv(t){if(Array.isArray(t))return Ev(t)}function Ev(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 jv=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(_v(e.businessUserData),_v(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(_v(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)},Nv=[];function Lv(t){return Lv="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},Lv(t)}function Pv(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Pv=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Lv(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Cv(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 Av(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Cv(i,n,o,a,s,"next",t)}function s(t){Cv(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Tv(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Rv(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 Rv(t,e){if(t){if("string"===typeof t)return Dv(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)?Dv(t,e):void 0}}function Dv(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 Mv(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){qv(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 qv(t,e,r){return e=Bv(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bv(t){var e=Fv(t,"string");return"symbol"===Lv(e)?e:String(e)}function Fv(t,e){if("object"!==Lv(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Lv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var $v={name:"CCNode",props:{node:Md,nodeHandler:Object},components:{Item:Oi},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},d={visiblePopover:l,showPopover:f,hidePopover:u},h=[{name:"条件分支",type:Nd.JUDGE_WRAP,icon:{type:"apartment"},color:"rgb(21, 188, 131)"},{name:"并行分支",type:Nd.PARALLEL_WRAP,icon:{type:"sliders"},color:"rgb(113, 141, 255)"}],p=function(t){r.wrapNode(e.code,{type:t})},v={nodes:h,wrapNode:p},m=r.isPreview?null:r.businessAdapter.eadApi.getCurrentViewSchema().model.attrs.find((function(t){return"notice_template"===t.name}));return Mv(Mv(Mv(Mv({},c),d),v),{},{nodeRef:e,eadApi:o,noticeTemplateAttr:m})},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=Tv(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,o,i,a,s="";return this.node.error&&(s+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(e=t.runtimeData)||void 0===e?void 0:e.currentNodeCode)===this.node.code?s+=" ongoing":null!==(r=this.nodeHandler)&&void 0!==r&&null!==(n=r.runtimeData)&&void 0!==n&&n.caseNodes&&null!==(o=this.nodeHandler)&&void 0!==o&&null!==(i=o.runtimeData)&&void 0!==i&&null!==(a=i.caseNodes[this.node.code])&&void 0!==a&&a.status&&(s+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),s},loadCache:function(t){var e,r,n,o,i,a,s,c;this.optionViewType=null!==(e=null===(r=t.data)||void 0===r||null===(n=r.eadCache)||void 0===n||null===(o=n.workflow)||void 0===o?void 0:o.optionViewType)&&void 0!==e?e:this.optionViewType,this.optionViewList=null!==(i=null===(a=t.data)||void 0===a||null===(s=a.eadCache)||void 0===s||null===(c=s.workflow)||void 0===c?void 0:c.optionViewList)&&void 0!==i?i: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 Av(Pv().mark((function r(){return Pv().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 Av(Pv().mark((function r(){var n,o;return Pv().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 Av(Pv().mark((function e(){var r,n,o,i,a,s,c;return Pv().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)})))()}},Vv=$v,Hv=(r("cbcf"),Nr(Vv,jv,Nv,!1,null,"0743a454",null)),Uv=Hv.exports,Gv=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,title:t.node.name,visible:t.visibleDrawer,width:720,placement:"right"},on:{close:t.hideDrawer}},[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)},zv=[];function Kv(t){return Kv="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},Kv(t)}function Yv(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 Wv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yv(Object(r),!0).forEach((function(e){Zv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zv(t,e,r){return e=Jv(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jv(t){var e=Xv(t,"string");return"symbol"===Kv(e)?e:String(e)}function Xv(t,e){if("object"!==Kv(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Kv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Qv={name:"TriggerNode",props:{node:Md,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:{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},d=function(){return u.value=!0},h={visiblePopover:u,showPopover:d,hidePopover:f},p=[{name:"条件分支",type:Nd.JUDGE_WRAP,icon:{type:"apartment"},color:"rgb(21, 188, 131)"},{name:"并行分支",type:Nd.PARALLEL_WRAP,icon:{type:"sliders"},color:"rgb(113, 141, 255)"}],v=function(t){r.wrapNode(e.code,{type:t})},m={nodes:p,wrapNode:v};return Wv(Wv(Wv(Wv({},l),h),m),{},{nodeRef:e,eadApi:n})},computed:{nodeContent:function(){var t=null,e=this.nodeRef.data.other_options;return e.driver&&(t=this.driverList.find((function(t){return t.value===e.driver})).title),this.nodeRef.content=t,t}},methods:{getClass:function(){var t,e,r,n,o,i,a,s="";return this.node.error&&(s+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(e=t.runtimeData)||void 0===e?void 0:e.currentNodeCode)===this.node.code?s+=" ongoing":null!==(r=this.nodeHandler)&&void 0!==r&&null!==(n=r.runtimeData)&&void 0!==n&&n.caseNodes&&null!==(o=this.nodeHandler)&&void 0!==o&&null!==(i=o.runtimeData)&&void 0!==i&&null!==(a=i.caseNodes[this.node.code])&&void 0!==a&&a.status&&(s+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),s},loadCache:function(t){var e,r,n,o;this.driverList=null!==(e=null===(r=t.data)||void 0===r||null===(n=r.eadCache)||void 0===n||null===(o=n.workflow)||void 0===o?void 0:o.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_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(){}},tm=Qv,em=(r("f490"),Nr(tm,Gv,zv,!1,null,"e4778b2c",null)),rm=em.exports,nm=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)},om=[],im=r("c32d"),am=r.n(im);function sm(t){return sm="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},sm(t)}function cm(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 lm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cm(Object(r),!0).forEach((function(e){um(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function um(t,e,r){return e=fm(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fm(t){var e=dm(t,"string");return"symbol"===sm(e)?e:String(e)}function dm(t,e){if("object"!==sm(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==sm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var hm={name:"DelayNode",props:{node:Md,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},d=function(){return u.value=!0},h={visiblePopover:u,showPopover:d,hidePopover:f},p=[{name:"条件分支",type:Nd.JUDGE_WRAP,icon:{type:"apartment"},color:"rgb(21, 188, 131)"},{name:"并行分支",type:Nd.PARALLEL_WRAP,icon:{type:"sliders"},color:"rgb(113, 141, 255)"}],v=function(t){r.wrapNode(e.code,{type:t})},m={nodes:p,wrapNode:v};return lm(lm(lm(lm({},l),h),m),{},{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=am()(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,o,i,a,s="";return this.node.error&&(s+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(e=t.runtimeData)||void 0===e?void 0:e.currentNodeCode)===this.node.code?s+=" ongoing":null!==(r=this.nodeHandler)&&void 0!==r&&null!==(n=r.runtimeData)&&void 0!==n&&n.caseNodes&&null!==(o=this.nodeHandler)&&void 0!==o&&null!==(i=o.runtimeData)&&void 0!==i&&null!==(a=i.caseNodes[this.node.code])&&void 0!==a&&a.status&&(s+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),s},loadCache:function(t){var e,r,n,o;this.driverList=null!==(e=null===(r=t.data)||void 0===r||null===(n=r.eadCache)||void 0===n||null===(o=n.workflow)||void 0===o?void 0:o.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(){}},pm=hm,vm=(r("1697"),Nr(pm,nm,om,!1,null,"7fbee4d6",null)),mm=vm.exports,ym={EndNode:Wh,StartNode:wp,ParallelNode:Ep,ParallelWrapNode:Ap,CheckNode:rv,JudgeNode:wv,JudgeWrapNode:pv,CCNode:Uv,TriggerNode:rm,DelayNode:mm},gm=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)])])},bm=[],wm={name:"AddNode",props:{node:Md,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:Nd.CHECK,icon:{component:n},color:"rgb(255, 148, 62)"},{name:"抄送人",type:Nd.CC,icon:{type:"mail"},color:"rgb(50, 150, 250)"},{name:"触发器",type:Nd.TRIGGER,icon:{type:"control"},color:"rgb(53, 184, 129)"},{disabled:!0,name:"延迟等待",type:Nd.DELAY,icon:{type:"clock-circle"},color:"rgb(219,86,69)"},{name:"条件分支",type:Nd.JUDGE_WRAP,icon:{type:"apartment"},color:"rgb(21, 188, 131)"},{name:"并行分支",type:Nd.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}}},_m=wm,xm=r("3593"),km=r.n(xm),Om=Nr(_m,gm,bm,!1,null,"14eb0ec0",null);"function"===typeof km.a&&km()(Om);var Sm=Om.exports;function Em(t){return Em="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},Em(t)}function jm(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 Nm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jm(Object(r),!0).forEach((function(e){Lm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Lm(t,e,r){return e=Pm(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pm(t){var e=Cm(t,"string");return"symbol"===Em(e)?e:String(e)}function Cm(t,e){if("object"!==Em(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Em(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Am={name:"NodeWrap",computed:{NodeType:function(){return Nd}},components:Nm({AddNode:Sm},ym),props:{nodeConfig:Object,nodeHandler:Object},setup:function(t){var e=t.nodeConfig,r=Md.parse(e.node),n=r.type,o=Nd.getNodeType(n),i=o.mode,a=o.component,s={};return[Nd.START].forEach((function(t){return s[t]="start-node-box"})),[Nd.CHECK,Nd.CC,Nd.PARALLEL,Nd.JUDGE,Nd.TRIGGER,Nd.DELAY].forEach((function(t){return s[t]="node-box"})),[Nd.PARALLEL_WRAP,Nd.JUDGE_WRAP].forEach((function(t){return s[t]="wrap-box"})),{mode:i,type:n,component:a,node:Object(N["ref"])(r),uiStyle:s}}},Tm=Am,Rm=Nr(Tm,Vh,Hh,!1,null,"63654330",null),Dm=Rm.exports;function Im(t){return Im="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},Im(t)}function Mm(){return Mm="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=qm(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},Mm.apply(this,arguments)}function qm(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=Gm(t),null===t)break;return t}function Bm(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&&Fm(t,e)}function Fm(t,e){return Fm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Fm(t,e)}function $m(t){var e=Um();return function(){var r,n=Gm(t);if(e){var o=Gm(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Vm(this,r)}}function Vm(t,e){if(e&&("object"===Im(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Hm(t)}function Hm(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Um(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function Gm(t){return Gm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Gm(t)}function zm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Km(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,Wm(n.key),n)}}function Ym(t,e,r){return e&&Km(t.prototype,e),r&&Km(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Wm(t){var e=Zm(t,"string");return"symbol"===Im(e)?e:String(e)}function Zm(t,e){if("object"!==Im(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Im(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Jm=function(){function t(){zm(this,t)}return Ym(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){Bm(r,t);var e=$m(r);function r(){return zm(this,r),e.apply(this,arguments)}return Ym(r,[{key:"getNodeData",value:function(t){return[]}},{key:"verifyNodeData",value:function(t){Mm(Gm(r.prototype),"verifyNodeData",this).call(this,t)}},{key:"verifyNode",value:function(t){Mm(Gm(r.prototype),"verifyNode",this).call(this,t)}},{key:"saveNode",value:function(t){Mm(Gm(r.prototype),"saveNode",this).call(this,t)}},{key:"saveNodeData",value:function(t){Mm(Gm(r.prototype),"saveNodeData",this).call(this,t)}}],[{key:"getBusinessAdapter",value:function(){return new r}}]),r}(t);return e.getBusinessAdapter()}}]),t}(),Xm=Jm,Qm={name:"NodeContainer",components:{NodeWrap:Dm},props:{defaultZoomScale:Number,hideZoom:Boolean,nodeData:Array,isPreview:Boolean,runtimeData:Object,businessAdapter:Xm},data:function(){return{zoomScale:100,middle:0}},setup:function(t){var e=new $h(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)}))}},ty=Qm,ey=(r("193e"),Nr(ty,ud,fd,!1,null,null,null)),ry=ey.exports;function ny(t){return ny="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},ny(t)}function oy(t){return cy(t)||sy(t)||ay(t)||iy()}function iy(){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 ay(t,e){if(t){if("string"===typeof t)return ly(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)?ly(t,e):void 0}}function sy(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function cy(t){if(Array.isArray(t))return ly(t)}function ly(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 uy(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */uy=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==ny(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function fy(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 dy(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){fy(i,n,o,a,s,"next",t)}function s(t){fy(i,n,o,a,s,"throw",t)}a(void 0)}))}}function hy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function py(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,Ey(n.key),n)}}function vy(t,e,r){return e&&py(t.prototype,e),r&&py(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function my(){return my="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=yy(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},my.apply(this,arguments)}function yy(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=Oy(t),null===t)break;return t}function gy(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&&by(t,e)}function by(t,e){return by=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},by(t,e)}function wy(t){var e=ky();return function(){var r,n=Oy(t);if(e){var o=Oy(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return _y(this,r)}}function _y(t,e){if(e&&("object"===ny(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return xy(t)}function xy(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ky(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function Oy(t){return Oy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Oy(t)}function Sy(t,e,r){return e=Ey(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ey(t){var e=jy(t,"string");return"symbol"===ny(e)?e:String(e)}function jy(t,e){if("object"!==ny(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ny(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Ny(t,e,r){Ly(t,e),e.set(t,r)}function Ly(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Py(t,e){var r=Ty(t,e,"get");return Cy(t,r)}function Cy(t,e){return e.get?e.get.call(t):e.value}function Ay(t,e,r){var n=Ty(t,e,"set");return Ry(t,n,r),r}function Ty(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function Ry(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 Dy=new WeakMap,Iy=new WeakMap,My=function(t){gy(r,t);var e=wy(r);function r(){var t;hy(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Ny(xy(t),Dy,{writable:!0,value:void 0}),Sy(xy(t),"nodeHandler",void 0),Sy(xy(t),"eadApi",void 0),Ny(xy(t),Iy,{writable:!0,value:void 0}),t}return vy(r,[{key:"init",value:function(){var t=dy(uy().mark((function t(){return uy().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;Ay(this,Dy,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?oy(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="",[Nd.TRIGGER].includes(t.type)&&(t.data.other_options.driver||(t.error+="触发器必须要设置驱动;",r=!0)),[Nd.JUDGE].includes(t.type)&&(t.content||(t.error+="条件分支必须要设置描述;",r=!0)),Nd.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([Nd.JUDGE].includes(t.type)&&(t.data.isDefault||t.data.condition||(t.error+="条件分支非默认的必须要设置表达式;",r=!0)),[Nd.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([Nd.DELAY].includes(t.type)&&"absolute"===t.data.other_options.type&&(t.data.other_options.timestamp||(t.error+="延迟等待类型为指定时间时,必须设置时间;",r=!0)),[Nd.START,Nd.CHECK,Nd.CC].includes(t.type)&&"custom"===t.data.eadCache.workflow.optionViewType&&(t.data.option_view_id||(t.error+="表单视图为自主选择时,必须指定表单视图;",r=!0)),[Nd.CHECK,Nd.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===Nd.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){my(Oy(r.prototype),"saveNode",this).call(this,t)}},{key:"saveNodeData",value:function(t){my(Oy(r.prototype),"saveNodeData",this).call(this,t)}},{key:"getActorData",value:function(){var t=dy(uy().mark((function t(){var e,r,n,o,i,a,s,c,l,u,f,d;return uy().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(d=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})):[]})),d(e)}},!Py(this,Iy)){t.next=3;break}return t.abrupt("return",Py(this,Iy));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,d(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)"}),Ay(this,Iy,{viewAttrs:n,orgMap:s,orgData:f,roles:i,users:a}),t.abrupt("return",Py(this,Iy));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,oy(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,oy(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[Nd.START,Nd.CHECK].includes(t.type)}))}}],[{key:"getBusinessAdapter",value:function(){return new r}}]),r}(Xm),qy=My;function By(t){return By="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},By(t)}function Fy(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Fy=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==By(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}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 Vy(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){Hy(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 Hy(t,e,r){return e=Wy(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Uy(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 Gy(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Uy(i,n,o,a,s,"next",t)}function s(t){Uy(i,n,o,a,s,"throw",t)}a(void 0)}))}}function zy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ky(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,Wy(n.key),n)}}function Yy(t,e,r){return e&&Ky(t.prototype,e),r&&Ky(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Wy(t){var e=Zy(t,"string");return"symbol"===By(e)?e:String(e)}function Zy(t,e){if("object"!==By(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==By(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Jy(t,e,r){Xy(t,e),e.set(t,r)}function Xy(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Qy(t,e){var r=rg(t,e,"get");return tg(t,r)}function tg(t,e){return e.get?e.get.call(t):e.value}function eg(t,e,r){var n=rg(t,e,"set");return ng(t,n,r),r}function rg(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function ng(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 og=new WeakMap,ig=function(){function t(e){zy(this,t),Jy(this,og,{writable:!0,value:void 0}),eg(this,og,e)}return Yy(t,[{key:"getComponent",value:function(){return Qy(this,og)}},{key:"setComponent",value:function(t){eg(this,og,t)}},{key:"getCurrentViewSchema",value:function(){return Qy(this,og).$attrs.schema}},{key:"getCurrentUserName",value:function(){return Qy(this,og).$store.state.user.name}},{key:"getModelIdName",value:function(){return Qy(this,og).$attrs.schema.model.idName}},{key:"runCurrentAction",value:function(){var t=Gy(Fy().mark((function t(){var e,r,n,o,i,a,s,c;return Fy().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=Qy(this,og).action,r=Qy(this,og).$attrs.schema.url,n=e.key,o=e.method,t.next=7,Qy(this,og).$api[o.toLowerCase()]("/api/".concat(r).concat(n?"/".concat(n):""),Vy({},Qy(this,og).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||"系统错误请与管理员联系。",Qy(this,og).$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=Gy(Fy().mark((function t(e){var r,n,o,i,a;return Fy().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Qy(this,og).$api.get("/dataset/sys_workflow_viewattrs?view_id=".concat(e));case 3:return r=t.sent,n=r.data.data,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=Gy(Fy().mark((function t(){var e,r,n,o,i;return Fy().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Qy(this,og).$api.get("/dataset/sys_workflow_user");case 3:return e=t.sent,r=e.data.data,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=Gy(Fy().mark((function t(e){var r,n,o,i,a;return Fy().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Qy(this,og).$api.get("/dataset/sys_workflow_role?app_key="+e);case 3:return r=t.sent,n=r.data.data,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=Gy(Fy().mark((function t(){var e,r,n,o,i;return Fy().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Qy(this,og).$api.get("/dataset/sys_workflow_org");case 3:return e=t.sent,r=e.data.data,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=Gy(Fy().mark((function t(e,r){var n,o,i,a,s;return Fy().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Qy(this,og).$api.get("/dataset/".concat(e),{params:Vy({},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:"getViews",value:function(){var t=Gy(Fy().mark((function t(e){var r,n,o,i,a;return Fy().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Qy(this,og).$api.get("/dataset/sys_workflow_view?name="+e);case 3:return r=t.sent,n=r.data.data,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=Gy(Fy().mark((function t(e){var r,n,o,i,a;return Fy().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Qy(this,og).$api.get("/dataset/sys_workflow_driver?name="+e);case 3:return r=t.sent,n=r.data.data,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 Qy(this,og).$attrs.selections}},{key:"getUrl",value:function(){return Qy(this,og).$attrs.schema.url}},{key:"getValues",value:function(){return Qy(this,og).values}},{key:"getModelValues",value:function(){return Qy(this,og).actionModel}},{key:"getCurrentAction",value:function(){return Qy(this,og).action}}]),t}(),ag=ig,sg={name:"workflow-designer",mixins:[en],components:{NodeContainer:ry},setup:function(){var t=new ag,e=qy.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("系统错误,请联系管理员")}))}},cg=sg,lg=Nr(cg,cd,ld,!1,null,"a2ad5ee6",null),ug=lg.exports,fg=function(){var t,e,r,n,o=this,i=this,a=i._self._c;return a("a-form-model",{ref:"form",staticStyle:{"min-height":"400px"},attrs:{model:i.actionModel,rules:i.rules}},[a("a-spin",{attrs:{spinning:i.loading}},[a("a-tabs",{on:{change:function(){return o.$refs.nodeContainer.toMiddle()}},model:{value:i.paneKey,callback:function(t){i.paneKey=t},expression:"paneKey"}},[i.paneSet.has("1")&&this.currentNode?a("a-tab-pane",{key:"1",attrs:{tab:"操作"}},[i.OPERATE.CHECK===i.workflowReq.operate?a("a-radio-group",{staticStyle:{"margin-bottom":"10px"},on:{change:function(t){return i.loadTodo()}},model:{value:i.workflowReq.page_operate.action,callback:function(t){i.$set(i.workflowReq.page_operate,"action",t)},expression:"workflowReq.page_operate.action"}},[a("a-radio-button",{attrs:{value:i.CHECK_ACTION.PASS}},[i._v(" "+i._s(null!==(t=i.currentNode.data.other_options)&&void 0!==t&&null!==(e=t.custom_action)&&void 0!==e&&e.pass?i.currentNode.data.other_options.custom_action.pass:"审批通过")+" ")]),i.runtimeData.pageOperate.allowBack?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.BACK}},[i._v(" "+i._s(null!==(r=i.currentNode.data.other_options)&&void 0!==r&&null!==(n=r.custom_action)&&void 0!==n&&n.pass?i.currentNode.data.other_options.custom_action.back:" 审批退回")+" ")]):i._e(),i.runtimeData.pageOperate.allowReassign?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.REASSIGN}},[i._v(" 转办 ")]):i._e(),i.runtimeData.pageOperate.allowInvolve?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.INVOLVE}},[i._v(" 加签 ")]):i._e(),i.runtimeData.pageOperate.allowEnd?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.END}},[i._v(" 结束 ")]):i._e()],1):i._e(),(i.workflowReq.operate===i.OPERATE.START||i.workflowReq.operate===i.OPERATE.CHECK&&[i.CHECK_ACTION.PASS].includes(i.workflowReq.page_operate.action))&&i.runtimeData.currentNodeFormItem&&i.runtimeData.currentNodeFormItem.length?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[i._l(i.runtimeData.currentNodeFormItem,(function(t){return[t?a("Item",{key:t.name,attrs:{formModel:i.actionModel,params:{},prop:t.name,required:t.required,schema:t},on:{change:function(e){return i.handleItemChange(e,t)}},model:{value:i.actionModel[t.name],callback:function(e){i.$set(i.actionModel,t.name,e)},expression:"actionModel[attr.name]"}}):i._e()]}))],2)],1):i._e(),i.OPERATE.CHECK===i.workflowReq.operate?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-form-model-item",{attrs:{label:[i.CHECK_ACTION.REASSIGN,i.CHECK_ACTION.INVOLVE,i.CHECK_ACTION.END].includes(i.workflowReq.page_operate.action)?"备注":"审批意见",prop:"xxx",size:"small"}},[a("a-textarea",{attrs:{"auto-size":{minRows:4,maxRows:6},placeholder:"请输入".concat([i.CHECK_ACTION.REASSIGN,i.CHECK_ACTION.INVOLVE,i.CHECK_ACTION.END].includes(i.workflowReq.page_operate.action)?"备注":"审批或退回意见")},model:{value:i.workflowReq.page_operate.operate_content,callback:function(t){i.$set(i.workflowReq.page_operate,"operate_content",t)},expression:"workflowReq.page_operate.operate_content"}})],1)],1):i._e(),i.isCustomBack&&i.OPERATE.CHECK===i.workflowReq.operate&&i.workflowReq.page_operate.action===i.CHECK_ACTION.BACK?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-form-model-item",{attrs:{label:"退回步骤",prop:"xxx",size:"small"}},[a("a-select",{model:{value:i.workflowReq.page_operate.custom_back_node_code,callback:function(t){i.$set(i.workflowReq.page_operate,"custom_back_node_code",t)},expression:"workflowReq.page_operate.custom_back_node_code"}},i._l(i.currentNode.data.custom_back_nodes,(function(t){return a("a-select-option",{key:t,attrs:{value:t}},[i._v(" "+i._s(i.nodeHandler.getNode(t).name)+" ")])})),1)],1)],1):i._e(),i.runtimeData.todos&&i.runtimeData.todos.length&&(i.OPERATE.START===i.workflowReq.operate||i.OPERATE.CHECK===i.workflowReq.operate&&(i.workflowReq.page_operate.action===i.CHECK_ACTION.PASS||i.workflowReq.page_operate.action===i.CHECK_ACTION.BACK&&"bpmn"===i.currentNode.data.back_type))?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{size:"small",title:"后续步骤"}},[i.runtimeData.todos&&i.runtimeData.todos.length?a("a-tabs",{attrs:{"tab-position":"top"},model:{value:i.currentTodo,callback:function(t){i.currentTodo=t},expression:"currentTodo"}},i._l(i.runtimeData.todos,(function(t){var e,r,n,o,s,c,l,u;return a("a-tab-pane",{key:t.node_code,attrs:{disabled:!i.availableTodo(t),tab:null!==(e=null===(r=i.nodeHandler.getNode(t.node_code))||void 0===r?void 0:r.name)&&void 0!==e?e:"-"}},[i.availableTodo(t)?a("div",{staticClass:"actors"},[a("div",{staticStyle:{width:"60%"}},[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(e){return i.filterTodoItemActors(e,t)}}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":t.actorsf.value,pagination:!1,"row-selection":null!==(n=t.optional)&&void 0!==n&&n.enable?{type:t.optional.multi?"checkbox":"radio",selectedRowKeys:t.selected,onChange:function(e){t.selected=e}}:null,rowKey:"uid",size:"middle"}})],1),a("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{title:(null!==(o={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!==o?o:"")+"执行人列表",size:"small"}},[a("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){i.$set(t,"selected",e)},expression:"item.selected"}},[a("transition-group",{attrs:{name:"flip-list",type:"transition"}},[t.selected&&null!==t&&void 0!==t&&t.selected.length?i._l(t.selected,(function(t){return a("div",{key:t,staticClass:"item"},[i._v(" "+i._s(i.userCache[t])+" ")])})):i._e()],2)],1)],1)],1):i._e()])})),1):i._e()],1)],1):i._e(),i.OPERATE.CHECK===i.workflowReq.operate&&i.workflowReq.page_operate.action===i.CHECK_ACTION.REASSIGN?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{size:"small",title:"转办执行人"}},[a("div",{staticClass:"actors"},[a("div",{staticStyle:{width:"60%"}},[i.runtimeData.reassign.actors?[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(t){return i.reassignUserFilter=t}}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.filterActors(i.reassignUserFilter,i.runtimeData.reassign.actors),pagination:!1,"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.reassign.selected,onChange:function(t){i.runtimeData.reassign.selected=t}},rowKey:"uid",size:"middle"}})]:[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(){i.reassignUserPagination.current=1,i.handleTableChangeReassignUser(i.reassignUserPagination)}},model:{value:i.reassignUserFilter,callback:function(t){i.reassignUserFilter=t},expression:"reassignUserFilter"}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.reassignUserData,loading:i.loadingReassignUser,pagination:i.reassignUserPagination,"row-key":function(t){return t.uid},"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.reassign.selected,onChange:function(t){o.reassignUserData.filter((function(e){return t.includes(e.uid)})).forEach((function(t){return i.userCache[t.uid]="".concat(t.name,"(").concat(t.org_name,")")})),i.runtimeData.reassign.selected=t}}},on:{change:i.handleTableChangeReassignUser}})]],2),a("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{size:"small",title:"转办人"}},[a("draggable",{attrs:{disabled:!0,chosenClass:"chosen"},model:{value:i.runtimeData.reassign.selected,callback:function(t){i.$set(i.runtimeData.reassign,"selected",t)},expression:"runtimeData.reassign.selected"}},[a("transition-group",i._l(i.runtimeData.reassign.selected,(function(t){return a("div",{key:t,staticClass:"item"},[i._v(" "+i._s(i.userCache[t])+" ")])})),0)],1)],1)],1)])],1):i._e(),i.OPERATE.CHECK===i.workflowReq.operate&&i.workflowReq.page_operate.action===i.CHECK_ACTION.INVOLVE?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{size:"small",title:"加签执行人"}},[a("div",{staticClass:"actors"},[a("div",{staticStyle:{width:"60%"}},[i.runtimeData.involve.actors?[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(t){return i.involveUserFilter=t}}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.filterActors(i.involveUserFilter,i.runtimeData.involve.actors),pagination:!1,"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.involve.selected,onChange:function(t){i.runtimeData.involve.selected=t}},rowKey:"uid",size:"middle"}})]:[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(){i.involveUserPagination.current=1,i.handleTableChangeInvolveUser(i.involveUserPagination)}},model:{value:i.involveUserFilter,callback:function(t){i.involveUserFilter=t},expression:"involveUserFilter"}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.involveUserData,loading:i.loadingInvolveUser,pagination:i.involveUserPagination,"row-key":function(t){return t.uid},"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.involve.selected,onChange:function(t){o.involveUserData.filter((function(e){return t.includes(e.uid)})).forEach((function(t){return i.userCache[t.uid]="".concat(t.name,"(").concat(t.org_name,")")})),i.runtimeData.involve.selected=t}}},on:{change:i.handleTableChangeInvolveUser}})]],2),a("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{size:"small",title:"加签人"}},[a("draggable",{attrs:{disabled:!0,chosenClass:"chosen"},model:{value:i.runtimeData.involve.selected,callback:function(t){i.$set(i.runtimeData.involve,"selected",t)},expression:"runtimeData.involve.selected"}},[a("transition-group",i._l(i.runtimeData.involve.selected,(function(t){return a("div",{key:t,staticClass:"item"},[i._v(" "+i._s(i.userCache[t])+" ")])})),0)],1)],1)],1)])],1):i._e()],1):i._e(),i.paneSet.has("2")?a("a-tab-pane",{key:"2",attrs:{"force-render":"",tab:"审批记录"}},[a("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[a("a-list",{attrs:{dataSource:this.runtimeData.logList},scopedSlots:i._u([{key:"renderItem",fn:function(t){return a("a-list-item",{},[a("a-list-item-meta",[a("strong",{attrs:{slot:"title"},slot:"title"},[i._v(" "+i._s(t.node_name)+" ")]),i.$store.state.app.icon?a("a-avatar",{attrs:{slot:"avatar",src:i.$store.state.app.icon},slot:"avatar"}):a("a-avatar",{attrs:{slot:"avatar",icon:"user"},slot:"avatar"}),a("a-space",{attrs:{slot:"description",direction:"vertical"},slot:"description"},[a("div",[i._v(i._s(t.operate_desc))]),t.operate_content?a("div",[i._v(" 审批意见:"+i._s(t.operate_content)+" ")]):i._e(),a("a-space",[a("span",{staticStyle:{color:"#18274a"}},[a("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"clock-circle-o"}}),i._v(" "+i._s(i.moment(t.create_time).format("YYYY-MM-DD HH:mm"))+" ")],1),a("a-divider",{attrs:{type:"vertical"}}),a("span",{staticStyle:{color:"#18274a"}},[a("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"user"}}),i._v(" "+i._s(t.operator.name)+"("+i._s(t.operator.org_name)+") ")],1)],1)],1)],1)],1)}}],null,!1,2687742983)})],1)],1):i._e(),i.paneSet.has("3")?a("a-tab-pane",{key:"3",attrs:{tab:"流程图"}},[a("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[a("div",{staticStyle:{position:"absolute","z-index":"999"}},[a("a-button",{directives:[{name:"show",rawName:"v-show",value:!i.fullscreenLoading,expression:"!fullscreenLoading"}],attrs:{icon:"arrows-alt",type:"link"},on:{click:i.showFullScreenFlow}}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:i.fullscreenLoading,expression:"fullscreenLoading"}],attrs:{type:"loading-3-quarters"}})],1),i.initNodeContainer?a("NodeContainer",{ref:"nodeContainer",staticStyle:{heigth:"350px"},attrs:{"business-adapter":i.businessAdapter,"default-zoom-scale":70,"hide-zoom":!0,"is-preview":!0,"node-data":i.nodeData,"runtime-data":i.runtimeData},on:{nodeHandlerReady:i.nodeHandlerReady}}):i._e()],1)],1):i._e()],1)],1),a("a-modal",{staticClass:"jjh-fullscreen",attrs:{bodyStyle:{height:"85vh","overflow-y":"scroll","padding-bottom":"0"},destroyOnClose:!0,"dialog-style":{top:"0px"},visible:i.fullscreen,title:"流程图",width:"100%"},on:{cancel:i.hideFullScreenFlow}},[i.initNodeContainer?a("NodeContainer",{ref:"nodeContainer1",attrs:{"business-adapter":i.businessAdapter,"is-preview":!0,"node-data":i.nodeData,"runtime-data":i.runtimeData}}):i._e(),a("template",{slot:"footer"},[a("a-button",{key:"back",on:{click:i.hideFullScreenFlow}},[i._v("关闭")])],1)],2)],1)},dg=[],hg=r("289a"),pg=r.n(hg);function vg(t){return vg="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},vg(t)}function mg(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=wg(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 yg(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */yg=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==vg(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function gg(t){return xg(t)||_g(t)||wg(t)||bg()}function bg(){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 wg(t,e){if(t){if("string"===typeof t)return kg(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)?kg(t,e):void 0}}function _g(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function xg(t){if(Array.isArray(t))return kg(t)}function kg(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 Og(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 Sg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Og(Object(r),!0).forEach((function(e){Eg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Og(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Eg(t,e,r){return e=jg(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jg(t){var e=Ng(t,"string");return"symbol"===vg(e)?e:String(e)}function Ng(t,e){if("object"!==vg(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==vg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Lg(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 Pg(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Lg(i,n,o,a,s,"next",t)}function s(t){Lg(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Cg={START:"start",CHECK:"check",QUERY:"query"},Ag={PREVIEW:"preview",CONFIRM:"confirm"},Tg={PASS:"pass",BACK:"back",REASSIGN:"reassign",INVOLVE:"involve",END:"end"},Rg={name:"runtime-workflow",mixins:[en],components:{NodeContainer:ry,Item:Oi,draggable:pg.a},data:function(){return{OPERATE:Cg,OPERATE_MODE:Ag,CHECK_ACTION:Tg,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 ag,n=qy.getBusinessAdapter(),o={operate_mode:Ag.PREVIEW,operate:Cg.QUERY,page_operate:{action:Tg.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 Pg(yg().mark((function e(){var r,n,o,i,a,s,c,l,u,f,d,h,p,v,m,y,g;return yg().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 Sg({},t)})),t.eadApi.setComponent(t),t.businessAdapter.eadApi=t.eadApi,t.workflowReq.operate=null!==(r=Cg[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(d=e.sent,d){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(d.data).includes(e)&&(t.actionModel[e]=d.data[e])})),t.workflow=null===d||void 0===d||null===(n=d.data)||void 0===n?void 0:n.workflow,h=null===d||void 0===d||null===(o=d.data)||void 0===o||null===(i=o.workflow)||void 0===i?void 0:i.runtime_data,h&&Object.keys(h).length&&(t.runtimeData=h),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&&(p={},t.runtimeData.caseNodes.forEach((function(t){p[t.node_code]=Sg({},t)})),t.runtimeData.caseNodes=p),t.runtimeData.todos&&t.runtimeData.todos.forEach((function(t){t.actorfilter||(t.actorfilter=""),t.actorsf=Object(N["ref"])(gg(t.actors))})),v=[],null!==(a=t.runtimeData)&&void 0!==a&&null!==(s=a.involve)&&void 0!==s&&s.actors&&v.push.apply(v,gg(t.runtimeData.involve.actors)),null!==(c=t.runtimeData)&&void 0!==c&&null!==(l=c.reassign)&&void 0!==l&&l.actors&&v.push.apply(v,gg(t.runtimeData.reassign.actors)),t.runtimeData.todos&&t.runtimeData.todos.forEach((function(t){v.push.apply(v,gg(t.actors))})),v.forEach((function(e){t.userCache[e.uid]="".concat(e.name,"(").concat(e.org_name,")")})),m=null===d||void 0===d||null===(u=d.data)||void 0===u||null===(f=u.workflow)||void 0===f?void 0:f.node_json,y=m?null===m||void 0===m?void 0:m.node:null,t.nodeData=y?gg(Object.values(y)):[],g=t.paneSet,[Cg.START,Cg.CHECK].includes(t.workflowReq.operate)&&g.add("1"),g.add("2"),g.add("3"),t.initNodeContainer=!0,t.$nextTick((function(){t.paneKey=gg(g.values())[0]})),t.validExpression(),t.loadTodo(),t.actionModel.workflow_req=t.workflowReq,t.actionModel.workflow=t.workflow,t.loading=!1,t.workflowReq.operate_mode=Ag.CONFIRM,t.workflowReq.operate===Cg.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=Sg({},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=Sg({},t.reassignUserPagination);r.total=e.count,t.loadingReassignUser=!1,t.reassignUserData=e.results,t.reassignUserPagination=r}))},handleTableChangeInvolveUser:function(t){var e=Sg({},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=Sg({},t.involveUserPagination);r.total=e.count,t.loadingInvolveUser=!1,t.involveUserData=e.results,t.involveUserPagination=r}))},getAllUsers:function(t,e){var r=this;return Pg(yg().mark((function n(){var o,i;return yg().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,r.eadApi.getDataset("sys_workflow_allusers_count",{user_name:t});case 2:return o=n.sent,n.next=5,r.eadApi.getDataset("sys_workflow_allusers",{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===Cg.START&&(null!==(t=this.runtimeData.todos)&&void 0!==t&&t.length)){var n=this.getAvailableTodos();if(!n.length)return void this.$message.error("无法匹配到符合条件的后续步骤");this.workflowReq.page_operate.todos=n}if(this.workflowReq.operate===Cg.CHECK){var o,i;if(this.workflowReq.page_operate.action===Tg.BACK)if("bpmn"===this.currentNode.data.back_type&&(r=!0),null!==(o=this.runtimeData.todos)&&void 0!==o&&o.length){var a=this.getAvailableTodos(),s=this.nodeHandler.getAllRoute(this.currentNode.code).find((function(t){return"end"===t.type}));if(!a.length&&!s)return void this.$message.error("无法匹配到符合条件的后续步骤");this.workflowReq.page_operate.todos=a}if(this.workflowReq.page_operate.action===Tg.PASS)if(null!==(i=this.runtimeData.todos)&&void 0!==i&&i.length){var c=this.getAvailableTodos(),l=this.nodeHandler.getAllRoute(this.currentNode.code).find((function(t){return"end"===t.type}));if(!c.length&&!l)return void this.$message.error("无法匹配到符合条件的后续步骤");this.workflowReq.page_operate.todos=c}if(this.workflowReq.page_operate.action===Tg.INVOLVE){var u,f;if(null===(u=this.runtimeData.involve)||void 0===u||null===(f=u.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===Tg.REASSIGN){var d,h;if(null===(d=this.runtimeData.reassign)||void 0===d||null===(h=d.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 p,v=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})),m=mg(v);try{var y=function(){var t=p.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,gg(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(m.s();!(p=m.n()).done;){var g=y();if("object"===vg(g))return g.v}}catch(w){m.e(w)}finally{m.f()}}this.actionModel.workflow=this.workflow,this.actionModel.workflow_req=this.workflowReq;var b=Sg({},this.actionModel);b.workflow_req=Sg({},this.workflowReq),b.workflow_req.page_operate=Sg({},this.workflowReq.page_operate),r&&(b.workflow_req.page_operate.action="BPMN_BACK"),this.$emit("commit",b)},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=gg(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 Pg(yg().mark((function n(){var o,i,a;return yg().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=mg(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=mg(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=mg(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,gg(Object.values(n)));return t.available=i,i}catch(a){this.expressionError=!0,this.$message.error("[".concat(t.node_code,"]表达式执行错误,请联系系统管理员!表达式:").concat(r))}return!1}}},Dg=Rg,Ig=(r("9cb9"),Nr(Dg,fg,dg,!1,null,"0574fd41",null)),Mg=Ig.exports,qg=(r("1f51"),{NormalForm:Ic,UploadForm:zc,PickerViewForm:ol,AlgorithmForm:Bu,PickerTransferForm:sf,PickerTreeForm:xf,PickerSelectViewForm:Hf,WorkflowReport:sd,WorkflowDesigner:ug,RuntimeWorkflow:Mg});function Bg(t){return Bg="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},Bg(t)}function Fg(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 $g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Fg(Object(r),!0).forEach((function(e){Vg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Vg(t,e,r){return e=Hg(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hg(t){var e=Ug(t,"string");return"symbol"===Bg(e)?e:String(e)}function Ug(t,e){if("object"!==Bg(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Bg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Gg={mixins:[Ut,Gt,Pc],components:$g({},qg)},zg=Gg,Kg=Nr(zg,jc,Nc,!1,null,null,null),Yg=Kg.exports,Wg={ModelList:ya,ModelProfile:Ec,ModelForm:Yg},Zg={props:{view:{type:Object},modelViewType:{type:String}},inject:["page"],computed:{namespace:function(){return"v-".concat(this.page.pageKey)}},methods:{createView:function(){return{extends:$t(Wg["Model".concat(this.modelViewType)])(this.namespace)}}}},Jg=Zg,Xg=Nr(Jg,wt,_t,!1,null,null,null),Qg=Xg.exports,tb={components:{ViewBox:Qg},props:{views:{type:[Array]},viewLayout:{type:String,default:"blank"}}},eb=tb,rb=Nr(eb,gt,bt,!1,null,null,null),nb=rb.exports,ob={mixins:[yt],components:{Views:nb}},ib=ob,ab=Nr(ib,lt,ut,!1,null,null,null),sb=ab.exports,cb=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)},lb=[],ub={mixins:[yt],components:{Frame:Ja},props:{url:String,height:String},data:function(){return{loading:!0}}},fb=ub,db=Nr(fb,cb,lb,!1,null,null,null),hb=db.exports,pb=function(){var t=this,e=t._self._c;return e("keep-alive",[e("router-view")],1)},vb=[],mb={},yb=Nr(mb,pb,vb,!1,null,null,null),gb=yb.exports;function bb(t){return bb="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},bb(t)}function wb(t){return Ob(t)||kb(t)||xb(t)||_b()}function _b(){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 xb(t,e){if(t){if("string"===typeof t)return Sb(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)?Sb(t,e):void 0}}function kb(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Ob(t){if(Array.isArray(t))return Sb(t)}function Sb(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 Eb(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 jb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Eb(Object(r),!0).forEach((function(e){Nb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Eb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Nb(t,e,r){return e=Lb(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Lb(t){var e=Pb(t,"string");return"symbol"===bb(e)?e:String(e)}function Pb(t,e){if("object"!==bb(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==bb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Cb(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Cb=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==bb(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Ab(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 Tb(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ab(i,n,o,a,s,"next",t)}function s(t){Ab(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Rb=ct(sb),Db=["catalog-tab","catalog"],Ib={data:function(){return{messageTimer:0}},created:function(){var t=this;return Tb(Cb().mark((function e(){return Cb().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:jb(jb({},Object(u["mapState"])(["status","resources"])),{},{routes:function(){return this.resources.length?[{path:"/",redirect:"/"+this.resources[0].key,children:this.resToRoute(wb(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=hb,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=gb,s.pageKey=t.url;break;case"link":o={template:"<span></span>",activated:function(){this.$router.back()}};break;default:o=gb;break}return"view"===t.type&&"standard"===t.viewType&&(c=[{path:"",component:{extends:Rb(t.url,!0)},props:{modelViewType:"profile"===t.catalogType?"Profile":"List",pageKey:t.url},meta:{name:t.name,key:i}},{path:":id",component:{extends:Rb(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:Db.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 Tb(Cb().mark((function e(){return Cb().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()}}},Mb=Ib,qb=Nr(Mb,c,l,!1,null,null,null),Bb=qb.exports,Fb={components:{Router:Bb},created:function(){}},$b=Fb,Vb=Nr($b,a,s,!1,null,null,null),Hb=Vb.exports;r("e39e");function Ub(t){return Ub="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},Ub(t)}function Gb(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Gb=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Ub(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function zb(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 Kb(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){zb(i,n,o,a,s,"next",t)}function s(t){zb(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Yb(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 Wb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yb(Object(r),!0).forEach((function(e){Zb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zb(t,e,r){return e=Jb(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jb(t){var e=Xb(t,"string");return"symbol"===Ub(e)?e:String(e)}function Xb(t,e){if("object"!==Ub(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ub(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Qb=window.Rainbow,tw=Qb.app,ew=tw.csrfToken,rw=tw.baseURL,nw=!1,ow={};function iw(t){S.setDefaults({baseURL:rw!==["/","{app.appKey}"].join("$")?rw:t,headers:ow}),L.a.use(S),L.a.use(f.a);var e=function(){return{resources:[],apps:[],user:{},token:JSON.parse(localStorage.getItem("token")),app:Wb({},Qb.app),config:{message:{type:"poll"}},messages:[],historys:[],loading:!1,committing:!1,status:200,message:"",baseURL:S.instance.defaults.baseURL}};return new f.a.Store({state:e(),strict:nw,plugins:[],mutations:{setResources:function(t,e){t.resources=e},setApp:function(t,e){t.app=Wb(Wb({},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 Kb(Gb().mark((function e(){var r,n,o,i,a,s,c;return Gb().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,S.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 Kb(Gb().mark((function e(){var r,n,o;return Gb().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,e.prev=1,e.next=4,S.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 Kb(Gb().mark((function r(){var n;return Gb().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,r.next=3,S.post("/api/sys-msg/read",e);case 3:n("readMessages",e);case 4:case"end":return r.stop()}}),r)})))()},emptyMessages:function(t,e){return Kb(Gb().mark((function r(){var n;return Gb().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,r.next=3,S.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 Kb(Gb().mark((function r(){var n,o,i,a,s,c,l,u;return Gb().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,S.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 Kb(Gb().mark((function r(){var n,o,i,a,s,c,l,u;return Gb().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,S.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 Kb(Gb().mark((function e(){var r,n,o,i,a,s,c;return Gb().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,S.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 Kb(Gb().mark((function r(){var n,o,i,a,s,c,l,u;return Gb().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,S.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}))}}}})}ew&&"${app.csrfToken}"!==ew&&(ow["x-csrf-token"]=ew);var aw=r("6389"),sw=r.n(aw);L.a.use(sw.a);var cw=new sw.a,lw=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)+" ")])},uw=[],fw={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("复制失败")}}},dw=fw,hw=Nr(dw,lw,uw,!1,null,null,null),pw=hw.exports,vw=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)},mw=[];function yw(t){return yw="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},yw(t)}function gw(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */gw=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==yw(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function bw(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 ww(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bw(Object(r),!0).forEach((function(e){kw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}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 xw(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)}))}}function kw(t,e,r){return e=Ow(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ow(t){var e=Sw(t,"string");return"symbol"===yw(e)?e:String(e)}function Sw(t,e){if("object"!==yw(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==yw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Ew(t,e){return Cw(t)||Pw(t,e)||Nw(t,e)||jw()}function jw(){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 Nw(t,e){if(t){if("string"===typeof t)return Lw(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)?Lw(t,e):void 0}}function Lw(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 Pw(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(u){l=!0,o=u}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}function Cw(t){if(Array.isArray(t))return t}var Aw={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=Ew(e,2),n=r[0],o=r[1];return o?kw({},n,o):n}))]:[t.name,t.typeObject.data&&t.typeObject.data.collection||[]]}));return Object.fromEntries(e)}},methods:{load:function(){var t=this;return xw(gw().mark((function e(){var r,n,o,i,a,s,c,l,u,f,d,h,p,v,m;return gw().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(ww(ww({},n),{},{_size:i,$limit:a}))));case 10:l=e.sent,u=l.data,f=u.collection,d=u.count,h=u.model,p=u.data,v=l.status,t.collection=f||p,t.model=h,t.count=d,t.status=v,e.next=27;break;case 23:return e.prev=23,e.t0=e["catch"](7),e.t0.response?(m=e.t0.response.status,t.status=m):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 xw(gw().mark((function e(){var r,n,o,i;return gw().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 xw(gw().mark((function e(){return gw().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()}}},Tw=Aw,Rw=Nr(Tw,vw,mw,!1,null,null,null),Dw=Rw.exports,Iw=r("0934"),Mw=r.n(Iw);function qw(t){var e=Mw.a.enc.Utf8.parse(t),r="1234123412ABCDEF",n="ABCDEF1234123412",o=Mw.a.enc.Utf8.parse(r),i=Mw.a.enc.Utf8.parse(n),a=Mw.a.AES.encrypt(e,o,{iv:i,mode:Mw.a.mode.CBC,padding:Mw.a.pad.Pkcs7}),s=a.ciphertext.toString();return s}r("517c")},"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,d=u<<16|65535&c;o[0]^=c,o[1]^=f,o[2]^=u,o[3]^=d,o[4]^=c,o[5]^=f,o[6]^=u,o[7]^=d;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){},2364:function(e,r){e.exports=t},"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}))},2409:function(t,e,r){"use strict";r("6c26")},"26b4":function(t,e,r){},"289a":function(t,r){t.exports=e},"294f":function(t,e,r){},"2a55":function(t,e,r){"use strict";e.byteLength=u,e.toByteArray=d,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 d(t){var e,r,n=l(t),a=n[0],s=n[1],c=new i(f(t,a,s)),u=0,d=s>0?a-4:a;for(r=0;r<d;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 h(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(h(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},"2a6c":function(t,e,r){"use strict";r("9013")},"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}))},"2c52":function(t,e,r){},"2f24":function(t,e,r){"use strict";r("63ce")},"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,d=f?u.render:u.beforeCreate;f?(u._injectStyles=l,u.render=function(t,e){return l.call(e),d(t,e)}):u.beforeCreate=d?[].concat(d,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}])}))},"3cdd":function(t,e,r){},4102:function(t,e,r){},"475a":function(t,e,r){"use strict";r("6b61")},"4b6e":function(t,e,r){},"4c8b":function(t,e,r){"use strict";r("724c")},"517c":function(t,e,r){},"521b":function(t,e,r){},"53e9":function(t,e,r){"use strict";r("7dac")},"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},5966:function(t,e,r){"use strict";r("805e")},"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}))},"5dd0":function(t,e,r){"use strict";r("a479")},6389:function(t,e){t.exports=i},"63ce":function(t,e,r){},"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],d=r[7],h=n.high,p=n.low,v=o.high,m=o.low,y=i.high,g=i.low,b=a.high,w=a.low,_=s.high,x=s.low,k=c.high,O=c.low,S=f.high,E=f.low,j=d.high,N=d.low,L=h,P=p,C=v,A=m,T=y,R=g,D=b,I=w,M=_,q=x,B=k,F=O,$=S,V=E,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&$,dt=q&F^~q&V,ht=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),mt=(P>>>28|L<<4)^(P<<30|L>>>2)^(P<<25|L>>>7),yt=(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+yt+(xt>>>0<U>>>0?1:0),Ot=(xt=xt+dt,kt=kt+ft+(xt>>>0<dt>>>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),mt+pt),St=vt+ht+(Ot>>>0<mt>>>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+St+(P>>>0<xt>>>0?1:0)|0}p=n.low=p+P,n.high=h+L+(p>>>0<P>>>0?1:0),m=o.low=m+A,o.high=v+C+(m>>>0<A>>>0?1:0),g=i.low=g+R,i.high=y+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),E=f.low=E+V,f.high=S+$+(E>>>0<V>>>0?1:0),N=d.low=N+U,d.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){},"6b48":function(t,e,r){},"6b61":function(t,e,r){},"6b612":function(t,e,r){"use strict";r("3cdd")},"6c26":function(t,e,r){},7022:function(t,e,r){"use strict";r("ef2a")},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=[],d=[],h=[],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],m=t[v],y=t[m],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*y^65537*m^257*v^16843008*r;f[o]=g<<24|g>>>8,d[o]=g<<16|g>>>16,h[o]=g<<8|g>>>24,p[o]=g,r?(r=v^t[t[t[y^v]]],n^=t[t[n]]):r=n=1}})();var v=[0,1,2,4,8,16,32,64,128,27,54],m=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]]^d[i[u>>>16&255]]^h[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,d,h,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],d=t[e+3]^r[3],h=4,p=1;p<c;p++){var v=n[l>>>24]^o[u>>>16&255]^i[f>>>8&255]^a[255&d]^r[h++],m=n[u>>>24]^o[f>>>16&255]^i[d>>>8&255]^a[255&l]^r[h++],y=n[f>>>24]^o[d>>>16&255]^i[l>>>8&255]^a[255&u]^r[h++],g=n[d>>>24]^o[l>>>16&255]^i[u>>>8&255]^a[255&f]^r[h++];l=v,u=m,f=y,d=g}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&d])^r[h++],m=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[255&l])^r[h++],y=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[h++],g=(s[d>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^r[h++];t[e]=v,t[e+1]=m,t[e+2]=y,t[e+3]=g},keySize:8});e.AES=n._createHelper(m)}(),t.AES}))},"724c":function(t,e,r){},"727b":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,d=r?-1:1,h=t[e+f];for(f+=d,i=h&(1<<-u)-1,h>>=-u,u+=s;u>0;i=256*i+t[e+f],f+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=n;u>0;a=256*a+t[e+f],f+=d,u-=8);if(0===i)i=1-l;else{if(i===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=l}return(h?-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,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=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?d/c:d*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+h]=255&s,h+=p,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;t[r+h]=255&a,h+=p,a/=256,l-=8);t[r+h-p]|=128*v}},1697:function(t,e,r){"use strict";r("a573")},"193e":function(t,e,r){"use strict";r("2c52")},"1a73":function(t,e,r){},"1aba":function(t,e,r){"use strict";if(r.r(e),r.d(e,"App",(function(){return Hb})),r.d(e,"createStore",(function(){return iw})),r.d(e,"create",(function(){return $t})),r.d(e,"template",(function(){return be})),r.d(e,"WebRouters",(function(){return cw})),r.d(e,"WebViews",(function(){return Wg})),r.d(e,"Descriptions",(function(){return Ga})),r.d(e,"Frame",(function(){return Ja})),r.d(e,"Clipboard",(function(){return pw})),r.d(e,"Collection",(function(){return Dw})),r.d(e,"FormItem",(function(){return Oi})),r.d(e,"FormBase",(function(){return en})),r.d(e,"encrypt",(function(){return qw})),"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),d=r("cebe"),h=r.n(d);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 t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(P){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new j(o||[]);return n(a,"_invoke",{value:k(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(P){return{type:"throw",arg:P}}}t.wrap=l;var f={};function d(){}function h(){}function m(){}var y={};c(y,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(N([])));b&&b!==e&&r.call(b,i)&&(y=b);var w=m.prototype=d.prototype=Object.create(y);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==p(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function k(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(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 E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return h.prototype=m,n(w,"constructor",{value:m,configurable:!0}),n(m,"constructor",{value:h,configurable:!0}),h.displayName=c(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},_(x.prototype),c(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(w),c(w,s,"Generator"),c(w,i,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=N,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),E(r),f}},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;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function m(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 y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach((function(e){g(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(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)||null===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=h.a.create({timeout:6e5,withCredentials:!0}),O={axios:h.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(y(y({},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)})))()}},S=O,E=r("796d"),j=r.n(E),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)||null===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 t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==P(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}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(u){l=!0,o=u}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,S.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,d,h,p,v,m,y,g,b,w,_,x,k,O,E,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,d=s.data,h=void 0===d?null:d,p=s.key,v=s.query,m=s.options,y=s.mute,g=void 0!==y&&y,!g&&n("setLoading",!0),r.prev=4,r.next=7,S[f]("/api/".concat(l).concat(p?"/".concat(p):"","?").concat(j.a.stringify(v)),h,m);case 7:return b=r.sent,w=b.data,_=w.collection,x=w.model,k=w.count,O=w.pagination,E=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:E,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,d,h,p,v,m,y;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,d=void 0===f?null:f,h=a.key,p=a.query,v=a.options,r.prev=3,r.next=6,S[u.toLowerCase()]("/api/".concat(c).concat(h?"/".concat(h):"","?").concat(j.a.stringify(p)),d,v);case 6:return m=r.sent,y=m.data,y.collection&&h&&n("setWordBook",{rows:y.collection,key:h}),r.abrupt("return",y);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,d,h,p,v,m,y,g,b,w,_,x,k,O,E,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,d=s.method,h=void 0===d?"post":d,p=s.data,v=void 0===p?null:p,m=s.key,y=s.query,g=s.options,b=s.mute,w=void 0!==b&&b,n("setCommitting",!0),r.prev=4,r.next=7,S[h.toLowerCase()]("/api/".concat(l).concat(m?"/".concat(m):"","?").concat(j.a.stringify(y)),v,g);case 7:return _=r.sent,x=_.data,k=x.data,O=x.content,E=_.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:E,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 t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==K(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}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,d;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,S.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,d=f&&f.content||"系统错误请与管理员联系。",n("setStatus",{status:u,message:d});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(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 tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(r),!0).forEach((function(e){et(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function et(t,e,r){return e=rt(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rt(t){var e=nt(t,"string");return"symbol"===X(e)?e:String(e)}function nt(t,e){if("object"!==X(t)||null===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 ot=["loading","schema","status","message","single"],it=["loadSchema"],at=["views"],st=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.mapGetters;return{data:function(){return{storeNamespace:t}},computed:tt(tt({},n(ot)),i(at)),methods:tt({},o(it)),beforeCreate:function(){this.$store.hasModule(t)||J(this.$store,t,e)},created:function(){!this.schema&&this.loadSchema()},watch:{status:function(t){401===t&&(this.$router.push("/sign-in"),window.location.reload())}}}},ct=function(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{extends:t,mixins:[st("p-".concat(e),r)]}}},lt=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)},ut=[];function ft(t){return vt(t)||pt(t)||ht(t)||dt()}function dt(){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 ht(t,e){if(t){if("string"===typeof t)return mt(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)?mt(t,e):void 0}}function pt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function vt(t){if(Array.isArray(t))return mt(t)}function mt(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 yt={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(ft(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(){}},gt=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)},bt=[],wt=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)},_t=[];function xt(t){return xt="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},xt(t)}function kt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */kt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==xt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Ot(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 St(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ot(i,n,o,a,s,"next",t)}function s(t){Ot(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Et(t){return Pt(t)||Lt(t)||Nt(t)||jt()}function jt(){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 Nt(t,e){if(t){if("string"===typeof t)return Ct(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)?Ct(t,e):void 0}}function Lt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Pt(t){if(Array.isArray(t))return Ct(t)}function Ct(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 At(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 Tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?At(Object(r),!0).forEach((function(e){Rt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):At(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Rt(t,e,r){return e=Dt(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Dt(t){var e=It(t,"string");return"symbol"===xt(e)?e:String(e)}function It(t,e){if("object"!==xt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Mt=["loading","committing","data","status","message"],qt=["loadSchema","loadData","saveData","executeData","removeData","resetStatus"],Bt=["schema","model","idName","nodeName","parentIdName","titleSchema","titleName","findAll","find","findOne","config","apiURL","apiBaseURL"],Ft=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:Tt(Tt(Tt({},r(Mt)),o(Bt)),{},{configs:function(){var t=this.schema,e=t.configs,r=void 0===e?[]:e,n=t.resConfigs,o=void 0===n?[]:n,i=[].concat(Et(r),Et(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(Et(r),Et(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:Tt(Tt({},i(["replaceNamespace"])),n(qt)),created:function(){var t=this;return St(kt().mark((function e(){return kt().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())}}}},$t=function(t){return function(e){return{extends:t,mixins:[Ft("".concat(e))]}}},Vt=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()])},Ht=[],Ut={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(){}},Gt={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 zt(t){return zt="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},zt(t)}function Kt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Kt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==zt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Yt(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 Wt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Yt(i,n,o,a,s,"next",t)}function s(t){Yt(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Zt(t){return te(t)||Qt(t)||Xt(t)||Jt()}function Jt(){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 Xt(t,e){if(t){if("string"===typeof t)return ee(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)?ee(t,e):void 0}}function Qt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function te(t){if(Array.isArray(t))return ee(t)}function ee(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 re(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 ne(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?re(Object(r),!0).forEach((function(e){oe(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function oe(t,e,r){return e=ie(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ie(t){var e=ae(t,"string");return"symbol"===zt(e)?e:String(e)}function ae(t,e){if("object"!==zt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==zt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var se={props:{profileMode:{type:String,default:"page",enum:["page","embed","column","collapse","preview"]},layout:{type:String,default:"layout-view-model-list"}},data:function(){return{query:{},unwatchQuery: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"}}):"",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"}}):"",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.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 ne(ne({},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 ne(ne({},r),e)})):[]},filterValues:function(){var t=[].concat(Zt(this.filters),Zt(this.treeFilters)).filter((function(t){return!!t.value})).map((function(t){return[t.name,t.value]}));return ne(ne({},Object.fromEntries(t)),this.defaults)},dataSource:function(){return this.findAll},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 Wt(Kt().mark((function e(){return Kt().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.schema){e.next=3;break}return e.next=3,t.loadSchema();case 3:t.query=t.params.route&&t.params.route.query.close?ne(ne(ne({},t.query),t.params.filters),t.filterValues):ne(ne(ne(ne({},t.query),t.params.filters),t.filterValues),t.$route.query);case 4:case"end":return e.stop()}}),e)})))()},activated:function(){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.unwatchQuery&&this.unwatchQuery()},methods:{load:function(){var t=arguments,e=this;return Wt(Kt().mark((function r(){var n,o;return Kt().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=ne({},this.next)},handlePrevious:function(){this.actionModel=ne({},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=ne({},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,oe({},r,e))}}},ce={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 le(t){return he(t)||de(t)||fe(t)||ue()}function ue(){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 fe(t,e){if(t){if("string"===typeof t)return pe(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)?pe(t,e):void 0}}function de(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function he(t){if(Array.isArray(t))return pe(t)}function pe(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 ve={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(le(this.selections),le(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 me(t){return me="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},me(t)}function ye(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"!==me(n)||1!==Object.keys(n).length)return"object"===me(n)&&Object.keys(n).length>1?ye(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 ge=r("9f89");function be(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/\${([\s\S]+?)}/g;return ge(t,{reInterpolate:r})(e)}function we(t){return we="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},we(t)}function _e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_e=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==we(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function xe(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 ke(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){xe(i,n,o,a,s,"next",t)}function s(t){xe(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Oe=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")},Se={methods:{handleFile:function(t){var e=this;return ke(_e().mark((function r(){var n,o,i,a;return _e().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:a();case 11:case"end":return r.stop()}}),r)})))()},handleFilesUpload:function(t){var e=this;return ke(_e().mark((function t(){return _e().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 ke(_e().mark((function r(){var n,o;return _e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=function(){var r=ke(_e().mark((function r(){var n,o,i;return _e().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,Oe(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 ke(_e().mark((function n(){var o,i,a;return _e().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=ke(_e().mark((function e(){var n,i,a;return _e().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,Oe(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 ke(_e().mark((function r(){var n,o;return _e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=function(){var r=ke(_e().mark((function r(){var n,o,i;return _e().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,Oe(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 Ee(t){return Ee="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},Ee(t)}function je(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 Ne(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?je(Object(r),!0).forEach((function(e){Le(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):je(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Le(t,e,r){return e=Pe(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pe(t){var e=Ce(t,"string");return"symbol"===Ee(e)?e:String(e)}function Ce(t,e){if("object"!==Ee(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ee(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Ae(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ae=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Ee(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Te(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 Re(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Te(i,n,o,a,s,"next",t)}function s(t){Te(i,n,o,a,s,"throw",t)}a(void 0)}))}}var De=r("9f89"),Ie=/\${([\s\S]+?)}/g,Me={methods:{handleViewPicker:function(t){var e=this;return Re(Ae().mark((function t(){return Ae().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 Re(Ae().mark((function r(){var n,o,i,a,s,c,l,u,f,d;return Ae().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=Ne(Ne({},e.actionModel),{},{$parent:e.actionParams.$parent}),r.next=5,e.$api.get(De(o,{reInterpolate:Ie})(u));case 5:return f=r.sent,r.next=8,e.$api.get(De(i,{reInterpolate:Ie})(u));case 8:d=r.sent,e.actioning=!1,e.actionParams=Ne(Ne({},e.actionParams),{},{treeData:f.data&&f.data.collection,data:d.data&&d.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 Re(Ae().mark((function r(){var n,o,i,a,s,c,l,u,f,d,h;return Ae().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=Ne(Ne({},e.actionModel),{},{$parent:e.actionParams.$parent}),r.next=5,e.$api.get(De(o,{reInterpolate:Ie})(f));case 5:return d=r.sent,r.next=8,e.$api.get(De(i,{reInterpolate:Ie})(f));case 8:h=r.sent,e.actioning=!1,e.actionParams=Ne(Ne({},e.actionParams),{},{treeData:d.data&&d.data.collection,data:h.data&&h.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 Re(Ae().mark((function e(){return Ae().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 Re(Ae().mark((function r(){var n,o,i,a,s;return Ae().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=Ne(Ne({},e.actionModel),{},{$parent:e.actionParams.$parent}),r.next=5,e.$api.get(De(o,{reInterpolate:Ie})(a));case 5:s=r.sent,e.actioning=!1,e.actionParams=Ne(Ne({},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 qe(t){return qe="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},qe(t)}function Be(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 Fe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Be(Object(r),!0).forEach((function(e){Ue(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Be(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function $e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$e=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==qe(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}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)}))}}function Ue(t,e,r){return e=Ge(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ge(t){var e=ze(t,"string");return"symbol"===qe(e)?e:String(e)}function ze(t,e){if("object"!==qe(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==qe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ke={mixins:[Se,Me],methods:{handleRowAction:function(){},handleFindAll:function(){},handleFindOne:function(){},handleCreate:function(t){this.formMode="create",this.parentIdName&&this.actionModel&&(this.actionModel=Ue({},this.parentIdName,this.actionModel[this.nodeName])),this.showActionView()},handleUpdate:function(t){this.formMode="update",this.showActionView()},handleDelete:function(t){var e=this;return He($e().mark((function r(){return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:e.$confirm({title:t.name,content:"此操作将永久删除该数据, 是否继续?",okText:"确定",cancelText:"取消",onOk:function(){var r=He($e().mark((function r(){return $e().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();case 4: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 He($e().mark((function e(){return $e().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 He($e().mark((function r(){return $e().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 He($e().mark((function r(){return $e().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 He($e().mark((function n(){var o,i,a;return $e().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," 条"):"",r.$confirm({title:t.name,content:"确认对选定的".concat(a,"数据进行【").concat(t.name,"】操作?"),okText:"确定",cancelText:"取消",onOk:function(){var e=He($e().mark((function e(){return $e().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,r.saveData({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:""});case 2:t.params&&t.params.commit&&"remove"===t.params.commit.type&&(r.id?r.handleBack():r.findAll.length||r.load&&r.load()),t.params&&t.params.commit&&"load"===t.params.commit.type&&r.load&&r.load(),t.params&&t.params.commit&&"parent.load"===t.params.commit.type&&r.view&&r.view.load&&r.view.load();case 5:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}()});case 6:case"end":return n.stop()}}),n)})))()},handleEver:function(t){var e=this;return He($e().mark((function r(){var n;return $e().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 He($e().mark((function r(){var n;return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:n=t.legend,n=be(n,Fe({$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 He($e().mark((function r(){var n;return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:n=t.legend,n=be(n,Fe({$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 He($e().mark((function e(){var r,n;return $e().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.load){e.next=5;break}return e.next=3,t.load();case 3:r=e.sent,r instanceof Error&&(n=r.response.data.code,404===n&&t.handleBack());case 5: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=Fe({},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 Ye(t){return Ye="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},Ye(t)}function We(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */We=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Ye(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Ze(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 Je(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ze(Object(r),!0).forEach((function(e){Xe(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ze(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Xe(t,e,r){return e=Qe(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qe(t){var e=tr(t,"string");return"symbol"===Ye(e)?e:String(e)}function tr(t,e){if("object"!==Ye(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function er(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 rr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){er(i,n,o,a,s,"next",t)}function s(t){er(i,n,o,a,s,"throw",t)}a(void 0)}))}}var nr={methods:{handleFlowReport:function(t){var e=this;return rr(We().mark((function r(){var n,o;return We().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:Je({},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=Je(Je({},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 rr(We().mark((function r(){var n,o;return We().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:Je({},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=Je(Je({},n),{},{data:Je({},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 rr(We().mark((function r(){var n,o;return We().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:Je({},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=Je(Je({},n),{},{data:Je({},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 rr(We().mark((function r(){var n,o;return We().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:Je({},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 or(t){return or="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},or(t)}function ir(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ir=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==or(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ar(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 sr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ar(i,n,o,a,s,"next",t)}function s(t){ar(i,n,o,a,s,"throw",t)}a(void 0)}))}}var cr={methods:{commit:function(){return sr(ir().mark((function t(){return ir().wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()}}};function lr(t){return lr="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},lr(t)}function ur(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ur=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==lr(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function fr(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 dr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){fr(i,n,o,a,s,"next",t)}function s(t){fr(i,n,o,a,s,"throw",t)}a(void 0)}))}}function hr(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 pr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?hr(Object(r),!0).forEach((function(e){vr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vr(t,e,r){return e=mr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mr(t){var e=yr(t,"string");return"symbol"===lr(e)?e:String(e)}function yr(t,e){if("object"!==lr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==lr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var gr={create:["createonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},br={mixins:[Ke,nr,cr],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?this.model.actions.filter((function(e){return("none"===e.selected&&!t.selections.length&&!t.profile||"single"===e.selected&&(1===t.selections.length||t.profile&&"profile"!==e.action)||"somewhat"===e.selected&&(t.selections.length||t.profile)||"mulpitle"===e.selected&&t.selections.length>1||!e.selected)&&t.showAction(e)&&!t.actionRowEditing})):[];return 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=a.every((function(t){return ye(n,pr(pr({},t),{},{$parent:i}))})):i&&(s=ye(n,{$parent:i})),r?s:!s},actionBeforeDriver:function(t){var e=this;return dr(ur().mark((function r(){var n,o,i,a,s,c,l;return ur().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 dr(ur().mark((function o(){var i,a,s,c,l;return ur().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=pr(pr(pr({},e),r),n.defaults),n.actionParams=pr(pr({},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=pr({},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 dr(ur().mark((function n(){var o,i,a,s,c,l,u,f,d,h,p,v,m,y,g,b,w,_,x,k,O,S,E;return ur().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,d=l.params,h=void 0===d?{}:d,p=h.commit,v=void 0===p?{}:p,m=v.type,y=v.redirectProfile,g=h.autofill,b=r.schema,i.length>1?(delete t[s],t=i.map((function(e){return pr(pr({},e),t)}))):a&&!c.length&&(t=pr(pr({},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:m,params:o});case 11:if(k=n.sent,k){if(g){for(E in O=pr({},k),S=r.filterColumns().map((function(t){return t.name})),O)S.includes(E)||delete O[E];localStorage.setItem("form_".concat(b.id),JSON.stringify(O))}r.actionCommitResult.data=function(){return{data:k}},y&&r.handleModelProfile&&r.handleModelProfile(k),r.id&&m&&"remove"===m&&r.handleBack(),m&&"load"===m&&r.load(),m&&"parent.load"===m&&r.view&&r.view.load&&r.view.load()}case 13: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 gr[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"!==lr(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"!==lr(t[r][n])?t[r][n]:JSON.stringify(t[r][n])):e.append("".concat(r,".").concat(n),t[r][n]instanceof File||"object"!==lr(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=[]}},wr=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},_r=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},xr=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)},kr={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 wr(t,r)})).join(","):wr(e,r)),"wordbook"===r.dataType&&r.typeObject&&e&&(n=["checkbox","multiple","tree-suggests"].includes(r.control)?e.split(",").map((function(t){return _r(t,r)})).join(","):_r(e,r));var o=["year","month","date","datetime","time"];return o.includes(r.dataType)&&(e||0===e)&&(n=xr(e,r,this.moment)),n}}},Or=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))},Sr=[],Er={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}}},jr=Er;function Nr(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 Lr=Nr(jr,Or,Sr,!1,null,null,null),Pr=Lr.exports,Cr=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))},Ar=[],Tr={props:["item"],computed:{component:function(){return{props:["item"],template:this.item||"<div></div>"}}}},Rr=Tr,Dr=Nr(Rr,Cr,Ar,!1,null,null,null),Ir=Dr.exports,Mr={ListTable:Pr,ListNormal:Ir},qr=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)},Br=[];function Fr(t){return Fr="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},Fr(t)}function $r(t){return Gr(t)||Ur(t)||Hr(t)||Vr()}function Vr(){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 Hr(t,e){if(t){if("string"===typeof t)return zr(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)?zr(t,e):void 0}}function Ur(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Gr(t){if(Array.isArray(t))return zr(t)}function zr(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 Kr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Kr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Fr(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Yr(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 Wr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Yr(i,n,o,a,s,"next",t)}function s(t){Yr(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Zr(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 Jr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zr(Object(r),!0).forEach((function(e){Xr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Xr(t,e,r){return e=Qr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qr(t){var e=tn(t,"string");return"symbol"===Fr(e)?e:String(e)}function tn(t,e){if("object"!==Fr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Fr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var en={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:Jr({},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 Wr(Kr().mark((function e(){return Kr().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 Wr(Kr().mark((function e(){var r,n,o,i,a;return Kr().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($r(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}}},rn=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",[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.readonly?t._e():e("span",[t._v(" - "),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){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(t.index)}},slot:"actions"}):t._e()],1)}}],null,!1,2665482914)}):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()},nn=[];function on(t){return on="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},on(t)}function an(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */an=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==on(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function sn(t){return fn(t)||un(t)||ln(t)||cn()}function cn(){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 ln(t,e){if(t){if("string"===typeof t)return dn(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)?dn(t,e):void 0}}function un(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function fn(t){if(Array.isArray(t))return dn(t)}function dn(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 hn(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 pn(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){hn(i,n,o,a,s,"next",t)}function s(t){hn(i,n,o,a,s,"throw",t)}a(void 0)}))}}function vn(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 mn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vn(Object(r),!0).forEach((function(e){yn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function yn(t,e,r){return e=gn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gn(t){var e=bn(t,"string");return"symbol"===on(e)?e:String(e)}function bn(t,e){if("object"!==on(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==on(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var wn={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,e,r;return null!==(t=this.schema)&&void 0!==t&&null!==(e=t.params)&&void 0!==e&&null!==(r=e.control)&&void 0!==r&&r.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 ye(Object.fromEntries([[r.key,e[r.value]]]),mn(mn({},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.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}),mn(mn(mn({},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=i[c].split(";");r.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(mn(mn({},r),this.formModel)[t])?this.requireModel=!0:"filter"!==this.type&&(this.requireModel=!1)},show:function(t,e){var r=this.params.$parent;e.includes(mn(mn({},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(mn(mn({},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,d=a||u.titleName||u.idName;if(!this.selections.length)return"transfer"===e&&this.$emit("change",""),this.$message.error("请选择数据");if(l){var h=this.selections[0],p=Object.keys(l).map((function(t){return{name:t,value:h[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[d]})).join(","):this.selections[0][d],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 pn(an().mark((function r(){var n,o,i,a,s,c,l;return an().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=sn(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 pn(an().mark((function e(){var r,n,o,i,a,s,c;return an().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=sn(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 pn(an().mark((function e(){var r,n,o,i,a,s,c;return an().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}}},_n=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("a-input",{staticStyle:{display:"none"},attrs:{type:"file",multiple:""},on:{change:t.handleUploadChange}})],1)},xn=[],kn=(r("690b"),r("521b"),r("55ab"),r("37eb"));function On(t){return On="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},On(t)}function Sn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Sn=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==On(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function En(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 jn(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){En(i,n,o,a,s,"next",t)}function s(t){En(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Nn(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Ln(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 Ln(t,e){if(t){if("string"===typeof t)return Pn(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)?Pn(t,e):void 0}}function Pn(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 Cn={props:{value:{type:String,default:""},placeholder:{type:String,default:"请编辑内容"},disabled:{type:Boolean},params:{type:Object}},components:{quillEditor:kn["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"]')||null;t&&t.click()},handleUploadChange:function(t){var e=new FormData,r=t.target.files;if(r&&r.length){var n,o=Nn(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)},getfileurl:function(t){var e=this;return jn(Sn().mark((function r(){var n,o,i;return Sn().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){this.pos=this.quill.getSelection().index,this.quill.insertEmbed(this.pos,"image",t),this.quill.setSelection(this.pos+1)}}},An=Cn,Tn=(r("2f24"),Nr(An,_n,xn,!1,null,null,null)),Rn=Tn.exports,Dn=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)},In=[];function Mn(t){return Mn="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},Mn(t)}function qn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */qn=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Mn(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Bn(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 Fn(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Bn(i,n,o,a,s,"next",t)}function s(t){Bn(i,n,o,a,s,"throw",t)}a(void 0)}))}}var $n={mixins:[en],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 Fn(qn().mark((function e(){var r,n,o,i,a;return qn().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)}}},Vn=$n,Hn=Nr(Vn,Dn,In,!1,null,null,null),Un=Hn.exports;function Gn(t){return Gn="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},Gn(t)}function zn(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 Kn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zn(Object(r),!0).forEach((function(e){Yn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Yn(t,e,r){return e=Wn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wn(t){var e=Zn(t,"string");return"symbol"===Gn(e)?e:String(e)}function Zn(t,e){if("object"!==Gn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Gn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Jn=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",Kn({},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)},Xn=[],Qn=r("5aeb"),to={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 Qn["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;Qn["lazyAMapApiLoaderInstance"]&&Qn["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("根据经纬度查询地址失败")}))}}},eo=to,ro=(r("cf3f"),Nr(eo,Jn,Xn,!1,null,"09b502b8",null)),no=ro.exports;function oo(t){return oo="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},oo(t)}function io(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 ao(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?io(Object(r),!0).forEach((function(e){so(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):io(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function so(t,e,r){return e=co(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function co(t){var e=lo(t,"string");return"symbol"===oo(e)?e:String(e)}function lo(t,e){if("object"!==oo(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==oo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var uo=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",ao({},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)},fo=[];function ho(t){return ho="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},ho(t)}function po(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 vo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?po(Object(r),!0).forEach((function(e){mo(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):po(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mo(t,e,r){return e=yo(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yo(t){var e=go(t,"string");return"symbol"===ho(e)?e:String(e)}function go(t,e){if("object"!==ho(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ho(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var bo={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 Qn["AMapManager"]},methods:{initMap:function(){var t=this;Qn["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(vo({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]}}}},wo=bo,_o=(r("fa93"),Nr(wo,uo,fo,!1,null,"03415b3c",null)),xo=_o.exports;function ko(t){return jo(t)||Eo(t)||So(t)||Oo()}function Oo(){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 So(t,e){if(t){if("string"===typeof t)return No(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)?No(t,e):void 0}}function Eo(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function jo(t){if(Array.isArray(t))return No(t)}function No(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 Lo=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(ko(i),ko(t.checkedKeys)),treeData:t.filterTreeNodes},on:{check:function(e,r){t.onChecked(e,r,[].concat(ko(i),ko(t.checkedKeys)),a)},select:function(e,r){t.onChecked(e,r,[].concat(ko(i),ko(t.checkedKeys)),a)}}})],1):t._e()]}}])})],1)],1)},Po=[];function Co(t){return Co="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},Co(t)}function Ao(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ao=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Co(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function To(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 Ro(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){To(i,n,o,a,s,"next",t)}function s(t){To(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Do=r("9f89"),Io=/\${([\s\S]+?)}/g,Mo={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&&!ye(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 Ro(Ao().mark((function e(){var r,n;return Ao().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(Do(r,{reInterpolate:Io})());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))}}},qo=Mo,Bo=(r("014f"),Nr(qo,Lo,Po,!1,null,"d5aa2650",null)),Fo=Bo.exports,$o=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)},Vo=[],Ho={props:{schema:{type:Object},pickerMode:{type:String,enum:["single","multiple"],default:"single"},mode:{type:String,default:"picker"}}};function Uo(t){return Uo="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},Uo(t)}function Go(t){return Wo(t)||Yo(t)||Ko(t)||zo()}function zo(){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 Ko(t,e){if(t){if("string"===typeof t)return Zo(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)?Zo(t,e):void 0}}function Yo(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Wo(t){if(Array.isArray(t))return Zo(t)}function Zo(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 Jo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Jo=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Uo(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Xo(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 Qo(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Xo(i,n,o,a,s,"next",t)}function s(t){Xo(i,n,o,a,s,"throw",t)}a(void 0)}))}}function ti(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 ei(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ti(Object(r),!0).forEach((function(e){ri(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ti(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ri(t,e,r){return e=ni(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ni(t){var e=oi(t,"string");return"symbol"===Uo(e)?e:String(e)}function oi(t,e){if("object"!==Uo(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Uo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ii={mixins:[Ho],components:ei({},Wg),data:function(){return{pageKey:null,viewKey:null,storeNamespace:null,loading:!0,selections:[],idName:"",titleName:""}},created:function(){this.initView()},computed:{createView:function(){return{extends:$t(Wg.ModelList)("".concat(this.storeNamespace))}}},methods:{create:$t,initView:function(){var t=this;return Qo(Jo().mark((function e(){var r,n,o;return Jo().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(Go(this.selections),Go(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)}}},ai=ii,si=Nr(ai,$o,Vo,!1,null,null,null),ci=si.exports;function li(t){return li="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},li(t)}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){di(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 di(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=pi(t,"string");return"symbol"===li(e)?e:String(e)}function pi(t,e){if("object"!==li(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==li(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var vi=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",fi(fi({},t.options),t.$attrs),!1),t.$listeners),[t._t("default")],2)},mi=[],yi={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")]}}},gi=yi,bi=Nr(gi,vi,mi,!1,null,null,null),wi=bi.exports,_i={mixins:[wn],components:{Editor:Rn,Picker:ci,Popup:wi,VerificationCode:Un,MapMarker:no,MapPolygon:xo,Transfer:Fo},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())}}},xi=_i,ki=(r("4089"),Nr(xi,rn,nn,!1,null,null,null)),Oi=ki.exports,Si={mixins:[en],components:{Item:Oi},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}}},Ei=Si,ji=Nr(Ei,qr,Br,!1,null,null,null),Ni=ji.exports,Li=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)},Pi=[];function Ci(t){return Ci="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},Ci(t)}function Ai(t,e,r){return e=Ti(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ti(t){var e=Ri(t,"string");return"symbol"===Ci(e)?e:String(e)}function Ri(t,e){if("object"!==Ci(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ci(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Di={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,Ai({},r,e))}}},Ii=Di,Mi=Nr(Ii,Li,Pi,!1,null,null,null),qi=Mi.exports,Bi=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)},Fi=[],$i={inject:["page","view"],props:{action:{type:Object},modelViewType:{type:String}},computed:{createView:function(){return{extends:$t(Wg["Model".concat(this.modelViewType)])("".concat(this.view.storeNamespace))}}}},Vi=$i,Hi=Nr(Vi,Bi,Fi,!1,null,null,null),Ui=Hi.exports,Gi=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))},zi=[],Ki={},Yi=Nr(Ki,Gi,zi,!1,null,null,null),Wi=Yi.exports,Zi=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)},Ji=[];function Xi(t){return Xi="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},Xi(t)}function Qi(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 ta(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Qi(Object(r),!0).forEach((function(e){ea(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qi(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ea(t,e,r){return e=ra(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ra(t){var e=na(t,"string");return"symbol"===Xi(e)?e:String(e)}function na(t,e){if("object"!==Xi(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Xi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var oa={mixins:[kr],components:{Item:Oi},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 ta({},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])}}},ia=oa,aa=Nr(ia,Zi,Ji,!1,null,null,null),sa=aa.exports;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=da(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function da(t){var e=ha(t,"string");return"symbol"===ca(e)?e:String(e)}function ha(t,e){if("object"!==ca(t)||null===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:[Ut,Gt,ve,br,kr,se,ce],components:ua(ua(ua({},Mr),Wg),{},{FilterForm:Ni,ActionGroup:qi,ActionView:Ui,PaginationSize:Wi,Popup:wi,Cell:sa})},va=pa,ma=(r("ca3b"),Nr(va,Vt,Ht,!1,null,null,null)),ya=ma.exports,ga=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)},ba=[];function wa(t){return wa="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},wa(t)}function _a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_a=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==wa(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function xa(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 ka(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){xa(i,n,o,a,s,"next",t)}function s(t){xa(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Oa={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||ye(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 ka(_a().mark((function r(){var n,o,i;return _a().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 Sa(t){return La(t)||Na(t)||ja(t)||Ea()}function Ea(){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 ja(t,e){if(t){if("string"===typeof t)return Pa(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)?Pa(t,e):void 0}}function Na(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function La(t){if(Array.isArray(t))return Pa(t)}function Pa(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 Ca=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(Sa(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:r.name,params:{$parent:t.profile}}})],1)],1)})),1)],1):t._e()],1)},Aa=[],Ta={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(){}},Ra=function(){var t=this,e=t._self._c;return e("tr",{staticClass:"ant-descriptions-row"},[t._t("default")],2)},Da=[],Ia={},Ma=Ia,qa=Nr(Ma,Ra,Da,!1,null,null,null),Ba=qa.exports;function Fa(t){return Fa="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},Fa(t)}function $a(t,e,r){return e=Va(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Va(t){var e=Ha(t,"string");return"symbol"===Fa(e)?e:String(e)}function Ha(t,e){if("object"!==Fa(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Fa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ua=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},Ga={DescriptionsItem:Ta,components:{Row:Ba},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,r=this.title,n=this.bordered,o=this.size,i=this.colon,a=this.layout,s=this.inline,c=this.column,l=this.$slots,u=this.profile,f=Ua(l.default,c);return t("div",{class:(e={"ant-descriptions":!0},$a(e,"ant-descriptions-".concat(o),!0),$a(e,"ant-descriptions-bordered",!!n),$a(e,"ant-descriptions-profile",!!u),e)},[r&&t("div",{class:"ant-descriptions-title"},[r]),!r&&l.title&&t("div",{class:"ant-descriptions-title"},[l.title]),t("div",{class:"ant-descriptions-view"},[t("table",[t("tbody",[f.map((function(e){return"vertical"===a?[t(Ba,[" ",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(Ba,[" ",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(Ba,[" ",e.map((function(e){var r=e.componentOptions.propsData,o=r.label,a=r.span,c=r.align,l=r.tooltip;return n||!s?[t("th",{class:"ant-descriptions-item-label"},l?[o,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;"})])]:[o]),t("td",{class:"ant-descriptions-item-content",style:{"text-align":c,"white-space":"pre-wrap"},attrs:{colSpan:a?2*a-1:""}},[e])]:t("td",{class:"ant-descriptions-item",attrs:{colSpan:a},style:{"text-align":c}},l?[t("span",{class:{"ant-descriptions-item-label":!0,"ant-descriptions-item-colon":i}},[o,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":i}},[o]),t("span",{class:"ant-descriptions-item-content",style:"white-space:pre-wrap"},[e])])}))," "])}))])])]),l.footer&&t("div",[l.footer])])},renderError:function(){}},za=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}})])},Ka=[],Ya={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")}}},Wa=Ya,Za=Nr(Wa,za,Ka,!1,null,null,null),Ja=Za.exports;function Xa(t){return Xa="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},Xa(t)}function Qa(t){return ns(t)||rs(t)||es(t)||ts()}function ts(){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 es(t,e){if(t){if("string"===typeof t)return os(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)?os(t,e):void 0}}function rs(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ns(t){if(Array.isArray(t))return os(t)}function os(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 is(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 as(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?is(Object(r),!0).forEach((function(e){ss(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):is(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ss(t,e,r){return e=cs(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cs(t){var e=ls(t,"string");return"symbol"===Xa(e)?e:String(e)}function ls(t,e){if("object"!==Xa(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Xa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var us,fs,ds=Ga.DescriptionsItem,hs={components:as({Descriptions:Ga,DescriptionsItem:ds,Frame:Ja},Wg),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:Qa(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&Qa(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,showDescItems:{}}},methods:{handleChange:function(t){this.activeTabKey=t},templateURL:function(t,e){return be(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 as(as({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:$t(Wg.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=Qa(this.subviews),this.id=this.view.id}}},ps=hs,vs=(r("5dd0"),Nr(ps,Ca,Aa,!1,null,null,null)),ms=vs.exports,ys={},gs=Nr(ys,us,fs,!1,null,null,null),bs=gs.exports;function ws(t){return Os(t)||ks(t)||xs(t)||_s()}function _s(){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 xs(t,e){if(t){if("string"===typeof t)return Ss(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)?Ss(t,e):void 0}}function ks(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Os(t){if(Array.isArray(t))return Ss(t)}function Ss(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 Es=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(ws(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:r.name,params:{$parent:t.profile}}})],1)],1)}))],2)],1)},js=[];function Ns(t){return Ns="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},Ns(t)}function Ls(t){return Ts(t)||As(t)||Cs(t)||Ps()}function Ps(){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 Cs(t,e){if(t){if("string"===typeof t)return Rs(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)?Rs(t,e):void 0}}function As(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Ts(t){if(Array.isArray(t))return Rs(t)}function Rs(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 Ds(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 Is(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ds(Object(r),!0).forEach((function(e){Ms(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ds(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ms(t,e,r){return e=qs(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qs(t){var e=Bs(t,"string");return"symbol"===Ns(e)?e:String(e)}function Bs(t,e){if("object"!==Ns(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ns(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Fs=Ga.DescriptionsItem,$s={components:Is({Descriptions:Ga,DescriptionsItem:Fs,Frame:Ja},Wg),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:Ls(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&Ls(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 be(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 Is(Is({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:$t(Wg.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}},activated:function(){this.affix=!0},deactivated:function(){this.affix=!1}},Vs=$s,Hs=(r("e41e"),Nr(Vs,Es,js,!1,null,null,null)),Us=Hs.exports;function Gs(t){return Ws(t)||Ys(t)||Ks(t)||zs()}function zs(){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 Ks(t,e){if(t){if("string"===typeof t)return Zs(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)?Zs(t,e):void 0}}function Ys(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Ws(t){if(Array.isArray(t))return Zs(t)}function Zs(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 Js=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(Gs(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:r.name,params:{$parent:t.profile}}})],1)],1)})),1)],1):t._e()},Xs=[];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 tc(t){return oc(t)||nc(t)||rc(t)||ec()}function ec(){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 rc(t,e){if(t){if("string"===typeof t)return ic(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)?ic(t,e):void 0}}function nc(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function oc(t){if(Array.isArray(t))return ic(t)}function ic(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 ac(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 sc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ac(Object(r),!0).forEach((function(e){cc(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ac(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cc(t,e,r){return e=lc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lc(t){var e=uc(t,"string");return"symbol"===Qs(e)?e:String(e)}function uc(t,e){if("object"!==Qs(t)||null===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 fc=Ga.DescriptionsItem,dc={components:sc({Descriptions:Ga,DescriptionsItem:fc,Frame:Ja},Wg),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",id:this.view.id,parentIds:this.view.parentIds&&tc(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,showDescItems:{}}},methods:{handleChange:function(t){this.activeTabKey=t},templateURL:function(t,e){return be(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)}},computed:{tabs:function(){return this.views.map((function(t,e){return sc(sc({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:$t(Wg.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)})):[]},views:function(){return[{name:this.view.configs&&this.view.configs["profile.tabs.profileTitle"]?this.view.configs["profile.tabs.profileTitle"]:"详情",type:"profile"}].concat(tc(this.subviews))}},watch:{profile:function(){this.id=this.view.id}}},hc=dc,pc=(r("2a6c"),Nr(hc,Js,Xs,!1,null,null,null)),vc=pc.exports,mc={ProfileNormal:ms,ProfilePortal:bs,ProfileTile:Us,ProfileTabs:vc};function yc(t){return yc="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},yc(t)}function gc(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 bc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gc(Object(r),!0).forEach((function(e){wc(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gc(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function wc(t,e,r){return e=_c(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _c(t){var e=xc(t,"string");return"symbol"===yc(e)?e:String(e)}function xc(t,e){if("object"!==yc(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==yc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var kc={mixins:[Ut,Gt,ve,br,kr,Oa],components:bc({ActionGroup:qi,ActionView:Ui,Popup:wi,Cell:sa},mc)},Oc=kc,Sc=(r("a613"),Nr(Oc,ga,ba,!1,null,null,null)),Ec=Sc.exports,jc=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)},Nc=[],Lc={create:["createonly","updateonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},Pc={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 Lc[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")}}},Cc=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)},Ac=[],Tc={mixins:[en],components:{Item:Oi}},Rc=Tc,Dc=Nr(Rc,Cc,Ac,!1,null,null,null),Ic=Dc.exports,Mc=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)},qc=[];function Bc(t){return Bc="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},Bc(t)}function Fc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Fc=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Bc(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function $c(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 Vc(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){$c(i,n,o,a,s,"next",t)}function s(t){$c(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Hc={mixins:[en],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 Vc(Fc().mark((function e(){var r;return Fc().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 Vc(Fc().mark((function e(){var r,n,o,i,a,s,c,l,u,f,d,h;return Fc().wrap((function(e){while(1)switch(e.prev=e.next){case 0:h=function(){return h=Vc(Fc().mark((function t(e){var r,h,p;return Fc().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.status="uploading",r=o.key,h=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:h,mute:!0});case 7:f++,e.status="done",f>=u.length?(s(),c(),l.success("上传完成")):d(u[f]);case 10:case"end":return t.stop()}}),t)}))),h.apply(this,arguments)},d=function(t){return h.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,d(u[f]);case 6:case"end":return e.stop()}}),e)})))()}}},Uc=Hc,Gc=Nr(Uc,Mc,qc,!1,null,null,null),zc=Gc.exports,Kc=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))},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(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 Jc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zc(Object(r),!0).forEach((function(e){Xc(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zc(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Xc(t,e,r){return e=Qc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qc(t){var e=tl(t,"string");return"symbol"===Wc(e)?e:String(e)}function tl(t,e){if("object"!==Wc(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Wc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var el={mixins:[en],components:{Picker:ci},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}),Jc(Jc({},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 Xc({},r,t[e])})):t}}},rl=el,nl=Nr(rl,Kc,Yc,!1,null,null,null),ol=nl.exports,il=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)},al=[];function sl(t){return sl="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},sl(t)}function cl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */cl=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==sl(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ll(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 ul(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ll(i,n,o,a,s,"next",t)}function s(t){ll(i,n,o,a,s,"throw",t)}a(void 0)}))}}var fl={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 ul(cl().mark((function r(){var n,o,i,a,s,c,l,u;return cl().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,S[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 ul(cl().mark((function e(){var r,n,o,i;return cl().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,S.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 ul(cl().mark((function r(){var n,o,i,a,s,c;return cl().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,S.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 dl(t){return dl="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},dl(t)}function hl(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 pl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?hl(Object(r),!0).forEach((function(e){vl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hl(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vl(t,e,r){return e=ml(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ml(t){var e=yl(t,"string");return"symbol"===dl(e)?e:String(e)}function yl(t,e){if("object"!==dl(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==dl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}for(var gl=Object(u["createNamespacedHelpers"])("m-algorithm"),bl=gl.mapState,wl=gl.mapActions,_l=["loading","data","message"],xl=["loadData","loadDistrict","getResult"],kl={computed:pl({},bl(_l)),methods:pl({},wl(xl)),beforeCreate:function(){this.$store.state["m-algorithm"]||this.$store.registerModule("m-algorithm",fl)}},Ol=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)},Sl=[],El=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)},jl=[],Nl={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}}},Ll=Nl,Pl=Nr(Ll,El,jl,!1,null,null,null),Cl=Pl.exports,Al=Ga.DescriptionsItem,Tl={props:{title:{type:String},data:{type:Array,require:!0},defaultCheckedList:{type:Array}},components:{Descriptions:Ga,DescriptionsItem:Al,AlgorithmParams:Cl},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:{}},Rl=Tl,Dl=(r("a59b"),Nr(Rl,Ol,Sl,!1,null,null,null)),Il=Dl.exports,Ml=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)},ql=[],Bl={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}}))}}))}}))||[]}}},Fl=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}})},$l=[],Vl=r("2364"),Hl=null,Ul={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){Hl&&Hl.dispose();var e=Vl["Uri"].parse("json://grid/settings.json");Hl=Vl["editor"].create(this.$refs.monaco,{value:JSON.stringify(t,null,"\t"),language:"json",Uri:e})}},watch:{value:function(t){this.getResult(t)}}},Gl=Ul,zl=Nr(Gl,Fl,$l,!1,null,null,null),Kl=zl.exports,Yl=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)},Wl=[],Zl=[],Jl=[],Xl=[],Ql=[],tu=1901;tu<=2030;tu++)Zl.push("".concat(tu));for(var eu=1;eu<=12;eu++)Jl.push(eu<10?"0".concat(eu):"".concat(eu));for(var ru=0;ru<=23;ru++)Xl.push(ru<10?"0".concat(ru):"".concat(ru));for(var nu=0;nu<=59;nu++)Ql.push(nu<10?"0".concat(nu):"".concat(nu));var ou={props:{isLunar:{type:Boolean,default:!1}},data:function(){return{years:Zl,year:"1901",months:Jl,month:"01",day:"01",hours:Xl,hour:"00",minutes:Ql,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)}}},iu=ou,au=(r("e558"),Nr(iu,Yl,Wl,!1,null,null,null)),su=au.exports,cu=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)},lu=[],uu=[{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"}],fu={mixins:[kl],data:function(){return{columns:uu,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}})}}},du=fu,hu=Nr(du,cu,lu,!1,null,null,null),pu=hu.exports;function vu(t){return vu="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},vu(t)}function mu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */mu=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==vu(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function yu(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 gu(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){yu(i,n,o,a,s,"next",t)}function s(t){yu(i,n,o,a,s,"throw",t)}a(void 0)}))}}var bu=["流年","流月","商务","健康","婚姻","爱情","工作","出行","学业","财运","家宅"],wu={mixins:[kl,Bl],props:["algorithmList"],components:{CodeEditor:Kl,DateTimePicker:su,ProfileSelect:pu},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:bu,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 gu(mu().mark((function r(){return mu().wrap((function(r){while(1)switch(r.prev=r.next){case 0:e.profile.is_submit=t,e.$refs.profileForm.validate(function(){var r=gu(mu().mark((function r(n){var o;return mu().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)}}},_u=wu,xu=Nr(_u,Ml,ql,!1,null,null,null),ku=xu.exports;function Ou(t){return Ou="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},Ou(t)}function Su(t){return Lu(t)||Nu(t)||ju(t)||Eu()}function Eu(){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 ju(t,e){if(t){if("string"===typeof t)return Pu(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)?Pu(t,e):void 0}}function Nu(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Lu(t){if(Array.isArray(t))return Pu(t)}function Pu(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 Cu(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 Au(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Cu(Object(r),!0).forEach((function(e){Tu(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cu(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Tu(t,e,r){return e=Ru(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ru(t){var e=Du(t,"string");return"symbol"===Ou(e)?e:String(e)}function Du(t,e){if("object"!==Ou(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ou(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Iu={mixins:[kl],components:{CheckboxGroup:Il,AlgorithmForm:ku},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=Au(Au({},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=Su(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=Su(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(Su(e),Su(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(Su(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()}}},Mu=Iu,qu=(r("53e9"),Nr(Mu,il,al,!1,null,null,null)),Bu=qu.exports;function Fu(t){return Uu(t)||Hu(t)||Vu(t)||$u()}function $u(){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 Vu(t,e){if(t){if("string"===typeof t)return Gu(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)?Gu(t,e):void 0}}function Hu(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Uu(t){if(Array.isArray(t))return Gu(t)}function Gu(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 zu=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(Fu(i),Fu(t.checkedKeys)),treeData:t.filterTreeNodes},on:{check:function(e,r){t.onChecked(e,r,[].concat(Fu(i),Fu(t.checkedKeys)),a)},select:function(e,r){t.onChecked(e,r,[].concat(Fu(i),Fu(t.checkedKeys)),a)}}})],1):t._e()]}}])})],1)},Ku=[];function Yu(t){return Yu="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},Yu(t)}function Wu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Wu=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Yu(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Zu(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 Ju(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Zu(i,n,o,a,s,"next",t)}function s(t){Zu(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Xu(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 Qu(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Xu(Object(r),!0).forEach((function(e){tf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xu(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tf(t,e,r){return e=ef(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ef(t){var e=rf(t,"string");return"symbol"===Yu(e)?e:String(e)}function rf(t,e){if("object"!==Yu(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Yu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var nf={mixins:[en],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&&!ye(o,a)||i&&ye(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=Qu(Qu({},this.actionModel),{},tf({},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=Qu(Qu({},this.actionModel),{},tf({},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 Ju(Wu().mark((function e(){return Wu().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))}}},of=nf,af=(r("e58e"),Nr(of,zu,Ku,!1,null,"0ce5108d",null)),sf=af.exports,cf=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}})},lf=[];function uf(t){return uf="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},uf(t)}function ff(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ff=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==uf(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function df(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 hf(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){df(i,n,o,a,s,"next",t)}function s(t){df(i,n,o,a,s,"throw",t)}a(void 0)}))}}function pf(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 vf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pf(Object(r),!0).forEach((function(e){mf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mf(t,e,r){return e=yf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yf(t){var e=gf(t,"string");return"symbol"===uf(e)?e:String(e)}function gf(t,e){if("object"!==uf(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==uf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var bf={mixins:[en],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=vf(vf({},this.actionModel),{},mf({},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=vf(vf({},this.actionModel),{},mf({},this.valuesName,r))},handleSubmit:function(){var t=this;return hf(ff().mark((function e(){return ff().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.handleCommit();case 1:case"end":return e.stop()}}),e)})))()}}},wf=bf,_f=Nr(wf,cf,lf,!1,null,null,null),xf=_f.exports,kf=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)}}])})},Of=[];function Sf(t){return Sf="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},Sf(t)}function Ef(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 jf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ef(Object(r),!0).forEach((function(e){Nf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ef(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Nf(t,e,r){return e=Lf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Lf(t){var e=Pf(t,"string");return"symbol"===Sf(e)?e:String(e)}function Pf(t,e){if("object"!==Sf(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Sf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Cf(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Cf=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Sf(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Af(t){return If(t)||Df(t)||Rf(t)||Tf()}function Tf(){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 Rf(t,e){if(t){if("string"===typeof t)return Mf(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)?Mf(t,e):void 0}}function Df(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function If(t){if(Array.isArray(t))return Mf(t)}function Mf(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 qf(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 Bf(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){qf(i,n,o,a,s,"next",t)}function s(t){qf(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Ff={mixins:[en],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 Bf(Cf().mark((function e(){var r,n;return Cf().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=Af(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=jf(jf({},this.actionModel),{},Nf({},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))}}},$f=Ff,Vf=Nr($f,kf,Of,!1,null,null,null),Hf=Vf.exports,Uf=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)},Gf=[],zf=r("336c"),Kf=r.n(zf);function Yf(t){return Yf="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},Yf(t)}function Wf(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Wf=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Yf(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Zf(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 Jf(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Zf(i,n,o,a,s,"next",t)}function s(t){Zf(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Xf(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 Qf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Xf(Object(r),!0).forEach((function(e){td(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function td(t,e,r){return e=ed(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ed(t){var e=rd(t,"string");return"symbol"===Yf(e)?e:String(e)}function rd(t,e){if("object"!==Yf(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Yf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}Kf.a.track(!1);var nd=r("019f"),od={mixins:[en],components:{Item:Oi},data:function(){return{actionModel:Qf(Qf({},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 Jf(Wf().mark((function e(){return Wf().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 Jf(Wf().mark((function n(){var o,i,a,s;return Wf().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=Qf({},r.actionModel.data),s[o]=t,r.actionModel.data=Qf({},s);case 18:case"end":return n.stop()}}),n)})))()},renderGraph:function(){var t=this;Kf.a.registerNode("rect",{getPath:function(t){var e=150,r=40;return Kf.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 Kf.a.Graph({container:this.$refs.graph,fitView:"cc",height:72*this.steps.length,plugins:[new nd({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 Qf(Qf({},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("、"),")"):""}}},id=od,ad=(r("2409"),Nr(id,Uf,Gf,!1,null,null,null)),sd=ad.exports,cd=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)},ld=[],ud=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)])},fd=[];function dd(t){return dd="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},dd(t)}function hd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pd(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,yd(n.key),n)}}function vd(t,e,r){return e&&pd(t.prototype,e),r&&pd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function md(t,e,r){return e=yd(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yd(t){var e=gd(t,"string");return"symbol"===dd(e)?e:String(e)}function gd(t,e){if("object"!==dd(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==dd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function bd(t,e,r){return _d(t,e),wd(r,"get"),xd(t,r)}function wd(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}function _d(t,e){if(t!==e)throw new TypeError("Private static access of wrong provenance")}function xd(t,e){return e.get?e.get.call(t):e.value}var kd=function(){function t(e,r,n){hd(this,t),md(this,"name",void 0),md(this,"mode",void 0),md(this,"component",void 0),this.name=e,this.mode=r,this.component=n}return vd(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 bd(this,t,Od).set(e,a),bd(this,t,Sd).set(e,o),i&&bd(this,t,Ed).set(e,i),a}},{key:"getNodeType",value:function(e){return bd(this,t,Od).get(e)}},{key:"getBranchType",value:function(e){return bd(this,t,Ed).get(e)}},{key:"createNode",value:function(e){if(!bd(this,t,Sd).has(e))throw new Error("【flow-designer】NodeType: 类型"+e+"不支持创建节点");return bd(this,t,Sd).get(e)()}},{key:"createWrap",value:function(e){if(!bd(this,t,Sd).has(e))throw new Error("【flow-designer】NodeType: 类型"+e+"不支持创建节点");return bd(this,t,Sd).get(e)()}}]),t}();md(kd,"START","start"),md(kd,"END","end"),md(kd,"CHECK","check"),md(kd,"CC","cc"),md(kd,"TRIGGER","trigger"),md(kd,"DELAY","delay"),md(kd,"PARALLEL_WRAP","parallel_wrap"),md(kd,"PARALLEL","parallel"),md(kd,"JUDGE_WRAP","judge_wrap"),md(kd,"JUDGE","judge");var Od={writable:!0,value:new Map},Sd={writable:!0,value:new Map},Ed={writable:!0,value:new Map};function jd(){kd.registerNodeType(kd.START,"single","StartNode"),kd.registerNodeType(kd.CHECK,"single","CheckNode",(function(){return new Md("审批人","审批人",null,kd.CHECK)})),kd.registerNodeType(kd.CC,"single","CCNode",(function(){return new Md("抄送人","抄送人",null,kd.CC)})),kd.registerNodeType(kd.TRIGGER,"single","TriggerNode",(function(){return new Md("触发器","触发器",null,kd.TRIGGER)})),kd.registerNodeType(kd.DELAY,"single","DelayNode",(function(){return new Md("延迟等待","延迟等待",null,kd.DELAY)})),kd.registerNodeType(kd.END,"single","EndNode"),kd.registerNodeType(kd.PARALLEL_WRAP,"wrap","ParallelWrapNode",(function(){return[new Md("并行分支","并行分支","gateway",kd.PARALLEL_WRAP,null,null,[]),new Md("分支","NodeHandler Automatic generated","并行任务(同时进行)",kd.PARALLEL),new Md("分支","NodeHandler Automatic generated","并行任务(同时进行)",kd.PARALLEL)]}),kd.PARALLEL),kd.registerNodeType(kd.PARALLEL,"single","ParallelNode",(function(){return new Md("NodeHandler Automatic generated","NodeHandler Automatic generated","并行任务(同时进行)",kd.PARALLEL)})),kd.registerNodeType(kd.JUDGE_WRAP,"wrap","JudgeWrapNode",(function(){return[new Md("条件分支","条件分支","gateway",kd.JUDGE_WRAP,null,null,[]),new Md("条件","NodeHandler Automatic generated",null,kd.JUDGE),new Md("条件","NodeHandler Automatic generated",null,kd.JUDGE)]}),kd.JUDGE),kd.registerNodeType(kd.JUDGE,"single","JudgeNode",(function(){return new Md("NodeHandler Automatic generated","NodeHandler Automatic generated",null,kd.JUDGE)}))}jd();var Nd=kd;function Ld(t){return Ld="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},Ld(t)}function Pd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cd(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,Rd(n.key),n)}}function Ad(t,e,r){return e&&Cd(t.prototype,e),r&&Cd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Td(t,e,r){return e=Rd(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rd(t){var e=Dd(t,"string");return"symbol"===Ld(e)?e:String(e)}function Dd(t,e){if("object"!==Ld(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ld(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Id=function(){function t(e,r,n,o,i,a,s){Pd(this,t),Td(this,"name",void 0),Td(this,"code",void 0),Td(this,"content",void 0),Td(this,"type",void 0),Td(this,"data",void 0),Td(this,"nextNodeCode",void 0),Td(this,"childNodeCodes",void 0),Td(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 Ad(t,[{key:"isBranchNode",value:function(){return[Nd.JUDGE,Nd.PARALLEL].includes(this.type)}},{key:"isHeadNode",value:function(){return[Nd.START,Nd.JUDGE,Nd.PARALLEL].includes(this.type)}},{key:"isFootNode",value:function(){return this.type===Nd.END||!this.nextNodeCode}},{key:"isWrapNode",value:function(){return[Nd.PARALLEL_WRAP,Nd.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}(),Md=Id;function qd(t){return qd="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},qd(t)}function Bd(t){return Hd(t)||Vd(t)||$d(t)||Fd()}function Fd(){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 $d(t,e){if(t){if("string"===typeof t)return Ud(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)?Ud(t,e):void 0}}function Vd(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Hd(t){if(Array.isArray(t))return Ud(t)}function Ud(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 Gd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zd(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,Zd(n.key),n)}}function Kd(t,e,r){return e&&zd(t.prototype,e),r&&zd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Yd(t,e){Qd(t,e),e.add(t)}function Wd(t,e,r){return e=Zd(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zd(t){var e=Jd(t,"string");return"symbol"===qd(e)?e:String(e)}function Jd(t,e){if("object"!==qd(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==qd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Xd(t,e,r){Qd(t,e),e.set(t,r)}function Qd(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function th(t,e,r){return rh(t,e),eh(r,"get"),ch(t,r)}function eh(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}function rh(t,e){if(t!==e)throw new TypeError("Private static access of wrong provenance")}function nh(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}function oh(t,e,r){var n=sh(t,e,"set");return ih(t,n,r),r}function ih(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 ah(t,e){var r=sh(t,e,"get");return ch(t,r)}function sh(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function ch(t,e){return e.get?e.get.call(t):e.value}var lh=new WeakMap,uh=new WeakMap,fh=new WeakMap,dh=new WeakMap,hh=new WeakMap,ph=new WeakMap,vh=new WeakMap,mh=new WeakMap,yh=new WeakMap,gh=new WeakSet,bh=new WeakSet,wh=new WeakSet,_h=new WeakSet,xh=new WeakSet,kh=new WeakSet,Oh=new WeakSet,Sh=new WeakSet,Eh=new WeakSet,jh=new WeakSet,Nh=new WeakSet,Lh=function(){function t(e,r){var n=this;if(Gd(this,t),Yd(this,Nh),Yd(this,jh),Yd(this,Eh),Yd(this,Sh),Yd(this,Oh),Yd(this,kh),Yd(this,xh),Yd(this,_h),Yd(this,wh),Yd(this,bh),Yd(this,gh),Xd(this,lh,{writable:!0,value:new Map}),Xd(this,uh,{writable:!0,value:new Map}),Xd(this,fh,{writable:!0,value:new Map}),Xd(this,dh,{writable:!0,value:new Map}),Xd(this,hh,{writable:!0,value:new Map}),Xd(this,ph,{writable:!0,value:void 0}),Xd(this,vh,{writable:!0,value:void 0}),Xd(this,mh,{writable:!0,value:void 0}),Xd(this,yh,{writable:!0,value:void 0}),Wd(this,"isPreview",void 0),Wd(this,"runtimeData",void 0),Wd(this,"businessAdapter",void 0),e&&e.length||(e=[{name:"上报人",code:"上报人",type:"start",nextNodeCode:"流程结束"},{name:"流程结束",code:"流程结束",type:"end"}]),e.forEach((function(t){var e=Md.parse(t);if(e.type===Nd.START){if(ah(n,ph))throw new Error("【flow-designer】NodeHandler创建失败;只能有一个起始节点");oh(n,ph,e)}if(e.type===Nd.END){if(ah(n,vh))throw new Error("【flow-designer】NodeHandler创建失败;只能有一个结束节点");oh(n,vh,e)}nh(n,xh,Rh).call(n,e)})),!ah(this,ph))throw new Error("【flow-designer】NodeHandler创建失败;没有起始节点");if(!ah(this,vh))throw new Error("【flow-designer】NodeHandler创建失败;没有结束节点");var o=ah(this,ph),i=new Set;try{nh(this,Sh,Mh).call(this,i,o)}catch(a){if(a.msg)throw new Error("【flow-designer】NodeHandler创建失败;"+a.msg);throw new Error("【flow-designer】NodeHandler创建失败;"+a)}Bd(ah(this,lh).values()).filter((function(t){return t.isWrapNode()})).forEach((function(t){return t.childNodeCodes.forEach((function(e){return ah(n,fh).set(e,t.code)}))})),Bd(ah(this,lh).values()).filter((function(t){return t.isBranchNode()})).forEach((function(t){var e=n.getNextNode(t.code);while(e)ah(n,dh).set(e.code,t.code),e=n.getNextNode(e.code)})),window.nodeHandler=this,this.businessAdapter=r,r.nodeHandler=this}return Kd(t,[{key:"setPreview",value:function(t){this.isPreview=t,this.refresh()}},{key:"setRuntime",value:function(t){this.runtimeData=t}},{key:"setRefresh",value:function(t){oh(this,mh,t)}},{key:"refresh",value:function(){if(!ah(this,mh))throw new Error("【flow-designer】NodeHandler刷新失败;未定义刷新方法");ah(this,mh).call(this)}},{key:"map",value:function(){return{node:ah(this,lh),preNode:ah(this,uh),parentNodeMap:ah(this,fh),branchNodeMap:ah(this,dh),nodeCodeVersionMap:ah(this,hh)}}},{key:"getStartNode",value:function(){return ah(this,ph)}},{key:"getEndNode",value:function(){return ah(this,vh)}},{key:"hasNextNode",value:function(t){var e=ah(this,lh).get(t),r=null===e||void 0===e?void 0:e.nextNodeCode;return!!r}},{key:"getNextNode",value:function(t){var e=ah(this,lh).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 ah(this,lh).has(t)}},{key:"getNode",value:function(t){return ah(this,lh).get(t)}},{key:"hasPreNode",value:function(t){return ah(this,uh).has(t)}},{key:"getPreNode",value:function(t){return this.getNode(this.nowNodeCode(ah(this,uh).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(ah(this,fh).get(r.code));return this.getNode(n)}},{key:"hasBranchNode",value:function(t){return ah(this,dh).has(t)}},{key:"getBranchNode",value:function(t){var e=this.nowNodeCode(ah(this,dh).get(t));return this.getNode(e)}},{key:"nowNodeCode",value:function(t){if(!t)return null;var e=t,r=ah(this,hh).get(e);while(r)e=r,r=ah(this,hh).get(e);return e}},{key:"verify",value:function(){return this.businessAdapter.verifyNodeData(Bd(ah(this,lh).values()))}},{key:"getAllRoute",value:function(t){var e=[];return nh(this,gh,Ph).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=Nd.getNodeType(i);if("single"===a.mode){var s=Nd.createNode(i);nh(this,xh,Rh).call(this,s),nh(this,wh,Ah).call(this,r,s),o&&nh(this,Nh,Bh).call(this,s,o.code),nh(this,Nh,Bh).call(this,r,s.code)}if("wrap"===a.mode){var c=Nd.createWrap(i),l=c[0];nh(this,_h,Th).call(this,l,c);var u=l.code;nh(this,wh,Ah).call(this,r,l),o&&nh(this,Nh,Bh).call(this,l,o.code),nh(this,Nh,Bh).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=Nd.getNodeType(o);if("wrap"!==i.mode)throw new Error("【flow-designer】NodeHandler包装节点出错: 包装节点类型的模式必须为包装;非预期:"+i.mode);var a=Nd.createWrap(o),s=a[0],c=a[1];nh(this,_h,Th).call(this,s,a),nh(this,wh,Ah).call(this,n,s);var l=s.code,u=this.getPreNode(t),f=null,d=t;while(1){var h=f=this.getNextNode(d);if(!h)break;if(ah(this,dh).set(d,c.code),h.type===Nd.END){nh(this,Nh,Bh).call(this,this.getNode(d),null);break}d=h.code}nh(this,Nh,Bh).call(this,u,l),nh(this,Nh,Bh).call(this,s,null===(r=f)||void 0===r?void 0:r.code),nh(this,Nh,Bh).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);ah(this,lh).set(e.code,e)}},{key:"deleteNode",value:function(t){nh(this,kh,Dh).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=Nd.getBranchType(r.type),o=Nd.createNode(n);return o.name=e+(r.childNodeCodes.length+1),o.code=t+o.name,nh(this,xh,Rh).call(this,o,null,t),this.refresh(),o}}]),t}();function Ph(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([Nd.CHECK,Nd.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([Nd.CHECK,Nd.END].includes(n.type)&&(e.push(n),l+=1),n.isWrapNode()&&nh(r,bh,Ch).call(r,n,e))return void(l+=1);n=r.getNextNode(n.code)}})),c.length===l)return}nh(this,gh,Ph).call(this,i.code,e)}}function Ch(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([Nd.CHECK,Nd.END].includes(o.type))return void e.push(o);if(o.isWrapNode()){if(nh(r,bh,Ch).call(r,o,e))return;n=!1}o=r.getNextNode(o.code)}})),n}function Ah(t,e){t.isBranchNode()&&ah(this,dh).set(e.code,t.code),ah(this,dh).has(t.code)&&ah(this,dh).set(e.code,ah(this,dh).get(t.code))}function Th(t,e){nh(this,xh,Rh).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,nh(this,xh,Rh).call(this,o),ah(this,fh).set(o.code,r),t.childNodeCodes.push(o.code)}}function Rh(t,e,r){nh(this,Oh,Ih).call(this,t);var n=t.code;ah(this,lh).set(n,t),t.nextNodeCode&&nh(this,Eh,qh).call(this,t),e&&ah(this,dh).set(n,e),r&&(this.getNode(r).childNodeCodes.push(n),ah(this,fh).set(n,r))}function Dh(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 nh(e,kh,Dh).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){nh(e,kh,Dh).call(e,t.code)})),ah(this,lh).delete(t),ah(this,fh).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);nh(this,Nh,Bh).call(this,s,null===c||void 0===c?void 0:c.code),a&&(this.handleNextNodeStream(i.code,(function(t){ah(e,dh).delete(t.code)})),nh(this,Nh,Bh).call(this,s,a.code),nh(this,Nh,Bh).call(this,i,null),nh(this,Nh,Bh).call(this,l,null===c||void 0===c?void 0:c.code),null!==s&&void 0!==s&&s.isBranchNode()&&ah(this,dh).set(a.code,s.code)),ah(this,uh).delete(n.code),nh(this,Nh,Bh).call(this,n,null),nh(this,kh,Dh).call(this,n.code)}}else{var u=this.getPreNode(t),f=this.hasNextNode(t)&&this.getNextNode(t);ah(this,uh).delete(t),u&&nh(this,Nh,Bh).call(this,u,null===f||void 0===f?void 0:f.code),ah(this,lh).delete(t),ah(this,dh).delete(t)}}function Ih(t){var e=t.code;while(ah(this,lh).has(t.code))th(Lh,Lh,Fh)[e]||(th(Lh,Lh,Fh)[e]=0),t.code=e+ ++th(Lh,Lh,Fh)[e]}function Mh(t,e){var r=this;if(e.type!==Nd.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)};nh(r,Sh,Mh).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&&nh(this,Sh,Mh).call(this,t,n)}}function qh(t){t.nextNodeCode&&ah(this,uh).set(t.nextNodeCode,t.code)}function Bh(t,e){t.nextNodeCode=e,nh(this,Eh,qh).call(this,t)}var Fh={writable:!0,value:{}},$h=Lh,Vh=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)},Hh=[],Uh=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))])])},Gh=[],zh={name:"EndNode",props:{node:Md,nodeHandler:Object},setup:function(){}},Kh=zh,Yh=(r("6b612"),Nr(Kh,Uh,Gh,!1,null,"778e5139",null)),Wh=Yh.exports,Zh=function(){var t,e,r,n,o,i,a,s,c,l,u,f,d=this,h=d._self._c;return h("div",[null!==(t=d.nodeHandler)&&void 0!==t&&null!==(e=t.runtimeData)&&void 0!==e&&null!==(r=e.actorLogs[d.node.code])&&void 0!==r&&r.length?h("a-popover",{attrs:{placement:"rightTop"},scopedSlots:d._u([{key:"content",fn:function(){return[h("div",{staticStyle:{"min-width":"300px","max-width":"1200px"}},[h("runtime-workflow-actors",{attrs:{actors:d.nodeHandler.runtimeData.actorLogs[d.node.code]}})],1)]},proxy:!0}],null,!1,193291077)},[h("div",{staticClass:"node",class:d.getClass(),on:{click:d.click}},[h("div",{staticClass:"title"},[h("span",[h("a-icon",{attrs:{fill:"",theme:"filled",type:"flag"}})],1),h("span",[d._v(" "+d._s(d.node.name))]),null!==(n=d.nodeRef)&&void 0!==n&&null!==(o=n.data)&&void 0!==o&&null!==(i=o.other_options)&&void 0!==i&&null!==(a=i.assert)&&void 0!==a&&a.length?h("span",[h("a-icon",{attrs:{type:"control"}})],1):d._e()]),h("div",{staticClass:"content"},[h("span",{staticClass:"content-main"},[h("span",{staticClass:"error-tooltip"},[h("a-tooltip",[h("template",{slot:"title"},[d._v(" "+d._s(d.node.error)+" ")]),h("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),d.nodeContent?h("span",{staticStyle:{"padding-left":"5px"}},[h("span",{domProps:{innerHTML:d._s(d.nodeContent)}})]):h("span",{staticStyle:{"padding-left":"5px",color:"#666"}},[d._v(d._s(d.defaultContent))])])])])]):h("div",{staticClass:"node",class:d.getClass(),on:{click:d.click}},[h("div",{staticClass:"title"},[h("span",[h("a-icon",{attrs:{fill:"",theme:"filled",type:"flag"}})],1),h("span",[d._v(" "+d._s(d.node.name))]),null!==(s=d.nodeRef)&&void 0!==s&&null!==(c=s.data)&&void 0!==c&&null!==(l=c.other_options)&&void 0!==l&&null!==(u=l.assert)&&void 0!==u&&u.length?h("span",[h("a-icon",{attrs:{type:"control"}})],1):d._e()]),h("div",{staticClass:"content"},[h("span",{staticClass:"content-main"},[h("span",{staticClass:"error-tooltip"},[h("a-tooltip",[h("template",{slot:"title"},[d._v(" "+d._s(d.node.error)+" ")]),h("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),d.nodeContent?h("span",{staticStyle:{"padding-left":"5px"}},[h("span",{domProps:{innerHTML:d._s(d.nodeContent)}})]):h("span",{staticStyle:{"padding-left":"5px",color:"#666"}},[d._v(d._s(d.defaultContent))])])])]),d.nodeHandler.isPreview?d._e():h("a-drawer",{attrs:{closable:!0,visible:d.visible,width:720,placement:"right"},on:{close:d.hideDrawer}},[d.editName?d._e():h("div",{staticClass:"node-drawer-title",on:{click:d.showEditName}},[h("a-icon",{attrs:{type:"edit"}}),d._v(" "+d._s(d.node.name)+" ")],1),h("a-form-model",{directives:[{name:"show",rawName:"v-show",value:d.editName,expression:"editName"}],ref:"nameForm",attrs:{model:d.nodeRef,rules:{name:[{required:!0,message:"请填写节点名称",trigger:"blur"},{min:2,max:20,message:"2-20个字",trigger:"blur"}]},layout:"inline"}},[h("a-form-model-item",{ref:"name",attrs:{prop:"name"}},[h("a-input",{ref:"nameInput",attrs:{placeholder:"节点名称"},on:{blur:function(){d.editName=!1}},model:{value:d.nodeRef.name,callback:function(t){d.$set(d.nodeRef,"name",t)},expression:"nodeRef.name"}})],1)],1),h("a-tabs",{attrs:{"default-active-key":"1"},on:{change:d.changeTags},model:{value:d.tabKey,callback:function(t){d.tabKey=t},expression:"tabKey"}},[h("a-tab-pane",{key:"actors",attrs:{tab:"设置发起人"}},[h("div",{staticStyle:{color:"#717171","margin-bottom":"10px"}},[d._v("选择能发起该审批的人员/部门,不选则默认开放给所有人")]),h("a-button",{staticClass:"node-form-item",attrs:{disabled:"",icon:"plus",shape:"round",type:"primary"}},[d._v("请选择")]),h("a-alert",{attrs:{banner:"",message:"不支持在这里设置发起人! 如为发起人设置权限,请使用EAD动作权限配置实现"}})],1),h("a-tab-pane",{key:"forms",attrs:{tab:"操作视图"}},[h("div",{staticClass:"node-form-item"},[h("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[h("a-col",{attrs:{span:24}},[h("a-radio-group",{staticClass:"node-form-item",on:{change:d.changeViewType},model:{value:d.optionViewType,callback:function(t){d.optionViewType=t},expression:"optionViewType"}},[h("a-radio",{attrs:{value:"use_model"}},[d._v(" 沿用工作流模型 ")]),h("a-radio",{attrs:{value:"custom"}},[d._v(" 自主选择 ")])],1)],1)],1),h("a-row",[h("a-col",{attrs:{span:24}},["custom"===d.optionViewType?h("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:d.optionViewChange,search:d.optionViewSearch},model:{value:d.nodeRef.data.option_view_id,callback:function(t){d.$set(d.nodeRef.data,"option_view_id",t)},expression:"nodeRef.data.option_view_id"}},d._l(d.optionViewList,(function(t){return h("a-select-option",{key:t.value,attrs:{value:t.value}},[d._v(" "+d._s(t.text)+" ")])})),1):d._e()],1)],1)],1),h("div",{key:d.nodeRef.data.option_view_id,staticClass:"node-from-item"},[h("a-divider",{attrs:{orientation:"left"}},[d._v("表单权限")]),"use_model"===d.optionViewType||d.nodeRef.data.option_view_id?h("a-spin",{attrs:{spinning:d.viewAttrLoading}},[h("a-row",[h("a-col",{attrs:{span:11}},[h("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索表单属性"},on:{search:function(t){return d.formsColumnFilter=t}}})],1),h("a-col",{attrs:{span:1}}),h("a-col",{attrs:{span:11}},[h("a-radio-group",{attrs:{"button-style":"solid"},model:{value:d.formsColumnAccess,callback:function(t){d.formsColumnAccess=t},expression:"formsColumnAccess"}},[h("a-radio-button",{attrs:{value:"all"}},[d._v(" 无 ")]),h("a-radio-button",{attrs:{value:"none"}},[d._v(" 隐藏 ")]),h("a-radio-button",{attrs:{value:"readonly"}},[d._v(" 只读 ")]),h("a-radio-button",{attrs:{value:"write"}},[d._v(" 可写 ")]),h("a-radio-button",{attrs:{value:"readonlywrite"}},[d._v(" 读写 ")])],1)],1)],1),h("a-table",{attrs:{columns:d.optionFormsColumns,"data-source":d.filterDataset(d.formsColumnFilter,d.nodeRef.data.option_forms,["attrName","attrCode"]),"row-key":function(t){return t.attrId}},scopedSlots:d._u([{key:"attrName",fn:function(t,e){return h("span",{},[d._v(d._s(e.attrName)+"("+d._s(e.attrCode)+")")])}},{key:"none",fn:function(t,e){return h("span",{},[h("a-radio",{attrs:{checked:"none"===e.access,value:"none"},on:{change:function(){return e.access="none"}}},[d._v("隐藏")])],1)}},{key:"readonly",fn:function(t,e){return h("span",{},[h("a-radio",{attrs:{checked:"readonly"===e.access,value:"readonly"},on:{change:function(){return e.access="readonly"}}},[d._v("只读")])],1)}},{key:"write",fn:function(t,e){return h("span",{},[h("a-radio",{attrs:{checked:"write"===e.access,value:"write"},on:{change:function(){return e.access="write"}}},[d._v("可编辑")])],1)}},{key:"required",fn:function(t,e){return h("span",{},["write"===e.access?h("a-switch",{model:{value:e.required,callback:function(t){d.$set(e,"required",t)},expression:"record.required"}}):d._e()],1)}}],null,!1,274236117)},[h("span",{attrs:{slot:"noneColumn"},slot:"noneColumn"},[h("a-radio",{attrs:{checked:"none"===d.optionFormsRadio,value:"none"},on:{change:function(t){return d.optionFormsRadioChange("none")}}},[d._v("隐藏")])],1),h("span",{attrs:{slot:"readonlyColumn"},slot:"readonlyColumn"},[h("a-radio",{attrs:{checked:"readonly"===d.optionFormsRadio,value:"readonly"},on:{change:function(t){return d.optionFormsRadioChange("readonly")}}},[d._v("只读")])],1),h("span",{attrs:{slot:"writeColumn"},slot:"writeColumn"},[h("a-radio",{attrs:{checked:"write"===d.optionFormsRadio,value:"write"},on:{change:function(t){return d.optionFormsRadioChange("write")}}},[d._v("可编辑")])],1)])],1):d._e()],1)]),h("a-tab-pane",{key:"others",attrs:{tab:"其他配置"}},[h("a-card",{staticStyle:{margin:"5px"},attrs:{size:"small",title:"消息配置"}},[h("a-input",{staticStyle:{"margin-bottom":"5px"},attrs:{placeholder:"待办跳转地址;以/结尾,例如:/${appKey}#/res_path/"},model:{value:d.nodeRef.data.other_options.resPath,callback:function(t){d.$set(d.nodeRef.data.other_options,"resPath",t)},expression:"nodeRef.data.other_options.resPath"}}),h("a-input",{attrs:{placeholder:"消息跳转地址"},model:{value:d.nodeRef.data.other_options.redirectUri,callback:function(t){d.$set(d.nodeRef.data.other_options,"redirectUri",t)},expression:"nodeRef.data.other_options.redirectUri"}}),d.noticeTemplateAttr?h("Item",{key:d.noticeTemplateAttr.name,staticClass:"j",attrs:{formModel:d.eadApi.getComponent().actionModel,params:null!==(f=d.noticeTemplateAttr.params)&&void 0!==f?f:{},prop:d.noticeTemplateAttr.name,required:!1,schema:d.noticeTemplateAttr},on:{change:function(t){return d.handleItemChange(t,d.noticeTemplateAttr)}},model:{value:d.nodeRef.data.notice_template,callback:function(t){d.$set(d.nodeRef.data,"notice_template",t)},expression:"nodeRef.data.notice_template"}}):d._e(),h("a-alert",{attrs:{message:"模板变量:",type:"success"}},[h("div",{attrs:{slot:"description"},slot:"description"},[h("div",[d._v("${workflow.variable.sponsor} - 发起人")]),h("div",[d._v("${workflow.variable.sponsor_name} - 发起人姓名")]),h("div",[d._v("${workflow.variable.sponsor_org} - 发起人组织机构")]),h("div",[d._v("${workflow.variable.sponsor_org_name} - 发起人组织机构名称")]),h("div",[d._v("${workflow.variable.sponsor_role} - 发起人角色")]),h("div",[d._v("${workflow.variable.sponsor_role_name} - 发起人角色名")])])])],1),h("div",{staticClass:"node-form-item"},[h("a-divider",{attrs:{orientation:"left"}},[d._v("自定义参数")]),h("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[h("a-col",{attrs:{span:24}},[h("a-textarea",{attrs:{"auto-size":"",placeholder:"自定义参数(JSONObject格式); {}"},model:{value:d.nodeRef.data.other_options.custom,callback:function(t){d.$set(d.nodeRef.data.other_options,"custom",t)},expression:"nodeRef.data.other_options.custom"}})],1)],1)],1)],1),d.nodeRef.data.other_options.assert?h("a-tab-pane",{key:"assert",attrs:{tab:"断言"}},[h("div",[d.nodeRef.data.other_options.assert?h("assert-designer",{attrs:{data:d.nodeRef.data.other_options.assert,"hide-action":!0}}):d._e()],1)]):d._e()],1)],1)],1)},Jh=[],Xh=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)}}])})},Qh=[],tp={name:"runtime-workflow-actors",props:{actors:Array}},ep=tp,rp=Nr(ep,Xh,Qh,!1,null,"2d32df45",null),np=rp.exports,op=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)},ip=[],ap={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:""})}}},sp=ap,cp=(r("7022"),Nr(sp,op,ip,!1,null,"3d6b7fb8",null)),lp=cp.exports;function up(t){return up="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},up(t)}function fp(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */fp=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==up(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function dp(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 hp(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){dp(i,n,o,a,s,"next",t)}function s(t){dp(i,n,o,a,s,"throw",t)}a(void 0)}))}}function pp(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=vp(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 vp(t,e){if(t){if("string"===typeof t)return mp(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)?mp(t,e):void 0}}function mp(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 yp={name:"StartNode",props:{node:Md,nodeHandler:Object},components:{AssertDesigner:lp,RuntimeWorkflowActors:np,Item:Oi},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,n,o,i,a;if((null===(t=this.nodeHandler)||void 0===t||null===(e=t.runtimeData)||void 0===e?void 0:e.currentNodeCode)===this.nodeRef.code)return'<span class="actor pending">'.concat(this.eadApi.getCurrentUserName(),"</span>");if(null!==(r=this.nodeHandler)&&void 0!==r&&null!==(n=r.runtimeData)&&void 0!==n&&n.caseNodes&&null!==(o=this.nodeHandler)&&void 0!==o&&null!==(i=o.runtimeData)&&void 0!==i&&null!==(a=i.caseNodes[this.node.code])&&void 0!==a&&a.status){var s,c,l="",u=null===(s=this.nodeHandler)||void 0===s||null===(c=s.runtimeData)||void 0===c?void 0:c.caseNodes[this.node.code].actors;return u.forEach((function(t){l&&(l+="、"),l+='<span class="actor '.concat(t.status,'">').concat(t.operator.name,"</span>")})),l}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=pp(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,o,i,a,s="";return this.node.error&&(s+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(e=t.runtimeData)||void 0===e?void 0:e.currentNodeCode)===this.node.code?s+=" ongoing":null!==(r=this.nodeHandler)&&void 0!==r&&null!==(n=r.runtimeData)&&void 0!==n&&n.caseNodes&&null!==(o=this.nodeHandler)&&void 0!==o&&null!==(i=o.runtimeData)&&void 0!==i&&null!==(a=i.caseNodes[this.node.code])&&void 0!==a&&a.status&&(s+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),s},loadCache:function(t){var e,r,n,o,i,a,s,c;this.optionViewType=null!==(e=null===(r=t.data)||void 0===r||null===(n=r.eadCache)||void 0===n||null===(o=n.workflow)||void 0===o?void 0:o.optionViewType)&&void 0!==e?e:this.optionViewType,this.optionViewList=null!==(i=null===(a=t.data)||void 0===a||null===(s=a.eadCache)||void 0===s||null===(c=s.workflow)||void 0===c?void 0:c.optionViewList)&&void 0!==i?i: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 hp(fp().mark((function r(){return fp().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 hp(fp().mark((function r(){var n,o;return fp().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=hp(fp().mark((function t(){var e,r,n;return fp().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}()},gp=yp,bp=(r("11f1"),Nr(gp,Zh,Jh,!1,null,"e7950f88",null)),wp=bp.exports,_p=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)},xp=[],kp={name:"ParallelNode",props:{option:{left:Boolean,right:Boolean,index:Number},node:Md,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,o,i,a,s="";return this.node.error&&(s+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(e=t.runtimeData)||void 0===e?void 0:e.currentNodeCode)===this.node.code?s+=" ongoing":null!==(r=this.nodeHandler)&&void 0!==r&&null!==(n=r.runtimeData)&&void 0!==n&&n.caseNodes&&null!==(o=this.nodeHandler)&&void 0!==o&&null!==(i=o.runtimeData)&&void 0!==i&&null!==(a=i.caseNodes[this.node.code])&&void 0!==a&&a.status&&(s+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),s},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(){}},Op=kp,Sp=(r("93f1"),Nr(Op,_p,xp,!1,null,"9a75cb32",null)),Ep=Sp.exports,jp=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)])])},Np=[],Lp={name:"ParallelWrapNode",computed:{NodeWrap:function(){return Dm}},props:{node:Md,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,"分支")}}},Pp=Lp,Cp=Nr(Pp,jp,Np,!1,null,"4a228ede",null),Ap=Cp.exports;function Tp(t){return Mp(t)||Ip(t)||Dp(t)||Rp()}function Rp(){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 Dp(t,e){if(t){if("string"===typeof t)return qp(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)?qp(t,e):void 0}}function Ip(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Mp(t){if(Array.isArray(t))return qp(t)}function qp(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 Bp=function(){var t,e,r,n,o,i,a,s,c,l,u,f,d,h,p,v=this,m=v._self._c;return m("div",[null!==(t=v.nodeHandler)&&void 0!==t&&null!==(e=t.runtimeData)&&void 0!==e&&null!==(r=e.actorLogs[v.node.code])&&void 0!==r&&r.length?m("a-popover",{attrs:{placement:"rightTop"},scopedSlots:v._u([{key:"content",fn:function(){return[m("div",{staticStyle:{"min-width":"300px","max-width":"1200px"}},[m("runtime-workflow-actors",{attrs:{actors:v.nodeHandler.runtimeData.actorLogs[v.node.code]}})],1)]},proxy:!0}],null,!1,193291077)},[m("div",{staticClass:"node",class:[v.node.error?"error":"",null!==(n=v.nodeHandler)&&void 0!==n&&null!==(o=n.runtimeData)&&void 0!==o&&null!==(i=o.caseNodes[v.node.code])&&void 0!==i&&i.status?v.nodeHandler.runtimeData.caseNodes[v.node.code].status:""],on:{click:v.click}},[m("div",{staticClass:"title"},[m("span",[m("a-icon",{attrs:{component:v.icon}})],1),m("span",[v._v(" "+v._s(v.node.name))]),null!==(a=v.nodeRef)&&void 0!==a&&null!==(s=a.data)&&void 0!==s&&null!==(c=s.other_options)&&void 0!==c&&null!==(l=c.assert)&&void 0!==l&&l.length?m("span",[m("a-icon",{attrs:{type:"control"}})],1):v._e(),v.nodeHandler.isPreview?v._e():m("span",{staticClass:"title-right"},[m("a-icon",{staticClass:"close",attrs:{type:"close"},on:{click:function(t){return t.stopPropagation(),v.close.apply(null,arguments)}}})],1)]),m("div",{staticClass:"content"},[m("span",{staticClass:"content-main"},[m("span",{staticClass:"error-tooltip"},[m("a-tooltip",[m("template",{slot:"title"},[v._v(" "+v._s(v.node.error)+" ")]),m("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),v.nodeContent?m("span",{staticStyle:{"padding-left":"5px"}},[m("span",{domProps:{innerHTML:v._s(v.nodeContent)}})]):m("span",{staticStyle:{"padding-left":"5px",color:"rgb(164 164 164)"}},[v._v(v._s(v.defaultContent))])]),m("span",{staticClass:"content-right"},[v.nodeHandler.isPreview?v._e():m("a-popover",{attrs:{placement:"rightTop",trigger:"click"},scopedSlots:v._u([{key:"title",fn:function(){return[m("span",{staticStyle:{"font-size":"18px"}},[v._v("追加分支")])]},proxy:!0},{key:"content",fn:function(){return[m("div",{staticClass:"add-node-box"},v._l(v.nodes,(function(t,e){var r,n;return m("div",{key:e,staticClass:"add-node-item",on:{click:function(e){return v.wrapNode(t.type)}}},[m("div",{staticClass:"icon",style:"color:"+t.color+";"},[null!==(r=t.icon)&&void 0!==r&&r.component?m("a-icon",{attrs:{component:t.icon.component}}):v._e(),null!==(n=t.icon)&&void 0!==n&&n.type?m("a-icon",{attrs:{type:t.icon.type}}):v._e()],1),m("span",[v._v(v._s(t.name))])])})),0)]},proxy:!0}],null,!1,2863198520),model:{value:v.visiblePopover,callback:function(t){v.visiblePopover=t},expression:"visiblePopover"}},[m("a-icon",{attrs:{type:"plus"},on:{click:function(t){return t.stopPropagation(),function(){}.apply(null,arguments)}}})],1)],1)])])]):m("div",{staticClass:"node",class:v.getClass(),on:{click:v.click}},[m("div",{staticClass:"title"},[m("span",[m("a-icon",{attrs:{component:v.icon}})],1),m("span",[v._v(" "+v._s(v.node.name))]),null!==(u=v.nodeRef)&&void 0!==u&&null!==(f=u.data)&&void 0!==f&&null!==(d=f.other_options)&&void 0!==d&&null!==(h=d.assert)&&void 0!==h&&h.length?m("span",[m("a-icon",{attrs:{type:"control"}})],1):v._e(),v.nodeHandler.isPreview?v._e():m("span",{staticClass:"title-right"},[m("a-icon",{staticClass:"close",attrs:{type:"close"},on:{click:function(t){return t.stopPropagation(),v.close.apply(null,arguments)}}})],1)]),m("div",{staticClass:"content"},[m("span",{staticClass:"content-main"},[m("span",{staticClass:"error-tooltip"},[m("a-tooltip",[m("template",{slot:"title"},[v._v(" "+v._s(v.node.error)+" ")]),m("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),v.nodeContent?m("span",{staticStyle:{"padding-left":"5px"}},[m("span",{domProps:{innerHTML:v._s(v.nodeContent)}})]):m("span",{staticStyle:{"padding-left":"5px",color:"rgb(164 164 164)"}},[v._v(v._s(v.defaultContent))])]),m("span",{staticClass:"content-right"},[v.nodeHandler.isPreview?v._e():m("a-popover",{attrs:{placement:"rightTop",trigger:"click"},scopedSlots:v._u([{key:"title",fn:function(){return[m("span",{staticStyle:{"font-size":"18px"}},[v._v("追加分支")])]},proxy:!0},{key:"content",fn:function(){return[m("div",{staticClass:"add-node-box"},v._l(v.nodes,(function(t,e){var r,n;return m("div",{key:e,staticClass:"add-node-item",on:{click:function(e){return v.wrapNode(t.type)}}},[m("div",{staticClass:"icon",style:"color:"+t.color+";"},[null!==(r=t.icon)&&void 0!==r&&r.component?m("a-icon",{attrs:{component:t.icon.component}}):v._e(),null!==(n=t.icon)&&void 0!==n&&n.type?m("a-icon",{attrs:{type:t.icon.type}}):v._e()],1),m("span",[v._v(v._s(t.name))])])})),0)]},proxy:!0}],null,!1,2863198520),model:{value:v.visiblePopover,callback:function(t){v.visiblePopover=t},expression:"visiblePopover"}},[m("a-icon",{attrs:{type:"plus"},on:{click:function(t){return t.stopPropagation(),function(){}.apply(null,arguments)}}})],1)],1)])]),v.nodeHandler.isPreview?v._e():m("a-drawer",{attrs:{closable:!0,visible:v.visibleDrawer,width:720,placement:"right"},on:{close:v.hideDrawer}},[v.editName?v._e():m("div",{staticClass:"node-drawer-title",on:{click:v.showEditName}},[m("a-icon",{attrs:{type:"edit"}}),v._v(" "+v._s(v.node.name)+" ")],1),m("a-form-model",{directives:[{name:"show",rawName:"v-show",value:v.editName,expression:"editName"}],ref:"nameForm",attrs:{model:v.nodeRef,rules:{name:[{required:!0,message:"请填写节点名称",trigger:"blur"},{min:2,max:20,message:"2-20个字",trigger:"blur"}]},layout:"inline"}},[m("a-form-model-item",{ref:"name",attrs:{prop:"name"}},[m("a-input",{ref:"nameInput",attrs:{placeholder:"节点名称"},on:{blur:function(){v.editName=!1}},model:{value:v.nodeRef.name,callback:function(t){v.$set(v.nodeRef,"name",t)},expression:"nodeRef.name"}})],1)],1),m("a-tabs",{attrs:{"default-active-key":"1"},on:{change:v.changeTags},model:{value:v.tabKey,callback:function(t){v.tabKey=t},expression:"tabKey"}},[m("a-tab-pane",{key:"actors",attrs:{tab:"设置人"}},[m("div",{staticClass:"node-form-item"},[v._v(" 配置执行人策略 "),m("a-radio-group",{attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.actor_config.type,callback:function(t){v.$set(v.nodeRef.data.actor_config,"type",t)},expression:"nodeRef.data.actor_config.type"}},[m("a-radio-button",{attrs:{value:"expression"}},[v._v(" 表达式 ")]),m("a-radio-button",{attrs:{value:"sponsor"}},[v._v(" 发起人自己 ")])],1)],1),"expression"===v.nodeRef.data.actor_config.type?m("div",{staticStyle:{width:"100%"}},[v._l(v.nodeRef.data.actor_config.expression,(function(t,e){return m("div",{key:e},[m("a-row",{staticClass:"node-form-item",staticStyle:{display:"flex","align-items":"center"}},[m("a-col",{attrs:{span:"4"}},[m("a-radio-group",{attrs:{"button-style":"solid",size:"small"},model:{value:t.type,callback:function(e){v.$set(t,"type",e)},expression:"item.type"}},[m("a-radio-button",{attrs:{value:"uid"}},[m("a-icon",{attrs:{type:"user"}})],1),m("a-radio-button",{attrs:{value:"org"}},[m("a-icon",{attrs:{type:"team"}})],1)],1),v.nodeRef.data.actor_config.expression.length>1?m("a-button",{attrs:{icon:"delete",type:"link"},on:{click:function(){return v.nodeRef.data.actor_config.expression.splice(e,1)}}}):v._e()],1),"uid"===t.type?m("a-col",{attrs:{span:"18"}},[m("div",[m("a-select",{staticStyle:{width:"100%"},attrs:{filterOption:v.filterUser,options:[].concat(Tp(v.businessUserData),Tp(v.users)),mode:"multiple",placeholder:"选择人"},model:{value:t.user,callback:function(e){v.$set(t,"user",e)},expression:"item.user"}})],1)]):v._e(),"org"===t.type?m("a-col",{attrs:{span:"18"}},[m("div",[m("a-row",[m("a-col",{attrs:{span:8}},[m("a-tree-select",{staticStyle:{width:"100%"},attrs:{"dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-data":[v.businessOrgData].concat(Tp(v.orgData)),allowClear:"",placeholder:"部门","tree-default-expand-all":""},model:{value:t.orgId,callback:function(e){v.$set(t,"orgId",e)},expression:"item.orgId"}})],1),m("a-col",{attrs:{span:8}},[m("a-select",{staticStyle:{width:"100%"},attrs:{options:v.roles,allowClear:"",placeholder:"角色"},model:{value:t.roleId,callback:function(e){v.$set(t,"roleId",e)},expression:"item.roleId"}})],1)],1)],1)]):v._e(),v.nodeRef.data.actor_config.expression.length===e+1&&v.hasExpression(t)?m("a-col",{attrs:{span:"2"}},[m("a-button",{attrs:{icon:"plus",shape:"circle",type:"primary"},on:{click:function(){v.nodeRef.data.actor_config.expression.push({type:"uid",user:[],orgId:void 0,roleId:void 0,groupId:void 0})}}})],1):v._e()],1)],1)})),m("div",{staticClass:"node-form-item"},[m("a-row",[m("a-col",{attrs:{span:4}},[v._v("自选")]),m("a-col",{attrs:{span:20}},[m("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.actor_config.optional.enable,callback:function(t){v.$set(v.nodeRef.data.actor_config.optional,"enable",t)},expression:"nodeRef.data.actor_config.optional.enable"}},[m("a-radio-button",{attrs:{value:!1}},[v._v(" 禁用 ")]),m("a-radio-button",{attrs:{value:!0}},[v._v(" 启用 ")])],1),v.nodeRef.data.actor_config.optional.enable?m("a-radio-group",{attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.actor_config.optional.multi,callback:function(t){v.$set(v.nodeRef.data.actor_config.optional,"multi",t)},expression:"nodeRef.data.actor_config.optional.multi"}},[m("a-radio-button",{attrs:{value:!1}},[v._v(" 可选单人 ")]),m("a-radio-button",{attrs:{value:!0}},[v._v(" 可选多人 ")])],1):v._e()],1)],1)],1),!v.nodeRef.data.actor_config.optional.enable&&!v.isSingle||v.nodeRef.data.actor_config.optional.enable&&v.nodeRef.data.actor_config.optional.multi?m("div",{staticClass:"node-form-item"},[m("a-row",[m("a-col",{attrs:{span:4}},[v._v("多人审批模式")]),m("a-col",{attrs:{span:20}},[m("a-radio-group",{attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.actor_config.check_mode,callback:function(t){v.$set(v.nodeRef.data.actor_config,"check_mode",t)},expression:"nodeRef.data.actor_config.check_mode"}},[m("a-radio-button",{attrs:{value:"queue"}},[v._v("依次审批")]),m("a-radio-button",{attrs:{value:"orsign"}},[v._v("或签")]),m("a-radio-button",{attrs:{value:"sign"}},[v._v("会签")])],1)],1)],1)],1):v._e()],2):v._e(),m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:4}},[v._v("审批人为空时")]),m("a-col",{attrs:{span:20}},[m("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.other_options.approverIsNull,callback:function(t){v.$set(v.nodeRef.data.other_options,"approverIsNull",t)},expression:"nodeRef.data.other_options.approverIsNull"}},[m("a-radio-button",{attrs:{disabled:"",value:"next"}},[v._v(" 跳过 ")]),m("a-radio-button",{attrs:{value:"error"}},[v._v(" 提示错误 ")])],1)],1)],1)],1),m("a-tab-pane",{key:"forms",attrs:{tab:"操作视图"}},[m("div",{staticClass:"node-form-item"},[m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:24}},[m("a-radio-group",{staticClass:"node-form-item",on:{change:v.changeViewType},model:{value:v.optionViewType,callback:function(t){v.optionViewType=t},expression:"optionViewType"}},[m("a-radio",{attrs:{value:"use_model"}},[v._v(" 沿用工作流模型 ")]),m("a-radio",{attrs:{value:"custom"}},[v._v(" 自主选择 ")])],1)],1)],1),m("a-row",[m("a-col",{attrs:{span:24}},["custom"===v.optionViewType?m("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:v.optionViewChange,search:v.optionViewSearch},model:{value:v.nodeRef.data.option_view_id,callback:function(t){v.$set(v.nodeRef.data,"option_view_id",t)},expression:"nodeRef.data.option_view_id"}},v._l(v.optionViewList,(function(t){return m("a-select-option",{key:t.value,attrs:{value:t.value}},[v._v(" "+v._s(t.text)+" ")])})),1):v._e()],1)],1)],1),m("div",{key:v.nodeRef.data.option_view_id,staticClass:"node-from-item"},[m("a-divider",{attrs:{orientation:"left"}},[v._v("表单权限")]),"use_model"===v.optionViewType||v.nodeRef.data.option_view_id?m("a-spin",{attrs:{spinning:v.viewAttrLoading}},[m("a-row",[m("a-col",{attrs:{span:11}},[m("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索表单属性"},on:{search:function(t){return v.formsColumnFilter=t}}})],1),m("a-col",{attrs:{span:1}}),m("a-col",{attrs:{span:11}},[m("a-radio-group",{attrs:{"button-style":"solid"},model:{value:v.formsColumnAccess,callback:function(t){v.formsColumnAccess=t},expression:"formsColumnAccess"}},[m("a-radio-button",{attrs:{value:"all"}},[v._v(" 无 ")]),m("a-radio-button",{attrs:{value:"none"}},[v._v(" 隐藏 ")]),m("a-radio-button",{attrs:{value:"readonly"}},[v._v(" 只读 ")]),m("a-radio-button",{attrs:{value:"write"}},[v._v(" 可写 ")]),m("a-radio-button",{attrs:{value:"readonlywrite"}},[v._v(" 读写 ")])],1)],1)],1),m("a-table",{attrs:{columns:v.optionFormsColumns,"data-source":v.filterDataset(v.formsColumnFilter,v.nodeRef.data.option_forms,["attrName","attrCode"]),"row-key":function(t){return t.attrId}},scopedSlots:v._u([{key:"attrName",fn:function(t,e){return m("span",{},[v._v(v._s(e.attrName)+"("+v._s(e.attrCode)+")")])}},{key:"none",fn:function(t,e){return m("span",{},[m("a-radio",{attrs:{checked:"none"===e.access,value:"none"},on:{change:function(){return e.access="none"}}},[v._v("隐藏")])],1)}},{key:"readonly",fn:function(t,e){return m("span",{},[m("a-radio",{attrs:{checked:"readonly"===e.access,value:"readonly"},on:{change:function(){return e.access="readonly"}}},[v._v("只读")])],1)}},{key:"write",fn:function(t,e){return m("span",{},[m("a-radio",{attrs:{checked:"write"===e.access,value:"write"},on:{change:function(){return e.access="write"}}},[v._v("可编辑")])],1)}},{key:"required",fn:function(t,e){return m("span",{},["write"===e.access?m("a-switch",{model:{value:e.required,callback:function(t){v.$set(e,"required",t)},expression:"record.required"}}):v._e()],1)}}],null,!1,274236117)},[m("span",{attrs:{slot:"noneColumn"},slot:"noneColumn"},[m("a-radio",{attrs:{checked:"none"===v.optionFormsRadio,value:"none"},on:{change:function(t){return v.optionFormsRadioChange("none")}}},[v._v("隐藏")])],1),m("span",{attrs:{slot:"readonlyColumn"},slot:"readonlyColumn"},[m("a-radio",{attrs:{checked:"readonly"===v.optionFormsRadio,value:"readonly"},on:{change:function(t){return v.optionFormsRadioChange("readonly")}}},[v._v("只读")])],1),m("span",{attrs:{slot:"writeColumn"},slot:"writeColumn"},[m("a-radio",{attrs:{checked:"write"===v.optionFormsRadio,value:"write"},on:{change:function(t){return v.optionFormsRadioChange("write")}}},[v._v("可编辑")])],1)])],1):v._e()],1)]),m("a-tab-pane",{key:"others",attrs:{tab:"其他配置"}},[m("a-card",{staticStyle:{margin:"5px"},attrs:{size:"small",title:"消息配置"}},[m("a-input",{staticStyle:{"margin-bottom":"5px"},attrs:{placeholder:"待办跳转地址;以/结尾,例如:/${appKey}#/res_path/"},model:{value:v.nodeRef.data.other_options.resPath,callback:function(t){v.$set(v.nodeRef.data.other_options,"resPath",t)},expression:"nodeRef.data.other_options.resPath"}}),m("a-input",{attrs:{placeholder:"消息跳转地址"},model:{value:v.nodeRef.data.other_options.redirectUri,callback:function(t){v.$set(v.nodeRef.data.other_options,"redirectUri",t)},expression:"nodeRef.data.other_options.redirectUri"}}),v.noticeTemplateAttr?m("Item",{key:v.noticeTemplateAttr.name,staticClass:"node-form-item",attrs:{formModel:v.eadApi.getComponent().actionModel,params:null!==(p=v.noticeTemplateAttr.params)&&void 0!==p?p:{},prop:v.noticeTemplateAttr.name,required:!1,schema:v.noticeTemplateAttr},on:{change:function(t){return v.handleItemChange(t,v.noticeTemplateAttr)}},model:{value:v.nodeRef.data.notice_template,callback:function(t){v.$set(v.nodeRef.data,"notice_template",t)},expression:"nodeRef.data.notice_template"}}):v._e(),m("a-alert",{attrs:{message:"模板变量:",type:"success"}},[m("div",{attrs:{slot:"description"},slot:"description"},[m("div",[v._v("${workflow.variable.sponsor} - 发起人")]),m("div",[v._v("${workflow.variable.sponsor_name} - 发起人姓名")]),m("div",[v._v("${workflow.variable.sponsor_org} - 发起人组织机构")]),m("div",[v._v("${workflow.variable.sponsor_org_name} - 发起人组织机构名称")]),m("div",[v._v("${workflow.variable.sponsor_role} - 发起人角色")]),m("div",[v._v("${workflow.variable.sponsor_role_name} - 发起人角色名")]),m("div",[v._v("${workflow_req.page_operate.action} - 审批动作")]),m("div",[v._v("${workflow_req.page_operate.approver} - 审批人")]),m("div",[v._v("${workflow_req.page_operate.approver_name} - 审批人名称")])])])],1),m("div",{staticClass:"node-form-item"},[m("a-divider",{attrs:{orientation:"left"}},[v._v("退回配置")]),m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:4}},[v._v("退回配置")]),m("a-col",{attrs:{span:20}},[m("a-radio-group",{staticClass:"node-from-item",staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.page_options.allowBack,callback:function(t){v.$set(v.nodeRef.data.page_options,"allowBack",t)},expression:"nodeRef.data.page_options.allowBack"}},[m("a-radio-button",{attrs:{value:!1}},[v._v(" 禁止 ")]),m("a-radio-button",{attrs:{value:!0}},[v._v(" 允许 ")])],1)],1)],1),m("a-row",[m("a-col",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"},attrs:{span:24}},[v.nodeRef.data.page_options.allowBack?m("a-radio-group",{attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.back_type,callback:function(t){v.$set(v.nodeRef.data,"back_type",t)},expression:"nodeRef.data.back_type"}},[m("a-radio-button",{attrs:{value:"start"}},[v._v(" 退回发起人 ")]),m("a-radio-button",{attrs:{value:"before"}},[v._v(" 退回上一步 ")]),v.availableBackStep.length?m("a-radio-button",{attrs:{value:"assign"}},[v._v(" 指定退回节点 ")]):v._e(),v.availableBackStep.length?m("a-radio-button",{attrs:{value:"custom"}},[v._v(" 自主选择退回节点 ")]):v._e(),m("a-radio-button",{attrs:{value:"bpmn"}},[v._v(" 后续节点控制 ")])],1):v._e()],1)],1),v.nodeRef.data.page_options.allowBack&&"custom"===v.nodeRef.data.back_type?m("a-row",{staticStyle:{display:"flex","align-items":"center"}},[m("a-col",{attrs:{span:5}},[v._v("自主选择退回节点")]),m("a-col",{attrs:{span:19}},[m("a-select",{staticStyle:{width:"100%"},attrs:{options:v.availableBackStep,mode:"multiple",placeholder:"可选退回节点"},model:{value:v.nodeRef.data.custom_back_nodes,callback:function(t){v.$set(v.nodeRef.data,"custom_back_nodes",t)},expression:"nodeRef.data.custom_back_nodes"}})],1)],1):v._e(),v.nodeRef.data.page_options.allowBack&&"assign"===v.nodeRef.data.back_type?m("a-row",{staticStyle:{display:"flex","align-items":"center"}},[m("a-col",{attrs:{span:4}},[v._v("指定退回节点")]),m("a-col",{attrs:{span:20}},[m("a-select",{staticStyle:{width:"100%"},attrs:{options:v.availableBackStep,placeholder:"指定退回节点"},model:{value:v.nodeRef.data.back_node_id,callback:function(t){v.$set(v.nodeRef.data,"back_node_id",t)},expression:"nodeRef.data.back_node_id"}})],1)],1):v._e(),v.nodeRef.data.page_options.allowBack&&"bpmn"===v.nodeRef.data.back_type?m("a-row",[m("a-alert",{attrs:{message:"退回表达式: workflow_req.page_operate.action === 'back'",type:"success"}})],1):v._e()],1),v.nodeRef.data.timeout_remind.enable?m("div",[m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:4}},[v._v("超时时间")]),m("a-col",{attrs:{span:8}},[m("a-input-group",{attrs:{compact:""}},[m("a-input-number",{staticStyle:{width:"70%"},attrs:{max:100,min:1},on:{change:function(t){t||(v.nodeRef.data.timeout_remind.outTime.time=1)}},model:{value:v.nodeRef.data.timeout_remind.outTime.time,callback:function(t){v.$set(v.nodeRef.data.timeout_remind.outTime,"time",t)},expression:"nodeRef.data.timeout_remind.outTime.time"}}),m("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:v.nodeRef.data.timeout_remind.outTime.unit,callback:function(t){v.$set(v.nodeRef.data.timeout_remind.outTime,"unit",t)},expression:"nodeRef.data.timeout_remind.outTime.unit"}})],1)],1)],1),m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:4}},[v._v("提醒周期")]),m("a-col",{attrs:{span:20}},[m("a-radio-group",{attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.timeout_remind.outCycle,callback:function(t){v.$set(v.nodeRef.data.timeout_remind,"outCycle",t)},expression:"nodeRef.data.timeout_remind.outCycle"}},[m("a-radio-button",{attrs:{value:"once"}},[v._v(" 一次 ")]),m("a-radio-button",{attrs:{value:"day"}},[v._v(" 每天 ")]),m("a-radio-button",{attrs:{value:"week"}},[v._v(" 每周 ")]),m("a-radio-button",{attrs:{value:"month"}},[v._v(" 每月 ")]),m("a-radio-button",{attrs:{value:"year"}},[v._v(" 每年 ")])],1)],1)],1),m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:4}},[v._v("超时驱动")]),m("a-col",{attrs:{span:20}},[m("a-select",{staticStyle:{width:"100%"},attrs:{"default-active-first-option":!1,"filter-option":!1,"not-found-content":null,options:v.driverList,"show-arrow":!1,allowClear:"",placeholder:"输入驱动","show-search":""},on:{change:v.handleDriverChange,search:v.handleDriverSearch},model:{value:v.nodeRef.data.timeout_remind.outDriver,callback:function(t){v.$set(v.nodeRef.data.timeout_remind,"outDriver",t)},expression:"nodeRef.data.timeout_remind.outDriver"}})],1)],1)],1):v._e(),m("div",{staticClass:"node-form-item"},[m("a-divider",{attrs:{orientation:"left"}},[v._v("转办配置")]),m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:4}},[v._v("允许转办")]),m("a-col",{attrs:{span:20}},[m("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.page_options.allowReassign,callback:function(t){v.$set(v.nodeRef.data.page_options,"allowReassign",t)},expression:"nodeRef.data.page_options.allowReassign"}},[m("a-radio-button",{attrs:{value:!1}},[v._v(" 禁止 ")]),m("a-radio-button",{attrs:{value:!0}},[v._v(" 允许 ")])],1)],1)],1)],1),m("div",{staticClass:"node-form-item"},[m("a-divider",{attrs:{orientation:"left"}},[v._v("加签配置")]),m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:4}},[v._v("允许加签")]),m("a-col",{attrs:{span:20}},[m("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.page_options.allowInvolve,callback:function(t){v.$set(v.nodeRef.data.page_options,"allowInvolve",t)},expression:"nodeRef.data.page_options.allowInvolve"}},[m("a-radio-button",{attrs:{value:!1}},[v._v(" 禁止 ")]),m("a-radio-button",{attrs:{value:!0}},[v._v(" 允许 ")])],1)],1)],1)],1),m("div",{staticClass:"node-form-item"},[m("a-divider",{attrs:{orientation:"left"}},[v._v("流程结束")]),m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:4}},[v._v("允许结束")]),m("a-col",{attrs:{span:20}},[m("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.page_options.allowEnd,callback:function(t){v.$set(v.nodeRef.data.page_options,"allowEnd",t)},expression:"nodeRef.data.page_options.allowEnd"}},[m("a-radio-button",{attrs:{value:!1}},[v._v(" 禁止 ")]),m("a-radio-button",{attrs:{value:!0,disabled:""}},[v._v(" 允许 ")])],1)],1)],1)],1),m("div",[m("a-divider",{attrs:{orientation:"left"}},[v._v("超时提醒")])],1),m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:4}},[v._v("超时提醒设置")]),m("a-col",{attrs:{span:20}},[m("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.timeout_remind.enable,callback:function(t){v.$set(v.nodeRef.data.timeout_remind,"enable",t)},expression:"nodeRef.data.timeout_remind.enable"}},[m("a-radio-button",{attrs:{value:!1}},[v._v(" 禁用 ")]),m("a-radio-button",{attrs:{value:!0,disabled:""}},[v._v(" 启用 ")])],1)],1)],1),m("div",{staticClass:"node-form-item"},[m("a-divider",{attrs:{orientation:"left"}},[v._v("其他配置")]),m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:4}},[v._v("是否回执")]),m("a-col",{attrs:{span:20}},[m("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:v.nodeRef.data.other_options.allowReceipt,callback:function(t){v.$set(v.nodeRef.data.other_options,"allowReceipt",t)},expression:"nodeRef.data.other_options.allowReceipt"}},[m("a-radio-button",{attrs:{value:!1}},[v._v(" 禁止 ")]),m("a-radio-button",{attrs:{value:!0,disabled:""}},[v._v(" 允许 ")])],1)],1)],1)],1),m("div",{staticClass:"node-form-item"},[m("a-divider",{attrs:{orientation:"left"}},[v._v("自定义参数")]),m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{attrs:{span:24}},[m("a-textarea",{attrs:{"auto-size":"",placeholder:"自定义参数(JSONObject); {}"},model:{value:v.nodeRef.data.other_options.custom,callback:function(t){v.$set(v.nodeRef.data.other_options,"custom",t)},expression:"nodeRef.data.other_options.custom"}})],1)],1)],1),m("div",{staticClass:"node-form-item"},[m("a-divider",{attrs:{orientation:"left"}},[v._v("自定义动作名称")]),m("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[m("a-col",{staticStyle:{display:"flex","align-items":"center"},attrs:{span:3}},[v._v("审批通过:")]),m("a-col",{staticStyle:{display:"flex","align-items":"center"},attrs:{span:6}},[m("a-input",{attrs:{placeholder:"审批通过"},model:{value:v.nodeRef.data.other_options.custom_action.pass,callback:function(t){v.$set(v.nodeRef.data.other_options.custom_action,"pass",t)},expression:"nodeRef.data.other_options.custom_action.pass"}})],1),m("a-col",{attrs:{span:5}}),m("a-col",{staticStyle:{display:"flex","align-items":"center"},attrs:{span:3}},[v._v("审批退回:")]),m("a-col",{staticStyle:{display:"flex","align-items":"center"},attrs:{span:6}},[m("a-input",{attrs:{placeholder:"审批退回"},model:{value:v.nodeRef.data.other_options.custom_action.back,callback:function(t){v.$set(v.nodeRef.data.other_options.custom_action,"back",t)},expression:"nodeRef.data.other_options.custom_action.back"}})],1)],1)],1)],1),v.nodeRef.data.other_options.assert?m("a-tab-pane",{key:"assert",attrs:{tab:"断言"}},[m("div",[v.nodeRef.data.other_options.assert?m("assert-designer",{attrs:{data:v.nodeRef.data.other_options.assert,"hide-action":!1}}):v._e()],1)]):v._e()],1)],1)],1)},Fp=[];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 Vp(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Vp=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==$p(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Hp(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 Up(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Hp(i,n,o,a,s,"next",t)}function s(t){Hp(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Gp(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=zp(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 zp(t,e){if(t){if("string"===typeof t)return Kp(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)?Kp(t,e):void 0}}function Kp(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 Yp(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 Wp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yp(Object(r),!0).forEach((function(e){Zp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zp(t,e,r){return e=Jp(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jp(t){var e=Xp(t,"string");return"symbol"===$p(e)?e:String(e)}function Xp(t,e){if("object"!==$p(t)||null===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)}var Qp={name:"CheckNode",props:{node:Md,nodeHandler:Object},components:{AssertDesigner:lp,RuntimeWorkflowActors:np,Item:Oi},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},d={visiblePopover:l,showPopover:f,hidePopover:u},h=[{name:"条件分支",type:Nd.JUDGE_WRAP,icon:{type:"apartment"},color:"rgb(21, 188, 131)"},{name:"并行分支",type:Nd.PARALLEL_WRAP,icon:{type:"sliders"},color:"rgb(113, 141, 255)"}],p=function(t){r.wrapNode(e.code,{type:t})},v={nodes:h,wrapNode:p},m=r.isPreview?null:r.businessAdapter.eadApi.getCurrentViewSchema().model.attrs.find((function(t){return"notice_template"===t.name}));return Wp(Wp(Wp(Wp({icon:n},c),d),v),{},{nodeRef:e,eadApi:i,noticeTemplateAttr:m})},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,i,a,s,c="";if(null!==(e=this.nodeHandler)&&void 0!==e&&null!==(r=e.runtimeData)&&void 0!==r&&r.caseNodes&&null!==(n=this.nodeHandler)&&void 0!==n&&null!==(o=n.runtimeData)&&void 0!==o&&null!==(i=o.caseNodes[this.node.code])&&void 0!==i&&i.status){var l,u,f=null===(l=this.nodeHandler)||void 0===l||null===(u=l.runtimeData)||void 0===u?void 0:u.caseNodes[this.node.code].actors;f.forEach((function(t){c&&(c+="、"),c+='<span class="actor '.concat(t.status,'">').concat(t.operator.name,"</span>")})),c||(c+=" ")}return(null===(a=this.nodeHandler)||void 0===a||null===(s=a.runtimeData)||void 0===s?void 0:s.currentNodeCode)===this.nodeRef.code&&(c&&" "!==c&&(c+="、"),c+='<span class="actor pending">'.concat(this.eadApi.getCurrentUserName(),"</span>")),c||this.nodeRef.content}var d=this.node.data.actor_config,h="";if(!this.orgMap||!this.roles||!this.users)return h;if("expression"===d.type){var p=d.expression;if(p.length){if("org"===p[0].type){if(p[0].orgId)if(this.orgMap.has(p[0].orgId))h=h+=h?"、"+this.orgMap.get(p[0].orgId).org_name:this.orgMap.get(p[0].orgId).org_name;else{var v,m=null===(v=this.businessOrgData.children.find((function(t){return t.value===p[0].orgId})))||void 0===v?void 0:v.title;h=h+=h?"、"+m:m}p[0].roleId&&(h=h+=h?"-"+this.roles.find((function(t){return t.value===p[0].roleId})).label:this.roles.find((function(t){return t.value===p[0].roleId})).label)}if("uid"===p[0].type){var y=this.businessUserData.map((function(t){return t.value}));h=p[0].user.map((function(e){var r=y.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("、")}}p.length>1&&(h+="...")}return"sponsor"===d.type&&(h="发起人自己"),this.nodeRef.content=h,h},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=Gp(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,o,i,a,s="";return this.node.error&&(s+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(e=t.runtimeData)||void 0===e?void 0:e.currentNodeCode)===this.node.code?s+=" ongoing":null!==(r=this.nodeHandler)&&void 0!==r&&null!==(n=r.runtimeData)&&void 0!==n&&n.caseNodes&&null!==(o=this.nodeHandler)&&void 0!==o&&null!==(i=o.runtimeData)&&void 0!==i&&null!==(a=i.caseNodes[this.node.code])&&void 0!==a&&a.status&&(s+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),s},filterUser:function(t,e){var r=e.data;return-1!==r.key.indexOf(t)},loadCache:function(t){var e,r,n,o,i,a,s,c,l,u,f,d;this.optionViewType=null!==(e=null===(r=t.data)||void 0===r||null===(n=r.eadCache)||void 0===n||null===(o=n.workflow)||void 0===o?void 0:o.optionViewType)&&void 0!==e?e:this.optionViewType,this.optionViewList=null!==(i=null===(a=t.data)||void 0===a||null===(s=a.eadCache)||void 0===s||null===(c=s.workflow)||void 0===c?void 0:c.optionViewList)&&void 0!==i?i:this.optionViewList,this.driverList=null!==(l=null===(u=t.data)||void 0===u||null===(f=u.eadCache)||void 0===f||null===(d=f.workflow)||void 0===d?void 0:d.driverList)&&void 0!==l?l: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 Up(Vp().mark((function r(){return Vp().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 Up(Vp().mark((function r(){var n,o;return Vp().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=Up(Vp().mark((function t(){var e,r,n,o,i,a,s;return Vp().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}()},tv=Qp,ev=(r("475a"),Nr(tv,Bp,Fp,!1,null,"14b216a6",null)),rv=ev.exports,nv=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)},ov=[];function iv(t){return iv="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},iv(t)}function av(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 sv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?av(Object(r),!0).forEach((function(e){cv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):av(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cv(t,e,r){return e=lv(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lv(t){var e=uv(t,"string");return"symbol"===iv(e)?e:String(e)}function uv(t,e){if("object"!==iv(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==iv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var fv={name:"JudgeWrapNode",computed:{NodeWrap:function(){return Dm}},props:{node:Md,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 sv({includeIcon:o,childNodeCodes:n,nodeRef:e,eadApi:i},u)},methods:{addBranch:function(){this.nodeHandler.addBranch(this.node.code,"条件")}}},dv=fv,hv=(r("05db"),Nr(dv,nv,ov,!1,null,"0ab38de0",null)),pv=hv.exports,vv=function(){var t,e,r=this,n=r._self._c;return n("div",[n("div",{staticClass:"node",class:r.getClass(),on:{click:r.click}},[r.nodeHandler.isPreview?n("div",{staticClass:"disable node-left"}):r._e(),r.nodeHandler.isPreview?r._e():n("div",{staticClass:"node-left",class:r.option.left?"":"disable",on:{click:function(t){return t.stopPropagation(),r.toLeft.apply(null,arguments)}}},[n("span",[r.option.left?n("a-icon",{staticClass:"icon",attrs:{type:"left"}}):r._e()],1)]),n("div",{staticClass:"node-content"},[n("div",{staticClass:"title"},[n("span",{staticClass:"title-main",staticStyle:{"margin-right":"5px"}},["exclusive"===(null===(t=r.wrapNode)||void 0===t||null===(e=t.data)||void 0===e?void 0:e.gateway_type)?n("a-icon",{attrs:{type:"apartment"}}):n("a-icon",{attrs:{type:"deployment-unit"}})],1),n("span",{staticClass:"title-main"},[r._v(r._s(r.node.name))]),r.nodeHandler.isPreview?r._e():n("span",{staticClass:"title-right"},[n("a-icon",{staticClass:"close",attrs:{type:"close"},on:{click:function(t){return t.stopPropagation(),r.close.apply(null,arguments)}}}),n("span",{staticClass:"info"},[r._v("优先级"+r._s(r.option.index+1))])],1)]),n("div",{staticClass:"content"},[n("span",{staticClass:"content-main"},[n("span",{staticClass:"error-tooltip"},[n("a-tooltip",[n("template",{slot:"title"},[r._v(" "+r._s(r.node.error)+" ")]),n("a-icon",{attrs:{theme:"filled",type:"warning"}})],2)],1),r.node.content?n("span",[r._v(r._s(r.node.content))]):n("span",{staticStyle:{color:"rgb(164 164 164)"}},[r._v(r._s(r.defaultContent))])])])]),r.nodeHandler.isPreview?n("div",{staticClass:"disable node-right"}):r._e(),r.nodeHandler.isPreview?r._e():n("div",{staticClass:"node-right",class:r.option.right?"":"disable",on:{click:function(t){return t.stopPropagation(),r.toRight.apply(null,arguments)}}},[n("span",[r.option.right?n("a-icon",{staticClass:"icon",attrs:{type:"right"}}):r._e()],1)])]),n("a-drawer",{attrs:{"after-visible-change":r.change,closable:!0,visible:r.visible,width:720,placement:"right"},on:{close:r.hideDrawer}},[r.editName?r._e():n("div",{staticClass:"node-drawer-title",on:{click:r.showEditName}},[n("a-icon",{attrs:{type:"edit"}}),r._v(" "+r._s(r.node.name)+" ")],1),n("a-form-model",{directives:[{name:"show",rawName:"v-show",value:r.editName,expression:"editName"}],ref:"nameForm",attrs:{model:r.nodeRef,rules:{name:[{required:!0,message:"请填写节点名称",trigger:"blur"},{min:2,max:20,message:"2-20个字",trigger:"blur"}]},layout:"inline"}},[n("a-form-model-item",{ref:"name",attrs:{prop:"name"}},[n("a-input",{ref:"nameInput",attrs:{placeholder:"节点名称"},on:{blur:function(){r.editName=!1}},model:{value:r.nodeRef.name,callback:function(t){r.$set(r.nodeRef,"name",t)},expression:"nodeRef.name"}})],1)],1),n("div",[r.hasDefault?r._e():n("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[n("a-col",{attrs:{span:2}},[r._v("默认")]),n("a-col",{attrs:{span:22}},[n("a-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{"button-style":"solid"},model:{value:r.nodeRef.data.isDefault,callback:function(t){r.$set(r.nodeRef.data,"isDefault",t)},expression:"nodeRef.data.isDefault"}},[n("a-radio-button",{attrs:{value:!1}},[r._v(" 否 ")]),n("a-radio-button",{attrs:{value:!0}},[r._v(" 是 ")])],1)],1)],1),r.nodeRef.data.isDefault?r._e():n("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[n("a-col",{attrs:{span:2}},[r._v("表达式")]),n("a-col",{attrs:{span:22}},[n("a-textarea",{attrs:{"auto-size":""},model:{value:r.nodeRef.data.condition,callback:function(t){r.$set(r.nodeRef.data,"condition",t)},expression:"nodeRef.data.condition"}})],1)],1),n("a-row",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"5px"}},[n("a-col",{attrs:{span:2}},[r._v("描述")]),n("a-col",{attrs:{span:22}},[n("a-textarea",{attrs:{"auto-size":""},model:{value:r.nodeRef.content,callback:function(t){r.$set(r.nodeRef,"content",t)},expression:"nodeRef.content"}})],1)],1)],1)],1)],1)},mv=[],yv={name:"JudgeNode",props:{option:{left:Boolean,right:Boolean,index:Number},node:Md,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,n;return null===(r=t.nodeHandler.getNode(e))||void 0===r||null===(n=r.data)||void 0===n?void 0:n.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,o,i,a,s="";return this.node.error&&(s+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(e=t.runtimeData)||void 0===e?void 0:e.currentNodeCode)===this.node.code?s+=" ongoing":null!==(r=this.nodeHandler)&&void 0!==r&&null!==(n=r.runtimeData)&&void 0!==n&&n.caseNodes&&null!==(o=this.nodeHandler)&&void 0!==o&&null!==(i=o.runtimeData)&&void 0!==i&&null!==(a=i.caseNodes[this.node.code])&&void 0!==a&&a.status&&(s+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),s},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)}},gv=yv,bv=(r("5966"),Nr(gv,vv,mv,!1,null,"3cf68a4f",null)),wv=bv.exports;function _v(t){return Sv(t)||Ov(t)||kv(t)||xv()}function xv(){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 kv(t,e){if(t){if("string"===typeof t)return Ev(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)?Ev(t,e):void 0}}function Ov(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Sv(t){if(Array.isArray(t))return Ev(t)}function Ev(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 jv=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(_v(e.businessUserData),_v(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(_v(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)},Nv=[];function Lv(t){return Lv="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},Lv(t)}function Pv(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Pv=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Lv(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Cv(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 Av(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Cv(i,n,o,a,s,"next",t)}function s(t){Cv(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Tv(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Rv(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 Rv(t,e){if(t){if("string"===typeof t)return Dv(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)?Dv(t,e):void 0}}function Dv(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 Mv(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){qv(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 qv(t,e,r){return e=Bv(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bv(t){var e=Fv(t,"string");return"symbol"===Lv(e)?e:String(e)}function Fv(t,e){if("object"!==Lv(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Lv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var $v={name:"CCNode",props:{node:Md,nodeHandler:Object},components:{Item:Oi},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},d={visiblePopover:l,showPopover:f,hidePopover:u},h=[{name:"条件分支",type:Nd.JUDGE_WRAP,icon:{type:"apartment"},color:"rgb(21, 188, 131)"},{name:"并行分支",type:Nd.PARALLEL_WRAP,icon:{type:"sliders"},color:"rgb(113, 141, 255)"}],p=function(t){r.wrapNode(e.code,{type:t})},v={nodes:h,wrapNode:p},m=r.isPreview?null:r.businessAdapter.eadApi.getCurrentViewSchema().model.attrs.find((function(t){return"notice_template"===t.name}));return Mv(Mv(Mv(Mv({},c),d),v),{},{nodeRef:e,eadApi:o,noticeTemplateAttr:m})},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=Tv(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,o,i,a,s="";return this.node.error&&(s+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(e=t.runtimeData)||void 0===e?void 0:e.currentNodeCode)===this.node.code?s+=" ongoing":null!==(r=this.nodeHandler)&&void 0!==r&&null!==(n=r.runtimeData)&&void 0!==n&&n.caseNodes&&null!==(o=this.nodeHandler)&&void 0!==o&&null!==(i=o.runtimeData)&&void 0!==i&&null!==(a=i.caseNodes[this.node.code])&&void 0!==a&&a.status&&(s+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),s},loadCache:function(t){var e,r,n,o,i,a,s,c;this.optionViewType=null!==(e=null===(r=t.data)||void 0===r||null===(n=r.eadCache)||void 0===n||null===(o=n.workflow)||void 0===o?void 0:o.optionViewType)&&void 0!==e?e:this.optionViewType,this.optionViewList=null!==(i=null===(a=t.data)||void 0===a||null===(s=a.eadCache)||void 0===s||null===(c=s.workflow)||void 0===c?void 0:c.optionViewList)&&void 0!==i?i: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 Av(Pv().mark((function r(){return Pv().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 Av(Pv().mark((function r(){var n,o;return Pv().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 Av(Pv().mark((function e(){var r,n,o,i,a,s,c;return Pv().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)})))()}},Vv=$v,Hv=(r("cbcf"),Nr(Vv,jv,Nv,!1,null,"0743a454",null)),Uv=Hv.exports,Gv=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,title:t.node.name,visible:t.visibleDrawer,width:720,placement:"right"},on:{close:t.hideDrawer}},[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)},zv=[];function Kv(t){return Kv="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},Kv(t)}function Yv(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 Wv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yv(Object(r),!0).forEach((function(e){Zv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zv(t,e,r){return e=Jv(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jv(t){var e=Xv(t,"string");return"symbol"===Kv(e)?e:String(e)}function Xv(t,e){if("object"!==Kv(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Kv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Qv={name:"TriggerNode",props:{node:Md,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:{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},d=function(){return u.value=!0},h={visiblePopover:u,showPopover:d,hidePopover:f},p=[{name:"条件分支",type:Nd.JUDGE_WRAP,icon:{type:"apartment"},color:"rgb(21, 188, 131)"},{name:"并行分支",type:Nd.PARALLEL_WRAP,icon:{type:"sliders"},color:"rgb(113, 141, 255)"}],v=function(t){r.wrapNode(e.code,{type:t})},m={nodes:p,wrapNode:v};return Wv(Wv(Wv(Wv({},l),h),m),{},{nodeRef:e,eadApi:n})},computed:{nodeContent:function(){var t=null,e=this.nodeRef.data.other_options;return e.driver&&(t=this.driverList.find((function(t){return t.value===e.driver})).title),this.nodeRef.content=t,t}},methods:{getClass:function(){var t,e,r,n,o,i,a,s="";return this.node.error&&(s+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(e=t.runtimeData)||void 0===e?void 0:e.currentNodeCode)===this.node.code?s+=" ongoing":null!==(r=this.nodeHandler)&&void 0!==r&&null!==(n=r.runtimeData)&&void 0!==n&&n.caseNodes&&null!==(o=this.nodeHandler)&&void 0!==o&&null!==(i=o.runtimeData)&&void 0!==i&&null!==(a=i.caseNodes[this.node.code])&&void 0!==a&&a.status&&(s+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),s},loadCache:function(t){var e,r,n,o;this.driverList=null!==(e=null===(r=t.data)||void 0===r||null===(n=r.eadCache)||void 0===n||null===(o=n.workflow)||void 0===o?void 0:o.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_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(){}},tm=Qv,em=(r("f490"),Nr(tm,Gv,zv,!1,null,"e4778b2c",null)),rm=em.exports,nm=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)},om=[],im=r("c32d"),am=r.n(im);function sm(t){return sm="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},sm(t)}function cm(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 lm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cm(Object(r),!0).forEach((function(e){um(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function um(t,e,r){return e=fm(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fm(t){var e=dm(t,"string");return"symbol"===sm(e)?e:String(e)}function dm(t,e){if("object"!==sm(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==sm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var hm={name:"DelayNode",props:{node:Md,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},d=function(){return u.value=!0},h={visiblePopover:u,showPopover:d,hidePopover:f},p=[{name:"条件分支",type:Nd.JUDGE_WRAP,icon:{type:"apartment"},color:"rgb(21, 188, 131)"},{name:"并行分支",type:Nd.PARALLEL_WRAP,icon:{type:"sliders"},color:"rgb(113, 141, 255)"}],v=function(t){r.wrapNode(e.code,{type:t})},m={nodes:p,wrapNode:v};return lm(lm(lm(lm({},l),h),m),{},{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=am()(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,o,i,a,s="";return this.node.error&&(s+=" error"),(null===(t=this.nodeHandler)||void 0===t||null===(e=t.runtimeData)||void 0===e?void 0:e.currentNodeCode)===this.node.code?s+=" ongoing":null!==(r=this.nodeHandler)&&void 0!==r&&null!==(n=r.runtimeData)&&void 0!==n&&n.caseNodes&&null!==(o=this.nodeHandler)&&void 0!==o&&null!==(i=o.runtimeData)&&void 0!==i&&null!==(a=i.caseNodes[this.node.code])&&void 0!==a&&a.status&&(s+=this.nodeHandler.runtimeData.caseNodes[this.node.code].status),s},loadCache:function(t){var e,r,n,o;this.driverList=null!==(e=null===(r=t.data)||void 0===r||null===(n=r.eadCache)||void 0===n||null===(o=n.workflow)||void 0===o?void 0:o.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(){}},pm=hm,vm=(r("1697"),Nr(pm,nm,om,!1,null,"7fbee4d6",null)),mm=vm.exports,ym={EndNode:Wh,StartNode:wp,ParallelNode:Ep,ParallelWrapNode:Ap,CheckNode:rv,JudgeNode:wv,JudgeWrapNode:pv,CCNode:Uv,TriggerNode:rm,DelayNode:mm},gm=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)])])},bm=[],wm={name:"AddNode",props:{node:Md,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:Nd.CHECK,icon:{component:n},color:"rgb(255, 148, 62)"},{name:"抄送人",type:Nd.CC,icon:{type:"mail"},color:"rgb(50, 150, 250)"},{name:"触发器",type:Nd.TRIGGER,icon:{type:"control"},color:"rgb(53, 184, 129)"},{disabled:!0,name:"延迟等待",type:Nd.DELAY,icon:{type:"clock-circle"},color:"rgb(219,86,69)"},{name:"条件分支",type:Nd.JUDGE_WRAP,icon:{type:"apartment"},color:"rgb(21, 188, 131)"},{name:"并行分支",type:Nd.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}}},_m=wm,xm=r("3593"),km=r.n(xm),Om=Nr(_m,gm,bm,!1,null,"14eb0ec0",null);"function"===typeof km.a&&km()(Om);var Sm=Om.exports;function Em(t){return Em="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},Em(t)}function jm(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 Nm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jm(Object(r),!0).forEach((function(e){Lm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Lm(t,e,r){return e=Pm(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pm(t){var e=Cm(t,"string");return"symbol"===Em(e)?e:String(e)}function Cm(t,e){if("object"!==Em(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Em(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Am={name:"NodeWrap",computed:{NodeType:function(){return Nd}},components:Nm({AddNode:Sm},ym),props:{nodeConfig:Object,nodeHandler:Object},setup:function(t){var e=t.nodeConfig,r=Md.parse(e.node),n=r.type,o=Nd.getNodeType(n),i=o.mode,a=o.component,s={};return[Nd.START].forEach((function(t){return s[t]="start-node-box"})),[Nd.CHECK,Nd.CC,Nd.PARALLEL,Nd.JUDGE,Nd.TRIGGER,Nd.DELAY].forEach((function(t){return s[t]="node-box"})),[Nd.PARALLEL_WRAP,Nd.JUDGE_WRAP].forEach((function(t){return s[t]="wrap-box"})),{mode:i,type:n,component:a,node:Object(N["ref"])(r),uiStyle:s}}},Tm=Am,Rm=Nr(Tm,Vh,Hh,!1,null,"63654330",null),Dm=Rm.exports;function Im(t){return Im="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},Im(t)}function Mm(){return Mm="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=qm(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},Mm.apply(this,arguments)}function qm(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=Gm(t),null===t)break;return t}function Bm(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&&Fm(t,e)}function Fm(t,e){return Fm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Fm(t,e)}function $m(t){var e=Um();return function(){var r,n=Gm(t);if(e){var o=Gm(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Vm(this,r)}}function Vm(t,e){if(e&&("object"===Im(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Hm(t)}function Hm(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Um(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function Gm(t){return Gm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Gm(t)}function zm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Km(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,Wm(n.key),n)}}function Ym(t,e,r){return e&&Km(t.prototype,e),r&&Km(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Wm(t){var e=Zm(t,"string");return"symbol"===Im(e)?e:String(e)}function Zm(t,e){if("object"!==Im(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Im(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Jm=function(){function t(){zm(this,t)}return Ym(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){Bm(r,t);var e=$m(r);function r(){return zm(this,r),e.apply(this,arguments)}return Ym(r,[{key:"getNodeData",value:function(t){return[]}},{key:"verifyNodeData",value:function(t){Mm(Gm(r.prototype),"verifyNodeData",this).call(this,t)}},{key:"verifyNode",value:function(t){Mm(Gm(r.prototype),"verifyNode",this).call(this,t)}},{key:"saveNode",value:function(t){Mm(Gm(r.prototype),"saveNode",this).call(this,t)}},{key:"saveNodeData",value:function(t){Mm(Gm(r.prototype),"saveNodeData",this).call(this,t)}}],[{key:"getBusinessAdapter",value:function(){return new r}}]),r}(t);return e.getBusinessAdapter()}}]),t}(),Xm=Jm,Qm={name:"NodeContainer",components:{NodeWrap:Dm},props:{defaultZoomScale:Number,hideZoom:Boolean,nodeData:Array,isPreview:Boolean,runtimeData:Object,businessAdapter:Xm},data:function(){return{zoomScale:100,middle:0}},setup:function(t){var e=new $h(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)}))}},ty=Qm,ey=(r("193e"),Nr(ty,ud,fd,!1,null,null,null)),ry=ey.exports;function ny(t){return ny="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},ny(t)}function oy(t){return cy(t)||sy(t)||ay(t)||iy()}function iy(){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 ay(t,e){if(t){if("string"===typeof t)return ly(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)?ly(t,e):void 0}}function sy(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function cy(t){if(Array.isArray(t))return ly(t)}function ly(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 uy(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */uy=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==ny(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function fy(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 dy(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){fy(i,n,o,a,s,"next",t)}function s(t){fy(i,n,o,a,s,"throw",t)}a(void 0)}))}}function hy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function py(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,Ey(n.key),n)}}function vy(t,e,r){return e&&py(t.prototype,e),r&&py(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function my(){return my="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=yy(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},my.apply(this,arguments)}function yy(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=Oy(t),null===t)break;return t}function gy(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&&by(t,e)}function by(t,e){return by=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},by(t,e)}function wy(t){var e=ky();return function(){var r,n=Oy(t);if(e){var o=Oy(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return _y(this,r)}}function _y(t,e){if(e&&("object"===ny(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return xy(t)}function xy(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ky(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function Oy(t){return Oy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Oy(t)}function Sy(t,e,r){return e=Ey(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ey(t){var e=jy(t,"string");return"symbol"===ny(e)?e:String(e)}function jy(t,e){if("object"!==ny(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ny(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Ny(t,e,r){Ly(t,e),e.set(t,r)}function Ly(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Py(t,e){var r=Ty(t,e,"get");return Cy(t,r)}function Cy(t,e){return e.get?e.get.call(t):e.value}function Ay(t,e,r){var n=Ty(t,e,"set");return Ry(t,n,r),r}function Ty(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function Ry(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 Dy=new WeakMap,Iy=new WeakMap,My=function(t){gy(r,t);var e=wy(r);function r(){var t;hy(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),Ny(xy(t),Dy,{writable:!0,value:void 0}),Sy(xy(t),"nodeHandler",void 0),Sy(xy(t),"eadApi",void 0),Ny(xy(t),Iy,{writable:!0,value:void 0}),t}return vy(r,[{key:"init",value:function(){var t=dy(uy().mark((function t(){return uy().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;Ay(this,Dy,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?oy(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="",[Nd.TRIGGER].includes(t.type)&&(t.data.other_options.driver||(t.error+="触发器必须要设置驱动;",r=!0)),[Nd.JUDGE].includes(t.type)&&(t.content||(t.error+="条件分支必须要设置描述;",r=!0)),Nd.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([Nd.JUDGE].includes(t.type)&&(t.data.isDefault||t.data.condition||(t.error+="条件分支非默认的必须要设置表达式;",r=!0)),[Nd.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([Nd.DELAY].includes(t.type)&&"absolute"===t.data.other_options.type&&(t.data.other_options.timestamp||(t.error+="延迟等待类型为指定时间时,必须设置时间;",r=!0)),[Nd.START,Nd.CHECK,Nd.CC].includes(t.type)&&"custom"===t.data.eadCache.workflow.optionViewType&&(t.data.option_view_id||(t.error+="表单视图为自主选择时,必须指定表单视图;",r=!0)),[Nd.CHECK,Nd.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===Nd.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){my(Oy(r.prototype),"saveNode",this).call(this,t)}},{key:"saveNodeData",value:function(t){my(Oy(r.prototype),"saveNodeData",this).call(this,t)}},{key:"getActorData",value:function(){var t=dy(uy().mark((function t(){var e,r,n,o,i,a,s,c,l,u,f,d;return uy().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(d=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})):[]})),d(e)}},!Py(this,Iy)){t.next=3;break}return t.abrupt("return",Py(this,Iy));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,d(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)"}),Ay(this,Iy,{viewAttrs:n,orgMap:s,orgData:f,roles:i,users:a}),t.abrupt("return",Py(this,Iy));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,oy(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,oy(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[Nd.START,Nd.CHECK].includes(t.type)}))}}],[{key:"getBusinessAdapter",value:function(){return new r}}]),r}(Xm),qy=My;function By(t){return By="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},By(t)}function Fy(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Fy=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==By(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}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 Vy(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){Hy(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 Hy(t,e,r){return e=Wy(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Uy(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 Gy(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Uy(i,n,o,a,s,"next",t)}function s(t){Uy(i,n,o,a,s,"throw",t)}a(void 0)}))}}function zy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ky(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,Wy(n.key),n)}}function Yy(t,e,r){return e&&Ky(t.prototype,e),r&&Ky(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Wy(t){var e=Zy(t,"string");return"symbol"===By(e)?e:String(e)}function Zy(t,e){if("object"!==By(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==By(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Jy(t,e,r){Xy(t,e),e.set(t,r)}function Xy(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Qy(t,e){var r=rg(t,e,"get");return tg(t,r)}function tg(t,e){return e.get?e.get.call(t):e.value}function eg(t,e,r){var n=rg(t,e,"set");return ng(t,n,r),r}function rg(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function ng(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 og=new WeakMap,ig=function(){function t(e){zy(this,t),Jy(this,og,{writable:!0,value:void 0}),eg(this,og,e)}return Yy(t,[{key:"getComponent",value:function(){return Qy(this,og)}},{key:"setComponent",value:function(t){eg(this,og,t)}},{key:"getCurrentViewSchema",value:function(){return Qy(this,og).$attrs.schema}},{key:"getCurrentUserName",value:function(){return Qy(this,og).$store.state.user.name}},{key:"getModelIdName",value:function(){return Qy(this,og).$attrs.schema.model.idName}},{key:"runCurrentAction",value:function(){var t=Gy(Fy().mark((function t(){var e,r,n,o,i,a,s,c;return Fy().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=Qy(this,og).action,r=Qy(this,og).$attrs.schema.url,n=e.key,o=e.method,t.next=7,Qy(this,og).$api[o.toLowerCase()]("/api/".concat(r).concat(n?"/".concat(n):""),Vy({},Qy(this,og).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||"系统错误请与管理员联系。",Qy(this,og).$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=Gy(Fy().mark((function t(e){var r,n,o,i,a;return Fy().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Qy(this,og).$api.get("/dataset/sys_workflow_viewattrs?view_id=".concat(e));case 3:return r=t.sent,n=r.data.data,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=Gy(Fy().mark((function t(){var e,r,n,o,i;return Fy().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Qy(this,og).$api.get("/dataset/sys_workflow_user");case 3:return e=t.sent,r=e.data.data,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=Gy(Fy().mark((function t(e){var r,n,o,i,a;return Fy().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Qy(this,og).$api.get("/dataset/sys_workflow_role?app_key="+e);case 3:return r=t.sent,n=r.data.data,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=Gy(Fy().mark((function t(){var e,r,n,o,i;return Fy().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Qy(this,og).$api.get("/dataset/sys_workflow_org");case 3:return e=t.sent,r=e.data.data,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=Gy(Fy().mark((function t(e,r){var n,o,i,a,s;return Fy().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Qy(this,og).$api.get("/dataset/".concat(e),{params:Vy({},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:"getViews",value:function(){var t=Gy(Fy().mark((function t(e){var r,n,o,i,a;return Fy().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Qy(this,og).$api.get("/dataset/sys_workflow_view?name="+e);case 3:return r=t.sent,n=r.data.data,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=Gy(Fy().mark((function t(e){var r,n,o,i,a;return Fy().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Qy(this,og).$api.get("/dataset/sys_workflow_driver?name="+e);case 3:return r=t.sent,n=r.data.data,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 Qy(this,og).$attrs.selections}},{key:"getUrl",value:function(){return Qy(this,og).$attrs.schema.url}},{key:"getValues",value:function(){return Qy(this,og).values}},{key:"getModelValues",value:function(){return Qy(this,og).actionModel}},{key:"getCurrentAction",value:function(){return Qy(this,og).action}}]),t}(),ag=ig,sg={name:"workflow-designer",mixins:[en],components:{NodeContainer:ry},setup:function(){var t=new ag,e=qy.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("系统错误,请联系管理员")}))}},cg=sg,lg=Nr(cg,cd,ld,!1,null,"a2ad5ee6",null),ug=lg.exports,fg=function(){var t,e,r,n,o=this,i=this,a=i._self._c;return a("a-form-model",{ref:"form",staticStyle:{"min-height":"400px"},attrs:{model:i.actionModel,rules:i.rules}},[a("a-spin",{attrs:{spinning:i.loading}},[a("a-tabs",{on:{change:function(){return o.$refs.nodeContainer.toMiddle()}},model:{value:i.paneKey,callback:function(t){i.paneKey=t},expression:"paneKey"}},[i.paneSet.has("1")&&this.currentNode?a("a-tab-pane",{key:"1",attrs:{tab:"操作"}},[i.OPERATE.CHECK===i.workflowReq.operate?a("a-radio-group",{staticStyle:{"margin-bottom":"10px"},on:{change:function(t){return i.loadTodo()}},model:{value:i.workflowReq.page_operate.action,callback:function(t){i.$set(i.workflowReq.page_operate,"action",t)},expression:"workflowReq.page_operate.action"}},[a("a-radio-button",{attrs:{value:i.CHECK_ACTION.PASS}},[i._v(" "+i._s(null!==(t=i.currentNode.data.other_options)&&void 0!==t&&null!==(e=t.custom_action)&&void 0!==e&&e.pass?i.currentNode.data.other_options.custom_action.pass:"审批通过")+" ")]),i.runtimeData.pageOperate.allowBack?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.BACK}},[i._v(" "+i._s(null!==(r=i.currentNode.data.other_options)&&void 0!==r&&null!==(n=r.custom_action)&&void 0!==n&&n.pass?i.currentNode.data.other_options.custom_action.back:" 审批退回")+" ")]):i._e(),i.runtimeData.pageOperate.allowReassign?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.REASSIGN}},[i._v(" 转办 ")]):i._e(),i.runtimeData.pageOperate.allowInvolve?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.INVOLVE}},[i._v(" 加签 ")]):i._e(),i.runtimeData.pageOperate.allowEnd?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.END}},[i._v(" 结束 ")]):i._e()],1):i._e(),(i.workflowReq.operate===i.OPERATE.START||i.workflowReq.operate===i.OPERATE.CHECK&&[i.CHECK_ACTION.PASS].includes(i.workflowReq.page_operate.action))&&i.runtimeData.currentNodeFormItem&&i.runtimeData.currentNodeFormItem.length?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[i._l(i.runtimeData.currentNodeFormItem,(function(t){return[t?a("Item",{key:t.name,attrs:{formModel:i.actionModel,params:{},prop:t.name,required:t.required,schema:t},on:{change:function(e){return i.handleItemChange(e,t)}},model:{value:i.actionModel[t.name],callback:function(e){i.$set(i.actionModel,t.name,e)},expression:"actionModel[attr.name]"}}):i._e()]}))],2)],1):i._e(),i.OPERATE.CHECK===i.workflowReq.operate?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-form-model-item",{attrs:{label:[i.CHECK_ACTION.REASSIGN,i.CHECK_ACTION.INVOLVE,i.CHECK_ACTION.END].includes(i.workflowReq.page_operate.action)?"备注":"审批意见",prop:"xxx",size:"small"}},[a("a-textarea",{attrs:{"auto-size":{minRows:4,maxRows:6},placeholder:"请输入".concat([i.CHECK_ACTION.REASSIGN,i.CHECK_ACTION.INVOLVE,i.CHECK_ACTION.END].includes(i.workflowReq.page_operate.action)?"备注":"审批或退回意见")},model:{value:i.workflowReq.page_operate.operate_content,callback:function(t){i.$set(i.workflowReq.page_operate,"operate_content",t)},expression:"workflowReq.page_operate.operate_content"}})],1)],1):i._e(),i.isCustomBack&&i.OPERATE.CHECK===i.workflowReq.operate&&i.workflowReq.page_operate.action===i.CHECK_ACTION.BACK?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-form-model-item",{attrs:{label:"退回步骤",prop:"xxx",size:"small"}},[a("a-select",{model:{value:i.workflowReq.page_operate.custom_back_node_code,callback:function(t){i.$set(i.workflowReq.page_operate,"custom_back_node_code",t)},expression:"workflowReq.page_operate.custom_back_node_code"}},i._l(i.currentNode.data.custom_back_nodes,(function(t){return a("a-select-option",{key:t,attrs:{value:t}},[i._v(" "+i._s(i.nodeHandler.getNode(t).name)+" ")])})),1)],1)],1):i._e(),i.runtimeData.todos&&i.runtimeData.todos.length&&(i.OPERATE.START===i.workflowReq.operate||i.OPERATE.CHECK===i.workflowReq.operate&&(i.workflowReq.page_operate.action===i.CHECK_ACTION.PASS||i.workflowReq.page_operate.action===i.CHECK_ACTION.BACK&&"bpmn"===i.currentNode.data.back_type))?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{size:"small",title:"后续步骤"}},[i.runtimeData.todos&&i.runtimeData.todos.length?a("a-tabs",{attrs:{"tab-position":"top"},model:{value:i.currentTodo,callback:function(t){i.currentTodo=t},expression:"currentTodo"}},i._l(i.runtimeData.todos,(function(t){var e,r,n,o,s,c,l,u;return a("a-tab-pane",{key:t.node_code,attrs:{disabled:!i.availableTodo(t),tab:null!==(e=null===(r=i.nodeHandler.getNode(t.node_code))||void 0===r?void 0:r.name)&&void 0!==e?e:"-"}},[i.availableTodo(t)?a("div",{staticClass:"actors"},[a("div",{staticStyle:{width:"60%"}},[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(e){return i.filterTodoItemActors(e,t)}}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":t.actorsf.value,pagination:!1,"row-selection":null!==(n=t.optional)&&void 0!==n&&n.enable?{type:t.optional.multi?"checkbox":"radio",selectedRowKeys:t.selected,onChange:function(e){t.selected=e}}:null,rowKey:"uid",size:"middle"}})],1),a("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{title:(null!==(o={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!==o?o:"")+"执行人列表",size:"small"}},[a("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){i.$set(t,"selected",e)},expression:"item.selected"}},[a("transition-group",{attrs:{name:"flip-list",type:"transition"}},[t.selected&&null!==t&&void 0!==t&&t.selected.length?i._l(t.selected,(function(t){return a("div",{key:t,staticClass:"item"},[i._v(" "+i._s(i.userCache[t])+" ")])})):i._e()],2)],1)],1)],1):i._e()])})),1):i._e()],1)],1):i._e(),i.OPERATE.CHECK===i.workflowReq.operate&&i.workflowReq.page_operate.action===i.CHECK_ACTION.REASSIGN?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{size:"small",title:"转办执行人"}},[a("div",{staticClass:"actors"},[a("div",{staticStyle:{width:"60%"}},[i.runtimeData.reassign.actors?[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(t){return i.reassignUserFilter=t}}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.filterActors(i.reassignUserFilter,i.runtimeData.reassign.actors),pagination:!1,"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.reassign.selected,onChange:function(t){i.runtimeData.reassign.selected=t}},rowKey:"uid",size:"middle"}})]:[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(){i.reassignUserPagination.current=1,i.handleTableChangeReassignUser(i.reassignUserPagination)}},model:{value:i.reassignUserFilter,callback:function(t){i.reassignUserFilter=t},expression:"reassignUserFilter"}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.reassignUserData,loading:i.loadingReassignUser,pagination:i.reassignUserPagination,"row-key":function(t){return t.uid},"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.reassign.selected,onChange:function(t){o.reassignUserData.filter((function(e){return t.includes(e.uid)})).forEach((function(t){return i.userCache[t.uid]="".concat(t.name,"(").concat(t.org_name,")")})),i.runtimeData.reassign.selected=t}}},on:{change:i.handleTableChangeReassignUser}})]],2),a("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{size:"small",title:"转办人"}},[a("draggable",{attrs:{disabled:!0,chosenClass:"chosen"},model:{value:i.runtimeData.reassign.selected,callback:function(t){i.$set(i.runtimeData.reassign,"selected",t)},expression:"runtimeData.reassign.selected"}},[a("transition-group",i._l(i.runtimeData.reassign.selected,(function(t){return a("div",{key:t,staticClass:"item"},[i._v(" "+i._s(i.userCache[t])+" ")])})),0)],1)],1)],1)])],1):i._e(),i.OPERATE.CHECK===i.workflowReq.operate&&i.workflowReq.page_operate.action===i.CHECK_ACTION.INVOLVE?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{size:"small",title:"加签执行人"}},[a("div",{staticClass:"actors"},[a("div",{staticStyle:{width:"60%"}},[i.runtimeData.involve.actors?[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(t){return i.involveUserFilter=t}}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.filterActors(i.involveUserFilter,i.runtimeData.involve.actors),pagination:!1,"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.involve.selected,onChange:function(t){i.runtimeData.involve.selected=t}},rowKey:"uid",size:"middle"}})]:[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(){i.involveUserPagination.current=1,i.handleTableChangeInvolveUser(i.involveUserPagination)}},model:{value:i.involveUserFilter,callback:function(t){i.involveUserFilter=t},expression:"involveUserFilter"}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.involveUserData,loading:i.loadingInvolveUser,pagination:i.involveUserPagination,"row-key":function(t){return t.uid},"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.involve.selected,onChange:function(t){o.involveUserData.filter((function(e){return t.includes(e.uid)})).forEach((function(t){return i.userCache[t.uid]="".concat(t.name,"(").concat(t.org_name,")")})),i.runtimeData.involve.selected=t}}},on:{change:i.handleTableChangeInvolveUser}})]],2),a("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{size:"small",title:"加签人"}},[a("draggable",{attrs:{disabled:!0,chosenClass:"chosen"},model:{value:i.runtimeData.involve.selected,callback:function(t){i.$set(i.runtimeData.involve,"selected",t)},expression:"runtimeData.involve.selected"}},[a("transition-group",i._l(i.runtimeData.involve.selected,(function(t){return a("div",{key:t,staticClass:"item"},[i._v(" "+i._s(i.userCache[t])+" ")])})),0)],1)],1)],1)])],1):i._e()],1):i._e(),i.paneSet.has("2")?a("a-tab-pane",{key:"2",attrs:{"force-render":"",tab:"审批记录"}},[a("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[a("a-list",{attrs:{dataSource:this.runtimeData.logList},scopedSlots:i._u([{key:"renderItem",fn:function(t){return a("a-list-item",{},[a("a-list-item-meta",[a("strong",{attrs:{slot:"title"},slot:"title"},[i._v(" "+i._s(t.node_name)+" ")]),i.$store.state.app.icon?a("a-avatar",{attrs:{slot:"avatar",src:i.$store.state.app.icon},slot:"avatar"}):a("a-avatar",{attrs:{slot:"avatar",icon:"user"},slot:"avatar"}),a("a-space",{attrs:{slot:"description",direction:"vertical"},slot:"description"},[a("div",[i._v(i._s(t.operate_desc))]),t.operate_content?a("div",[i._v(" 审批意见:"+i._s(t.operate_content)+" ")]):i._e(),a("a-space",[a("span",{staticStyle:{color:"#18274a"}},[a("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"clock-circle-o"}}),i._v(" "+i._s(i.moment(t.create_time).format("YYYY-MM-DD HH:mm"))+" ")],1),a("a-divider",{attrs:{type:"vertical"}}),a("span",{staticStyle:{color:"#18274a"}},[a("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"user"}}),i._v(" "+i._s(t.operator.name)+"("+i._s(t.operator.org_name)+") ")],1)],1)],1)],1)],1)}}],null,!1,2687742983)})],1)],1):i._e(),i.paneSet.has("3")?a("a-tab-pane",{key:"3",attrs:{tab:"流程图"}},[a("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[a("div",{staticStyle:{position:"absolute","z-index":"999"}},[a("a-button",{directives:[{name:"show",rawName:"v-show",value:!i.fullscreenLoading,expression:"!fullscreenLoading"}],attrs:{icon:"arrows-alt",type:"link"},on:{click:i.showFullScreenFlow}}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:i.fullscreenLoading,expression:"fullscreenLoading"}],attrs:{type:"loading-3-quarters"}})],1),i.initNodeContainer?a("NodeContainer",{ref:"nodeContainer",staticStyle:{heigth:"350px"},attrs:{"business-adapter":i.businessAdapter,"default-zoom-scale":70,"hide-zoom":!0,"is-preview":!0,"node-data":i.nodeData,"runtime-data":i.runtimeData},on:{nodeHandlerReady:i.nodeHandlerReady}}):i._e()],1)],1):i._e()],1)],1),a("a-modal",{staticClass:"jjh-fullscreen",attrs:{bodyStyle:{height:"85vh","overflow-y":"scroll","padding-bottom":"0"},destroyOnClose:!0,"dialog-style":{top:"0px"},visible:i.fullscreen,title:"流程图",width:"100%"},on:{cancel:i.hideFullScreenFlow}},[i.initNodeContainer?a("NodeContainer",{ref:"nodeContainer1",attrs:{"business-adapter":i.businessAdapter,"is-preview":!0,"node-data":i.nodeData,"runtime-data":i.runtimeData}}):i._e(),a("template",{slot:"footer"},[a("a-button",{key:"back",on:{click:i.hideFullScreenFlow}},[i._v("关闭")])],1)],2)],1)},dg=[],hg=r("289a"),pg=r.n(hg);function vg(t){return vg="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},vg(t)}function mg(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=wg(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 yg(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */yg=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==vg(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function gg(t){return xg(t)||_g(t)||wg(t)||bg()}function bg(){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 wg(t,e){if(t){if("string"===typeof t)return kg(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)?kg(t,e):void 0}}function _g(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function xg(t){if(Array.isArray(t))return kg(t)}function kg(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 Og(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 Sg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Og(Object(r),!0).forEach((function(e){Eg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Og(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Eg(t,e,r){return e=jg(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jg(t){var e=Ng(t,"string");return"symbol"===vg(e)?e:String(e)}function Ng(t,e){if("object"!==vg(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==vg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Lg(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 Pg(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Lg(i,n,o,a,s,"next",t)}function s(t){Lg(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Cg={START:"start",CHECK:"check",QUERY:"query"},Ag={PREVIEW:"preview",CONFIRM:"confirm"},Tg={PASS:"pass",BACK:"back",REASSIGN:"reassign",INVOLVE:"involve",END:"end"},Rg={name:"runtime-workflow",mixins:[en],components:{NodeContainer:ry,Item:Oi,draggable:pg.a},data:function(){return{OPERATE:Cg,OPERATE_MODE:Ag,CHECK_ACTION:Tg,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 ag,n=qy.getBusinessAdapter(),o={operate_mode:Ag.PREVIEW,operate:Cg.QUERY,page_operate:{action:Tg.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 Pg(yg().mark((function e(){var r,n,o,i,a,s,c,l,u,f,d,h,p,v,m,y,g;return yg().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 Sg({},t)})),t.eadApi.setComponent(t),t.businessAdapter.eadApi=t.eadApi,t.workflowReq.operate=null!==(r=Cg[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(d=e.sent,d){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(d.data).includes(e)&&(t.actionModel[e]=d.data[e])})),t.workflow=null===d||void 0===d||null===(n=d.data)||void 0===n?void 0:n.workflow,h=null===d||void 0===d||null===(o=d.data)||void 0===o||null===(i=o.workflow)||void 0===i?void 0:i.runtime_data,h&&Object.keys(h).length&&(t.runtimeData=h),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&&(p={},t.runtimeData.caseNodes.forEach((function(t){p[t.node_code]=Sg({},t)})),t.runtimeData.caseNodes=p),t.runtimeData.todos&&t.runtimeData.todos.forEach((function(t){t.actorfilter||(t.actorfilter=""),t.actorsf=Object(N["ref"])(gg(t.actors))})),v=[],null!==(a=t.runtimeData)&&void 0!==a&&null!==(s=a.involve)&&void 0!==s&&s.actors&&v.push.apply(v,gg(t.runtimeData.involve.actors)),null!==(c=t.runtimeData)&&void 0!==c&&null!==(l=c.reassign)&&void 0!==l&&l.actors&&v.push.apply(v,gg(t.runtimeData.reassign.actors)),t.runtimeData.todos&&t.runtimeData.todos.forEach((function(t){v.push.apply(v,gg(t.actors))})),v.forEach((function(e){t.userCache[e.uid]="".concat(e.name,"(").concat(e.org_name,")")})),m=null===d||void 0===d||null===(u=d.data)||void 0===u||null===(f=u.workflow)||void 0===f?void 0:f.node_json,y=m?null===m||void 0===m?void 0:m.node:null,t.nodeData=y?gg(Object.values(y)):[],g=t.paneSet,[Cg.START,Cg.CHECK].includes(t.workflowReq.operate)&&g.add("1"),g.add("2"),g.add("3"),t.initNodeContainer=!0,t.$nextTick((function(){t.paneKey=gg(g.values())[0]})),t.validExpression(),t.loadTodo(),t.actionModel.workflow_req=t.workflowReq,t.actionModel.workflow=t.workflow,t.loading=!1,t.workflowReq.operate_mode=Ag.CONFIRM,t.workflowReq.operate===Cg.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=Sg({},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=Sg({},t.reassignUserPagination);r.total=e.count,t.loadingReassignUser=!1,t.reassignUserData=e.results,t.reassignUserPagination=r}))},handleTableChangeInvolveUser:function(t){var e=Sg({},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=Sg({},t.involveUserPagination);r.total=e.count,t.loadingInvolveUser=!1,t.involveUserData=e.results,t.involveUserPagination=r}))},getAllUsers:function(t,e){var r=this;return Pg(yg().mark((function n(){var o,i;return yg().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,r.eadApi.getDataset("sys_workflow_allusers_count",{user_name:t});case 2:return o=n.sent,n.next=5,r.eadApi.getDataset("sys_workflow_allusers",{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===Cg.START&&(null!==(t=this.runtimeData.todos)&&void 0!==t&&t.length)){var n=this.getAvailableTodos();if(!n.length)return void this.$message.error("无法匹配到符合条件的后续步骤");this.workflowReq.page_operate.todos=n}if(this.workflowReq.operate===Cg.CHECK){var o,i;if(this.workflowReq.page_operate.action===Tg.BACK)if("bpmn"===this.currentNode.data.back_type&&(r=!0),null!==(o=this.runtimeData.todos)&&void 0!==o&&o.length){var a=this.getAvailableTodos(),s=this.nodeHandler.getAllRoute(this.currentNode.code).find((function(t){return"end"===t.type}));if(!a.length&&!s)return void this.$message.error("无法匹配到符合条件的后续步骤");this.workflowReq.page_operate.todos=a}if(this.workflowReq.page_operate.action===Tg.PASS)if(null!==(i=this.runtimeData.todos)&&void 0!==i&&i.length){var c=this.getAvailableTodos(),l=this.nodeHandler.getAllRoute(this.currentNode.code).find((function(t){return"end"===t.type}));if(!c.length&&!l)return void this.$message.error("无法匹配到符合条件的后续步骤");this.workflowReq.page_operate.todos=c}if(this.workflowReq.page_operate.action===Tg.INVOLVE){var u,f;if(null===(u=this.runtimeData.involve)||void 0===u||null===(f=u.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===Tg.REASSIGN){var d,h;if(null===(d=this.runtimeData.reassign)||void 0===d||null===(h=d.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 p,v=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})),m=mg(v);try{var y=function(){var t=p.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,gg(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(m.s();!(p=m.n()).done;){var g=y();if("object"===vg(g))return g.v}}catch(w){m.e(w)}finally{m.f()}}this.actionModel.workflow=this.workflow,this.actionModel.workflow_req=this.workflowReq;var b=Sg({},this.actionModel);b.workflow_req=Sg({},this.workflowReq),b.workflow_req.page_operate=Sg({},this.workflowReq.page_operate),r&&(b.workflow_req.page_operate.action="BPMN_BACK"),this.$emit("commit",b)},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=gg(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 Pg(yg().mark((function n(){var o,i,a;return yg().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=mg(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=mg(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=mg(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,gg(Object.values(n)));return t.available=i,i}catch(a){this.expressionError=!0,this.$message.error("[".concat(t.node_code,"]表达式执行错误,请联系系统管理员!表达式:").concat(r))}return!1}}},Dg=Rg,Ig=(r("9cb9"),Nr(Dg,fg,dg,!1,null,"0574fd41",null)),Mg=Ig.exports,qg=(r("1f51"),{NormalForm:Ic,UploadForm:zc,PickerViewForm:ol,AlgorithmForm:Bu,PickerTransferForm:sf,PickerTreeForm:xf,PickerSelectViewForm:Hf,WorkflowReport:sd,WorkflowDesigner:ug,RuntimeWorkflow:Mg});function Bg(t){return Bg="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},Bg(t)}function Fg(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 $g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Fg(Object(r),!0).forEach((function(e){Vg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Vg(t,e,r){return e=Hg(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hg(t){var e=Ug(t,"string");return"symbol"===Bg(e)?e:String(e)}function Ug(t,e){if("object"!==Bg(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Bg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Gg={mixins:[Ut,Gt,Pc],components:$g({},qg)},zg=Gg,Kg=Nr(zg,jc,Nc,!1,null,null,null),Yg=Kg.exports,Wg={ModelList:ya,ModelProfile:Ec,ModelForm:Yg},Zg={props:{view:{type:Object},modelViewType:{type:String}},inject:["page"],computed:{namespace:function(){return"v-".concat(this.page.pageKey)}},methods:{createView:function(){return{extends:$t(Wg["Model".concat(this.modelViewType)])(this.namespace)}}}},Jg=Zg,Xg=Nr(Jg,wt,_t,!1,null,null,null),Qg=Xg.exports,tb={components:{ViewBox:Qg},props:{views:{type:[Array]},viewLayout:{type:String,default:"blank"}}},eb=tb,rb=Nr(eb,gt,bt,!1,null,null,null),nb=rb.exports,ob={mixins:[yt],components:{Views:nb}},ib=ob,ab=Nr(ib,lt,ut,!1,null,null,null),sb=ab.exports,cb=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)},lb=[],ub={mixins:[yt],components:{Frame:Ja},props:{url:String,height:String},data:function(){return{loading:!0}}},fb=ub,db=Nr(fb,cb,lb,!1,null,null,null),hb=db.exports,pb=function(){var t=this,e=t._self._c;return e("keep-alive",[e("router-view")],1)},vb=[],mb={},yb=Nr(mb,pb,vb,!1,null,null,null),gb=yb.exports;function bb(t){return bb="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},bb(t)}function wb(t){return Ob(t)||kb(t)||xb(t)||_b()}function _b(){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 xb(t,e){if(t){if("string"===typeof t)return Sb(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)?Sb(t,e):void 0}}function kb(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Ob(t){if(Array.isArray(t))return Sb(t)}function Sb(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 Eb(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 jb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Eb(Object(r),!0).forEach((function(e){Nb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Eb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Nb(t,e,r){return e=Lb(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Lb(t){var e=Pb(t,"string");return"symbol"===bb(e)?e:String(e)}function Pb(t,e){if("object"!==bb(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==bb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Cb(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Cb=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==bb(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Ab(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 Tb(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ab(i,n,o,a,s,"next",t)}function s(t){Ab(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Rb=ct(sb),Db=["catalog-tab","catalog"],Ib={data:function(){return{messageTimer:0}},created:function(){var t=this;return Tb(Cb().mark((function e(){return Cb().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:jb(jb({},Object(u["mapState"])(["status","resources"])),{},{routes:function(){return this.resources.length?[{path:"/",redirect:"/"+this.resources[0].key,children:this.resToRoute(wb(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=hb,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=gb,s.pageKey=t.url;break;case"link":o={template:"<span></span>",activated:function(){this.$router.back()}};break;default:o=gb;break}return"view"===t.type&&"standard"===t.viewType&&(c=[{path:"",component:{extends:Rb(t.url,!0)},props:{modelViewType:"profile"===t.catalogType?"Profile":"List",pageKey:t.url},meta:{name:t.name,key:i}},{path:":id",component:{extends:Rb(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:Db.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 Tb(Cb().mark((function e(){return Cb().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()}}},Mb=Ib,qb=Nr(Mb,c,l,!1,null,null,null),Bb=qb.exports,Fb={components:{Router:Bb},created:function(){}},$b=Fb,Vb=Nr($b,a,s,!1,null,null,null),Hb=Vb.exports;r("e39e");function Ub(t){return Ub="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},Ub(t)}function Gb(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Gb=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Ub(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function zb(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 Kb(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){zb(i,n,o,a,s,"next",t)}function s(t){zb(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Yb(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 Wb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yb(Object(r),!0).forEach((function(e){Zb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zb(t,e,r){return e=Jb(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jb(t){var e=Xb(t,"string");return"symbol"===Ub(e)?e:String(e)}function Xb(t,e){if("object"!==Ub(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ub(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Qb=window.Rainbow,tw=Qb.app,ew=tw.csrfToken,rw=tw.baseURL,nw=!1,ow={};function iw(t){S.setDefaults({baseURL:rw!==["/","{app.appKey}"].join("$")?rw:t,headers:ow}),L.a.use(S),L.a.use(f.a);var e=function(){return{resources:[],apps:[],user:{},token:JSON.parse(localStorage.getItem("token")),app:Wb({},Qb.app),config:{message:{type:"poll"}},messages:[],historys:[],loading:!1,committing:!1,status:200,message:"",baseURL:S.instance.defaults.baseURL}};return new f.a.Store({state:e(),strict:nw,plugins:[],mutations:{setResources:function(t,e){t.resources=e},setApp:function(t,e){t.app=Wb(Wb({},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 Kb(Gb().mark((function e(){var r,n,o,i,a,s,c;return Gb().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,S.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 Kb(Gb().mark((function e(){var r,n,o;return Gb().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,e.prev=1,e.next=4,S.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 Kb(Gb().mark((function r(){var n;return Gb().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,r.next=3,S.post("/api/sys-msg/read",e);case 3:n("readMessages",e);case 4:case"end":return r.stop()}}),r)})))()},emptyMessages:function(t,e){return Kb(Gb().mark((function r(){var n;return Gb().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,r.next=3,S.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 Kb(Gb().mark((function r(){var n,o,i,a,s,c,l,u;return Gb().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,S.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 Kb(Gb().mark((function r(){var n,o,i,a,s,c,l,u;return Gb().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,S.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 Kb(Gb().mark((function e(){var r,n,o,i,a,s,c;return Gb().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,S.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 Kb(Gb().mark((function r(){var n,o,i,a,s,c,l,u;return Gb().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,S.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}))}}}})}ew&&"${app.csrfToken}"!==ew&&(ow["x-csrf-token"]=ew);var aw=r("6389"),sw=r.n(aw);L.a.use(sw.a);var cw=new sw.a,lw=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)+" ")])},uw=[],fw={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("复制失败")}}},dw=fw,hw=Nr(dw,lw,uw,!1,null,null,null),pw=hw.exports,vw=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)},mw=[];function yw(t){return yw="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},yw(t)}function gw(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */gw=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new S(o||[]);return n(a,"_invoke",{value:_(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,i)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==yw(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,f):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),f},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),O(r),f}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function bw(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 ww(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bw(Object(r),!0).forEach((function(e){kw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}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 xw(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)}))}}function kw(t,e,r){return e=Ow(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ow(t){var e=Sw(t,"string");return"symbol"===yw(e)?e:String(e)}function Sw(t,e){if("object"!==yw(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==yw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Ew(t,e){return Cw(t)||Pw(t,e)||Nw(t,e)||jw()}function jw(){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 Nw(t,e){if(t){if("string"===typeof t)return Lw(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)?Lw(t,e):void 0}}function Lw(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 Pw(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(u){l=!0,o=u}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}function Cw(t){if(Array.isArray(t))return t}var Aw={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=Ew(e,2),n=r[0],o=r[1];return o?kw({},n,o):n}))]:[t.name,t.typeObject.data&&t.typeObject.data.collection||[]]}));return Object.fromEntries(e)}},methods:{load:function(){var t=this;return xw(gw().mark((function e(){var r,n,o,i,a,s,c,l,u,f,d,h,p,v,m;return gw().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(ww(ww({},n),{},{_size:i,$limit:a}))));case 10:l=e.sent,u=l.data,f=u.collection,d=u.count,h=u.model,p=u.data,v=l.status,t.collection=f||p,t.model=h,t.count=d,t.status=v,e.next=27;break;case 23:return e.prev=23,e.t0=e["catch"](7),e.t0.response?(m=e.t0.response.status,t.status=m):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 xw(gw().mark((function e(){var r,n,o,i;return gw().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 xw(gw().mark((function e(){return gw().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()}}},Tw=Aw,Rw=Nr(Tw,vw,mw,!1,null,null,null),Dw=Rw.exports,Iw=r("0934"),Mw=r.n(Iw);function qw(t){var e=Mw.a.enc.Utf8.parse(t),r="1234123412ABCDEF",n="ABCDEF1234123412",o=Mw.a.enc.Utf8.parse(r),i=Mw.a.enc.Utf8.parse(n),a=Mw.a.AES.encrypt(e,o,{iv:i,mode:Mw.a.mode.CBC,padding:Mw.a.pad.Pkcs7}),s=a.ciphertext.toString();return s}r("517c")},"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,d=u<<16|65535&c;o[0]^=c,o[1]^=f,o[2]^=u,o[3]^=d,o[4]^=c,o[5]^=f,o[6]^=u,o[7]^=d;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){},2364:function(e,r){e.exports=t},"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}))},2409:function(t,e,r){"use strict";r("6c26")},"26b4":function(t,e,r){},"289a":function(t,r){t.exports=e},"294f":function(t,e,r){},"2a55":function(t,e,r){"use strict";e.byteLength=u,e.toByteArray=d,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 d(t){var e,r,n=l(t),a=n[0],s=n[1],c=new i(f(t,a,s)),u=0,d=s>0?a-4:a;for(r=0;r<d;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 h(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(h(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},"2a6c":function(t,e,r){"use strict";r("9013")},"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}))},"2c52":function(t,e,r){},"2f24":function(t,e,r){"use strict";r("63ce")},"336c":function(t,e){t.exports=r},"338e":function(t,e,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,d=f?u.render:u.beforeCreate;f?(u._injectStyles=l,u.render=function(t,e){return l.call(e),d(t,e)}):u.beforeCreate=d?[].concat(d,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}])}))},"3cdd":function(t,e,r){},4089:function(t,e,r){"use strict";r("338e")},4102:function(t,e,r){},"475a":function(t,e,r){"use strict";r("6b61")},"4b6e":function(t,e,r){},"517c":function(t,e,r){},"521b":function(t,e,r){},"53e9":function(t,e,r){"use strict";r("7dac")},"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},5966:function(t,e,r){"use strict";r("805e")},"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}))},"5dd0":function(t,e,r){"use strict";r("a479")},6389:function(t,e){t.exports=i},"63ce":function(t,e,r){},"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],d=r[7],h=n.high,p=n.low,v=o.high,m=o.low,y=i.high,g=i.low,b=a.high,w=a.low,_=s.high,x=s.low,k=c.high,O=c.low,S=f.high,E=f.low,j=d.high,N=d.low,L=h,P=p,C=v,A=m,T=y,R=g,D=b,I=w,M=_,q=x,B=k,F=O,$=S,V=E,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&$,dt=q&F^~q&V,ht=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),mt=(P>>>28|L<<4)^(P<<30|L>>>2)^(P<<25|L>>>7),yt=(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+yt+(xt>>>0<U>>>0?1:0),Ot=(xt=xt+dt,kt=kt+ft+(xt>>>0<dt>>>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),mt+pt),St=vt+ht+(Ot>>>0<mt>>>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+St+(P>>>0<xt>>>0?1:0)|0}p=n.low=p+P,n.high=h+L+(p>>>0<P>>>0?1:0),m=o.low=m+A,o.high=v+C+(m>>>0<A>>>0?1:0),g=i.low=g+R,i.high=y+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),E=f.low=E+V,f.high=S+$+(E>>>0<V>>>0?1:0),N=d.low=N+U,d.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){},"6b48":function(t,e,r){},"6b61":function(t,e,r){},"6b612":function(t,e,r){"use strict";r("3cdd")},"6c26":function(t,e,r){},7022:function(t,e,r){"use strict";r("ef2a")},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=[],d=[],h=[],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],m=t[v],y=t[m],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*y^65537*m^257*v^16843008*r;f[o]=g<<24|g>>>8,d[o]=g<<16|g>>>16,h[o]=g<<8|g>>>24,p[o]=g,r?(r=v^t[t[t[y^v]]],n^=t[t[n]]):r=n=1}})();var v=[0,1,2,4,8,16,32,64,128,27,54],m=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]]^d[i[u>>>16&255]]^h[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,d,h,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],d=t[e+3]^r[3],h=4,p=1;p<c;p++){var v=n[l>>>24]^o[u>>>16&255]^i[f>>>8&255]^a[255&d]^r[h++],m=n[u>>>24]^o[f>>>16&255]^i[d>>>8&255]^a[255&l]^r[h++],y=n[f>>>24]^o[d>>>16&255]^i[l>>>8&255]^a[255&u]^r[h++],g=n[d>>>24]^o[l>>>16&255]^i[u>>>8&255]^a[255&f]^r[h++];l=v,u=m,f=y,d=g}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&d])^r[h++],m=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[255&l])^r[h++],y=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[h++],g=(s[d>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^r[h++];t[e]=v,t[e+1]=m,t[e+2]=y,t[e+3]=g},keySize:8});e.AES=n._createHelper(m)}(),t.AES}))},"727b":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/
|