!function(){functiont(e){returnt="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft},t(e)}functione(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){returnr};varr={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeofSymbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";functions(t,e,r){returnObject.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(D){s=function(t,e,r){returnt[e]=r}}functionf(t,e,r,n){varo=e&&e.prototypeinstanceofv?e:v,a=Object.create(o.prototype),c=newk(n||[]);returni(a,"_invoke",{value:L(t,r,c)}),a}functionp(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(D){return{type:"throw",arg:D}}}r.wrap=f;varh={};functionv(){}functiond(){}functiony(){}varm={};s(m,c,(function(){returnthis}));varg=Object.getPrototypeOf,b=g&&g(g(P([])));b&&b!==n&&o.call(b,c)&&(m=b);varw=y.prototype=v.prototype=Object.create(m);functionx(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){returnthis._invoke(e,t)}))}))}functionO(e,r){functionn(i,a,c,u){varl=p(e[i],e,a);if("throw"!==l.type){vars=l.arg,f=s.value;returnf&&"object"==t(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):r.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){returnn("throw",t,c,u)}))}u(l.arg)}vara;i(this,"_invoke",{value:function(t,e){functiono(){returnnewr((function(r,o){n(t,e,r,o)}))}returna=a?a.then(o,o):o()}})}functionL(t,e,r){varn="suspendedStart";returnfunction(o,i){if("executing"===n)thrownewError("Generator is already running");if("completed"===n){if("throw"===o)throwi;returnN()}for(r.method=o,r.arg=i;;){vara=r.delegate;if(a){varc=E(a,r);if(c){if(c===h)continue;returnc}}if("next"===r.method)r.sent=r._sent=r.arg;elseif("throw"===r.method){if("suspendedStart"===n)thrown="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";varu=p(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}functionE(t,e){varr=e.method,n=t.iterator[r];if(void0===n)returne.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=newTypeError("The iterator does not provide a '"+r+"' method")),h;varo=p(n,t.iterator,e.arg);if("throw"===o.type)returne.method="throw",e.arg=o.arg,e.delegate=null,h;vari=o.arg;returni?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void0),e.delegate=null,h):i:(e.method="throw",e.arg=newTypeError("iterator result is not an object"),e.delegate=null,h)}functionj(t){vare={tryLoc:t[0]};1int&&(e.catchLoc=t[1]),2int&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}functionS(t){vare=t.completion||{};e.type="normal",deletee.arg,t.completion=e}functionk(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}functionP(t){if(t){vare=t[c];if(e)returne.call(t);if("function"==typeoft.next)returnt;if(!isNaN(t.length)){varr=-1,n=functione(){for(;++r<t.length;)if(o.call(t,r))returne.value=t[r],e.done=!1,e;returne.value=void0,e.done=!0,e};returnn.next=n}}return{next:N}}functionN(){return{value:void0,done:!0}}returnd.prototype=y,i(w,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:d,configurable:!0}),d.displayName=s(y,l,"GeneratorFunction"),r.isGeneratorFunction=function(t){vare="function"==typeoft&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){returnObject.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,l,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},x(O.prototype),s(O.prototype,u,(function(){returnthis})),r.AsyncIterator=O,r.async=function(t,e,n,o,i){void0===i&&(i=Promise);vara=newO(f(t,e,n,o),i);returnr.isGeneratorFunction(e)?a:a.next().then((function(t){returnt.done?t.value:a.next()}))},x(w),s(w,l,"Generator"),s(w,c,(function(){returnthis})),s(w,"toString",(function(){return"[object Generator]"})),r.keys=function(t){vare=Object(t),r=[];for(varnine)r.push(n);returnr.reverse(),functiont(){for(;r.length;){varn=r.pop();if(nine)returnt.value=n,t.done=!1,t}returnt.done=!0,t}},r.values=P,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void0,this.done=!1,this.delegate=null,this.method="next",this.arg=void0,this.tryEntries.forEach(S),!t)for(vareinthis)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void0)},stop:function(){this.done=!0;vart=this.tryEntries[0].completion;if("throw"===t.type)throwt.arg;returnthis.rval},dispatchException:function(t){if(this.done)throwt;vare=this;functionr(r,n){returna.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void0),!!n}for(varn=this.tryEntries.length-1;n>=0;--n){vari=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)returnr("end");if(i.tryLoc<=this.prev){varc=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)returnr(i.catchLoc,!0);if(this.prev<i.finallyLoc)returnr(i.finallyLoc)}elseif(c){if(this.prev<i.catchLoc)returnr(i.catchLoc,!0)}else{if(!u)thrownewError("try statement without catch or finally");if(this.prev<i.finallyLoc)returnr(i.finallyLoc)}}}},abrupt:function(t,e){for(varr=this.tryEntries.length-1;r>=0;--r){varn=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){vari=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);vara=i?i.completion:{};returna.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throwt.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),h},finish:function(t){for(vare=this.tryEntries.length-1;e>=0;--e){varr=this.tryEntries[e];if(r.finallyLoc===t)returnthis.complete(r.completion,r.afterLoc),S(r),h}},catch:function(t){for(vare=this.tryEntries.length-1;e>=0;--e){varr=this.tryEntries[e];if(r.tryLoc===t){varn=r.completion;if("throw"===n.type){varo=n.arg;S(r)}returno}}thrownewError("illegal catch attempt")},delegateYield:function(t,e,r){returnthis.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void0),h}},r}functionr(t,e){varr=Object.keys(t);if(Object.getOwnPropertySymbols){varn=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){returnObject.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}returnr}functionn(t){for(vare=1;e<arguments.length;e++){varn=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(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))}))}returnt}functiono(e,r,n){return(r=function(e){varr=function(e,r){if("object"!==t(e)||null===e)returne;varn=e[Symbol.toPrimitive];if(void0!==n){varo=n.call(e,r||"default");if("object"!==t(o))returno;thrownewTypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"===t(r)?r:String(r)}(r))ine?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}functioni(t,e,r,n,o,i,a){try{varc=t[i](a),u=c.value}catch(l){returnvoidr(l)}c.done?e(u):Promise.resolve(u).then(n,o)}System.register(["vue","@ibiz-template/vue-util","@ibiz-template/model","@ibiz-template/controller"],(function(t,r){"use strict";vara,c,u,l,s,f,p,h;return{setters:[function(t){a=t.defineComponent,c=t.getCurrentInstance,u=t.watch,l=t.h},function(t){s=t.useNamespace,f=t.useController},function(t){p=t.FormMDCtrlModel},function(t){h=t.FormMDCtrlController}],execute:function(){varr=a({name:"KqbcFormMDCtrl",props:{modelData:{type:p,required:!0},controller:{type:h,required:!0}},setup:function(t){varr=s("form-mdctrl"),o=c().proxy;f(o,t.controller);vara=t.controller;u((function(){returna.form.isLoaded}),(function(t,e){t!==e&&!0===t&&a.loadData()}));varl=function(){vart,r=(t=e().mark((functiont(){varr,o,i,c,u,l,s;returne().wrap((function(t){for(;;)switch(t.prev=t.next){case0:if(!(r=a.form)){t.next=14;break}if(i=null===(o=r.model.appEntity)||void0===o?void0:o.codeName,c=r.context,!i||!c){t.next=14;break}returnu=n({},c),t.next=8,ibiz.entityService.getService(i,u);case8:if(!(l=t.sent)||!a.data){t.next=14;break}returnt.next=12,l.exec("Getkqzgzsc",u,n({},a.data));case12:(s=t.sent).ok&&s.data&&(a.data.gzsc=s.data.gzsc,a.data.bcs=s.data.bcs);case14:case"end":returnt.stop()}}),t)})),function(){vare=this,r=arguments;returnnewPromise((function(n,o){vara=t.apply(e,r);functionc(t){i(a,n,o,c,u,"next",t)}functionu(t){i(a,n,o,c,u,"throw",t)}c(void0)}))});returnfunction(){returnr.apply(this,arguments)}}();returnu((function(){vart;returnnull===(t=a.contentCtrlData)||void0===t?void0:t.length}),(function(){l()})),{ns:r,c:a,onNeuronInit:function(t){returnfunction(e){a.formNeurons.get(t)||e.evt.on("afterSave",l),a.onNeuronInit(t)(e)}}}},render:function(){vart=this;returnl("div",{class:this.ns.b()},[l("div",{class:t.ns.b("main")},[[l("div",{class:t.ns.b("title")},[l("span",{class:t.ns.b("caption")},[t.modelData.source.caption]),l("i-button",{class:t.ns.b("add-btn"),attrs:{type:"text"},on:{click:function(){returnt.c.handleAdd()}}},["添加"])]),t.c.contentCtrlData.length>0&&t.c.contentCtrlData.map((function(e,r){varn=null,i=t.c.model.form;if(i&&t.c.providers[i.name]&&t.c.model.appEntity){vara,c=Object.assign(t.c.form.context.clone(),o({},null===(a=t.c.model.appEntity.codeName)||void0===a?void0:a.toLowerCase(),e[t.c.model.appEntity.keyName]));n=l(t.c.providers[i.name].component,{props:{modelData:i,context:c,params:t.c.form.params,enableAutoSave:!0},on:{neuronInit:t.onNeuronInit(e.srfkey)}})}returnl("div",{class:t.ns.b("form-content"),key:e.srfkey},[n,l("div",{class:t.ns.b("btn")},[l("i-button",{class:t.ns.b("remove-btn"),attrs:{type:"text"},on:{click:function(){returnt.c.handleRemove(e,r)}}},["删除"])])])}))]])])}});t({KqbcFormMDCtrl:r,default:r})}}}))}();