@xatlas/rainbow-core 2.5.5 → 2.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.common.js +41 -25
- package/dist/core.common.js.map +1 -1
- package/dist/core.umd.js +41 -25
- package/dist/core.umd.js.map +1 -1
- package/dist/core.umd.min.js +2 -2
- package/dist/core.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/core.umd.min.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
return t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function n(t){if(255===(t>>24&255)){var e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}function r(t){return 0===(t[0]=n(t[0]))&&(t[1]=n(t[1])),t}var o=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,o=n.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0),r(a);var s=a.slice(0);n.encryptBlock(s,0);for(var c=0;c<o;c++)t[e+c]^=s[c]}});return e.Decryptor=o,e}(),t.mode.CTRGladman}))},"101a":function(t,e,n){(function(e,r){t.exports=r(n("bf17"))})(0,(function(t){return function(){if("function"==typeof ArrayBuffer){var e=t,n=e.lib,r=n.WordArray,o=r.init,i=r.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,n=[],r=0;r<e;r++)n[r>>>2]|=t[r]<<24-r%4*8;o.call(this,n,e)}else o.apply(this,arguments)};i.prototype=r}}(),t.lib.WordArray}))},"13e9":function(t,e,n){"use strict";n("784f")},1536:function(t,e,n){"use strict";var r=n("7d16");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 i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(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,l(r.key),r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t,e,n){return e=l(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=u(t,"string");return"symbol"==o(e)?e:String(e)}function u(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)}var f=function(){function t(e,n,r,o,a,s,l){i(this,t),c(this,"name",void 0),c(this,"code",void 0),c(this,"content",void 0),c(this,"type",void 0),c(this,"data",void 0),c(this,"nextNodeCode",void 0),c(this,"childNodeCodes",void 0),c(this,"error",void 0),this.name=e,this.code=n,this.content=r,this.type=o,this.data=a,this.nextNodeCode=s,this.childNodeCodes=l}return s(t,[{key:"isBranchNode",value:function(){return[r["a"].JUDGE,r["a"].PARALLEL].includes(this.type)}},{key:"isHeadNode",value:function(){return[r["a"].START,r["a"].JUDGE,r["a"].PARALLEL].includes(this.type)}},{key:"isFootNode",value:function(){return this.type===r["a"].END||!this.nextNodeCode}},{key:"isWrapNode",value:function(){return[r["a"].PARALLEL_WRAP,r["a"].JUDGE_WRAP].includes(this.type)}}],[{key:"parse",value:function(e){return(null===e||void 0===e?void 0:e.constructor)===t?e:new t(e.name,e.code,e.content,e.type,e.data,e.nextNodeCode,e.childNodeCodes)}}]),t}();e["a"]=f},"15a5":function(t,e){
|
|
8
8
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
9
|
-
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=n?-1:1,p=t[e+f];for(f+=d,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+t[e+f],f+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+t[e+f],f+=d,u-=8);if(0===i)i=1-l;else{if(i===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=l}return(p?-1:1)*a*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var a,s,c,l=8*i-o-1,u=(1<<l)-1,f=u>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),e+=a+f>=1?d/c:d*Math.pow(2,1-f),e*c>=2&&(a++,c/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(e*c-1)*Math.pow(2,o),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[n+p]=255&s,p+=h,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;t[n+p]=255&a,p+=h,a/=256,l-=8);t[n+p-h]|=128*v}},"16ab":function(t,e,n){},1881:function(t,e,n){},"1aba":function(t,e,n){"use strict";if(n.r(e),n.d(e,"App",(function(){return Mt})),n.d(e,"createStore",(function(){return ne})),n.d(e,"create",(function(){return $["a"]})),n.d(e,"template",(function(){return re["a"]})),n.d(e,"WebRouters",(function(){return ae})),n.d(e,"WebViews",(function(){return B["a"]})),n.d(e,"Descriptions",(function(){return se["a"]})),n.d(e,"Frame",(function(){return rt["a"]})),n.d(e,"Clipboard",(function(){return pe})),n.d(e,"Collection",(function(){return Ie})),n.d(e,"FormItem",(function(){return Me["a"]})),n.d(e,"FormBase",(function(){return qe["a"]})),n.d(e,"encrypt",(function(){return Be})),"undefined"!==typeof window){var r=window.document.currentScript,o=n("dc36");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}var a=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.$store.state.loading}},[e("Router",{on:{routed:function(e){t.spinning=!1}}})],1)},s=[],c=function(){var t=this,e=t._self._c;return e("router-view")},l=[],u=n("5880"),f=n.n(u),d=n("f9a7");function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function h(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h=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 b?e:b,a=Object.create(i.prototype),s=new A(r||[]);return o(a,"_invoke",{value:N(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",v="suspendedYield",m="executing",y="completed",g={};function b(){}function w(){}function _(){}var x={};l(x,a,(function(){return this}));var k=Object.getPrototypeOf,O=k&&k(k(T([])));O&&O!==n&&r.call(O,a)&&(x=O);var E=_.prototype=b.prototype=Object.create(x);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function 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"==p(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 N(e,n,r){var o=d;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===d)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var l=f(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=f(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(p(e)+" is not iterable")}return w.prototype=_,o(E,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:w,configurable:!0}),w.displayName=l(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(j.prototype),l(j.prototype,s,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new j(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,c,"Generator"),l(E,a,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),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 v(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 m(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){v(i,r,o,a,s,"next",t)}function s(t){v(i,r,o,a,s,"throw",t)}a(void 0)}))}}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 g(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){b(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 b(t,e,n){return e=w(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t){var e=_(t,"string");return"symbol"==p(e)?e:String(e)}function _(t,e){if("object"!=p(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var x=["loading","schema","status","message","single"],k=["loadSchema"],O=["views"],E=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(u["createNamespacedHelpers"])(t),r=n.mapState,o=n.mapActions,i=n.mapMutations,a=n.mapGetters;return{data:function(){return{storeNamespace:t}},computed:g(g({},r(x)),a(O)),methods:g(g({},o(k)),i(["setStatus"])),beforeCreate:function(){this.$store.hasModule(t)||Object(d["a"])(this.$store,t,e)},created:function(){var t=this;return m(h().mark((function e(){return h().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.t0=!t.schema,!e.t0){e.next=4;break}return e.next=4,t.loadSchema();case 4:t.status>399&&t.message&&(t.$message.error(t.message),t.setStatus({status:0,message:""}));case 5:case"end":return e.stop()}}),e)})))()},watch:{status:function(t){401===t&&(this.$router.push("/sign-in"),window.location.reload())}}}},S=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{extends:t,mixins:[E("p-".concat(e),n)]}}},j=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.loading,delay:50}},[e("layout-page-".concat(t.layout),{tag:"component",scopedSlots:t._u([t._l(t.slots,(function(n){return{key:n,fn:function(){return[e("views",{key:"slot-".concat(n),attrs:{views:t.slotViews(n),modelViewType:t.modelViewType}})]},proxy:!0}}))],null,!0)})],1)},N=[];function L(t){return T(t)||A(t)||C(t)||P()}function P(){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 C(t,e){if(t){if("string"===typeof t)return R(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)?R(t,e):void 0}}function A(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function T(t){if(Array.isArray(t))return R(t)}function R(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 D={props:{pageKey:{type:String,required:!0},layout:{type:String,default:"base"},modelViewType:{type:String}},provide:function(){return{page:this,view:null}},computed:{slots:function(){var t=["default","header","footer","sider","left","right"],e=this.$theme.layouts.page["".concat(this.layout.replace(/^\S/,(function(t){return t.toUpperCase()})),"Layout")].slots;return e&&Array.from(new Set([].concat(L(e),t)))||[]}},methods:{slotViews:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return this.views.filter((function(e){return e.slot===t||"default"===t&&!e.slot}))}},activated:function(){},deactivated:function(){}},I=function(){var t=this,e=t._self._c;return e("a-row",t._l(t.views,(function(n){return e("a-col",{key:n.key,attrs:{span:n.span||24}},[e("layout-view-".concat(n.layout||t.viewLayout),{tag:"component",attrs:{view:n}},[e("ViewBox",t._b({attrs:{view:n}},"ViewBox",t.$attrs,!1))],1)],1)})),1)},M=[],q=function(){var t=this,e=t._self._c;return e("keep-alive",[e(t.createView(),t._b({tag:"component",attrs:{pageKey:t.page.pageKey,viewKey:t.view.key,mode:"page",layout:"layout-view-model-list"}},"component",t.view,!1))],1)},F=[],$=n("0959"),B=n("c246"),V={props:{view:{type:Object},modelViewType:{type:String}},inject:["page"],computed:{namespace:function(){return"v-".concat(this.page.pageKey)}},methods:{createView:function(){return{extends:Object($["a"])(B["a"]["Model".concat(this.modelViewType)])(this.namespace)}}}},H=V,U=n("a6c2"),G=Object(U["a"])(H,q,F,!1,null,null,null),z=G.exports,K={components:{ViewBox:z},props:{views:{type:[Array]},viewLayout:{type:String,default:"blank"}}},Y=K,W=Object(U["a"])(Y,I,M,!1,null,null,null),J=W.exports,Z={mixins:[D],components:{Views:J}},X=Z,Q=Object(U["a"])(X,j,N,!1,null,null,null),tt=Q.exports,et=function(){var t=this,e=t._self._c;return e("layout-page-".concat(t.layout),{tag:"component"},[e("Frame",{attrs:{url:"".concat(t.url),height:t.height}})],1)},nt=[],rt=n("f765"),ot={mixins:[D],components:{Frame:rt["a"]},props:{url:String,height:String},data:function(){return{loading:!0}}},it=ot,at=Object(U["a"])(it,et,nt,!1,null,null,null),st=at.exports,ct=function(){var t=this,e=t._self._c;return e("keep-alive",[e("router-view")],1)},lt=[],ut={},ft=Object(U["a"])(ut,ct,lt,!1,null,null,null),dt=ft.exports;function pt(t){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pt(t)}function ht(t){return gt(t)||yt(t)||mt(t)||vt()}function vt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function mt(t,e){if(t){if("string"===typeof t)return bt(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)?bt(t,e):void 0}}function yt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function gt(t){if(Array.isArray(t))return bt(t)}function bt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function wt(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 _t(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wt(Object(n),!0).forEach((function(e){xt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xt(t,e,n){return e=kt(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kt(t){var e=Ot(t,"string");return"symbol"==pt(e)?e:String(e)}function Ot(t,e){if("object"!=pt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=pt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(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:S(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 E(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"==pt(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 S(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(pt(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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 St(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 jt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){St(i,r,o,a,s,"next",t)}function s(t){St(i,r,o,a,s,"throw",t)}a(void 0)}))}}var Nt=S(tt),Lt=["catalog-tab","catalog"],Pt={data:function(){return{messageTimer:0}},created:function(){var t=this;return jt(Et().mark((function e(){return Et().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.$router.addRoutes([{path:"/sign-in",component:t.$theme.pages.Signin,props:{layout:"wall"}}]),e.next=3,t.$store.dispatch("loadResources");case 3:"poll"===t.$store.state.config.message.type&&"1"===t.$store.state.app.remind&&t.startMessage();case 4:case"end":return e.stop()}}),e)})))()},computed:_t(_t({},Object(u["mapState"])(["status","resources"])),{},{routes:function(){return this.resources.length?[{path:"/",redirect:"/"+this.resources[0].key,children:this.resToRoute(ht(this.resources)),component:this.$theme.layouts.router.Sidebar}]:[]}}),methods:{addRoutes:function(){this.$router.addRoutes(this.routes),this.$emit("routed")},resToRoute:function(t){var e=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.$theme.layouts.router.Tabs;return t.map((function(t){var o,i="".concat(n,"/").concat(t.key),a=t.key,s={},c=null;switch(t.type){case"catalog-tab":o=r,s.resources=t.childs,s.parentPath=i;break;case"component":o=e.$theme.pages[t.key.replace(/^\S/,(function(t){return t.toUpperCase()}))],s.pageKey=t.url;break;case"iframe":if(o=st,s.pageKey=t.url,s.url=t.url,t.url&&t.url.split("?")[1]){var l=t.url.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;l&&(s.height=l.split("=")[1])}break;case"view":o=dt,s.pageKey=t.url;break;case"link":o={template:"<span></span>",activated:function(){this.$router.back()}};break;default:o=dt;break}return"view"===t.type&&"standard"===t.viewType&&(c=[{path:"",component:{extends:Nt(t.url,!0)},props:{modelViewType:"profile"===t.catalogType?"Profile":"List",pageKey:t.url},meta:{name:t.name,key:i}},{path:":id",component:{extends:Nt(t.url,!0)},props:function(){return{modelViewType:"Profile",pageKey:t.url}},meta:{name:t.name,key:i}}]),!c&&t.childs&&(c=e.resToRoute(t.childs,t,"".concat(n,"/").concat(a))),{name:c?null:t.url,path:a,redirect:Lt.includes(t.type)&&t.childs&&t.childs.length?"".concat(n,"/").concat(a,"/").concat(t.childs[0].key):null,children:c,component:o,props:s,meta:{name:"list"===t.type?null:t.name,key:i}}}))},modelPageRoute:function(){},startMessage:function(){var t=this;return jt(Et().mark((function e(){return Et().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("loadMessages");case 2:t.messageTimer&&clearInterval(t.messageTimer),t.messageTimer=setInterval((function(){t.$store.dispatch("loadMessages")}),1e4);case 4:case"end":return e.stop()}}),e)})))()}},watch:{status:function(t){401===t&&"/sign-in"!==this.$route.path&&this.$router.push("/sign-in")},resources:function(t,e){!e.length&&this.addRoutes()}}},Ct=Pt,At=Object(U["a"])(Ct,c,l,!1,null,null,null),Tt=At.exports,Rt={components:{Router:Tt},created:function(){}},Dt=Rt,It=Object(U["a"])(Dt,a,s,!1,null,null,null),Mt=It.exports,qt=n("8bbf"),Ft=n.n(qt),$t=n("8c7f");n("e39e");function Bt(t){return Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bt(t)}function Vt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Vt=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:S(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 E(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"==Bt(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 S(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(Bt(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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 Ht(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){Ht(i,r,o,a,s,"next",t)}function s(t){Ht(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Gt(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 zt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Gt(Object(n),!0).forEach((function(e){Kt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Kt(t,e,n){return e=Yt(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yt(t){var e=Wt(t,"string");return"symbol"==Bt(e)?e:String(e)}function Wt(t,e){if("object"!=Bt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Bt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Jt=window.Rainbow,Zt=Jt.app,Xt=Zt.csrfToken,Qt=Zt.baseURL,te=!1,ee={};function ne(t){$t["a"].setDefaults({baseURL:Qt!==["/","{app.appKey}"].join("$")?Qt:t,headers:ee}),Ft.a.use($t["a"]),Ft.a.use(f.a);var e=function(){return{resources:[],apps:[],user:{},token:JSON.parse(localStorage.getItem("token")),app:zt({},Jt.app),config:{message:{type:"poll"}},messages:[],historys:[],loading:!1,committing:!1,status:200,message:"",baseURL:$t["a"].instance.defaults.baseURL}};return new f.a.Store({state:e(),strict:te,plugins:[],mutations:{setResources:function(t,e){t.resources=e},setApp:function(t,e){t.app=zt(zt({},t.app),e)},setUser:function(t,e){t.user=e},setToken:function(t,e){t.token=e},setMessages:function(t,e){t.messages=e},readMessages:function(t,e){if(e.length>1)t.messages=[];else if(1===e.length){var n=t.messages.findIndex((function(t){return e[0].message_id===t.message_id}));-1!==n&&t.messages.splice(n,1)}},clear:function(t){t.resources=t.apps=t.messages=[],t.user=null,localStorage.removeItem("signToken"),t.signToken=null},setStatus:function(t,e){var n=e.status,r=e.message;t.status=n,t.message=r},setLoading:function(t,e){t.loading=e},setCommitting:function(t,e){t.committing=e},setHistorys:function(t,e){var n=t.historys.findIndex((function(t){return t.key===e.key}));-1!==n?t.historys[n]=e:t.historys.push(e)},removeHistorys:function(t,e){var n=t.historys.findIndex((function(t){return t.key===e}));return-1!==n&&t.historys.splice(n,1),n}},actions:{loadResources:function(t){return Ut(Vt().mark((function e(){var n,r,o,i,a,s,c;return Vt().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,$t["a"].get("/api");case 5:o=e.sent,i=o.data,a=i.resources,s=i.user,c=i.app,n("setResources",a),n("setApp",c),n("setUser",s),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](2),r("handleError",e.t0);case 18:return e.prev=18,n("setLoading",!1),e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[2,15,18,21]])})))()},loadMessages:function(t){return Ut(Vt().mark((function e(){var n,r,o;return Vt().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,e.prev=1,e.next=4,$t["a"].get("/api/sys-msg?status=unread");case 4:r=e.sent,o=r.data.collection,n("setMessages",o),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](1);case 11:case"end":return e.stop()}}),e,null,[[1,9]])})))()},readMessages:function(t,e){return Ut(Vt().mark((function n(){var r;return Vt().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,n.next=3,$t["a"].post("/api/sys-msg/read",e);case 3:r("readMessages",e);case 4:case"end":return n.stop()}}),n)})))()},emptyMessages:function(t,e){return Ut(Vt().mark((function n(){var r;return Vt().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,n.next=3,$t["a"].post("/api/sys-msg/reads",e);case 3:r("readMessages",e);case 4:case"end":return n.stop()}}),n)})))()},signin:function(t){var e=arguments;return Ut(Vt().mark((function n(){var r,o,i,a,s,c,l,u;return Vt().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]:{},r("setCommitting",!0),n.prev=3,n.next=6,$t["a"].post("/api/signin",i.data,{});case 6:return a=n.sent,s=a.data,c=s.data,l=s.content,u=a.status,r("clear"),r("setStatus",{status:u,message:l}),n.abrupt("return",c);case 16:n.prev=16,n.t0=n["catch"](3),o("handleError",n.t0);case 19:return n.prev=19,r("setCommitting",!1),n.finish(19);case 22:case"end":return n.stop()}}),n,null,[[3,16,19,22]])})))()},getSms:function(t){var e=arguments;return Ut(Vt().mark((function n(){var r,o,i,a,s,c,l,u;return Vt().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]:{},r("setCommitting",!0),n.prev=3,n.next=6,$t["a"].post("/api/sms",i.data,{});case 6:return a=n.sent,s=a.data,c=s.data,l=s.content,u=a.status,r("clear"),r("setStatus",{status:u,message:l}),n.abrupt("return",c);case 16:n.prev=16,n.t0=n["catch"](3),o("handleError",n.t0);case 19:return n.prev=19,r("setCommitting",!1),n.finish(19);case 22:case"end":return n.stop()}}),n,null,[[3,16,19,22]])})))()},signout:function(t,e){return Ut(Vt().mark((function e(){var n,r,o,i,a,s,c;return Vt().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,r=t.dispatch,n("setCommitting",!0),e.prev=2,e.next=5,$t["a"].post("/api/signout");case 5:return o=e.sent,i=o.data,a=i.data,s=i.content,c=o.status,n("clear"),n("setStatus",{status:c,message:s}),e.abrupt("return",a);case 15:e.prev=15,e.t0=e["catch"](2),r("handleError",e.t0);case 18:return e.prev=18,n("setCommitting",!1),e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[2,15,18,21]])})))()},changePassword:function(t){var e=arguments;return Ut(Vt().mark((function n(){var r,o,i,a,s,c,l,u;return Vt().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]:{},r("setCommitting",!0),n.prev=3,n.next=6,$t["a"].post("/api/change-password",i.data,{});case 6:return a=n.sent,s=a.data,c=s.data,l=s.content,u=a.status,r("clear"),r("setStatus",{status:u,message:l}),n.abrupt("return",c);case 16:n.prev=16,n.t0=n["catch"](3),o("handleError",n.t0);case 19:return n.prev=19,r("setCommitting",!1),n.finish(19);case 22:case"end":return n.stop()}}),n,null,[[3,16,19,22]])})))()},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||"系统错误请与管理员联系。";return n("setStatus",{status:o,message:a}),e}},getters:{token:function(){},resources:function(){},app:function(t){return t.app},user:function(t){return t.user},config:function(t){return function(e){return t.config.find((function(t){return t.key===e}))}}}})}Xt&&"${app.csrfToken}"!==Xt&&(ee["x-csrf-token"]=Xt);var re=n("c6e8"),oe=n("6389"),ie=n.n(oe);Ft.a.use(ie.a);var ae=new ie.a,se=n("f24a"),ce=function(){var t=this,e=t._self._c;return e("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.copyText,expression:"copyText",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:t.onError,expression:"onError",arg:"error"}]},[t._v(" "+t._s(t.text)+" ")])},le=[],ue={name:"clipboard",props:{text:{type:String,default:"文本内容"},copyText:{type:[String,Number],default:"复制文本内容"}},methods:{onCopy:function(t){this.$message.success("复制成功")},onError:function(t){this.$message.error("复制失败")}}},fe=ue,de=Object(U["a"])(fe,ce,le,!1,null,null,null),pe=de.exports,he=function(){var t=this,e=t._self._c;return e(t.component,{tag:"component"},[t._t("default",null,{collection:t.dataSource,model:t.model,schema:t.schema,schemas:t.schemas,count:t.count}),t._t("empty"),t._t("error")],2)},ve=[],me=n("796d"),ye=n.n(me);function ge(t){return ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ge(t)}function be(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */be=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:S(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 E(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"==ge(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 S(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(ge(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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 we(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 _e(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?we(Object(n),!0).forEach((function(e){Oe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xe(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 ke(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){xe(i,r,o,a,s,"next",t)}function s(t){xe(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Oe(t,e,n){return e=Ee(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ee(t){var e=Se(t,"string");return"symbol"==ge(e)?e:String(e)}function Se(t,e){if("object"!=ge(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ge(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function je(t,e){return Ae(t)||Ce(t,e)||Le(t,e)||Ne()}function Ne(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Le(t,e){if(t){if("string"===typeof t)return Pe(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)?Pe(t,e):void 0}}function Pe(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 Ce(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}function Ae(t){if(Array.isArray(t))return t}var Te={props:{name:{type:String},component:{type:[String,Object],default:"div"},query:{type:Object},filter:{type:Object},transform:{type:Function},limit:{type:Number},page:{type:Number},schemaMode:{type:[Boolean,String],default:!1},dataset:{type:Boolean,default:!1}},data:function(){return{collection:[],model:{},schema:null,count:0,status:0,loading:!1}},computed:{dataSource:function(){var t=this.collection,e=this.filter,n=e?t.filter((function(t){return Object.keys(e).every((function(n){var r=e[n];return r&&!Array.isArray(r)&&(r=[r]),null===r||r.includes(t[n])}))})):t;return this.transform?n.map(this.transform):n},schemas:function(){var t=this.schema?this.schema.model.attrs.filter((function(t){return t.list||"wordbook"===t.dataType&&t.typeObject})):[],e=t.map((function(t){return t.list?[t.name,t.list.split(",").map((function(t){var e=t.split(":"),n=je(e,2),r=n[0],o=n[1];return o?Oe({},r,o):r}))]:[t.name,t.typeObject.data&&t.typeObject.data.collection||[]]}));return Object.fromEntries(e)}},methods:{load:function(){var t=this;return ke(be().mark((function e(){var n,r,o,i,a,s,c,l,u,f,d,p,h,v,m;return be().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.name,r=t.query,o=t.limit,i=void 0===o?0:o,a=t.page,s=t.dataset,t.collection=[],t.model={},t.count=0,t.status=0,t.loading=!0,c=s?"dataset":"api",e.prev=7,e.next=10,t.$api.get("/".concat(c,"/").concat(n,"?").concat(ye.a.stringify(_e(_e({},r),{},{_size:i,$limit:a}))));case 10:l=e.sent,u=l.data,f=u.collection,d=u.count,p=u.model,h=u.data,v=l.status,t.collection=f||h,t.model=p,t.count=d,t.status=v,e.next=27;break;case 23:return e.prev=23,e.t0=e["catch"](7),e.t0.response?(m=e.t0.response.status,t.status=m):t.status=-1,e.abrupt("return",e.t0);case 27:return e.prev=27,t.loading=!1,e.finish(27);case 30:case"end":return e.stop()}}),e,null,[[7,23,27,30]])})))()},loadSchema:function(){var t=this;return ke(be().mark((function e(){var n,r,o,i;return be().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.name,e.prev=1,e.next=4,t.$api.get("/schemas/".concat(n));case 4:r=e.sent,o=r.data,t.schema=o,e.next=13;break;case 9:return e.prev=9,e.t0=e["catch"](1),e.t0.response?(i=e.t0.response.status,t.status=i):t.status=-1,e.abrupt("return",e.t0);case 13:return e.prev=13,t.loading=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[1,9,13,16]])})))()}},created:function(){var t=this;return ke(be().mark((function e(){return be().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("await"!==t.schemaMode){e.next=6;break}return e.next=3,t.loadSchema();case 3:t.load(),e.next=7;break;case 6:"async"===t.schemaMode?(t.loadSchema(),t.load()):t.schemaMode?t.loadSchema():t.load();case 7:case"end":return e.stop()}}),e)})))()},watch:{name:function(t){this.load()},page:function(){this.load()}}},Re=Te,De=Object(U["a"])(Re,he,ve,!1,null,null,null),Ie=De.exports,Me=n("7b4d"),qe=n("b7f9"),Fe=n("0934"),$e=n.n(Fe);function Be(t){var e=$e.a.enc.Utf8.parse(t),n="1234123412ABCDEF",r="ABCDEF1234123412",o=$e.a.enc.Utf8.parse(n),i=$e.a.enc.Utf8.parse(r),a=$e.a.AES.encrypt(e,o,{iv:i,mode:$e.a.mode.CBC,padding:$e.a.pad.Pkcs7}),s=a.ciphertext.toString();return s}n("517c"),n("aa23")},"1bf9":function(t,e,n){"use strict";n("d0dd")},"1f13":function(t,e,n){},"1f44":function(t,e,n){(function(e,r,o){t.exports=r(n("bf17"),n("f97e"),n("a638"),n("57eb"),n("023d"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.StreamCipher,o=e.algo,i=[],a=[],s=[],c=o.Rabbit=r.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],o=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)o[n]^=r[n+4&7];if(e){var i=e.words,a=i[0],s=i[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=c>>>16|4294901760&u,d=u<<16|65535&c;o[0]^=c,o[1]^=f,o[2]^=u,o[3]^=d,o[4]^=c,o[5]^=f,o[6]^=u,o[7]^=d;for(n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(t,e){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0;for(n=0;n<8;n++){var r=t[n]+e[n],o=65535&r,i=r>>>16,c=((o*o>>>17)+o*i>>>15)+i*i,l=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=c^l}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=r._createHelper(c)}(),t.Rabbit}))},"1f51":function(t,e,n){},"214e":function(t,e,n){},2206:function(t,e,n){},2364:function(e,n){e.exports=t},2387:function(t,e,n){"use strict";n("f39c")},"23a7":function(t,e,n){(function(e,r,o){t.exports=r(n("bf17"),n("023d"))})(0,(function(t){return t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function n(t,e,n,r){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,r.encryptBlock(o,0);for(var a=0;a<n;a++)t[e+a]^=o[a]}return e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,o=r.blockSize;n.call(this,t,e,o,r),this._prevBlock=t.slice(e,e+o)}}),e.Decryptor=e.extend({processBlock:function(t,e){var r=this._cipher,o=r.blockSize,i=t.slice(e,e+o);n.call(this,t,e,o,r),this._prevBlock=i}}),e}(),t.mode.CFB}))},"289a":function(t,n){t.exports=e},"2a55":function(t,e,n){"use strict";e.byteLength=u,e.toByteArray=d,e.fromByteArray=v;for(var r=[],o=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function u(t){var e=l(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function f(t,e,n){return 3*(e+n)/4-n}function d(t){var e,n,r=l(t),a=r[0],s=r[1],c=new i(f(t,a,s)),u=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)e=o[t.charCodeAt(n)]<<18|o[t.charCodeAt(n+1)]<<12|o[t.charCodeAt(n+2)]<<6|o[t.charCodeAt(n+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;return 2===s&&(e=o[t.charCodeAt(n)]<<2|o[t.charCodeAt(n+1)]>>4,c[u++]=255&e),1===s&&(e=o[t.charCodeAt(n)]<<10|o[t.charCodeAt(n+1)]<<4|o[t.charCodeAt(n+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e),c}function p(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function h(t,e,n){for(var r,o=[],i=e;i<n;i+=3)r=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),o.push(p(r));return o.join("")}function v(t){for(var e,n=t.length,o=n%3,i=[],a=16383,s=0,c=n-o;s<c;s+=a)i.push(h(t,s,s+a>c?c:s+a));return 1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},"2b1b":function(t,e,n){(function(e,r,o){t.exports=r(n("bf17"),n("f97e"),n("a638"),n("57eb"),n("023d"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.BlockCipher,o=e.algo;const i=16,a=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var c={pbox:[],sbox:[]};function l(t,e){let n=e>>24&255,r=e>>16&255,o=e>>8&255,i=255&e,a=t.sbox[0][n]+t.sbox[1][r];return a^=t.sbox[2][o],a+=t.sbox[3][i],a}function u(t,e,n){let r,o=e,a=n;for(let s=0;s<i;++s)o^=t.pbox[s],a=l(t,o)^a,r=o,o=a,a=r;return r=o,o=a,a=r,a^=t.pbox[i],o^=t.pbox[i+1],{left:o,right:a}}function f(t,e,n){let r,o=e,a=n;for(let s=i+1;s>1;--s)o^=t.pbox[s],a=l(t,o)^a,r=o,o=a,a=r;return r=o,o=a,a=r,a^=t.pbox[1],o^=t.pbox[0],{left:o,right:a}}function d(t,e,n){for(let i=0;i<4;i++){t.sbox[i]=[];for(let e=0;e<256;e++)t.sbox[i][e]=s[i][e]}let r=0;for(let s=0;s<i+2;s++)t.pbox[s]=a[s]^e[r],r++,r>=n&&(r=0);let o=0,c=0,l=0;for(let a=0;a<i+2;a+=2)l=u(t,o,c),o=l.left,c=l.right,t.pbox[a]=o,t.pbox[a+1]=c;for(let i=0;i<4;i++)for(let e=0;e<256;e+=2)l=u(t,o,c),o=l.left,c=l.right,t.sbox[i][e]=o,t.sbox[i][e+1]=c;return!0}var p=o.Blowfish=r.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4;d(c,e,n)}},encryptBlock:function(t,e){var n=u(c,t[e],t[e+1]);t[e]=n.left,t[e+1]=n.right},decryptBlock:function(t,e){var n=f(c,t[e],t[e+1]);t[e]=n.left,t[e+1]=n.right},blockSize:2,keySize:4,ivSize:2});e.Blowfish=r._createHelper(p)}(),t.Blowfish}))},"2b25":function(t,e,n){(function(e,r){t.exports=r(n("bf17"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.WordArray,o=n.Hasher,i=e.algo,a=[],s=i.SHA1=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],c=n[4],l=0;l<80;l++){if(l<16)a[l]=0|t[e+l];else{var u=a[l-3]^a[l-8]^a[l-14]^a[l-16];a[l]=u<<1|u>>>31}var f=(r<<5|r>>>27)+c+a[l];f+=l<20?1518500249+(o&i|~o&s):l<40?1859775393+(o^i^s):l<60?(o&i|o&s|i&s)-1894007588:(o^i^s)-899497514,c=s,s=i,i=o<<30|o>>>2,o=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+c|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=o._createHelper(s),e.HmacSHA1=o._createHmacHelper(s)}(),t.SHA1}))},"2b76":function(t,e,n){},"2d21":function(t,e,n){},"2e09":function(t,e,n){},"2f4d":function(t,e,n){"use strict";n("3cd6")},3352:function(t,e,n){},"336c":function(t,e){t.exports=n},3593:function(t,e){},"37ad":function(t,e,n){},"37eb":function(t,e,n){!function(e,r){t.exports=r(n("788a"))}(0,(function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=2)}([function(e,n){e.exports=t},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),o=n.n(r),i=n(6),a=n(5),s=a(o.a,i.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.install=e.quillEditor=e.Quill=void 0;var o=n(0),i=r(o),a=n(1),s=r(a),c=window.Quill||i.default,l=function(t,e){e&&(s.default.props.globalOptions.default=function(){return e}),t.component(s.default.name,s.default)},u={Quill:c,quillEditor:s.default,install:l};e.default=u,e.Quill=c,e.quillEditor=s.default,e.install=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert text here ...",readOnly:!1}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),a=n(3),s=r(a),c=window.Quill||i.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},writable:!0,configurable:!0}),e.default={name:"quill-editor",data:function(){return{_options:{},_content:"",defaultOptions:s.default}},props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},mounted:function(){this.initialize()},beforeDestroy:function(){this.quill=null,delete this.quill},methods:{initialize:function(){var t=this;this.$el&&(this._options=Object.assign({},this.defaultOptions,this.globalOptions,this.options),this.quill=new c(this.$refs.editor,this._options),this.quill.enable(!1),(this.value||this.content)&&this.quill.pasteHTML(this.value||this.content),this.disabled||this.quill.enable(!0),this.quill.on("selection-change",(function(e){e?t.$emit("focus",t.quill):t.$emit("blur",t.quill)})),this.quill.on("text-change",(function(e,n,r){var o=t.$refs.editor.children[0].innerHTML,i=t.quill,a=t.quill.getText();"<p><br></p>"===o&&(o=""),t._content=o,t.$emit("input",t._content),t.$emit("change",{html:o,text:a,quill:i})})),this.$emit("ready",this.quill))}},watch:{content:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},value:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},disabled:function(t,e){this.quill&&this.quill.enable(!t)}}}},function(t,e){t.exports=function(t,e,n,r,o,i){var a,s=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(a=t,s=t.default);var l,u="function"==typeof s?s.options:s;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId=o),i?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=l):r&&(l=r),l){var f=u.functional,d=f?u.render:u.beforeCreate;f?(u._injectStyles=l,u.render=function(t,e){return l.call(e),d(t,e)}):u.beforeCreate=d?[].concat(d,l):[l]}return{esModule:a,exports:s,options:u}}},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"quill-editor"},[t._t("toolbar"),t._v(" "),n("div",{ref:"editor"})],2)},o=[],i={render:r,staticRenderFns:o};e.a=i}])}))},3815:function(t,e,n){},3968:function(t,e,n){"use strict";n("3352")},"3aaf":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,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 i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return e=s(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){var e=c(t,"string");return"symbol"==r(e)?e:String(e)}function c(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)}var l=function(){var t=this,e=t._self._c;return e(t.options.component,t._g(t._b({tag:"component",scopedSlots:t._u([{key:"title",fn:function(){return[t._t("title",(function(){return[t._v(t._s(t.title))]}))]},proxy:!0},t.$slots.footer?{key:"footer",fn:function(){return[t._t("footer")]},proxy:!0}:null],null,!0)},"component",i(i({},t.options),t.$attrs),!1),t.$listeners),[t._t("default")],2)},u=[],f={props:{type:{type:String,enum:["modal","drawer","fullscreen"],default:"modal"},title:{type:String},committing:{type:Boolean,default:!1},width:{type:String},footer:{type:String}},data:function(){return{modalOptions:{component:"a-modal",width:"750px",bodyStyle:{maxHeight:this.width||"500px",overflowY:"auto"},centered:!0,footer:this.footer,maskClosable:!1},fullscreenOptions:{component:"a-modal",width:"100%",bodyStyle:{height:this.footer&&"hide"===this.footer?"".concat(document.body.clientHeight-53,"px"):"".concat(document.body.clientHeight-108,"px"),overflowY:"auto"},dialogStyle:{padding:0},centered:!0,footer:this.footer},drawerOptions:{component:"a-drawer",width:this.width||"750px",destroyOnClose:!0,bodyStyle:{padding:0},footer:this.footer},viewOptions:{component:"div"}}},computed:{options:function(){return this["".concat(this.type,"Options")]}}},d=f,p=n("a6c2"),h=Object(p["a"])(d,l,u,!1,null,null,null);e["a"]=h.exports},"3cd6":function(t,e,n){},"3d8a":function(t,e,n){"use strict";var r=function(){var t=this,e=t._self._c;return e("layout-view-blank",{tag:"component"},[e("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:t.loading,delay:100}},["multiple"===t.pickerMode?t._l(t.selections,(function(n){return e("a-tag",{key:n[t.idName],attrs:{closable:""},on:{close:function(e){return t.handleRemove(n)}}},[t._v(" "+t._s(n[t.titleName||t.idName])+" ")])})):t._e(),e("keep-alive",[t.loading?t._e():e(t.createView,t._g(t._b({ref:"view",tag:"component",attrs:{pageKey:t.pageKey,viewKey:t.viewKey,pickerMode:t.pickerMode,mode:t.mode,layout:"layout-view-model-list-embed"},on:{selected:t.handleSelected}},"component",t.$attrs,!1),t.$listeners))],1)],2)],1)},o=[],i={props:{schema:{type:Object},pickerMode:{type:String,enum:["single","multiple"],default:"single"},mode:{type:String,default:"picker"}}},a=n("0959"),s=n("f9a7"),c=n("c246");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(t){return h(t)||p(t)||d(t)||f()}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(t,e){if(t){if("string"===typeof t)return v(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)?v(t,e):void 0}}function p(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function h(t){if(Array.isArray(t))return v(t)}function v(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 m(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */m=function(){return e};var t,e={},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 u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function f(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 d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",h="suspendedYield",v="executing",y="completed",g={};function b(){}function w(){}function _(){}var x={};u(x,a,(function(){return this}));var k=Object.getPrototypeOf,O=k&&k(k(T([])));O&&O!==n&&r.call(O,a)&&(x=O);var E=_.prototype=b.prototype=Object.create(x);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,a,s){var c=d(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=p;return function(i,a){if(o===v)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===p)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var l=d(e,n,r);if("normal"===l.type){if(o=r.done?y:h,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=d(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(E,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:w,configurable:!0}),w.displayName=u(_,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__=_,u(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(j.prototype),u(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(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),u(E,c,"Generator"),u(E,a,(function(){return this})),u(E,"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 y(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 g(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){y(i,r,o,a,s,"next",t)}function s(t){y(i,r,o,a,s,"throw",t)}a(void 0)}))}}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={mixins:[i],components:w({},c["a"]),data:function(){return{pageKey:null,viewKey:null,storeNamespace:null,loading:!0,selections:[],idName:"",titleName:""}},created:function(){this.initView()},computed:{createView:function(){return{extends:Object(a["a"])(c["a"].ModelList)("".concat(this.storeNamespace))}}},methods:{create:a["a"],initView:function(){var t=this;return g(m().mark((function e(){var n,r,o;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.schema.configs.find((function(t){return"picker.view"===t.key})),r=n?n.value:"",o="p-".concat(r),t.$store.hasModule(o)){e.next=7;break}return Object(s["a"])(t.$store,o,!0),e.next=7,t.$store.dispatch("".concat(o,"/loadSchema"));case 7:t.pageKey=r,t.viewKey=r,t.storeNamespace="v-".concat(r),t.loading=!1;case 11:case"end":return e.stop()}}),e)})))()},handleSelected:function(t){this.idName=this.$refs.view.idName,this.titleName=this.$refs.view.titleName,this.selections="multiple"===this.pickerMode&&"picker"!==this.$refs.view.mode?Array.from(new Set([].concat(u(this.selections),u(t)).map((function(t){return JSON.stringify(t)})))).map((function(t){return JSON.parse(t)})):t,this.$emit("selected",this.selections)},handleRemove:function(t){var e=this.idName,n=this.selections,r=n.findIndex((function(n){return n[e]===t[e]}));-1!==r&&n.splice(r,1),this.$emit("selected",n)}}},E=O,S=n("a6c2"),j=Object(S["a"])(E,r,o,!1,null,null,null);e["a"]=j.exports},4048:function(t,e,n){},"45db":function(t,e,n){"use strict";n("93bb")},4927:function(t,e,n){"use strict";n("3815")},"49fc":function(t,e,n){},"4af3":function(t,e,n){},"4dd1":function(t,e,n){"use strict";n("cb5c")},"4dd6":function(t,e,n){"use strict";n("4eb0")},"4eb0":function(t,e,n){},"517c":function(t,e,n){},"521b":function(t,e,n){},5596:function(t,e,n){"use strict";n("7826")},"55ab":function(t,e,n){},"568c":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,e,n){return e=u(e),i(t,s()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}function i(t,e){if(e&&("object"===r(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a(t)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function c(){return c="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=l(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},c.apply(this,arguments)}function l(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=u(t),null===t)break;return t}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(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,m(r.key),r)}}function v(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),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)}var g=function(){function t(){p(this,t)}return v(t,[{key:"getNodeData",value:function(){throw new Error("【BusinessAdapter】 Not supported, Please override the method")}},{key:"verifyNodeData",value:function(t){throw new Error("【BusinessAdapter】 Not supported, Please override the method")}},{key:"verifyNode",value:function(t){throw new Error("【BusinessAdapter】 Not supported, Please override the method")}},{key:"saveNodeData",value:function(t){throw new Error("【BusinessAdapter】 Not supported, Please override the method")}},{key:"saveNode",value:function(t){throw new Error("【BusinessAdapter】 Not supported, Please override the method")}}],[{key:"getBusinessAdapter",value:function(){var e=function(t){function e(){return p(this,e),o(this,e,arguments)}return f(e,t),v(e,[{key:"getNodeData",value:function(t){return[]}},{key:"verifyNodeData",value:function(t){c(u(e.prototype),"verifyNodeData",this).call(this,t)}},{key:"verifyNode",value:function(t){c(u(e.prototype),"verifyNode",this).call(this,t)}},{key:"saveNode",value:function(t){c(u(e.prototype),"saveNode",this).call(this,t)}},{key:"saveNodeData",value:function(t){c(u(e.prototype),"saveNodeData",this).call(this,t)}}],[{key:"getBusinessAdapter",value:function(){return new e}}]),e}(t);return e.getBusinessAdapter()}}]),t}();e["a"]=g},"57eb":function(t,e,n){(function(e,r,o){t.exports=r(n("bf17"),n("2b25"),n("fb70"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.Base,o=n.WordArray,i=e.algo,a=i.MD5,s=i.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var n,r=this.cfg,i=r.hasher.create(),a=o.create(),s=a.words,c=r.keySize,l=r.iterations;while(s.length<c){n&&i.update(n),n=i.update(t).finalize(e),i.reset();for(var u=1;u<l;u++)n=i.finalize(n),i.reset();a.concat(n)}return a.sigBytes=4*c,a}});e.EvpKDF=function(t,e,n){return s.create(n).compute(t,e)}}(),t.EvpKDF}))},5880:function(t,e){t.exports=r},"5aeb":function(t,e){t.exports=o},"5c90":function(t,e,n){(function(e,r){t.exports=r(n("bf17"))})(0,(function(t){return function(e){var n=t,r=n.lib,o=r.Base,i=r.WordArray,a=n.x64={};a.Word=o.extend({init:function(t,e){this.high=t,this.low=e}}),a.WordArray=o.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var t=this.words,e=t.length,n=[],r=0;r<e;r++){var o=t[r];n.push(o.high),n.push(o.low)}return i.create(n,this.sigBytes)},clone:function(){for(var t=o.clone.call(this),e=t.words=this.words.slice(0),n=e.length,r=0;r<n;r++)e[r]=e[r].clone();return t}})}(),t}))},"609c":function(t,e,n){},6162:function(t,e,n){"use strict";n("1881")},6389:function(t,e){t.exports=i},"67ae":function(t,e,n){(function(e,r,o){t.exports=r(n("bf17"),n("5c90"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.Hasher,o=e.x64,i=o.Word,a=o.WordArray,s=e.algo;function c(){return i.create.apply(i,arguments)}var l=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],u=[];(function(){for(var t=0;t<80;t++)u[t]=c()})();var f=s.SHA512=r.extend({_doReset:function(){this._hash=new a.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],c=n[5],f=n[6],d=n[7],p=r.high,h=r.low,v=o.high,m=o.low,y=i.high,g=i.low,b=a.high,w=a.low,_=s.high,x=s.low,k=c.high,O=c.low,E=f.high,S=f.low,j=d.high,N=d.low,L=p,P=h,C=v,A=m,T=y,R=g,D=b,I=w,M=_,q=x,F=k,$=O,B=E,V=S,H=j,U=N,G=0;G<80;G++){var z,K,Y=u[G];if(G<16)K=Y.high=0|t[e+2*G],z=Y.low=0|t[e+2*G+1];else{var W=u[G-15],J=W.high,Z=W.low,X=(J>>>1|Z<<31)^(J>>>8|Z<<24)^J>>>7,Q=(Z>>>1|J<<31)^(Z>>>8|J<<24)^(Z>>>7|J<<25),tt=u[G-2],et=tt.high,nt=tt.low,rt=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,ot=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),it=u[G-7],at=it.high,st=it.low,ct=u[G-16],lt=ct.high,ut=ct.low;z=Q+st,K=X+at+(z>>>0<Q>>>0?1:0),z+=ot,K=K+rt+(z>>>0<ot>>>0?1:0),z+=ut,K=K+lt+(z>>>0<ut>>>0?1:0),Y.high=K,Y.low=z}var ft=M&F^~M&B,dt=q&$^~q&V,pt=L&C^L&T^C&T,ht=P&A^P&R^A&R,vt=(L>>>28|P<<4)^(L<<30|P>>>2)^(L<<25|P>>>7),mt=(P>>>28|L<<4)^(P<<30|L>>>2)^(P<<25|L>>>7),yt=(M>>>14|q<<18)^(M>>>18|q<<14)^(M<<23|q>>>9),gt=(q>>>14|M<<18)^(q>>>18|M<<14)^(q<<23|M>>>9),bt=l[G],wt=bt.high,_t=bt.low,xt=U+gt,kt=H+yt+(xt>>>0<U>>>0?1:0),Ot=(xt=xt+dt,kt=kt+ft+(xt>>>0<dt>>>0?1:0),xt=xt+_t,kt=kt+wt+(xt>>>0<_t>>>0?1:0),xt=xt+z,kt=kt+K+(xt>>>0<z>>>0?1:0),mt+ht),Et=vt+pt+(Ot>>>0<mt>>>0?1:0);H=B,U=V,B=F,V=$,F=M,$=q,q=I+xt|0,M=D+kt+(q>>>0<I>>>0?1:0)|0,D=T,I=R,T=C,R=A,C=L,A=P,P=xt+Ot|0,L=kt+Et+(P>>>0<xt>>>0?1:0)|0}h=r.low=h+P,r.high=p+L+(h>>>0<P>>>0?1:0),m=o.low=m+A,o.high=v+C+(m>>>0<A>>>0?1:0),g=i.low=g+R,i.high=y+T+(g>>>0<R>>>0?1:0),w=a.low=w+I,a.high=b+D+(w>>>0<I>>>0?1:0),x=s.low=x+q,s.high=_+M+(x>>>0<q>>>0?1:0),O=c.low=O+$,c.high=k+F+(O>>>0<$>>>0?1:0),S=f.low=S+V,f.high=E+B+(S>>>0<V>>>0?1:0),N=d.low=N+U,d.high=j+H+(N>>>0<U>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(r+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process();var o=this._hash.toX32();return o},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=r._createHelper(f),e.HmacSHA512=r._createHmacHelper(f)}(),t.SHA512}))},"690b":function(t,e,n){},"6d57":function(t,e,n){"use strict";n("4af3")},7144:function(t,e,n){(function(e,r,o){t.exports=r(n("bf17"),n("f97e"),n("a638"),n("57eb"),n("023d"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.BlockCipher,o=e.algo,i=[],a=[],s=[],c=[],l=[],u=[],f=[],d=[],p=[],h=[];(function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,r=0;for(e=0;e<256;e++){var o=r^r<<1^r<<2^r<<3^r<<4;o=o>>>8^255&o^99,i[n]=o,a[o]=n;var v=t[n],m=t[v],y=t[m],g=257*t[o]^16843008*o;s[n]=g<<24|g>>>8,c[n]=g<<16|g>>>16,l[n]=g<<8|g>>>24,u[n]=g;g=16843009*y^65537*m^257*v^16843008*n;f[o]=g<<24|g>>>8,d[o]=g<<16|g>>>16,p[o]=g<<8|g>>>24,h[o]=g,n?(n=v^t[t[t[y^v]]],r^=t[t[r]]):n=r=1}})();var v=[0,1,2,4,8,16,32,64,128,27,54],m=o.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,r=this._nRounds=n+6,o=4*(r+1),a=this._keySchedule=[],s=0;s<o;s++)s<n?a[s]=e[s]:(u=a[s-1],s%n?n>6&&s%n==4&&(u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u]):(u=u<<8|u>>>24,u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u],u^=v[s/n|0]<<24),a[s]=a[s-n]^u);for(var c=this._invKeySchedule=[],l=0;l<o;l++){s=o-l;if(l%4)var u=a[s];else u=a[s-4];c[l]=l<4||s<=4?u:f[i[u>>>24]]^d[i[u>>>16&255]]^p[i[u>>>8&255]]^h[i[255&u]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,c,l,u,i)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,f,d,p,h,a);n=t[e+1];t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,o,i,a,s){for(var c=this._nRounds,l=t[e]^n[0],u=t[e+1]^n[1],f=t[e+2]^n[2],d=t[e+3]^n[3],p=4,h=1;h<c;h++){var v=r[l>>>24]^o[u>>>16&255]^i[f>>>8&255]^a[255&d]^n[p++],m=r[u>>>24]^o[f>>>16&255]^i[d>>>8&255]^a[255&l]^n[p++],y=r[f>>>24]^o[d>>>16&255]^i[l>>>8&255]^a[255&u]^n[p++],g=r[d>>>24]^o[l>>>16&255]^i[u>>>8&255]^a[255&f]^n[p++];l=v,u=m,f=y,d=g}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&d])^n[p++],m=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[255&l])^n[p++],y=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^n[p++],g=(s[d>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^n[p++];t[e]=v,t[e+1]=m,t[e+2]=y,t[e+3]=g},keySize:8});e.AES=r._createHelper(m)}(),t.AES}))},7826:function(t,e,n){},"784f":function(t,e,n){},"788a":function(t,e,n){(function(e){
|
|
9
|
+
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=n?-1:1,p=t[e+f];for(f+=d,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+t[e+f],f+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+t[e+f],f+=d,u-=8);if(0===i)i=1-l;else{if(i===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=l}return(p?-1:1)*a*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var a,s,c,l=8*i-o-1,u=(1<<l)-1,f=u>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),e+=a+f>=1?d/c:d*Math.pow(2,1-f),e*c>=2&&(a++,c/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(e*c-1)*Math.pow(2,o),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[n+p]=255&s,p+=h,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;t[n+p]=255&a,p+=h,a/=256,l-=8);t[n+p-h]|=128*v}},"16ab":function(t,e,n){},1881:function(t,e,n){},"1aba":function(t,e,n){"use strict";if(n.r(e),n.d(e,"App",(function(){return Mt})),n.d(e,"createStore",(function(){return ce})),n.d(e,"create",(function(){return $["a"]})),n.d(e,"template",(function(){return le["a"]})),n.d(e,"WebRouters",(function(){return de})),n.d(e,"WebViews",(function(){return B["a"]})),n.d(e,"Descriptions",(function(){return pe["a"]})),n.d(e,"Frame",(function(){return rt["a"]})),n.d(e,"Clipboard",(function(){return be})),n.d(e,"Collection",(function(){return Ve})),n.d(e,"FormItem",(function(){return He["a"]})),n.d(e,"FormBase",(function(){return Ue["a"]})),n.d(e,"encrypt",(function(){return Ke})),"undefined"!==typeof window){var r=window.document.currentScript,o=n("dc36");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}var a=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.$store.state.loading}},[e("Router",{on:{routed:function(e){t.spinning=!1}}})],1)},s=[],c=function(){var t=this,e=t._self._c;return e("router-view")},l=[],u=n("5880"),f=n.n(u),d=n("f9a7");function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function h(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h=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 b?e:b,a=Object.create(i.prototype),s=new A(r||[]);return o(a,"_invoke",{value:N(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",v="suspendedYield",m="executing",y="completed",g={};function b(){}function w(){}function _(){}var x={};l(x,a,(function(){return this}));var k=Object.getPrototypeOf,O=k&&k(k(T([])));O&&O!==n&&r.call(O,a)&&(x=O);var E=_.prototype=b.prototype=Object.create(x);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function 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"==p(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 N(e,n,r){var o=d;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===d)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var l=f(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=f(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(p(e)+" is not iterable")}return w.prototype=_,o(E,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:w,configurable:!0}),w.displayName=l(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(j.prototype),l(j.prototype,s,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new j(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,c,"Generator"),l(E,a,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),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 v(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 m(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){v(i,r,o,a,s,"next",t)}function s(t){v(i,r,o,a,s,"throw",t)}a(void 0)}))}}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 g(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){b(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 b(t,e,n){return e=w(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t){var e=_(t,"string");return"symbol"==p(e)?e:String(e)}function _(t,e){if("object"!=p(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var x=["loading","schema","status","message","single"],k=["loadSchema"],O=["views"],E=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(u["createNamespacedHelpers"])(t),r=n.mapState,o=n.mapActions,i=n.mapMutations,a=n.mapGetters;return{data:function(){return{storeNamespace:t}},computed:g(g({},r(x)),a(O)),methods:g(g({},o(k)),i(["setStatus"])),beforeCreate:function(){this.$store.hasModule(t)||Object(d["a"])(this.$store,t,e)},created:function(){var t=this;return m(h().mark((function e(){return h().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.t0=!t.schema,!e.t0){e.next=4;break}return e.next=4,t.loadSchema();case 4:t.status>399&&t.message&&(t.$message.error(t.message),t.setStatus({status:0,message:""}));case 5:case"end":return e.stop()}}),e)})))()},watch:{status:function(t){401===t&&(this.$router.push("/sign-in"),window.location.reload())}}}},S=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{extends:t,mixins:[E("p-".concat(e),n)]}}},j=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.loading,delay:50}},[e("layout-page-".concat(t.layout),{tag:"component",scopedSlots:t._u([t._l(t.slots,(function(n){return{key:n,fn:function(){return[e("views",{key:"slot-".concat(n),attrs:{views:t.slotViews(n),modelViewType:t.modelViewType}})]},proxy:!0}}))],null,!0)})],1)},N=[];function L(t){return T(t)||A(t)||C(t)||P()}function P(){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 C(t,e){if(t){if("string"===typeof t)return R(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)?R(t,e):void 0}}function A(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function T(t){if(Array.isArray(t))return R(t)}function R(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 D={props:{pageKey:{type:String,required:!0},layout:{type:String,default:"base"},modelViewType:{type:String}},provide:function(){return{page:this,view:null}},computed:{slots:function(){var t=["default","header","footer","sider","left","right"],e=this.$theme.layouts.page["".concat(this.layout.replace(/^\S/,(function(t){return t.toUpperCase()})),"Layout")].slots;return e&&Array.from(new Set([].concat(L(e),t)))||[]}},methods:{slotViews:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return this.views.filter((function(e){return e.slot===t||"default"===t&&!e.slot}))}},activated:function(){},deactivated:function(){}},I=function(){var t=this,e=t._self._c;return e("a-row",t._l(t.views,(function(n){return e("a-col",{key:n.key,attrs:{span:n.span||24}},[e("layout-view-".concat(n.layout||t.viewLayout),{tag:"component",attrs:{view:n}},[e("ViewBox",t._b({attrs:{view:n}},"ViewBox",t.$attrs,!1))],1)],1)})),1)},M=[],q=function(){var t=this,e=t._self._c;return e("keep-alive",[e(t.createView(),t._b({tag:"component",attrs:{pageKey:t.page.pageKey,viewKey:t.view.key,mode:"page",layout:"layout-view-model-list"}},"component",t.view,!1))],1)},F=[],$=n("0959"),B=n("c246"),V={props:{view:{type:Object},modelViewType:{type:String}},inject:["page"],computed:{namespace:function(){return"v-".concat(this.page.pageKey)}},methods:{createView:function(){return{extends:Object($["a"])(B["a"]["Model".concat(this.modelViewType)])(this.namespace)}}}},H=V,U=n("a6c2"),G=Object(U["a"])(H,q,F,!1,null,null,null),z=G.exports,K={components:{ViewBox:z},props:{views:{type:[Array]},viewLayout:{type:String,default:"blank"}}},Y=K,W=Object(U["a"])(Y,I,M,!1,null,null,null),J=W.exports,Z={mixins:[D],components:{Views:J}},X=Z,Q=Object(U["a"])(X,j,N,!1,null,null,null),tt=Q.exports,et=function(){var t=this,e=t._self._c;return e("layout-page-".concat(t.layout),{tag:"component"},[e("Frame",{attrs:{url:"".concat(t.url),height:t.height}})],1)},nt=[],rt=n("f765"),ot={mixins:[D],components:{Frame:rt["a"]},props:{url:String,height:String},data:function(){return{loading:!0}}},it=ot,at=Object(U["a"])(it,et,nt,!1,null,null,null),st=at.exports,ct=function(){var t=this,e=t._self._c;return e("keep-alive",[e("router-view")],1)},lt=[],ut={},ft=Object(U["a"])(ut,ct,lt,!1,null,null,null),dt=ft.exports;function pt(t){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pt(t)}function ht(t){return gt(t)||yt(t)||mt(t)||vt()}function vt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function mt(t,e){if(t){if("string"===typeof t)return bt(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)?bt(t,e):void 0}}function yt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function gt(t){if(Array.isArray(t))return bt(t)}function bt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function wt(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 _t(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wt(Object(n),!0).forEach((function(e){xt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xt(t,e,n){return e=kt(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kt(t){var e=Ot(t,"string");return"symbol"==pt(e)?e:String(e)}function Ot(t,e){if("object"!=pt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=pt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(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:S(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 E(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"==pt(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 S(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(pt(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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 St(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 jt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){St(i,r,o,a,s,"next",t)}function s(t){St(i,r,o,a,s,"throw",t)}a(void 0)}))}}var Nt=S(tt),Lt=["catalog-tab","catalog"],Pt={data:function(){return{messageTimer:0}},created:function(){var t=this;return jt(Et().mark((function e(){return Et().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.$router.addRoutes([{path:"/sign-in",component:t.$theme.pages.Signin,props:{layout:"wall"}}]),e.next=3,t.$store.dispatch("loadResources");case 3:"poll"===t.$store.state.config.message.type&&"1"===t.$store.state.app.remind&&t.startMessage();case 4:case"end":return e.stop()}}),e)})))()},computed:_t(_t({},Object(u["mapState"])(["status","resources"])),{},{routes:function(){return this.resources.length?[{path:"/",redirect:"/"+this.resources[0].key,children:this.resToRoute(ht(this.resources)),component:this.$theme.layouts.router.Sidebar}]:[]}}),methods:{addRoutes:function(){this.$router.addRoutes(this.routes),this.$emit("routed")},resToRoute:function(t){var e=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.$theme.layouts.router.Tabs;return t.map((function(t){var o,i="".concat(n,"/").concat(t.key),a=t.key,s={},c=null;switch(t.type){case"catalog-tab":o=r,s.resources=t.childs,s.parentPath=i;break;case"component":o=e.$theme.pages[t.key.replace(/^\S/,(function(t){return t.toUpperCase()}))],s.pageKey=t.url;break;case"iframe":if(o=st,s.pageKey=t.url,s.url=t.url,t.url&&t.url.split("?")[1]){var l=t.url.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;l&&(s.height=l.split("=")[1])}break;case"view":o=dt,s.pageKey=t.url;break;case"link":o={template:"<span></span>",activated:function(){this.$router.back()}};break;default:o=dt;break}return"view"===t.type&&"standard"===t.viewType&&(c=[{path:"",component:{extends:Nt(t.url,!0)},props:{modelViewType:"profile"===t.catalogType?"Profile":"List",pageKey:t.url},meta:{name:t.name,key:i}},{path:":id",component:{extends:Nt(t.url,!0)},props:function(){return{modelViewType:"Profile",pageKey:t.url}},meta:{name:t.name,key:i}}]),!c&&t.childs&&(c=e.resToRoute(t.childs,t,"".concat(n,"/").concat(a))),{name:c?null:t.url,path:a,redirect:Lt.includes(t.type)&&t.childs&&t.childs.length?"".concat(n,"/").concat(a,"/").concat(t.childs[0].key):null,children:c,component:o,props:s,meta:{name:"list"===t.type?null:t.name,key:i}}}))},modelPageRoute:function(){},startMessage:function(){var t=this;return jt(Et().mark((function e(){return Et().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("loadMessages");case 2:t.messageTimer&&clearInterval(t.messageTimer),t.messageTimer=setInterval((function(){t.$store.dispatch("loadMessages")}),1e4);case 4:case"end":return e.stop()}}),e)})))()}},watch:{status:function(t){401===t&&"/sign-in"!==this.$route.path&&this.$router.push("/sign-in")},resources:function(t,e){!e.length&&this.addRoutes()}}},Ct=Pt,At=Object(U["a"])(Ct,c,l,!1,null,null,null),Tt=At.exports,Rt={components:{Router:Tt},created:function(){}},Dt=Rt,It=Object(U["a"])(Dt,a,s,!1,null,null,null),Mt=It.exports,qt=n("8bbf"),Ft=n.n(qt),$t=n("8c7f");n("e39e");function Bt(t){return Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bt(t)}function Vt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Vt=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:S(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 E(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"==Bt(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 S(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(Bt(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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 Ht(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){Ht(i,r,o,a,s,"next",t)}function s(t){Ht(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Gt(t){return Wt(t)||Yt(t)||Kt(t)||zt()}function zt(){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 Kt(t,e){if(t){if("string"===typeof t)return Jt(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)?Jt(t,e):void 0}}function Yt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Wt(t){if(Array.isArray(t))return Jt(t)}function Jt(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 Zt(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 Xt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Zt(Object(n),!0).forEach((function(e){Qt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Qt(t,e,n){return e=te(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function te(t){var e=ee(t,"string");return"symbol"==Bt(e)?e:String(e)}function ee(t,e){if("object"!=Bt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Bt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ne=window.Rainbow,re=ne.app,oe=re.csrfToken,ie=re.baseURL,ae=!1,se={};function ce(t){$t["a"].setDefaults({baseURL:ie!==["/","{app.appKey}"].join("$")?ie:t,headers:se}),Ft.a.use($t["a"]),Ft.a.use(f.a);var e=function(){return{resources:[],apps:[],authApps:[],user:{},token:JSON.parse(localStorage.getItem("token")),app:Xt({},ne.app),config:{message:{type:"poll"}},messages:[],historys:[],loading:!1,committing:!1,status:200,message:"",baseURL:$t["a"].instance.defaults.baseURL}};return new f.a.Store({state:e(),strict:ae,plugins:[],mutations:{setResources:function(t,e){t.resources=e},setApp:function(t,e){t.app=Xt(Xt({},t.app),e)},setAuthApps:function(t,e){t.authApps=Gt(new Set([].concat(Gt(t.authApps),Gt(e))))},setUser:function(t,e){t.user=e},setToken:function(t,e){t.token=e},setMessages:function(t,e){t.messages=e},readMessages:function(t,e){if(e.length>1)t.messages=[];else if(1===e.length){var n=t.messages.findIndex((function(t){return e[0].message_id===t.message_id}));-1!==n&&t.messages.splice(n,1)}},clear:function(t){t.resources=t.apps=t.messages=[],t.user=null,localStorage.removeItem("signToken"),t.signToken=null},setStatus:function(t,e){var n=e.status,r=e.message;t.status=n,t.message=r},setLoading:function(t,e){t.loading=e},setCommitting:function(t,e){t.committing=e},setHistorys:function(t,e){var n=t.historys.findIndex((function(t){return t.key===e.key}));-1!==n?t.historys[n]=e:t.historys.push(e)},removeHistorys:function(t,e){var n=t.historys.findIndex((function(t){return t.key===e}));return-1!==n&&t.historys.splice(n,1),n}},actions:{loadResources:function(t){return Ut(Vt().mark((function e(){var n,r,o,i,a,s,c,l;return Vt().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,$t["a"].get("/api");case 5:o=e.sent,i=o.data,a=i.resources,s=i.user,c=i.authApps,l=i.app,n("setResources",a),n("setApp",l),n("setAuthApps",c),n("setUser",s),e.next=20;break;case 17:e.prev=17,e.t0=e["catch"](2),r("handleError",e.t0);case 20:return e.prev=20,n("setLoading",!1),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[2,17,20,23]])})))()},loadMessages:function(t){return Ut(Vt().mark((function e(){var n,r,o;return Vt().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,e.prev=1,e.next=4,$t["a"].get("/api/sys-msg?status=unread");case 4:r=e.sent,o=r.data.collection,n("setMessages",o),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](1);case 11:case"end":return e.stop()}}),e,null,[[1,9]])})))()},readMessages:function(t,e){return Ut(Vt().mark((function n(){var r;return Vt().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,n.next=3,$t["a"].post("/api/sys-msg/read",e);case 3:r("readMessages",e);case 4:case"end":return n.stop()}}),n)})))()},emptyMessages:function(t,e){return Ut(Vt().mark((function n(){var r;return Vt().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,n.next=3,$t["a"].post("/api/sys-msg/reads",e);case 3:r("readMessages",e);case 4:case"end":return n.stop()}}),n)})))()},signin:function(t){var e=arguments;return Ut(Vt().mark((function n(){var r,o,i,a,s,c,l,u;return Vt().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]:{},r("setCommitting",!0),n.prev=3,n.next=6,$t["a"].post("/api/signin",i.data,{});case 6:return a=n.sent,s=a.data,c=s.data,l=s.content,u=a.status,r("clear"),r("setStatus",{status:u,message:l}),n.abrupt("return",c);case 16:n.prev=16,n.t0=n["catch"](3),o("handleError",n.t0);case 19:return n.prev=19,r("setCommitting",!1),n.finish(19);case 22:case"end":return n.stop()}}),n,null,[[3,16,19,22]])})))()},getSms:function(t){var e=arguments;return Ut(Vt().mark((function n(){var r,o,i,a,s,c,l,u;return Vt().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]:{},r("setCommitting",!0),n.prev=3,n.next=6,$t["a"].post("/api/sms",i.data,{});case 6:return a=n.sent,s=a.data,c=s.data,l=s.content,u=a.status,r("clear"),r("setStatus",{status:u,message:l}),n.abrupt("return",c);case 16:n.prev=16,n.t0=n["catch"](3),o("handleError",n.t0);case 19:return n.prev=19,r("setCommitting",!1),n.finish(19);case 22:case"end":return n.stop()}}),n,null,[[3,16,19,22]])})))()},signout:function(t,e){return Ut(Vt().mark((function e(){var n,r,o,i,a,s,c;return Vt().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,r=t.dispatch,n("setCommitting",!0),e.prev=2,e.next=5,$t["a"].post("/api/signout");case 5:return o=e.sent,i=o.data,a=i.data,s=i.content,c=o.status,n("clear"),n("setStatus",{status:c,message:s}),e.abrupt("return",a);case 15:e.prev=15,e.t0=e["catch"](2),r("handleError",e.t0);case 18:return e.prev=18,n("setCommitting",!1),e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[2,15,18,21]])})))()},changePassword:function(t){var e=arguments;return Ut(Vt().mark((function n(){var r,o,i,a,s,c,l,u;return Vt().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]:{},r("setCommitting",!0),n.prev=3,n.next=6,$t["a"].post("/api/change-password",i.data,{});case 6:return a=n.sent,s=a.data,c=s.data,l=s.content,u=a.status,r("clear"),r("setStatus",{status:u,message:l}),n.abrupt("return",c);case 16:n.prev=16,n.t0=n["catch"](3),o("handleError",n.t0);case 19:return n.prev=19,r("setCommitting",!1),n.finish(19);case 22:case"end":return n.stop()}}),n,null,[[3,16,19,22]])})))()},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||"系统错误请与管理员联系。";return n("setStatus",{status:o,message:a}),e}},getters:{token:function(){},resources:function(){},app:function(t){return t.app},user:function(t){return t.user},config:function(t){return function(e){return t.config.find((function(t){return t.key===e}))}}}})}oe&&"${app.csrfToken}"!==oe&&(se["x-csrf-token"]=oe);var le=n("c6e8"),ue=n("6389"),fe=n.n(ue);Ft.a.use(fe.a);var de=new fe.a,pe=n("f24a"),he=function(){var t=this,e=t._self._c;return e("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.copyText,expression:"copyText",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:t.onError,expression:"onError",arg:"error"}]},[t._v(" "+t._s(t.text)+" ")])},ve=[],me={name:"clipboard",props:{text:{type:String,default:"文本内容"},copyText:{type:[String,Number],default:"复制文本内容"}},methods:{onCopy:function(t){this.$message.success("复制成功")},onError:function(t){this.$message.error("复制失败")}}},ye=me,ge=Object(U["a"])(ye,he,ve,!1,null,null,null),be=ge.exports,we=function(){var t=this,e=t._self._c;return e(t.component,{tag:"component"},[t._t("default",null,{collection:t.dataSource,model:t.model,schema:t.schema,schemas:t.schemas,count:t.count}),t._t("empty"),t._t("error")],2)},_e=[],xe=n("796d"),ke=n.n(xe);function Oe(t){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oe(t)}function Ee(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ee=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:S(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 E(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"==Oe(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 S(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(Oe(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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 Se(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 je(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Se(Object(n),!0).forEach((function(e){Pe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ne(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 Le(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Ne(i,r,o,a,s,"next",t)}function s(t){Ne(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Pe(t,e,n){return e=Ce(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ce(t){var e=Ae(t,"string");return"symbol"==Oe(e)?e:String(e)}function Ae(t,e){if("object"!=Oe(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Oe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Te(t,e){return qe(t)||Me(t,e)||De(t,e)||Re()}function Re(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function De(t,e){if(t){if("string"===typeof t)return Ie(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)?Ie(t,e):void 0}}function Ie(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 Me(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}function qe(t){if(Array.isArray(t))return t}var Fe={props:{name:{type:String},component:{type:[String,Object],default:"div"},query:{type:Object},filter:{type:Object},transform:{type:Function},limit:{type:Number},page:{type:Number},schemaMode:{type:[Boolean,String],default:!1},dataset:{type:Boolean,default:!1}},data:function(){return{collection:[],model:{},schema:null,count:0,status:0,loading:!1}},computed:{dataSource:function(){var t=this.collection,e=this.filter,n=e?t.filter((function(t){return Object.keys(e).every((function(n){var r=e[n];return r&&!Array.isArray(r)&&(r=[r]),null===r||r.includes(t[n])}))})):t;return this.transform?n.map(this.transform):n},schemas:function(){var t=this.schema?this.schema.model.attrs.filter((function(t){return t.list||"wordbook"===t.dataType&&t.typeObject})):[],e=t.map((function(t){return t.list?[t.name,t.list.split(",").map((function(t){var e=t.split(":"),n=Te(e,2),r=n[0],o=n[1];return o?Pe({},r,o):r}))]:[t.name,t.typeObject.data&&t.typeObject.data.collection||[]]}));return Object.fromEntries(e)}},methods:{load:function(){var t=this;return Le(Ee().mark((function e(){var n,r,o,i,a,s,c,l,u,f,d,p,h,v,m;return Ee().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.name,r=t.query,o=t.limit,i=void 0===o?0:o,a=t.page,s=t.dataset,t.collection=[],t.model={},t.count=0,t.status=0,t.loading=!0,c=s?"dataset":"api",e.prev=7,e.next=10,t.$api.get("/".concat(c,"/").concat(n,"?").concat(ke.a.stringify(je(je({},r),{},{_size:i,$limit:a}))));case 10:l=e.sent,u=l.data,f=u.collection,d=u.count,p=u.model,h=u.data,v=l.status,t.collection=f||h,t.model=p,t.count=d,t.status=v,e.next=27;break;case 23:return e.prev=23,e.t0=e["catch"](7),e.t0.response?(m=e.t0.response.status,t.status=m):t.status=-1,e.abrupt("return",e.t0);case 27:return e.prev=27,t.loading=!1,e.finish(27);case 30:case"end":return e.stop()}}),e,null,[[7,23,27,30]])})))()},loadSchema:function(){var t=this;return Le(Ee().mark((function e(){var n,r,o,i;return Ee().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.name,e.prev=1,e.next=4,t.$api.get("/schemas/".concat(n));case 4:r=e.sent,o=r.data,t.schema=o,e.next=13;break;case 9:return e.prev=9,e.t0=e["catch"](1),e.t0.response?(i=e.t0.response.status,t.status=i):t.status=-1,e.abrupt("return",e.t0);case 13:return e.prev=13,t.loading=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[1,9,13,16]])})))()}},created:function(){var t=this;return Le(Ee().mark((function e(){return Ee().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("await"!==t.schemaMode){e.next=6;break}return e.next=3,t.loadSchema();case 3:t.load(),e.next=7;break;case 6:"async"===t.schemaMode?(t.loadSchema(),t.load()):t.schemaMode?t.loadSchema():t.load();case 7:case"end":return e.stop()}}),e)})))()},watch:{name:function(t){this.load()},page:function(){this.load()}}},$e=Fe,Be=Object(U["a"])($e,we,_e,!1,null,null,null),Ve=Be.exports,He=n("7b4d"),Ue=n("b7f9"),Ge=n("0934"),ze=n.n(Ge);function Ke(t){var e=ze.a.enc.Utf8.parse(t),n="1234123412ABCDEF",r="ABCDEF1234123412",o=ze.a.enc.Utf8.parse(n),i=ze.a.enc.Utf8.parse(r),a=ze.a.AES.encrypt(e,o,{iv:i,mode:ze.a.mode.CBC,padding:ze.a.pad.Pkcs7}),s=a.ciphertext.toString();return s}n("517c"),n("aa23")},"1bf9":function(t,e,n){"use strict";n("d0dd")},"1f13":function(t,e,n){},"1f44":function(t,e,n){(function(e,r,o){t.exports=r(n("bf17"),n("f97e"),n("a638"),n("57eb"),n("023d"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.StreamCipher,o=e.algo,i=[],a=[],s=[],c=o.Rabbit=r.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],o=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)o[n]^=r[n+4&7];if(e){var i=e.words,a=i[0],s=i[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=c>>>16|4294901760&u,d=u<<16|65535&c;o[0]^=c,o[1]^=f,o[2]^=u,o[3]^=d,o[4]^=c,o[5]^=f,o[6]^=u,o[7]^=d;for(n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(t,e){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0;for(n=0;n<8;n++){var r=t[n]+e[n],o=65535&r,i=r>>>16,c=((o*o>>>17)+o*i>>>15)+i*i,l=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=c^l}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=r._createHelper(c)}(),t.Rabbit}))},"1f51":function(t,e,n){},"214e":function(t,e,n){},2206:function(t,e,n){},2364:function(e,n){e.exports=t},2387:function(t,e,n){"use strict";n("f39c")},"23a7":function(t,e,n){(function(e,r,o){t.exports=r(n("bf17"),n("023d"))})(0,(function(t){return t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function n(t,e,n,r){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,r.encryptBlock(o,0);for(var a=0;a<n;a++)t[e+a]^=o[a]}return e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,o=r.blockSize;n.call(this,t,e,o,r),this._prevBlock=t.slice(e,e+o)}}),e.Decryptor=e.extend({processBlock:function(t,e){var r=this._cipher,o=r.blockSize,i=t.slice(e,e+o);n.call(this,t,e,o,r),this._prevBlock=i}}),e}(),t.mode.CFB}))},"289a":function(t,n){t.exports=e},"2a55":function(t,e,n){"use strict";e.byteLength=u,e.toByteArray=d,e.fromByteArray=v;for(var r=[],o=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function u(t){var e=l(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function f(t,e,n){return 3*(e+n)/4-n}function d(t){var e,n,r=l(t),a=r[0],s=r[1],c=new i(f(t,a,s)),u=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)e=o[t.charCodeAt(n)]<<18|o[t.charCodeAt(n+1)]<<12|o[t.charCodeAt(n+2)]<<6|o[t.charCodeAt(n+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;return 2===s&&(e=o[t.charCodeAt(n)]<<2|o[t.charCodeAt(n+1)]>>4,c[u++]=255&e),1===s&&(e=o[t.charCodeAt(n)]<<10|o[t.charCodeAt(n+1)]<<4|o[t.charCodeAt(n+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e),c}function p(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function h(t,e,n){for(var r,o=[],i=e;i<n;i+=3)r=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),o.push(p(r));return o.join("")}function v(t){for(var e,n=t.length,o=n%3,i=[],a=16383,s=0,c=n-o;s<c;s+=a)i.push(h(t,s,s+a>c?c:s+a));return 1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},"2b1b":function(t,e,n){(function(e,r,o){t.exports=r(n("bf17"),n("f97e"),n("a638"),n("57eb"),n("023d"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.BlockCipher,o=e.algo;const i=16,a=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var c={pbox:[],sbox:[]};function l(t,e){let n=e>>24&255,r=e>>16&255,o=e>>8&255,i=255&e,a=t.sbox[0][n]+t.sbox[1][r];return a^=t.sbox[2][o],a+=t.sbox[3][i],a}function u(t,e,n){let r,o=e,a=n;for(let s=0;s<i;++s)o^=t.pbox[s],a=l(t,o)^a,r=o,o=a,a=r;return r=o,o=a,a=r,a^=t.pbox[i],o^=t.pbox[i+1],{left:o,right:a}}function f(t,e,n){let r,o=e,a=n;for(let s=i+1;s>1;--s)o^=t.pbox[s],a=l(t,o)^a,r=o,o=a,a=r;return r=o,o=a,a=r,a^=t.pbox[1],o^=t.pbox[0],{left:o,right:a}}function d(t,e,n){for(let i=0;i<4;i++){t.sbox[i]=[];for(let e=0;e<256;e++)t.sbox[i][e]=s[i][e]}let r=0;for(let s=0;s<i+2;s++)t.pbox[s]=a[s]^e[r],r++,r>=n&&(r=0);let o=0,c=0,l=0;for(let a=0;a<i+2;a+=2)l=u(t,o,c),o=l.left,c=l.right,t.pbox[a]=o,t.pbox[a+1]=c;for(let i=0;i<4;i++)for(let e=0;e<256;e+=2)l=u(t,o,c),o=l.left,c=l.right,t.sbox[i][e]=o,t.sbox[i][e+1]=c;return!0}var p=o.Blowfish=r.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4;d(c,e,n)}},encryptBlock:function(t,e){var n=u(c,t[e],t[e+1]);t[e]=n.left,t[e+1]=n.right},decryptBlock:function(t,e){var n=f(c,t[e],t[e+1]);t[e]=n.left,t[e+1]=n.right},blockSize:2,keySize:4,ivSize:2});e.Blowfish=r._createHelper(p)}(),t.Blowfish}))},"2b25":function(t,e,n){(function(e,r){t.exports=r(n("bf17"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.WordArray,o=n.Hasher,i=e.algo,a=[],s=i.SHA1=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],c=n[4],l=0;l<80;l++){if(l<16)a[l]=0|t[e+l];else{var u=a[l-3]^a[l-8]^a[l-14]^a[l-16];a[l]=u<<1|u>>>31}var f=(r<<5|r>>>27)+c+a[l];f+=l<20?1518500249+(o&i|~o&s):l<40?1859775393+(o^i^s):l<60?(o&i|o&s|i&s)-1894007588:(o^i^s)-899497514,c=s,s=i,i=o<<30|o>>>2,o=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+c|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=o._createHelper(s),e.HmacSHA1=o._createHmacHelper(s)}(),t.SHA1}))},"2b76":function(t,e,n){},"2d21":function(t,e,n){},"2e09":function(t,e,n){},"2f4d":function(t,e,n){"use strict";n("3cd6")},3352:function(t,e,n){},"336c":function(t,e){t.exports=n},3593:function(t,e){},"37ad":function(t,e,n){},"37eb":function(t,e,n){!function(e,r){t.exports=r(n("788a"))}(0,(function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=2)}([function(e,n){e.exports=t},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),o=n.n(r),i=n(6),a=n(5),s=a(o.a,i.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.install=e.quillEditor=e.Quill=void 0;var o=n(0),i=r(o),a=n(1),s=r(a),c=window.Quill||i.default,l=function(t,e){e&&(s.default.props.globalOptions.default=function(){return e}),t.component(s.default.name,s.default)},u={Quill:c,quillEditor:s.default,install:l};e.default=u,e.Quill=c,e.quillEditor=s.default,e.install=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert text here ...",readOnly:!1}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),a=n(3),s=r(a),c=window.Quill||i.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},writable:!0,configurable:!0}),e.default={name:"quill-editor",data:function(){return{_options:{},_content:"",defaultOptions:s.default}},props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},mounted:function(){this.initialize()},beforeDestroy:function(){this.quill=null,delete this.quill},methods:{initialize:function(){var t=this;this.$el&&(this._options=Object.assign({},this.defaultOptions,this.globalOptions,this.options),this.quill=new c(this.$refs.editor,this._options),this.quill.enable(!1),(this.value||this.content)&&this.quill.pasteHTML(this.value||this.content),this.disabled||this.quill.enable(!0),this.quill.on("selection-change",(function(e){e?t.$emit("focus",t.quill):t.$emit("blur",t.quill)})),this.quill.on("text-change",(function(e,n,r){var o=t.$refs.editor.children[0].innerHTML,i=t.quill,a=t.quill.getText();"<p><br></p>"===o&&(o=""),t._content=o,t.$emit("input",t._content),t.$emit("change",{html:o,text:a,quill:i})})),this.$emit("ready",this.quill))}},watch:{content:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},value:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},disabled:function(t,e){this.quill&&this.quill.enable(!t)}}}},function(t,e){t.exports=function(t,e,n,r,o,i){var a,s=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(a=t,s=t.default);var l,u="function"==typeof s?s.options:s;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId=o),i?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=l):r&&(l=r),l){var f=u.functional,d=f?u.render:u.beforeCreate;f?(u._injectStyles=l,u.render=function(t,e){return l.call(e),d(t,e)}):u.beforeCreate=d?[].concat(d,l):[l]}return{esModule:a,exports:s,options:u}}},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"quill-editor"},[t._t("toolbar"),t._v(" "),n("div",{ref:"editor"})],2)},o=[],i={render:r,staticRenderFns:o};e.a=i}])}))},3815:function(t,e,n){},3968:function(t,e,n){"use strict";n("3352")},"3aaf":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,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 i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return e=s(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){var e=c(t,"string");return"symbol"==r(e)?e:String(e)}function c(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)}var l=function(){var t=this,e=t._self._c;return e(t.options.component,t._g(t._b({tag:"component",scopedSlots:t._u([{key:"title",fn:function(){return[t._t("title",(function(){return[t._v(t._s(t.title))]}))]},proxy:!0},t.$slots.footer?{key:"footer",fn:function(){return[t._t("footer")]},proxy:!0}:null],null,!0)},"component",i(i({},t.options),t.$attrs),!1),t.$listeners),[t._t("default")],2)},u=[],f={props:{type:{type:String,enum:["modal","drawer","fullscreen"],default:"modal"},title:{type:String},committing:{type:Boolean,default:!1},width:{type:String},footer:{type:String}},data:function(){return{modalOptions:{component:"a-modal",width:"750px",bodyStyle:{maxHeight:this.width||"500px",overflowY:"auto"},centered:!0,footer:this.footer,maskClosable:!1},fullscreenOptions:{component:"a-modal",width:"100%",bodyStyle:{height:this.footer&&"hide"===this.footer?"".concat(document.body.clientHeight-53,"px"):"".concat(document.body.clientHeight-108,"px"),overflowY:"auto"},dialogStyle:{padding:0},centered:!0,footer:this.footer},drawerOptions:{component:"a-drawer",width:this.width||"750px",destroyOnClose:!0,bodyStyle:{padding:0},footer:this.footer},viewOptions:{component:"div"}}},computed:{options:function(){return this["".concat(this.type,"Options")]}}},d=f,p=n("a6c2"),h=Object(p["a"])(d,l,u,!1,null,null,null);e["a"]=h.exports},"3cd6":function(t,e,n){},"3d8a":function(t,e,n){"use strict";var r=function(){var t=this,e=t._self._c;return e("layout-view-blank",{tag:"component"},[e("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:t.loading,delay:100}},["multiple"===t.pickerMode?t._l(t.selections,(function(n){return e("a-tag",{key:n[t.idName],attrs:{closable:""},on:{close:function(e){return t.handleRemove(n)}}},[t._v(" "+t._s(n[t.titleName||t.idName])+" ")])})):t._e(),e("keep-alive",[t.loading?t._e():e(t.createView,t._g(t._b({ref:"view",tag:"component",attrs:{pageKey:t.pageKey,viewKey:t.viewKey,pickerMode:t.pickerMode,mode:t.mode,layout:"layout-view-model-list-embed"},on:{selected:t.handleSelected}},"component",t.$attrs,!1),t.$listeners))],1)],2)],1)},o=[],i={props:{schema:{type:Object},pickerMode:{type:String,enum:["single","multiple"],default:"single"},mode:{type:String,default:"picker"}}},a=n("0959"),s=n("f9a7"),c=n("c246");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(t){return h(t)||p(t)||d(t)||f()}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(t,e){if(t){if("string"===typeof t)return v(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)?v(t,e):void 0}}function p(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function h(t){if(Array.isArray(t))return v(t)}function v(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 m(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */m=function(){return e};var t,e={},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 u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function f(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 d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",h="suspendedYield",v="executing",y="completed",g={};function b(){}function w(){}function _(){}var x={};u(x,a,(function(){return this}));var k=Object.getPrototypeOf,O=k&&k(k(T([])));O&&O!==n&&r.call(O,a)&&(x=O);var E=_.prototype=b.prototype=Object.create(x);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,a,s){var c=d(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=p;return function(i,a){if(o===v)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===p)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var l=d(e,n,r);if("normal"===l.type){if(o=r.done?y:h,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=d(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(E,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:w,configurable:!0}),w.displayName=u(_,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__=_,u(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(j.prototype),u(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(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),u(E,c,"Generator"),u(E,a,(function(){return this})),u(E,"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 y(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 g(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){y(i,r,o,a,s,"next",t)}function s(t){y(i,r,o,a,s,"throw",t)}a(void 0)}))}}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={mixins:[i],components:w({},c["a"]),data:function(){return{pageKey:null,viewKey:null,storeNamespace:null,loading:!0,selections:[],idName:"",titleName:""}},created:function(){this.initView()},computed:{createView:function(){return{extends:Object(a["a"])(c["a"].ModelList)("".concat(this.storeNamespace))}}},methods:{create:a["a"],initView:function(){var t=this;return g(m().mark((function e(){var n,r,o;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.schema.configs.find((function(t){return"picker.view"===t.key})),r=n?n.value:"",o="p-".concat(r),t.$store.hasModule(o)){e.next=7;break}return Object(s["a"])(t.$store,o,!0),e.next=7,t.$store.dispatch("".concat(o,"/loadSchema"));case 7:t.pageKey=r,t.viewKey=r,t.storeNamespace="v-".concat(r),t.loading=!1;case 11:case"end":return e.stop()}}),e)})))()},handleSelected:function(t){this.idName=this.$refs.view.idName,this.titleName=this.$refs.view.titleName,this.selections="multiple"===this.pickerMode&&"picker"!==this.$refs.view.mode?Array.from(new Set([].concat(u(this.selections),u(t)).map((function(t){return JSON.stringify(t)})))).map((function(t){return JSON.parse(t)})):t,this.$emit("selected",this.selections)},handleRemove:function(t){var e=this.idName,n=this.selections,r=n.findIndex((function(n){return n[e]===t[e]}));-1!==r&&n.splice(r,1),this.$emit("selected",n)}}},E=O,S=n("a6c2"),j=Object(S["a"])(E,r,o,!1,null,null,null);e["a"]=j.exports},4048:function(t,e,n){},"45db":function(t,e,n){"use strict";n("93bb")},4927:function(t,e,n){"use strict";n("3815")},"49fc":function(t,e,n){},"4af3":function(t,e,n){},"4dd1":function(t,e,n){"use strict";n("cb5c")},"4dd6":function(t,e,n){"use strict";n("4eb0")},"4eb0":function(t,e,n){},"517c":function(t,e,n){},"521b":function(t,e,n){},5596:function(t,e,n){"use strict";n("7826")},"55ab":function(t,e,n){},"568c":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,e,n){return e=u(e),i(t,s()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}function i(t,e){if(e&&("object"===r(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a(t)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function c(){return c="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=l(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},c.apply(this,arguments)}function l(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=u(t),null===t)break;return t}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(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,m(r.key),r)}}function v(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),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)}var g=function(){function t(){p(this,t)}return v(t,[{key:"getNodeData",value:function(){throw new Error("【BusinessAdapter】 Not supported, Please override the method")}},{key:"verifyNodeData",value:function(t){throw new Error("【BusinessAdapter】 Not supported, Please override the method")}},{key:"verifyNode",value:function(t){throw new Error("【BusinessAdapter】 Not supported, Please override the method")}},{key:"saveNodeData",value:function(t){throw new Error("【BusinessAdapter】 Not supported, Please override the method")}},{key:"saveNode",value:function(t){throw new Error("【BusinessAdapter】 Not supported, Please override the method")}}],[{key:"getBusinessAdapter",value:function(){var e=function(t){function e(){return p(this,e),o(this,e,arguments)}return f(e,t),v(e,[{key:"getNodeData",value:function(t){return[]}},{key:"verifyNodeData",value:function(t){c(u(e.prototype),"verifyNodeData",this).call(this,t)}},{key:"verifyNode",value:function(t){c(u(e.prototype),"verifyNode",this).call(this,t)}},{key:"saveNode",value:function(t){c(u(e.prototype),"saveNode",this).call(this,t)}},{key:"saveNodeData",value:function(t){c(u(e.prototype),"saveNodeData",this).call(this,t)}}],[{key:"getBusinessAdapter",value:function(){return new e}}]),e}(t);return e.getBusinessAdapter()}}]),t}();e["a"]=g},"57eb":function(t,e,n){(function(e,r,o){t.exports=r(n("bf17"),n("2b25"),n("fb70"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.Base,o=n.WordArray,i=e.algo,a=i.MD5,s=i.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var n,r=this.cfg,i=r.hasher.create(),a=o.create(),s=a.words,c=r.keySize,l=r.iterations;while(s.length<c){n&&i.update(n),n=i.update(t).finalize(e),i.reset();for(var u=1;u<l;u++)n=i.finalize(n),i.reset();a.concat(n)}return a.sigBytes=4*c,a}});e.EvpKDF=function(t,e,n){return s.create(n).compute(t,e)}}(),t.EvpKDF}))},5880:function(t,e){t.exports=r},"5aeb":function(t,e){t.exports=o},"5c90":function(t,e,n){(function(e,r){t.exports=r(n("bf17"))})(0,(function(t){return function(e){var n=t,r=n.lib,o=r.Base,i=r.WordArray,a=n.x64={};a.Word=o.extend({init:function(t,e){this.high=t,this.low=e}}),a.WordArray=o.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var t=this.words,e=t.length,n=[],r=0;r<e;r++){var o=t[r];n.push(o.high),n.push(o.low)}return i.create(n,this.sigBytes)},clone:function(){for(var t=o.clone.call(this),e=t.words=this.words.slice(0),n=e.length,r=0;r<n;r++)e[r]=e[r].clone();return t}})}(),t}))},"609c":function(t,e,n){},6162:function(t,e,n){"use strict";n("1881")},6389:function(t,e){t.exports=i},"67ae":function(t,e,n){(function(e,r,o){t.exports=r(n("bf17"),n("5c90"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.Hasher,o=e.x64,i=o.Word,a=o.WordArray,s=e.algo;function c(){return i.create.apply(i,arguments)}var l=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],u=[];(function(){for(var t=0;t<80;t++)u[t]=c()})();var f=s.SHA512=r.extend({_doReset:function(){this._hash=new a.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],c=n[5],f=n[6],d=n[7],p=r.high,h=r.low,v=o.high,m=o.low,y=i.high,g=i.low,b=a.high,w=a.low,_=s.high,x=s.low,k=c.high,O=c.low,E=f.high,S=f.low,j=d.high,N=d.low,L=p,P=h,C=v,A=m,T=y,R=g,D=b,I=w,M=_,q=x,F=k,$=O,B=E,V=S,H=j,U=N,G=0;G<80;G++){var z,K,Y=u[G];if(G<16)K=Y.high=0|t[e+2*G],z=Y.low=0|t[e+2*G+1];else{var W=u[G-15],J=W.high,Z=W.low,X=(J>>>1|Z<<31)^(J>>>8|Z<<24)^J>>>7,Q=(Z>>>1|J<<31)^(Z>>>8|J<<24)^(Z>>>7|J<<25),tt=u[G-2],et=tt.high,nt=tt.low,rt=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,ot=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),it=u[G-7],at=it.high,st=it.low,ct=u[G-16],lt=ct.high,ut=ct.low;z=Q+st,K=X+at+(z>>>0<Q>>>0?1:0),z+=ot,K=K+rt+(z>>>0<ot>>>0?1:0),z+=ut,K=K+lt+(z>>>0<ut>>>0?1:0),Y.high=K,Y.low=z}var ft=M&F^~M&B,dt=q&$^~q&V,pt=L&C^L&T^C&T,ht=P&A^P&R^A&R,vt=(L>>>28|P<<4)^(L<<30|P>>>2)^(L<<25|P>>>7),mt=(P>>>28|L<<4)^(P<<30|L>>>2)^(P<<25|L>>>7),yt=(M>>>14|q<<18)^(M>>>18|q<<14)^(M<<23|q>>>9),gt=(q>>>14|M<<18)^(q>>>18|M<<14)^(q<<23|M>>>9),bt=l[G],wt=bt.high,_t=bt.low,xt=U+gt,kt=H+yt+(xt>>>0<U>>>0?1:0),Ot=(xt=xt+dt,kt=kt+ft+(xt>>>0<dt>>>0?1:0),xt=xt+_t,kt=kt+wt+(xt>>>0<_t>>>0?1:0),xt=xt+z,kt=kt+K+(xt>>>0<z>>>0?1:0),mt+ht),Et=vt+pt+(Ot>>>0<mt>>>0?1:0);H=B,U=V,B=F,V=$,F=M,$=q,q=I+xt|0,M=D+kt+(q>>>0<I>>>0?1:0)|0,D=T,I=R,T=C,R=A,C=L,A=P,P=xt+Ot|0,L=kt+Et+(P>>>0<xt>>>0?1:0)|0}h=r.low=h+P,r.high=p+L+(h>>>0<P>>>0?1:0),m=o.low=m+A,o.high=v+C+(m>>>0<A>>>0?1:0),g=i.low=g+R,i.high=y+T+(g>>>0<R>>>0?1:0),w=a.low=w+I,a.high=b+D+(w>>>0<I>>>0?1:0),x=s.low=x+q,s.high=_+M+(x>>>0<q>>>0?1:0),O=c.low=O+$,c.high=k+F+(O>>>0<$>>>0?1:0),S=f.low=S+V,f.high=E+B+(S>>>0<V>>>0?1:0),N=d.low=N+U,d.high=j+H+(N>>>0<U>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(r+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process();var o=this._hash.toX32();return o},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=r._createHelper(f),e.HmacSHA512=r._createHmacHelper(f)}(),t.SHA512}))},"690b":function(t,e,n){},"6d57":function(t,e,n){"use strict";n("4af3")},7144:function(t,e,n){(function(e,r,o){t.exports=r(n("bf17"),n("f97e"),n("a638"),n("57eb"),n("023d"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.BlockCipher,o=e.algo,i=[],a=[],s=[],c=[],l=[],u=[],f=[],d=[],p=[],h=[];(function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,r=0;for(e=0;e<256;e++){var o=r^r<<1^r<<2^r<<3^r<<4;o=o>>>8^255&o^99,i[n]=o,a[o]=n;var v=t[n],m=t[v],y=t[m],g=257*t[o]^16843008*o;s[n]=g<<24|g>>>8,c[n]=g<<16|g>>>16,l[n]=g<<8|g>>>24,u[n]=g;g=16843009*y^65537*m^257*v^16843008*n;f[o]=g<<24|g>>>8,d[o]=g<<16|g>>>16,p[o]=g<<8|g>>>24,h[o]=g,n?(n=v^t[t[t[y^v]]],r^=t[t[r]]):n=r=1}})();var v=[0,1,2,4,8,16,32,64,128,27,54],m=o.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,r=this._nRounds=n+6,o=4*(r+1),a=this._keySchedule=[],s=0;s<o;s++)s<n?a[s]=e[s]:(u=a[s-1],s%n?n>6&&s%n==4&&(u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u]):(u=u<<8|u>>>24,u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u],u^=v[s/n|0]<<24),a[s]=a[s-n]^u);for(var c=this._invKeySchedule=[],l=0;l<o;l++){s=o-l;if(l%4)var u=a[s];else u=a[s-4];c[l]=l<4||s<=4?u:f[i[u>>>24]]^d[i[u>>>16&255]]^p[i[u>>>8&255]]^h[i[255&u]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,c,l,u,i)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,f,d,p,h,a);n=t[e+1];t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,o,i,a,s){for(var c=this._nRounds,l=t[e]^n[0],u=t[e+1]^n[1],f=t[e+2]^n[2],d=t[e+3]^n[3],p=4,h=1;h<c;h++){var v=r[l>>>24]^o[u>>>16&255]^i[f>>>8&255]^a[255&d]^n[p++],m=r[u>>>24]^o[f>>>16&255]^i[d>>>8&255]^a[255&l]^n[p++],y=r[f>>>24]^o[d>>>16&255]^i[l>>>8&255]^a[255&u]^n[p++],g=r[d>>>24]^o[l>>>16&255]^i[u>>>8&255]^a[255&f]^n[p++];l=v,u=m,f=y,d=g}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&d])^n[p++],m=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[255&l])^n[p++],y=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^n[p++],g=(s[d>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^n[p++];t[e]=v,t[e+1]=m,t[e+2]=y,t[e+3]=g},keySize:8});e.AES=r._createHelper(m)}(),t.AES}))},7826:function(t,e,n){},"784f":function(t,e,n){},"788a":function(t,e,n){(function(e){
|
|
10
10
|
/*!
|
|
11
11
|
* Quill Editor v1.3.7
|
|
12
12
|
* https://quilljs.com/
|
|
@@ -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,E,S,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],E=w=N[3],S=_=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,E)+P[0]:n<32?y(k,O,E)+P[1]:n<48?m(k,O,E)+P[2]:n<64?v(k,O,E)+P[3]:h(k,O,E)+P[4],j|=0,j=b(j,R[n]),j=j+S|0,x=S,S=E,E=b(O,10),O=k,k=j;j=N[1]+p+E|0,N[1]=N[2]+w+S|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 E=_.prototype=b.prototype=Object.create(x);function S(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(E,"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(E),t},e.awrap=function(t){return{__await:t}},S(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()}))},S(E),f(E,l,"Generator"),f(E,s,(function(){return this})),f(E,"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 E=_.prototype=b.prototype=Object.create(x);function S(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(E,"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(E),t},e.awrap=function(t){return{__await:t}},S(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()}))},S(E),f(E,c,"Generator"),f(E,a,(function(){return this})),f(E,"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}}},E={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 S(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,getCheckboxProps:function(e){var n=!0,r=t.configs["list.row.selectable"];if(r){var o=new Function(Object.keys(e),"return "+r);n=o.apply(void 0,S(Object.values(e)))}return{props:{disabled:!n}}},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(S(this.selections),S(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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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 Et(t){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(t)}function St(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */St=function(){return e};var t,e={},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:S(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 E(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"==Et(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 S(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(Et(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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(St().mark((function t(){return St().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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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,E,S;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)}))},E=i.map((function(t){return O(t)})),S="summary"===w.type?E[0]:E.join(","),n.$confirm({title:"请再次确认以下信息,确认无误后提交!",content:"".concat(S,"。"),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))}}}},Ee=Oe,Se=Object(Kt["a"])(Ee,_e,xe,!1,null,null,null),je=Se.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,E],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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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 En(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 Sn(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)?Sn(t,e):void 0}}function On(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function En(t){if(Array.isArray(t))return Sn(t)}function Sn(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 Sr(t)||Er(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 Er(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Sr(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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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 Eo={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}}},So=Eo,jo=Object(Kt["a"])(So,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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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=[],Ei=[],Si=[],ji=[],Ni=1901;Ni<=2030;Ni++)Oi.push("".concat(Ni));for(var Li=1;Li<=12;Li++)Ei.push(Li<10?"0".concat(Li):"".concat(Li));for(var Pi=0;Pi<=23;Pi++)Si.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:Ei,month:"01",day:"01",hours:Si,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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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 Ea(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 Sa(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?Sa(Object(n),!0).forEach((function(e){Na(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sa(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 Ea(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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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 Es(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ss(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&&Ss(t.prototype,e),n&&Ss(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){Es(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,r,o=this,i=this,a=i._self._c;return a("a-form-model",{ref:"form",staticStyle:{"min-height":"400px"},attrs:{model:i.actionModel,rules:i.rules}},[a("a-spin",{attrs:{spinning:i.loading}},[a("a-tabs",{on:{change:function(){return o.$refs.nodeContainer.toMiddle()}},model:{value:i.paneKey,callback:function(t){i.paneKey=t},expression:"paneKey"}},[i.paneSet.has("1")&&this.currentNode?a("a-tab-pane",{key:"1",attrs:{tab:"操作"}},[i.OPERATE.CHECK===i.workflowReq.operate?a("a-radio-group",{staticStyle:{"margin-bottom":"10px"},on:{change:function(t){return i.loadTodo()}},model:{value:i.workflowReq.page_operate.action,callback:function(t){i.$set(i.workflowReq.page_operate,"action",t)},expression:"workflowReq.page_operate.action"}},["check"===i.currentNode.type?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.PASS}},[i._v(" "+i._s(null!==(t=i.currentNode.data.other_options)&&void 0!==t&&null!==(t=t.custom_action)&&void 0!==t&&t.pass?i.currentNode.data.other_options.custom_action.pass:"审批通过")+" ")]):i._e(),i.runtimeData.pageOperate.allowBack?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.BACK}},[i._v(" "+i._s(null!==(e=i.currentNode.data.other_options)&&void 0!==e&&null!==(e=e.custom_action)&&void 0!==e&&e.pass?i.currentNode.data.other_options.custom_action.back:" 审批退回")+" ")]):i._e(),"task"===i.currentNode.type?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.EXECUTE}},[i._v(" "+i._s(null!==(n=i.currentNode.data.other_options)&&void 0!==n&&null!==(n=n.custom_action)&&void 0!==n&&n.execute?i.currentNode.data.other_options.custom_action.execute:"执行")+" ")]):i._e(),"task"===i.currentNode.type?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.PREEXECUTE}},[i._v(" "+i._s(null!==(r=i.currentNode.data.other_options)&&void 0!==r&&null!==(r=r.custom_action)&&void 0!==r&&r.preexecute?i.currentNode.data.other_options.custom_action.preexecute:"暂存")+" ")]):i._e(),i.runtimeData.pageOperate.allowReassign?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.REASSIGN}},[i._v(" 转办 ")]):i._e(),i.runtimeData.pageOperate.allowInvolve?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.INVOLVE}},[i._v(" 加签 ")]):i._e(),i.runtimeData.pageOperate.allowEnd?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.END}},[i._v(" 结束 ")]):i._e()],1):i._e(),(i.workflowReq.operate===i.OPERATE.START||i.workflowReq.operate===i.OPERATE.CHECK&&[i.CHECK_ACTION.PASS,i.CHECK_ACTION.EXECUTE,i.CHECK_ACTION.PREEXECUTE].includes(i.workflowReq.page_operate.action))&&i.runtimeData.currentNodeFormItem&&i.runtimeData.currentNodeFormItem.length?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[i._l(i.runtimeData.currentNodeFormItem,(function(t){return[t?a("Item",{key:t.name,attrs:{formModel:i.actionModel,params:{},prop:t.name,required:t.required,schema:t},on:{change:function(e){return i.handleItemChange(e,t)}},model:{value:i.actionModel[t.name],callback:function(e){i.$set(i.actionModel,t.name,e)},expression:"actionModel[attr.name]"}}):i._e()]}))],2)],1):i._e(),i.OPERATE.CHECK===i.workflowReq.operate?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-form-model-item",{attrs:{label:[i.CHECK_ACTION.REASSIGN,i.CHECK_ACTION.INVOLVE,i.CHECK_ACTION.END,i.CHECK_ACTION.BACK].includes(i.workflowReq.page_operate.action)||"task"===i.currentNode.type?"备注":"审批意见",prop:"xxx",size:"small"}},[a("a-textarea",{attrs:{"auto-size":{minRows:4,maxRows:6},placeholder:"请输入".concat([i.CHECK_ACTION.REASSIGN,i.CHECK_ACTION.INVOLVE,i.CHECK_ACTION.END].includes(i.workflowReq.page_operate.action)||"task"===i.currentNode.type?"备注":"审批或退回意见")},model:{value:i.workflowReq.page_operate.operate_content,callback:function(t){i.$set(i.workflowReq.page_operate,"operate_content",t)},expression:"workflowReq.page_operate.operate_content"}})],1)],1):i._e(),i.isCustomBack&&i.OPERATE.CHECK===i.workflowReq.operate&&i.workflowReq.page_operate.action===i.CHECK_ACTION.BACK?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-form-model-item",{attrs:{label:"退回步骤",prop:"xxx",size:"small"}},[a("a-select",{model:{value:i.workflowReq.page_operate.custom_back_node_code,callback:function(t){i.$set(i.workflowReq.page_operate,"custom_back_node_code",t)},expression:"workflowReq.page_operate.custom_back_node_code"}},i._l(i.currentNode.data.custom_back_nodes,(function(t){return a("a-select-option",{key:t,attrs:{value:t}},[i._v(" "+i._s(i.nodeHandler.getNode(t).name)+" ")])})),1)],1)],1):i._e(),i.runtimeData.todos&&i.runtimeData.todos.length&&(i.OPERATE.START===i.workflowReq.operate||i.OPERATE.CHECK===i.workflowReq.operate&&(i.workflowReq.page_operate.action===i.CHECK_ACTION.PASS||i.workflowReq.page_operate.action===i.CHECK_ACTION.BACK&&"bpmn"===i.currentNode.data.back_type))?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{size:"small",title:"后续步骤"}},[i.runtimeData.todos&&i.runtimeData.todos.length?a("a-tabs",{attrs:{"tab-position":"top"},model:{value:i.currentTodo,callback:function(t){i.currentTodo=t},expression:"currentTodo"}},i._l(i.runtimeData.todos,(function(t){var e,n,r,o,s,c,l,u;return a("a-tab-pane",{key:t.node_code,attrs:{disabled:!i.availableTodo(t),tab:null!==(e=null===(n=i.nodeHandler.getNode(t.node_code))||void 0===n?void 0:n.name)&&void 0!==e?e:"-"}},[i.availableTodo(t)?a("div",{staticClass:"actors"},[a("div",{staticStyle:{width:"60%"}},[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(e){return i.filterTodoItemActors(e,t)}}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":t.actorsf.value,pagination:!1,"row-selection":null!==(r=t.optional)&&void 0!==r&&r.enable?{type:t.optional.multi?"checkbox":"radio",selectedRowKeys:t.selected,onChange:function(e){t.selected=e}}:null,rowKey:"uid",size:"middle"}})],1),a("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{title:(null!==(o={queue:"依次",orsign:"或签",sign:"会签"}[null!==(s=t.optional)&&void 0!==s&&s.enable&&null!==(c=t.optional)&&void 0!==c&&c.multi||(null===(l=t.optional)||void 0===l||!l.enable)&&t.actorsf.value.length>=2?null===t||void 0===t?void 0:t.actor_check_mode:""])&&void 0!==o?o:"")+"执行人列表",size:"small"}},[a("draggable",{attrs:{disabled:!("queue"===(null===t||void 0===t?void 0:t.actor_check_mode)&&null!==(u=t.optional)&&void 0!==u&&u.enable),animation:"100",chosenClass:"chosen"},model:{value:t.selected,callback:function(e){i.$set(t,"selected",e)},expression:"item.selected"}},[a("transition-group",{attrs:{name:"flip-list",type:"transition"}},[t.selected&&null!==t&&void 0!==t&&t.selected.length?i._l(t.selected,(function(t){return a("div",{key:t,staticClass:"item"},[i._v(" "+i._s(i.userCache[t])+" ")])})):i._e()],2)],1)],1)],1):i._e()])})),1):i._e()],1)],1):i._e(),i.OPERATE.CHECK===i.workflowReq.operate&&i.workflowReq.page_operate.action===i.CHECK_ACTION.REASSIGN?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{size:"small",title:"转办执行人"}},[a("div",{staticClass:"actors"},[a("div",{staticStyle:{width:"60%"}},[i.runtimeData.reassign.actors?[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(t){return i.reassignUserFilter=t}}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.filterActors(i.reassignUserFilter,i.runtimeData.reassign.actors),pagination:!1,"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.reassign.selected,onChange:function(t){i.runtimeData.reassign.selected=t}},rowKey:"uid",size:"middle"}})]:[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(){i.reassignUserPagination.current=1,i.handleTableChangeReassignUser(i.reassignUserPagination)}},model:{value:i.reassignUserFilter,callback:function(t){i.reassignUserFilter=t},expression:"reassignUserFilter"}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.reassignUserData,loading:i.loadingReassignUser,pagination:i.reassignUserPagination,"row-key":function(t){return t.uid},"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.reassign.selected,onChange:function(t){o.reassignUserData.filter((function(e){return t.includes(e.uid)})).forEach((function(t){return i.userCache[t.uid]="".concat(t.name,"(").concat(t.org_name,")")})),i.runtimeData.reassign.selected=t}}},on:{change:i.handleTableChangeReassignUser}})]],2),a("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{size:"small",title:"转办人"}},[a("draggable",{attrs:{disabled:!0,chosenClass:"chosen"},model:{value:i.runtimeData.reassign.selected,callback:function(t){i.$set(i.runtimeData.reassign,"selected",t)},expression:"runtimeData.reassign.selected"}},[a("transition-group",i._l(i.runtimeData.reassign.selected,(function(t){return a("div",{key:t,staticClass:"item"},[i._v(" "+i._s(i.userCache[t])+" ")])})),0)],1)],1)],1)])],1):i._e(),i.OPERATE.CHECK===i.workflowReq.operate&&i.workflowReq.page_operate.action===i.CHECK_ACTION.INVOLVE?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{size:"small",title:"加签执行人"}},[a("div",{staticClass:"actors"},[a("div",{staticStyle:{width:"60%"}},[i.runtimeData.involve.actors?[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(t){return i.involveUserFilter=t}}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.filterActors(i.involveUserFilter,i.runtimeData.involve.actors),pagination:!1,"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.involve.selected,onChange:function(t){i.runtimeData.involve.selected=t}},rowKey:"uid",size:"middle"}})]:[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(){i.involveUserPagination.current=1,i.handleTableChangeInvolveUser(i.involveUserPagination)}},model:{value:i.involveUserFilter,callback:function(t){i.involveUserFilter=t},expression:"involveUserFilter"}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.involveUserData,loading:i.loadingInvolveUser,pagination:i.involveUserPagination,"row-key":function(t){return t.uid},"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.involve.selected,onChange:function(t){o.involveUserData.filter((function(e){return t.includes(e.uid)})).forEach((function(t){return i.userCache[t.uid]="".concat(t.name,"(").concat(t.org_name,")")})),i.runtimeData.involve.selected=t}}},on:{change:i.handleTableChangeInvolveUser}})]],2),a("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{size:"small",title:"加签人"}},[a("draggable",{attrs:{disabled:!0,chosenClass:"chosen"},model:{value:i.runtimeData.involve.selected,callback:function(t){i.$set(i.runtimeData.involve,"selected",t)},expression:"runtimeData.involve.selected"}},[a("transition-group",i._l(i.runtimeData.involve.selected,(function(t){return a("div",{key:t,staticClass:"item"},[i._v(" "+i._s(i.userCache[t])+" ")])})),0)],1)],1)],1)])],1):i._e()],1):i._e(),i.paneSet.has("2")?a("a-tab-pane",{key:"2",attrs:{"force-render":"",tab:"操作记录"}},[a("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[a("a-list",{attrs:{dataSource:this.runtimeData.logList},scopedSlots:i._u([{key:"renderItem",fn:function(t){return a("a-list-item",{},[a("a-list-item-meta",[a("strong",{attrs:{slot:"title"},slot:"title"},[i._v(" "+i._s(t.node_name)+" "),a("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 i.showOperateData(t)}}})],1),i.$store.state.app.icon?a("a-avatar",{attrs:{slot:"avatar",src:i.$store.state.app.icon},slot:"avatar"}):a("a-avatar",{attrs:{slot:"avatar",icon:"user"},slot:"avatar"}),a("a-space",{attrs:{slot:"description",direction:"vertical"},slot:"description"},[a("div",[i._v(i._s(t.operate_desc))]),t.operate_content?a("div",[[i.CHECK_ACTION.REASSIGN,i.CHECK_ACTION.INVOLVE,i.CHECK_ACTION.END,i.CHECK_ACTION.EXECUTE].includes(t.operate)?a("div",[i._v(" 备注:"+i._s(t.operate_content)+" ")]):a("div",[i._v(" 审批意见:"+i._s(t.operate_content)+" ")])]):i._e(),a("a-space",[a("span",{staticStyle:{color:"#18274a"}},[a("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"clock-circle-o"}}),i._v(" "+i._s(i.moment(t.create_time).format("YYYY-MM-DD HH:mm"))+" ")],1),a("a-divider",{attrs:{type:"vertical"}}),a("span",{staticStyle:{color:"#18274a"}},[a("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"user"}}),i._v(" "+i._s(t.operator.name)+"("+i._s(t.operator.org_name)+") ")],1)],1)],1)],1)],1)}}],null,!1,542072683)})],1)],1):i._e(),i.paneSet.has("3")?a("a-tab-pane",{key:"3",attrs:{tab:"流程图"}},[a("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[a("div",{staticStyle:{position:"absolute","z-index":"999"}},[a("a-button",{directives:[{name:"show",rawName:"v-show",value:!i.fullscreenLoading,expression:"!fullscreenLoading"}],attrs:{icon:"arrows-alt",type:"link"},on:{click:i.showFullScreenFlow}}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:i.fullscreenLoading,expression:"fullscreenLoading"}],attrs:{type:"loading-3-quarters"}})],1),i.initNodeContainer?a("NodeContainer",{ref:"nodeContainer",staticStyle:{"max-height":"350px"},attrs:{"business-adapter":i.businessAdapter,"default-zoom-scale":70,"hide-zoom":!0,"is-preview":!0,"node-data":i.nodeData,"runtime-data":i.runtimeData},on:{nodeHandlerReady:i.nodeHandlerReady,nodeHandlerChange:i.nodeHandlerChange}}):i._e()],1)],1):i._e()],1)],1),a("a-modal",{attrs:{title:"操作表单",visible:i.isShowOperateData,footer:null,width:"50%"},on:{cancel:i.hideOperateData}},[a("a-descriptions",{attrs:{bordered:"",column:{xxl:2,xl:2,lg:2,md:2,sm:2,xs:1}}},i._l(i.operateDataItems,(function(t){return a("a-descriptions-item",{key:t.id,attrs:{label:t.alias}},[i._v(" "+i._s(i.formatter(t,t.value,t))+" ")])})),1)],1),a("a-modal",{staticClass:"jjh-fullscreen",attrs:{bodyStyle:{height:"85vh","overflow-y":"scroll","padding-bottom":"0"},destroyOnClose:!0,"dialog-style":{top:"0px"},visible:i.fullscreen,title:"流程图",width:"100%"},on:{cancel:i.hideFullScreenFlow}},[i.initNodeContainer?a("NodeContainer",{ref:"nodeContainer1",attrs:{"business-adapter":i.businessAdapter,"is-preview":!0,"node-data":i.nodeData,"runtime-data":i.runtimeData}}):i._e(),a("template",{slot:"footer"},[a("a-button",{key:"back",on:{click:i.hideFullScreenFlow}},[i._v("关闭")])],1)],2)],1)},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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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",PREEXECUTE:"preexecute"},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),"check"===l.currentNodeType?t.workflowReq.page_operate.action=hc.PASS:t.workflowReq.page_operate.action=hc.EXECUTE,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 45:case"end":return e.stop()}}),e)})))()},methods:{filterTodoItemActors:function(t,e){e.actorsf.value=this.filterActors(t,e.actors)},filterActors:function(t,e){return t?e.filter((function(e){return e.name.toString().toLowerCase().includes(t.toLowerCase())})):e},handleTableChangeReassignUser:function(t){var e=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,l;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,l=e.runtimeData.currentNodeOperateData,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]=l?l[t.attrCode]:null)),n})).filter((function(t){return t})),console.log("currentNodeFormItem",e.runtimeData.currentNodeFormItem),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 15: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("6162"),Object(Kt["a"])(mc,zs,Ks,!1,null,"02b06e17",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=Ec(t,"string");return"symbol"==wc(e)?e:String(e)}function Ec(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 Sc={mixins:[i,a,Xr],components:xc({},bc)},jc=Sc,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,E,S,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],E=w=N[3],S=_=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,E)+P[0]:n<32?y(k,O,E)+P[1]:n<48?m(k,O,E)+P[2]:n<64?v(k,O,E)+P[3]:h(k,O,E)+P[4],j|=0,j=b(j,R[n]),j=j+S|0,x=S,S=E,E=b(O,10),O=k,k=j;j=N[1]+p+E|0,N[1]=N[2]+w+S|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 E=_.prototype=b.prototype=Object.create(x);function S(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(E,"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(E),t},e.awrap=function(t){return{__await:t}},S(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()}))},S(E),f(E,l,"Generator"),f(E,s,(function(){return this})),f(E,"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 E=_.prototype=b.prototype=Object.create(x);function S(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(E,"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(E),t},e.awrap=function(t){return{__await:t}},S(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()}))},S(E),f(E,c,"Generator"),f(E,a,(function(){return this})),f(E,"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}}},E={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 S(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,getCheckboxProps:function(e){var n=!0,r=t.configs["list.row.selectable"];if(r){var o=new Function(Object.keys(e),"return "+r);n=o.apply(void 0,S(Object.values(e)))}return{props:{disabled:!n}}},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(S(this.selections),S(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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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 Et(t){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(t)}function St(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */St=function(){return e};var t,e={},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:S(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 E(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"==Et(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 S(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(Et(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},O(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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(St().mark((function t(){return St().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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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,E,S;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)}))},E=i.map((function(t){return O(t)})),S="summary"===w.type?E[0]:E.join(","),n.$confirm({title:"请再次确认以下信息,确认无误后提交!",content:"".concat(S,"。"),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))}}}},Ee=Oe,Se=Object(Kt["a"])(Ee,_e,xe,!1,null,null,null),je=Se.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,E],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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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,e=this.model.attrs.filter((function(e){var n=e.params,r=void 0===n?{}:n,o=r.show;return!["all"].includes(e.hidden)&&"model"!==e.metaType&&"link"!==e.type&&(!o||Object(T["a"])(o,t.profile))}));return e},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 En(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 Sn(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)?Sn(t,e):void 0}}function On(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function En(t){if(Array.isArray(t))return Sn(t)}function Sn(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 Sr(t)||Er(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 Er(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Sr(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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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 Eo={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}}},So=Eo,jo=Object(Kt["a"])(So,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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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=[],Ei=[],Si=[],ji=[],Ni=1901;Ni<=2030;Ni++)Oi.push("".concat(Ni));for(var Li=1;Li<=12;Li++)Ei.push(Li<10?"0".concat(Li):"".concat(Li));for(var Pi=0;Pi<=23;Pi++)Si.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:Ei,month:"01",day:"01",hours:Si,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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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 Ea(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 Sa(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?Sa(Object(n),!0).forEach((function(e){Na(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sa(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 Ea(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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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 Es(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ss(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&&Ss(t.prototype,e),n&&Ss(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){Es(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,r,o=this,i=this,a=i._self._c;return a("a-form-model",{ref:"form",staticStyle:{"min-height":"400px"},attrs:{model:i.actionModel,rules:i.rules}},[a("a-spin",{attrs:{spinning:i.loading}},[a("a-tabs",{on:{change:function(){return o.$refs.nodeContainer.toMiddle()}},model:{value:i.paneKey,callback:function(t){i.paneKey=t},expression:"paneKey"}},[i.paneSet.has("1")&&this.currentNode?a("a-tab-pane",{key:"1",attrs:{tab:"操作"}},[i.OPERATE.CHECK===i.workflowReq.operate?a("a-radio-group",{staticStyle:{"margin-bottom":"10px"},on:{change:function(t){return i.loadTodo()}},model:{value:i.workflowReq.page_operate.action,callback:function(t){i.$set(i.workflowReq.page_operate,"action",t)},expression:"workflowReq.page_operate.action"}},["check"===i.currentNode.type?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.PASS}},[i._v(" "+i._s(null!==(t=i.currentNode.data.other_options)&&void 0!==t&&null!==(t=t.custom_action)&&void 0!==t&&t.pass?i.currentNode.data.other_options.custom_action.pass:"审批通过")+" ")]):i._e(),i.runtimeData.pageOperate.allowBack?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.BACK}},[i._v(" "+i._s(null!==(e=i.currentNode.data.other_options)&&void 0!==e&&null!==(e=e.custom_action)&&void 0!==e&&e.pass?i.currentNode.data.other_options.custom_action.back:" 审批退回")+" ")]):i._e(),"task"===i.currentNode.type?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.EXECUTE}},[i._v(" "+i._s(null!==(n=i.currentNode.data.other_options)&&void 0!==n&&null!==(n=n.custom_action)&&void 0!==n&&n.execute?i.currentNode.data.other_options.custom_action.execute:"执行")+" ")]):i._e(),"task"===i.currentNode.type?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.PREEXECUTE}},[i._v(" "+i._s(null!==(r=i.currentNode.data.other_options)&&void 0!==r&&null!==(r=r.custom_action)&&void 0!==r&&r.preexecute?i.currentNode.data.other_options.custom_action.preexecute:"暂存")+" ")]):i._e(),i.runtimeData.pageOperate.allowReassign?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.REASSIGN}},[i._v(" 转办 ")]):i._e(),i.runtimeData.pageOperate.allowInvolve?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.INVOLVE}},[i._v(" 加签 ")]):i._e(),i.runtimeData.pageOperate.allowEnd?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.END}},[i._v(" 结束 ")]):i._e()],1):i._e(),(i.workflowReq.operate===i.OPERATE.START||i.workflowReq.operate===i.OPERATE.CHECK&&[i.CHECK_ACTION.PASS,i.CHECK_ACTION.EXECUTE,i.CHECK_ACTION.PREEXECUTE].includes(i.workflowReq.page_operate.action))&&i.runtimeData.currentNodeFormItem&&i.runtimeData.currentNodeFormItem.length?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[i._l(i.runtimeData.currentNodeFormItem,(function(t){return[t?a("Item",{key:t.name,attrs:{formModel:i.actionModel,params:{},prop:t.name,required:t.required,schema:t},on:{change:function(e){return i.handleItemChange(e,t)}},model:{value:i.actionModel[t.name],callback:function(e){i.$set(i.actionModel,t.name,e)},expression:"actionModel[attr.name]"}}):i._e()]}))],2)],1):i._e(),i.OPERATE.CHECK===i.workflowReq.operate?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-form-model-item",{attrs:{label:[i.CHECK_ACTION.REASSIGN,i.CHECK_ACTION.INVOLVE,i.CHECK_ACTION.END,i.CHECK_ACTION.BACK].includes(i.workflowReq.page_operate.action)||"task"===i.currentNode.type?"备注":"审批意见",prop:"xxx",size:"small"}},[a("a-textarea",{attrs:{"auto-size":{minRows:4,maxRows:6},placeholder:"请输入".concat([i.CHECK_ACTION.REASSIGN,i.CHECK_ACTION.INVOLVE,i.CHECK_ACTION.END].includes(i.workflowReq.page_operate.action)||"task"===i.currentNode.type?"备注":"审批或退回意见")},model:{value:i.workflowReq.page_operate.operate_content,callback:function(t){i.$set(i.workflowReq.page_operate,"operate_content",t)},expression:"workflowReq.page_operate.operate_content"}})],1)],1):i._e(),i.isCustomBack&&i.OPERATE.CHECK===i.workflowReq.operate&&i.workflowReq.page_operate.action===i.CHECK_ACTION.BACK?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-form-model-item",{attrs:{label:"退回步骤",prop:"xxx",size:"small"}},[a("a-select",{model:{value:i.workflowReq.page_operate.custom_back_node_code,callback:function(t){i.$set(i.workflowReq.page_operate,"custom_back_node_code",t)},expression:"workflowReq.page_operate.custom_back_node_code"}},i._l(i.currentNode.data.custom_back_nodes,(function(t){return a("a-select-option",{key:t,attrs:{value:t}},[i._v(" "+i._s(i.nodeHandler.getNode(t).name)+" ")])})),1)],1)],1):i._e(),i.runtimeData.todos&&i.runtimeData.todos.length&&(i.OPERATE.START===i.workflowReq.operate||i.OPERATE.CHECK===i.workflowReq.operate&&(i.workflowReq.page_operate.action===i.CHECK_ACTION.PASS||i.workflowReq.page_operate.action===i.CHECK_ACTION.BACK&&"bpmn"===i.currentNode.data.back_type))?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{size:"small",title:"后续步骤"}},[i.runtimeData.todos&&i.runtimeData.todos.length?a("a-tabs",{attrs:{"tab-position":"top"},model:{value:i.currentTodo,callback:function(t){i.currentTodo=t},expression:"currentTodo"}},i._l(i.runtimeData.todos,(function(t){var e,n,r,o,s,c,l,u;return a("a-tab-pane",{key:t.node_code,attrs:{disabled:!i.availableTodo(t),tab:null!==(e=null===(n=i.nodeHandler.getNode(t.node_code))||void 0===n?void 0:n.name)&&void 0!==e?e:"-"}},[i.availableTodo(t)?a("div",{staticClass:"actors"},[a("div",{staticStyle:{width:"60%"}},[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(e){return i.filterTodoItemActors(e,t)}}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":t.actorsf.value,pagination:!1,"row-selection":null!==(r=t.optional)&&void 0!==r&&r.enable?{type:t.optional.multi?"checkbox":"radio",selectedRowKeys:t.selected,onChange:function(e){t.selected=e}}:null,rowKey:"uid",size:"middle"}})],1),a("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{title:(null!==(o={queue:"依次",orsign:"或签",sign:"会签"}[null!==(s=t.optional)&&void 0!==s&&s.enable&&null!==(c=t.optional)&&void 0!==c&&c.multi||(null===(l=t.optional)||void 0===l||!l.enable)&&t.actorsf.value.length>=2?null===t||void 0===t?void 0:t.actor_check_mode:""])&&void 0!==o?o:"")+"执行人列表",size:"small"}},[a("draggable",{attrs:{disabled:!("queue"===(null===t||void 0===t?void 0:t.actor_check_mode)&&null!==(u=t.optional)&&void 0!==u&&u.enable),animation:"100",chosenClass:"chosen"},model:{value:t.selected,callback:function(e){i.$set(t,"selected",e)},expression:"item.selected"}},[a("transition-group",{attrs:{name:"flip-list",type:"transition"}},[t.selected&&null!==t&&void 0!==t&&t.selected.length?i._l(t.selected,(function(t){return a("div",{key:t,staticClass:"item"},[i._v(" "+i._s(i.userCache[t])+" ")])})):i._e()],2)],1)],1)],1):i._e()])})),1):i._e()],1)],1):i._e(),i.OPERATE.CHECK===i.workflowReq.operate&&i.workflowReq.page_operate.action===i.CHECK_ACTION.REASSIGN?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{size:"small",title:"转办执行人"}},[a("div",{staticClass:"actors"},[a("div",{staticStyle:{width:"60%"}},[i.runtimeData.reassign.actors?[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(t){return i.reassignUserFilter=t}}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.filterActors(i.reassignUserFilter,i.runtimeData.reassign.actors),pagination:!1,"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.reassign.selected,onChange:function(t){i.runtimeData.reassign.selected=t}},rowKey:"uid",size:"middle"}})]:[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(){i.reassignUserPagination.current=1,i.handleTableChangeReassignUser(i.reassignUserPagination)}},model:{value:i.reassignUserFilter,callback:function(t){i.reassignUserFilter=t},expression:"reassignUserFilter"}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.reassignUserData,loading:i.loadingReassignUser,pagination:i.reassignUserPagination,"row-key":function(t){return t.uid},"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.reassign.selected,onChange:function(t){o.reassignUserData.filter((function(e){return t.includes(e.uid)})).forEach((function(t){return i.userCache[t.uid]="".concat(t.name,"(").concat(t.org_name,")")})),i.runtimeData.reassign.selected=t}}},on:{change:i.handleTableChangeReassignUser}})]],2),a("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{size:"small",title:"转办人"}},[a("draggable",{attrs:{disabled:!0,chosenClass:"chosen"},model:{value:i.runtimeData.reassign.selected,callback:function(t){i.$set(i.runtimeData.reassign,"selected",t)},expression:"runtimeData.reassign.selected"}},[a("transition-group",i._l(i.runtimeData.reassign.selected,(function(t){return a("div",{key:t,staticClass:"item"},[i._v(" "+i._s(i.userCache[t])+" ")])})),0)],1)],1)],1)])],1):i._e(),i.OPERATE.CHECK===i.workflowReq.operate&&i.workflowReq.page_operate.action===i.CHECK_ACTION.INVOLVE?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{size:"small",title:"加签执行人"}},[a("div",{staticClass:"actors"},[a("div",{staticStyle:{width:"60%"}},[i.runtimeData.involve.actors?[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(t){return i.involveUserFilter=t}}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.filterActors(i.involveUserFilter,i.runtimeData.involve.actors),pagination:!1,"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.involve.selected,onChange:function(t){i.runtimeData.involve.selected=t}},rowKey:"uid",size:"middle"}})]:[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(){i.involveUserPagination.current=1,i.handleTableChangeInvolveUser(i.involveUserPagination)}},model:{value:i.involveUserFilter,callback:function(t){i.involveUserFilter=t},expression:"involveUserFilter"}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.involveUserData,loading:i.loadingInvolveUser,pagination:i.involveUserPagination,"row-key":function(t){return t.uid},"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.involve.selected,onChange:function(t){o.involveUserData.filter((function(e){return t.includes(e.uid)})).forEach((function(t){return i.userCache[t.uid]="".concat(t.name,"(").concat(t.org_name,")")})),i.runtimeData.involve.selected=t}}},on:{change:i.handleTableChangeInvolveUser}})]],2),a("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{size:"small",title:"加签人"}},[a("draggable",{attrs:{disabled:!0,chosenClass:"chosen"},model:{value:i.runtimeData.involve.selected,callback:function(t){i.$set(i.runtimeData.involve,"selected",t)},expression:"runtimeData.involve.selected"}},[a("transition-group",i._l(i.runtimeData.involve.selected,(function(t){return a("div",{key:t,staticClass:"item"},[i._v(" "+i._s(i.userCache[t])+" ")])})),0)],1)],1)],1)])],1):i._e()],1):i._e(),i.paneSet.has("2")?a("a-tab-pane",{key:"2",attrs:{"force-render":"",tab:"操作记录"}},[a("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[a("a-list",{attrs:{dataSource:this.runtimeData.logList},scopedSlots:i._u([{key:"renderItem",fn:function(t){return a("a-list-item",{},[a("a-list-item-meta",[a("strong",{attrs:{slot:"title"},slot:"title"},[i._v(" "+i._s(t.node_name)+" "),a("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 i.showOperateData(t)}}})],1),i.$store.state.app.icon?a("a-avatar",{attrs:{slot:"avatar",src:i.$store.state.app.icon},slot:"avatar"}):a("a-avatar",{attrs:{slot:"avatar",icon:"user"},slot:"avatar"}),a("a-space",{attrs:{slot:"description",direction:"vertical"},slot:"description"},[a("div",[i._v(i._s(t.operate_desc))]),t.operate_content?a("div",[[i.CHECK_ACTION.REASSIGN,i.CHECK_ACTION.INVOLVE,i.CHECK_ACTION.END,i.CHECK_ACTION.EXECUTE].includes(t.operate)?a("div",[i._v(" 备注:"+i._s(t.operate_content)+" ")]):a("div",[i._v(" 审批意见:"+i._s(t.operate_content)+" ")])]):i._e(),a("a-space",[a("span",{staticStyle:{color:"#18274a"}},[a("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"clock-circle-o"}}),i._v(" "+i._s(i.moment(t.create_time).format("YYYY-MM-DD HH:mm"))+" ")],1),a("a-divider",{attrs:{type:"vertical"}}),a("span",{staticStyle:{color:"#18274a"}},[a("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"user"}}),i._v(" "+i._s(t.operator.name)+"("+i._s(t.operator.org_name)+") ")],1)],1)],1)],1)],1)}}],null,!1,542072683)})],1)],1):i._e(),i.paneSet.has("3")?a("a-tab-pane",{key:"3",attrs:{tab:"流程图"}},[a("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[a("div",{staticStyle:{position:"absolute","z-index":"999"}},[a("a-button",{directives:[{name:"show",rawName:"v-show",value:!i.fullscreenLoading,expression:"!fullscreenLoading"}],attrs:{icon:"arrows-alt",type:"link"},on:{click:i.showFullScreenFlow}}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:i.fullscreenLoading,expression:"fullscreenLoading"}],attrs:{type:"loading-3-quarters"}})],1),i.initNodeContainer?a("NodeContainer",{ref:"nodeContainer",staticStyle:{"max-height":"350px"},attrs:{"business-adapter":i.businessAdapter,"default-zoom-scale":70,"hide-zoom":!0,"is-preview":!0,"node-data":i.nodeData,"runtime-data":i.runtimeData},on:{nodeHandlerReady:i.nodeHandlerReady,nodeHandlerChange:i.nodeHandlerChange}}):i._e()],1)],1):i._e()],1)],1),a("a-modal",{attrs:{title:"操作表单",visible:i.isShowOperateData,footer:null,width:"50%"},on:{cancel:i.hideOperateData}},[a("a-descriptions",{attrs:{bordered:"",column:{xxl:2,xl:2,lg:2,md:2,sm:2,xs:1}}},i._l(i.operateDataItems,(function(t){return a("a-descriptions-item",{key:t.id,attrs:{label:t.alias}},[i._v(" "+i._s(i.formatter(t,t.value,t))+" ")])})),1)],1),a("a-modal",{staticClass:"jjh-fullscreen",attrs:{bodyStyle:{height:"85vh","overflow-y":"scroll","padding-bottom":"0"},destroyOnClose:!0,"dialog-style":{top:"0px"},visible:i.fullscreen,title:"流程图",width:"100%"},on:{cancel:i.hideFullScreenFlow}},[i.initNodeContainer?a("NodeContainer",{ref:"nodeContainer1",attrs:{"business-adapter":i.businessAdapter,"is-preview":!0,"node-data":i.nodeData,"runtime-data":i.runtimeData}}):i._e(),a("template",{slot:"footer"},[a("a-button",{key:"back",on:{click:i.hideFullScreenFlow}},[i._v("关闭")])],1)],2)],1)},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:S(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 E(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 S(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(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(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",PREEXECUTE:"preexecute"},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),"check"===l.currentNodeType?t.workflowReq.page_operate.action=hc.PASS:t.workflowReq.page_operate.action=hc.EXECUTE,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 45:case"end":return e.stop()}}),e)})))()},methods:{filterTodoItemActors:function(t,e){e.actorsf.value=this.filterActors(t,e.actors)},filterActors:function(t,e){return t?e.filter((function(e){return e.name.toString().toLowerCase().includes(t.toLowerCase())})):e},handleTableChangeReassignUser:function(t){var e=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,l;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,l=e.runtimeData.currentNodeOperateData,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]=l?l[t.attrCode]:null)),n})).filter((function(t){return t})),console.log("currentNodeFormItem",e.runtimeData.currentNodeFormItem),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 15: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("6162"),Object(Kt["a"])(mc,zs,Ks,!1,null,"02b06e17",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=Ec(t,"string");return"symbol"==wc(e)?e:String(e)}function Ec(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 Sc={mixins:[i,a,Xr],components:xc({},bc)},jc=Sc,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
|
*
|