@xatlas/rainbow-core 2.5.1 → 2.5.2

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.
@@ -24,7 +24,7 @@ e.read=function(t,e,n,r,o){var i,a,s=8*o-r-1,c=(1<<s)-1,l=c>>1,u=-7,f=n?o-1:0,d=
24
24
 
25
25
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
  */
27
- return function(e){var n=t,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,s=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=o.create([0,1518500249,1859775393,2400959708,2840853838]),d=o.create([1352829926,1548603684,1836072691,2053994217,0]),p=a.RIPEMD160=i.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,o=t[r];t[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,a,p,w,_,x,k,O,S,E,j,N=this._hash.words,L=f.words,P=d.words,C=s.words,A=c.words,T=l.words,R=u.words;x=i=N[0],k=a=N[1],O=p=N[2],S=w=N[3],E=_=N[4];for(n=0;n<80;n+=1)j=i+t[e+C[n]]|0,j+=n<16?h(a,p,w)+L[0]:n<32?v(a,p,w)+L[1]:n<48?m(a,p,w)+L[2]:n<64?y(a,p,w)+L[3]:g(a,p,w)+L[4],j|=0,j=b(j,T[n]),j=j+_|0,i=_,_=w,w=b(p,10),p=a,a=j,j=x+t[e+A[n]]|0,j+=n<16?g(k,O,S)+P[0]:n<32?y(k,O,S)+P[1]:n<48?m(k,O,S)+P[2]:n<64?v(k,O,S)+P[3]:h(k,O,S)+P[4],j|=0,j=b(j,R[n]),j=j+E|0,x=E,E=S,S=b(O,10),O=k,k=j;j=N[1]+p+S|0,N[1]=N[2]+w+E|0,N[2]=N[3]+_+x|0,N[3]=N[4]+i+k|0,N[4]=N[0]+a+O|0,N[0]=j},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function h(t,e,n){return t^e^n}function v(t,e,n){return t&e|~t&n}function m(t,e,n){return(t|~e)^n}function y(t,e,n){return t&n|e&~n}function g(t,e,n){return t^(e|~n)}function b(t,e){return t<<e|t>>>32-e}n.RIPEMD160=i._createHelper(p),n.HmacRIPEMD160=i._createHmacHelper(p)}(Math),t.RIPEMD160}))},b69c:function(t,e,n){"use strict";n("49fc")},b7f9:function(t,e,n){"use strict";function r(t){return r="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},r(t)}function o(t){return c(t)||s(t)||a(t)||i()}function i(){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 a(t,e){if(t){if("string"===typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function s(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function c(t){if(Array.isArray(t))return l(t)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new A(r||[]);return i(a,"_invoke",{value:N(t,n,s)}),a}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var h="suspendedStart",v="suspendedYield",m="executing",y="completed",g={};function b(){}function w(){}function _(){}var x={};f(x,s,(function(){return this}));var k=Object.getPrototypeOf,O=k&&k(k(T([])));O&&O!==n&&o.call(O,s)&&(x=O);var S=_.prototype=b.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(i,a,s,c){var l=p(t[i],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==r(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,s,c)}),(function(t){n("throw",t,s,c)})):e.resolve(f).then((function(t){u.value=t,s(u)}),(function(t){return n("throw",t,s,c)}))}c(l.arg)}var a;i(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function N(e,n,r){var o=h;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var l=p(e,n,r);if("normal"===l.type){if(o=r.done?y:v,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=y,r.method="throw",r.arg=l.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=p(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function T(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+" is not iterable")}return w.prototype=_,i(S,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(j.prototype),f(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new j(d(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),f(S,l,"Generator"),f(S,s,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function f(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function d(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){f(i,r,o,a,s,"next",t)}function s(t){f(i,r,o,a,s,"throw",t)}a(void 0)}))}}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(t,e,n){return e=m(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){var e=y(t,"string");return"symbol"==r(e)?e:String(e)}function y(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}e["a"]={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:h({},this.values)||{},hasFile:!1}},created:function(){var t=this;if(this.defaultValues){var e=function(e){var n=t.columns.find((function(t){return t.name===e}))||void 0,r=(null===n||void 0===n?void 0:n.required)||!1;if(null!==n&&void 0!==n&&n.configs.length){var o=Object.fromEntries(n.configs.map((function(t){return[t.key,t.value]})));r=o&&o.required?"1"===o.required:null===n||void 0===n?void 0:n.required}(void 0===t.actionModel[e]||""===t.actionModel[e]&&r)&&t.$set(t.actionModel,e,t.defaultValues[e])};for(var n in this.defaultValues)e(n)}},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 n,r=["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:r?"change":"blur"}),e.maxLength&&e.minLength)&&(n=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:n,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 n=e.name;this.setModel(n,t)},handleItemFill:function(t){var e=this;t.forEach((function(t){return e.setModel(t.name,t.value)}))},handleSubmit:function(){var t=this;return d(u().mark((function e(){return u().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 d(u().mark((function e(){var n,r,i,a,s;return u().wrap((function(e){while(1)switch(e.prev=e.next){case 0:Array.isArray(t.actionModel)?n=t.actionModel:(r=t.params,i=void 0===r?{}:r,a=i.valuesName,s=a?[].concat(o(t.columns),[{name:a}]):t.columns,n=Object.fromEntries(s.map((function(e){var n=void 0===t.actionModel[e.name]?null:t.actionModel[e.name];return[e.name,n]})))),t.$emit("commit",n);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}}}},bd28:function(t,e,n){"use strict";n("aa2c")},bf17:function(t,e,n){(function(e){(function(e,n){t.exports=n()})(0,(function(){var t=t||function(t,r){var o;if("undefined"!==typeof window&&window.crypto&&(o=window.crypto),"undefined"!==typeof self&&self.crypto&&(o=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(o=globalThis.crypto),!o&&"undefined"!==typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&"undefined"!==typeof e&&e.crypto&&(o=e.crypto),!o)try{o=n(0)}catch(y){}var i=function(){if(o){if("function"===typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(y){}if("function"===typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(y){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),s={},c=s.lib={},l=c.Base=function(){return{extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=c.WordArray=l.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=e!=r?e:4*t.length},toString:function(t){return(t||d).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,o=t.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=n[i>>>2]>>>24-i%4*8&255;e[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var s=0;s<o;s+=4)e[r+s>>>2]=n[s>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=l.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(i());return new u.init(e,t)}}),f=s.enc={},d=f.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o<n;o++){var i=e[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new u.init(n,e/2)}},p=f.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o<n;o++){var i=e[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new u.init(n,e)}},h=f.Utf8={stringify:function(t){try{return decodeURIComponent(escape(p.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return p.parse(unescape(encodeURIComponent(t)))}},v=c.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=h.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,o=r.words,i=r.sigBytes,a=this.blockSize,s=4*a,c=i/s;c=e?t.ceil(c):t.max((0|c)-this._minBufferSize,0);var l=c*a,f=t.min(4*l,i);if(l){for(var d=0;d<l;d+=a)this._doProcessBlock(o,d);n=o.splice(0,l),r.sigBytes-=f}return new u.init(n,f)},clone:function(){var t=l.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),m=(c.Hasher=v.extend({cfg:l.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new m.HMAC.init(t,n).finalize(e)}}}),s.algo={});return s}(Math);return t}))}).call(this,n("a42b"))},c099:function(t,e,n){},c14c:function(t,e,n){"use strict";n("d636")},c246:function(t,e,n){"use strict";var r=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",attrs:{config:t.configs}})]},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,n){return e?"当前页面 ".concat(n[0],"-").concat(n[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},scopedSlots:t._u([t.actionConfigs["form.footer"]?{key:"footer",fn:function(){return[e(t.actionConfigs["form.footer"],{tag:"component",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:{ok:t.submitActionView,close:t.closeActionView}})]},proxy:!0}:null],null,!0)},[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()])},o=[],i={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(){}},a={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:{}},s=n("796d"),c=n.n(s);function l(t){return l="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},l(t)}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),s=new A(r||[]);return o(a,"_invoke",{value:N(t,n,s)}),a}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var h="suspendedStart",v="suspendedYield",m="executing",y="completed",g={};function b(){}function w(){}function _(){}var x={};f(x,a,(function(){return this}));var k=Object.getPrototypeOf,O=k&&k(k(T([])));O&&O!==n&&r.call(O,a)&&(x=O);var S=_.prototype=b.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,a,s){var c=p(t[o],t,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==l(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function N(e,n,r){var o=h;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var l=p(e,n,r);if("normal"===l.type){if(o=r.done?y:v,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=y,r.method="throw",r.arg=l.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=p(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function T(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(l(e)+" is not iterable")}return w.prototype=_,o(S,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(j.prototype),f(j.prototype,s,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new j(d(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),f(S,c,"Generator"),f(S,a,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function f(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function d(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){f(i,r,o,a,s,"next",t)}function s(t){f(i,r,o,a,s,"throw",t)}a(void 0)}))}}function p(t){return y(t)||m(t)||v(t)||h()}function h(){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 v(t,e){if(t){if("string"===typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(t,e):void 0}}function m(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function y(t){if(Array.isArray(t))return g(t)}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach((function(e){_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _(t,e,n){return e=x(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function x(t){var e=k(t,"string");return"symbol"==l(e)?e:String(e)}function k(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var O={props:{profileMode:{type:String,default:"page",enum:["page","embed","column","collapse","preview"]},layout:{type:String,default:"layout-view-model-list"}},data:function(){return{query:{},schemaFuncQueue:[],unwatchQuery:null,autoRefreshTimer:null}},computed:{columns:function(){var t=this,e=this.$createElement,n=this.idName,r=this.hide,o=this.action,i=this.model.attrs.filter((function(t){return!["all","list"].includes(t.hidden)&&!r.includes(t.name)&&t.name!==n&&"model"!==t.metaType&&"link"!==t.type})).map((function(n){var r=Object.fromEntries(n.configs.map((function(t){return[t.key,t.value]})));return{dataIndex:n.name,key:n.name,title:n.alias,align:["Integer","Number"].includes(n.metaType)?"right":"left",schema:n,width:r["list.width"],fixed:r["list.fixed"]||!1,ellipsis:"true"===r["list.ellipsis"],customRender:function(r,i,a){return e("Cell",{on:{profile:function(){return t.handleModelProfile(i)},change:function(e){return t.handleCellChange(e,n.name,i)}},attrs:{value:r,row:i,schema:n,editable:t.editable(i,o,n),idName:t.idName,rowIndex:a}})}}})),a=[],s=null;return this.configs&&this.configs["list.collapse.action"]&&(isNaN(Number(this.configs["list.collapse.action"]))?a=this.configs["list.collapse.action"].split(","):s=Number(this.configs["list.collapse.action"])),this.inlineActions&&this.inlineActions.length&&!this.actionRowEditing&&i.push({title:"操作",key:"_action",fixed:this.configs["list.scrollX"]?"right":null,customRender:function(n,r){var o=null;return o=a.length?[e("span",[t.rowActions(r).filter((function(t){return!a.includes(t.key)})).map((function(n,o){return[o?e("a-divider",{attrs:{type:"vertical"}}):"",e("a",{on:{click:function(e){return t.handleRowAction(n,r,e)}}},[n.name,"file"===n.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(n,e.target.files),e.target.value=""}}}):""])]}))]),t.rowActions(r).filter((function(t){return!a.includes(t.key)})).length?e("a-divider",{attrs:{type:"vertical"}}):"",t.rowActions(r).filter((function(t){return a.includes(t.key)})).length?e("a-dropdown",{attrs:{trigger:["click"]}},[e("a",{class:"ant-dropdown-link",on:{click:function(t){return t.preventDefault()}}},["更多 ",e("a-icon",{attrs:{type:"down"}})]),e("a-menu",{slot:"overlay"},[t.rowActions(r).filter((function(t){return a.includes(t.key)})).map((function(n,o){return e("a-menu-item",{key:n.id},[e("a",{on:{click:function(e){return t.handleRowAction(n,r,e)}}},[n.name,"file"===n.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(n,e.target.files),e.target.value=""}}}):""])])}))])]):""]:s?[e("span",[t.rowActions(r).slice(0,s).map((function(n,o){return[o?e("a-divider",{attrs:{type:"vertical"}}):"",e("a",{on:{click:function(e){return t.handleRowAction(n,r,e)}}},[n.name,"file"===n.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(n,e.target.files),e.target.value=""}}}):""])]}))]),t.rowActions(r).slice(0,s).length?e("a-divider",{attrs:{type:"vertical"}}):"",t.rowActions(r).slice(s).length?e("a-dropdown",{attrs:{trigger:["click"]}},[e("a",{class:"ant-dropdown-link",on:{click:function(t){return t.preventDefault()}}},["更多 ",e("a-icon",{attrs:{type:"down"}})]),e("a-menu",{slot:"overlay"},[t.rowActions(r).slice(s).map((function(n,o){return e("a-menu-item",{key:n.id},[e("a",{on:{click:function(e){return t.handleRowAction(n,r,e)}}},[n.name,"file"===n.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(n,e.target.files),e.target.value=""}}}):""])])}))])]):""]:t.rowActions(r).map((function(n,o){return[o?e("a-divider",{attrs:{type:"vertical"}}):"",e("a",{on:{click:function(e){return t.handleRowAction(n,r,e)}}},[n.name,"file"===n.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(n,e.target.files),e.target.value=""}}}):""])]})),{children:o}},actions:function(e){return t.rowActions(e)}}),i},configs:function(){return this.schema&&this.schema.configs&&this.schema.configs.length?Object.fromEntries(this.schema.configs.map((function(t){return[t.key,t.value]}))):null},filters:function(){var t=this;return this.model&&this.model.filters?this.model.filters.filter((function(e){return!t.hide.includes(e.name)&&!["tree-select"].includes(e.control)})).map((function(e){var n=t.model.attrs.find((function(t){return t.name===e.name}));return w(w({},n),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 n=t.model.attrs.find((function(t){return t.name===e.name}));return w(w({},n),e)})):[]},filterValues:function(){var t=[].concat(p(this.filters),p(this.treeFilters)).filter((function(t){return!!t.value})).map((function(t){return[t.name,t.value]}));return w(w({},Object.fromEntries(t)),this.defaults)},dataSource:function(){var t=this,e=this.findAll;if(this.actionModel){var n=e.find((function(e){return e[t.idName]===t.actionModel[t.idName]}));for(var r in n)n[r]!==this.actionModel[r]&&(this.actionModel[r]=n[r])}return e},next:function(){var t=this,e=this.actionModel&&this.actionModel[this.idName],n=this.findAll.findIndex((function(n){return n[t.idName]===e}));return this.findAll[n+1]},previous:function(){var t=this,e=this.actionModel&&this.actionModel[this.idName],n=this.findAll.findIndex((function(n){return n[t.idName]===e}));return this.findAll[n-1]}},created:function(){var t=this;return d(u().mark((function e(){var n;return u().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.schema){e.next=4;break}return e.next=3,t.loadSchema();case 3:while(t.schemaFuncQueue.length>0)n=t.schemaFuncQueue.pop(),n();case 4:t.query=t.params.route&&t.params.route.query.close?w(w(w({},t.query),t.params.filters),t.filterValues):w(w(w(w({},t.query),t.params.filters),t.filterValues),t.$route.query);case 5:case"end":return e.stop()}}),e)})))()},activated:function(){var t=this;this.schema?this.configs&&this.configs["auto-refresh"]&&(this.autoRefreshTimer=!0,this.autoRefresh(+this.configs["auto-refresh"])):this.schemaFuncQueue.push((function(){t.configs&&t.configs["auto-refresh"]&&(t.autoRefreshTimer=!0,t.autoRefresh(+t.configs["auto-refresh"]))})),this.parentIds||"page"!==this.mode||c.a.stringify(this.query)!==c.a.stringify(this.$route.query)&&(this.query=w(w({},this.query),this.$route.query),this.$router.push({query:this.query})),this.unwatchQuery=this.$watch("query",{handler:function(t,e){var n=Object.keys(t),r=Object.keys(e),o=n.some((function(e){return!r.includes(e)&&!t[e]}));o||(this.load(),this.clearSelection&&this.clearSelection(),!this.parentIds&&"page"===this.mode&&this.$router.push({query:this.query}))},deep:!0})},deactivated:function(){this.autoRefreshTimer&&clearTimeout(this.autoRefreshTimer),this.autoRefreshTimer=null,this.unwatchQuery&&this.unwatchQuery()},methods:{autoRefresh:function(t){var e=this;return d(u().mark((function n(){return u().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.handleRefresh();case 2:e.autoRefreshTimer&&(e.autoRefreshTimer=setTimeout((function(){return e.autoRefresh(t)}),t));case 3:case"end":return n.stop()}}),n)})))()},load:function(){var t=arguments,e=this;return d(u().mark((function n(){var r,o;return u().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.length>0&&void 0!==t[0]&&t[0],n.next=3,e.loadData({query:e.query,mute:r});case 3:return o=n.sent,n.abrupt("return",o);case 5:case"end":return n.stop()}}),n)})))()},handleNext:function(){this.actionModel=w({},this.next)},handlePrevious:function(){this.actionModel=w({},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=w({},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 n=this.configs["list.separateKey"]||null,r=this.configs["list.separateValue"]||null;return n&&r&&t[n]===r?"list-separate-color":""},onFileChange:function(t,e){var n=t.list?t.list:"file";this.handleAction(t,null,_({},n,e))},editable:function(t,e,n){var r,o=w({},this.configs);if(null!==e&&void 0!==e&&null!==(r=e.configs)&&void 0!==r&&r.length){var i=Object.fromEntries(e.configs.map((function(t){return[t.key,t.value]})));o=w(w({},o),i)}var a=o["list.actionRowNotEditing.key"]&&o["list.actionRowNotEditing.value"]?this.actionRowEditing&&!o["list.actionRowNotEditing.value"].split(",").includes(t[o["list.actionRowNotEditing.key"]]):this.actionRowEditing;if(null!==e&&void 0!==e&&e.list){var s=e.list.split(",");return a&&s.includes(n.name)}return a}}},S={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 E(t){return P(t)||L(t)||N(t)||j()}function j(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function N(t,e){if(t){if("string"===typeof t)return C(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(t,e):void 0}}function L(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function P(t){if(Array.isArray(t))return C(t)}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var A={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,n=this.dataSource,r=function t(n,r){for(var o=0;o<n.length;o++){if(n[o][e]===r)return n[o];if(n[o]._childList){var i=t(n[o]._childList,r);if(i)return i}}return null};"picker"===this.mode&&"multiple"===this.pickerMode?(this.selections=[].concat(E(this.selections),E(t.map((function(t){return r(n,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(n){var r=t.findIndex((function(t){return t===n[e]}));return-1!==r}))):this.selections=t.map((function(t){return r(n,t)})),this.$emit("selected",this.selections)}}},T=n("cf8b"),R=n("c6e8");function D(t){return D="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},D(t)}function I(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */I=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==D(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(D(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function M(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function q(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){M(i,r,o,a,s,"next",t)}function s(t){M(i,r,o,a,s,"throw",t)}a(void 0)}))}}var F=function(t,e){return $.apply(this,arguments)};function $(){return $=q(I().mark((function t(e,n){var r,o,i,a,s,c;return I().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("refresh"!==e){t.next=5;break}if("true"!==n.configs["flush-badges"]){t.next=4;break}return t.next=4,null===(i=window)||void 0===i||null===(i=i.sidebar)||void 0===i?void 0:i.setBadges();case 4:return t.abrupt("return");case 5:if(a=null===e||void 0===e||null===(r=e.params)||void 0===r||null===(r=r.commit)||void 0===r?void 0:r.type,s=(null!==(o=n.storeNamespace.match(new RegExp(":id","g")))&&void 0!==o?o:[]).length,a&&["load","loadAll"].includes(a)&&n.load&&n.load(),!a||!["parent.load","parent.loadAll"].includes(a)){t.next=14;break}if(t.t0=n.view&&n.view.load,!t.t0){t.next=13;break}return t.next=13,n.view.load();case 13:s&&n.load&&n.load();case 14:if(a&&["loadSchema","loadAll"].includes(a)&&n.loadSchema&&n.loadSchema(),!a||!["parent.loadSchema","parent.loadAll"].includes(a)){t.next=21;break}if(t.t1=n.view&&this.view.loadSchema,!t.t1){t.next=20;break}return t.next=20,n.view.loadSchema();case 20:s&&n.loadSchema&&n.loadSchema();case 21:if("true"!==n.configs["flush-badges"]){t.next=24;break}return t.next=24,null===(c=window)||void 0===c||null===(c=c.sidebar)||void 0===c?void 0:c.setBadges();case 24:case"end":return t.stop()}}),t,this)}))),$.apply(this,arguments)}function B(t){return B="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},B(t)}function V(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */V=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==B(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(B(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function H(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function U(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){H(i,r,o,a,s,"next",t)}function s(t){H(i,r,o,a,s,"throw",t)}a(void 0)}))}}var G=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e?n&&n.viewMode&&"download"===n.viewMode?window.open("/file/getfile/".concat(e,"?_time=").concat((new Date).getTime(),"&viewMode=").concat(n.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")},z={methods:{handleFile:function(t){var e=this;return U(V().mark((function n(){var r,o,i,a;return V().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=t.list?t.list:"file",o=new FormData,i=e.idName,e.actionModel[r]){n.next=5;break}return n.abrupt("return");case 5:return o.append(r,e.actionModel[r][0]),e.actionModel[i]&&o.append(i,e.actionModel[i]),a=e.$message.loading("正在".concat(t.name,",请稍等..."),0),n.next=10,e.saveData({key:t.key,data:o});case 10:F(t,e),a();case 12:case"end":return n.stop()}}),n)})))()},handleFilesUpload:function(t){var e=this;return U(V().mark((function t(){return V().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 U(V().mark((function n(){var r,o;return V().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=function(){var n=U(V().mark((function n(){var r,o,i;return V().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.$message.loading("正在".concat(t.name,",请稍等..."),0),n.next=3,e.executeData({key:t.key,data:e.actionModel||e.selections[0]});case 3:o=n.sent,r(),o instanceof Error||(i=o&&o.file_id?o.file_id:null,G(e.apiBaseURL,i,{viewMode:"download"}));case 6:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),!t.params||!t.params.confirm){n.next=6;break}o=t.params.confirm,e.$confirm({title:o.title||t.name,content:o.content||"您确认要执行【".concat(t.name,"】操作吗?"),onOk:function(){r()}}),n.next=8;break;case 6:return n.next=8,r();case 8:case"end":return n.stop()}}),n)})))()},handleExport:function(t){var e=arguments,n=this;return U(V().mark((function r(){var o,i,a;return V().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(o=e.length>1&&void 0!==e[1]&&e[1],i=function(){var e=U(V().mark((function e(){var r,i,a;return V().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=n.$message.loading("正在".concat(t.name,",请稍等..."),0),e.next=3,n.executeData({key:t.key,data:n.selections.length?o?n.selections[0]:n.selections:n.actionModel||{}});case 3:i=e.sent,r(),i instanceof Error||(a=i&&i.file_id?i.file_id:null,G(n.apiBaseURL,a));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!t.params||!t.params.confirm){r.next=7;break}a=t.params.confirm,n.$confirm({title:a.title||t.name,content:a.content||"您确认要执行【".concat(t.name,"】操作吗?"),onOk:function(){i()}}),r.next=9;break;case 7:return r.next=9,i();case 9:case"end":return r.stop()}}),r)})))()},handleExportFilter:function(t){var e=this;return U(V().mark((function n(){var r,o;return V().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=function(){var n=U(V().mark((function n(){var r,o,i;return V().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.$message.loading("正在".concat(t.name,",请稍等..."),0),n.next=3,e.executeData({key:t.key,data:e.selections.length?e.selections:{},query:e.query});case 3:o=n.sent,r(),o instanceof Error||(i=o&&o.file_id?o.file_id:null,G(e.apiBaseURL,i));case 6:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),!t.params||!t.params.confirm){n.next=6;break}o=t.params.confirm,e.$confirm({title:o.title||t.name,content:o.content||"您确认要执行【".concat(t.name,"】操作吗?"),onOk:function(){r()}}),n.next=8;break;case 6:return n.next=8,r();case 8:case"end":return n.stop()}}),n)})))()},handleExportOne:function(t){this.handleExport(t,!0)}}};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(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function W(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(n),!0).forEach((function(e){J(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function J(t,e,n){return e=Z(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Z(t){var e=X(t,"string");return"symbol"==K(e)?e:String(e)}function X(t,e){if("object"!=K(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=K(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Q(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Q=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==K(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(K(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function tt(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function et(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){tt(i,r,o,a,s,"next",t)}function s(t){tt(i,r,o,a,s,"throw",t)}a(void 0)}))}}var nt=n("9f89"),rt=/\${([\s\S]+?)}/g,ot={methods:{handleViewPicker:function(t){var e=this;return et(Q().mark((function t(){return Q().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 et(Q().mark((function n(){var r,o,i,a,s,c,l,u,f,d;return Q().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.params,o=r.treeUrl,i=r.dataUrl,a=r.keyName,s=r.titleName,c=r.valueName,l=r.valuesName,e.actioning=!0,u=W(W({},e.actionModel),{},{$parent:e.actionParams.$parent}),n.next=5,e.$api.get(nt(o,{reInterpolate:rt})(u));case 5:return f=n.sent,n.next=8,e.$api.get(nt(i,{reInterpolate:rt})(u));case 8:d=n.sent,e.actioning=!1,e.actionParams=W(W({},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 n.stop()}}),n)})))()},handleTransferSelect:function(t){var e=this;return et(Q().mark((function n(){var r,o,i,a,s,c,l,u,f,d,p;return Q().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.params,o=r.treeUrl,i=r.dataUrl,a=r.keyName,s=r.titleName,c=r.valueName,l=r.valuesName,u=r.selected,e.actioning=!0,f=W(W({},e.actionModel),{},{$parent:e.actionParams.$parent}),n.next=5,e.$api.get(nt(o,{reInterpolate:rt})(f));case 5:return d=n.sent,n.next=8,e.$api.get(nt(i,{reInterpolate:rt})(f));case 8:p=n.sent,e.actioning=!1,e.actionParams=W(W({},e.actionParams),{},{treeData:d.data&&d.data.collection,data:p.data&&p.data.collection,keyName:a,titleName:s,valueName:c,valuesName:l,selected:u}),e.actionViewWidget="picker-transfer-form",e.showActionView();case 13:case"end":return n.stop()}}),n)})))()},handleAlgorithm:function(){var t=this;return et(Q().mark((function e(){return Q().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 et(Q().mark((function n(){var r,o,i,a,s;return Q().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.params,o=r.treeUrl,i=r.valuesName,e.actioning=!0,a=W(W({},e.actionModel),{},{$parent:e.actionParams.$parent}),n.next=5,e.$api.get(nt(o,{reInterpolate:rt})(a));case 5:s=n.sent,e.actioning=!1,e.actionParams=W(W({},e.actionParams),{},{treeData:s.data&&s.data.collection,valuesName:i}),e.showActionView();case 9:case"end":return n.stop()}}),n)})))()}}};function it(t){return it="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},it(t)}function at(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function st(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?at(Object(n),!0).forEach((function(e){ft(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ct(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ct=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==it(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(it(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function lt(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function ut(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){lt(i,r,o,a,s,"next",t)}function s(t){lt(i,r,o,a,s,"throw",t)}a(void 0)}))}}function ft(t,e,n){return e=dt(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dt(t){var e=pt(t,"string");return"symbol"==it(e)?e:String(e)}function pt(t,e){if("object"!=it(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=it(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ht={mixins:[z,ot],methods:{handleRowAction:function(){},handleFindAll:function(){},handleFindOne:function(){},handleCreate:function(t){this.formMode="create",this.parentIdName&&this.actionModel&&(this.actionModel=ft({},this.parentIdName,this.actionModel[this.nodeName])),this.showActionView()},handleUpdate:function(t){this.formMode="update",this.showActionView()},handleDelete:function(t){var e=this;return ut(ct().mark((function n(){return ct().wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.$confirm({title:t.name,content:"此操作将永久删除该数据, 是否继续?",okText:"确定",cancelText:"取消",onOk:function(){var n=ut(ct().mark((function n(){return ct().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.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(),F(t,e);case 5:case"end":return n.stop()}}),n)})));function r(){return n.apply(this,arguments)}return r}()});case 1:case"end":return n.stop()}}),n)})))()},handleBulkEdit:function(){this.bulkAction=st({},this.action),this.actionRowEditing=!0},handleCancelEdit:function(){var t=this;return ut(ct().mark((function e(){return ct().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 ut(ct().mark((function n(){return ct().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.length>0&&void 0!==t[0]?t[0]:e.formAction,e.actioning=!0,n.next=4,e.commitActionView(e.editions);case 4:e.actioning=!1;case 5:case"end":return n.stop()}}),n)})))()},handleOne:function(t){var e=this;return ut(ct().mark((function n(){return ct().wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.handleBulk(t,1);case 1:case"end":return n.stop()}}),n)})))()},handleBulk:function(t){var e=arguments,n=this;return ut(ct().mark((function r(){var o,i,a,s,c,l,u,f,d,p,h,v;return ct().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(o=e.length>1&&void 0!==e[1]?e[1]:0,i=n.selections.length,a=n.action.params,s=void 0===a?{}:a,c=s.actionAfterDriver,l=void 0===c?{}:c,u=l.redirect,f=void 0!==u&&u,!(o&&i>o)){r.next=5;break}return r.abrupt("return",n.$message.error("所选数据不允许超过 ".concat(o," 条")));case 5:d=i>1?" ".concat(i," 条"):"",p={method:t.method||"post",key:t.key,data:n.selections.length?n.selections:[n.actionModel],type:t.params&&t.params.commit?t.params.commit.type:""},h=function(){t.params&&t.params.commit&&"remove"===t.params.commit.type&&(n.id?n.handleBack():n.findAll.length||n.load&&n.load())},v=function(t){f&&t.redirectUrl&&n.$router.push(t.redirectUrl)},n.$confirm({title:t.name,content:"确认对选定的".concat(d,"数据进行【").concat(t.name,"】操作?"),okText:"确定",cancelText:"取消",onOk:t.params&&t.params.sync?function(){var e=n.saveData(p);h(),F(t,n),v(e)}:ut(ct().mark((function e(){var r;return ct().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.saveData(p);case 2:r=e.sent,h(),F(t,n),v(r);case 6:case"end":return e.stop()}}),e)})))});case 10:case"end":return r.stop()}}),r)})))()},handleEver:function(t){var e=this;return ut(ct().mark((function n(){var r;return ct().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.$message.loading("正在".concat(t.name,",请稍等..."),0),n.next=3,e.executeData({key:t.key,data:{},query:e.query?e.query:{}});case 3:r();case 4:case"end":return n.stop()}}),n)})))()},handleRouter:function(t){var e=this;return ut(ct().mark((function n(){var r;return ct().wrap((function(n){while(1)switch(n.prev=n.next){case 0:r=t.legend,r=Object(R["a"])(r,st({$parent:e.params.$parent,user:e.$store.state.user},e.actionModel)),e.$router.push(r);case 3:case"end":return n.stop()}}),n)})))()},handleLink:function(t){var e=this;return ut(ct().mark((function n(){var r;return ct().wrap((function(n){while(1)switch(n.prev=n.next){case 0:r=t.legend,r=Object(R["a"])(r,st({$parent:e.params.$parent,user:e.$store.state.user},e.actionModel)),window.open(r,"_blank");case 3:case"end":return n.stop()}}),n)})))()},handleBlank:function(t){var e=this;this.$confirm({title:t.name,content:"确认对选定的数据进行【".concat(t.name,"】操作?"),okText:"确定",cancelText:"取消",onOk:function(){var n=ut(ct().mark((function n(){var r,o;return ct().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.key?"".concat(e.pageKey,"/").concat(t.key):t.id,n.next=3,e.$api[t.method.toLowerCase()||"post"]("api/".concat(r),e.actionModel||e.selections[0]);case 3:o=n.sent,200===o.data.status?window.open(o.data.data.openNewUrl,"_blank"):e.$message.error(o.data.content);case 5:case"end":return n.stop()}}),n)})));function r(){return n.apply(this,arguments)}return r}()})},handleRefresh:function(){var t=this;return ut(ct().mark((function e(){var n,r;return ct().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.load){e.next=7;break}return e.next=3,t.load();case 3:return n=e.sent,e.next=6,F("refresh",t);case 6:n instanceof Error&&(r=n.response.data.code,404===r&&t.handleBack());case 7:case"end":return e.stop()}}),e)})))()},handleBack:function(){this.parentIds||"page"!==this.mode?this.$emit("close"):this.$router.back()},handleAutoFill:function(t){this.defaultModel||(this.defaultModel=st({},this.actionModel));var e=this.schema.id,n=t.target.checked,r=JSON.parse(localStorage.getItem("form_".concat(e)));if(r)for(var o in r)n?this.$set(this.actionModel,o,r[o]):this.$set(this.actionModel,o,this.defaultModel[o])}}};function vt(t){return vt="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},vt(t)}function mt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */mt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==vt(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(vt(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function yt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function gt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?yt(Object(n),!0).forEach((function(e){bt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function bt(t,e,n){return e=wt(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wt(t){var e=_t(t,"string");return"symbol"==vt(e)?e:String(e)}function _t(t,e){if("object"!=vt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=vt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function xt(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function kt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){xt(i,r,o,a,s,"next",t)}function s(t){xt(i,r,o,a,s,"throw",t)}a(void 0)}))}}var Ot={methods:{handleFlowReport:function(t){var e=this;return kt(mt().mark((function n(){var r,o;return mt().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.actionModel,e.actionConfirmMode=e.actioning=!0,n.next=4,e.saveData({key:t.key,data:gt({},r)});case 4:if(o=n.sent,e.actionConfirmMode=e.actioning=!1,o.data){n.next=8;break}return n.abrupt("return");case 8:e.actionModel=gt(gt({},r),{},{confirm:1,todo_actors:[]}),e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionParams.flow=o,e.actionViewVisible=!0;case 12:case"end":return n.stop()}}),n)})))()},handleFlowCheck:function(t){var e=this;return kt(mt().mark((function n(){var r,o;return mt().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.actionModel,e.actionConfirmMode=e.actioning=!0,n.next=4,e.saveData({key:t.key,data:gt({},r)});case 4:if(o=n.sent,e.actionConfirmMode=e.actioning=!1,o.data){n.next=8;break}return n.abrupt("return");case 8:e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionModel=gt(gt({},r),{},{data:gt({},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 n.stop()}}),n)})))()},handleFlowReassign:function(t){var e=this;return kt(mt().mark((function n(){var r,o;return mt().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.actionModel,e.actionConfirmMode=e.actioning=!0,n.next=4,e.saveData({key:t.key,data:gt({},r)});case 4:if(o=n.sent,e.actionConfirmMode=e.actioning=!1,o.data){n.next=8;break}return n.abrupt("return");case 8:e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionModel=gt(gt({},r),{},{data:gt({},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 n.stop()}}),n)})))()},handleFlowQuery:function(t){var e=this;return kt(mt().mark((function n(){var r,o;return mt().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.actionModel,e.actionConfirmMode=e.actioning=!0,n.next=4,e.saveData({key:t.key,data:gt({},r)});case 4:if(o=n.sent,e.actionConfirmMode=e.actioning=!1,o.data){n.next=8;break}return n.abrupt("return");case 8:e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionParams.flow=o,e.actionViewVisible=!0;case 11:case"end":return n.stop()}}),n)})))()},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 St(t){return St="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},St(t)}function Et(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Et=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==St(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(St(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function jt(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function Nt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){jt(i,r,o,a,s,"next",t)}function s(t){jt(i,r,o,a,s,"throw",t)}a(void 0)}))}}var Lt={methods:{commit:function(){return Nt(Et().mark((function t(){return Et().wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()}}},Pt=n("8320");function Ct(t){return Ct="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},Ct(t)}function At(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */At=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Ct(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Ct(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Tt(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function Rt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Tt(i,r,o,a,s,"next",t)}function s(t){Tt(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Dt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function It(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Dt(Object(n),!0).forEach((function(e){Mt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Mt(t,e,n){return e=qt(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qt(t){var e=Ft(t,"string");return"symbol"==Ct(e)?e:String(e)}function Ft(t,e){if("object"!=Ct(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ct(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var $t={create:["createonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},Bt={none:function(t,e){return 0===t&&!e},single:function(t,e){return 1===t||e},somewhat:function(t,e){return t>0||e},mulpitle:function(t,e){return t>1&&!e}},Vt={mixins:[ht,Ot,Lt,Pt["a"]],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:[],bulkAction:null,preview:!1}},computed:{actions:function(){var t=this,e=this.model.actions;if(!e)return[];var n=this.selections.length||0,r=!!this.profile;return e.filter((function(e){var o=!0,i=e.selected,a=e.action;return i&&Bt[i]&&(o=Bt[i](n,r)),"single"===e.selected&&"profile"===a&&r&&(o=!1),o&&!t.actionRowEditing&&t.showAction(e)}))},bulkActions:function(){var t=this.model.actions;return t?t.filter((function(t){return["somewhat","mulpitle"].includes(t.selected)})):[]},backActions:function(){return[{key:"_back",name:"返回",icon:"left",action:"back"}]},navActions:function(){return this.previous||this.next?[{key:"_previous",name:"",icon:"left",action:"previous",disabled:!this.previous},{key:"_next",name:"",icon:"right",action:"next",disabled:!this.next}]:[]},settingActions:function(){var t,e,n,r,o,i=[{key:(null===(t=this.bulkAction)||void 0===t?void 0:t.key)||"",name:"保存",icon:"save",method:"PUT",action:"saveEdit",primary:"1",list:(null===(e=this.bulkAction)||void 0===e?void 0:e.list)||null,configs:(null===(n=this.bulkAction)||void 0===n?void 0:n.configs)||[]},{key:"_cancle",name:"取消",icon:"stop",action:"cancelEdit",group:"1",list:(null===(r=this.bulkAction)||void 0===r?void 0:r.list)||null,configs:(null===(o=this.bulkAction)||void 0===o?void 0:o.configs)||[]}];return this.actionRowEditing?i:[{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(n){return e.showAction(n,t)}))},showAction:function(t,e){var n=t.params&&!!t.params.show,r=t.params&&(t.params.show||t.params.hide),o=this.params||this,i=o.$parent;if(!r)return!0;var a=this.profile?[this.profile]:e?[e]:this.selections||[],s=n;return a.length?s=n?a.every((function(t){return Object(T["a"])(r,It(It({},t),{},{$parent:i}))})):a.some((function(t){return Object(T["a"])(r,It(It({},t),{},{$parent:i}))})):i&&(s=Object(T["a"])(r,{$parent:i})),n?s:!s},actionBeforeDriver:function(t){var e=this;return Rt(At().mark((function n(){var r,o,i,a,s,l,u;return At().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,e.$api.get("/dataset/".concat(t,"?").concat(c.a.stringify(e.$store.state.user)));case 3:if(r=n.sent,o=r.data.data,i=void 0===o?[]:o,!i.length){n.next=14;break}if("500"!==i[0].code){n.next=12;break}return e.$message.error(i[0].content),n.abrupt("return",!1);case 12:if("200"!==i[0].code){n.next=14;break}return n.abrupt("return",!0);case 14:n.next=22;break;case 16:n.prev=16,n.t0=n["catch"](0),n.t0.response||e.$message.error("网络请求错误,请检查您的网络连接。"),a=n.t0.response,s=a.status,l=a.data,u=l&&l.content||"系统错误请与管理员联系。",e.$message.error("".concat(s,", ").concat(u));case 22:case"end":return n.stop()}}),n,null,[[0,16]])})))()},handleRowAction:function(t,e,n){var r=n.target.getElementsByTagName("input");if(this.selections=[e],"file"!==t.action)return this.handleAction(t,e);n.stopPropagation(),r[0]&&void 0===r[0].click()||n.path&&n.path[1].getElementsByTagName("input")[0].click()},handleAction:function(t,e,n){var r=this;return Rt(At().mark((function o(){var i,a,s,c,l;return At().wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(r.action=t,i=r.action.params,a=void 0===i?{}:i,s=a.actionBeforeDriver,c=void 0===s?"":s,!c){o.next=8;break}return o.next=5,r.actionBeforeDriver(c);case 5:if(l=o.sent,l){o.next=8;break}return o.abrupt("return",!1);case 8:return e||(e=r.profile||r.selections[0]||{}),["modal","drawer","fullscreen"].includes(t.display)&&(r.actionViewMode=t.display),r.actionModel=It(It(It({},e),n),r.defaults),r.actionParams=It(It({},t.params),{},{$parent:r.params.$parent}),"page"===t.display?r.routeAction(t):r.dispatchAction(t),o.abrupt("return",r);case 14:case"end":return o.stop()}}),o)})))()},handleCellChange:function(t,e,n){var r=this.idName,o=this.editions.find((function(t){return t[r]===n[r]}));o||(o=It({},n),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 n=t.action.replace(/^\S/,(function(t){return t.toUpperCase()}));this["handle".concat(n)](t)}else this[e[t.method]](t)}catch(r){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,n=this;return Rt(At().mark((function r(){var o,i,a,s,c,l,u,f,d,p,h,v,m,y,g,b,w,_,x,k,O,S,E;return At().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(o=e.length>1&&void 0!==e[1]?e[1]:null,o&&(n.preview=o.preview),i=n.selections,a=n.actionModel,s=n.idName,c=n.editions,l=n.action,u=l.key,f=l.method,d=l.params,p=void 0===d?{}:d,h=p.commit,v=void 0===h?{}:h,m=v.type,y=v.redirectProfile,g=p.autofill,b=p.confirmActionDialog,w=void 0===b?null:b,_=n.schema,x=function(){var e=Rt(At().mark((function e(){var r,l,d,p,h,v,b;return At().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i.length>1?(delete t[s],t=i.map((function(e){return It(It({},e),t)}))):a&&!c.length&&(t=It(It({},a),t)),r=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})))})),l={},d=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"===d&&(l.multiple=d),r||(t=n.transformData(t)),e.next=8,n.saveData({data:t,key:u,method:f,query:l,type:m,params:o});case 8:if(p=e.sent,p){if(g){for(b in h=It({},p),v=n.filterColumns().map((function(t){return t.name})),h)v.includes(b)||delete h[b];localStorage.setItem("form_".concat(_.id),JSON.stringify(h))}n.actionCommitResult.data=function(){return{data:p}},y&&n.handleModelProfile&&n.handleModelProfile(p),n.id&&m&&"remove"===m&&n.handleBack()}F({params:{commit:{type:m}}},n);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!w){r.next=12;break}k=/\$\{(\w+)\}/g,O=function(t){return w.content.replace(k,(function(e){var r=e.substring(2,e.length-1),o=n.columns.find((function(t){return t.key===r}))||null;return n.formatter(null,t[r],null===o||void 0===o?void 0:o.schema)}))},S=i.map((function(t){return O(t)})),E="summary"===w.type?S[0]:S.join(","),n.$confirm({title:"请再次确认以下信息,确认无误后提交!",content:"".concat(E,"。"),onOk:function(){return Rt(At().mark((function t(){return At().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,x();case 2:case"end":return t.stop()}}),t)})))()}}),r.next=14;break;case 12:return r.next=14,x();case 14:case"end":return r.stop()}}),r)})))()},filterColumns:function(){var t=this.action,e=this.params,n=this.model,r=this.hide,o=this.formMode,i=t&&t.view?t.view.model.attrs:e&&e.attrs?e.attrs:n.attrs?n.attrs:[];if(t&&t.list){var a=this.action.list.split(",");return i.filter((function(t){return!r.includes(t.name)&&a.includes(t.name)}))}return i.filter((function(t){return $t[o].includes(t.access)&&!r.includes(t.name)&&"collection"!==t.metaType&&"model"!==t.metaType&&"link"!==t.type}))},transformData:function(t){var e=new FormData;for(var n in t)if("object"!==Ct(t[n])||t[n]instanceof File)e.append("".concat(n),t[n]);else for(var r in t[n])Array.isArray(t[n])?e.append("".concat(n),t[n][r]instanceof File||"object"!==Ct(t[n][r])?t[n][r]:JSON.stringify(t[n][r])):e.append("".concat(n,".").concat(r),t[n][r]instanceof File||"object"!==Ct(t[n][r])?t[n][r]:JSON.stringify(t[n][r]));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,n=e&&e.find((function(t){return"result"===t.key}));200===this.status&&t&&(!this.actionConfirmMode&&this.$message.success(t),n?this.actionCommitResult.template=n.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=[]}},Ht=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))},Ut=[],Gt={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}}},zt=Gt,Kt=n("a6c2"),Yt=Object(Kt["a"])(zt,Ht,Ut,!1,null,null,null),Wt=Yt.exports,Jt=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(n){var r=n.item;return[e("a-list-item",[e(t.component,{tag:"component",attrs:{item:r}})],1)]}}])},"a-list",t.$attrs,!1))},Zt=[],Xt={props:["item"],computed:{component:function(){return{props:["item"],template:this.item||"<div></div>"}}}},Qt=Xt,te=Object(Kt["a"])(Qt,Jt,Zt,!1,null,null,null),ee=te.exports,ne={ListTable:Wt,ListNormal:ee},re=function(){var t=this,e=t._self._c;return e("a-form-model",{attrs:{layout:t.layout}},[t._l(t.attrs,(function(n,r){return e("Item",{key:"".concat(r,"-").concat(n.name),attrs:{formModel:t.actionModel,prop:n.name,schema:n,params:t.params,labelType:!1,isFilter:""},on:{change:function(e){return t.handleItemChange(e,n)},fill:function(e){return t.handleItemFill(e,n)}},model:{value:t.actionModel[n.name],callback:function(e){t.$set(t.actionModel,n.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(n,r){return e("Item",{key:"".concat(r,"-").concat(n.name),attrs:{formModel:t.actionModel,prop:n.name,schema:n,params:t.params,labelType:!1,isFilter:""},on:{change:function(e){return t.handleItemChange(e,n)},fill:function(e){return t.handleItemFill(e,n)}},model:{value:t.actionModel[n.name],callback:function(e){t.$set(t.actionModel,n.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)},oe=[],ie=n("b7f9"),ae=n("7b4d"),se={mixins:[ie["a"]],components:{Item:ae["a"]},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}}},ce=se,le=Object(Kt["a"])(ce,re,oe,!1,null,null,null),ue=le.exports,fe=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{display:"inline-block"}},t._l(t.groups,(function(n,r){return e("a-button-group",{key:"group-".concat(r),staticStyle:{"margin-right":"16px","flex-wrap":"wrap"}},t._l(n.actions,(function(n){return e("a-button",{key:n.id,staticStyle:{"margin-top":"2px","margin-bottom":"2px"},attrs:{type:n.primary?"primary":"default",icon:n.icon,disabled:n.disabled},on:{click:function(e){return t.handleClick(n,e)}}},[t._v(" "+t._s(n.name)+" "),"file"===n.action?e("input",{staticStyle:{display:"none"},attrs:{type:"file",name:"file"},on:{change:function(e){t.onFileChange(n,e.target.files),e.target.value=""}}}):t._e()])})),1)})),1)},de=[];function pe(t){return pe="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},pe(t)}function he(t,e,n){return e=ve(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ve(t){var e=me(t,"string");return"symbol"==pe(e)?e:String(e)}function me(t,e){if("object"!=pe(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=pe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ye={props:{actions:{type:Array,default:function(){return[]}},type:{type:String,default:"button"}},computed:{groups:function(){var t=[];return this.actions.forEach((function(e,n){var r=t.length-1;e.group||!n?t.push({actions:[e]}):t[r].actions.push(e)})),t}},methods:{handleClick:function(t,e){var n=e.target.getElementsByTagName("input");"file"===t.action?(e.stopPropagation(),n[0]&&void 0===n[0].click()||e.path&&e.path[1].getElementsByTagName("input")[0].click()):this.$emit("action",t)},onFileChange:function(t,e){var n=t.list?t.list:"file";this.$emit("action",t,null,he({},n,e))}}},ge=ye,be=Object(Kt["a"])(ge,fe,de,!1,null,null,null),we=be.exports,_e=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)},xe=[],ke=n("0959"),Oe={inject:["page","view"],props:{action:{type:Object},modelViewType:{type:String}},computed:{createView:function(){return{extends:Object(ke["a"])(Pc["Model".concat(this.modelViewType)])("".concat(this.view.storeNamespace))}}}},Se=Oe,Ee=Object(Kt["a"])(Se,_e,xe,!1,null,null,null),je=Ee.exports,Ne=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))},Le=[],Pe={},Ce=Object(Kt["a"])(Pe,Ne,Le,!1,null,null,null),Ae=Ce.exports,Te=n("3aaf"),Re=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)},De=[];function Ie(t){return Ie="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},Ie(t)}function Me(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function qe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Me(Object(n),!0).forEach((function(e){Fe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Fe(t,e,n){return e=$e(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $e(t){var e=Be(t,"string");return"symbol"==Ie(e)?e:String(e)}function Be(t,e){if("object"!=Ie(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ie(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ve={mixins:[Pt["a"]],components:{Item:ae["a"]},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 qe({},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])}}},He=Ve,Ue=Object(Kt["a"])(He,Re,De,!1,null,null,null),Ge=Ue.exports;function ze(t){return ze="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},ze(t)}function Ke(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ye(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ke(Object(n),!0).forEach((function(e){We(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function We(t,e,n){return e=Je(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Je(t){var e=Ze(t,"string");return"symbol"==ze(e)?e:String(e)}function Ze(t,e){if("object"!=ze(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ze(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Xe={mixins:[i,a,A,Vt,Pt["a"],O,S],components:Ye(Ye(Ye({},ne),Pc),{},{FilterForm:ue,ActionGroup:we,ActionView:je,PaginationSize:Ae,Popup:Te["a"],Cell:Ge}),computed:{actionConfigs:function(){var t,e;return this.action&&null!==(t=null===(e=this.action.configs)||void 0===e?void 0:e.reduce((function(t,e){return t[e.key]=e.value,t}),{}))&&void 0!==t?t:{}}},activated:function(){this.configs&&"true"===this.configs["profile.mode"]&&"Profile"!==this.actionViewType&&this.dataSource.length&&!this.$route.params.id&&this.handleModelProfile(this.dataSource[0])},mounted:function(){var t=this;if(this.configs&&"true"===this.configs["profile.mode"])var e=this.$watch("dataSource",(function(){"Profile"!==t.actionViewType&&t.dataSource.length&&!t.$route.params.id&&(t.handleModelProfile(t.dataSource[0]),e())}))}},Qe=Xe,tn=(n("45db"),Object(Kt["a"])(Qe,r,o,!1,null,null,null)),en=tn.exports,nn=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&&!t.onlyProfile?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(n){var r=n.value,o=n.column;return[e("Cell",{attrs:{row:t.profile,schema:o,value:r}})]}},{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},scopedSlots:t._u([t.actionConfigs["form.footer"]?{key:"footer",fn:function(){return[e(t.actionConfigs["form.footer"],{tag:"component",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:{ok:t.submitActionView,close:t.closeActionView}})]},proxy:!0}:null],null,!0)},[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)},rn=[];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 e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==on(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(on(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function sn(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function cn(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){sn(i,r,o,a,s,"next",t)}function s(t){sn(i,r,o,a,s,"throw",t)}a(void 0)}))}}var ln={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 n=e.params,r=void 0===n?{}:n,o=r.show;return!["all"].includes(e.hidden)&&["collection","link"].includes(e.type)&&(!o||Object(T["a"])(o,t.profile))}))},groups:function(){var t=[];return this.columns.forEach((function(e,n){var r=t.length-1;e.group||!n?t.push({name:e.group,columns:[e]}):t[r].columns.push(e)})),t},layouts:function(){},id:function(){var t=this.values,e=this.idName,n=this.profileId,r=this.routeId,o=this.findAll;return t?t[e]:n||r||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 cn(an().mark((function n(){var r,o,i;return an().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.length>0&&void 0!==t[0]&&t[0],n.next=3,e.loadData({key:e.id,mute:r});case 3:if(o=n.sent,!(o instanceof Error)){n.next=8;break}return i=o.response.data.code,404===i&&e.handleBack(),n.abrupt("return");case 8:return n.abrupt("return",o);case 9:case"end":return n.stop()}}),n)})))()}},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 un(t){return hn(t)||pn(t)||dn(t)||fn()}function fn(){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 dn(t,e){if(t){if("string"===typeof t)return vn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vn(t,e):void 0}}function pn(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function hn(t){if(Array.isArray(t))return vn(t)}function vn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var mn=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},t._l(t.groups,(function(n,r){return e("Descriptions",{key:"g-".concat(r),staticClass:"profile-normal-descriptions",staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[n.name?e("div",{attrs:{slot:"title"},slot:"title"},[e("strong",[t._v(t._s(n.name))])]):t._e(),t._l(n.columns,(function(n,o){return[!t.collapse||t.showDescItems["showDescItem".concat(r)]||o<t.collapse?e("DescriptionsItem",{key:n.name,attrs:{span:n.column?n.column/12:1,label:n.alias||n.name,tooltip:n.legend}},[t._t("cell",null,{value:t.profile[n.name],column:n})],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(r)]=!t.showDescItems["showDescItem".concat(r)]}}},[e("a-icon",{attrs:{type:t.showDescItems["showDescItem".concat(r)]?"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(n,r){return e("a-tab-pane",{key:String(r),attrs:{tab:n.tab}},["link"===n.type?e("Frame",{attrs:{url:t.templateURL(n.value,t.profile),height:t.iframeHeight(n.value)}}):e("keep-alive",[e(t.Views[r],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(un(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:n.name,params:{$parent:t.profile}}})],1)],1)})),1)],1):t._e()],1)},yn=[],gn=n("f24a"),bn=n("f765");function wn(t){return wn="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},wn(t)}function _n(t){return Sn(t)||On(t)||kn(t)||xn()}function xn(){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 kn(t,e){if(t){if("string"===typeof t)return En(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?En(t,e):void 0}}function On(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Sn(t){if(Array.isArray(t))return En(t)}function En(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function jn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Nn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jn(Object(n),!0).forEach((function(e){Ln(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ln(t,e,n){return e=Pn(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pn(t){var e=Cn(t,"string");return"symbol"==wn(e)?e:String(e)}function Cn(t,e){if("object"!=wn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=wn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var An,Tn,Rn=gn["a"].DescriptionsItem,Dn={components:Nn({Descriptions:gn["a"],DescriptionsItem:Rn,Frame:bn["a"]},Pc),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:_n(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&_n(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,showDescItems:{}}},methods:{handleChange:function(t){this.activeTabKey=t},templateURL:function(t,e){return Object(R["a"])(t,e)},iframeHeight:function(t){var e;if(t&&t.split("?")[1]){var n=t.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;n&&(e=n.split("=")[1])}return e}},created:function(){var t=this;if(this.groups.length&&this.collapse&&this.groups.forEach((function(e,n){t.$set(t.showDescItems,"showDescItem".concat(n),!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 Nn(Nn({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:Object(ke["a"])(Pc.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=_n(this.subviews),this.id=this.view.id}}},In=Dn,Mn=(n("4927"),Object(Kt["a"])(In,mn,yn,!1,null,null,null)),qn=Mn.exports,Fn={},$n=Object(Kt["a"])(Fn,An,Tn,!1,null,null,null),Bn=$n.exports;function Vn(t){return zn(t)||Gn(t)||Un(t)||Hn()}function Hn(){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 Un(t,e){if(t){if("string"===typeof t)return Kn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kn(t,e):void 0}}function Gn(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function zn(t){if(Array.isArray(t))return Kn(t)}function Kn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Yn=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,n){return e("a-anchor-link",{key:"anchor-g-".concat(n),attrs:{href:"#profile-tile-group-".concat(n),title:t.name}})})),t._l(t.tabs,(function(t,n){return e("a-anchor-link",{key:"anchor-t-".concat(n),attrs:{href:"#profile-tile-tab-".concat(n),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(n,r){return e("a-card",{key:"g-".concat(r),staticClass:"gs-card",attrs:{size:"small",id:"profile-tile-group-".concat(r),title:n.name,bordered:!1,headStyle:{borderBottom:0}}},[t._e(),e("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[t._l(n.columns,(function(n,o){return[!t.collapse||t.showDescItems["showDescItem".concat(r)]||o<t.collapse?e("DescriptionsItem",{key:n.name,attrs:{span:n.column?n.column/12:1,label:n.alias||n.name,tooltip:n.legend}},[t._t("cell",null,{value:t.profile[n.name],column:n})],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(r)]=!t.showDescItems["showDescItem".concat(r)]}}},[e("a-icon",{attrs:{type:t.showDescItems["showDescItem".concat(r)]?"double-left":"double-right"}})],1)]):t._e()],2)],1)})),1),t._l(t.tabs,(function(n,r){return e("a-card",{key:String(r),staticClass:"gs-card",attrs:{tab:n.tab,size:"small",id:"profile-tile-tab-".concat(r),title:n.tab,bordered:!1,headStyle:{borderBottom:0}}},["link"===n.type?e("Frame",{attrs:{url:t.templateURL(n.value,t.profile),height:t.iframeHeight(n.value)}}):e("keep-alive",[e(t.Views[r],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(Vn(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:n.name,params:{$parent:t.profile}}})],1)],1)}))],2)],1)},Wn=[];function Jn(t){return Jn="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},Jn(t)}function Zn(t){return er(t)||tr(t)||Qn(t)||Xn()}function Xn(){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 Qn(t,e){if(t){if("string"===typeof t)return nr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nr(t,e):void 0}}function tr(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function er(t){if(Array.isArray(t))return nr(t)}function nr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function rr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function or(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rr(Object(n),!0).forEach((function(e){ir(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ir(t,e,n){return e=ar(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ar(t){var e=sr(t,"string");return"symbol"==Jn(e)?e:String(e)}function sr(t,e){if("object"!=Jn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Jn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var cr=gn["a"].DescriptionsItem,lr={components:or({Descriptions:gn["a"],DescriptionsItem:cr,Frame:bn["a"]},Pc),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:Zn(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&Zn(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,n){t.$set(t.showDescItems,"showDescItem".concat(n),!1)}))},methods:{handleChange:function(t){},templateURL:function(t,e){return Object(R["a"])(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 n=t.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;n&&(e=n.split("=")[1])}return e}},computed:{tabs:function(){return this.views.map((function(t,e){return or(or({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:Object(ke["a"])(Pc.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=Zn(this.subviews),this.id=this.view.id}},activated:function(){this.affix=!0},deactivated:function(){this.affix=!1}},ur=lr,fr=(n("d149"),Object(Kt["a"])(ur,Yn,Wn,!1,null,null,null)),dr=fr.exports;function pr(t){return yr(t)||mr(t)||vr(t)||hr()}function hr(){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 vr(t,e){if(t){if("string"===typeof t)return gr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gr(t,e):void 0}}function mr(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function yr(t){if(Array.isArray(t))return gr(t)}function gr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var br=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(n){return[e("DescriptionsItem",{key:n.name,attrs:{span:n.column?n.column/12:1,label:n.alias||n.name,tooltip:n.legend}},[t._t("cell",null,{value:t.profile[n.name],column:n})],2)]}))],2):t._e(),e("a-tabs",{attrs:{animated:!1,"default-active-key":t.activeTabKey},on:{change:t.handleChange}},t._l(t.tabs,(function(n,r){return e("a-tab-pane",{key:String(r),attrs:{tab:n.tab}},["profile"===n.type?e("a-spin",{attrs:{spinning:t.loading}},t._l(t.groups,(function(n,r){return e("Descriptions",{key:"g-".concat(r),staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[n.name?e("div",{attrs:{slot:"title"},slot:"title"},[e("strong",[t._v(t._s(n.name))])]):t._e(),t._l(t.subAttrsColumns(n.columns),(function(n,o){return[!t.collapse||t.showDescItems["showDescItem".concat(r)]||o<t.collapse?e("DescriptionsItem",{key:n.name,attrs:{span:n.column?n.column/12:1,label:n.alias||n.name,tooltip:n.legend}},[t._t("cell",null,{value:t.profile[n.name],column:n})],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(r)]=!t.showDescItems["showDescItem".concat(r)]}}},[e("a-icon",{attrs:{type:t.showDescItems["showDescItem".concat(r)]?"double-left":"double-right"}})],1)]):t._e()],2)})),1):"link"===n.type?e("Frame",{attrs:{url:t.templateURL(n.value,t.profile),height:t.iframeHeight(n.value)}}):e("keep-alive",[e(t.Views[r],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(pr(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:n.name,params:{$parent:t.profile}}})],1)],1)})),1)],1):t._e()},wr=[];function _r(t){return _r="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},_r(t)}function xr(t){return Er(t)||Sr(t)||Or(t)||kr()}function kr(){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 Or(t,e){if(t){if("string"===typeof t)return jr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jr(t,e):void 0}}function Sr(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Er(t){if(Array.isArray(t))return jr(t)}function jr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Nr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Lr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Nr(Object(n),!0).forEach((function(e){Pr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Pr(t,e,n){return e=Cr(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Cr(t){var e=Ar(t,"string");return"symbol"==_r(e)?e:String(e)}function Ar(t,e){if("object"!=_r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=_r(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Tr=gn["a"].DescriptionsItem,Rr={components:Lr({Descriptions:gn["a"],DescriptionsItem:Tr,Frame:bn["a"]},Pc),inject:["page","view"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1},configs:{type:Object}},data:function(){return{activeTabKey:"0",views:null,id:this.view.id,parentIds:this.view.parentIds&&xr(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,showDescItems:{}}},methods:{handleChange:function(t){this.activeTabKey=t},templateURL:function(t,e){return Object(R["a"])(t,e)},iframeHeight:function(t){var e;if(t&&t.split("?")[1]){var n=t.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;n&&(e=n.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,n){t.$set(t.showDescItems,"showDescItem".concat(n),!1)})),this.$route.query&&this.$route.query.activeTabKey){var e=this.tabs.find((function(e){return e.name===t.$route.query.activeTabKey}));e&&(this.activeTabKey=e.key)}this.views=[this.profileTab].concat(xr(this.subviews))},computed:{tabs:function(){return this.views?this.views.map((function(t,e){return Lr(Lr({},t),{},{key:String(e),tab:t.alias||t.name})})):[]},Views:function(){var t=this;return this.views?this.views.map((function(e){return{extends:Object(ke["a"])(Pc.ModelList)("".concat(t.storeNamespace,"/:id/").concat(e.name))}})):[]},collapse:function(){return this.view.configs["profile.collapse"]?Number(this.view.configs["profile.collapse"]):null},basicAttrs:function(){var t=[];return this.view.configs&&this.view.configs["profile.tabs.basicAttrs"]&&(t=this.view.configs["profile.tabs.basicAttrs"].split(",")),t},basicAttrsColumns:function(){var t=this;return this.basicAttrs.length?this.columns.filter((function(e){return t.basicAttrs.includes(e.name)})):[]},profileTab:function(){return{name:this.view.configs&&this.view.configs["profile.tabs.profileTitle"]?this.view.configs["profile.tabs.profileTitle"]:"详情",type:"profile"}}},watch:{profile:function(){this.views=[this.profileTab].concat(xr(this.subviews)),this.id=this.view.id}}},Dr=Rr,Ir=(n("b69c"),Object(Kt["a"])(Dr,br,wr,!1,null,null,null)),Mr=Ir.exports,qr={ProfileNormal:qn,ProfilePortal:Bn,ProfileTile:dr,ProfileTabs:Mr};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,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Br(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$r(Object(n),!0).forEach((function(e){Vr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Vr(t,e,n){return e=Hr(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hr(t){var e=Ur(t,"string");return"symbol"==Fr(e)?e:String(e)}function Ur(t,e){if("object"!=Fr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Fr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Gr={mixins:[i,a,A,Vt,Pt["a"],ln],components:Br({ActionGroup:we,ActionView:je,Popup:Te["a"],Cell:Ge},qr),computed:{onlyProfile:function(){return this.configs?"true"===this.configs["profile.mode"]:null},actionConfigs:function(){var t,e;return this.action&&null!==(t=null===(e=this.action.configs)||void 0===e?void 0:e.reduce((function(t,e){return t[e.key]=e.value,t}),{}))&&void 0!==t?t:{}}}},zr=Gr,Kr=(n("1bf9"),Object(Kt["a"])(zr,nn,rn,!1,null,null,null)),Yr=Kr.exports,Wr=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)},Jr=[],Zr={create:["createonly","updateonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},Xr={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,n=this.model,r=this.editType,o=this.hide,i=t&&t.view?t.view.model.attrs:e&&e.attrs?e.attrs:n.attrs?n.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 Zr[r].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")}}},Qr=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(n){return e("a-col",{key:n.name,staticStyle:{"min-height":"0"},attrs:{span:n.column||12}},[e("Item",{attrs:{formModel:t.actionModel,prop:n.name,schema:n,params:t.params},on:{change:function(e){return t.handleItemChange(e,n)},fill:function(e){return t.handleItemFill(e,n)}},model:{value:t.actionModel[n.name],callback:function(e){t.$set(t.actionModel,n.name,e)},expression:"actionModel[col.name]"}})],1)})),1)],1)},to=[],eo={mixins:[ie["a"]],components:{Item:ae["a"]}},no=eo,ro=Object(Kt["a"])(no,Qr,to,!1,null,null,null),oo=ro.exports,io=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(n,r){return e("div",{key:r,staticClass:"form-file-upload"},[e("a-row",{attrs:{type:"flex",justify:"space-between",align:"middle"}},[e("a-col",["uploading"===n.status?e("a-icon",{attrs:{type:"loading"}}):"done"===n.status?e("a-icon",{attrs:{type:"paper-clip"}}):t._e(),t._v(" "+t._s(n.file.name)+" ")],1),e("a-col",[n.status?t._e():e("a-icon",{attrs:{type:"close"},on:{click:function(e){return t.handleRemove(r)}}})],1)],1)],1)}))],2)},ao=[];function so(t){return so="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},so(t)}function co(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */co=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==so(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(so(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function lo(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function uo(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){lo(i,r,o,a,s,"next",t)}function s(t){lo(i,r,o,a,s,"throw",t)}a(void 0)}))}}var fo={mixins:[ie["a"]],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 uo(co().mark((function e(){var n;return co().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.view.view.selections,0!==t.fileList.length){e.next=3;break}return e.abrupt("return",t.$message.error("请选择文件"));case 3:if(!(n&&n.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 uo(co().mark((function e(){var n,r,o,i,a,s,c,l,u,f,d,p;return co().wrap((function(e){while(1)switch(e.prev=e.next){case 0:p=function(){return p=uo(co().mark((function t(e){var n,p,h;return co().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.status="uploading",n=o.key,p=o.method,h=new FormData,h.append("file",e.file),a&&h.append("data[".concat(i,"]"),a[i]),t.next=7,r({data:h,key:n,method:p,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)}))),p.apply(this,arguments)},d=function(t){return p.apply(this,arguments)},n=t.view.view,r=n.saveData,o=n.action,i=n.idName,a=n.actionModel,s=n.closeActionView,c=n.load,l=n.$message,u=t.fileList,f=0,d(u[f]);case 6:case"end":return e.stop()}}),e)})))()}}},po=fo,ho=Object(Kt["a"])(po,io,ao,!1,null,null,null),vo=ho.exports,mo=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))},yo=[],go=n("3d8a");function bo(t){return bo="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},bo(t)}function wo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wo(Object(n),!0).forEach((function(e){xo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xo(t,e,n){return e=ko(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ko(t){var e=Oo(t,"string");return"symbol"==bo(e)?e:String(e)}function Oo(t,e){if("object"!=bo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=bo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var So={mixins:[ie["a"]],components:{Picker:go["a"]},computed:{pickerFilter:function(){var t=this.action.params,e=t&&t.filters,n={};if(!e)return null;for(var r in e){var o=e[r].split(".").reduce((function(t,e){return t&&t[e]||void 0}),_o(_o({},this.params),this.actionModel));n[r]=void 0===o?e[r]:o}return n},pickerMode:function(){var t=this.action.params,e=void 0===t?{}:t,n=e.multiple,r=e.pickerMode;return"none"===r?null:n?"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"],n=e;this.actionModel=n?t.map((function(t){return xo({},n,t[e])})):t}}},Eo=So,jo=Object(Kt["a"])(Eo,mo,yo,!1,null,null,null),No=jo.exports,Lo=function(){var t=this,e=t._self._c;return e("div",[e("a-steps",{attrs:{current:t.current}},t._l(t.steps,(function(n){return e("a-step",{key:n.title,attrs:{title:n.title}},["核心解读"===n.title?e("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.coreAlgorithmCount},slot:"subTitle"}):t._e(),"描述解读"===n.title?e("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.describeAlgorithmCount},slot:"subTitle"}):t._e(),"排盘数据"===n.title?e("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.paipanDataCount},slot:"subTitle"}):t._e(),"术数分析"===n.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(n,r){return e("a-tab-pane",{key:n.name+r.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(n.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(n.children)}})],1),e("CheckboxGroup",{attrs:{title:n.name,data:n.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,n.name,r)}}})],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(n,r){return e("a-tab-pane",{key:n.name+r.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(n.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(n.children)}})],1),e("CheckboxGroup",{attrs:{title:n.name,data:n.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,n.name,r)}}})],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(n,r){return e("a-tab-pane",{key:n.name+r.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(n.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(n.children)}})],1),e("CheckboxGroup",{attrs:{title:n.name,data:n.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,n.name,r)}}})],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(n,r){return e("a-tab-pane",{key:n.name+r.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(n.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(n.children)}})],1),e("CheckboxGroup",{attrs:{title:n.name,data:n.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,n.name,r)}}})],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)},Po=[],Co=n("5880"),Ao=n("8bbf"),To=n.n(Ao),Ro=n("8c7f");function Do(t){return Do="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},Do(t)}function Io(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Io=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Do(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Do(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Mo(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function qo(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Mo(i,r,o,a,s,"next",t)}function s(t){Mo(i,r,o,a,s,"throw",t)}a(void 0)}))}}var Fo={namespaced:!0,state:{loading:!1,data:{},district:[],status:200,message:""},mutations:{setLoading:function(t,e){t.loading=e},setData:function(t,e){var n=e.key,r=e.rows;t.data[n]?t.data[n]=r:To.a.set(t.data,n,r)},setDistrict:function(t,e){t.district=e},setStatus:function(t,e){var n=e.status,r=e.message;t.status=n,t.message=r}},actions:{loadData:function(t){var e=arguments;return qo(Io().mark((function n(){var r,o,i,a,s,l,u,f;return Io().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},a=i.methods,s=void 0===a?"get":a,l=i.key,u=i.query,r("setLoading",!0),n.prev=4,n.next=7,Ro["a"][s](u?"/api/".concat(l?"".concat(l):"","?").concat(c.a.stringify(u)):"/api/".concat(l?"".concat(l):""));case 7:f=n.sent,f.data&&l&&r("setData",{rows:f.data,key:l}),n.next=14;break;case 11:n.prev=11,n.t0=n["catch"](4),o("handleError",n.t0);case 14:return n.prev=14,r("setLoading",!1),n.finish(14);case 17:case"end":return n.stop()}}),n,null,[[4,11,14,17]])})))()},loadDistrict:function(t){return qo(Io().mark((function e(){var n,r,o,i;return Io().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,r=t.dispatch,n("setLoading",!0),e.prev=2,e.next=5,Ro["a"].get("/dataset/%E8%A1%8C%E6%94%BF%E5%8C%BA%E5%88%92");case 5:o=e.sent,i=o.data,i&&n("setDistrict",i.data),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](2),r("handleError",e.t0);case 13:return e.prev=13,n("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 qo(Io().mark((function n(){var r,o,i,a,s,c;return Io().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},a=i.key,s=i.params,r("setLoading",!0),n.prev=4,n.next=7,Ro["a"].post(a,s,{});case 7:if(c=n.sent,!c||!c.data){n.next=10;break}return n.abrupt("return",c.data);case 10:n.next=15;break;case 12:n.prev=12,n.t0=n["catch"](4),o("handleError",n.t0);case 15:return n.prev=15,r("setLoading",!1),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[4,12,15,18]])})))()},handleError:function(t,e){var n=t.commit;if(!e.response)return n("setStatus",{status:0,message:"网络请求错误,请检查您的网络连接。"});var r=e.response,o=r.status,i=r.data,a=i&&i.content||"系统错误请与管理员联系。";n("setStatus",{status:o,message:a})}}};function $o(t){return $o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$o(t)}function Bo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Vo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bo(Object(n),!0).forEach((function(e){Ho(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ho(t,e,n){return e=Uo(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Uo(t){var e=Go(t,"string");return"symbol"==$o(e)?e:String(e)}function Go(t,e){if("object"!=$o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=$o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}for(var zo=Object(Co["createNamespacedHelpers"])("m-algorithm"),Ko=zo.mapState,Yo=zo.mapActions,Wo=["loading","data","message"],Jo=["loadData","loadDistrict","getResult"],Zo={computed:Vo({},Ko(Wo)),methods:Vo({},Yo(Jo)),beforeCreate:function(){this.$store.state["m-algorithm"]||this.$store.registerModule("m-algorithm",Fo)}},Xo=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(n){return e("a-col",{key:n.id,staticClass:"algorithm-item",class:{"algorithm-item-actived":n.checked},attrs:{span:6}},[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{span:20}},[e("a-checkbox",{staticClass:"text-ellipsis",attrs:{checked:n.checked},on:{change:function(e){return t.onCheckChange(e,n)}}},[e("a-tooltip",[e("template",{slot:"title"},[t._v(" "+t._s(n.name)+" ")]),t._v(" "+t._s(n.name)+" ")],2)],1)],1),e("a-col",{staticClass:"params-setting",attrs:{span:4},on:{click:function(e){return t.showDrawer(n.read_id)}}},[n.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(n,r){return e("a-tab-pane",{key:n.key,attrs:{tab:"".concat(n.title,"_").concat(r+1),closable:0!==r}},[e("AlgorithmParams",{attrs:{algorithmParams:n.algorithmParams,algorithmParamsKey:n.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)},Qo=[],ti=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(n,r){return e("a-form-model-item",{key:n.key,attrs:{prop:"algorithms."+r+".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:n.value,callback:function(e){t.$set(n,"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(n)}}})],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)},ei=[],ni={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}}},ri=ni,oi=Object(Kt["a"])(ri,ti,ei,!1,null,null,null),ii=oi.exports,ai=gn["a"].DescriptionsItem,si={props:{title:{type:String},data:{type:Array,require:!0},defaultCheckedList:{type:Array}},components:{Descriptions:gn["a"],DescriptionsItem:ai,AlgorithmParams:ii},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 n=this.checkedList.findIndex((function(t){return e.read_id===t.read_id}));this.checkedList.splice(n,1)}this.$emit("change",this.checkedList)},showDrawer:function(t){var e=this;this.algorithmId=t;var n=this.checkedList.find((function(e){return e.read_id===t})).values;if(n.length)this.panes=n.map((function(t,n){var r={key:"".concat(e.algorithmId).concat(n),title:"参数",algorithmParams:t.map((function(t,e){return{key:e,value:t}}))};return r}));else{var r={key:"".concat(this.algorithmId,"0"),title:"参数",algorithmParams:[]};this.submitForm(r),this.panes=[r]}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 n=this.checkedList.find((function(e){return e.read_id===t.algorithmId}));e&&(n.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,n="".concat(this.algorithmId).concat(e),r={title:"参数",algorithmParams:[],key:n};this.submitForm(r),this.panes.push(r),this.panes=t,this.activeKey=n},remove:function(t){delete this.paneParams[t],this.setParams();var e,n=this.activeKey;this.panes.forEach((function(n,r){n.key===t&&(e=r-1)}));var r=this.panes.filter((function(e){return e.key!==t}));r.length&&n===t&&(n=e>=0?r[e].key:r[0].key),this.panes=r,this.activeKey=n}},watch:{}},ci=si,li=(n("9897"),Object(Kt["a"])(ci,Xo,Qo,!1,null,null,null)),ui=li.exports,fi=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(n){return e("a-select-option",{key:n,attrs:{value:n}},[t._v(" "+t._s(n)+" ")])})),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)},di=[],pi={computed:{districts:function(){var t=this.$store.state["m-algorithm"].district,e=t&&t.filter((function(t){return"1"===t.level})),n=t&&t.filter((function(t){return"2"===t.level})),r=t&&t.filter((function(t){return"3"===t.level}));return e.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,children:r.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}}))}}))}}))||[]}}},hi=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}})},vi=[],mi=n("2364"),yi=null,gi={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){yi&&yi.dispose();var e=mi["Uri"].parse("json://grid/settings.json");yi=mi["editor"].create(this.$refs.monaco,{value:JSON.stringify(t,null,"\t"),language:"json",Uri:e})}},watch:{value:function(t){this.getResult(t)}}},bi=gi,wi=Object(Kt["a"])(bi,hi,vi,!1,null,null,null),_i=wi.exports,xi=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(n,r){return e("li",{key:r,class:{active:t.value.yearIndex===r},on:{click:function(e){return t.change("year",r)}}},[t._v(" "+t._s(n)+"年 ")])})),0)]),e("a-col",[e("ul",t._l(t.months,(function(n,r){return e("li",{key:n,class:{active:t.value.monthIndex===r},on:{click:function(e){return t.change("month",r)}}},[t._v(" "+t._s(n)+"月 ")])})),0)]),e("a-col",[e("ul",t._l(t.days,(function(n,r){return e("li",{key:n,class:{active:t.value.dayIndex===r},on:{click:function(e){return t.change("day",r)}}},[t._v(" "+t._s(n)+"日 ")])})),0)]),e("a-col",[e("ul",t._l(t.hours,(function(n,r){return e("li",{key:n,class:{active:t.value.hourIndex===r},on:{click:function(e){return t.change("hour",r)}}},[t._v(" "+t._s(n)+"时 ")])})),0)]),e("a-col",[e("ul",t._l(t.minutes,(function(n,r){return e("li",{key:n,class:{active:t.value.minuteIndex===r},on:{click:function(e){return t.change("minute",r)}}},[t._v(" "+t._s(n)+"分 ")])})),0)])],1)},ki=[],Oi=[],Si=[],Ei=[],ji=[],Ni=1901;Ni<=2030;Ni++)Oi.push("".concat(Ni));for(var Li=1;Li<=12;Li++)Si.push(Li<10?"0".concat(Li):"".concat(Li));for(var Pi=0;Pi<=23;Pi++)Ei.push(Pi<10?"0".concat(Pi):"".concat(Pi));for(var Ci=0;Ci<=59;Ci++)ji.push(Ci<10?"0".concat(Ci):"".concat(Ci));var Ai={props:{isLunar:{type:Boolean,default:!1}},data:function(){return{years:Oi,year:"1901",months:Si,month:"01",day:"01",hours:Ei,hour:"00",minutes:ji,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 n=1;n<=31;n++)t.push(n<10?"0".concat(n):"".concat(n));else if(["04","06","09","11"].includes(this.month))for(var r=1;r<=30;r++)t.push(r<10?"0".concat(r):"".concat(r));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),n=this.days.indexOf(this.day),r=this.hours.indexOf(this.hour),o=this.minutes.indexOf(this.minute);return{yearIndex:t,monthIndex:e,dayIndex:n,hourIndex:r,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 n="".concat(this.year,"-").concat(this.month,"-").concat(this.day," ").concat(this.hour,":").concat(this.minute);this.$emit("change",n)}}},Ti=Ai,Ri=(n("6d57"),Object(Kt["a"])(Ti,xi,ki,!1,null,null,null)),Di=Ri.exports,Ii=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(n){return e("span",{},[t._v(" "+t._s("female"===n?"女":"男")+" ")])}}])})],1)},Mi=[],qi=[{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"}],Fi={mixins:[Zo],data:function(){return{columns:qi,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}})}}},$i=Fi,Bi=Object(Kt["a"])($i,Ii,Mi,!1,null,null,null),Vi=Bi.exports;function Hi(t){return Hi="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},Hi(t)}function Ui(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ui=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Hi(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Hi(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Gi(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function zi(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Gi(i,r,o,a,s,"next",t)}function s(t){Gi(i,r,o,a,s,"throw",t)}a(void 0)}))}}var Ki=["流年","流月","商务","健康","婚姻","爱情","工作","出行","学业","财运","家宅"],Yi={mixins:[Zo,pi],props:["algorithmList"],components:{CodeEditor:_i,DateTimePicker:Di,ProfileSelect:Vi},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:Ki,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 zi(Ui().mark((function n(){return Ui().wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.profile.is_submit=t,e.$refs.profileForm.validate(function(){var n=zi(Ui().mark((function n(r){var o;return Ui().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!r){n.next=10;break}return n.next=3,e.getResult({key:"/api/algorithm-product/algorithm",params:e.profile});case 3:if(o=n.sent,!o||!o.data||"0"!==t){n.next=7;break}return e.codeValue=[JSON.parse(o.data)],n.abrupt("return");case 7:o?(e.$message.success("增加算法产品成功"),e.$emit("close")):e.$message.error(e.message),n.next=11;break;case 10:return n.abrupt("return",!1);case 11:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}());case 2:case"end":return n.stop()}}),n)})))()},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):"",n=t?t.substring(5,7):"",r=this.lunarLeapMonthOfYear(e)<10?"0"+this.lunarLeapMonthOfYear(e).toString():this.lunarLeapMonthOfYear(e).toString();this.profile.is_lunar&&(n===r&&"00"!==r?(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,"/"),n=this.timeStamp(e),r=[];r=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")}],r.length&&(n>=r[0].start&&n<=r[0].end||n>=r[1].start&&n<=r[1].end||n>=r[2].start&&n<=r[2].end||n>=r[3].start&&n<=r[3].end||n>=r[4].start&&n<=r[4].end||n>=r[5].start&&n<=r[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,n){var r=this.$store.state["m-algorithm"].district,o=r.find((function(e){return e.district_name===t}))?r.find((function(e){return e.district_name===t})).district_id:"",i=r.find((function(t){return t.district_name===e}))?r.find((function(t){return t.district_name===e})).district_id:"",a=r.find((function(t){return t.district_name===n}))?r.find((function(t){return t.district_name===n})).district_id:"";return[o,i,a]}},watch:{algorithmList:function(t){this.profile.code=JSON.stringify(t)}}},Wi=Yi,Ji=Object(Kt["a"])(Wi,fi,di,!1,null,null,null),Zi=Ji.exports;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){return ra(t)||na(t)||ea(t)||ta()}function ta(){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 ea(t,e){if(t){if("string"===typeof t)return oa(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oa(t,e):void 0}}function na(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ra(t){if(Array.isArray(t))return oa(t)}function oa(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ia(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function aa(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ia(Object(n),!0).forEach((function(e){sa(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ia(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function sa(t,e,n){return e=ca(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ca(t){var e=la(t,"string");return"symbol"==Xi(e)?e:String(e)}function la(t,e){if("object"!=Xi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Xi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ua={mixins:[Zo],components:{CheckboxGroup:ui,AlgorithmForm:Zi},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,n=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 n=aa(aa({},e),{},{values:[],checked:!1});return t.checkedList.length&&t.checkedList.forEach((function(e){e.read_id===n.read_id&&(t.$set(n,"values",e.values),t.$set(n,"checked",e.checked))})),n})),r=Qi(new Set(n&&n.map((function(t){return t.classify})))),o=r&&r.map((function(t){var e=n.filter((function(e){return e.classify===t})),r=Qi(new Set(e.map((function(t){return t.type})))),o=r.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,n=t.filter((function(t){return"描述解读"===t.classify})).length||0,r=t.filter((function(t){return"排盘数据"===t.classify})).length||0,o=t.filter((function(t){return"术数分析"===t.classify})).length||0;return{coreAlgorithmCount:e,describeAlgorithmCount:n,paipanDataCount:r,surgeryAnalysisCount:o}},algorithmList:function(){var t=this.defaultCheckedList,e=[],n=[];return t.forEach((function(r){var o=r.code;n=r.values.length>1?r.values.map((function(t,e){var n=e+1,r=1===n?o:n<10?"".concat(o,"_0").concat(n):"".concat(o,"_").concat(n);return[r,t||[]]})):t.map((function(t){return[t.code,t.values.length?t.values[0]:[]]})),e=[].concat(Qi(e),Qi(n))})),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,n,r){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(Qi(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})),n=this.checkedList.map((function(t){return t.read_id}));return e.filter((function(t){return n.includes(t)})).length}},watch:{nameKeyword:function(t){""===t&&this.onSearch()},codeKeyword:function(t){""===t&&this.onSearch()}}},fa=ua,da=(n("4dd6"),Object(Kt["a"])(fa,Lo,Po,!1,null,null,null)),pa=da.exports;function ha(t){return ga(t)||ya(t)||ma(t)||va()}function va(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ma(t,e){if(t){if("string"===typeof t)return ba(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ba(t,e):void 0}}function ya(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ga(t){if(Array.isArray(t))return ba(t)}function ba(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var wa=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(n){var r=n.props,o=r.direction,i=r.selectedKeys,a=n.on.itemSelect;return["left"===o?e("a-spin",{attrs:{spinning:t.leftLoding}},[e("a-tree",{attrs:{blockNode:"",checkable:"",checkStrictly:"",checkedKeys:[].concat(ha(i),ha(t.checkedKeys)),treeData:t.filterTreeNodes},on:{check:function(e,n){t.onChecked(e,n,[].concat(ha(i),ha(t.checkedKeys)),a)},select:function(e,n){t.onChecked(e,n,[].concat(ha(i),ha(t.checkedKeys)),a)}}})],1):t._e()]}}])})],1)},_a=[];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 ka(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ka=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==xa(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(xa(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Oa(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function Sa(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Oa(i,r,o,a,s,"next",t)}function s(t){Oa(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Ea(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ja(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ea(Object(n),!0).forEach((function(e){Na(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ea(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Na(t,e,n){return e=La(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function La(t){var e=Pa(t,"string");return"symbol"==xa(e)?e:String(e)}function Pa(t,e){if("object"!=xa(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=xa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ca={mixins:[ie["a"]],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,n=this.keyName,r=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[n],children:s,disabled:r.includes(a[n])||o&&!Object(T["a"])(o,a)||i&&Object(T["a"])(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=ja(ja({},this.actionModel),{},Na({},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=ja(ja({},this.actionModel),{},Na({},this.valuesName,this.checkedKeys))},isChecked:function(t,e){return-1!==t.indexOf(e)},onChecked:function(t,e,n,r){var o=e.node.eventKey;r(o,!this.isChecked(n,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 Sa(ka().mark((function e(){return ka().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 n=this,r=null;"left"===t&&(this.leftLoding=!0,r=setTimeout((function(){r&&clearTimeout(r),n.inputValue=e,n.leftLoding=!1}),1e3))}}},Aa=Ca,Ta=(n("2387"),Object(Kt["a"])(Aa,wa,_a,!1,null,"0ce5108d",null)),Ra=Ta.exports,Da=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}})},Ia=[];function Ma(t){return Ma="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},Ma(t)}function qa(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */qa=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Ma(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Ma(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Fa(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function $a(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Fa(i,r,o,a,s,"next",t)}function s(t){Fa(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Ba(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Va(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ba(Object(n),!0).forEach((function(e){Ha(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ba(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ha(t,e,n){return e=Ua(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ua(t){var e=Ga(t,"string");return"symbol"==Ma(e)?e:String(e)}function Ga(t,e){if("object"!=Ma(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ma(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var za={mixins:[ie["a"]],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,n=this.keyName,r=function t(r){return r.map((function(r){var o;return r._childList&&(o=t(r._childList)),{title:r[e],key:r[n],children:o}}))};return r(t)}},created:function(){this.checkedKeys&&(this.actionModel=Va(Va({},this.actionModel),{},Ha({},this.valuesName,this.checkedKeys)))},methods:{handleCheck:function(t,e){var n=t.checked;if(n.includes(e.node.eventKey)){var r=e.node;while(r&&r.eventKey)n.includes(r.eventKey)||n.push(r.eventKey),r=r.$parent}this.actionModel=Va(Va({},this.actionModel),{},Ha({},this.valuesName,n))},handleSubmit:function(){var t=this;return $a(qa().mark((function e(){return qa().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.handleCommit();case 1:case"end":return e.stop()}}),e)})))()}}},Ka=za,Ya=Object(Kt["a"])(Ka,Da,Ia,!1,null,null,null),Wa=Ya.exports,Ja=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(n){return[!n.scope||n.scope.includes(t.actionModel.flow_action_name)?e("Item",{key:n.name,attrs:{formModel:t.actionModel,prop:n.name,schema:n,required:n.required,params:{}},on:{change:function(e){return t.handleItemChange(e,n)}},model:{value:t.actionModel[n.name],callback:function(e){t.$set(t.actionModel,n.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(n){return e("a-select-option",{key:n.step_id,attrs:{value:n.step_id}},[t._v(" "+t._s(n.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(n){return e("Item",{key:n.name,attrs:{formModel:t.actionModel,prop:n.name,schema:n,params:{}},on:{change:function(e){return t.handleItemChange(e,n)}},model:{value:t.actionModel[n.name],callback:function(e){t.$set(t.actionModel,n.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(n,r){return e("div",{key:n.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(r+1))])]),e("td",[e("p",{staticStyle:{padding:"12px 0"}},[t._v(" "+t._s(n.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(n.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(n){return e("a-list-item",{},[e("a-list-item-meta",[e("div",{attrs:{slot:"title"},slot:"title"},[t._v(" "+t._s(n.step_name)+" - "+t._s(n.operator.actor_name)+" - "+t._s(n.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(n.deal_desc)+" ")]),n.deal_note?e("div",[t._v(" 审批意见:"+t._s(n.deal_note)+" ")]):t._e(),e("div",[e("a-icon",{attrs:{type:"clock-circle-o"}}),t._v(" "+t._s(t.moment(n.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(n,r){return e("a-timeline-item",{key:n.step_id,attrs:{color:t.stepIndex>r?"blue":t.stepIndex===r?"green":"#999"}},[t._v(" "+t._s(r+1)+". "+t._s(n.step_name)+" "),t.stepIndex>r?e("span",[t._v(" "+t._s(n.operator?"(".concat(n.operator,")"):"")+" ")]):t._e(),t.stepIndex===r?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)},Za=[],Xa=n("336c"),Qa=n.n(Xa);function ts(t){return ts="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},ts(t)}function es(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */es=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==ts(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(ts(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function ns(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function rs(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){ns(i,r,o,a,s,"next",t)}function s(t){ns(i,r,o,a,s,"throw",t)}a(void 0)}))}}function os(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function is(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?os(Object(n),!0).forEach((function(e){as(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):os(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function as(t,e,n){return e=ss(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ss(t){var e=cs(t,"string");return"symbol"==ts(e)?e:String(e)}function cs(t,e){if("object"!=ts(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ts(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}Qa.a.track(!1);var ls=n("019f"),us={mixins:[ie["a"]],components:{Item:ae["a"]},data:function(){return{actionModel:is(is({},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 n=e.todo_actors.map((function(t){return t.operator.actor_id}));t.rowSelection.selectedRowKeys=n.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 rs(es().mark((function e(){return es().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 n=this;return rs(es().mark((function r(){var o,i,a,s;return es().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(o=e.name,!(t instanceof FileList)){r.next=14;break}if(!t[0]){r.next=11;break}return i=new FormData,i.append(o,t[0]),r.next=7,n.$api.post("/upload",i);case 7:a=r.sent,t=a.data.data[o],r.next=12;break;case 11:t=null;case 12:r.next=15;break;case 14:t instanceof Date&&(t=n.moment(t).format("YYYY-MM-DD"));case 15:s=is({},n.actionModel.data),s[o]=t,n.actionModel.data=is({},s);case 18:case"end":return r.stop()}}),r)})))()},renderGraph:function(){var t=this;Qa.a.registerNode("rect",{getPath:function(t){var e=150,n=40;return Qa.a.Util.getRectPath(-e/2,-n/2,e,n,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 n=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:n&&n.step_id,target:e.step_id}}))},n=new Qa.a.Graph({container:this.$refs.graph,fitView:"cc",height:72*this.steps.length,plugins:[new ls({ranksep:30})],defaultIntersectBox:"rect"});n.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}}}),n.edge({style:{endArrow:!0}}),n.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})),n=this.view.schema.model.attrs.filter((function(t){return e.includes(t.name)})).map((function(e){var n=t.formItems.find((function(t){return t.attr_name===e.name}));return is(is({},e),n)}));return["reassign","involve"].includes(this.actionModel.flow_action_name)?n.filter((function(e){return e.attr_name===t.actionModel.flow_action_name})):n.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("、"),")"):""}}},fs=us,ds=(n("e993"),Object(Kt["a"])(fs,Ja,Za,!1,null,null,null)),ps=ds.exports,hs=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)},vs=[],ms=n("ad54"),ys=n("a142");function gs(t){return gs="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},gs(t)}function bs(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */bs=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==gs(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(gs(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function ws(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ws(Object(n),!0).forEach((function(e){xs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ws(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xs(t,e,n){return e=Ns(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ks(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function Os(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){ks(i,r,o,a,s,"next",t)}function s(t){ks(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Ss(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Es(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ns(r.key),r)}}function js(t,e,n){return e&&Es(t.prototype,e),n&&Es(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ns(t){var e=Ls(t,"string");return"symbol"==gs(e)?e:String(e)}function Ls(t,e){if("object"!=gs(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=gs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Ps(t,e,n){Cs(t,e),e.set(t,n)}function Cs(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function As(t,e){var n=Ds(t,e,"get");return Ts(t,n)}function Ts(t,e){return e.get?e.get.call(t):e.value}function Rs(t,e,n){var r=Ds(t,e,"set");return Is(t,r,n),n}function Ds(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function Is(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}var Ms=new WeakMap,qs=new WeakMap,Fs=new WeakMap,$s=function(){function t(e){Ss(this,t),Ps(this,Ms,{writable:!0,value:void 0}),Ps(this,qs,{writable:!0,value:void 0}),Ps(this,Fs,{writable:!0,value:void 0}),Rs(this,Ms,e),Rs(this,qs,window.location.origin+"/ead"),Rs(this,Fs,window.location.origin+"/workflow")}return js(t,[{key:"getComponent",value:function(){return As(this,Ms)}},{key:"setComponent",value:function(t){Rs(this,Ms,t)}},{key:"getCurrentViewSchema",value:function(){return As(this,Ms).$attrs.schema}},{key:"getCurrentUserName",value:function(){return As(this,Ms).$store.state.user.name}},{key:"getModelIdName",value:function(){return As(this,Ms).$attrs.schema.model.idName}},{key:"runCurrentAction",value:function(){var t=Os(bs().mark((function t(){var e,n,r,o,i,a,s,c;return bs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=As(this,Ms).action,n=As(this,Ms).view.apiURL.replace(As(this,Ms).view.apiBaseURL+"/",""),r=e.key,o=e.method,t.next=7,As(this,Ms).$api[o.toLowerCase()]("".concat(n).concat(r?"/".concat(r):""),_s({},As(this,Ms).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||"系统错误请与管理员联系。",As(this,Ms).$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=Os(bs().mark((function t(e){var n,r,o,i,a;return bs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,As(this,Ms).$api.get("".concat(As(this,qs),"/api/flowdir-viewattr?view_id=").concat(e));case 3:return n=t.sent,r=n.data.collection,o=void 0===r?[]:r,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:"getViewSchema",value:function(){var t=Os(bs().mark((function t(e){var n,r,o,i;return bs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,As(this,Ms).$api.get("".concat(As(this,Fs),"/api/viewschema/").concat(e));case 3:return n=t.sent,r=n.data,t.abrupt("return",r);case 8:t.prev=8,t.t0=t["catch"](0),o=t.t0.response.data,i=o&&o.content||"系统错误请与管理员联系。",this.$message.error(i);case 13:return t.prev=13,t.finish(13);case 15:case"end":return t.stop()}}),t,this,[[0,8,13,15]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getUsers",value:function(){var t=Os(bs().mark((function t(){var e,n,r,o,i;return bs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,As(this,Ms).$api.get("".concat(As(this,qs),"/api/flowdir-user"));case 3:return e=t.sent,n=e.data.collection,r=void 0===n?[]:n,t.abrupt("return",r);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=Os(bs().mark((function t(e){var n,r,o,i,a;return bs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,As(this,Ms).$api.get("".concat(As(this,qs),"/api/flowdir-role?app_key=")+e);case 3:return n=t.sent,r=n.data.collection,o=void 0===r?[]:r,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=Os(bs().mark((function t(){var e,n,r,o,i;return bs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,As(this,Ms).$api.get("".concat(As(this,qs),"/api/flowdir-org"));case 3:return e=t.sent,n=e.data.collection,r=void 0===n?[]:n,t.abrupt("return",r);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=Os(bs().mark((function t(e,n){var r,o,i,a,s;return bs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,As(this,Ms).$api.get("".concat(As(this,qs),"/dataset/").concat(e),{params:_s({},n)});case 3:return r=t.sent,o=r.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,n){return t.apply(this,arguments)}return e}()},{key:"getDatasetApi",value:function(){var t=Os(bs().mark((function t(e,n){var r,o,i,a,s;return bs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,As(this,Ms).$api.get("".concat(As(this,qs),"/api/").concat(e),{params:_s({},n)});case 3:return r=t.sent,o=r.data.collection,i=void 0===o?[]:o,t.abrupt("return",i);case 9:t.prev=9,t.t0=t["catch"](0),a=t.t0.response.data,s=a&&a.content||"系统错误请与管理员联系。",this.$message.error(s);case 14:return t.prev=14,t.finish(14);case 16:case"end":return t.stop()}}),t,this,[[0,9,14,16]])})));function e(e,n){return t.apply(this,arguments)}return e}()},{key:"getViews",value:function(){var t=Os(bs().mark((function t(e){var n,r,o,i,a;return bs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,As(this,Ms).$api.get("".concat(As(this,qs),"/api/flowdir-view?name=")+e);case 3:return n=t.sent,r=n.data.collection,o=void 0===r?[]:r,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:"getModels",value:function(){var t=Os(bs().mark((function t(e){var n,r,o,i,a;return bs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,As(this,Ms).$api.get("".concat(As(this,qs),"/api/flowdir-model?name=")+e);case 3:return n=t.sent,r=n.data.collection,o=void 0===r?[]:r,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=Os(bs().mark((function t(e){var n,r,o,i,a;return bs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,As(this,Ms).$api.get("".concat(As(this,qs),"/api/flowdir-driver?name=")+e);case 3:return n=t.sent,r=n.data.collection,o=void 0===r?[]:r,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 As(this,Ms).$attrs.selections}},{key:"getUrl",value:function(){return As(this,Ms).$attrs.schema.url}},{key:"getValues",value:function(){return As(this,Ms).values}},{key:"getModelValues",value:function(){return As(this,Ms).actionModel}},{key:"getCurrentAction",value:function(){return As(this,Ms).action}}]),t}(),Bs=$s,Vs={name:"workflow-designer",mixins:[ie["a"]],components:{NodeContainer:ms["default"]},setup:function(){ae["a"],ie["a"];var t=new Bs,e=ys["a"].getBusinessAdapter();e.eadApi=t;var n=[],r=Object(Ao["ref"])(null);return{nodeData:n,businessAdapter:e,eadApi:t,oldHandleCommit:r}},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(n){e[n]=Object.fromEntries(t[n])})),e=JSON.parse(JSON.stringify(e));var n=e.node;Object.keys(n).forEach((function(t){var e=n[t];e.data.option_forms&&e.data.option_forms.length&&e.data.option_forms.forEach((function(t){delete t.schema}))})),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("系统错误,请联系管理员")}))}},Hs=Vs,Us=Object(Kt["a"])(Hs,hs,vs,!1,null,"1744dd25",null),Gs=Us.exports,zs=function(){var t,e,n=this,r=this,o=r._self._c;return o("a-form-model",{ref:"form",staticStyle:{"min-height":"400px"},attrs:{model:r.actionModel,rules:r.rules}},[o("a-spin",{attrs:{spinning:r.loading}},[o("a-tabs",{on:{change:function(){return n.$refs.nodeContainer.toMiddle()}},model:{value:r.paneKey,callback:function(t){r.paneKey=t},expression:"paneKey"}},[r.paneSet.has("1")&&this.currentNode?o("a-tab-pane",{key:"1",attrs:{tab:"操作"}},[r.OPERATE.CHECK===r.workflowReq.operate?o("a-radio-group",{staticStyle:{"margin-bottom":"10px"},on:{change:function(t){return r.loadTodo()}},model:{value:r.workflowReq.page_operate.action,callback:function(t){r.$set(r.workflowReq.page_operate,"action",t)},expression:"workflowReq.page_operate.action"}},[o("a-radio-button",{attrs:{value:r.CHECK_ACTION.PASS}},[r._v(" "+r._s(null!==(t=r.currentNode.data.other_options)&&void 0!==t&&null!==(t=t.custom_action)&&void 0!==t&&t.pass?r.currentNode.data.other_options.custom_action.pass:"check"===r.currentNode.type?"审批通过":"执行")+" ")]),r.runtimeData.pageOperate.allowBack?o("a-radio-button",{attrs:{value:r.CHECK_ACTION.BACK}},[r._v(" "+r._s(null!==(e=r.currentNode.data.other_options)&&void 0!==e&&null!==(e=e.custom_action)&&void 0!==e&&e.pass?r.currentNode.data.other_options.custom_action.back:" 审批退回")+" ")]):r._e(),r.runtimeData.pageOperate.allowReassign?o("a-radio-button",{attrs:{value:r.CHECK_ACTION.REASSIGN}},[r._v(" 转办 ")]):r._e(),r.runtimeData.pageOperate.allowInvolve?o("a-radio-button",{attrs:{value:r.CHECK_ACTION.INVOLVE}},[r._v(" 加签 ")]):r._e(),r.runtimeData.pageOperate.allowEnd?o("a-radio-button",{attrs:{value:r.CHECK_ACTION.END}},[r._v(" 结束 ")]):r._e()],1):r._e(),(r.workflowReq.operate===r.OPERATE.START||r.workflowReq.operate===r.OPERATE.CHECK&&[r.CHECK_ACTION.PASS].includes(r.workflowReq.page_operate.action))&&r.runtimeData.currentNodeFormItem&&r.runtimeData.currentNodeFormItem.length?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[r._l(r.runtimeData.currentNodeFormItem,(function(t){return[t?o("Item",{key:t.name,attrs:{formModel:r.actionModel,params:{},prop:t.name,required:t.required,schema:t},on:{change:function(e){return r.handleItemChange(e,t)}},model:{value:r.actionModel[t.name],callback:function(e){r.$set(r.actionModel,t.name,e)},expression:"actionModel[attr.name]"}}):r._e()]}))],2)],1):r._e(),r.OPERATE.CHECK===r.workflowReq.operate?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-form-model-item",{attrs:{label:[r.CHECK_ACTION.REASSIGN,r.CHECK_ACTION.INVOLVE,r.CHECK_ACTION.END,r.CHECK_ACTION.BACK].includes(r.workflowReq.page_operate.action)||"task"===r.currentNode.type?"备注":"审批意见",prop:"xxx",size:"small"}},[o("a-textarea",{attrs:{"auto-size":{minRows:4,maxRows:6},placeholder:"请输入".concat([r.CHECK_ACTION.REASSIGN,r.CHECK_ACTION.INVOLVE,r.CHECK_ACTION.END].includes(r.workflowReq.page_operate.action)||"task"===r.currentNode.type?"备注":"审批或退回意见")},model:{value:r.workflowReq.page_operate.operate_content,callback:function(t){r.$set(r.workflowReq.page_operate,"operate_content",t)},expression:"workflowReq.page_operate.operate_content"}})],1)],1):r._e(),r.isCustomBack&&r.OPERATE.CHECK===r.workflowReq.operate&&r.workflowReq.page_operate.action===r.CHECK_ACTION.BACK?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-form-model-item",{attrs:{label:"退回步骤",prop:"xxx",size:"small"}},[o("a-select",{model:{value:r.workflowReq.page_operate.custom_back_node_code,callback:function(t){r.$set(r.workflowReq.page_operate,"custom_back_node_code",t)},expression:"workflowReq.page_operate.custom_back_node_code"}},r._l(r.currentNode.data.custom_back_nodes,(function(t){return o("a-select-option",{key:t,attrs:{value:t}},[r._v(" "+r._s(r.nodeHandler.getNode(t).name)+" ")])})),1)],1)],1):r._e(),r.runtimeData.todos&&r.runtimeData.todos.length&&(r.OPERATE.START===r.workflowReq.operate||r.OPERATE.CHECK===r.workflowReq.operate&&(r.workflowReq.page_operate.action===r.CHECK_ACTION.PASS||r.workflowReq.page_operate.action===r.CHECK_ACTION.BACK&&"bpmn"===r.currentNode.data.back_type))?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-card",{attrs:{size:"small",title:"后续步骤"}},[r.runtimeData.todos&&r.runtimeData.todos.length?o("a-tabs",{attrs:{"tab-position":"top"},model:{value:r.currentTodo,callback:function(t){r.currentTodo=t},expression:"currentTodo"}},r._l(r.runtimeData.todos,(function(t){var e,n,i,a,s,c,l,u;return o("a-tab-pane",{key:t.node_code,attrs:{disabled:!r.availableTodo(t),tab:null!==(e=null===(n=r.nodeHandler.getNode(t.node_code))||void 0===n?void 0:n.name)&&void 0!==e?e:"-"}},[r.availableTodo(t)?o("div",{staticClass:"actors"},[o("div",{staticStyle:{width:"60%"}},[o("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(e){return r.filterTodoItemActors(e,t)}}}),o("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":t.actorsf.value,pagination:!1,"row-selection":null!==(i=t.optional)&&void 0!==i&&i.enable?{type:t.optional.multi?"checkbox":"radio",selectedRowKeys:t.selected,onChange:function(e){t.selected=e}}:null,rowKey:"uid",size:"middle"}})],1),o("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{title:(null!==(a={queue:"依次",orsign:"或签",sign:"会签"}[null!==(s=t.optional)&&void 0!==s&&s.enable&&null!==(c=t.optional)&&void 0!==c&&c.multi||(null===(l=t.optional)||void 0===l||!l.enable)&&t.actorsf.value.length>=2?null===t||void 0===t?void 0:t.actor_check_mode:""])&&void 0!==a?a:"")+"执行人列表",size:"small"}},[o("draggable",{attrs:{disabled:!("queue"===(null===t||void 0===t?void 0:t.actor_check_mode)&&null!==(u=t.optional)&&void 0!==u&&u.enable),animation:"100",chosenClass:"chosen"},model:{value:t.selected,callback:function(e){r.$set(t,"selected",e)},expression:"item.selected"}},[o("transition-group",{attrs:{name:"flip-list",type:"transition"}},[t.selected&&null!==t&&void 0!==t&&t.selected.length?r._l(t.selected,(function(t){return o("div",{key:t,staticClass:"item"},[r._v(" "+r._s(r.userCache[t])+" ")])})):r._e()],2)],1)],1)],1):r._e()])})),1):r._e()],1)],1):r._e(),r.OPERATE.CHECK===r.workflowReq.operate&&r.workflowReq.page_operate.action===r.CHECK_ACTION.REASSIGN?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-card",{attrs:{size:"small",title:"转办执行人"}},[o("div",{staticClass:"actors"},[o("div",{staticStyle:{width:"60%"}},[r.runtimeData.reassign.actors?[o("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(t){return r.reassignUserFilter=t}}}),o("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":r.filterActors(r.reassignUserFilter,r.runtimeData.reassign.actors),pagination:!1,"row-selection":{type:"radio",selectedRowKeys:r.runtimeData.reassign.selected,onChange:function(t){r.runtimeData.reassign.selected=t}},rowKey:"uid",size:"middle"}})]:[o("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(){r.reassignUserPagination.current=1,r.handleTableChangeReassignUser(r.reassignUserPagination)}},model:{value:r.reassignUserFilter,callback:function(t){r.reassignUserFilter=t},expression:"reassignUserFilter"}}),o("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":r.reassignUserData,loading:r.loadingReassignUser,pagination:r.reassignUserPagination,"row-key":function(t){return t.uid},"row-selection":{type:"radio",selectedRowKeys:r.runtimeData.reassign.selected,onChange:function(t){n.reassignUserData.filter((function(e){return t.includes(e.uid)})).forEach((function(t){return r.userCache[t.uid]="".concat(t.name,"(").concat(t.org_name,")")})),r.runtimeData.reassign.selected=t}}},on:{change:r.handleTableChangeReassignUser}})]],2),o("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{size:"small",title:"转办人"}},[o("draggable",{attrs:{disabled:!0,chosenClass:"chosen"},model:{value:r.runtimeData.reassign.selected,callback:function(t){r.$set(r.runtimeData.reassign,"selected",t)},expression:"runtimeData.reassign.selected"}},[o("transition-group",r._l(r.runtimeData.reassign.selected,(function(t){return o("div",{key:t,staticClass:"item"},[r._v(" "+r._s(r.userCache[t])+" ")])})),0)],1)],1)],1)])],1):r._e(),r.OPERATE.CHECK===r.workflowReq.operate&&r.workflowReq.page_operate.action===r.CHECK_ACTION.INVOLVE?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-card",{attrs:{size:"small",title:"加签执行人"}},[o("div",{staticClass:"actors"},[o("div",{staticStyle:{width:"60%"}},[r.runtimeData.involve.actors?[o("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(t){return r.involveUserFilter=t}}}),o("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":r.filterActors(r.involveUserFilter,r.runtimeData.involve.actors),pagination:!1,"row-selection":{type:"radio",selectedRowKeys:r.runtimeData.involve.selected,onChange:function(t){r.runtimeData.involve.selected=t}},rowKey:"uid",size:"middle"}})]:[o("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(){r.involveUserPagination.current=1,r.handleTableChangeInvolveUser(r.involveUserPagination)}},model:{value:r.involveUserFilter,callback:function(t){r.involveUserFilter=t},expression:"involveUserFilter"}}),o("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":r.involveUserData,loading:r.loadingInvolveUser,pagination:r.involveUserPagination,"row-key":function(t){return t.uid},"row-selection":{type:"radio",selectedRowKeys:r.runtimeData.involve.selected,onChange:function(t){n.involveUserData.filter((function(e){return t.includes(e.uid)})).forEach((function(t){return r.userCache[t.uid]="".concat(t.name,"(").concat(t.org_name,")")})),r.runtimeData.involve.selected=t}}},on:{change:r.handleTableChangeInvolveUser}})]],2),o("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{size:"small",title:"加签人"}},[o("draggable",{attrs:{disabled:!0,chosenClass:"chosen"},model:{value:r.runtimeData.involve.selected,callback:function(t){r.$set(r.runtimeData.involve,"selected",t)},expression:"runtimeData.involve.selected"}},[o("transition-group",r._l(r.runtimeData.involve.selected,(function(t){return o("div",{key:t,staticClass:"item"},[r._v(" "+r._s(r.userCache[t])+" ")])})),0)],1)],1)],1)])],1):r._e()],1):r._e(),r.paneSet.has("2")?o("a-tab-pane",{key:"2",attrs:{"force-render":"",tab:"操作记录"}},[o("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[o("a-list",{attrs:{dataSource:this.runtimeData.logList},scopedSlots:r._u([{key:"renderItem",fn:function(t){return o("a-list-item",{},[o("a-list-item-meta",[o("strong",{attrs:{slot:"title"},slot:"title"},[r._v(" "+r._s(t.node_name)+" "),o("a-button",{directives:[{name:"show",rawName:"v-show",value:t.operate_data,expression:"item.operate_data"}],attrs:{icon:"read",type:"link"},on:{click:function(e){return r.showOperateData(t)}}})],1),r.$store.state.app.icon?o("a-avatar",{attrs:{slot:"avatar",src:r.$store.state.app.icon},slot:"avatar"}):o("a-avatar",{attrs:{slot:"avatar",icon:"user"},slot:"avatar"}),o("a-space",{attrs:{slot:"description",direction:"vertical"},slot:"description"},[o("div",[r._v(r._s(t.operate_desc))]),t.operate_content?o("div",[[r.CHECK_ACTION.REASSIGN,r.CHECK_ACTION.INVOLVE,r.CHECK_ACTION.END,r.CHECK_ACTION.EXECUTE].includes(t.operate)?o("div",[r._v(" 备注:"+r._s(t.operate_content)+" ")]):o("div",[r._v(" 审批意见:"+r._s(t.operate_content)+" ")])]):r._e(),o("a-space",[o("span",{staticStyle:{color:"#18274a"}},[o("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"clock-circle-o"}}),r._v(" "+r._s(r.moment(t.create_time).format("YYYY-MM-DD HH:mm"))+" ")],1),o("a-divider",{attrs:{type:"vertical"}}),o("span",{staticStyle:{color:"#18274a"}},[o("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"user"}}),r._v(" "+r._s(t.operator.name)+"("+r._s(t.operator.org_name)+") ")],1)],1)],1)],1)],1)}}],null,!1,542072683)})],1)],1):r._e(),r.paneSet.has("3")?o("a-tab-pane",{key:"3",attrs:{tab:"流程图"}},[o("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[o("div",{staticStyle:{position:"absolute","z-index":"999"}},[o("a-button",{directives:[{name:"show",rawName:"v-show",value:!r.fullscreenLoading,expression:"!fullscreenLoading"}],attrs:{icon:"arrows-alt",type:"link"},on:{click:r.showFullScreenFlow}}),o("a-icon",{directives:[{name:"show",rawName:"v-show",value:r.fullscreenLoading,expression:"fullscreenLoading"}],attrs:{type:"loading-3-quarters"}})],1),r.initNodeContainer?o("NodeContainer",{ref:"nodeContainer",staticStyle:{"max-height":"350px"},attrs:{"business-adapter":r.businessAdapter,"default-zoom-scale":70,"hide-zoom":!0,"is-preview":!0,"node-data":r.nodeData,"runtime-data":r.runtimeData},on:{nodeHandlerReady:r.nodeHandlerReady,nodeHandlerChange:r.nodeHandlerChange}}):r._e()],1)],1):r._e()],1)],1),o("a-modal",{attrs:{title:"操作表单",visible:r.isShowOperateData,footer:null,width:"50%"},on:{cancel:r.hideOperateData}},[o("a-descriptions",{attrs:{bordered:"",column:{xxl:2,xl:2,lg:2,md:2,sm:2,xs:1}}},r._l(r.operateDataItems,(function(t){return o("a-descriptions-item",{key:t.id,attrs:{label:t.alias}},[r._v(" "+r._s(r.formatter(t,t.value,t))+" ")])})),1)],1),o("a-modal",{staticClass:"jjh-fullscreen",attrs:{bodyStyle:{height:"85vh","overflow-y":"scroll","padding-bottom":"0"},destroyOnClose:!0,"dialog-style":{top:"0px"},visible:r.fullscreen,title:"流程图",width:"100%"},on:{cancel:r.hideFullScreenFlow}},[r.initNodeContainer?o("NodeContainer",{ref:"nodeContainer1",attrs:{"business-adapter":r.businessAdapter,"is-preview":!0,"node-data":r.nodeData,"runtime-data":r.runtimeData}}):r._e(),o("template",{slot:"footer"},[o("a-button",{key:"back",on:{click:r.hideFullScreenFlow}},[r._v("关闭")])],1)],2)],1)},Ks=[],Ys=n("289a"),Ws=n.n(Ys);function Js(t){return Js="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},Js(t)}function Zs(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=ec(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},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(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Xs(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Xs=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Js(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Js(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Qs(t){return rc(t)||nc(t)||ec(t)||tc()}function tc(){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 ec(t,e){if(t){if("string"===typeof t)return oc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oc(t,e):void 0}}function nc(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function rc(t){if(Array.isArray(t))return oc(t)}function oc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ic(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ac(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ic(Object(n),!0).forEach((function(e){sc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ic(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function sc(t,e,n){return e=cc(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cc(t){var e=lc(t,"string");return"symbol"==Js(e)?e:String(e)}function lc(t,e){if("object"!=Js(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Js(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function uc(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function fc(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){uc(i,r,o,a,s,"next",t)}function s(t){uc(i,r,o,a,s,"throw",t)}a(void 0)}))}}var dc={START:"start",CHECK:"check",QUERY:"query"},pc={PREVIEW:"preview",CONFIRM:"confirm"},hc={PASS:"pass",BACK:"back",REASSIGN:"reassign",INVOLVE:"involve",END:"end",EXECUTE:"execute"},vc={name:"runtime-workflow",mixins:[ie["a"],Pt["a"]],components:{NodeContainer:ms["default"],Item:ae["a"],draggable:Ws.a},data:function(){return{OPERATE:dc,OPERATE_MODE:pc,CHECK_ACTION:hc,nodeHandler:null,loading:!0,paneSet:new Set,initNodeContainer:!1,fullscreen:!1,fullscreenLoading:!1,isShowOperateData:!1,operateDataItems:[],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",operate_data_id:""},"审批人":{status:"ongoing",operate_data_id:""},"抄送人":{status:"finish",operate_data_id:""}},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:{},formAttrs:[],activityColumns:[]}},setup:function(t){var e=t.columns,n=new Bs,r=ys["a"].getBusinessAdapter(),o={operate_mode:pc.PREVIEW,operate:dc.QUERY,page_operate:{action:hc.PASS,operate_content:"",custom_back_node_code:void 0,todos:void 0,involve:void 0,reassign:void 0,form_data:{}},model_id:null,data_id:null};return{columnsRef:Object(Ao["ref"])(e),workflowReq:Object(Ao["ref"])(o),eadApi:n,businessAdapter:r}},created:function(){},mounted:function(){var t=this;return fc(Xs().mark((function e(){var n,r,o,i,a,s,c,l,u,f,d,p,h;return Xs().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 ac({},t)})),t.eadApi.setComponent(t),t.businessAdapter.eadApi=t.eadApi,t.workflowReq.operate=null!==(n=dc[t.configs["workflow.operate"].toUpperCase()])&&void 0!==n?n:t.workflowReq.operate,t.workflowReq.data_id=t.eadApi.getModelValues()[t.eadApi.getModelIdName()],t.workflowReq.model_id=t.configs["workflow.id"],t.eadApi.getModelValues().workflow_req=t.workflowReq,e.next=10,t.eadApi.runCurrentAction();case 10:if(c=e.sent,c){e.next=15;break}return t.loading=!1,t.$emit("close"),e.abrupt("return");case 15:Object.keys(t.actionModel).forEach((function(e){Object.keys(c.data).includes(e)&&(t.actionModel[e]=c.data[e])})),t.workflow=null===c||void 0===c||null===(r=c.data)||void 0===r?void 0:r.workflow,l=null===c||void 0===c||null===(o=c.data)||void 0===o||null===(o=o.workflow)||void 0===o?void 0:o.runtime_data,l&&Object.keys(l).length&&(t.runtimeData=l),t.runtimeData.logList||(t.runtimeData.logList=[]),t.runtimeData.todos&&t.runtimeData.todos.forEach((function(t){(!t.optional||t.optional&&!t.optional.enable)&&(t.selected&&t.selected.length||(t.selected=t.actors.map((function(t){return t.uid})))),t.optional&&t.optional.enable&&!t.optional.multi&&(t.selected&&t.selected.length||(t.selected=[t.actors[0].uid]))})),t.runtimeData.actorLogs||(t.runtimeData.actorLogs={}),t.runtimeData.caseNodes&&t.runtimeData.caseNodes.length&&(u={},t.runtimeData.caseNodes.forEach((function(t){u[t.node_code]=ac({},t)})),t.runtimeData.caseNodes=u),t.runtimeData.todos&&t.runtimeData.todos.forEach((function(t){t.actorfilter||(t.actorfilter=""),t.actorsf=Object(Ao["ref"])(Qs(t.actors))})),f=[],null!==(i=t.runtimeData)&&void 0!==i&&null!==(i=i.involve)&&void 0!==i&&i.actors&&f.push.apply(f,Qs(t.runtimeData.involve.actors)),null!==(a=t.runtimeData)&&void 0!==a&&null!==(a=a.reassign)&&void 0!==a&&a.actors&&f.push.apply(f,Qs(t.runtimeData.reassign.actors)),t.runtimeData.todos&&t.runtimeData.todos.forEach((function(t){f.push.apply(f,Qs(t.actors))})),f.forEach((function(e){t.userCache[e.uid]="".concat(e.name,"(").concat(e.org_name,")")})),d=null===c||void 0===c||null===(s=c.data)||void 0===s||null===(s=s.workflow)||void 0===s?void 0:s.node_json,p=d?null===d||void 0===d?void 0:d.node:null,t.nodeData=p?Qs(Object.values(p)):[],h=t.paneSet,[dc.START,dc.CHECK].includes(t.workflowReq.operate)&&h.add("1"),h.add("2"),h.add("3"),t.initNodeContainer=!0,t.$nextTick((function(){t.paneKey=Qs(h.values())[0]})),t.validExpression(),t.loadTodo(),t.actionModel.workflow_req=t.workflowReq,t.actionModel.workflow=t.workflow,t.loading=!1,t.workflowReq.operate===dc.CHECK&&(t.fetchInvolveUser(),t.fetchReassignUser());case 44: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=ac({},this.reassignUserPagination);e.current=t.current,this.reassignUserPagination=e,this.fetchReassignUser({userName:this.reassignUserFilter,pagination:{pageSize:t.pageSize,current:t.current}})},showOperateData:function(t){var e=this;return fc(Xs().mark((function n(){var r,o,i;return Xs().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=e.columns,!t.option_view_id){n.next=6;break}return n.next=4,e.eadApi.getViewSchema(t.option_view_id);case 4:o=n.sent,r=null===o||void 0===o?void 0:o.model.attrs;case 6:i=JSON.parse(t.operate_data),e.operateDataItems=[],r.forEach((function(t){if(t.name in i){var n=ac({},t);n.value=i[t.name],e.operateDataItems.push(n)}})),e.isShowOperateData=!0;case 10:case"end":return n.stop()}}),n)})))()},hideOperateData:function(){this.isShowOperateData=!1},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 n=ac({},t.reassignUserPagination);n.total=e.count,t.loadingReassignUser=!1,t.reassignUserData=e.results,t.reassignUserPagination=n}))},handleTableChangeInvolveUser:function(t){var e=ac({},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 n=ac({},t.involveUserPagination);n.total=e.count,t.loadingInvolveUser=!1,t.involveUserData=e.results,t.involveUserPagination=n}))},getAllUsers:function(t,e){var n=this;return fc(Xs().mark((function r(){var o,i;return Xs().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,n.eadApi.getDatasetApi("flowdir-allusercount",{user_name:t});case 2:return o=r.sent,r.next=5,n.eadApi.getDatasetApi("flowdir-alluser",{user_name:t,limit_index:(e.current-1)*e.pageSize,limit_num:e.pageSize});case 5:return i=r.sent,r.abrupt("return",{count:o[0].count,results:i});case 7:case"end":return r.stop()}}),r)})))()},handleCommit:function(){var t=this,e=!1;if(this.workflowReq.operate_mode=pc.CONFIRM,this.workflowReq.operate===dc.START){var n;if(null!==(n=this.runtimeData.todos)&&void 0!==n&&n.length){var r=this.getAvailableTodos(),o=this.nodeHandler.getAllRoute(this.currentNode.code).find((function(t){return"end"===t.type}));if(!r.length&&!o)return void this.$message.error("无法匹配到符合条件的后续步骤");this.workflowReq.page_operate.todos=r}var i=this.nodeHandler.map(),a={};Object.keys(i).forEach((function(t){a[t]=Object.fromEntries(i[t])})),this.workflowReq.node_json=a}if(this.workflowReq.operate===dc.CHECK){var s,c;if(this.workflowReq.page_operate.action===hc.BACK)if("bpmn"===this.currentNode.data.back_type&&(e=!0),null!==(s=this.runtimeData.todos)&&void 0!==s&&s.length){var l=this.getAvailableTodos(),u=this.nodeHandler.getAllRoute(this.currentNode.code).find((function(t){return"end"===t.type}));if(!l.length&&!u)return void this.$message.error("无法匹配到符合条件的后续步骤");this.workflowReq.page_operate.todos=l}if(this.workflowReq.page_operate.action===hc.PASS)if(null!==(c=this.runtimeData.todos)&&void 0!==c&&c.length){var f=this.getAvailableTodos(),d=this.nodeHandler.getAllRoute(this.currentNode.code).find((function(t){return"end"===t.type}));if(!f.length&&!d)return void this.$message.error("无法匹配到符合条件的后续步骤");this.workflowReq.page_operate.todos=f}if(this.workflowReq.page_operate.action===hc.INVOLVE){var p;if(null===(p=this.runtimeData.involve)||void 0===p||null===(p=p.selected)||void 0===p||!p.length)return void this.$message.error("请选择加签人");this.workflowReq.page_operate.involve=this.runtimeData.involve}if(this.workflowReq.page_operate.action===hc.REASSIGN){var h;if(null===(h=this.runtimeData.reassign)||void 0===h||null===(h=h.selected)||void 0===h||!h.length)return void this.$message.error("请选择转办人");this.workflowReq.page_operate.reassign=this.runtimeData.reassign}}if(this.currentNode.data.other_options.assert&&this.currentNode.data.other_options.assert.length){var v,m=this.currentNode.data.other_options.assert.filter((function(e){return"all"===e.action||e.action===t.workflowReq.page_operate.action})).filter((function(t){return t.expression&&t.message})),y=Zs(m);try{var g,b=function(){var e=v.value;try{var n={};t.activityColumns.forEach((function(e){return n[e]=t.actionModel[e]}));var r=new Function(Object.keys(n),"return "+e.expression),o=r.apply(void 0,Qs(Object.values(n)));if(!o)return t.$message.error(e.message),{v:void 0}}catch(i){return t.$message.error("断言表达式配置错误,"+e.message),{v:void 0}}};for(y.s();!(v=y.n()).done;)if(g=b(),g)return g.v}catch(_){y.e(_)}finally{y.f()}}this.runtimeData.currentNodeFormItem&&this.runtimeData.currentNodeFormItem.forEach((function(e){t.workflowReq.page_operate.form_data[e.name]=t.actionModel[e.name]})),this.actionModel.workflow=this.workflow,this.actionModel.workflow_req=this.workflowReq;var w=ac({},this.actionModel);w.workflow_req=ac({},this.workflowReq),w.workflow_req.page_operate=ac({},this.workflowReq.page_operate),e&&(w.workflow_req.page_operate.action="BPMN_BACK"),this.$emit("commit",w)},nodeHandlerReady:function(t){var e=this;return fc(Xs().mark((function n(){var r,o,i,a,s,c;return Xs().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.nodeHandler=t,i=e.currentNode=t.getNode(e.runtimeData.currentNodeCode),!e.runtimeData.PageOperate&&null!==i&&void 0!==i&&null!==(r=i.data)&&void 0!==r&&r.page_options&&(e.runtimeData.PageOperate=i.data.page_options),a=e.columns,!i||!i.data.option_view_id){n.next=9;break}return n.next=7,e.eadApi.getViewSchema(i.data.option_view_id);case 7:s=n.sent,a=null===s||void 0===s?void 0:s.model.attrs;case 9:c=null!==(o=e.runtimeData.currentNodeOptionForms)&&void 0!==o?o:null===i||void 0===i?void 0:i.data.option_forms,e.runtimeData.currentNodeFormItem=c.filter((function(t){return"none"!==t.access})).map((function(t){var n=a.find((function(e){return e.name===t.attrCode}));return n&&(n.params||(n.params={}),n.params.readonly="readonly"===t.access,n.required=t.required,i&&i.data.option_view_id&&(e.actionModel[n.name]=null)),n})).filter((function(t){return t})),e.isCustomBack="custom"===(null===i||void 0===i?void 0:i.data.back_type),e.isCustomBack&&(e.runtimeData.customBackNodes||(e.runtimeData.customBackNodes=Qs(null===i||void 0===i?void 0:i.data.custom_back_nodes)),e.workflowReq.page_operate.custom_back_node_code=e.runtimeData.customBackNodes[0]);case 13:case"end":return n.stop()}}),n)})))()},nodeHandlerChange:function(t){var e=this;return fc(Xs().mark((function n(){var r,o,i,a,s,c,l,u,f;return Xs().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(s=t.map(),s.node.size!==Object.keys(e.workflow.node_json.node).length){n.next=3;break}return n.abrupt("return");case 3:return c={},Object.keys(s).forEach((function(t){c[t]=Object.fromEntries(s[t])})),e.workflowReq.node_json=c,e.eadApi.getModelValues().workflow_req=e.workflowReq,n.next=9,e.eadApi.runCurrentAction();case 9:if(l=n.sent,l){n.next=14;break}return e.loading=!1,e.$emit("close"),n.abrupt("return");case 14:e.workflow=null===l||void 0===l||null===(r=l.data)||void 0===r?void 0:r.workflow,u=null===l||void 0===l||null===(o=l.data)||void 0===o||null===(o=o.workflow)||void 0===o?void 0:o.runtime_data,u&&Object.keys(u).length&&(e.runtimeData=u),e.runtimeData.todos&&e.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]))})),e.runtimeData.todos&&e.runtimeData.todos.forEach((function(t){t.actorfilter||(t.actorfilter=""),t.actorsf=Object(Ao["ref"])(Qs(t.actors))})),f=[],null!==(i=e.runtimeData)&&void 0!==i&&null!==(i=i.involve)&&void 0!==i&&i.actors&&f.push.apply(f,Qs(e.runtimeData.involve.actors)),null!==(a=e.runtimeData)&&void 0!==a&&null!==(a=a.reassign)&&void 0!==a&&a.actors&&f.push.apply(f,Qs(e.runtimeData.reassign.actors)),e.runtimeData.todos&&e.runtimeData.todos.forEach((function(t){f.push.apply(f,Qs(t.actors))})),e.userCache={},f.forEach((function(t){e.userCache[t.uid]="".concat(t.name,"(").concat(t.org_name,")")})),e.currentTodo=null,e.validExpression(),e.loadTodo();case 28:case"end":return n.stop()}}),n)})))()},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 n=this;return fc(Xs().mark((function r(){return Xs().wrap((function(r){while(1)switch(r.prev=r.next){case 0:n.setModel(t,e.name),n.loadTodo();case 2:case"end":return r.stop()}}),r)})))()},validExpression:function(){var t,e=Zs(this.runtimeData.todos);try{for(e.s();!(t=e.n()).done;){var n=t.value;if(this.availableTodo(n),this.expressionError)return!1}}catch(r){e.e(r)}finally{e.f()}return!0},getAvailableTodos:function(){var t,e=[],n=Zs(this.runtimeData.todos);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.availableTodo(r)&&e.push({node_id:r.node_id,node_code:r.node_code,selected:r.selected})}}catch(o){n.e(o)}finally{n.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,n=Zs(this.runtimeData.todos);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(this.availableTodo(r))return void(this.currentTodo=r.node_code)}}catch(o){n.e(o)}finally{n.f()}}},availableTodo:function(t){var e=this;if(this.expressionError)return!1;var n=null===t||void 0===t?void 0:t.condition;if(!n)return!0;try{var r={};this.activityColumns.forEach((function(t){return r[t]=e.actionModel[t]}));var o=new Function(Object.keys(r),"return "+n),i=o.apply(void 0,Qs(Object.values(r)));return t.available=i,i}catch(a){this.expressionError=!0,this.$message.error("[".concat(t.node_code,"]表达式执行错误,请联系系统管理员!表达式:").concat(n))}return!1}}},mc=vc,yc=(n("2ff4"),Object(Kt["a"])(mc,zs,Ks,!1,null,"71490f40",null)),gc=yc.exports,bc=(n("1f51"),{NormalForm:oo,UploadForm:vo,PickerViewForm:No,AlgorithmForm:pa,PickerTransferForm:Ra,PickerTreeForm:Wa,WorkflowReport:ps,WorkflowDesigner:Gs,RuntimeWorkflow:gc});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 _c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_c(Object(n),!0).forEach((function(e){kc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function kc(t,e,n){return e=Oc(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Oc(t){var e=Sc(t,"string");return"symbol"==wc(e)?e:String(e)}function Sc(t,e){if("object"!=wc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=wc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ec={mixins:[i,a,Xr],components:xc({},bc)},jc=Ec,Nc=Object(Kt["a"])(jc,Wr,Jr,!1,null,null,null),Lc=Nc.exports,Pc=e["a"]={ModelList:en,ModelProfile:Yr,ModelForm:Lc}},c32d:function(t,e){t.exports=l},c4a3:function(t,e,n){(function(e,r,o){t.exports=r(n("bf17"),n("023d"))})(0,(function(t){return t.pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,r=4*e,o=r-n%r,i=n+o-1;t.clamp(),t.words[i>>>2]|=o<<24-i%4*8,t.sigBytes+=o},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923}))},c6e8:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("9f89");function o(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/\${([\s\S]+?)}/g;return r(t,{reInterpolate:n})(e)}},c75f:function(t,e,n){"use strict";n("214e")},cb5c:function(t,e,n){},cb66:function(t,e,n){},ce44:function(t,e,n){"use strict";(function(t){
27
+ return function(e){var n=t,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,s=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=o.create([0,1518500249,1859775393,2400959708,2840853838]),d=o.create([1352829926,1548603684,1836072691,2053994217,0]),p=a.RIPEMD160=i.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,o=t[r];t[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,a,p,w,_,x,k,O,S,E,j,N=this._hash.words,L=f.words,P=d.words,C=s.words,A=c.words,T=l.words,R=u.words;x=i=N[0],k=a=N[1],O=p=N[2],S=w=N[3],E=_=N[4];for(n=0;n<80;n+=1)j=i+t[e+C[n]]|0,j+=n<16?h(a,p,w)+L[0]:n<32?v(a,p,w)+L[1]:n<48?m(a,p,w)+L[2]:n<64?y(a,p,w)+L[3]:g(a,p,w)+L[4],j|=0,j=b(j,T[n]),j=j+_|0,i=_,_=w,w=b(p,10),p=a,a=j,j=x+t[e+A[n]]|0,j+=n<16?g(k,O,S)+P[0]:n<32?y(k,O,S)+P[1]:n<48?m(k,O,S)+P[2]:n<64?v(k,O,S)+P[3]:h(k,O,S)+P[4],j|=0,j=b(j,R[n]),j=j+E|0,x=E,E=S,S=b(O,10),O=k,k=j;j=N[1]+p+S|0,N[1]=N[2]+w+E|0,N[2]=N[3]+_+x|0,N[3]=N[4]+i+k|0,N[4]=N[0]+a+O|0,N[0]=j},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function h(t,e,n){return t^e^n}function v(t,e,n){return t&e|~t&n}function m(t,e,n){return(t|~e)^n}function y(t,e,n){return t&n|e&~n}function g(t,e,n){return t^(e|~n)}function b(t,e){return t<<e|t>>>32-e}n.RIPEMD160=i._createHelper(p),n.HmacRIPEMD160=i._createHmacHelper(p)}(Math),t.RIPEMD160}))},b69c:function(t,e,n){"use strict";n("49fc")},b7f9:function(t,e,n){"use strict";function r(t){return r="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},r(t)}function o(t){return c(t)||s(t)||a(t)||i()}function i(){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 a(t,e){if(t){if("string"===typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function s(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function c(t){if(Array.isArray(t))return l(t)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new A(r||[]);return i(a,"_invoke",{value:N(t,n,s)}),a}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var h="suspendedStart",v="suspendedYield",m="executing",y="completed",g={};function b(){}function w(){}function _(){}var x={};f(x,s,(function(){return this}));var k=Object.getPrototypeOf,O=k&&k(k(T([])));O&&O!==n&&o.call(O,s)&&(x=O);var S=_.prototype=b.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(i,a,s,c){var l=p(t[i],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==r(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,s,c)}),(function(t){n("throw",t,s,c)})):e.resolve(f).then((function(t){u.value=t,s(u)}),(function(t){return n("throw",t,s,c)}))}c(l.arg)}var a;i(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function N(e,n,r){var o=h;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var l=p(e,n,r);if("normal"===l.type){if(o=r.done?y:v,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=y,r.method="throw",r.arg=l.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=p(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function T(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+" is not iterable")}return w.prototype=_,i(S,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(j.prototype),f(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new j(d(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),f(S,l,"Generator"),f(S,s,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function f(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function d(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){f(i,r,o,a,s,"next",t)}function s(t){f(i,r,o,a,s,"throw",t)}a(void 0)}))}}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(t,e,n){return e=m(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){var e=y(t,"string");return"symbol"==r(e)?e:String(e)}function y(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}e["a"]={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:h({},this.values)||{},hasFile:!1}},created:function(){var t=this;if(this.defaultValues){var e=function(e){var n=t.columns.find((function(t){return t.name===e}))||void 0,r=(null===n||void 0===n?void 0:n.required)||!1;if(null!==n&&void 0!==n&&n.configs.length){var o=Object.fromEntries(n.configs.map((function(t){return[t.key,t.value]})));r=o&&o.required?"1"===o.required:null===n||void 0===n?void 0:n.required}(void 0===t.actionModel[e]||""===t.actionModel[e]&&r)&&t.$set(t.actionModel,e,t.defaultValues[e])};for(var n in this.defaultValues)e(n)}},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 n,r=["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:r?"change":"blur"}),e.maxLength&&e.minLength)&&(n=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:n,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 n=e.name;this.setModel(n,t)},handleItemFill:function(t){var e=this;t.forEach((function(t){return e.setModel(t.name,t.value)}))},handleSubmit:function(){var t=this;return d(u().mark((function e(){return u().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 d(u().mark((function e(){var n,r,i,a,s;return u().wrap((function(e){while(1)switch(e.prev=e.next){case 0:Array.isArray(t.actionModel)?n=t.actionModel:(r=t.params,i=void 0===r?{}:r,a=i.valuesName,s=a?[].concat(o(t.columns),[{name:a}]):t.columns,n=Object.fromEntries(s.map((function(e){var n=void 0===t.actionModel[e.name]?null:t.actionModel[e.name];return[e.name,n]})))),t.$emit("commit",n);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}}}},bd28:function(t,e,n){"use strict";n("aa2c")},bf17:function(t,e,n){(function(e){(function(e,n){t.exports=n()})(0,(function(){var t=t||function(t,r){var o;if("undefined"!==typeof window&&window.crypto&&(o=window.crypto),"undefined"!==typeof self&&self.crypto&&(o=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(o=globalThis.crypto),!o&&"undefined"!==typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&"undefined"!==typeof e&&e.crypto&&(o=e.crypto),!o)try{o=n(0)}catch(y){}var i=function(){if(o){if("function"===typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(y){}if("function"===typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(y){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),s={},c=s.lib={},l=c.Base=function(){return{extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=c.WordArray=l.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=e!=r?e:4*t.length},toString:function(t){return(t||d).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,o=t.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=n[i>>>2]>>>24-i%4*8&255;e[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var s=0;s<o;s+=4)e[r+s>>>2]=n[s>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=l.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(i());return new u.init(e,t)}}),f=s.enc={},d=f.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o<n;o++){var i=e[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new u.init(n,e/2)}},p=f.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o<n;o++){var i=e[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new u.init(n,e)}},h=f.Utf8={stringify:function(t){try{return decodeURIComponent(escape(p.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return p.parse(unescape(encodeURIComponent(t)))}},v=c.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=h.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,o=r.words,i=r.sigBytes,a=this.blockSize,s=4*a,c=i/s;c=e?t.ceil(c):t.max((0|c)-this._minBufferSize,0);var l=c*a,f=t.min(4*l,i);if(l){for(var d=0;d<l;d+=a)this._doProcessBlock(o,d);n=o.splice(0,l),r.sigBytes-=f}return new u.init(n,f)},clone:function(){var t=l.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),m=(c.Hasher=v.extend({cfg:l.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new m.HMAC.init(t,n).finalize(e)}}}),s.algo={});return s}(Math);return t}))}).call(this,n("a42b"))},c099:function(t,e,n){},c14c:function(t,e,n){"use strict";n("d636")},c246:function(t,e,n){"use strict";var r=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",attrs:{config:t.configs}})]},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,n){return e?"当前页面 ".concat(n[0],"-").concat(n[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},scopedSlots:t._u([t.actionConfigs["form.footer"]?{key:"footer",fn:function(){return[e(t.actionConfigs["form.footer"],{tag:"component",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:{ok:t.submitActionView,close:t.closeActionView}})]},proxy:!0}:null],null,!0)},[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()])},o=[],i={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(){}},a={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:{}},s=n("796d"),c=n.n(s);function l(t){return l="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},l(t)}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),s=new A(r||[]);return o(a,"_invoke",{value:N(t,n,s)}),a}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var h="suspendedStart",v="suspendedYield",m="executing",y="completed",g={};function b(){}function w(){}function _(){}var x={};f(x,a,(function(){return this}));var k=Object.getPrototypeOf,O=k&&k(k(T([])));O&&O!==n&&r.call(O,a)&&(x=O);var S=_.prototype=b.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,a,s){var c=p(t[o],t,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==l(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function N(e,n,r){var o=h;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var l=p(e,n,r);if("normal"===l.type){if(o=r.done?y:v,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=y,r.method="throw",r.arg=l.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=p(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function T(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(l(e)+" is not iterable")}return w.prototype=_,o(S,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(j.prototype),f(j.prototype,s,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new j(d(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),f(S,c,"Generator"),f(S,a,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function f(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function d(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){f(i,r,o,a,s,"next",t)}function s(t){f(i,r,o,a,s,"throw",t)}a(void 0)}))}}function p(t){return y(t)||m(t)||v(t)||h()}function h(){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 v(t,e){if(t){if("string"===typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(t,e):void 0}}function m(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function y(t){if(Array.isArray(t))return g(t)}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach((function(e){_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _(t,e,n){return e=x(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function x(t){var e=k(t,"string");return"symbol"==l(e)?e:String(e)}function k(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var O={props:{profileMode:{type:String,default:"page",enum:["page","embed","column","collapse","preview"]},layout:{type:String,default:"layout-view-model-list"}},data:function(){return{query:{},schemaFuncQueue:[],unwatchQuery:null,autoRefreshTimer:null}},computed:{columns:function(){var t=this,e=this.$createElement,n=this.idName,r=this.hide,o=this.action,i=this.model.attrs.filter((function(t){return!["all","list"].includes(t.hidden)&&!r.includes(t.name)&&t.name!==n&&"model"!==t.metaType&&"link"!==t.type})).map((function(n){var r=Object.fromEntries(n.configs.map((function(t){return[t.key,t.value]})));return{dataIndex:n.name,key:n.name,title:n.alias,align:["Integer","Number"].includes(n.metaType)?"right":"left",schema:n,width:r["list.width"],fixed:r["list.fixed"]||!1,ellipsis:"true"===r["list.ellipsis"],customRender:function(r,i,a){return e("Cell",{on:{profile:function(){return t.handleModelProfile(i)},change:function(e){return t.handleCellChange(e,n.name,i)}},attrs:{value:r,row:i,schema:n,editable:t.editable(i,o,n),idName:t.idName,rowIndex:a}})}}})),a=[],s=null;return this.configs&&this.configs["list.collapse.action"]&&(isNaN(Number(this.configs["list.collapse.action"]))?a=this.configs["list.collapse.action"].split(","):s=Number(this.configs["list.collapse.action"])),this.inlineActions&&this.inlineActions.length&&!this.actionRowEditing&&i.push({title:"操作",key:"_action",fixed:this.configs["list.scrollX"]?"right":null,customRender:function(n,r){var o=null;return o=a.length?[e("span",[t.rowActions(r).filter((function(t){return!a.includes(t.key)})).map((function(n,o){return[o?e("a-divider",{attrs:{type:"vertical"}}):"",e("a",{on:{click:function(e){return t.handleRowAction(n,r,e)}}},[n.name,"file"===n.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(n,e.target.files),e.target.value=""}}}):""])]}))]),t.rowActions(r).filter((function(t){return!a.includes(t.key)})).length?e("a-divider",{attrs:{type:"vertical"}}):"",t.rowActions(r).filter((function(t){return a.includes(t.key)})).length?e("a-dropdown",{attrs:{trigger:["click"]}},[e("a",{class:"ant-dropdown-link",on:{click:function(t){return t.preventDefault()}}},["更多 ",e("a-icon",{attrs:{type:"down"}})]),e("a-menu",{slot:"overlay"},[t.rowActions(r).filter((function(t){return a.includes(t.key)})).map((function(n,o){return e("a-menu-item",{key:n.id},[e("a",{on:{click:function(e){return t.handleRowAction(n,r,e)}}},[n.name,"file"===n.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(n,e.target.files),e.target.value=""}}}):""])])}))])]):""]:s?[e("span",[t.rowActions(r).slice(0,s).map((function(n,o){return[o?e("a-divider",{attrs:{type:"vertical"}}):"",e("a",{on:{click:function(e){return t.handleRowAction(n,r,e)}}},[n.name,"file"===n.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(n,e.target.files),e.target.value=""}}}):""])]}))]),t.rowActions(r).slice(0,s).length?e("a-divider",{attrs:{type:"vertical"}}):"",t.rowActions(r).slice(s).length?e("a-dropdown",{attrs:{trigger:["click"]}},[e("a",{class:"ant-dropdown-link",on:{click:function(t){return t.preventDefault()}}},["更多 ",e("a-icon",{attrs:{type:"down"}})]),e("a-menu",{slot:"overlay"},[t.rowActions(r).slice(s).map((function(n,o){return e("a-menu-item",{key:n.id},[e("a",{on:{click:function(e){return t.handleRowAction(n,r,e)}}},[n.name,"file"===n.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(n,e.target.files),e.target.value=""}}}):""])])}))])]):""]:t.rowActions(r).map((function(n,o){return[o?e("a-divider",{attrs:{type:"vertical"}}):"",e("a",{on:{click:function(e){return t.handleRowAction(n,r,e)}}},[n.name,"file"===n.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(n,e.target.files),e.target.value=""}}}):""])]})),{children:o}},actions:function(e){return t.rowActions(e)}}),i},configs:function(){return this.schema&&this.schema.configs&&this.schema.configs.length?Object.fromEntries(this.schema.configs.map((function(t){return[t.key,t.value]}))):null},filters:function(){var t=this;return this.model&&this.model.filters?this.model.filters.filter((function(e){return!t.hide.includes(e.name)&&!["tree-select"].includes(e.control)})).map((function(e){var n=t.model.attrs.find((function(t){return t.name===e.name}));return w(w({},n),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 n=t.model.attrs.find((function(t){return t.name===e.name}));return w(w({},n),e)})):[]},filterValues:function(){var t=[].concat(p(this.filters),p(this.treeFilters)).filter((function(t){return!!t.value})).map((function(t){return[t.name,t.value]}));return w(w({},Object.fromEntries(t)),this.defaults)},dataSource:function(){var t=this,e=this.findAll;if(this.actionModel){var n=e.find((function(e){return e[t.idName]===t.actionModel[t.idName]}));for(var r in n)n[r]!==this.actionModel[r]&&(this.actionModel[r]=n[r])}return e},next:function(){var t=this,e=this.actionModel&&this.actionModel[this.idName],n=this.findAll.findIndex((function(n){return n[t.idName]===e}));return this.findAll[n+1]},previous:function(){var t=this,e=this.actionModel&&this.actionModel[this.idName],n=this.findAll.findIndex((function(n){return n[t.idName]===e}));return this.findAll[n-1]}},created:function(){var t=this;return d(u().mark((function e(){var n;return u().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.schema){e.next=4;break}return e.next=3,t.loadSchema();case 3:while(t.schemaFuncQueue.length>0)n=t.schemaFuncQueue.pop(),n();case 4:t.query=t.params.route&&t.params.route.query.close?w(w(w({},t.query),t.params.filters),t.filterValues):w(w(w(w({},t.query),t.params.filters),t.filterValues),t.$route.query);case 5:case"end":return e.stop()}}),e)})))()},activated:function(){var t=this;this.schema?this.configs&&this.configs["auto-refresh"]&&(this.autoRefreshTimer=!0,this.autoRefresh(+this.configs["auto-refresh"])):this.schemaFuncQueue.push((function(){t.configs&&t.configs["auto-refresh"]&&(t.autoRefreshTimer=!0,t.autoRefresh(+t.configs["auto-refresh"]))})),this.parentIds||"page"!==this.mode||c.a.stringify(this.query)!==c.a.stringify(this.$route.query)&&(this.query=w(w({},this.query),this.$route.query),this.$router.push({query:this.query})),this.unwatchQuery=this.$watch("query",{handler:function(t,e){var n=Object.keys(t),r=Object.keys(e),o=n.some((function(e){return!r.includes(e)&&!t[e]}));o||(this.load(),this.clearSelection&&this.clearSelection(),!this.parentIds&&"page"===this.mode&&this.$router.push({query:this.query}))},deep:!0})},deactivated:function(){this.autoRefreshTimer&&clearTimeout(this.autoRefreshTimer),this.autoRefreshTimer=null,this.unwatchQuery&&this.unwatchQuery()},methods:{autoRefresh:function(t){var e=this;return d(u().mark((function n(){return u().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.handleRefresh();case 2:e.autoRefreshTimer&&(e.autoRefreshTimer=setTimeout((function(){return e.autoRefresh(t)}),t));case 3:case"end":return n.stop()}}),n)})))()},load:function(){var t=arguments,e=this;return d(u().mark((function n(){var r,o;return u().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.length>0&&void 0!==t[0]&&t[0],n.next=3,e.loadData({query:e.query,mute:r});case 3:return o=n.sent,n.abrupt("return",o);case 5:case"end":return n.stop()}}),n)})))()},handleNext:function(){this.actionModel=w({},this.next)},handlePrevious:function(){this.actionModel=w({},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=w({},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 n=this.configs["list.separateKey"]||null,r=this.configs["list.separateValue"]||null;return n&&r&&t[n]===r?"list-separate-color":""},onFileChange:function(t,e){var n=t.list?t.list:"file";this.handleAction(t,null,_({},n,e))},editable:function(t,e,n){var r,o=w({},this.configs);if(null!==e&&void 0!==e&&null!==(r=e.configs)&&void 0!==r&&r.length){var i=Object.fromEntries(e.configs.map((function(t){return[t.key,t.value]})));o=w(w({},o),i)}var a=o["list.actionRowNotEditing.key"]&&o["list.actionRowNotEditing.value"]?this.actionRowEditing&&!o["list.actionRowNotEditing.value"].split(",").includes(t[o["list.actionRowNotEditing.key"]]):this.actionRowEditing;if(null!==e&&void 0!==e&&e.list){var s=e.list.split(",");return a&&s.includes(n.name)}return a}}},S={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 E(t){return P(t)||L(t)||N(t)||j()}function j(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function N(t,e){if(t){if("string"===typeof t)return C(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(t,e):void 0}}function L(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function P(t){if(Array.isArray(t))return C(t)}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var A={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,n=this.dataSource,r=function t(n,r){for(var o=0;o<n.length;o++){if(n[o][e]===r)return n[o];if(n[o]._childList){var i=t(n[o]._childList,r);if(i)return i}}return null};"picker"===this.mode&&"multiple"===this.pickerMode?(this.selections=[].concat(E(this.selections),E(t.map((function(t){return r(n,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(n){var r=t.findIndex((function(t){return t===n[e]}));return-1!==r}))):this.selections=t.map((function(t){return r(n,t)})),this.$emit("selected",this.selections)}}},T=n("cf8b"),R=n("c6e8");function D(t){return D="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},D(t)}function I(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */I=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==D(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(D(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function M(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function q(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){M(i,r,o,a,s,"next",t)}function s(t){M(i,r,o,a,s,"throw",t)}a(void 0)}))}}var F=function(t,e){return $.apply(this,arguments)};function $(){return $=q(I().mark((function t(e,n){var r,o,i,a,s,c;return I().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("refresh"!==e){t.next=5;break}if("true"!==n.configs["flush-badges"]){t.next=4;break}return t.next=4,null===(i=window)||void 0===i||null===(i=i.sidebar)||void 0===i?void 0:i.setBadges();case 4:return t.abrupt("return");case 5:if(a=null===e||void 0===e||null===(r=e.params)||void 0===r||null===(r=r.commit)||void 0===r?void 0:r.type,s=(null!==(o=n.storeNamespace.match(new RegExp(":id","g")))&&void 0!==o?o:[]).length,a&&["load","loadAll"].includes(a)&&n.load&&n.load(),!a||!["parent.load","parent.loadAll"].includes(a)){t.next=14;break}if(t.t0=n.view&&n.view.load,!t.t0){t.next=13;break}return t.next=13,n.view.load();case 13:s&&n.load&&n.load();case 14:if(a&&["loadSchema","loadAll"].includes(a)&&n.loadSchema&&n.loadSchema(),!a||!["parent.loadSchema","parent.loadAll"].includes(a)){t.next=21;break}if(t.t1=n.view&&this.view.loadSchema,!t.t1){t.next=20;break}return t.next=20,n.view.loadSchema();case 20:s&&n.loadSchema&&n.loadSchema();case 21:if("true"!==n.configs["flush-badges"]){t.next=24;break}return t.next=24,null===(c=window)||void 0===c||null===(c=c.sidebar)||void 0===c?void 0:c.setBadges();case 24:case"end":return t.stop()}}),t,this)}))),$.apply(this,arguments)}function B(t){return B="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},B(t)}function V(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */V=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==B(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(B(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function H(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function U(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){H(i,r,o,a,s,"next",t)}function s(t){H(i,r,o,a,s,"throw",t)}a(void 0)}))}}var G=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e?n&&n.viewMode&&"download"===n.viewMode?window.open("/file/getfile/".concat(e,"?_time=").concat((new Date).getTime(),"&viewMode=").concat(n.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")},z={methods:{handleFile:function(t){var e=this;return U(V().mark((function n(){var r,o,i,a;return V().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=t.list?t.list:"file",o=new FormData,i=e.idName,e.actionModel[r]){n.next=5;break}return n.abrupt("return");case 5:return o.append(r,e.actionModel[r][0]),e.actionModel[i]&&o.append(i,e.actionModel[i]),a=e.$message.loading("正在".concat(t.name,",请稍等..."),0),n.next=10,e.saveData({key:t.key,data:o});case 10:F(t,e),a();case 12:case"end":return n.stop()}}),n)})))()},handleFilesUpload:function(t){var e=this;return U(V().mark((function t(){return V().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 U(V().mark((function n(){var r,o;return V().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=function(){var n=U(V().mark((function n(){var r,o,i;return V().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.$message.loading("正在".concat(t.name,",请稍等..."),0),n.next=3,e.executeData({key:t.key,data:e.actionModel||e.selections[0]});case 3:o=n.sent,r(),o instanceof Error||(i=o&&o.file_id?o.file_id:null,G(e.apiBaseURL,i,{viewMode:"download"}));case 6:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),!t.params||!t.params.confirm){n.next=6;break}o=t.params.confirm,e.$confirm({title:o.title||t.name,content:o.content||"您确认要执行【".concat(t.name,"】操作吗?"),onOk:function(){r()}}),n.next=8;break;case 6:return n.next=8,r();case 8:case"end":return n.stop()}}),n)})))()},handleExport:function(t){var e=arguments,n=this;return U(V().mark((function r(){var o,i,a;return V().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(o=e.length>1&&void 0!==e[1]&&e[1],i=function(){var e=U(V().mark((function e(){var r,i,a;return V().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=n.$message.loading("正在".concat(t.name,",请稍等..."),0),e.next=3,n.executeData({key:t.key,data:n.selections.length?o?n.selections[0]:n.selections:n.actionModel||{}});case 3:i=e.sent,r(),i instanceof Error||(a=i&&i.file_id?i.file_id:null,G(n.apiBaseURL,a));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!t.params||!t.params.confirm){r.next=7;break}a=t.params.confirm,n.$confirm({title:a.title||t.name,content:a.content||"您确认要执行【".concat(t.name,"】操作吗?"),onOk:function(){i()}}),r.next=9;break;case 7:return r.next=9,i();case 9:case"end":return r.stop()}}),r)})))()},handleExportFilter:function(t){var e=this;return U(V().mark((function n(){var r,o;return V().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=function(){var n=U(V().mark((function n(){var r,o,i;return V().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.$message.loading("正在".concat(t.name,",请稍等..."),0),n.next=3,e.executeData({key:t.key,data:e.selections.length?e.selections:{},query:e.query});case 3:o=n.sent,r(),o instanceof Error||(i=o&&o.file_id?o.file_id:null,G(e.apiBaseURL,i));case 6:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),!t.params||!t.params.confirm){n.next=6;break}o=t.params.confirm,e.$confirm({title:o.title||t.name,content:o.content||"您确认要执行【".concat(t.name,"】操作吗?"),onOk:function(){r()}}),n.next=8;break;case 6:return n.next=8,r();case 8:case"end":return n.stop()}}),n)})))()},handleExportOne:function(t){this.handleExport(t,!0)}}};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(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function W(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(n),!0).forEach((function(e){J(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function J(t,e,n){return e=Z(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Z(t){var e=X(t,"string");return"symbol"==K(e)?e:String(e)}function X(t,e){if("object"!=K(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=K(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Q(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Q=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==K(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(K(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function tt(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function et(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){tt(i,r,o,a,s,"next",t)}function s(t){tt(i,r,o,a,s,"throw",t)}a(void 0)}))}}var nt=n("9f89"),rt=/\${([\s\S]+?)}/g,ot={methods:{handleViewPicker:function(t){var e=this;return et(Q().mark((function t(){return Q().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 et(Q().mark((function n(){var r,o,i,a,s,c,l,u,f,d;return Q().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.params,o=r.treeUrl,i=r.dataUrl,a=r.keyName,s=r.titleName,c=r.valueName,l=r.valuesName,e.actioning=!0,u=W(W({},e.actionModel),{},{$parent:e.actionParams.$parent}),n.next=5,e.$api.get(nt(o,{reInterpolate:rt})(u));case 5:return f=n.sent,n.next=8,e.$api.get(nt(i,{reInterpolate:rt})(u));case 8:d=n.sent,e.actioning=!1,e.actionParams=W(W({},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 n.stop()}}),n)})))()},handleTransferSelect:function(t){var e=this;return et(Q().mark((function n(){var r,o,i,a,s,c,l,u,f,d,p;return Q().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.params,o=r.treeUrl,i=r.dataUrl,a=r.keyName,s=r.titleName,c=r.valueName,l=r.valuesName,u=r.selected,e.actioning=!0,f=W(W({},e.actionModel),{},{$parent:e.actionParams.$parent}),n.next=5,e.$api.get(nt(o,{reInterpolate:rt})(f));case 5:return d=n.sent,n.next=8,e.$api.get(nt(i,{reInterpolate:rt})(f));case 8:p=n.sent,e.actioning=!1,e.actionParams=W(W({},e.actionParams),{},{treeData:d.data&&d.data.collection,data:p.data&&p.data.collection,keyName:a,titleName:s,valueName:c,valuesName:l,selected:u}),e.actionViewWidget="picker-transfer-form",e.showActionView();case 13:case"end":return n.stop()}}),n)})))()},handleAlgorithm:function(){var t=this;return et(Q().mark((function e(){return Q().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 et(Q().mark((function n(){var r,o,i,a,s;return Q().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.params,o=r.treeUrl,i=r.valuesName,e.actioning=!0,a=W(W({},e.actionModel),{},{$parent:e.actionParams.$parent}),n.next=5,e.$api.get(nt(o,{reInterpolate:rt})(a));case 5:s=n.sent,e.actioning=!1,e.actionParams=W(W({},e.actionParams),{},{treeData:s.data&&s.data.collection,valuesName:i}),e.showActionView();case 9:case"end":return n.stop()}}),n)})))()}}};function it(t){return it="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},it(t)}function at(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function st(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?at(Object(n),!0).forEach((function(e){ft(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ct(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ct=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==it(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(it(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function lt(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function ut(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){lt(i,r,o,a,s,"next",t)}function s(t){lt(i,r,o,a,s,"throw",t)}a(void 0)}))}}function ft(t,e,n){return e=dt(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dt(t){var e=pt(t,"string");return"symbol"==it(e)?e:String(e)}function pt(t,e){if("object"!=it(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=it(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ht={mixins:[z,ot],methods:{handleRowAction:function(){},handleFindAll:function(){},handleFindOne:function(){},handleCreate:function(t){this.formMode="create",this.parentIdName&&this.actionModel&&(this.actionModel=ft({},this.parentIdName,this.actionModel[this.nodeName])),this.showActionView()},handleUpdate:function(t){this.formMode="update",this.showActionView()},handleDelete:function(t){var e=this;return ut(ct().mark((function n(){return ct().wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.$confirm({title:t.name,content:"此操作将永久删除该数据, 是否继续?",okText:"确定",cancelText:"取消",onOk:function(){var n=ut(ct().mark((function n(){return ct().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.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(),F(t,e);case 5:case"end":return n.stop()}}),n)})));function r(){return n.apply(this,arguments)}return r}()});case 1:case"end":return n.stop()}}),n)})))()},handleBulkEdit:function(){this.bulkAction=st({},this.action),this.actionRowEditing=!0},handleCancelEdit:function(){var t=this;return ut(ct().mark((function e(){return ct().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 ut(ct().mark((function n(){return ct().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.length>0&&void 0!==t[0]?t[0]:e.formAction,e.actioning=!0,n.next=4,e.commitActionView(e.editions);case 4:e.actioning=!1;case 5:case"end":return n.stop()}}),n)})))()},handleOne:function(t){var e=this;return ut(ct().mark((function n(){return ct().wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.handleBulk(t,1);case 1:case"end":return n.stop()}}),n)})))()},handleBulk:function(t){var e=arguments,n=this;return ut(ct().mark((function r(){var o,i,a,s,c,l,u,f,d,p,h,v;return ct().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(o=e.length>1&&void 0!==e[1]?e[1]:0,i=n.selections.length,a=n.action.params,s=void 0===a?{}:a,c=s.actionAfterDriver,l=void 0===c?{}:c,u=l.redirect,f=void 0!==u&&u,!(o&&i>o)){r.next=5;break}return r.abrupt("return",n.$message.error("所选数据不允许超过 ".concat(o," 条")));case 5:d=i>1?" ".concat(i," 条"):"",p={method:t.method||"post",key:t.key,data:n.selections.length?n.selections:[n.actionModel],type:t.params&&t.params.commit?t.params.commit.type:""},h=function(){t.params&&t.params.commit&&"remove"===t.params.commit.type&&(n.id?n.handleBack():n.findAll.length||n.load&&n.load())},v=function(t){f&&t.redirectUrl&&n.$router.push(t.redirectUrl)},n.$confirm({title:t.name,content:"确认对选定的".concat(d,"数据进行【").concat(t.name,"】操作?"),okText:"确定",cancelText:"取消",onOk:t.params&&t.params.sync?function(){var e=n.saveData(p);h(),F(t,n),v(e)}:ut(ct().mark((function e(){var r;return ct().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.saveData(p);case 2:r=e.sent,h(),F(t,n),v(r);case 6:case"end":return e.stop()}}),e)})))});case 10:case"end":return r.stop()}}),r)})))()},handleEver:function(t){var e=this;return ut(ct().mark((function n(){var r;return ct().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.$message.loading("正在".concat(t.name,",请稍等..."),0),n.next=3,e.executeData({key:t.key,data:{},query:e.query?e.query:{}});case 3:r();case 4:case"end":return n.stop()}}),n)})))()},handleRouter:function(t){var e=this;return ut(ct().mark((function n(){var r;return ct().wrap((function(n){while(1)switch(n.prev=n.next){case 0:r=t.legend,r=Object(R["a"])(r,st({$parent:e.params.$parent,user:e.$store.state.user},e.actionModel)),e.$router.push(r);case 3:case"end":return n.stop()}}),n)})))()},handleLink:function(t){var e=this;return ut(ct().mark((function n(){var r;return ct().wrap((function(n){while(1)switch(n.prev=n.next){case 0:r=t.legend,r=Object(R["a"])(r,st({$parent:e.params.$parent,user:e.$store.state.user},e.actionModel)),window.open(r,"_blank");case 3:case"end":return n.stop()}}),n)})))()},handleBlank:function(t){var e=this;this.$confirm({title:t.name,content:"确认对选定的数据进行【".concat(t.name,"】操作?"),okText:"确定",cancelText:"取消",onOk:function(){var n=ut(ct().mark((function n(){var r,o;return ct().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.key?"".concat(e.pageKey,"/").concat(t.key):t.id,n.next=3,e.$api[t.method.toLowerCase()||"post"]("api/".concat(r),e.actionModel||e.selections[0]);case 3:o=n.sent,200===o.data.status?window.open(o.data.data.openNewUrl,"_blank"):e.$message.error(o.data.content);case 5:case"end":return n.stop()}}),n)})));function r(){return n.apply(this,arguments)}return r}()})},handleRefresh:function(){var t=this;return ut(ct().mark((function e(){var n,r;return ct().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.load){e.next=7;break}return e.next=3,t.load();case 3:return n=e.sent,e.next=6,F("refresh",t);case 6:n instanceof Error&&(r=n.response.data.code,404===r&&t.handleBack());case 7:case"end":return e.stop()}}),e)})))()},handleBack:function(){this.parentIds||"page"!==this.mode?this.$emit("close"):this.$router.back()},handleAutoFill:function(t){this.defaultModel||(this.defaultModel=st({},this.actionModel));var e=this.schema.id,n=t.target.checked,r=JSON.parse(localStorage.getItem("form_".concat(e)));if(r)for(var o in r)n?this.$set(this.actionModel,o,r[o]):this.$set(this.actionModel,o,this.defaultModel[o])}}};function vt(t){return vt="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},vt(t)}function mt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */mt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==vt(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(vt(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function yt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function gt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?yt(Object(n),!0).forEach((function(e){bt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function bt(t,e,n){return e=wt(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wt(t){var e=_t(t,"string");return"symbol"==vt(e)?e:String(e)}function _t(t,e){if("object"!=vt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=vt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function xt(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function kt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){xt(i,r,o,a,s,"next",t)}function s(t){xt(i,r,o,a,s,"throw",t)}a(void 0)}))}}var Ot={methods:{handleFlowReport:function(t){var e=this;return kt(mt().mark((function n(){var r,o;return mt().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.actionModel,e.actionConfirmMode=e.actioning=!0,n.next=4,e.saveData({key:t.key,data:gt({},r)});case 4:if(o=n.sent,e.actionConfirmMode=e.actioning=!1,o.data){n.next=8;break}return n.abrupt("return");case 8:e.actionModel=gt(gt({},r),{},{confirm:1,todo_actors:[]}),e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionParams.flow=o,e.actionViewVisible=!0;case 12:case"end":return n.stop()}}),n)})))()},handleFlowCheck:function(t){var e=this;return kt(mt().mark((function n(){var r,o;return mt().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.actionModel,e.actionConfirmMode=e.actioning=!0,n.next=4,e.saveData({key:t.key,data:gt({},r)});case 4:if(o=n.sent,e.actionConfirmMode=e.actioning=!1,o.data){n.next=8;break}return n.abrupt("return");case 8:e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionModel=gt(gt({},r),{},{data:gt({},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 n.stop()}}),n)})))()},handleFlowReassign:function(t){var e=this;return kt(mt().mark((function n(){var r,o;return mt().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.actionModel,e.actionConfirmMode=e.actioning=!0,n.next=4,e.saveData({key:t.key,data:gt({},r)});case 4:if(o=n.sent,e.actionConfirmMode=e.actioning=!1,o.data){n.next=8;break}return n.abrupt("return");case 8:e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionModel=gt(gt({},r),{},{data:gt({},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 n.stop()}}),n)})))()},handleFlowQuery:function(t){var e=this;return kt(mt().mark((function n(){var r,o;return mt().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.actionModel,e.actionConfirmMode=e.actioning=!0,n.next=4,e.saveData({key:t.key,data:gt({},r)});case 4:if(o=n.sent,e.actionConfirmMode=e.actioning=!1,o.data){n.next=8;break}return n.abrupt("return");case 8:e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionParams.flow=o,e.actionViewVisible=!0;case 11:case"end":return n.stop()}}),n)})))()},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 St(t){return St="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},St(t)}function Et(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Et=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==St(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(St(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function jt(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function Nt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){jt(i,r,o,a,s,"next",t)}function s(t){jt(i,r,o,a,s,"throw",t)}a(void 0)}))}}var Lt={methods:{commit:function(){return Nt(Et().mark((function t(){return Et().wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()}}},Pt=n("8320");function Ct(t){return Ct="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},Ct(t)}function At(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */At=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Ct(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Ct(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Tt(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function Rt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Tt(i,r,o,a,s,"next",t)}function s(t){Tt(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Dt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function It(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Dt(Object(n),!0).forEach((function(e){Mt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Mt(t,e,n){return e=qt(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qt(t){var e=Ft(t,"string");return"symbol"==Ct(e)?e:String(e)}function Ft(t,e){if("object"!=Ct(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ct(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var $t={create:["createonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},Bt={none:function(t,e){return 0===t&&!e},single:function(t,e){return 1===t||e},somewhat:function(t,e){return t>0||e},mulpitle:function(t,e){return t>1&&!e}},Vt={mixins:[ht,Ot,Lt,Pt["a"]],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:[],bulkAction:null,preview:!1}},computed:{actions:function(){var t=this,e=this.model.actions;if(!e)return[];var n=this.selections.length||0,r=!!this.profile;return e.filter((function(e){var o=!0,i=e.selected,a=e.action;return i&&Bt[i]&&(o=Bt[i](n,r)),"single"===e.selected&&"profile"===a&&r&&(o=!1),o&&!t.actionRowEditing&&t.showAction(e)}))},bulkActions:function(){var t=this.model.actions;return t?t.filter((function(t){return["somewhat","mulpitle"].includes(t.selected)})):[]},backActions:function(){return[{key:"_back",name:"返回",icon:"left",action:"back"}]},navActions:function(){return this.previous||this.next?[{key:"_previous",name:"",icon:"left",action:"previous",disabled:!this.previous},{key:"_next",name:"",icon:"right",action:"next",disabled:!this.next}]:[]},settingActions:function(){var t,e,n,r,o,i=[{key:(null===(t=this.bulkAction)||void 0===t?void 0:t.key)||"",name:"保存",icon:"save",method:"PUT",action:"saveEdit",primary:"1",list:(null===(e=this.bulkAction)||void 0===e?void 0:e.list)||null,configs:(null===(n=this.bulkAction)||void 0===n?void 0:n.configs)||[]},{key:"_cancle",name:"取消",icon:"stop",action:"cancelEdit",group:"1",list:(null===(r=this.bulkAction)||void 0===r?void 0:r.list)||null,configs:(null===(o=this.bulkAction)||void 0===o?void 0:o.configs)||[]}];return this.actionRowEditing?i:[{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(n){return e.showAction(n,t)}))},showAction:function(t,e){var n=t.params&&!!t.params.show,r=t.params&&(t.params.show||t.params.hide),o=this.params||this,i=o.$parent;if(!r)return!0;var a=this.profile?[this.profile]:e?[e]:this.selections||[],s=n;return a.length?s=n?a.every((function(t){return Object(T["a"])(r,It(It({},t),{},{$parent:i}))})):a.some((function(t){return Object(T["a"])(r,It(It({},t),{},{$parent:i}))})):i&&(s=Object(T["a"])(r,{$parent:i})),n?s:!s},actionBeforeDriver:function(t){var e=this;return Rt(At().mark((function n(){var r,o,i,a,s,l,u;return At().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,e.$api.get("/dataset/".concat(t,"?").concat(c.a.stringify(e.$store.state.user)));case 3:if(r=n.sent,o=r.data.data,i=void 0===o?[]:o,!i.length){n.next=14;break}if("500"!==i[0].code){n.next=12;break}return e.$message.error(i[0].content),n.abrupt("return",!1);case 12:if("200"!==i[0].code){n.next=14;break}return n.abrupt("return",!0);case 14:n.next=22;break;case 16:n.prev=16,n.t0=n["catch"](0),n.t0.response||e.$message.error("网络请求错误,请检查您的网络连接。"),a=n.t0.response,s=a.status,l=a.data,u=l&&l.content||"系统错误请与管理员联系。",e.$message.error("".concat(s,", ").concat(u));case 22:case"end":return n.stop()}}),n,null,[[0,16]])})))()},handleRowAction:function(t,e,n){var r=n.target.getElementsByTagName("input");if(this.selections=[e],"file"!==t.action)return this.handleAction(t,e);n.stopPropagation(),r[0]&&void 0===r[0].click()||n.path&&n.path[1].getElementsByTagName("input")[0].click()},handleAction:function(t,e,n){var r=this;return Rt(At().mark((function o(){var i,a,s,c,l;return At().wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(r.action=t,i=r.action.params,a=void 0===i?{}:i,s=a.actionBeforeDriver,c=void 0===s?"":s,!c){o.next=8;break}return o.next=5,r.actionBeforeDriver(c);case 5:if(l=o.sent,l){o.next=8;break}return o.abrupt("return",!1);case 8:return e||(e=r.profile||r.selections[0]||{}),["modal","drawer","fullscreen"].includes(t.display)&&(r.actionViewMode=t.display),r.actionModel=It(It(It({},e),n),r.defaults),r.actionParams=It(It({},t.params),{},{$parent:r.params.$parent}),"page"===t.display?r.routeAction(t):r.dispatchAction(t),o.abrupt("return",r);case 14:case"end":return o.stop()}}),o)})))()},handleCellChange:function(t,e,n){var r=this.idName,o=this.editions.find((function(t){return t[r]===n[r]}));o||(o=It({},n),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 n=t.action.replace(/^\S/,(function(t){return t.toUpperCase()}));this["handle".concat(n)](t)}else this[e[t.method]](t)}catch(r){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,n=this;return Rt(At().mark((function r(){var o,i,a,s,c,l,u,f,d,p,h,v,m,y,g,b,w,_,x,k,O,S,E;return At().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(o=e.length>1&&void 0!==e[1]?e[1]:null,o&&(n.preview=o.preview),i=n.selections,a=n.actionModel,s=n.idName,c=n.editions,l=n.action,u=l.key,f=l.method,d=l.params,p=void 0===d?{}:d,h=p.commit,v=void 0===h?{}:h,m=v.type,y=v.redirectProfile,g=p.autofill,b=p.confirmActionDialog,w=void 0===b?null:b,_=n.schema,x=function(){var e=Rt(At().mark((function e(){var r,l,d,p,h,v,b;return At().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i.length>1?(delete t[s],t=i.map((function(e){return It(It({},e),t)}))):a&&!c.length&&(t=It(It({},a),t)),r=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})))})),l={},d=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"===d&&(l.multiple=d),r||(t=n.transformData(t)),e.next=8,n.saveData({data:t,key:u,method:f,query:l,type:m,params:o});case 8:if(p=e.sent,p){if(g){for(b in h=It({},p),v=n.filterColumns().map((function(t){return t.name})),h)v.includes(b)||delete h[b];localStorage.setItem("form_".concat(_.id),JSON.stringify(h))}n.actionCommitResult.data=function(){return{data:p}},y&&n.handleModelProfile&&n.handleModelProfile(p),n.id&&m&&"remove"===m&&n.handleBack()}F({params:{commit:{type:m}}},n);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!w){r.next=12;break}k=/\$\{(\w+)\}/g,O=function(t){return w.content.replace(k,(function(e){var r=e.substring(2,e.length-1),o=n.columns.find((function(t){return t.key===r}))||null;return n.formatter(null,t[r],null===o||void 0===o?void 0:o.schema)}))},S=i.map((function(t){return O(t)})),E="summary"===w.type?S[0]:S.join(","),n.$confirm({title:"请再次确认以下信息,确认无误后提交!",content:"".concat(E,"。"),onOk:function(){return Rt(At().mark((function t(){return At().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,x();case 2:case"end":return t.stop()}}),t)})))()}}),r.next=14;break;case 12:return r.next=14,x();case 14:case"end":return r.stop()}}),r)})))()},filterColumns:function(){var t=this.action,e=this.params,n=this.model,r=this.hide,o=this.formMode,i=t&&t.view?t.view.model.attrs:e&&e.attrs?e.attrs:n.attrs?n.attrs:[];if(t&&t.list){var a=this.action.list.split(",");return i.filter((function(t){return!r.includes(t.name)&&a.includes(t.name)}))}return i.filter((function(t){return $t[o].includes(t.access)&&!r.includes(t.name)&&"collection"!==t.metaType&&"model"!==t.metaType&&"link"!==t.type}))},transformData:function(t){var e=new FormData;for(var n in t)if("object"!==Ct(t[n])||t[n]instanceof File)e.append("".concat(n),t[n]);else for(var r in t[n])Array.isArray(t[n])?e.append("".concat(n),t[n][r]instanceof File||"object"!==Ct(t[n][r])?t[n][r]:JSON.stringify(t[n][r])):e.append("".concat(n,".").concat(r),t[n][r]instanceof File||"object"!==Ct(t[n][r])?t[n][r]:JSON.stringify(t[n][r]));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,n=e&&e.find((function(t){return"result"===t.key}));200===this.status&&t&&(!this.actionConfirmMode&&this.$message.success(t),n?this.actionCommitResult.template=n.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=[]}},Ht=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))},Ut=[],Gt={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}}},zt=Gt,Kt=n("a6c2"),Yt=Object(Kt["a"])(zt,Ht,Ut,!1,null,null,null),Wt=Yt.exports,Jt=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(n){var r=n.item;return[e("a-list-item",[e(t.component,{tag:"component",attrs:{item:r}})],1)]}}])},"a-list",t.$attrs,!1))},Zt=[],Xt={props:["item"],computed:{component:function(){return{props:["item"],template:this.item||"<div></div>"}}}},Qt=Xt,te=Object(Kt["a"])(Qt,Jt,Zt,!1,null,null,null),ee=te.exports,ne={ListTable:Wt,ListNormal:ee},re=function(){var t=this,e=t._self._c;return e("a-form-model",{attrs:{layout:t.layout}},[t._l(t.attrs,(function(n,r){return e("Item",{key:"".concat(r,"-").concat(n.name),attrs:{formModel:t.actionModel,prop:n.name,schema:n,params:t.params,labelType:!1,isFilter:""},on:{change:function(e){return t.handleItemChange(e,n)},fill:function(e){return t.handleItemFill(e,n)}},model:{value:t.actionModel[n.name],callback:function(e){t.$set(t.actionModel,n.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(n,r){return e("Item",{key:"".concat(r,"-").concat(n.name),attrs:{formModel:t.actionModel,prop:n.name,schema:n,params:t.params,labelType:!1,isFilter:""},on:{change:function(e){return t.handleItemChange(e,n)},fill:function(e){return t.handleItemFill(e,n)}},model:{value:t.actionModel[n.name],callback:function(e){t.$set(t.actionModel,n.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)},oe=[],ie=n("b7f9"),ae=n("7b4d"),se={mixins:[ie["a"]],components:{Item:ae["a"]},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}}},ce=se,le=Object(Kt["a"])(ce,re,oe,!1,null,null,null),ue=le.exports,fe=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{display:"inline-block"}},t._l(t.groups,(function(n,r){return e("a-button-group",{key:"group-".concat(r),staticStyle:{"margin-right":"16px","flex-wrap":"wrap"}},t._l(n.actions,(function(n){return e("a-button",{key:n.id,staticStyle:{"margin-top":"2px","margin-bottom":"2px"},attrs:{type:n.primary?"primary":"default",icon:n.icon,disabled:n.disabled},on:{click:function(e){return t.handleClick(n,e)}}},[t._v(" "+t._s(n.name)+" "),"file"===n.action?e("input",{staticStyle:{display:"none"},attrs:{type:"file",name:"file"},on:{change:function(e){t.onFileChange(n,e.target.files),e.target.value=""}}}):t._e()])})),1)})),1)},de=[];function pe(t){return pe="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},pe(t)}function he(t,e,n){return e=ve(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ve(t){var e=me(t,"string");return"symbol"==pe(e)?e:String(e)}function me(t,e){if("object"!=pe(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=pe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ye={props:{actions:{type:Array,default:function(){return[]}},type:{type:String,default:"button"}},computed:{groups:function(){var t=[];return this.actions.forEach((function(e,n){var r=t.length-1;e.group||!n?t.push({actions:[e]}):t[r].actions.push(e)})),t}},methods:{handleClick:function(t,e){var n=e.target.getElementsByTagName("input");"file"===t.action?(e.stopPropagation(),n[0]&&void 0===n[0].click()||e.path&&e.path[1].getElementsByTagName("input")[0].click()):this.$emit("action",t)},onFileChange:function(t,e){var n=t.list?t.list:"file";this.$emit("action",t,null,he({},n,e))}}},ge=ye,be=Object(Kt["a"])(ge,fe,de,!1,null,null,null),we=be.exports,_e=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)},xe=[],ke=n("0959"),Oe={inject:["page","view"],props:{action:{type:Object},modelViewType:{type:String}},computed:{createView:function(){return{extends:Object(ke["a"])(Pc["Model".concat(this.modelViewType)])("".concat(this.view.storeNamespace))}}}},Se=Oe,Ee=Object(Kt["a"])(Se,_e,xe,!1,null,null,null),je=Ee.exports,Ne=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))},Le=[],Pe={},Ce=Object(Kt["a"])(Pe,Ne,Le,!1,null,null,null),Ae=Ce.exports,Te=n("3aaf"),Re=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)},De=[];function Ie(t){return Ie="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},Ie(t)}function Me(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function qe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Me(Object(n),!0).forEach((function(e){Fe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Fe(t,e,n){return e=$e(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $e(t){var e=Be(t,"string");return"symbol"==Ie(e)?e:String(e)}function Be(t,e){if("object"!=Ie(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ie(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ve={mixins:[Pt["a"]],components:{Item:ae["a"]},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 qe({},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])}}},He=Ve,Ue=Object(Kt["a"])(He,Re,De,!1,null,null,null),Ge=Ue.exports;function ze(t){return ze="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},ze(t)}function Ke(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ye(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ke(Object(n),!0).forEach((function(e){We(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function We(t,e,n){return e=Je(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Je(t){var e=Ze(t,"string");return"symbol"==ze(e)?e:String(e)}function Ze(t,e){if("object"!=ze(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ze(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Xe={mixins:[i,a,A,Vt,Pt["a"],O,S],components:Ye(Ye(Ye({},ne),Pc),{},{FilterForm:ue,ActionGroup:we,ActionView:je,PaginationSize:Ae,Popup:Te["a"],Cell:Ge}),computed:{actionConfigs:function(){var t,e;return this.action&&null!==(t=null===(e=this.action.configs)||void 0===e?void 0:e.reduce((function(t,e){return t[e.key]=e.value,t}),{}))&&void 0!==t?t:{}}},activated:function(){this.configs&&"true"===this.configs["profile.mode"]&&"Profile"!==this.actionViewType&&this.dataSource.length&&!this.$route.params.id&&this.handleModelProfile(this.dataSource[0])},mounted:function(){var t=this;if(this.configs&&"true"===this.configs["profile.mode"])var e=this.$watch("dataSource",(function(){"Profile"!==t.actionViewType&&t.dataSource.length&&!t.$route.params.id&&(t.handleModelProfile(t.dataSource[0]),e())}))}},Qe=Xe,tn=(n("45db"),Object(Kt["a"])(Qe,r,o,!1,null,null,null)),en=tn.exports,nn=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&&!t.onlyProfile?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(n){var r=n.value,o=n.column;return[e("Cell",{attrs:{row:t.profile,schema:o,value:r}})]}},{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},scopedSlots:t._u([t.actionConfigs["form.footer"]?{key:"footer",fn:function(){return[e(t.actionConfigs["form.footer"],{tag:"component",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:{ok:t.submitActionView,close:t.closeActionView}})]},proxy:!0}:null],null,!0)},[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)},rn=[];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 e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==on(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(on(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function sn(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function cn(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){sn(i,r,o,a,s,"next",t)}function s(t){sn(i,r,o,a,s,"throw",t)}a(void 0)}))}}var ln={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 n=e.params,r=void 0===n?{}:n,o=r.show;return!["all"].includes(e.hidden)&&["collection","link"].includes(e.type)&&(!o||Object(T["a"])(o,t.profile))}))},groups:function(){var t=[];return this.columns.forEach((function(e,n){var r=t.length-1;e.group||!n?t.push({name:e.group,columns:[e]}):t[r].columns.push(e)})),t},layouts:function(){},id:function(){var t=this.values,e=this.idName,n=this.profileId,r=this.routeId,o=this.findAll;return t?t[e]:n||r||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 cn(an().mark((function n(){var r,o,i;return an().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.length>0&&void 0!==t[0]&&t[0],n.next=3,e.loadData({key:e.id,mute:r});case 3:if(o=n.sent,!(o instanceof Error)){n.next=8;break}return i=o.response.data.code,404===i&&e.handleBack(),n.abrupt("return");case 8:return n.abrupt("return",o);case 9:case"end":return n.stop()}}),n)})))()}},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 un(t){return hn(t)||pn(t)||dn(t)||fn()}function fn(){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 dn(t,e){if(t){if("string"===typeof t)return vn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vn(t,e):void 0}}function pn(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function hn(t){if(Array.isArray(t))return vn(t)}function vn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var mn=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},t._l(t.groups,(function(n,r){return e("Descriptions",{key:"g-".concat(r),staticClass:"profile-normal-descriptions",staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[n.name?e("div",{attrs:{slot:"title"},slot:"title"},[e("strong",[t._v(t._s(n.name))])]):t._e(),t._l(n.columns,(function(n,o){return[!t.collapse||t.showDescItems["showDescItem".concat(r)]||o<t.collapse?e("DescriptionsItem",{key:n.name,attrs:{span:n.column?n.column/12:1,label:n.alias||n.name,tooltip:n.legend}},[t._t("cell",null,{value:t.profile[n.name],column:n})],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(r)]=!t.showDescItems["showDescItem".concat(r)]}}},[e("a-icon",{attrs:{type:t.showDescItems["showDescItem".concat(r)]?"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(n,r){return e("a-tab-pane",{key:String(r),attrs:{tab:n.tab}},["link"===n.type?e("Frame",{attrs:{url:t.templateURL(n.value,t.profile),height:t.iframeHeight(n.value)}}):e("keep-alive",[e(t.Views[r],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(un(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:n.name,params:{$parent:t.profile}}})],1)],1)})),1)],1):t._e()],1)},yn=[],gn=n("f24a"),bn=n("f765");function wn(t){return wn="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},wn(t)}function _n(t){return Sn(t)||On(t)||kn(t)||xn()}function xn(){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 kn(t,e){if(t){if("string"===typeof t)return En(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?En(t,e):void 0}}function On(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Sn(t){if(Array.isArray(t))return En(t)}function En(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function jn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Nn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jn(Object(n),!0).forEach((function(e){Ln(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ln(t,e,n){return e=Pn(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pn(t){var e=Cn(t,"string");return"symbol"==wn(e)?e:String(e)}function Cn(t,e){if("object"!=wn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=wn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var An,Tn,Rn=gn["a"].DescriptionsItem,Dn={components:Nn({Descriptions:gn["a"],DescriptionsItem:Rn,Frame:bn["a"]},Pc),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:_n(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&_n(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,showDescItems:{}}},methods:{handleChange:function(t){this.activeTabKey=t},templateURL:function(t,e){return Object(R["a"])(t,e)},iframeHeight:function(t){var e;if(t&&t.split("?")[1]){var n=t.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;n&&(e=n.split("=")[1])}return e}},created:function(){var t=this;if(this.groups.length&&this.collapse&&this.groups.forEach((function(e,n){t.$set(t.showDescItems,"showDescItem".concat(n),!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 Nn(Nn({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:Object(ke["a"])(Pc.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=_n(this.subviews),this.id=this.view.id}}},In=Dn,Mn=(n("4927"),Object(Kt["a"])(In,mn,yn,!1,null,null,null)),qn=Mn.exports,Fn={},$n=Object(Kt["a"])(Fn,An,Tn,!1,null,null,null),Bn=$n.exports;function Vn(t){return zn(t)||Gn(t)||Un(t)||Hn()}function Hn(){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 Un(t,e){if(t){if("string"===typeof t)return Kn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kn(t,e):void 0}}function Gn(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function zn(t){if(Array.isArray(t))return Kn(t)}function Kn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Yn=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,n){return e("a-anchor-link",{key:"anchor-g-".concat(n),attrs:{href:"#profile-tile-group-".concat(n),title:t.name}})})),t._l(t.tabs,(function(t,n){return e("a-anchor-link",{key:"anchor-t-".concat(n),attrs:{href:"#profile-tile-tab-".concat(n),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(n,r){return e("a-card",{key:"g-".concat(r),staticClass:"gs-card",attrs:{size:"small",id:"profile-tile-group-".concat(r),title:n.name,bordered:!1,headStyle:{borderBottom:0}}},[t._e(),e("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[t._l(n.columns,(function(n,o){return[!t.collapse||t.showDescItems["showDescItem".concat(r)]||o<t.collapse?e("DescriptionsItem",{key:n.name,attrs:{span:n.column?n.column/12:1,label:n.alias||n.name,tooltip:n.legend}},[t._t("cell",null,{value:t.profile[n.name],column:n})],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(r)]=!t.showDescItems["showDescItem".concat(r)]}}},[e("a-icon",{attrs:{type:t.showDescItems["showDescItem".concat(r)]?"double-left":"double-right"}})],1)]):t._e()],2)],1)})),1),t._l(t.tabs,(function(n,r){return e("a-card",{key:String(r),staticClass:"gs-card",attrs:{tab:n.tab,size:"small",id:"profile-tile-tab-".concat(r),title:n.tab,bordered:!1,headStyle:{borderBottom:0}}},["link"===n.type?e("Frame",{attrs:{url:t.templateURL(n.value,t.profile),height:t.iframeHeight(n.value)}}):e("keep-alive",[e(t.Views[r],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(Vn(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:n.name,params:{$parent:t.profile}}})],1)],1)}))],2)],1)},Wn=[];function Jn(t){return Jn="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},Jn(t)}function Zn(t){return er(t)||tr(t)||Qn(t)||Xn()}function Xn(){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 Qn(t,e){if(t){if("string"===typeof t)return nr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nr(t,e):void 0}}function tr(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function er(t){if(Array.isArray(t))return nr(t)}function nr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function rr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function or(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rr(Object(n),!0).forEach((function(e){ir(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ir(t,e,n){return e=ar(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ar(t){var e=sr(t,"string");return"symbol"==Jn(e)?e:String(e)}function sr(t,e){if("object"!=Jn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Jn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var cr=gn["a"].DescriptionsItem,lr={components:or({Descriptions:gn["a"],DescriptionsItem:cr,Frame:bn["a"]},Pc),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:Zn(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&Zn(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,n){t.$set(t.showDescItems,"showDescItem".concat(n),!1)}))},methods:{handleChange:function(t){},templateURL:function(t,e){return Object(R["a"])(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 n=t.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;n&&(e=n.split("=")[1])}return e}},computed:{tabs:function(){return this.views.map((function(t,e){return or(or({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:Object(ke["a"])(Pc.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=Zn(this.subviews),this.id=this.view.id}},activated:function(){this.affix=!0},deactivated:function(){this.affix=!1}},ur=lr,fr=(n("d149"),Object(Kt["a"])(ur,Yn,Wn,!1,null,null,null)),dr=fr.exports;function pr(t){return yr(t)||mr(t)||vr(t)||hr()}function hr(){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 vr(t,e){if(t){if("string"===typeof t)return gr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gr(t,e):void 0}}function mr(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function yr(t){if(Array.isArray(t))return gr(t)}function gr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var br=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(n){return[e("DescriptionsItem",{key:n.name,attrs:{span:n.column?n.column/12:1,label:n.alias||n.name,tooltip:n.legend}},[t._t("cell",null,{value:t.profile[n.name],column:n})],2)]}))],2):t._e(),e("a-tabs",{attrs:{animated:!1,"default-active-key":t.activeTabKey},on:{change:t.handleChange}},t._l(t.tabs,(function(n,r){return e("a-tab-pane",{key:String(r),attrs:{tab:n.tab}},["profile"===n.type?e("a-spin",{attrs:{spinning:t.loading}},t._l(t.groups,(function(n,r){return e("Descriptions",{key:"g-".concat(r),staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[n.name?e("div",{attrs:{slot:"title"},slot:"title"},[e("strong",[t._v(t._s(n.name))])]):t._e(),t._l(t.subAttrsColumns(n.columns),(function(n,o){return[!t.collapse||t.showDescItems["showDescItem".concat(r)]||o<t.collapse?e("DescriptionsItem",{key:n.name,attrs:{span:n.column?n.column/12:1,label:n.alias||n.name,tooltip:n.legend}},[t._t("cell",null,{value:t.profile[n.name],column:n})],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(r)]=!t.showDescItems["showDescItem".concat(r)]}}},[e("a-icon",{attrs:{type:t.showDescItems["showDescItem".concat(r)]?"double-left":"double-right"}})],1)]):t._e()],2)})),1):"link"===n.type?e("Frame",{attrs:{url:t.templateURL(n.value,t.profile),height:t.iframeHeight(n.value)}}):e("keep-alive",[e(t.Views[r],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(pr(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:n.name,params:{$parent:t.profile}}})],1)],1)})),1)],1):t._e()},wr=[];function _r(t){return _r="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},_r(t)}function xr(t){return Er(t)||Sr(t)||Or(t)||kr()}function kr(){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 Or(t,e){if(t){if("string"===typeof t)return jr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jr(t,e):void 0}}function Sr(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Er(t){if(Array.isArray(t))return jr(t)}function jr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Nr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Lr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Nr(Object(n),!0).forEach((function(e){Pr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Pr(t,e,n){return e=Cr(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Cr(t){var e=Ar(t,"string");return"symbol"==_r(e)?e:String(e)}function Ar(t,e){if("object"!=_r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=_r(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Tr=gn["a"].DescriptionsItem,Rr={components:Lr({Descriptions:gn["a"],DescriptionsItem:Tr,Frame:bn["a"]},Pc),inject:["page","view"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1},configs:{type:Object}},data:function(){return{activeTabKey:"0",views:null,id:this.view.id,parentIds:this.view.parentIds&&xr(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,showDescItems:{}}},methods:{handleChange:function(t){this.activeTabKey=t},templateURL:function(t,e){return Object(R["a"])(t,e)},iframeHeight:function(t){var e;if(t&&t.split("?")[1]){var n=t.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;n&&(e=n.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,n){t.$set(t.showDescItems,"showDescItem".concat(n),!1)})),this.$route.query&&this.$route.query.activeTabKey){var e=this.tabs.find((function(e){return e.name===t.$route.query.activeTabKey}));e&&(this.activeTabKey=e.key)}this.views=[this.profileTab].concat(xr(this.subviews))},computed:{tabs:function(){return this.views?this.views.map((function(t,e){return Lr(Lr({},t),{},{key:String(e),tab:t.alias||t.name})})):[]},Views:function(){var t=this;return this.views?this.views.map((function(e){return{extends:Object(ke["a"])(Pc.ModelList)("".concat(t.storeNamespace,"/:id/").concat(e.name))}})):[]},collapse:function(){return this.view.configs["profile.collapse"]?Number(this.view.configs["profile.collapse"]):null},basicAttrs:function(){var t=[];return this.view.configs&&this.view.configs["profile.tabs.basicAttrs"]&&(t=this.view.configs["profile.tabs.basicAttrs"].split(",")),t},basicAttrsColumns:function(){var t=this;return this.basicAttrs.length?this.columns.filter((function(e){return t.basicAttrs.includes(e.name)})):[]},profileTab:function(){return{name:this.view.configs&&this.view.configs["profile.tabs.profileTitle"]?this.view.configs["profile.tabs.profileTitle"]:"详情",type:"profile"}}},watch:{profile:function(){this.views=[this.profileTab].concat(xr(this.subviews)),this.id=this.view.id}}},Dr=Rr,Ir=(n("b69c"),Object(Kt["a"])(Dr,br,wr,!1,null,null,null)),Mr=Ir.exports,qr={ProfileNormal:qn,ProfilePortal:Bn,ProfileTile:dr,ProfileTabs:Mr};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,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Br(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$r(Object(n),!0).forEach((function(e){Vr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Vr(t,e,n){return e=Hr(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hr(t){var e=Ur(t,"string");return"symbol"==Fr(e)?e:String(e)}function Ur(t,e){if("object"!=Fr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Fr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Gr={mixins:[i,a,A,Vt,Pt["a"],ln],components:Br({ActionGroup:we,ActionView:je,Popup:Te["a"],Cell:Ge},qr),computed:{onlyProfile:function(){return this.configs?"true"===this.configs["profile.mode"]:null},actionConfigs:function(){var t,e;return this.action&&null!==(t=null===(e=this.action.configs)||void 0===e?void 0:e.reduce((function(t,e){return t[e.key]=e.value,t}),{}))&&void 0!==t?t:{}}}},zr=Gr,Kr=(n("1bf9"),Object(Kt["a"])(zr,nn,rn,!1,null,null,null)),Yr=Kr.exports,Wr=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)},Jr=[],Zr={create:["createonly","updateonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},Xr={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,n=this.model,r=this.editType,o=this.hide,i=t&&t.view?t.view.model.attrs:e&&e.attrs?e.attrs:n.attrs?n.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 Zr[r].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")}}},Qr=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(n){return e("a-col",{key:n.name,staticStyle:{"min-height":"0"},attrs:{span:n.column||12}},[e("Item",{attrs:{formModel:t.actionModel,prop:n.name,schema:n,params:t.params},on:{change:function(e){return t.handleItemChange(e,n)},fill:function(e){return t.handleItemFill(e,n)}},model:{value:t.actionModel[n.name],callback:function(e){t.$set(t.actionModel,n.name,e)},expression:"actionModel[col.name]"}})],1)})),1)],1)},to=[],eo={mixins:[ie["a"]],components:{Item:ae["a"]}},no=eo,ro=Object(Kt["a"])(no,Qr,to,!1,null,null,null),oo=ro.exports,io=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(n,r){return e("div",{key:r,staticClass:"form-file-upload"},[e("a-row",{attrs:{type:"flex",justify:"space-between",align:"middle"}},[e("a-col",["uploading"===n.status?e("a-icon",{attrs:{type:"loading"}}):"done"===n.status?e("a-icon",{attrs:{type:"paper-clip"}}):t._e(),t._v(" "+t._s(n.file.name)+" ")],1),e("a-col",[n.status?t._e():e("a-icon",{attrs:{type:"close"},on:{click:function(e){return t.handleRemove(r)}}})],1)],1)],1)}))],2)},ao=[];function so(t){return so="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},so(t)}function co(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */co=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==so(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(so(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function lo(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function uo(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){lo(i,r,o,a,s,"next",t)}function s(t){lo(i,r,o,a,s,"throw",t)}a(void 0)}))}}var fo={mixins:[ie["a"]],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 uo(co().mark((function e(){var n;return co().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.view.view.selections,0!==t.fileList.length){e.next=3;break}return e.abrupt("return",t.$message.error("请选择文件"));case 3:if(!(n&&n.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 uo(co().mark((function e(){var n,r,o,i,a,s,c,l,u,f,d,p;return co().wrap((function(e){while(1)switch(e.prev=e.next){case 0:p=function(){return p=uo(co().mark((function t(e){var n,p,h;return co().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.status="uploading",n=o.key,p=o.method,h=new FormData,h.append("file",e.file),a&&h.append("data[".concat(i,"]"),a[i]),t.next=7,r({data:h,key:n,method:p,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)}))),p.apply(this,arguments)},d=function(t){return p.apply(this,arguments)},n=t.view.view,r=n.saveData,o=n.action,i=n.idName,a=n.actionModel,s=n.closeActionView,c=n.load,l=n.$message,u=t.fileList,f=0,d(u[f]);case 6:case"end":return e.stop()}}),e)})))()}}},po=fo,ho=Object(Kt["a"])(po,io,ao,!1,null,null,null),vo=ho.exports,mo=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))},yo=[],go=n("3d8a");function bo(t){return bo="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},bo(t)}function wo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wo(Object(n),!0).forEach((function(e){xo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xo(t,e,n){return e=ko(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ko(t){var e=Oo(t,"string");return"symbol"==bo(e)?e:String(e)}function Oo(t,e){if("object"!=bo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=bo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var So={mixins:[ie["a"]],components:{Picker:go["a"]},computed:{pickerFilter:function(){var t=this.action.params,e=t&&t.filters,n={};if(!e)return null;for(var r in e){var o=e[r].split(".").reduce((function(t,e){return t&&t[e]||void 0}),_o(_o({},this.params),this.actionModel));n[r]=void 0===o?e[r]:o}return n},pickerMode:function(){var t=this.action.params,e=void 0===t?{}:t,n=e.multiple,r=e.pickerMode;return"none"===r?null:n?"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"],n=e;this.actionModel=n?t.map((function(t){return xo({},n,t[e])})):t}}},Eo=So,jo=Object(Kt["a"])(Eo,mo,yo,!1,null,null,null),No=jo.exports,Lo=function(){var t=this,e=t._self._c;return e("div",[e("a-steps",{attrs:{current:t.current}},t._l(t.steps,(function(n){return e("a-step",{key:n.title,attrs:{title:n.title}},["核心解读"===n.title?e("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.coreAlgorithmCount},slot:"subTitle"}):t._e(),"描述解读"===n.title?e("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.describeAlgorithmCount},slot:"subTitle"}):t._e(),"排盘数据"===n.title?e("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.paipanDataCount},slot:"subTitle"}):t._e(),"术数分析"===n.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(n,r){return e("a-tab-pane",{key:n.name+r.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(n.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(n.children)}})],1),e("CheckboxGroup",{attrs:{title:n.name,data:n.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,n.name,r)}}})],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(n,r){return e("a-tab-pane",{key:n.name+r.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(n.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(n.children)}})],1),e("CheckboxGroup",{attrs:{title:n.name,data:n.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,n.name,r)}}})],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(n,r){return e("a-tab-pane",{key:n.name+r.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(n.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(n.children)}})],1),e("CheckboxGroup",{attrs:{title:n.name,data:n.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,n.name,r)}}})],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(n,r){return e("a-tab-pane",{key:n.name+r.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(n.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(n.children)}})],1),e("CheckboxGroup",{attrs:{title:n.name,data:n.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,n.name,r)}}})],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)},Po=[],Co=n("5880"),Ao=n("8bbf"),To=n.n(Ao),Ro=n("8c7f");function Do(t){return Do="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},Do(t)}function Io(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Io=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Do(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Do(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Mo(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function qo(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Mo(i,r,o,a,s,"next",t)}function s(t){Mo(i,r,o,a,s,"throw",t)}a(void 0)}))}}var Fo={namespaced:!0,state:{loading:!1,data:{},district:[],status:200,message:""},mutations:{setLoading:function(t,e){t.loading=e},setData:function(t,e){var n=e.key,r=e.rows;t.data[n]?t.data[n]=r:To.a.set(t.data,n,r)},setDistrict:function(t,e){t.district=e},setStatus:function(t,e){var n=e.status,r=e.message;t.status=n,t.message=r}},actions:{loadData:function(t){var e=arguments;return qo(Io().mark((function n(){var r,o,i,a,s,l,u,f;return Io().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},a=i.methods,s=void 0===a?"get":a,l=i.key,u=i.query,r("setLoading",!0),n.prev=4,n.next=7,Ro["a"][s](u?"/api/".concat(l?"".concat(l):"","?").concat(c.a.stringify(u)):"/api/".concat(l?"".concat(l):""));case 7:f=n.sent,f.data&&l&&r("setData",{rows:f.data,key:l}),n.next=14;break;case 11:n.prev=11,n.t0=n["catch"](4),o("handleError",n.t0);case 14:return n.prev=14,r("setLoading",!1),n.finish(14);case 17:case"end":return n.stop()}}),n,null,[[4,11,14,17]])})))()},loadDistrict:function(t){return qo(Io().mark((function e(){var n,r,o,i;return Io().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,r=t.dispatch,n("setLoading",!0),e.prev=2,e.next=5,Ro["a"].get("/dataset/%E8%A1%8C%E6%94%BF%E5%8C%BA%E5%88%92");case 5:o=e.sent,i=o.data,i&&n("setDistrict",i.data),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](2),r("handleError",e.t0);case 13:return e.prev=13,n("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 qo(Io().mark((function n(){var r,o,i,a,s,c;return Io().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},a=i.key,s=i.params,r("setLoading",!0),n.prev=4,n.next=7,Ro["a"].post(a,s,{});case 7:if(c=n.sent,!c||!c.data){n.next=10;break}return n.abrupt("return",c.data);case 10:n.next=15;break;case 12:n.prev=12,n.t0=n["catch"](4),o("handleError",n.t0);case 15:return n.prev=15,r("setLoading",!1),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[4,12,15,18]])})))()},handleError:function(t,e){var n=t.commit;if(!e.response)return n("setStatus",{status:0,message:"网络请求错误,请检查您的网络连接。"});var r=e.response,o=r.status,i=r.data,a=i&&i.content||"系统错误请与管理员联系。";n("setStatus",{status:o,message:a})}}};function $o(t){return $o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$o(t)}function Bo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Vo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bo(Object(n),!0).forEach((function(e){Ho(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ho(t,e,n){return e=Uo(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Uo(t){var e=Go(t,"string");return"symbol"==$o(e)?e:String(e)}function Go(t,e){if("object"!=$o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=$o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}for(var zo=Object(Co["createNamespacedHelpers"])("m-algorithm"),Ko=zo.mapState,Yo=zo.mapActions,Wo=["loading","data","message"],Jo=["loadData","loadDistrict","getResult"],Zo={computed:Vo({},Ko(Wo)),methods:Vo({},Yo(Jo)),beforeCreate:function(){this.$store.state["m-algorithm"]||this.$store.registerModule("m-algorithm",Fo)}},Xo=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(n){return e("a-col",{key:n.id,staticClass:"algorithm-item",class:{"algorithm-item-actived":n.checked},attrs:{span:6}},[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{span:20}},[e("a-checkbox",{staticClass:"text-ellipsis",attrs:{checked:n.checked},on:{change:function(e){return t.onCheckChange(e,n)}}},[e("a-tooltip",[e("template",{slot:"title"},[t._v(" "+t._s(n.name)+" ")]),t._v(" "+t._s(n.name)+" ")],2)],1)],1),e("a-col",{staticClass:"params-setting",attrs:{span:4},on:{click:function(e){return t.showDrawer(n.read_id)}}},[n.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(n,r){return e("a-tab-pane",{key:n.key,attrs:{tab:"".concat(n.title,"_").concat(r+1),closable:0!==r}},[e("AlgorithmParams",{attrs:{algorithmParams:n.algorithmParams,algorithmParamsKey:n.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)},Qo=[],ti=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(n,r){return e("a-form-model-item",{key:n.key,attrs:{prop:"algorithms."+r+".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:n.value,callback:function(e){t.$set(n,"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(n)}}})],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)},ei=[],ni={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}}},ri=ni,oi=Object(Kt["a"])(ri,ti,ei,!1,null,null,null),ii=oi.exports,ai=gn["a"].DescriptionsItem,si={props:{title:{type:String},data:{type:Array,require:!0},defaultCheckedList:{type:Array}},components:{Descriptions:gn["a"],DescriptionsItem:ai,AlgorithmParams:ii},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 n=this.checkedList.findIndex((function(t){return e.read_id===t.read_id}));this.checkedList.splice(n,1)}this.$emit("change",this.checkedList)},showDrawer:function(t){var e=this;this.algorithmId=t;var n=this.checkedList.find((function(e){return e.read_id===t})).values;if(n.length)this.panes=n.map((function(t,n){var r={key:"".concat(e.algorithmId).concat(n),title:"参数",algorithmParams:t.map((function(t,e){return{key:e,value:t}}))};return r}));else{var r={key:"".concat(this.algorithmId,"0"),title:"参数",algorithmParams:[]};this.submitForm(r),this.panes=[r]}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 n=this.checkedList.find((function(e){return e.read_id===t.algorithmId}));e&&(n.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,n="".concat(this.algorithmId).concat(e),r={title:"参数",algorithmParams:[],key:n};this.submitForm(r),this.panes.push(r),this.panes=t,this.activeKey=n},remove:function(t){delete this.paneParams[t],this.setParams();var e,n=this.activeKey;this.panes.forEach((function(n,r){n.key===t&&(e=r-1)}));var r=this.panes.filter((function(e){return e.key!==t}));r.length&&n===t&&(n=e>=0?r[e].key:r[0].key),this.panes=r,this.activeKey=n}},watch:{}},ci=si,li=(n("9897"),Object(Kt["a"])(ci,Xo,Qo,!1,null,null,null)),ui=li.exports,fi=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(n){return e("a-select-option",{key:n,attrs:{value:n}},[t._v(" "+t._s(n)+" ")])})),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)},di=[],pi={computed:{districts:function(){var t=this.$store.state["m-algorithm"].district,e=t&&t.filter((function(t){return"1"===t.level})),n=t&&t.filter((function(t){return"2"===t.level})),r=t&&t.filter((function(t){return"3"===t.level}));return e.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,children:r.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}}))}}))}}))||[]}}},hi=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}})},vi=[],mi=n("2364"),yi=null,gi={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){yi&&yi.dispose();var e=mi["Uri"].parse("json://grid/settings.json");yi=mi["editor"].create(this.$refs.monaco,{value:JSON.stringify(t,null,"\t"),language:"json",Uri:e})}},watch:{value:function(t){this.getResult(t)}}},bi=gi,wi=Object(Kt["a"])(bi,hi,vi,!1,null,null,null),_i=wi.exports,xi=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(n,r){return e("li",{key:r,class:{active:t.value.yearIndex===r},on:{click:function(e){return t.change("year",r)}}},[t._v(" "+t._s(n)+"年 ")])})),0)]),e("a-col",[e("ul",t._l(t.months,(function(n,r){return e("li",{key:n,class:{active:t.value.monthIndex===r},on:{click:function(e){return t.change("month",r)}}},[t._v(" "+t._s(n)+"月 ")])})),0)]),e("a-col",[e("ul",t._l(t.days,(function(n,r){return e("li",{key:n,class:{active:t.value.dayIndex===r},on:{click:function(e){return t.change("day",r)}}},[t._v(" "+t._s(n)+"日 ")])})),0)]),e("a-col",[e("ul",t._l(t.hours,(function(n,r){return e("li",{key:n,class:{active:t.value.hourIndex===r},on:{click:function(e){return t.change("hour",r)}}},[t._v(" "+t._s(n)+"时 ")])})),0)]),e("a-col",[e("ul",t._l(t.minutes,(function(n,r){return e("li",{key:n,class:{active:t.value.minuteIndex===r},on:{click:function(e){return t.change("minute",r)}}},[t._v(" "+t._s(n)+"分 ")])})),0)])],1)},ki=[],Oi=[],Si=[],Ei=[],ji=[],Ni=1901;Ni<=2030;Ni++)Oi.push("".concat(Ni));for(var Li=1;Li<=12;Li++)Si.push(Li<10?"0".concat(Li):"".concat(Li));for(var Pi=0;Pi<=23;Pi++)Ei.push(Pi<10?"0".concat(Pi):"".concat(Pi));for(var Ci=0;Ci<=59;Ci++)ji.push(Ci<10?"0".concat(Ci):"".concat(Ci));var Ai={props:{isLunar:{type:Boolean,default:!1}},data:function(){return{years:Oi,year:"1901",months:Si,month:"01",day:"01",hours:Ei,hour:"00",minutes:ji,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 n=1;n<=31;n++)t.push(n<10?"0".concat(n):"".concat(n));else if(["04","06","09","11"].includes(this.month))for(var r=1;r<=30;r++)t.push(r<10?"0".concat(r):"".concat(r));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),n=this.days.indexOf(this.day),r=this.hours.indexOf(this.hour),o=this.minutes.indexOf(this.minute);return{yearIndex:t,monthIndex:e,dayIndex:n,hourIndex:r,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 n="".concat(this.year,"-").concat(this.month,"-").concat(this.day," ").concat(this.hour,":").concat(this.minute);this.$emit("change",n)}}},Ti=Ai,Ri=(n("6d57"),Object(Kt["a"])(Ti,xi,ki,!1,null,null,null)),Di=Ri.exports,Ii=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(n){return e("span",{},[t._v(" "+t._s("female"===n?"女":"男")+" ")])}}])})],1)},Mi=[],qi=[{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"}],Fi={mixins:[Zo],data:function(){return{columns:qi,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}})}}},$i=Fi,Bi=Object(Kt["a"])($i,Ii,Mi,!1,null,null,null),Vi=Bi.exports;function Hi(t){return Hi="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},Hi(t)}function Ui(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ui=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Hi(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Hi(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Gi(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function zi(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Gi(i,r,o,a,s,"next",t)}function s(t){Gi(i,r,o,a,s,"throw",t)}a(void 0)}))}}var Ki=["流年","流月","商务","健康","婚姻","爱情","工作","出行","学业","财运","家宅"],Yi={mixins:[Zo,pi],props:["algorithmList"],components:{CodeEditor:_i,DateTimePicker:Di,ProfileSelect:Vi},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:Ki,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 zi(Ui().mark((function n(){return Ui().wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.profile.is_submit=t,e.$refs.profileForm.validate(function(){var n=zi(Ui().mark((function n(r){var o;return Ui().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!r){n.next=10;break}return n.next=3,e.getResult({key:"/api/algorithm-product/algorithm",params:e.profile});case 3:if(o=n.sent,!o||!o.data||"0"!==t){n.next=7;break}return e.codeValue=[JSON.parse(o.data)],n.abrupt("return");case 7:o?(e.$message.success("增加算法产品成功"),e.$emit("close")):e.$message.error(e.message),n.next=11;break;case 10:return n.abrupt("return",!1);case 11:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}());case 2:case"end":return n.stop()}}),n)})))()},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):"",n=t?t.substring(5,7):"",r=this.lunarLeapMonthOfYear(e)<10?"0"+this.lunarLeapMonthOfYear(e).toString():this.lunarLeapMonthOfYear(e).toString();this.profile.is_lunar&&(n===r&&"00"!==r?(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,"/"),n=this.timeStamp(e),r=[];r=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")}],r.length&&(n>=r[0].start&&n<=r[0].end||n>=r[1].start&&n<=r[1].end||n>=r[2].start&&n<=r[2].end||n>=r[3].start&&n<=r[3].end||n>=r[4].start&&n<=r[4].end||n>=r[5].start&&n<=r[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,n){var r=this.$store.state["m-algorithm"].district,o=r.find((function(e){return e.district_name===t}))?r.find((function(e){return e.district_name===t})).district_id:"",i=r.find((function(t){return t.district_name===e}))?r.find((function(t){return t.district_name===e})).district_id:"",a=r.find((function(t){return t.district_name===n}))?r.find((function(t){return t.district_name===n})).district_id:"";return[o,i,a]}},watch:{algorithmList:function(t){this.profile.code=JSON.stringify(t)}}},Wi=Yi,Ji=Object(Kt["a"])(Wi,fi,di,!1,null,null,null),Zi=Ji.exports;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){return ra(t)||na(t)||ea(t)||ta()}function ta(){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 ea(t,e){if(t){if("string"===typeof t)return oa(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oa(t,e):void 0}}function na(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ra(t){if(Array.isArray(t))return oa(t)}function oa(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ia(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function aa(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ia(Object(n),!0).forEach((function(e){sa(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ia(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function sa(t,e,n){return e=ca(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ca(t){var e=la(t,"string");return"symbol"==Xi(e)?e:String(e)}function la(t,e){if("object"!=Xi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Xi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ua={mixins:[Zo],components:{CheckboxGroup:ui,AlgorithmForm:Zi},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,n=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 n=aa(aa({},e),{},{values:[],checked:!1});return t.checkedList.length&&t.checkedList.forEach((function(e){e.read_id===n.read_id&&(t.$set(n,"values",e.values),t.$set(n,"checked",e.checked))})),n})),r=Qi(new Set(n&&n.map((function(t){return t.classify})))),o=r&&r.map((function(t){var e=n.filter((function(e){return e.classify===t})),r=Qi(new Set(e.map((function(t){return t.type})))),o=r.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,n=t.filter((function(t){return"描述解读"===t.classify})).length||0,r=t.filter((function(t){return"排盘数据"===t.classify})).length||0,o=t.filter((function(t){return"术数分析"===t.classify})).length||0;return{coreAlgorithmCount:e,describeAlgorithmCount:n,paipanDataCount:r,surgeryAnalysisCount:o}},algorithmList:function(){var t=this.defaultCheckedList,e=[],n=[];return t.forEach((function(r){var o=r.code;n=r.values.length>1?r.values.map((function(t,e){var n=e+1,r=1===n?o:n<10?"".concat(o,"_0").concat(n):"".concat(o,"_").concat(n);return[r,t||[]]})):t.map((function(t){return[t.code,t.values.length?t.values[0]:[]]})),e=[].concat(Qi(e),Qi(n))})),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,n,r){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(Qi(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})),n=this.checkedList.map((function(t){return t.read_id}));return e.filter((function(t){return n.includes(t)})).length}},watch:{nameKeyword:function(t){""===t&&this.onSearch()},codeKeyword:function(t){""===t&&this.onSearch()}}},fa=ua,da=(n("4dd6"),Object(Kt["a"])(fa,Lo,Po,!1,null,null,null)),pa=da.exports;function ha(t){return ga(t)||ya(t)||ma(t)||va()}function va(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ma(t,e){if(t){if("string"===typeof t)return ba(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ba(t,e):void 0}}function ya(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ga(t){if(Array.isArray(t))return ba(t)}function ba(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var wa=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(n){var r=n.props,o=r.direction,i=r.selectedKeys,a=n.on.itemSelect;return["left"===o?e("a-spin",{attrs:{spinning:t.leftLoding}},[e("a-tree",{attrs:{blockNode:"",checkable:"",checkStrictly:"",checkedKeys:[].concat(ha(i),ha(t.checkedKeys)),treeData:t.filterTreeNodes},on:{check:function(e,n){t.onChecked(e,n,[].concat(ha(i),ha(t.checkedKeys)),a)},select:function(e,n){t.onChecked(e,n,[].concat(ha(i),ha(t.checkedKeys)),a)}}})],1):t._e()]}}])})],1)},_a=[];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 ka(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ka=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==xa(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(xa(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Oa(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function Sa(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Oa(i,r,o,a,s,"next",t)}function s(t){Oa(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Ea(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ja(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ea(Object(n),!0).forEach((function(e){Na(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ea(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Na(t,e,n){return e=La(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function La(t){var e=Pa(t,"string");return"symbol"==xa(e)?e:String(e)}function Pa(t,e){if("object"!=xa(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=xa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ca={mixins:[ie["a"]],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,n=this.keyName,r=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[n],children:s,disabled:r.includes(a[n])||o&&!Object(T["a"])(o,a)||i&&Object(T["a"])(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=ja(ja({},this.actionModel),{},Na({},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=ja(ja({},this.actionModel),{},Na({},this.valuesName,this.checkedKeys))},isChecked:function(t,e){return-1!==t.indexOf(e)},onChecked:function(t,e,n,r){var o=e.node.eventKey;r(o,!this.isChecked(n,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 Sa(ka().mark((function e(){return ka().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 n=this,r=null;"left"===t&&(this.leftLoding=!0,r=setTimeout((function(){r&&clearTimeout(r),n.inputValue=e,n.leftLoding=!1}),1e3))}}},Aa=Ca,Ta=(n("2387"),Object(Kt["a"])(Aa,wa,_a,!1,null,"0ce5108d",null)),Ra=Ta.exports,Da=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}})},Ia=[];function Ma(t){return Ma="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},Ma(t)}function qa(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */qa=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Ma(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Ma(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Fa(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function $a(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Fa(i,r,o,a,s,"next",t)}function s(t){Fa(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Ba(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Va(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ba(Object(n),!0).forEach((function(e){Ha(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ba(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ha(t,e,n){return e=Ua(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ua(t){var e=Ga(t,"string");return"symbol"==Ma(e)?e:String(e)}function Ga(t,e){if("object"!=Ma(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ma(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var za={mixins:[ie["a"]],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,n=this.keyName,r=function t(r){return r.map((function(r){var o;return r._childList&&(o=t(r._childList)),{title:r[e],key:r[n],children:o}}))};return r(t)}},created:function(){this.checkedKeys&&(this.actionModel=Va(Va({},this.actionModel),{},Ha({},this.valuesName,this.checkedKeys)))},methods:{handleCheck:function(t,e){var n=t.checked;if(n.includes(e.node.eventKey)){var r=e.node;while(r&&r.eventKey)n.includes(r.eventKey)||n.push(r.eventKey),r=r.$parent}this.actionModel=Va(Va({},this.actionModel),{},Ha({},this.valuesName,n))},handleSubmit:function(){var t=this;return $a(qa().mark((function e(){return qa().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.handleCommit();case 1:case"end":return e.stop()}}),e)})))()}}},Ka=za,Ya=Object(Kt["a"])(Ka,Da,Ia,!1,null,null,null),Wa=Ya.exports,Ja=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(n){return[!n.scope||n.scope.includes(t.actionModel.flow_action_name)?e("Item",{key:n.name,attrs:{formModel:t.actionModel,prop:n.name,schema:n,required:n.required,params:{}},on:{change:function(e){return t.handleItemChange(e,n)}},model:{value:t.actionModel[n.name],callback:function(e){t.$set(t.actionModel,n.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(n){return e("a-select-option",{key:n.step_id,attrs:{value:n.step_id}},[t._v(" "+t._s(n.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(n){return e("Item",{key:n.name,attrs:{formModel:t.actionModel,prop:n.name,schema:n,params:{}},on:{change:function(e){return t.handleItemChange(e,n)}},model:{value:t.actionModel[n.name],callback:function(e){t.$set(t.actionModel,n.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(n,r){return e("div",{key:n.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(r+1))])]),e("td",[e("p",{staticStyle:{padding:"12px 0"}},[t._v(" "+t._s(n.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(n.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(n){return e("a-list-item",{},[e("a-list-item-meta",[e("div",{attrs:{slot:"title"},slot:"title"},[t._v(" "+t._s(n.step_name)+" - "+t._s(n.operator.actor_name)+" - "+t._s(n.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(n.deal_desc)+" ")]),n.deal_note?e("div",[t._v(" 审批意见:"+t._s(n.deal_note)+" ")]):t._e(),e("div",[e("a-icon",{attrs:{type:"clock-circle-o"}}),t._v(" "+t._s(t.moment(n.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(n,r){return e("a-timeline-item",{key:n.step_id,attrs:{color:t.stepIndex>r?"blue":t.stepIndex===r?"green":"#999"}},[t._v(" "+t._s(r+1)+". "+t._s(n.step_name)+" "),t.stepIndex>r?e("span",[t._v(" "+t._s(n.operator?"(".concat(n.operator,")"):"")+" ")]):t._e(),t.stepIndex===r?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)},Za=[],Xa=n("336c"),Qa=n.n(Xa);function ts(t){return ts="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},ts(t)}function es(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */es=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==ts(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(ts(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function ns(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function rs(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){ns(i,r,o,a,s,"next",t)}function s(t){ns(i,r,o,a,s,"throw",t)}a(void 0)}))}}function os(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function is(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?os(Object(n),!0).forEach((function(e){as(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):os(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function as(t,e,n){return e=ss(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ss(t){var e=cs(t,"string");return"symbol"==ts(e)?e:String(e)}function cs(t,e){if("object"!=ts(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ts(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}Qa.a.track(!1);var ls=n("019f"),us={mixins:[ie["a"]],components:{Item:ae["a"]},data:function(){return{actionModel:is(is({},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 n=e.todo_actors.map((function(t){return t.operator.actor_id}));t.rowSelection.selectedRowKeys=n.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 rs(es().mark((function e(){return es().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 n=this;return rs(es().mark((function r(){var o,i,a,s;return es().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(o=e.name,!(t instanceof FileList)){r.next=14;break}if(!t[0]){r.next=11;break}return i=new FormData,i.append(o,t[0]),r.next=7,n.$api.post("/upload",i);case 7:a=r.sent,t=a.data.data[o],r.next=12;break;case 11:t=null;case 12:r.next=15;break;case 14:t instanceof Date&&(t=n.moment(t).format("YYYY-MM-DD"));case 15:s=is({},n.actionModel.data),s[o]=t,n.actionModel.data=is({},s);case 18:case"end":return r.stop()}}),r)})))()},renderGraph:function(){var t=this;Qa.a.registerNode("rect",{getPath:function(t){var e=150,n=40;return Qa.a.Util.getRectPath(-e/2,-n/2,e,n,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 n=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:n&&n.step_id,target:e.step_id}}))},n=new Qa.a.Graph({container:this.$refs.graph,fitView:"cc",height:72*this.steps.length,plugins:[new ls({ranksep:30})],defaultIntersectBox:"rect"});n.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}}}),n.edge({style:{endArrow:!0}}),n.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})),n=this.view.schema.model.attrs.filter((function(t){return e.includes(t.name)})).map((function(e){var n=t.formItems.find((function(t){return t.attr_name===e.name}));return is(is({},e),n)}));return["reassign","involve"].includes(this.actionModel.flow_action_name)?n.filter((function(e){return e.attr_name===t.actionModel.flow_action_name})):n.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("、"),")"):""}}},fs=us,ds=(n("e993"),Object(Kt["a"])(fs,Ja,Za,!1,null,null,null)),ps=ds.exports,hs=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)},vs=[],ms=n("ad54"),ys=n("a142");function gs(t){return gs="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},gs(t)}function bs(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */bs=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==gs(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(gs(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function ws(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ws(Object(n),!0).forEach((function(e){xs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ws(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xs(t,e,n){return e=Ns(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ks(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function Os(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){ks(i,r,o,a,s,"next",t)}function s(t){ks(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Ss(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Es(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ns(r.key),r)}}function js(t,e,n){return e&&Es(t.prototype,e),n&&Es(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ns(t){var e=Ls(t,"string");return"symbol"==gs(e)?e:String(e)}function Ls(t,e){if("object"!=gs(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=gs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Ps(t,e,n){Cs(t,e),e.set(t,n)}function Cs(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function As(t,e){var n=Ds(t,e,"get");return Ts(t,n)}function Ts(t,e){return e.get?e.get.call(t):e.value}function Rs(t,e,n){var r=Ds(t,e,"set");return Is(t,r,n),n}function Ds(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function Is(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}var Ms=new WeakMap,qs=new WeakMap,Fs=new WeakMap,$s=function(){function t(e){Ss(this,t),Ps(this,Ms,{writable:!0,value:void 0}),Ps(this,qs,{writable:!0,value:void 0}),Ps(this,Fs,{writable:!0,value:void 0}),Rs(this,Ms,e),Rs(this,qs,window.location.origin+"/ead"),Rs(this,Fs,window.location.origin+"/workflow")}return js(t,[{key:"getComponent",value:function(){return As(this,Ms)}},{key:"setComponent",value:function(t){Rs(this,Ms,t)}},{key:"getCurrentViewSchema",value:function(){return As(this,Ms).$attrs.schema}},{key:"getCurrentUserName",value:function(){return As(this,Ms).$store.state.user.name}},{key:"getModelIdName",value:function(){return As(this,Ms).$attrs.schema.model.idName}},{key:"runCurrentAction",value:function(){var t=Os(bs().mark((function t(){var e,n,r,o,i,a,s,c;return bs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=As(this,Ms).action,n=As(this,Ms).view.apiURL.replace(As(this,Ms).view.apiBaseURL+"/",""),r=e.key,o=e.method,t.next=7,As(this,Ms).$api[o.toLowerCase()]("".concat(n).concat(r?"/".concat(r):""),_s({},As(this,Ms).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||"系统错误请与管理员联系。",As(this,Ms).$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=Os(bs().mark((function t(e){var n,r,o,i,a;return bs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,As(this,Ms).$api.get("".concat(As(this,qs),"/api/flowdir-viewattr?view_id=").concat(e));case 3:return n=t.sent,r=n.data.collection,o=void 0===r?[]:r,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:"getViewSchema",value:function(){var t=Os(bs().mark((function t(e){var n,r,o,i;return bs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,As(this,Ms).$api.get("".concat(As(this,Fs),"/api/viewschema/").concat(e));case 3:return n=t.sent,r=n.data,t.abrupt("return",r);case 8:t.prev=8,t.t0=t["catch"](0),o=t.t0.response.data,i=o&&o.content||"系统错误请与管理员联系。",this.$message.error(i);case 13:return t.prev=13,t.finish(13);case 15:case"end":return t.stop()}}),t,this,[[0,8,13,15]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getUsers",value:function(){var t=Os(bs().mark((function t(){var e,n,r,o,i;return bs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,As(this,Ms).$api.get("".concat(As(this,qs),"/api/flowdir-user"));case 3:return e=t.sent,n=e.data.collection,r=void 0===n?[]:n,t.abrupt("return",r);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=Os(bs().mark((function t(e){var n,r,o,i,a;return bs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,As(this,Ms).$api.get("".concat(As(this,qs),"/api/flowdir-role?app_key=")+e);case 3:return n=t.sent,r=n.data.collection,o=void 0===r?[]:r,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=Os(bs().mark((function t(){var e,n,r,o,i;return bs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,As(this,Ms).$api.get("".concat(As(this,qs),"/api/flowdir-org"));case 3:return e=t.sent,n=e.data.collection,r=void 0===n?[]:n,t.abrupt("return",r);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=Os(bs().mark((function t(e,n){var r,o,i,a,s;return bs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,As(this,Ms).$api.get("".concat(As(this,qs),"/dataset/").concat(e),{params:_s({},n)});case 3:return r=t.sent,o=r.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,n){return t.apply(this,arguments)}return e}()},{key:"getDatasetApi",value:function(){var t=Os(bs().mark((function t(e,n){var r,o,i,a,s;return bs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,As(this,Ms).$api.get("".concat(As(this,qs),"/api/").concat(e),{params:_s({},n)});case 3:return r=t.sent,o=r.data.collection,i=void 0===o?[]:o,t.abrupt("return",i);case 9:t.prev=9,t.t0=t["catch"](0),a=t.t0.response.data,s=a&&a.content||"系统错误请与管理员联系。",this.$message.error(s);case 14:return t.prev=14,t.finish(14);case 16:case"end":return t.stop()}}),t,this,[[0,9,14,16]])})));function e(e,n){return t.apply(this,arguments)}return e}()},{key:"getViews",value:function(){var t=Os(bs().mark((function t(e){var n,r,o,i,a;return bs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,As(this,Ms).$api.get("".concat(As(this,qs),"/api/flowdir-view?name=")+e);case 3:return n=t.sent,r=n.data.collection,o=void 0===r?[]:r,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:"getModels",value:function(){var t=Os(bs().mark((function t(e){var n,r,o,i,a;return bs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,As(this,Ms).$api.get("".concat(As(this,qs),"/api/flowdir-model?name=")+e);case 3:return n=t.sent,r=n.data.collection,o=void 0===r?[]:r,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=Os(bs().mark((function t(e){var n,r,o,i,a;return bs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,As(this,Ms).$api.get("".concat(As(this,qs),"/api/flowdir-driver?name=")+e);case 3:return n=t.sent,r=n.data.collection,o=void 0===r?[]:r,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 As(this,Ms).$attrs.selections}},{key:"getUrl",value:function(){return As(this,Ms).$attrs.schema.url}},{key:"getValues",value:function(){return As(this,Ms).values}},{key:"getModelValues",value:function(){return As(this,Ms).actionModel}},{key:"getCurrentAction",value:function(){return As(this,Ms).action}}]),t}(),Bs=$s,Vs={name:"workflow-designer",mixins:[ie["a"]],components:{NodeContainer:ms["default"]},setup:function(){ae["a"],ie["a"];var t=new Bs,e=ys["a"].getBusinessAdapter();e.eadApi=t;var n=[],r=Object(Ao["ref"])(null);return{nodeData:n,businessAdapter:e,eadApi:t,oldHandleCommit:r}},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(n){e[n]=Object.fromEntries(t[n])})),e=JSON.parse(JSON.stringify(e));var n=e.node;Object.keys(n).forEach((function(t){var e=n[t];e.data&&e.data.option_forms&&e.data.option_forms.length&&e.data.option_forms.forEach((function(t){delete t.schema}))})),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("系统错误,请联系管理员")}))}},Hs=Vs,Us=Object(Kt["a"])(Hs,hs,vs,!1,null,"7cc8451f",null),Gs=Us.exports,zs=function(){var t,e,n=this,r=this,o=r._self._c;return o("a-form-model",{ref:"form",staticStyle:{"min-height":"400px"},attrs:{model:r.actionModel,rules:r.rules}},[o("a-spin",{attrs:{spinning:r.loading}},[o("a-tabs",{on:{change:function(){return n.$refs.nodeContainer.toMiddle()}},model:{value:r.paneKey,callback:function(t){r.paneKey=t},expression:"paneKey"}},[r.paneSet.has("1")&&this.currentNode?o("a-tab-pane",{key:"1",attrs:{tab:"操作"}},[r.OPERATE.CHECK===r.workflowReq.operate?o("a-radio-group",{staticStyle:{"margin-bottom":"10px"},on:{change:function(t){return r.loadTodo()}},model:{value:r.workflowReq.page_operate.action,callback:function(t){r.$set(r.workflowReq.page_operate,"action",t)},expression:"workflowReq.page_operate.action"}},[o("a-radio-button",{attrs:{value:r.CHECK_ACTION.PASS}},[r._v(" "+r._s(null!==(t=r.currentNode.data.other_options)&&void 0!==t&&null!==(t=t.custom_action)&&void 0!==t&&t.pass?r.currentNode.data.other_options.custom_action.pass:"check"===r.currentNode.type?"审批通过":"执行")+" ")]),r.runtimeData.pageOperate.allowBack?o("a-radio-button",{attrs:{value:r.CHECK_ACTION.BACK}},[r._v(" "+r._s(null!==(e=r.currentNode.data.other_options)&&void 0!==e&&null!==(e=e.custom_action)&&void 0!==e&&e.pass?r.currentNode.data.other_options.custom_action.back:" 审批退回")+" ")]):r._e(),r.runtimeData.pageOperate.allowReassign?o("a-radio-button",{attrs:{value:r.CHECK_ACTION.REASSIGN}},[r._v(" 转办 ")]):r._e(),r.runtimeData.pageOperate.allowInvolve?o("a-radio-button",{attrs:{value:r.CHECK_ACTION.INVOLVE}},[r._v(" 加签 ")]):r._e(),r.runtimeData.pageOperate.allowEnd?o("a-radio-button",{attrs:{value:r.CHECK_ACTION.END}},[r._v(" 结束 ")]):r._e()],1):r._e(),(r.workflowReq.operate===r.OPERATE.START||r.workflowReq.operate===r.OPERATE.CHECK&&[r.CHECK_ACTION.PASS].includes(r.workflowReq.page_operate.action))&&r.runtimeData.currentNodeFormItem&&r.runtimeData.currentNodeFormItem.length?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[r._l(r.runtimeData.currentNodeFormItem,(function(t){return[t?o("Item",{key:t.name,attrs:{formModel:r.actionModel,params:{},prop:t.name,required:t.required,schema:t},on:{change:function(e){return r.handleItemChange(e,t)}},model:{value:r.actionModel[t.name],callback:function(e){r.$set(r.actionModel,t.name,e)},expression:"actionModel[attr.name]"}}):r._e()]}))],2)],1):r._e(),r.OPERATE.CHECK===r.workflowReq.operate?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-form-model-item",{attrs:{label:[r.CHECK_ACTION.REASSIGN,r.CHECK_ACTION.INVOLVE,r.CHECK_ACTION.END,r.CHECK_ACTION.BACK].includes(r.workflowReq.page_operate.action)||"task"===r.currentNode.type?"备注":"审批意见",prop:"xxx",size:"small"}},[o("a-textarea",{attrs:{"auto-size":{minRows:4,maxRows:6},placeholder:"请输入".concat([r.CHECK_ACTION.REASSIGN,r.CHECK_ACTION.INVOLVE,r.CHECK_ACTION.END].includes(r.workflowReq.page_operate.action)||"task"===r.currentNode.type?"备注":"审批或退回意见")},model:{value:r.workflowReq.page_operate.operate_content,callback:function(t){r.$set(r.workflowReq.page_operate,"operate_content",t)},expression:"workflowReq.page_operate.operate_content"}})],1)],1):r._e(),r.isCustomBack&&r.OPERATE.CHECK===r.workflowReq.operate&&r.workflowReq.page_operate.action===r.CHECK_ACTION.BACK?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-form-model-item",{attrs:{label:"退回步骤",prop:"xxx",size:"small"}},[o("a-select",{model:{value:r.workflowReq.page_operate.custom_back_node_code,callback:function(t){r.$set(r.workflowReq.page_operate,"custom_back_node_code",t)},expression:"workflowReq.page_operate.custom_back_node_code"}},r._l(r.currentNode.data.custom_back_nodes,(function(t){return o("a-select-option",{key:t,attrs:{value:t}},[r._v(" "+r._s(r.nodeHandler.getNode(t).name)+" ")])})),1)],1)],1):r._e(),r.runtimeData.todos&&r.runtimeData.todos.length&&(r.OPERATE.START===r.workflowReq.operate||r.OPERATE.CHECK===r.workflowReq.operate&&(r.workflowReq.page_operate.action===r.CHECK_ACTION.PASS||r.workflowReq.page_operate.action===r.CHECK_ACTION.BACK&&"bpmn"===r.currentNode.data.back_type))?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-card",{attrs:{size:"small",title:"后续步骤"}},[r.runtimeData.todos&&r.runtimeData.todos.length?o("a-tabs",{attrs:{"tab-position":"top"},model:{value:r.currentTodo,callback:function(t){r.currentTodo=t},expression:"currentTodo"}},r._l(r.runtimeData.todos,(function(t){var e,n,i,a,s,c,l,u;return o("a-tab-pane",{key:t.node_code,attrs:{disabled:!r.availableTodo(t),tab:null!==(e=null===(n=r.nodeHandler.getNode(t.node_code))||void 0===n?void 0:n.name)&&void 0!==e?e:"-"}},[r.availableTodo(t)?o("div",{staticClass:"actors"},[o("div",{staticStyle:{width:"60%"}},[o("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(e){return r.filterTodoItemActors(e,t)}}}),o("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":t.actorsf.value,pagination:!1,"row-selection":null!==(i=t.optional)&&void 0!==i&&i.enable?{type:t.optional.multi?"checkbox":"radio",selectedRowKeys:t.selected,onChange:function(e){t.selected=e}}:null,rowKey:"uid",size:"middle"}})],1),o("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{title:(null!==(a={queue:"依次",orsign:"或签",sign:"会签"}[null!==(s=t.optional)&&void 0!==s&&s.enable&&null!==(c=t.optional)&&void 0!==c&&c.multi||(null===(l=t.optional)||void 0===l||!l.enable)&&t.actorsf.value.length>=2?null===t||void 0===t?void 0:t.actor_check_mode:""])&&void 0!==a?a:"")+"执行人列表",size:"small"}},[o("draggable",{attrs:{disabled:!("queue"===(null===t||void 0===t?void 0:t.actor_check_mode)&&null!==(u=t.optional)&&void 0!==u&&u.enable),animation:"100",chosenClass:"chosen"},model:{value:t.selected,callback:function(e){r.$set(t,"selected",e)},expression:"item.selected"}},[o("transition-group",{attrs:{name:"flip-list",type:"transition"}},[t.selected&&null!==t&&void 0!==t&&t.selected.length?r._l(t.selected,(function(t){return o("div",{key:t,staticClass:"item"},[r._v(" "+r._s(r.userCache[t])+" ")])})):r._e()],2)],1)],1)],1):r._e()])})),1):r._e()],1)],1):r._e(),r.OPERATE.CHECK===r.workflowReq.operate&&r.workflowReq.page_operate.action===r.CHECK_ACTION.REASSIGN?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-card",{attrs:{size:"small",title:"转办执行人"}},[o("div",{staticClass:"actors"},[o("div",{staticStyle:{width:"60%"}},[r.runtimeData.reassign.actors?[o("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(t){return r.reassignUserFilter=t}}}),o("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":r.filterActors(r.reassignUserFilter,r.runtimeData.reassign.actors),pagination:!1,"row-selection":{type:"radio",selectedRowKeys:r.runtimeData.reassign.selected,onChange:function(t){r.runtimeData.reassign.selected=t}},rowKey:"uid",size:"middle"}})]:[o("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(){r.reassignUserPagination.current=1,r.handleTableChangeReassignUser(r.reassignUserPagination)}},model:{value:r.reassignUserFilter,callback:function(t){r.reassignUserFilter=t},expression:"reassignUserFilter"}}),o("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":r.reassignUserData,loading:r.loadingReassignUser,pagination:r.reassignUserPagination,"row-key":function(t){return t.uid},"row-selection":{type:"radio",selectedRowKeys:r.runtimeData.reassign.selected,onChange:function(t){n.reassignUserData.filter((function(e){return t.includes(e.uid)})).forEach((function(t){return r.userCache[t.uid]="".concat(t.name,"(").concat(t.org_name,")")})),r.runtimeData.reassign.selected=t}}},on:{change:r.handleTableChangeReassignUser}})]],2),o("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{size:"small",title:"转办人"}},[o("draggable",{attrs:{disabled:!0,chosenClass:"chosen"},model:{value:r.runtimeData.reassign.selected,callback:function(t){r.$set(r.runtimeData.reassign,"selected",t)},expression:"runtimeData.reassign.selected"}},[o("transition-group",r._l(r.runtimeData.reassign.selected,(function(t){return o("div",{key:t,staticClass:"item"},[r._v(" "+r._s(r.userCache[t])+" ")])})),0)],1)],1)],1)])],1):r._e(),r.OPERATE.CHECK===r.workflowReq.operate&&r.workflowReq.page_operate.action===r.CHECK_ACTION.INVOLVE?o("div",{staticStyle:{"margin-bottom":"5px"}},[o("a-card",{attrs:{size:"small",title:"加签执行人"}},[o("div",{staticClass:"actors"},[o("div",{staticStyle:{width:"60%"}},[r.runtimeData.involve.actors?[o("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(t){return r.involveUserFilter=t}}}),o("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":r.filterActors(r.involveUserFilter,r.runtimeData.involve.actors),pagination:!1,"row-selection":{type:"radio",selectedRowKeys:r.runtimeData.involve.selected,onChange:function(t){r.runtimeData.involve.selected=t}},rowKey:"uid",size:"middle"}})]:[o("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(){r.involveUserPagination.current=1,r.handleTableChangeInvolveUser(r.involveUserPagination)}},model:{value:r.involveUserFilter,callback:function(t){r.involveUserFilter=t},expression:"involveUserFilter"}}),o("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":r.involveUserData,loading:r.loadingInvolveUser,pagination:r.involveUserPagination,"row-key":function(t){return t.uid},"row-selection":{type:"radio",selectedRowKeys:r.runtimeData.involve.selected,onChange:function(t){n.involveUserData.filter((function(e){return t.includes(e.uid)})).forEach((function(t){return r.userCache[t.uid]="".concat(t.name,"(").concat(t.org_name,")")})),r.runtimeData.involve.selected=t}}},on:{change:r.handleTableChangeInvolveUser}})]],2),o("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{size:"small",title:"加签人"}},[o("draggable",{attrs:{disabled:!0,chosenClass:"chosen"},model:{value:r.runtimeData.involve.selected,callback:function(t){r.$set(r.runtimeData.involve,"selected",t)},expression:"runtimeData.involve.selected"}},[o("transition-group",r._l(r.runtimeData.involve.selected,(function(t){return o("div",{key:t,staticClass:"item"},[r._v(" "+r._s(r.userCache[t])+" ")])})),0)],1)],1)],1)])],1):r._e()],1):r._e(),r.paneSet.has("2")?o("a-tab-pane",{key:"2",attrs:{"force-render":"",tab:"操作记录"}},[o("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[o("a-list",{attrs:{dataSource:this.runtimeData.logList},scopedSlots:r._u([{key:"renderItem",fn:function(t){return o("a-list-item",{},[o("a-list-item-meta",[o("strong",{attrs:{slot:"title"},slot:"title"},[r._v(" "+r._s(t.node_name)+" "),o("a-button",{directives:[{name:"show",rawName:"v-show",value:t.operate_data,expression:"item.operate_data"}],attrs:{icon:"read",type:"link"},on:{click:function(e){return r.showOperateData(t)}}})],1),r.$store.state.app.icon?o("a-avatar",{attrs:{slot:"avatar",src:r.$store.state.app.icon},slot:"avatar"}):o("a-avatar",{attrs:{slot:"avatar",icon:"user"},slot:"avatar"}),o("a-space",{attrs:{slot:"description",direction:"vertical"},slot:"description"},[o("div",[r._v(r._s(t.operate_desc))]),t.operate_content?o("div",[[r.CHECK_ACTION.REASSIGN,r.CHECK_ACTION.INVOLVE,r.CHECK_ACTION.END,r.CHECK_ACTION.EXECUTE].includes(t.operate)?o("div",[r._v(" 备注:"+r._s(t.operate_content)+" ")]):o("div",[r._v(" 审批意见:"+r._s(t.operate_content)+" ")])]):r._e(),o("a-space",[o("span",{staticStyle:{color:"#18274a"}},[o("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"clock-circle-o"}}),r._v(" "+r._s(r.moment(t.create_time).format("YYYY-MM-DD HH:mm"))+" ")],1),o("a-divider",{attrs:{type:"vertical"}}),o("span",{staticStyle:{color:"#18274a"}},[o("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"user"}}),r._v(" "+r._s(t.operator.name)+"("+r._s(t.operator.org_name)+") ")],1)],1)],1)],1)],1)}}],null,!1,542072683)})],1)],1):r._e(),r.paneSet.has("3")?o("a-tab-pane",{key:"3",attrs:{tab:"流程图"}},[o("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[o("div",{staticStyle:{position:"absolute","z-index":"999"}},[o("a-button",{directives:[{name:"show",rawName:"v-show",value:!r.fullscreenLoading,expression:"!fullscreenLoading"}],attrs:{icon:"arrows-alt",type:"link"},on:{click:r.showFullScreenFlow}}),o("a-icon",{directives:[{name:"show",rawName:"v-show",value:r.fullscreenLoading,expression:"fullscreenLoading"}],attrs:{type:"loading-3-quarters"}})],1),r.initNodeContainer?o("NodeContainer",{ref:"nodeContainer",staticStyle:{"max-height":"350px"},attrs:{"business-adapter":r.businessAdapter,"default-zoom-scale":70,"hide-zoom":!0,"is-preview":!0,"node-data":r.nodeData,"runtime-data":r.runtimeData},on:{nodeHandlerReady:r.nodeHandlerReady,nodeHandlerChange:r.nodeHandlerChange}}):r._e()],1)],1):r._e()],1)],1),o("a-modal",{attrs:{title:"操作表单",visible:r.isShowOperateData,footer:null,width:"50%"},on:{cancel:r.hideOperateData}},[o("a-descriptions",{attrs:{bordered:"",column:{xxl:2,xl:2,lg:2,md:2,sm:2,xs:1}}},r._l(r.operateDataItems,(function(t){return o("a-descriptions-item",{key:t.id,attrs:{label:t.alias}},[r._v(" "+r._s(r.formatter(t,t.value,t))+" ")])})),1)],1),o("a-modal",{staticClass:"jjh-fullscreen",attrs:{bodyStyle:{height:"85vh","overflow-y":"scroll","padding-bottom":"0"},destroyOnClose:!0,"dialog-style":{top:"0px"},visible:r.fullscreen,title:"流程图",width:"100%"},on:{cancel:r.hideFullScreenFlow}},[r.initNodeContainer?o("NodeContainer",{ref:"nodeContainer1",attrs:{"business-adapter":r.businessAdapter,"is-preview":!0,"node-data":r.nodeData,"runtime-data":r.runtimeData}}):r._e(),o("template",{slot:"footer"},[o("a-button",{key:"back",on:{click:r.hideFullScreenFlow}},[r._v("关闭")])],1)],2)],1)},Ks=[],Ys=n("289a"),Ws=n.n(Ys);function Js(t){return Js="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},Js(t)}function Zs(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=ec(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},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(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Xs(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Xs=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Js(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Js(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Qs(t){return rc(t)||nc(t)||ec(t)||tc()}function tc(){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 ec(t,e){if(t){if("string"===typeof t)return oc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oc(t,e):void 0}}function nc(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function rc(t){if(Array.isArray(t))return oc(t)}function oc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ic(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ac(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ic(Object(n),!0).forEach((function(e){sc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ic(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function sc(t,e,n){return e=cc(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cc(t){var e=lc(t,"string");return"symbol"==Js(e)?e:String(e)}function lc(t,e){if("object"!=Js(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Js(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function uc(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function fc(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){uc(i,r,o,a,s,"next",t)}function s(t){uc(i,r,o,a,s,"throw",t)}a(void 0)}))}}var dc={START:"start",CHECK:"check",QUERY:"query"},pc={PREVIEW:"preview",CONFIRM:"confirm"},hc={PASS:"pass",BACK:"back",REASSIGN:"reassign",INVOLVE:"involve",END:"end",EXECUTE:"execute"},vc={name:"runtime-workflow",mixins:[ie["a"],Pt["a"]],components:{NodeContainer:ms["default"],Item:ae["a"],draggable:Ws.a},data:function(){return{OPERATE:dc,OPERATE_MODE:pc,CHECK_ACTION:hc,nodeHandler:null,loading:!0,paneSet:new Set,initNodeContainer:!1,fullscreen:!1,fullscreenLoading:!1,isShowOperateData:!1,operateDataItems:[],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",operate_data_id:""},"审批人":{status:"ongoing",operate_data_id:""},"抄送人":{status:"finish",operate_data_id:""}},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:{},formAttrs:[],activityColumns:[]}},setup:function(t){var e=t.columns,n=new Bs,r=ys["a"].getBusinessAdapter(),o={operate_mode:pc.PREVIEW,operate:dc.QUERY,page_operate:{action:hc.PASS,operate_content:"",custom_back_node_code:void 0,todos:void 0,involve:void 0,reassign:void 0,form_data:{}},model_id:null,data_id:null};return{columnsRef:Object(Ao["ref"])(e),workflowReq:Object(Ao["ref"])(o),eadApi:n,businessAdapter:r}},created:function(){},mounted:function(){var t=this;return fc(Xs().mark((function e(){var n,r,o,i,a,s,c,l,u,f,d,p,h;return Xs().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 ac({},t)})),t.eadApi.setComponent(t),t.businessAdapter.eadApi=t.eadApi,t.workflowReq.operate=null!==(n=dc[t.configs["workflow.operate"].toUpperCase()])&&void 0!==n?n:t.workflowReq.operate,t.workflowReq.data_id=t.eadApi.getModelValues()[t.eadApi.getModelIdName()],t.workflowReq.model_id=t.configs["workflow.id"],t.eadApi.getModelValues().workflow_req=t.workflowReq,e.next=10,t.eadApi.runCurrentAction();case 10:if(c=e.sent,c){e.next=15;break}return t.loading=!1,t.$emit("close"),e.abrupt("return");case 15:Object.keys(t.actionModel).forEach((function(e){Object.keys(c.data).includes(e)&&(t.actionModel[e]=c.data[e])})),t.workflow=null===c||void 0===c||null===(r=c.data)||void 0===r?void 0:r.workflow,l=null===c||void 0===c||null===(o=c.data)||void 0===o||null===(o=o.workflow)||void 0===o?void 0:o.runtime_data,l&&Object.keys(l).length&&(t.runtimeData=l),t.runtimeData.logList||(t.runtimeData.logList=[]),t.runtimeData.todos&&t.runtimeData.todos.forEach((function(t){(!t.optional||t.optional&&!t.optional.enable)&&(t.selected&&t.selected.length||(t.selected=t.actors.map((function(t){return t.uid})))),t.optional&&t.optional.enable&&!t.optional.multi&&(t.selected&&t.selected.length||(t.selected=[t.actors[0].uid]))})),t.runtimeData.actorLogs||(t.runtimeData.actorLogs={}),t.runtimeData.caseNodes&&t.runtimeData.caseNodes.length&&(u={},t.runtimeData.caseNodes.forEach((function(t){u[t.node_code]=ac({},t)})),t.runtimeData.caseNodes=u),t.runtimeData.todos&&t.runtimeData.todos.forEach((function(t){t.actorfilter||(t.actorfilter=""),t.actorsf=Object(Ao["ref"])(Qs(t.actors))})),f=[],null!==(i=t.runtimeData)&&void 0!==i&&null!==(i=i.involve)&&void 0!==i&&i.actors&&f.push.apply(f,Qs(t.runtimeData.involve.actors)),null!==(a=t.runtimeData)&&void 0!==a&&null!==(a=a.reassign)&&void 0!==a&&a.actors&&f.push.apply(f,Qs(t.runtimeData.reassign.actors)),t.runtimeData.todos&&t.runtimeData.todos.forEach((function(t){f.push.apply(f,Qs(t.actors))})),f.forEach((function(e){t.userCache[e.uid]="".concat(e.name,"(").concat(e.org_name,")")})),d=null===c||void 0===c||null===(s=c.data)||void 0===s||null===(s=s.workflow)||void 0===s?void 0:s.node_json,p=d?null===d||void 0===d?void 0:d.node:null,t.nodeData=p?Qs(Object.values(p)):[],h=t.paneSet,[dc.START,dc.CHECK].includes(t.workflowReq.operate)&&h.add("1"),h.add("2"),h.add("3"),t.initNodeContainer=!0,t.$nextTick((function(){t.paneKey=Qs(h.values())[0]})),t.validExpression(),t.loadTodo(),t.actionModel.workflow_req=t.workflowReq,t.actionModel.workflow=t.workflow,t.loading=!1,t.workflowReq.operate===dc.CHECK&&(t.fetchInvolveUser(),t.fetchReassignUser());case 44: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=ac({},this.reassignUserPagination);e.current=t.current,this.reassignUserPagination=e,this.fetchReassignUser({userName:this.reassignUserFilter,pagination:{pageSize:t.pageSize,current:t.current}})},showOperateData:function(t){var e=this;return fc(Xs().mark((function n(){var r,o,i;return Xs().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=e.columns,!t.option_view_id){n.next=6;break}return n.next=4,e.eadApi.getViewSchema(t.option_view_id);case 4:o=n.sent,r=null===o||void 0===o?void 0:o.model.attrs;case 6:i=JSON.parse(t.operate_data),e.operateDataItems=[],r.forEach((function(t){if(t.name in i){var n=ac({},t);n.value=i[t.name],e.operateDataItems.push(n)}})),e.isShowOperateData=!0;case 10:case"end":return n.stop()}}),n)})))()},hideOperateData:function(){this.isShowOperateData=!1},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 n=ac({},t.reassignUserPagination);n.total=e.count,t.loadingReassignUser=!1,t.reassignUserData=e.results,t.reassignUserPagination=n}))},handleTableChangeInvolveUser:function(t){var e=ac({},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 n=ac({},t.involveUserPagination);n.total=e.count,t.loadingInvolveUser=!1,t.involveUserData=e.results,t.involveUserPagination=n}))},getAllUsers:function(t,e){var n=this;return fc(Xs().mark((function r(){var o,i;return Xs().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,n.eadApi.getDatasetApi("flowdir-allusercount",{user_name:t});case 2:return o=r.sent,r.next=5,n.eadApi.getDatasetApi("flowdir-alluser",{user_name:t,limit_index:(e.current-1)*e.pageSize,limit_num:e.pageSize});case 5:return i=r.sent,r.abrupt("return",{count:o[0].count,results:i});case 7:case"end":return r.stop()}}),r)})))()},handleCommit:function(){var t=this,e=!1;if(this.workflowReq.operate_mode=pc.CONFIRM,this.workflowReq.operate===dc.START){var n;if(null!==(n=this.runtimeData.todos)&&void 0!==n&&n.length){var r=this.getAvailableTodos(),o=this.nodeHandler.getAllRoute(this.currentNode.code).find((function(t){return"end"===t.type}));if(!r.length&&!o)return void this.$message.error("无法匹配到符合条件的后续步骤");this.workflowReq.page_operate.todos=r}var i=this.nodeHandler.map(),a={};Object.keys(i).forEach((function(t){a[t]=Object.fromEntries(i[t])})),this.workflowReq.node_json=a}if(this.workflowReq.operate===dc.CHECK){var s,c;if(this.workflowReq.page_operate.action===hc.BACK)if("bpmn"===this.currentNode.data.back_type&&(e=!0),null!==(s=this.runtimeData.todos)&&void 0!==s&&s.length){var l=this.getAvailableTodos(),u=this.nodeHandler.getAllRoute(this.currentNode.code).find((function(t){return"end"===t.type}));if(!l.length&&!u)return void this.$message.error("无法匹配到符合条件的后续步骤");this.workflowReq.page_operate.todos=l}if(this.workflowReq.page_operate.action===hc.PASS)if(null!==(c=this.runtimeData.todos)&&void 0!==c&&c.length){var f=this.getAvailableTodos(),d=this.nodeHandler.getAllRoute(this.currentNode.code).find((function(t){return"end"===t.type}));if(!f.length&&!d)return void this.$message.error("无法匹配到符合条件的后续步骤");this.workflowReq.page_operate.todos=f}if(this.workflowReq.page_operate.action===hc.INVOLVE){var p;if(null===(p=this.runtimeData.involve)||void 0===p||null===(p=p.selected)||void 0===p||!p.length)return void this.$message.error("请选择加签人");this.workflowReq.page_operate.involve=this.runtimeData.involve}if(this.workflowReq.page_operate.action===hc.REASSIGN){var h;if(null===(h=this.runtimeData.reassign)||void 0===h||null===(h=h.selected)||void 0===h||!h.length)return void this.$message.error("请选择转办人");this.workflowReq.page_operate.reassign=this.runtimeData.reassign}}if(this.currentNode.data.other_options.assert&&this.currentNode.data.other_options.assert.length){var v,m=this.currentNode.data.other_options.assert.filter((function(e){return"all"===e.action||e.action===t.workflowReq.page_operate.action})).filter((function(t){return t.expression&&t.message})),y=Zs(m);try{var g,b=function(){var e=v.value;try{var n={};t.activityColumns.forEach((function(e){return n[e]=t.actionModel[e]}));var r=new Function(Object.keys(n),"return "+e.expression),o=r.apply(void 0,Qs(Object.values(n)));if(!o)return t.$message.error(e.message),{v:void 0}}catch(i){return t.$message.error("断言表达式配置错误,"+e.message),{v:void 0}}};for(y.s();!(v=y.n()).done;)if(g=b(),g)return g.v}catch(_){y.e(_)}finally{y.f()}}this.runtimeData.currentNodeFormItem&&this.runtimeData.currentNodeFormItem.forEach((function(e){t.workflowReq.page_operate.form_data[e.name]=t.actionModel[e.name]})),this.actionModel.workflow=this.workflow,this.actionModel.workflow_req=this.workflowReq;var w=ac({},this.actionModel);w.workflow_req=ac({},this.workflowReq),w.workflow_req.page_operate=ac({},this.workflowReq.page_operate),e&&(w.workflow_req.page_operate.action="BPMN_BACK"),this.$emit("commit",w)},nodeHandlerReady:function(t){var e=this;return fc(Xs().mark((function n(){var r,o,i,a,s,c;return Xs().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.nodeHandler=t,i=e.currentNode=t.getNode(e.runtimeData.currentNodeCode),!e.runtimeData.PageOperate&&null!==i&&void 0!==i&&null!==(r=i.data)&&void 0!==r&&r.page_options&&(e.runtimeData.PageOperate=i.data.page_options),a=e.columns,!i||!i.data.option_view_id){n.next=9;break}return n.next=7,e.eadApi.getViewSchema(i.data.option_view_id);case 7:s=n.sent,a=null===s||void 0===s?void 0:s.model.attrs;case 9:c=null!==(o=e.runtimeData.currentNodeOptionForms)&&void 0!==o?o:null===i||void 0===i?void 0:i.data.option_forms,e.runtimeData.currentNodeFormItem=c.filter((function(t){return"none"!==t.access})).map((function(t){var n=a.find((function(e){return e.name===t.attrCode}));return n&&(n.params||(n.params={}),n.params.readonly="readonly"===t.access,n.required=t.required,i&&i.data.option_view_id&&(e.actionModel[n.name]=null)),n})).filter((function(t){return t})),e.isCustomBack="custom"===(null===i||void 0===i?void 0:i.data.back_type),e.isCustomBack&&(e.runtimeData.customBackNodes||(e.runtimeData.customBackNodes=Qs(null===i||void 0===i?void 0:i.data.custom_back_nodes)),e.workflowReq.page_operate.custom_back_node_code=e.runtimeData.customBackNodes[0]);case 13:case"end":return n.stop()}}),n)})))()},nodeHandlerChange:function(t){var e=this;return fc(Xs().mark((function n(){var r,o,i,a,s,c,l,u,f;return Xs().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(s=t.map(),s.node.size!==Object.keys(e.workflow.node_json.node).length){n.next=3;break}return n.abrupt("return");case 3:return c={},Object.keys(s).forEach((function(t){c[t]=Object.fromEntries(s[t])})),e.workflowReq.node_json=c,e.eadApi.getModelValues().workflow_req=e.workflowReq,n.next=9,e.eadApi.runCurrentAction();case 9:if(l=n.sent,l){n.next=14;break}return e.loading=!1,e.$emit("close"),n.abrupt("return");case 14:e.workflow=null===l||void 0===l||null===(r=l.data)||void 0===r?void 0:r.workflow,u=null===l||void 0===l||null===(o=l.data)||void 0===o||null===(o=o.workflow)||void 0===o?void 0:o.runtime_data,u&&Object.keys(u).length&&(e.runtimeData=u),e.runtimeData.todos&&e.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]))})),e.runtimeData.todos&&e.runtimeData.todos.forEach((function(t){t.actorfilter||(t.actorfilter=""),t.actorsf=Object(Ao["ref"])(Qs(t.actors))})),f=[],null!==(i=e.runtimeData)&&void 0!==i&&null!==(i=i.involve)&&void 0!==i&&i.actors&&f.push.apply(f,Qs(e.runtimeData.involve.actors)),null!==(a=e.runtimeData)&&void 0!==a&&null!==(a=a.reassign)&&void 0!==a&&a.actors&&f.push.apply(f,Qs(e.runtimeData.reassign.actors)),e.runtimeData.todos&&e.runtimeData.todos.forEach((function(t){f.push.apply(f,Qs(t.actors))})),e.userCache={},f.forEach((function(t){e.userCache[t.uid]="".concat(t.name,"(").concat(t.org_name,")")})),e.currentTodo=null,e.validExpression(),e.loadTodo();case 28:case"end":return n.stop()}}),n)})))()},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 n=this;return fc(Xs().mark((function r(){return Xs().wrap((function(r){while(1)switch(r.prev=r.next){case 0:n.setModel(t,e.name),n.loadTodo();case 2:case"end":return r.stop()}}),r)})))()},validExpression:function(){var t,e=Zs(this.runtimeData.todos);try{for(e.s();!(t=e.n()).done;){var n=t.value;if(this.availableTodo(n),this.expressionError)return!1}}catch(r){e.e(r)}finally{e.f()}return!0},getAvailableTodos:function(){var t,e=[],n=Zs(this.runtimeData.todos);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.availableTodo(r)&&e.push({node_id:r.node_id,node_code:r.node_code,selected:r.selected})}}catch(o){n.e(o)}finally{n.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,n=Zs(this.runtimeData.todos);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(this.availableTodo(r))return void(this.currentTodo=r.node_code)}}catch(o){n.e(o)}finally{n.f()}}},availableTodo:function(t){var e=this;if(this.expressionError)return!1;var n=null===t||void 0===t?void 0:t.condition;if(!n)return!0;try{var r={};this.activityColumns.forEach((function(t){return r[t]=e.actionModel[t]}));var o=new Function(Object.keys(r),"return "+n),i=o.apply(void 0,Qs(Object.values(r)));return t.available=i,i}catch(a){this.expressionError=!0,this.$message.error("[".concat(t.node_code,"]表达式执行错误,请联系系统管理员!表达式:").concat(n))}return!1}}},mc=vc,yc=(n("2ff4"),Object(Kt["a"])(mc,zs,Ks,!1,null,"71490f40",null)),gc=yc.exports,bc=(n("1f51"),{NormalForm:oo,UploadForm:vo,PickerViewForm:No,AlgorithmForm:pa,PickerTransferForm:Ra,PickerTreeForm:Wa,WorkflowReport:ps,WorkflowDesigner:Gs,RuntimeWorkflow:gc});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 _c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_c(Object(n),!0).forEach((function(e){kc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function kc(t,e,n){return e=Oc(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Oc(t){var e=Sc(t,"string");return"symbol"==wc(e)?e:String(e)}function Sc(t,e){if("object"!=wc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=wc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ec={mixins:[i,a,Xr],components:xc({},bc)},jc=Ec,Nc=Object(Kt["a"])(jc,Wr,Jr,!1,null,null,null),Lc=Nc.exports,Pc=e["a"]={ModelList:en,ModelProfile:Yr,ModelForm:Lc}},c32d:function(t,e){t.exports=l},c4a3:function(t,e,n){(function(e,r,o){t.exports=r(n("bf17"),n("023d"))})(0,(function(t){return t.pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,r=4*e,o=r-n%r,i=n+o-1;t.clamp(),t.words[i>>>2]|=o<<24-i%4*8,t.sigBytes+=o},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923}))},c6e8:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("9f89");function o(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/\${([\s\S]+?)}/g;return r(t,{reInterpolate:n})(e)}},c75f:function(t,e,n){"use strict";n("214e")},cb5c:function(t,e,n){},cb66:function(t,e,n){},ce44:function(t,e,n){"use strict";(function(t){
28
28
  /*!
29
29
  * The buffer module from node.js, for the browser.
30
30
  *