@sava-info-systems/api-maker-with-extensions 1.13.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nvmrc +1 -1
- package/dist/1097.449af467da10a6f0.js +1 -0
- package/dist/3081.827b4ef503185325.js +1 -0
- package/dist/4211.26b06067756edec1.js +1 -0
- package/dist/4575.cb8bb3db7b7c0fe0.js +1 -0
- package/dist/{5249.js → 5249.6a454babc2d144b3.js} +1 -1
- package/dist/7368.ac46846616e465a8.js +1 -0
- package/dist/7987.541a0b67fd21c1f8.js +1 -0
- package/dist/885.70ca8f701657a321.js +1 -0
- package/dist/{9575.js → 9575.d8d77a5248e62530.js} +1 -1
- package/dist/assets/schema-types/InterfaceProps.ts +1 -0
- package/dist/assets/schema-types/types.ts +294 -21
- package/dist/index.html +2 -2
- package/dist/main.7af59190ebaf6c36.js +1 -0
- package/dist/runtime.bfd9b30f865686f0.js +1 -0
- package/dist/styles.b301d5c3703f519a.css +1 -0
- package/main.js +1 -1
- package/package.json +16 -14
- package/sandbox/assets/schema-types/types.js +36 -7
- package/sandbox/package.json +3 -3
- package/sandbox/sandbox.js +1 -1
- package/src/assets/schema-types/types.ts +294 -21
- package/src/public/dist-db-masters/browser/index.html +7 -3
- package/src/public/dist-db-masters/browser/main-TYGVEM3B.js +139 -0
- package/src/public/dist-db-masters/browser/main.js +1 -1
- package/src/public/dist-db-masters/browser/media/color-3LUHUBGQ.png +0 -0
- package/src/public/dist-db-masters/browser/media/hue-RMMBQOAC.png +0 -0
- package/src/public/dist-db-masters/browser/media/primeicons-4GST5W3O.woff2 +0 -0
- package/src/public/dist-db-masters/browser/media/primeicons-DHQU4SEP.svg +345 -0
- package/src/public/dist-db-masters/browser/media/primeicons-GEFHGEHP.ttf +0 -0
- package/src/public/dist-db-masters/browser/media/primeicons-P53SE5CV.woff +0 -0
- package/src/public/dist-db-masters/browser/media/primeicons-RSSEDYLY.eot +0 -0
- package/src/public/dist-db-masters/browser/polyfills-6EAL64PA.js +2 -0
- package/src/public/dist-db-masters/browser/styles-2H2JU2BI.css +1 -0
- package/src/tools/install_utils/SetEnvInFrontend.js +17 -2
- package/dist/1097.js +0 -1
- package/dist/3081.js +0 -1
- package/dist/4211.js +0 -1
- package/dist/4575.js +0 -1
- package/dist/7368.js +0 -1
- package/dist/7987.js +0 -1
- package/dist/885.js +0 -1
- package/dist/main.js +0 -1
- package/dist/runtime.js +0 -1
- package/dist/styles.css +0 -1
- /package/dist/{1025.js → 1025.aa53798f1b55461d.js} +0 -0
- /package/dist/{148.js → 148.ee8e99d678b8c025.js} +0 -0
- /package/dist/{1558.js → 1558.e0b57bdf7f56a8f0.js} +0 -0
- /package/dist/{1617.js → 1617.5e0016e4b9a7942e.js} +0 -0
- /package/dist/{1678.js → 1678.11aec0796eea5d87.js} +0 -0
- /package/dist/{1754.js → 1754.c8a592e8566b39cd.js} +0 -0
- /package/dist/{1928.js → 1928.970ea54226b2cd91.js} +0 -0
- /package/dist/{1957.js → 1957.ae3a282aaf017a6e.js} +0 -0
- /package/dist/{2140.js → 2140.6a93dae584183594.js} +0 -0
- /package/dist/{2295.js → 2295.2805c58221b89532.js} +0 -0
- /package/dist/{2473.js → 2473.7e8addd010a40342.js} +0 -0
- /package/dist/{2714.js → 2714.d2294502b2a67e9a.js} +0 -0
- /package/dist/{2735.js → 2735.8db087449ded306f.js} +0 -0
- /package/dist/{2908.js → 2908.afbb4bc0e7cd8877.js} +0 -0
- /package/dist/{3139.js → 3139.d0e02547c933c49b.js} +0 -0
- /package/dist/{3450.js → 3450.7258a816bd414e01.js} +0 -0
- /package/dist/{4110.js → 4110.864766464288eeb8.js} +0 -0
- /package/dist/{4181.js → 4181.30e4f1c8eada50e2.js} +0 -0
- /package/dist/{4186.js → 4186.dc909c8525a1e871.js} +0 -0
- /package/dist/{4842.js → 4842.0929ff5c931d6a5b.js} +0 -0
- /package/dist/{485.js → 485.0d081fb59c661f05.js} +0 -0
- /package/dist/{4895.js → 4895.4fcedd94060fad5d.js} +0 -0
- /package/dist/{5334.js → 5334.58277491cb57f6ee.js} +0 -0
- /package/dist/{5421.js → 5421.8e428cae376ebf8c.js} +0 -0
- /package/dist/{5679.js → 5679.3897b7371f5e32fe.js} +0 -0
- /package/dist/{5761.js → 5761.844e55e87fc6bcf8.js} +0 -0
- /package/dist/{5765.js → 5765.c2d8207418a5561f.js} +0 -0
- /package/dist/{6236.js → 6236.9d38a82ecca3aec6.js} +0 -0
- /package/dist/{6393.js → 6393.0b1c08d78f1af0d8.js} +0 -0
- /package/dist/{6401.js → 6401.e28156bcbab146e7.js} +0 -0
- /package/dist/{6925.js → 6925.2135c4ac170fd066.js} +0 -0
- /package/dist/{7436.js → 7436.8366a4a22515129b.js} +0 -0
- /package/dist/{7470.js → 7470.c9afc148f288ac63.js} +0 -0
- /package/dist/{7649.js → 7649.aa2999c02c9c54ae.js} +0 -0
- /package/dist/{7975.js → 7975.18f52f8018a65643.js} +0 -0
- /package/dist/{7977.js → 7977.21d1ce18dd90e683.js} +0 -0
- /package/dist/{8125.js → 8125.0705f11a3e3c285b.js} +0 -0
- /package/dist/{8266.js → 8266.7a4c37981b3a1460.js} +0 -0
- /package/dist/{8296.js → 8296.74d7cbb4de44faad.js} +0 -0
- /package/dist/{8374.js → 8374.fa20d95bc952f56d.js} +0 -0
- /package/dist/{8682.js → 8682.ac569b2306382d34.js} +0 -0
- /package/dist/{8841.js → 8841.f4d477b20e8324df.js} +0 -0
- /package/dist/{891.js → 891.519823bb28bd0543.js} +0 -0
- /package/dist/{913.js → 913.6e9b6732fb48fa5f.js} +0 -0
- /package/dist/{9243.js → 9243.a2982da73f489775.js} +0 -0
- /package/dist/{9939.js → 9939.164ded8f7ca5162f.js} +0 -0
- /package/dist/{color.png → color.dae87a04d07ca92b.png} +0 -0
- /package/dist/{common.js → common.7e62dd0fef3d35cc.js} +0 -0
- /package/dist/{hue.png → hue.8b1818380241e6ac.png} +0 -0
- /package/dist/{polyfills.js → polyfills.a6d93c3e94967b29.js} +0 -0
- /package/dist/{primeicons.svg → primeicons.19e14e488f5edc90.svg} +0 -0
- /package/dist/{primeicons.ttf → primeicons.310a7310efb91ab1.ttf} +0 -0
- /package/dist/{primeicons.woff → primeicons.7f7722745590608a.woff} +0 -0
- /package/dist/{primeicons.eot → primeicons.8ca441e178bfb872.eot} +0 -0
- /package/dist/{primeicons.woff2 → primeicons.e1a53edb6ea00325.woff2} +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var ie=globalThis;function Q(e){return(ie.__Zone_symbol_prefix||"__zone_symbol__")+e}function ft(){let e=ie.performance;function n(j){e&&e.mark&&e.mark(j)}function a(j,r){e&&e.measure&&e.measure(j,r)}n("Zone");let $=class ${static assertZonePatched(){if(ie.Promise!==D.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let r=$.current;for(;r.parent;)r=r.parent;return r}static get current(){return k.zone}static get currentTask(){return S}static __load_patch(r,i,s=!1){if(D.hasOwnProperty(r)){let b=ie[Q("forceDuplicateZoneCheck")]===!0;if(!s&&b)throw Error("Already loaded patch: "+r)}else if(!ie["__Zone_disable_"+r]){let b="Zone:"+r;n(b),D[r]=i(ie,$,w),a(b,b)}}get parent(){return this._parent}get name(){return this._name}constructor(r,i){this._parent=r,this._name=i?i.name||"unnamed":"<root>",this._properties=i&&i.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,i)}get(r){let i=this.getZoneWith(r);if(i)return i._properties[r]}getZoneWith(r){let i=this;for(;i;){if(i._properties.hasOwnProperty(r))return i;i=i._parent}return null}fork(r){if(!r)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,r)}wrap(r,i){if(typeof r!="function")throw new Error("Expecting function got: "+r);let s=this._zoneDelegate.intercept(this,r,i),b=this;return function(){return b.runGuarded(s,this,arguments,i)}}run(r,i,s,b){k={parent:k,zone:this};try{return this._zoneDelegate.invoke(this,r,i,s,b)}finally{k=k.parent}}runGuarded(r,i=null,s,b){k={parent:k,zone:this};try{try{return this._zoneDelegate.invoke(this,r,i,s,b)}catch(x){if(this._zoneDelegate.handleError(this,x))throw x}}finally{k=k.parent}}runTask(r,i,s){if(r.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(r.zone||te).name+"; Execution: "+this.name+")");if(r.state===X&&(r.type===U||r.type===g))return;let b=r.state!=F;b&&r._transitionTo(F,d),r.runCount++;let x=S;S=r,k={parent:k,zone:this};try{r.type==g&&r.data&&!r.data.isPeriodic&&(r.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,r,i,s)}catch(M){if(this._zoneDelegate.handleError(this,M))throw M}}finally{r.state!==X&&r.state!==Y&&(r.type==U||r.data&&r.data.isPeriodic?b&&r._transitionTo(d,F):(r.runCount=0,this._updateTaskCount(r,-1),b&&r._transitionTo(X,F,X))),k=k.parent,S=x}}scheduleTask(r){if(r.zone&&r.zone!==this){let s=this;for(;s;){if(s===r.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${r.zone.name}`);s=s.parent}}r._transitionTo(v,X);let i=[];r._zoneDelegates=i,r._zone=this;try{r=this._zoneDelegate.scheduleTask(this,r)}catch(s){throw r._transitionTo(Y,v,X),this._zoneDelegate.handleError(this,s),s}return r._zoneDelegates===i&&this._updateTaskCount(r,1),r.state==v&&r._transitionTo(d,v),r}scheduleMicroTask(r,i,s,b){return this.scheduleTask(new _(B,r,i,s,b,void 0))}scheduleMacroTask(r,i,s,b,x){return this.scheduleTask(new _(g,r,i,s,b,x))}scheduleEventTask(r,i,s,b,x){return this.scheduleTask(new _(U,r,i,s,b,x))}cancelTask(r){if(r.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(r.zone||te).name+"; Execution: "+this.name+")");if(!(r.state!==d&&r.state!==F)){r._transitionTo(q,d,F);try{this._zoneDelegate.cancelTask(this,r)}catch(i){throw r._transitionTo(Y,q),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(r,-1),r._transitionTo(X,q),r.runCount=0,r}}_updateTaskCount(r,i){let s=r._zoneDelegates;i==-1&&(r._zoneDelegates=null);for(let b=0;b<s.length;b++)s[b]._updateTaskCount(r.type,i)}};$.__symbol__=Q;let t=$,c={name:"",onHasTask:(j,r,i,s)=>j.hasTask(i,s),onScheduleTask:(j,r,i,s)=>j.scheduleTask(i,s),onInvokeTask:(j,r,i,s,b,x)=>j.invokeTask(i,s,b,x),onCancelTask:(j,r,i,s)=>j.cancelTask(i,s)};class f{get zone(){return this._zone}constructor(r,i,s){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=r,this._parentDelegate=i,this._forkZS=s&&(s&&s.onFork?s:i._forkZS),this._forkDlgt=s&&(s.onFork?i:i._forkDlgt),this._forkCurrZone=s&&(s.onFork?this._zone:i._forkCurrZone),this._interceptZS=s&&(s.onIntercept?s:i._interceptZS),this._interceptDlgt=s&&(s.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=s&&(s.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=s&&(s.onInvoke?s:i._invokeZS),this._invokeDlgt=s&&(s.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=s&&(s.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=s&&(s.onHandleError?s:i._handleErrorZS),this._handleErrorDlgt=s&&(s.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=s&&(s.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=s&&(s.onScheduleTask?s:i._scheduleTaskZS),this._scheduleTaskDlgt=s&&(s.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=s&&(s.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=s&&(s.onInvokeTask?s:i._invokeTaskZS),this._invokeTaskDlgt=s&&(s.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=s&&(s.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=s&&(s.onCancelTask?s:i._cancelTaskZS),this._cancelTaskDlgt=s&&(s.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=s&&(s.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let b=s&&s.onHasTask,x=i&&i._hasTaskZS;(b||x)&&(this._hasTaskZS=b?s:c,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,s.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),s.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),s.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(r,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,r,i):new t(r,i)}intercept(r,i,s){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,r,i,s):i}invoke(r,i,s,b,x){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,r,i,s,b,x):i.apply(s,b)}handleError(r,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,r,i):!0}scheduleTask(r,i){let s=i;if(this._scheduleTaskZS)this._hasTaskZS&&s._zoneDelegates.push(this._hasTaskDlgtOwner),s=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,r,i),s||(s=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==B)W(i);else throw new Error("Task is missing scheduleFn.");return s}invokeTask(r,i,s,b){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,r,i,s,b):i.callback.apply(s,b)}cancelTask(r,i){let s;if(this._cancelTaskZS)s=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,r,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");s=i.cancelFn(i)}return s}hasTask(r,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,r,i)}catch(s){this.handleError(r,s)}}_updateTaskCount(r,i){let s=this._taskCounts,b=s[r],x=s[r]=b+i;if(x<0)throw new Error("More tasks executed then were scheduled.");if(b==0||x==0){let M={microTask:s.microTask>0,macroTask:s.macroTask>0,eventTask:s.eventTask>0,change:r};this.hasTask(this._zone,M)}}}class _{constructor(r,i,s,b,x,M){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=r,this.source=i,this.data=b,this.scheduleFn=x,this.cancelFn=M,!s)throw new Error("callback is not defined");this.callback=s;let de=this;r===U&&b&&b.useG?this.invoke=_.invokeTask:this.invoke=function(){return _.invokeTask.call(ie,de,this,arguments)}}static invokeTask(r,i,s){r||(r=this),K++;try{return r.runCount++,r.zone.runTask(r,i,s)}finally{K==1&&A(),K--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,v)}_transitionTo(r,i,s){if(this._state===i||this._state===s)this._state=r,r==X&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${r}', expecting state '${i}'${s?" or '"+s+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let E=Q("setTimeout"),m=Q("Promise"),C=Q("then"),T=[],I=!1,P;function Z(j){if(P||ie[m]&&(P=ie[m].resolve(0)),P){let r=P[C];r||(r=P.then),r.call(P,j)}else ie[E](j,0)}function W(j){K===0&&T.length===0&&Z(A),j&&T.push(j)}function A(){if(!I){for(I=!0;T.length;){let j=T;T=[];for(let r=0;r<j.length;r++){let i=j[r];try{i.zone.runTask(i,null,null)}catch(s){w.onUnhandledError(s)}}}w.microtaskDrainDone(),I=!1}}let te={name:"NO ZONE"},X="notScheduled",v="scheduling",d="scheduled",F="running",q="canceling",Y="unknown",B="microTask",g="macroTask",U="eventTask",D={},w={symbol:Q,currentZoneFrame:()=>k,onUnhandledError:z,microtaskDrainDone:z,scheduleMicroTask:W,showUncaughtError:()=>!t[Q("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:z,patchMethod:()=>z,bindArguments:()=>[],patchThen:()=>z,patchMacroTask:()=>z,patchEventPrototype:()=>z,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>z,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>z,wrapWithCurrentZone:()=>z,filterProperties:()=>[],attachOriginToPatched:()=>z,_redefineProperty:()=>z,patchCallbacks:()=>z,nativeScheduleMicroTask:Z},k={parent:null,zone:new t(null,null)},S=null,K=0;function z(){}return a("Zone","Zone"),t}function ht(){let e=globalThis,n=e[Q("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(n||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=ft(),e.Zone}var ve=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,dt=Object.create,_t=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Le=Q(He),Ie=Q(xe),ce="true",ae="false",be=Q("");function Ge(e,n){return Zone.current.wrap(e,n)}function Ve(e,n,a,t,c){return Zone.current.scheduleMacroTask(e,n,a,t,c)}var H=Q,Se=typeof window<"u",ye=Se?window:void 0,J=Se&&ye||globalThis,Et="removeAttribute";function Fe(e,n){for(let a=e.length-1;a>=0;a--)typeof e[a]=="function"&&(e[a]=Ge(e[a],n+"_"+a));return e}function Tt(e,n){let a=e.constructor.name;for(let t=0;t<n.length;t++){let c=n[t],f=e[c];if(f){let _=ve(e,c);if(!Qe(_))continue;e[c]=(E=>{let m=function(){return E.apply(this,Fe(arguments,a+"."+c))};return ue(m,E),m})(f)}}}function Qe(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var et=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,De=!("nw"in J)&&typeof J.process<"u"&&J.process.toString()==="[object process]",Be=!De&&!et&&!!(Se&&ye.HTMLElement),tt=typeof J.process<"u"&&J.process.toString()==="[object process]"&&!et&&!!(Se&&ye.HTMLElement),Ce={},Ye=function(e){if(e=e||J.event,!e)return;let n=Ce[e.type];n||(n=Ce[e.type]=H("ON_PROPERTY"+e.type));let a=this||e.target||J,t=a[n],c;if(Be&&a===ye&&e.type==="error"){let f=e;c=t&&t.call(this,f.message,f.filename,f.lineno,f.colno,f.error),c===!0&&e.preventDefault()}else c=t&&t.apply(this,arguments),c!=null&&!c&&e.preventDefault();return c};function $e(e,n,a){let t=ve(e,n);if(!t&&a&&ve(a,n)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let c=H("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete t.writable,delete t.value;let f=t.get,_=t.set,E=n.slice(2),m=Ce[E];m||(m=Ce[E]=H("ON_PROPERTY"+E)),t.set=function(C){let T=this;if(!T&&e===J&&(T=J),!T)return;typeof T[m]=="function"&&T.removeEventListener(E,Ye),_&&_.call(T,null),T[m]=C,typeof C=="function"&&T.addEventListener(E,Ye,!1)},t.get=function(){let C=this;if(!C&&e===J&&(C=J),!C)return null;let T=C[m];if(T)return T;if(f){let I=f.call(this);if(I)return t.set.call(this,I),typeof C[Et]=="function"&&C.removeAttribute(n),I}return null},Ae(e,n,t),e[c]=!0}function nt(e,n,a){if(n)for(let t=0;t<n.length;t++)$e(e,"on"+n[t],a);else{let t=[];for(let c in e)c.slice(0,2)=="on"&&t.push(c);for(let c=0;c<t.length;c++)$e(e,t[c],a)}}var re=H("originalInstance");function ke(e){let n=J[e];if(!n)return;J[H(e)]=n,J[e]=function(){let c=Fe(arguments,e);switch(c.length){case 0:this[re]=new n;break;case 1:this[re]=new n(c[0]);break;case 2:this[re]=new n(c[0],c[1]);break;case 3:this[re]=new n(c[0],c[1],c[2]);break;case 4:this[re]=new n(c[0],c[1],c[2],c[3]);break;default:throw new Error("Arg list too long.")}},ue(J[e],n);let a=new n(function(){}),t;for(t in a)e==="XMLHttpRequest"&&t==="responseBlob"||function(c){typeof a[c]=="function"?J[e].prototype[c]=function(){return this[re][c].apply(this[re],arguments)}:Ae(J[e].prototype,c,{set:function(f){typeof f=="function"?(this[re][c]=Ge(f,e+"."+c),ue(this[re][c],f)):this[re][c]=f},get:function(){return this[re][c]}})}(t);for(t in n)t!=="prototype"&&n.hasOwnProperty(t)&&(J[e][t]=n[t])}function le(e,n,a){let t=e;for(;t&&!t.hasOwnProperty(n);)t=je(t);!t&&e[n]&&(t=e);let c=H(n),f=null;if(t&&(!(f=t[c])||!t.hasOwnProperty(c))){f=t[c]=t[n];let _=t&&ve(t,n);if(Qe(_)){let E=a(f,c,n);t[n]=function(){return E(this,arguments)},ue(t[n],f)}}return f}function gt(e,n,a){let t=null;function c(f){let _=f.data;return _.args[_.cbIdx]=function(){f.invoke.apply(this,arguments)},t.apply(_.target,_.args),f}t=le(e,n,f=>function(_,E){let m=a(_,E);return m.cbIdx>=0&&typeof E[m.cbIdx]=="function"?Ve(m.name,E[m.cbIdx],m,c):f.apply(_,E)})}function ue(e,n){e[H("OriginalDelegate")]=n}var Je=!1,Me=!1;function yt(){try{let e=ye.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function mt(){if(Je)return Me;Je=!0;try{let e=ye.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}var ge=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){ge=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ge=!1}var pt={useG:!0},ee={},rt={},ot=new RegExp("^"+be+"(\\w+)(true|false)$"),st=H("propagationStopped");function it(e,n){let a=(n?n(e):e)+ae,t=(n?n(e):e)+ce,c=be+a,f=be+t;ee[e]={},ee[e][ae]=c,ee[e][ce]=f}function kt(e,n,a,t){let c=t&&t.add||He,f=t&&t.rm||xe,_=t&&t.listeners||"eventListeners",E=t&&t.rmAll||"removeAllListeners",m=H(c),C="."+c+":",T="prependListener",I="."+T+":",P=function(v,d,F){if(v.isRemoved)return;let q=v.callback;typeof q=="object"&&q.handleEvent&&(v.callback=g=>q.handleEvent(g),v.originalDelegate=q);let Y;try{v.invoke(v,d,[F])}catch(g){Y=g}let B=v.options;if(B&&typeof B=="object"&&B.once){let g=v.originalDelegate?v.originalDelegate:v.callback;d[f].call(d,F.type,g,B)}return Y};function Z(v,d,F){if(d=d||e.event,!d)return;let q=v||d.target||e,Y=q[ee[d.type][F?ce:ae]];if(Y){let B=[];if(Y.length===1){let g=P(Y[0],q,d);g&&B.push(g)}else{let g=Y.slice();for(let U=0;U<g.length&&!(d&&d[st]===!0);U++){let D=P(g[U],q,d);D&&B.push(D)}}if(B.length===1)throw B[0];for(let g=0;g<B.length;g++){let U=B[g];n.nativeScheduleMicroTask(()=>{throw U})}}}let W=function(v){return Z(this,v,!1)},A=function(v){return Z(this,v,!0)};function te(v,d){if(!v)return!1;let F=!0;d&&d.useG!==void 0&&(F=d.useG);let q=d&&d.vh,Y=!0;d&&d.chkDup!==void 0&&(Y=d.chkDup);let B=!1;d&&d.rt!==void 0&&(B=d.rt);let g=v;for(;g&&!g.hasOwnProperty(c);)g=je(g);if(!g&&v[c]&&(g=v),!g||g[m])return!1;let U=d&&d.eventNameToString,D={},w=g[m]=g[c],k=g[H(f)]=g[f],S=g[H(_)]=g[_],K=g[H(E)]=g[E],z;d&&d.prepend&&(z=g[H(d.prepend)]=g[d.prepend]);function $(o,u){return!ge&&typeof o=="object"&&o?!!o.capture:!ge||!u?o:typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}}let j=function(o){if(!D.isExisting)return w.call(D.target,D.eventName,D.capture?A:W,D.options)},r=function(o){if(!o.isRemoved){let u=ee[o.eventName],p;u&&(p=u[o.capture?ce:ae]);let R=p&&o.target[p];if(R){for(let y=0;y<R.length;y++)if(R[y]===o){R.splice(y,1),o.isRemoved=!0,o.removeAbortListener&&(o.removeAbortListener(),o.removeAbortListener=null),R.length===0&&(o.allRemoved=!0,o.target[p]=null);break}}}if(o.allRemoved)return k.call(o.target,o.eventName,o.capture?A:W,o.options)},i=function(o){return w.call(D.target,D.eventName,o.invoke,D.options)},s=function(o){return z.call(D.target,D.eventName,o.invoke,D.options)},b=function(o){return k.call(o.target,o.eventName,o.invoke,o.options)},x=F?j:i,M=F?r:b,de=function(o,u){let p=typeof u;return p==="function"&&o.callback===u||p==="object"&&o.originalDelegate===u},me=d&&d.diff?d.diff:de,he=Zone[H("UNPATCHED_EVENTS")],Pe=e[H("PASSIVE_EVENTS")];function h(o){if(typeof o=="object"&&o!==null){let u={...o};return o.signal&&(u.signal=o.signal),u}return o}let l=function(o,u,p,R,y=!1,O=!1){return function(){let N=this||e,L=arguments[0];d&&d.transferEventName&&(L=d.transferEventName(L));let G=arguments[1];if(!G)return o.apply(this,arguments);if(De&&L==="uncaughtException")return o.apply(this,arguments);let V=!1;if(typeof G!="function"){if(!G.handleEvent)return o.apply(this,arguments);V=!0}if(q&&!q(o,G,N,arguments))return;let fe=ge&&!!Pe&&Pe.indexOf(L)!==-1,oe=h($(arguments[2],fe)),_e=oe?.signal;if(_e?.aborted)return;if(he){for(let se=0;se<he.length;se++)if(L===he[se])return fe?o.call(N,L,G,oe):o.apply(this,arguments)}let Oe=oe?typeof oe=="boolean"?!0:oe.capture:!1,Ue=oe&&typeof oe=="object"?oe.once:!1,ut=Zone.current,Ne=ee[L];Ne||(it(L,U),Ne=ee[L]);let We=Ne[Oe?ce:ae],Ee=N[We],qe=!1;if(Ee){if(qe=!0,Y){for(let se=0;se<Ee.length;se++)if(me(Ee[se],G))return}}else Ee=N[We]=[];let we,ze=N.constructor.name,Xe=rt[ze];Xe&&(we=Xe[L]),we||(we=ze+u+(U?U(L):L)),D.options=oe,Ue&&(D.options.once=!1),D.target=N,D.capture=Oe,D.eventName=L,D.isExisting=qe;let pe=F?pt:void 0;pe&&(pe.taskData=D),_e&&(D.options.signal=void 0);let ne=ut.scheduleEventTask(we,G,pe,p,R);if(_e){D.options.signal=_e;let se=()=>ne.zone.cancelTask(ne);o.call(_e,"abort",se,{once:!0}),ne.removeAbortListener=()=>_e.removeEventListener("abort",se)}if(D.target=null,pe&&(pe.taskData=null),Ue&&(D.options.once=!0),!ge&&typeof ne.options=="boolean"||(ne.options=oe),ne.target=N,ne.capture=Oe,ne.eventName=L,V&&(ne.originalDelegate=G),O?Ee.unshift(ne):Ee.push(ne),y)return N}};return g[c]=l(w,C,x,M,B),z&&(g[T]=l(z,I,s,M,B,!0)),g[f]=function(){let o=this||e,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let p=arguments[2],R=p?typeof p=="boolean"?!0:p.capture:!1,y=arguments[1];if(!y)return k.apply(this,arguments);if(q&&!q(k,y,o,arguments))return;let O=ee[u],N;O&&(N=O[R?ce:ae]);let L=N&&o[N];if(L)for(let G=0;G<L.length;G++){let V=L[G];if(me(V,y)){if(L.splice(G,1),V.isRemoved=!0,L.length===0&&(V.allRemoved=!0,o[N]=null,!R&&typeof u=="string")){let fe=be+"ON_PROPERTY"+u;o[fe]=null}return V.zone.cancelTask(V),B?o:void 0}}return k.apply(this,arguments)},g[_]=function(){let o=this||e,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let p=[],R=ct(o,U?U(u):u);for(let y=0;y<R.length;y++){let O=R[y],N=O.originalDelegate?O.originalDelegate:O.callback;p.push(N)}return p},g[E]=function(){let o=this||e,u=arguments[0];if(u){d&&d.transferEventName&&(u=d.transferEventName(u));let p=ee[u];if(p){let R=p[ae],y=p[ce],O=o[R],N=o[y];if(O){let L=O.slice();for(let G=0;G<L.length;G++){let V=L[G],fe=V.originalDelegate?V.originalDelegate:V.callback;this[f].call(this,u,fe,V.options)}}if(N){let L=N.slice();for(let G=0;G<L.length;G++){let V=L[G],fe=V.originalDelegate?V.originalDelegate:V.callback;this[f].call(this,u,fe,V.options)}}}}else{let p=Object.keys(o);for(let R=0;R<p.length;R++){let y=p[R],O=ot.exec(y),N=O&&O[1];N&&N!=="removeListener"&&this[E].call(this,N)}this[E].call(this,"removeListener")}if(B)return this},ue(g[c],w),ue(g[f],k),K&&ue(g[E],K),S&&ue(g[_],S),!0}let X=[];for(let v=0;v<a.length;v++)X[v]=te(a[v],t);return X}function ct(e,n){if(!n){let f=[];for(let _ in e){let E=ot.exec(_),m=E&&E[1];if(m&&(!n||m===n)){let C=e[_];if(C)for(let T=0;T<C.length;T++)f.push(C[T])}}return f}let a=ee[n];a||(it(n),a=ee[n]);let t=e[a[ae]],c=e[a[ce]];return t?c?t.concat(c):t.slice():c?c.slice():[]}function vt(e,n){let a=e.Event;a&&a.prototype&&n.patchMethod(a.prototype,"stopImmediatePropagation",t=>function(c,f){c[st]=!0,t&&t.apply(c,f)})}function bt(e,n){n.patchMethod(e,"queueMicrotask",a=>function(t,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var Re=H("zoneTask");function Te(e,n,a,t){let c=null,f=null;n+=t,a+=t;let _={};function E(C){let T=C.data;return T.args[0]=function(){return C.invoke.apply(this,arguments)},T.handleId=c.apply(e,T.args),C}function m(C){return f.call(e,C.data.handleId)}c=le(e,n,C=>function(T,I){if(typeof I[0]=="function"){let P={isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?I[1]||0:void 0,args:I},Z=I[0];I[0]=function(){try{return Z.apply(this,arguments)}finally{P.isPeriodic||(typeof P.handleId=="number"?delete _[P.handleId]:P.handleId&&(P.handleId[Re]=null))}};let W=Ve(n,I[0],P,E,m);if(!W)return W;let A=W.data.handleId;return typeof A=="number"?_[A]=W:A&&(A[Re]=W),A&&A.ref&&A.unref&&typeof A.ref=="function"&&typeof A.unref=="function"&&(W.ref=A.ref.bind(A),W.unref=A.unref.bind(A)),typeof A=="number"||A?A:W}else return C.apply(e,I)}),f=le(e,a,C=>function(T,I){let P=I[0],Z;typeof P=="number"?Z=_[P]:(Z=P&&P[Re],Z||(Z=P)),Z&&typeof Z.type=="string"?Z.state!=="notScheduled"&&(Z.cancelFn&&Z.data.isPeriodic||Z.runCount===0)&&(typeof P=="number"?delete _[P]:P&&(P[Re]=null),Z.zone.cancelTask(Z)):C.apply(e,I)})}function Pt(e,n){let{isBrowser:a,isMix:t}=n.getGlobalObjects();if(!a&&!t||!e.customElements||!("customElements"in e))return;let c=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",c)}function wt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:t,TRUE_STR:c,FALSE_STR:f,ZONE_SYMBOL_PREFIX:_}=n.getGlobalObjects();for(let m=0;m<a.length;m++){let C=a[m],T=C+f,I=C+c,P=_+T,Z=_+I;t[C]={},t[C][f]=P,t[C][c]=Z}let E=e.EventTarget;if(!(!E||!E.prototype))return n.patchEventTarget(e,n,[E&&E.prototype]),!0}function Rt(e,n){n.patchEventPrototype(e,n)}function at(e,n,a){if(!a||a.length===0)return n;let t=a.filter(f=>f.target===e);if(!t||t.length===0)return n;let c=t[0].ignoreProperties;return n.filter(f=>c.indexOf(f)===-1)}function Ke(e,n,a,t){if(!e)return;let c=at(e,n,a);nt(e,c,t)}function Ze(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Ct(e,n){if(De&&!tt||Zone[e.symbol("patchEvents")])return;let a=n.__Zone_ignore_on_properties,t=[];if(Be){let c=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=yt()?[{target:c,ignoreProperties:["error"]}]:[];Ke(c,Ze(c),a&&a.concat(f),je(c))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c<t.length;c++){let f=n[t[c]];f&&f.prototype&&Ke(f.prototype,Ze(f.prototype),a)}}function St(e){e.__load_patch("legacy",n=>{let a=n[e.__symbol__("legacyPatch")];a&&a()}),e.__load_patch("timers",n=>{let a="set",t="clear";Te(n,a,t,"Timeout"),Te(n,a,t,"Interval"),Te(n,a,t,"Immediate")}),e.__load_patch("requestAnimationFrame",n=>{Te(n,"request","cancel","AnimationFrame"),Te(n,"mozRequest","mozCancel","AnimationFrame"),Te(n,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(n,a)=>{let t=["alert","prompt","confirm"];for(let c=0;c<t.length;c++){let f=t[c];le(n,f,(_,E,m)=>function(C,T){return a.current.run(_,n,T,m)})}}),e.__load_patch("EventTarget",(n,a,t)=>{Rt(n,t),wt(n,t);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&t.patchEventTarget(n,t,[c.prototype])}),e.__load_patch("MutationObserver",(n,a,t)=>{ke("MutationObserver"),ke("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(n,a,t)=>{ke("IntersectionObserver")}),e.__load_patch("FileReader",(n,a,t)=>{ke("FileReader")}),e.__load_patch("on_property",(n,a,t)=>{Ct(t,n)}),e.__load_patch("customElements",(n,a,t)=>{Pt(n,t)}),e.__load_patch("XHR",(n,a)=>{C(n);let t=H("xhrTask"),c=H("xhrSync"),f=H("xhrListener"),_=H("xhrScheduled"),E=H("xhrURL"),m=H("xhrErrorBeforeScheduled");function C(T){let I=T.XMLHttpRequest;if(!I)return;let P=I.prototype;function Z(w){return w[t]}let W=P[Le],A=P[Ie];if(!W){let w=T.XMLHttpRequestEventTarget;if(w){let k=w.prototype;W=k[Le],A=k[Ie]}}let te="readystatechange",X="scheduled";function v(w){let k=w.data,S=k.target;S[_]=!1,S[m]=!1;let K=S[f];W||(W=S[Le],A=S[Ie]),K&&A.call(S,te,K);let z=S[f]=()=>{if(S.readyState===S.DONE)if(!k.aborted&&S[_]&&w.state===X){let j=S[a.__symbol__("loadfalse")];if(S.status!==0&&j&&j.length>0){let r=w.invoke;w.invoke=function(){let i=S[a.__symbol__("loadfalse")];for(let s=0;s<i.length;s++)i[s]===w&&i.splice(s,1);!k.aborted&&w.state===X&&r.call(w)},j.push(w)}else w.invoke()}else!k.aborted&&S[_]===!1&&(S[m]=!0)};return W.call(S,te,z),S[t]||(S[t]=w),U.apply(S,k.args),S[_]=!0,w}function d(){}function F(w){let k=w.data;return k.aborted=!0,D.apply(k.target,k.args)}let q=le(P,"open",()=>function(w,k){return w[c]=k[2]==!1,w[E]=k[1],q.apply(w,k)}),Y="XMLHttpRequest.send",B=H("fetchTaskAborting"),g=H("fetchTaskScheduling"),U=le(P,"send",()=>function(w,k){if(a.current[g]===!0||w[c])return U.apply(w,k);{let S={target:w,url:w[E],isPeriodic:!1,args:k,aborted:!1},K=Ve(Y,d,S,v,F);w&&w[m]===!0&&!S.aborted&&K.state===X&&K.invoke()}}),D=le(P,"abort",()=>function(w,k){let S=Z(w);if(S&&typeof S.type=="string"){if(S.cancelFn==null||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(a.current[B]===!0)return D.apply(w,k)})}}),e.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&&Tt(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(n,a)=>{function t(c){return function(f){ct(n,c).forEach(E=>{let m=n.PromiseRejectionEvent;if(m){let C=new m(c,{promise:f.promise,reason:f.rejection});E.invoke(C)}})}}n.PromiseRejectionEvent&&(a[H("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),a[H("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(n,a,t)=>{bt(n,t)})}function Dt(e){e.__load_patch("ZoneAwarePromise",(n,a,t)=>{let c=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function _(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let E=t.symbol,m=[],C=n[E("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,T=E("Promise"),I=E("then"),P="__creationTrace__";t.onUnhandledError=h=>{if(t.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},t.microtaskDrainDone=()=>{for(;m.length;){let h=m.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){W(l)}}};let Z=E("unhandledPromiseRejectionHandler");function W(h){t.onUnhandledError(h);try{let l=a[Z];typeof l=="function"&&l.call(this,h)}catch{}}function A(h){return h&&h.then}function te(h){return h}function X(h){return M.reject(h)}let v=E("state"),d=E("value"),F=E("finally"),q=E("parentPromiseValue"),Y=E("parentPromiseState"),B="Promise.then",g=null,U=!0,D=!1,w=0;function k(h,l){return o=>{try{$(h,l,o)}catch(u){$(h,!1,u)}}}let S=function(){let h=!1;return function(o){return function(){h||(h=!0,o.apply(null,arguments))}}},K="Promise resolved with itself",z=E("currentTaskTrace");function $(h,l,o){let u=S();if(h===o)throw new TypeError(K);if(h[v]===g){let p=null;try{(typeof o=="object"||typeof o=="function")&&(p=o&&o.then)}catch(R){return u(()=>{$(h,!1,R)})(),h}if(l!==D&&o instanceof M&&o.hasOwnProperty(v)&&o.hasOwnProperty(d)&&o[v]!==g)r(o),$(h,o[v],o[d]);else if(l!==D&&typeof p=="function")try{p.call(o,u(k(h,l)),u(k(h,!1)))}catch(R){u(()=>{$(h,!1,R)})()}else{h[v]=l;let R=h[d];if(h[d]=o,h[F]===F&&l===U&&(h[v]=h[Y],h[d]=h[q]),l===D&&o instanceof Error){let y=a.currentTask&&a.currentTask.data&&a.currentTask.data[P];y&&f(o,z,{configurable:!0,enumerable:!1,writable:!0,value:y})}for(let y=0;y<R.length;)i(h,R[y++],R[y++],R[y++],R[y++]);if(R.length==0&&l==D){h[v]=w;let y=o;try{throw new Error("Uncaught (in promise): "+_(o)+(o&&o.stack?`
|
|
2
|
+
`+o.stack:""))}catch(O){y=O}C&&(y.throwOriginal=!0),y.rejection=o,y.promise=h,y.zone=a.current,y.task=a.currentTask,m.push(y),t.scheduleMicroTask()}}}return h}let j=E("rejectionHandledHandler");function r(h){if(h[v]===w){try{let l=a[j];l&&typeof l=="function"&&l.call(this,{rejection:h[d],promise:h})}catch{}h[v]=D;for(let l=0;l<m.length;l++)h===m[l].promise&&m.splice(l,1)}}function i(h,l,o,u,p){r(h);let R=h[v],y=R?typeof u=="function"?u:te:typeof p=="function"?p:X;l.scheduleMicroTask(B,()=>{try{let O=h[d],N=!!o&&F===o[F];N&&(o[q]=O,o[Y]=R);let L=l.run(y,void 0,N&&y!==X&&y!==te?[]:[O]);$(o,!0,L)}catch(O){$(o,!1,O)}},o)}let s="function ZoneAwarePromise() { [native code] }",b=function(){},x=n.AggregateError;class M{static toString(){return s}static resolve(l){return l instanceof M?l:$(new this(null),U,l)}static reject(l){return $(new this(null),D,l)}static withResolvers(){let l={};return l.promise=new M((o,u)=>{l.resolve=o,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new x([],"All promises were rejected"));let o=[],u=0;try{for(let y of l)u++,o.push(M.resolve(y))}catch{return Promise.reject(new x([],"All promises were rejected"))}if(u===0)return Promise.reject(new x([],"All promises were rejected"));let p=!1,R=[];return new M((y,O)=>{for(let N=0;N<o.length;N++)o[N].then(L=>{p||(p=!0,y(L))},L=>{R.push(L),u--,u===0&&(p=!0,O(new x(R,"All promises were rejected")))})})}static race(l){let o,u,p=new this((O,N)=>{o=O,u=N});function R(O){o(O)}function y(O){u(O)}for(let O of l)A(O)||(O=this.resolve(O)),O.then(R,y);return p}static all(l){return M.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof M?this:M).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,o){let u,p,R=new this((L,G)=>{u=L,p=G}),y=2,O=0,N=[];for(let L of l){A(L)||(L=this.resolve(L));let G=O;try{L.then(V=>{N[G]=o?o.thenCallback(V):V,y--,y===0&&u(N)},V=>{o?(N[G]=o.errorCallback(V),y--,y===0&&u(N)):p(V)})}catch(V){p(V)}y++,O++}return y-=2,y===0&&u(N),R}constructor(l){let o=this;if(!(o instanceof M))throw new Error("Must be an instanceof Promise.");o[v]=g,o[d]=[];try{let u=S();l&&l(u(k(o,U)),u(k(o,D)))}catch(u){$(o,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return M}then(l,o){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||M);let p=new u(b),R=a.current;return this[v]==g?this[d].push(R,p,l,o):i(this,R,p,l,o),p}catch(l){return this.then(null,l)}finally(l){let o=this.constructor?.[Symbol.species];(!o||typeof o!="function")&&(o=M);let u=new o(b);u[F]=F;let p=a.current;return this[v]==g?this[d].push(p,u,l,l):i(this,p,u,l,l),u}}M.resolve=M.resolve,M.reject=M.reject,M.race=M.race,M.all=M.all;let de=n[T]=n.Promise;n.Promise=M;let me=E("thenPatched");function he(h){let l=h.prototype,o=c(l,"then");if(o&&(o.writable===!1||!o.configurable))return;let u=l.then;l[I]=u,h.prototype.then=function(p,R){return new M((O,N)=>{u.call(this,O,N)}).then(p,R)},h[me]=!0}t.patchThen=he;function Pe(h){return function(l,o){let u=h.apply(l,o);if(u instanceof M)return u;let p=u.constructor;return p[me]||he(p),u}}return de&&(he(de),le(n,"fetch",h=>Pe(h))),Promise[a.__symbol__("uncaughtPromiseErrors")]=m,M})}function Ot(e){e.__load_patch("toString",n=>{let a=Function.prototype.toString,t=H("OriginalDelegate"),c=H("Promise"),f=H("Error"),_=function(){if(typeof this=="function"){let T=this[t];if(T)return typeof T=="function"?a.call(T):Object.prototype.toString.call(T);if(this===Promise){let I=n[c];if(I)return a.call(I)}if(this===Error){let I=n[f];if(I)return a.call(I)}}return a.call(this)};_[t]=a,Function.prototype.toString=_;let E=Object.prototype.toString,m="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?m:E.call(this)}})}function Nt(e,n,a,t,c){let f=Zone.__symbol__(t);if(n[f])return;let _=n[f]=n[t];n[t]=function(E,m,C){return m&&m.prototype&&c.forEach(function(T){let I=`${a}.${t}::`+T,P=m.prototype;try{if(P.hasOwnProperty(T)){let Z=e.ObjectGetOwnPropertyDescriptor(P,T);Z&&Z.value?(Z.value=e.wrapWithCurrentZone(Z.value,I),e._redefineProperty(m.prototype,T,Z)):P[T]&&(P[T]=e.wrapWithCurrentZone(P[T],I))}else P[T]&&(P[T]=e.wrapWithCurrentZone(P[T],I))}catch{}}),_.call(n,E,m,C)},e.attachOriginToPatched(n[t],_)}function Lt(e){e.__load_patch("util",(n,a,t)=>{let c=Ze(n);t.patchOnProperties=nt,t.patchMethod=le,t.bindArguments=Fe,t.patchMacroTask=gt;let f=a.__symbol__("BLACK_LISTED_EVENTS"),_=a.__symbol__("UNPATCHED_EVENTS");n[_]&&(n[f]=n[_]),n[f]&&(a[f]=a[_]=n[f]),t.patchEventPrototype=vt,t.patchEventTarget=kt,t.isIEOrEdge=mt,t.ObjectDefineProperty=Ae,t.ObjectGetOwnPropertyDescriptor=ve,t.ObjectCreate=dt,t.ArraySlice=_t,t.patchClass=ke,t.wrapWithCurrentZone=Ge,t.filterProperties=at,t.attachOriginToPatched=ue,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Nt,t.getGlobalObjects=()=>({globalSources:rt,zoneSymbolEventNames:ee,eventNames:c,isBrowser:Be,isMix:tt,isNode:De,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:be,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function It(e){Dt(e),Ot(e),Lt(e)}var lt=ht();It(lt);St(lt);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.p-overflow-hidden{overflow:hidden;padding-right:var(--scrollbar-width)}@layer primeng{.p-component,.p-component *{box-sizing:border-box}.p-hidden{display:none}.p-hidden-space{visibility:hidden}.p-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.p-hidden-accessible input,.p-hidden-accessible select{transform:scale(0)}.p-reset{margin:0;padding:0;border:0;outline:0;text-decoration:none;font-size:100%;list-style:none}.p-disabled,.p-disabled *{cursor:default!important;pointer-events:none}.p-component-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.p-unselectable-text{-webkit-user-select:none;user-select:none}.p-scrollbar-measure{width:100px;height:100px;overflow:scroll;position:absolute;top:-9999px}@-webkit-keyframes p-fadein{0%{opacity:0}to{opacity:1}}@keyframes p-fadein{0%{opacity:0}to{opacity:1}}input[type=button],input[type=submit],input[type=reset],input[type=file]::-webkit-file-upload-button,button{border-radius:0}.p-link{text-align:left;background-color:transparent;margin:0;padding:0;border:0;cursor:pointer;-webkit-user-select:none;user-select:none}.p-link:disabled{cursor:default}.p-sr-only{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.p-connected-overlay{opacity:0;transform:scaleY(.8);transition:transform .12s cubic-bezier(0,0,.2,1),opacity .12s cubic-bezier(0,0,.2,1)}.p-connected-overlay-visible{opacity:1;transform:scaleY(1)}.p-connected-overlay-hidden{opacity:0;transform:scaleY(1);transition:opacity .1s linear}.p-toggleable-content.ng-animating{overflow:hidden}.p-icon-wrapper{display:inline-flex}.p-icon{display:inline-block}.p-icon-spin{-webkit-animation:p-icon-spin 2s infinite linear;animation:p-icon-spin 2s infinite linear}}@-webkit-keyframes p-icon-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes p-icon-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@layer primeng{.p-badge{display:inline-block;border-radius:10px;text-align:center;padding:0 .5rem}.p-overlay-badge{position:relative}.p-overlay-badge .p-badge{position:absolute;top:0;right:0;transform:translate(50%,-50%);transform-origin:100% 0;margin:0}.p-badge-dot{width:.5rem;min-width:.5rem;height:.5rem;border-radius:50%;padding:0}.p-badge-no-gutter{padding:0;border-radius:50%}}@layer primeng{.p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default;pointer-events:none}.p-button-icon-only{justify-content:center}.p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-button-group .p-button{margin:0}.p-button-group .p-button:focus,.p-button-group p-button:focus .p-button,.p-buttonset .p-button:focus,.p-buttonset p-button:focus .p-button{position:relative;z-index:1}.p-button-group .p-button:not(:last-child),.p-button-group .p-button:not(:last-child):hover,.p-button-group p-button:not(:last-child) .p-button,.p-button-group p-button:not(:last-child) .p-button:hover,.p-buttonset .p-button:not(:last-child),.p-buttonset .p-button:not(:last-child):hover,.p-buttonset p-button:not(:last-child) .p-button,.p-buttonset p-button:not(:last-child) .p-button:hover{border-right:0 none}.p-button-group .p-button:not(:first-of-type):not(:last-of-type),.p-button-group p-button:not(:first-of-type):not(:last-of-type) .p-button,.p-buttonset .p-button:not(:first-of-type):not(:last-of-type),.p-buttonset p-button:not(:first-of-type):not(:last-of-type) .p-button{border-radius:0}.p-button-group .p-button:first-of-type:not(:only-of-type),.p-button-group p-button:first-of-type:not(:only-of-type) .p-button,.p-buttonset .p-button:first-of-type:not(:only-of-type),.p-buttonset p-button:first-of-type:not(:only-of-type) .p-button{border-top-right-radius:0;border-bottom-right-radius:0}.p-button-group .p-button:last-of-type:not(:only-of-type),.p-button-group p-button:last-of-type:not(:only-of-type) .p-button,.p-buttonset .p-button:last-of-type:not(:only-of-type),.p-buttonset p-button:last-of-type:not(:only-of-type) .p-button{border-top-left-radius:0;border-bottom-left-radius:0}p-button[iconpos=right] spinnericon{order:1}}@layer primeng{.p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}}.p-colorpicker-panel .p-colorpicker-color{background:transparent url("./media/color-3LUHUBGQ.png") no-repeat left top}.p-colorpicker-panel .p-colorpicker-hue{background:transparent url("./media/hue-RMMBQOAC.png") no-repeat left top}@layer primeng{.p-inputtext{margin:0}.p-fluid .p-inputtext{width:100%}.p-inputgroup{display:flex;align-items:stretch;width:100%}.p-inputgroup-addon{display:flex;align-items:center;justify-content:center}.p-inputgroup .p-float-label{display:flex;align-items:stretch;width:100%}.p-inputgroup .p-inputtext,.p-fluid .p-inputgroup .p-inputtext,.p-inputgroup .p-inputwrapper,.p-inputgroup .p-inputwrapper>.p-component{flex:1 1 auto;width:1%}.p-float-label{display:block;position:relative}.p-float-label label{position:absolute;pointer-events:none;top:50%;margin-top:-.5rem;transition-property:all;transition-timing-function:ease;line-height:1}.p-float-label textarea~label{top:1rem}.p-float-label input:focus~label,.p-float-label input.p-filled~label,.p-float-label textarea:focus~label,.p-float-label textarea.p-filled~label,.p-float-label .p-inputwrapper-focus~label,.p-float-label .p-inputwrapper-filled~label{top:-.75rem;font-size:12px}.p-float-label .input:-webkit-autofill~label{top:-20px;font-size:12px}.p-float-label .p-placeholder,.p-float-label input::placeholder,.p-float-label .p-inputtext::placeholder{opacity:0;transition-property:all;transition-timing-function:ease}.p-float-label .p-focus .p-placeholder,.p-float-label input:focus::placeholder,.p-float-label .p-inputtext:focus::placeholder{opacity:1;transition-property:all;transition-timing-function:ease}.p-input-icon-left,.p-input-icon-right{position:relative;display:inline-block}.p-input-icon-left>i,.p-input-icon-left>.p-icon-wrapper,.p-input-icon-right>i,.p-input-icon-right>.p-icon-wrapper{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-input-icon-left,.p-fluid .p-input-icon-right{display:block;width:100%}}@layer primeng{.p-inputtextarea-resizable{overflow:hidden;resize:none}.p-fluid .p-inputtextarea{width:100%}}@layer primeng{.p-password{position:relative;display:inline-flex}.p-password-panel{position:absolute;top:0;left:0}.p-password .p-password-panel{min-width:100%}.p-password-meter{height:10px}.p-password-strength{height:100%;width:0;transition:width 1s ease-in-out}.p-fluid .p-password{display:flex}.p-password-input::-ms-reveal,.p-password-input::-ms-clear{display:none}.p-password-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-password .p-icon{cursor:pointer}.p-password-clearable.p-password-mask .p-password-clear-icon{margin-top:unset}.p-password-clearable{position:relative}}@layer primeng{.p-radiobutton{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-radiobutton-box{display:flex;justify-content:center;align-items:center}.p-radiobutton-icon{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0) scale(.1);border-radius:50%;visibility:hidden}.p-radiobutton-box.p-highlight .p-radiobutton-icon{transform:translateZ(0) scale(1);visibility:visible}p-radiobutton{display:inline-flex;vertical-align:bottom;align-items:center}.p-radiobutton-label{line-height:1}}@layer primeng{.p-ripple{overflow:hidden;position:relative}.p-ink{display:block;position:absolute;background:#ffffff80;border-radius:100%;transform:scale(0)}.p-ink-active{animation:ripple .4s linear}.p-ripple-disabled .p-ink{display:none!important}}@keyframes ripple{to{opacity:0;transform:scale(2.5)}}@layer primeng{.p-tooltip{position:absolute;display:none;padding:.25em .5rem;max-width:12.5rem;pointer-events:none}.p-tooltip.p-tooltip-right,.p-tooltip.p-tooltip-left{padding:0 .25rem}.p-tooltip.p-tooltip-top,.p-tooltip.p-tooltip-bottom{padding:.25em 0}.p-tooltip .p-tooltip-text{white-space:pre-line;word-break:break-word}.p-tooltip-arrow{scale:2;position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.p-tooltip-right .p-tooltip-arrow{top:50%;left:0;margin-top:-.25rem;border-width:.25em .25em .25em 0}.p-tooltip-left .p-tooltip-arrow{top:50%;right:0;margin-top:-.25rem;border-width:.25em 0 .25em .25rem}.p-tooltip.p-tooltip-top{padding:.25em 0}.p-tooltip-top .p-tooltip-arrow{bottom:0;left:50%;margin-left:-.25rem;border-width:.25em .25em 0}.p-tooltip-bottom .p-tooltip-arrow{top:0;left:50%;margin-left:-.25rem;border-width:0 .25em .25rem}}@font-face{font-family:primeicons;font-display:block;src:url("./media/primeicons-RSSEDYLY.eot");src:url("./media/primeicons-RSSEDYLY.eot?#iefix") format("embedded-opentype"),url("./media/primeicons-4GST5W3O.woff2") format("woff2"),url("./media/primeicons-P53SE5CV.woff") format("woff"),url("./media/primeicons-GEFHGEHP.ttf") format("truetype"),url("./media/primeicons-DHQU4SEP.svg?#primeicons") format("svg");font-weight:400;font-style:normal}.pi{font-family:primeicons;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.pi:before{--webkit-backface-visibility:hidden;backface-visibility:hidden}.pi-fw{width:1.28571429em;text-align:center}.pi-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}@media (prefers-reduced-motion: reduce){.pi-spin{-webkit-animation-delay:-1ms;animation-delay:-1ms;-webkit-animation-duration:1ms;animation-duration:1ms;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s}}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.pi-folder-plus:before{content:"\ea05"}.pi-receipt:before{content:"\ea06"}.pi-asterisk:before{content:"\ea07"}.pi-face-smile:before{content:"\ea08"}.pi-pinterest:before{content:"\ea09"}.pi-expand:before{content:"\ea0a"}.pi-pen-to-square:before{content:"\ea0b"}.pi-wave-pulse:before{content:"\ea0c"}.pi-turkish-lira:before{content:"\ea0d"}.pi-spinner-dotted:before{content:"\ea0e"}.pi-crown:before{content:"\ea0f"}.pi-pause-circle:before{content:"\ea10"}.pi-warehouse:before{content:"\ea11"}.pi-objects-column:before{content:"\ea12"}.pi-clipboard:before{content:"\ea13"}.pi-play-circle:before{content:"\ea14"}.pi-venus:before{content:"\ea15"}.pi-cart-minus:before{content:"\ea16"}.pi-file-plus:before{content:"\ea17"}.pi-microchip:before{content:"\ea18"}.pi-twitch:before{content:"\ea19"}.pi-building-columns:before{content:"\ea1a"}.pi-file-check:before{content:"\ea1b"}.pi-microchip-ai:before{content:"\ea1c"}.pi-trophy:before{content:"\ea1d"}.pi-barcode:before{content:"\ea1e"}.pi-file-arrow-up:before{content:"\ea1f"}.pi-mars:before{content:"\ea20"}.pi-tiktok:before{content:"\ea21"}.pi-arrow-up-right-and-arrow-down-left-from-center:before{content:"\ea22"}.pi-ethereum:before{content:"\ea23"}.pi-list-check:before{content:"\ea24"}.pi-thumbtack:before{content:"\ea25"}.pi-arrow-down-left-and-arrow-up-right-to-center:before{content:"\ea26"}.pi-equals:before{content:"\ea27"}.pi-lightbulb:before{content:"\ea28"}.pi-star-half:before{content:"\ea29"}.pi-address-book:before{content:"\ea2a"}.pi-chart-scatter:before{content:"\ea2b"}.pi-indian-rupee:before{content:"\ea2c"}.pi-star-half-fill:before{content:"\ea2d"}.pi-cart-arrow-down:before{content:"\ea2e"}.pi-calendar-clock:before{content:"\ea2f"}.pi-sort-up-fill:before{content:"\ea30"}.pi-sparkles:before{content:"\ea31"}.pi-bullseye:before{content:"\ea32"}.pi-sort-down-fill:before{content:"\ea33"}.pi-graduation-cap:before{content:"\ea34"}.pi-hammer:before{content:"\ea35"}.pi-bell-slash:before{content:"\ea36"}.pi-gauge:before{content:"\ea37"}.pi-shop:before{content:"\ea38"}.pi-headphones:before{content:"\ea39"}.pi-eraser:before{content:"\ea04"}.pi-stopwatch:before{content:"\ea01"}.pi-verified:before{content:"\ea02"}.pi-delete-left:before{content:"\ea03"}.pi-hourglass:before{content:"\e9fe"}.pi-truck:before{content:"\ea00"}.pi-wrench:before{content:"\e9ff"}.pi-microphone:before{content:"\e9fa"}.pi-megaphone:before{content:"\e9fb"}.pi-arrow-right-arrow-left:before{content:"\e9fc"}.pi-bitcoin:before{content:"\e9fd"}.pi-file-edit:before{content:"\e9f6"}.pi-language:before{content:"\e9f7"}.pi-file-export:before{content:"\e9f8"}.pi-file-import:before{content:"\e9f9"}.pi-file-word:before{content:"\e9f1"}.pi-gift:before{content:"\e9f2"}.pi-cart-plus:before{content:"\e9f3"}.pi-thumbs-down-fill:before{content:"\e9f4"}.pi-thumbs-up-fill:before{content:"\e9f5"}.pi-arrows-alt:before{content:"\e9f0"}.pi-calculator:before{content:"\e9ef"}.pi-sort-alt-slash:before{content:"\e9ee"}.pi-arrows-h:before{content:"\e9ec"}.pi-arrows-v:before{content:"\e9ed"}.pi-pound:before{content:"\e9eb"}.pi-prime:before{content:"\e9ea"}.pi-chart-pie:before{content:"\e9e9"}.pi-reddit:before{content:"\e9e8"}.pi-code:before{content:"\e9e7"}.pi-sync:before{content:"\e9e6"}.pi-shopping-bag:before{content:"\e9e5"}.pi-server:before{content:"\e9e4"}.pi-database:before{content:"\e9e3"}.pi-hashtag:before{content:"\e9e2"}.pi-bookmark-fill:before{content:"\e9df"}.pi-filter-fill:before{content:"\e9e0"}.pi-heart-fill:before{content:"\e9e1"}.pi-flag-fill:before{content:"\e9de"}.pi-circle:before{content:"\e9dc"}.pi-circle-fill:before{content:"\e9dd"}.pi-bolt:before{content:"\e9db"}.pi-history:before{content:"\e9da"}.pi-box:before{content:"\e9d9"}.pi-at:before{content:"\e9d8"}.pi-arrow-up-right:before{content:"\e9d4"}.pi-arrow-up-left:before{content:"\e9d5"}.pi-arrow-down-left:before{content:"\e9d6"}.pi-arrow-down-right:before{content:"\e9d7"}.pi-telegram:before{content:"\e9d3"}.pi-stop-circle:before{content:"\e9d2"}.pi-stop:before{content:"\e9d1"}.pi-whatsapp:before{content:"\e9d0"}.pi-building:before{content:"\e9cf"}.pi-qrcode:before{content:"\e9ce"}.pi-car:before{content:"\e9cd"}.pi-instagram:before{content:"\e9cc"}.pi-linkedin:before{content:"\e9cb"}.pi-send:before{content:"\e9ca"}.pi-slack:before{content:"\e9c9"}.pi-sun:before{content:"\e9c8"}.pi-moon:before{content:"\e9c7"}.pi-vimeo:before{content:"\e9c6"}.pi-youtube:before{content:"\e9c5"}.pi-flag:before{content:"\e9c4"}.pi-wallet:before{content:"\e9c3"}.pi-map:before{content:"\e9c2"}.pi-link:before{content:"\e9c1"}.pi-credit-card:before{content:"\e9bf"}.pi-discord:before{content:"\e9c0"}.pi-percentage:before{content:"\e9be"}.pi-euro:before{content:"\e9bd"}.pi-book:before{content:"\e9ba"}.pi-shield:before{content:"\e9b9"}.pi-paypal:before{content:"\e9bb"}.pi-amazon:before{content:"\e9bc"}.pi-phone:before{content:"\e9b8"}.pi-filter-slash:before{content:"\e9b7"}.pi-facebook:before{content:"\e9b4"}.pi-github:before{content:"\e9b5"}.pi-twitter:before{content:"\e9b6"}.pi-step-backward-alt:before{content:"\e9ac"}.pi-step-forward-alt:before{content:"\e9ad"}.pi-forward:before{content:"\e9ae"}.pi-backward:before{content:"\e9af"}.pi-fast-backward:before{content:"\e9b0"}.pi-fast-forward:before{content:"\e9b1"}.pi-pause:before{content:"\e9b2"}.pi-play:before{content:"\e9b3"}.pi-compass:before{content:"\e9ab"}.pi-id-card:before{content:"\e9aa"}.pi-ticket:before{content:"\e9a9"}.pi-file-o:before{content:"\e9a8"}.pi-reply:before{content:"\e9a7"}.pi-directions-alt:before{content:"\e9a5"}.pi-directions:before{content:"\e9a6"}.pi-thumbs-up:before{content:"\e9a3"}.pi-thumbs-down:before{content:"\e9a4"}.pi-sort-numeric-down-alt:before{content:"\e996"}.pi-sort-numeric-up-alt:before{content:"\e997"}.pi-sort-alpha-down-alt:before{content:"\e998"}.pi-sort-alpha-up-alt:before{content:"\e999"}.pi-sort-numeric-down:before{content:"\e99a"}.pi-sort-numeric-up:before{content:"\e99b"}.pi-sort-alpha-down:before{content:"\e99c"}.pi-sort-alpha-up:before{content:"\e99d"}.pi-sort-alt:before{content:"\e99e"}.pi-sort-amount-up:before{content:"\e99f"}.pi-sort-amount-down:before{content:"\e9a0"}.pi-sort-amount-down-alt:before{content:"\e9a1"}.pi-sort-amount-up-alt:before{content:"\e9a2"}.pi-palette:before{content:"\e995"}.pi-undo:before{content:"\e994"}.pi-desktop:before{content:"\e993"}.pi-sliders-v:before{content:"\e991"}.pi-sliders-h:before{content:"\e992"}.pi-search-plus:before{content:"\e98f"}.pi-search-minus:before{content:"\e990"}.pi-file-excel:before{content:"\e98e"}.pi-file-pdf:before{content:"\e98d"}.pi-check-square:before{content:"\e98c"}.pi-chart-line:before{content:"\e98b"}.pi-user-edit:before{content:"\e98a"}.pi-exclamation-circle:before{content:"\e989"}.pi-android:before{content:"\e985"}.pi-google:before{content:"\e986"}.pi-apple:before{content:"\e987"}.pi-microsoft:before{content:"\e988"}.pi-heart:before{content:"\e984"}.pi-mobile:before{content:"\e982"}.pi-tablet:before{content:"\e983"}.pi-key:before{content:"\e981"}.pi-shopping-cart:before{content:"\e980"}.pi-comments:before{content:"\e97e"}.pi-comment:before{content:"\e97f"}.pi-briefcase:before{content:"\e97d"}.pi-bell:before{content:"\e97c"}.pi-paperclip:before{content:"\e97b"}.pi-share-alt:before{content:"\e97a"}.pi-envelope:before{content:"\e979"}.pi-volume-down:before{content:"\e976"}.pi-volume-up:before{content:"\e977"}.pi-volume-off:before{content:"\e978"}.pi-eject:before{content:"\e975"}.pi-money-bill:before{content:"\e974"}.pi-images:before{content:"\e973"}.pi-image:before{content:"\e972"}.pi-sign-in:before{content:"\e970"}.pi-sign-out:before{content:"\e971"}.pi-wifi:before{content:"\e96f"}.pi-sitemap:before{content:"\e96e"}.pi-chart-bar:before{content:"\e96d"}.pi-camera:before{content:"\e96c"}.pi-dollar:before{content:"\e96b"}.pi-lock-open:before{content:"\e96a"}.pi-table:before{content:"\e969"}.pi-map-marker:before{content:"\e968"}.pi-list:before{content:"\e967"}.pi-eye-slash:before{content:"\e965"}.pi-eye:before{content:"\e966"}.pi-folder-open:before{content:"\e964"}.pi-folder:before{content:"\e963"}.pi-video:before{content:"\e962"}.pi-inbox:before{content:"\e961"}.pi-lock:before{content:"\e95f"}.pi-unlock:before{content:"\e960"}.pi-tags:before{content:"\e95d"}.pi-tag:before{content:"\e95e"}.pi-power-off:before{content:"\e95c"}.pi-save:before{content:"\e95b"}.pi-question-circle:before{content:"\e959"}.pi-question:before{content:"\e95a"}.pi-copy:before{content:"\e957"}.pi-file:before{content:"\e958"}.pi-clone:before{content:"\e955"}.pi-calendar-times:before{content:"\e952"}.pi-calendar-minus:before{content:"\e953"}.pi-calendar-plus:before{content:"\e954"}.pi-ellipsis-v:before{content:"\e950"}.pi-ellipsis-h:before{content:"\e951"}.pi-bookmark:before{content:"\e94e"}.pi-globe:before{content:"\e94f"}.pi-replay:before{content:"\e94d"}.pi-filter:before{content:"\e94c"}.pi-print:before{content:"\e94b"}.pi-align-right:before{content:"\e946"}.pi-align-left:before{content:"\e947"}.pi-align-center:before{content:"\e948"}.pi-align-justify:before{content:"\e949"}.pi-cog:before{content:"\e94a"}.pi-cloud-download:before{content:"\e943"}.pi-cloud-upload:before{content:"\e944"}.pi-cloud:before{content:"\e945"}.pi-pencil:before{content:"\e942"}.pi-users:before{content:"\e941"}.pi-clock:before{content:"\e940"}.pi-user-minus:before{content:"\e93e"}.pi-user-plus:before{content:"\e93f"}.pi-trash:before{content:"\e93d"}.pi-external-link:before{content:"\e93c"}.pi-window-maximize:before{content:"\e93b"}.pi-window-minimize:before{content:"\e93a"}.pi-refresh:before{content:"\e938"}.pi-user:before{content:"\e939"}.pi-exclamation-triangle:before{content:"\e922"}.pi-calendar:before{content:"\e927"}.pi-chevron-circle-left:before{content:"\e928"}.pi-chevron-circle-down:before{content:"\e929"}.pi-chevron-circle-right:before{content:"\e92a"}.pi-chevron-circle-up:before{content:"\e92b"}.pi-angle-double-down:before{content:"\e92c"}.pi-angle-double-left:before{content:"\e92d"}.pi-angle-double-right:before{content:"\e92e"}.pi-angle-double-up:before{content:"\e92f"}.pi-angle-down:before{content:"\e930"}.pi-angle-left:before{content:"\e931"}.pi-angle-right:before{content:"\e932"}.pi-angle-up:before{content:"\e933"}.pi-upload:before{content:"\e934"}.pi-download:before{content:"\e956"}.pi-ban:before{content:"\e935"}.pi-star-fill:before{content:"\e936"}.pi-star:before{content:"\e937"}.pi-chevron-left:before{content:"\e900"}.pi-chevron-right:before{content:"\e901"}.pi-chevron-down:before{content:"\e902"}.pi-chevron-up:before{content:"\e903"}.pi-caret-left:before{content:"\e904"}.pi-caret-right:before{content:"\e905"}.pi-caret-down:before{content:"\e906"}.pi-caret-up:before{content:"\e907"}.pi-search:before{content:"\e908"}.pi-check:before{content:"\e909"}.pi-check-circle:before{content:"\e90a"}.pi-times:before{content:"\e90b"}.pi-times-circle:before{content:"\e90c"}.pi-plus:before{content:"\e90d"}.pi-plus-circle:before{content:"\e90e"}.pi-minus:before{content:"\e90f"}.pi-minus-circle:before{content:"\e910"}.pi-circle-on:before{content:"\e911"}.pi-circle-off:before{content:"\e912"}.pi-sort-down:before{content:"\e913"}.pi-sort-up:before{content:"\e914"}.pi-sort:before{content:"\e915"}.pi-step-backward:before{content:"\e916"}.pi-step-forward:before{content:"\e917"}.pi-th-large:before{content:"\e918"}.pi-arrow-down:before{content:"\e919"}.pi-arrow-left:before{content:"\e91a"}.pi-arrow-right:before{content:"\e91b"}.pi-arrow-up:before{content:"\e91c"}.pi-bars:before{content:"\e91d"}.pi-arrow-circle-down:before{content:"\e91e"}.pi-arrow-circle-left:before{content:"\e91f"}.pi-arrow-circle-right:before{content:"\e920"}.pi-arrow-circle-up:before{content:"\e921"}.pi-info:before{content:"\e923"}.pi-info-circle:before{content:"\e924"}.pi-home:before{content:"\e925"}.pi-spinner:before{content:"\e926"}html{font-size:14px}body{margin:0}.cursor-pointer{cursor:pointer}.data-grid-height{height:calc(100vh + -0px)}button{cursor:pointer}.p-inputnumber-button-group{display:none}button.ql-image{display:none!important}.text-underline{text-decoration:underline}.text-right{text-align:right}.text-small{font-size:small}.max-height-100p{max-height:100%}
|
|
@@ -2,14 +2,18 @@
|
|
|
2
2
|
const fs = require("fs");
|
|
3
3
|
const path = require("path");
|
|
4
4
|
const { Input } = require('enquirer');
|
|
5
|
+
// Duplicate with api_maker_be
|
|
5
6
|
class SetEnvInFrontend {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.mainBakFileName = 'main__bak.js';
|
|
9
|
+
}
|
|
6
10
|
async main(appRoot, envPathFromParent) {
|
|
7
11
|
const defaultEnvPathFromAppRoot = path.join(appRoot, '.env');
|
|
8
12
|
console.log(`[SYS] : [Ex.] APP Root Env : ${defaultEnvPathFromAppRoot}`);
|
|
9
13
|
const defaultEnvPath = '/root/config/.env';
|
|
10
14
|
const envPath = envPathFromParent || await this.getEnvPath(defaultEnvPath);
|
|
11
|
-
const mainFilePath = path.join(appRoot, 'dist'
|
|
12
|
-
const mainBackupFilePath = path.join(appRoot, 'dist',
|
|
15
|
+
const mainFilePath = await this.findMainFileName(path.join(appRoot, 'dist'));
|
|
16
|
+
const mainBackupFilePath = path.join(appRoot, 'dist', this.mainBakFileName);
|
|
13
17
|
const packageJsonPath = path.join(appRoot, 'package.json');
|
|
14
18
|
const envFilePath = envPath || path.join(appRoot, '.env');
|
|
15
19
|
const amSettings = JSON.parse(await fs.promises.readFile(packageJsonPath, { encoding: 'utf8' })).am;
|
|
@@ -31,6 +35,17 @@ class SetEnvInFrontend {
|
|
|
31
35
|
if (!envPathFromParent)
|
|
32
36
|
console.log(`[SYS] : ✅ .env variables are written successfully in dist folder frontend...!!!\n`);
|
|
33
37
|
}
|
|
38
|
+
async findMainFileName(dirPath) {
|
|
39
|
+
let mainFileName = 'main.js';
|
|
40
|
+
const fileNames = await fs.promises.readdir(dirPath);
|
|
41
|
+
for (const fileName of fileNames) {
|
|
42
|
+
if (fileName.startsWith('main.') && fileName.endsWith('.js')) {
|
|
43
|
+
mainFileName = fileName;
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return path.join(dirPath, mainFileName);
|
|
48
|
+
}
|
|
34
49
|
async createBackupOfMainFileIfNotExists(mainFilePath, mainBackupFilePath) {
|
|
35
50
|
if (!fs.existsSync(mainBackupFilePath)) {
|
|
36
51
|
await fs.promises.copyFile(mainFilePath, mainBackupFilePath);
|
package/dist/1097.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[1097,6925,8374,8682,1617],{1097:(Se,q,d)=>{d.r(q),d.d(q,{DbMastersM:()=>ea});var N=d(7664),w=d(7359),O=d(3726),c=d(5861),u=d(95),_=d(6990),G=d(8645),H=d(3620),f=d(3157),p=d(328),y=d(9361),M=d(1162),s=d(553),I=d(5085),z=d(1601),T=d(3531),V=d(9989),e=d(4946),U=d(9961),k=d(7240),Z=d(7414),re=d(9729),P=d(5852),W=d(2304),le=d(4795),J=d(3429),R=d(2915),K=d(2189),j=d(3835),Y=d(6814),X=d(2660),ee=d(5860),te=d(756),x=d(5219),Te=d(1396),L=d(7680),Q=d(4844),B=d(3259),ve=d(3965),ae=d(5025),De=d(4323);const ye=["insertCodeModalC"],Ue=["monacoEditorModalC"];function ke(i,r){1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",44),e._uU(2," Add UI Page"),e.qZA())}function Ze(i,r){1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",45),e._uU(2," View UI Page"),e.qZA())}function we(i,r){if(1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",46),e._uU(2," Edit UI Page "),e.TgZ(3,"span",47),e._uU(4),e.qZA(),e.TgZ(5,"span",47),e._uU(6),e.qZA(),e.TgZ(7,"span",47),e._uU(8),e.qZA(),e.TgZ(9,"span",47),e._uU(10),e.qZA()()),2&i){const t=e.oxw();e.xp6(4),e.Oqu(null==t.form.get("instanceName").value?null:t.form.get("instanceName").value.name),e.xp6(2),e.hij("| \xa0",null==t.form.get("databaseName").value?null:t.form.get("databaseName").value.db,""),e.xp6(2),e.hij("| \xa0",null==t.form.get("collectionName").value?null:t.form.get("collectionName").value.name,""),e.xp6(2),e.hij("| \xa0",t.form.get("name").value,"")}}function Ie(i,r){if(1&i&&(e._UZ(0,"span",48),e.ALo(1,"safeHtml")),2&i){const t=r.$implicit;e.Q6J("innerHTML",e.lcZ(1,1,t.labelHTML||t.label),e.oJD)}}function xe(i,r){if(1&i&&(e._UZ(0,"span",48),e.ALo(1,"safeHtml")),2&i){const t=r.$implicit;e.Q6J("innerHTML",e.lcZ(1,1,t.labelHTML||t.label),e.oJD)}}function Ee(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",49)(1,"app-monaco-editor",50),e.NdJ("onDidChangeModelContent",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.editorConfigValueChanged())})("editorGenerated",function(o){e.CHM(t);const n=e.oxw();return e.KtG(n.editorGenerated(o))}),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(1),e.Q6J("isSchemaEditor",!0)("isUIMakerEditor",!1)("editorOptions",t.editorOptionsDBMasters)}}function Ae(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",49)(1,"app-monaco-editor",50),e.NdJ("onDidChangeModelContent",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.editorConfigJSValueChanged())})("editorGenerated",function(o){e.CHM(t);const n=e.oxw();return e.KtG(n.editorGeneratedJSUtil(o))}),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(1),e.Q6J("isSchemaEditor",!0)("isUIMakerEditor",!0)("editorOptions",t.editorOptionsDBMastersJS)}}function Fe(i,r){if(1&i&&(e.TgZ(0,"span",51),e._uU(1),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.AsE(" You are allowed to use ",null==t.authS.backendSettings?null:t.authS.backendSettings.dbMastersCountForUI," UI pages, and you are using ",t.totalCreatedMasters," UI Pages. ")}}function Ne(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"a",52),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.viewError())}),e._uU(1,"View error"),e.qZA()}}function Oe(i,r){1&i&&(e.TgZ(0,"span"),e._uU(1,"Update"),e.qZA())}function Pe(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",53),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.save(!1))}),e._UZ(1,"i",54),e.YNc(2,Oe,2,0,"span",4),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("disabled",t.form.invalid),e.xp6(2),e.Q6J("ngIf",t.data.mode===t.EFormMode.EDIT)}}function Je(i,r){1&i&&(e.TgZ(0,"span"),e._uU(1,"Save"),e.qZA())}function Re(i,r){1&i&&(e.TgZ(0,"span"),e._uU(1,"Update & Close"),e.qZA())}function Ye(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",53),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.save(!0))}),e._UZ(1,"i",54),e.YNc(2,Je,2,0,"span",4),e.YNc(3,Re,2,0,"span",4),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("disabled",t.form.invalid||t.totalCreatedMasters>(null==t.authS.backendSettings?null:t.authS.backendSettings.dbMastersCountForUI)),e.xp6(2),e.Q6J("ngIf",t.data.mode===t.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",t.data.mode===t.EFormMode.EDIT)}}function Le(i,r){1&i&&e._UZ(0,"p-progressSpinner",55)}let de=(()=>{class i{fb;ns;generalS;constantsS;dbMastersS;authCS;monacoS;authS;instanceS;eventCenterS;generalCS;navigationCS;userS;zone;cd;data;totalCreatedMasters;loading={form:!1};EFormMode=p.D;form;subscriptions=[];formData;IEventData=f.F;id;activeIndex=0;BE_HOST_PORT=s.N.BE_HOST_PORT;DOCS_HOST_PORT=s.N.DOCS_HOST_PORT;instances=[];editorDBMaster;editorDBMasterJS;editorOptionsDBMasters={readOnly:!1,language:"typescript",contextmenu:!0};editorOptionsDBMastersJS={readOnly:!1,language:"typescript",contextmenu:!0};lastError;editorOptionsMonacoEditorModal={readOnly:!0,language:"json",contextmenu:!0};insertCodeModalC;viewDockerfileModelC;shouldLoadMonacoEditor=!1;monacoDecorations=[];tab={};dbIdMap={};colIdMap={};formDataTemp=null;selectedConfigOutlineNode;outlineData=[];selectedConfigOutlineNodeFunctions;outlineDataFunctions=[];constructor(t,a,o,n,l,m,C,g,h,v,D,E,A,F,se){this.fb=t,this.ns=a,this.generalS=o,this.constantsS=n,this.dbMastersS=l,this.authCS=m,this.monacoS=C,this.authS=g,this.instanceS=h,this.eventCenterS=v,this.generalCS=D,this.navigationCS=E,this.userS=A,this.zone=F,this.cd=se}ngOnInit(){var t=this;return(0,c.Z)(function*(){t.createForm(),t.subscriptions.push(t.data.eventChannel.subscribe(function(){var a=(0,c.Z)(function*(o){if(o)if(t.form.enable(),o.action===f.F.OPEN_FORM_IN_EDIT_MODE)yield t.editViewLoadData(),t.cd.detectChanges();else if(o.action===f.F.OPEN_FORM_IN_VIEW_MODE)yield t.editViewLoadData(),t.form.disable(),t.cd.detectChanges();else if(o.action===f.F.OPEN_FORM_IN_ADD_MODE){t.form.reset(),t.resetDependentObjects("INSTANCE"),yield t.loadInstances();const n=yield t.instanceS.getDefaultContent(t.BE_HOST_PORT,I.R.DB_MASTERS_JSON).toPromise();t.editorOptionsDBMasters={readOnly:!1},t.generalCS.setValueInEditor(t,"editorDBMaster",n.data);const l=yield t.instanceS.getDefaultContent(t.BE_HOST_PORT,I.R.DB_MASTERS_JS_UTILS).toPromise();t.editorOptionsDBMastersJS={readOnly:!1},t.generalCS.setValueInEditor(t,"editorDBMasterJS",l.data),t.cd.detectChanges()}});return function(o){return a.apply(this,arguments)}}())),t.subscriptions.push(t.editorConfigValueChangedSubject.pipe((0,H.b)(500)).subscribe((0,c.Z)(function*(){const a=t.editorDBMaster.getValue();a&&(yield t.getOutlineDBMaster({tsCode:a,mode:"config"}))}))),t.subscriptions.push(t.editorConfigJSValueChangedSubject.pipe((0,H.b)(500)).subscribe((0,c.Z)(function*(){const a=t.editorDBMasterJS.getValue();a&&(yield t.getOutlineDBMasterJS({tsCode:a,mode:"utility_functions"}))})))})()}editViewLoadData(){var t=this;return(0,c.Z)(function*(){const a=yield t.dbMastersS.getById(t.data.formData._id).toPromise();t.form.reset(),t.resetDependentObjects("INSTANCE"),t.form.patchValue(a.data),t.formDataTemp=a.data,t.generalCS.setValueInEditor(t,"editorDBMaster",a.data?.dbMasterConfigCode||""),t.generalCS.setValueInEditor(t,"editorDBMasterJS",a.data?.pageUtilsCode||""),yield t.loadInstances(),yield t.getOutlineDBMaster({masterId:a.data._id,mode:"config"}),yield t.getOutlineDBMaster({masterId:a.data._id,mode:"utility_functions"}),t.formDataTemp=null})()}createForm(){this.form=this.fb.group({name:[null,[u.kI.required,u.kI.minLength(3),u.kI.maxLength(50),u.kI.pattern("[a-zA-Z0-9_-]*$")]],instanceName:[null,[u.kI.required]],databaseName:[null,[u.kI.required]],collectionName:[null,[u.kI.required]]})}showModal(){this.lastError=void 0,this.shouldLoadMonacoEditor=!0,this.activeIndex=0,setTimeout(()=>{$("#idDBMastersForm").modal("show")},100)}hideModal(){$("#idDBMastersForm").modal("hide")}save(t){var a=this;return(0,c.Z)(function*(){const o=a.form.getRawValue();let C;o.instanceName=o.instanceName.name,o.databaseName=o.databaseName.db,o.collectionName=o.collectionName.name,C=a.data.formData&&a.data.formData._id?(yield a.dbMastersS.getById(a.data.formData._id).toPromise()).data:{};const g=Object.assign({},C,o);g.user=a.authCS.getUserId(),g.dbMasterConfigCode=a.editorDBMaster.getValue(),g.pageUtilsCode=a.editorDBMasterJS.getValue();try{let h;a.loading.form=!0,a.lastError=void 0,a.monacoS.clearEditorDecorations(a.editorDBMaster,a.monacoDecorations),a.monacoS.clearEditorDecorations(a.editorDBMasterJS,a.monacoDecorations),a.data.mode===p.D.ADD?h=yield a.dbMastersS.post(g).toPromise():a.data.mode===p.D.EDIT&&(h=yield a.dbMastersS.put(g._id,g,{select:M.iH._id}).toPromise()),a.ns.showSuccess(a.data.mode===p.D.ADD?a.constantsS.dbMaster.addSuccess:a.constantsS.dbMaster.editSuccess),t&&a.data.eventChannel.emit({action:a.data.mode===p.D.ADD?f.F.SAVED:f.F.UPDATED,data:h}),a.loading.form=!1}catch(h){a.loading.form=!1,a.ns.showErrorFromResponse(h.error||h,"Unable to save database master."),a.lastError=h.error,a.tab=a.tab||{},a.tab.axiosResponse={data:h.error},a.monacoS.highlightErrorInMonacoEditor(a.editorDBMaster,a.tab,"MainSandbox.ts",a.monacoDecorations)}a.cd.detectChanges()})()}showInsertCodeModel(){this.generalCS.messageReceivedFor=y.H.All,this.insertCodeModalC.showModal(T.b.CodeFinderResultC)}editorGenerated(t){var a=this;return(0,c.Z)(function*(){a.editorDBMaster=t,yield a.monacoS.loadSchemaEditorSettings(a.BE_HOST_PORT,a.authCS.getUserId(),null),a.monacoS.addSaveCodeKeyBinding(t,o=>{a.form.valid&&a.save(!1)}),a.monacoS.addInsertCodeKeyBinding(t,o=>{a.generalCS.messageReceivedFor=y.H.All,a.data.mode!==p.D.VIEW&&a.insertCodeModalC.showModal(T.b.DBMastersFormC)}),a.subscriptions.push(a.generalS.messageReceived.subscribe(o=>{o.type&&o.type===V.g.TEXT_COPIED&&o.componentName===T.b.DBMastersFormC&&(a.monacoS.insertAtCursor(t,o.selectedText),a.insertCodeModalC.hideModal())}))})()}editorGeneratedJSUtil(t){var a=this;return(0,c.Z)(function*(){a.editorDBMasterJS=t,yield a.monacoS.loadSchemaEditorSettings(a.BE_HOST_PORT,a.authCS.getUserId(),null),a.monacoS.addSaveCodeKeyBinding(t,o=>{a.form.valid&&a.save(!1)}),a.monacoS.addInsertCodeKeyBinding(t,o=>{a.generalCS.messageReceivedFor=y.H.All,a.data.mode!==p.D.VIEW&&a.insertCodeModalC.showModal(T.b.DBMastersFormC)}),a.subscriptions.push(a.generalS.messageReceived.subscribe(o=>{o.type&&o.type===V.g.TEXT_COPIED&&o.componentName===T.b.DBMastersFormC&&(a.monacoS.insertAtCursor(t,o.selectedText),a.insertCodeModalC.hideModal())}))})()}editorConfigValueChangedSubject=new G.x;editorConfigValueChanged(){this.editorConfigValueChangedSubject.next()}editorConfigJSValueChangedSubject=new G.x;editorConfigJSValueChanged(){this.editorConfigJSValueChangedSubject.next()}viewError(){this.viewDockerfileModelC.showModal(this.generalS.stringify(this.lastError),z.d.json)}loadInstances(){var t=this;return(0,c.Z)(function*(){t.resetDependentObjects("INSTANCE"),t.loading.form=!0;try{const a={find:{user:t.authCS.getUserId(),active:!0},select:{name:1,active:1,user:1},sort:{name:1}};t.tab.allInstances=(yield t.instanceS.query(a).toPromise()).data||[]}catch(a){t.ns.showErrorMessageFromErrorObject(a),t.tab.allInstances=[]}if(t.formDataTemp){const a=t.form.controls.instanceName;t.tab.instance=_.find(t.tab.allInstances,{name:t.formDataTemp.instanceName}),t.tab.instance&&a.setValue(t.tab.instance)}else t.tab.instance=t.tab.allInstances[0];yield t.loadDatabases(),t.loading.form=!1,t.cd.detectChanges()})()}getOutlineDBMaster(t){var a=this;return(0,c.Z)(function*(){try{const o=new Map;a.processNodesForBackupAndRestore(a.outlineData,o,"backup"),a.outlineData=[];const n=a.selectedConfigOutlineNode,l=yield a.instanceS.getOutlineDBMasterConfig(t);a.outlineData=l.data,a.processNodesForBackupAndRestore(a.outlineData,o,"restore"),a.selectedConfigOutlineNode=a.findNodeOfKey(a.outlineData,n?.key),setTimeout(()=>{a.zone.run(()=>{a.outlineData=[...a.outlineData],a.cd.markForCheck()})},10)}catch(o){a.ns.showErrorFromResponse(o.error||o,"Unable to get outline data.")}})()}getOutlineDBMasterJS(t){var a=this;return(0,c.Z)(function*(){try{const o=new Map;a.processNodesForBackupAndRestore(a.outlineDataFunctions,o,"backup"),a.outlineDataFunctions=[];const n=a.selectedConfigOutlineNodeFunctions,l=yield a.instanceS.getOutlineDBMasterConfig(t);a.outlineDataFunctions=l.data,a.processNodesForBackupAndRestore(a.outlineDataFunctions,o,"restore"),a.selectedConfigOutlineNodeFunctions=a.findNodeOfKey(a.outlineDataFunctions,n?.key),setTimeout(()=>{a.zone.run(()=>{a.outlineDataFunctions=[...a.outlineDataFunctions],a.cd.markForCheck()})},10)}catch(o){a.ns.showErrorFromResponse(o.error||o,"Unable to get outline data.")}})()}processNodesForBackupAndRestore(t,a,o){if(Array.isArray(t))for(const n of t)this.processNodesForBackupAndRestore(n,a,o);else"backup"===o?a.set(t.key,t.expanded):"restore"===o&&(t.expanded=a.get(t.key)),t?.children?.length&&this.processNodesForBackupAndRestore(t.children,a,o)}findNodeOfKey(t,a){if(a)if(Array.isArray(t))for(const o of t){const n=this.findNodeOfKey(o,a);if(n)return n}else{if(t.key===a)return t;if(t?.children?.length)return this.findNodeOfKey(t.children,a)}}loadDatabases(){var t=this;return(0,c.Z)(function*(){if(t.loading.form=!0,t.resetDependentObjects("DATABASE"),!t.tab.instance)return t.tab.allDatabases=[],void(t.tab.allCollections=[]);try{t.tab.allDatabases=((yield t.instanceS.getDatabases([t.tab.instance]).toPromise()).data||[])[0]||[],t.dbIdMap=_.keyBy(t.tab.allDatabases,M.N7.db)}catch(a){t.ns.showErrorMessageFromErrorObject(a),t.tab.allDatabases=[]}if(t.formDataTemp){const a=t.form.get("databaseName");t.tab.database=_.find(t.tab.allDatabases,{db:t.formDataTemp.databaseName}),t.tab.database&&a.patchValue(t.tab.database)}else t.tab.database=t.tab.allDatabases[0];yield t.loadCollections(),t.loading.form=!1})()}loadCollections(){var t=this;return(0,c.Z)(function*(){if(t.loading.form=!0,t.resetDependentObjects("COLLECTION"),t.tab.instance&&t.tab.database){try{t.tab.allCollections=((yield t.instanceS.getCollections([t.tab.database]).toPromise()).data||[])[0]||[],t.colIdMap=_.keyBy(t.tab.allCollections,M.GR.name)}catch(a){t.ns.showErrorMessageFromErrorObject(a),t.tab.allCollections=[]}if(t.formDataTemp){const a=t.form.get("collectionName");t.tab.collection=_.find(t.tab.allCollections,{name:t.formDataTemp.collectionName}),t.tab.collection&&a.patchValue(t.tab.collection)}else t.tab.collection=t.tab.allCollections[0];t.loading.form=!1,t.cd.detectChanges()}else t.tab.allCollections=[]})()}resetDependentObjects(t){"INSTANCE"===t?(this.tab.allInstances=this.tab.allDatabases=this.tab.allCollections=[],this.tab.instance=this.tab.database=this.tab.collection=this.tab.api=void 0):"DATABASE"===t?(this.tab.allDatabases=this.tab.allCollections=[],this.tab.database=this.tab.collection=this.tab.api=void 0):"COLLECTION"===t&&(this.tab.allCollections=[],this.tab.collection=this.tab.api=void 0)}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}outlineNodeSelected(t,a){const o=t.data,n=a.getValue(),l=this.generalCS.getLineNumberFromIndex(n,o.end);a.setPosition(l),a.revealPositionInCenter(l),a.focus()}static \u0275fac=function(a){return new(a||i)(e.Y36(u.qu),e.Y36(U.W),e.Y36(k.b),e.Y36(Z.L),e.Y36(re.z),e.Y36(P.D),e.Y36(W.b),e.Y36(le.e),e.Y36(J.E),e.Y36(R.u),e.Y36(k.b),e.Y36(K.S),e.Y36(j.K),e.Y36(e.R0b),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:i,selectors:[["app-db-masters-form"]],viewQuery:function(a,o){if(1&a&&(e.Gf(ye,5),e.Gf(Ue,5)),2&a){let n;e.iGM(n=e.CRH())&&(o.insertCodeModalC=n.first),e.iGM(n=e.CRH())&&(o.viewDockerfileModelC=n.first)}},inputs:{data:"data",totalCreatedMasters:"totalCreatedMasters"},decls:65,vars:32,consts:[["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idDBMastersForm","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal"],["role","document",1,"modal-dialog","modal-full"],[1,"modal-content"],[1,"modal-header"],[4,"ngIf"],[1,"float-right"],["aria-label","Close","data-dismiss","modal","type","button",1,"close",3,"click"],["aria-hidden","true"],[1,"fas","fa-window-close"],["pTooltip","Insert Code","sava-no-dbl-click","",1,"cursor-pointer","mr-1",2,"font-size","1.4em",3,"click"],[1,"fas","fa-info-circle","text-info","fa-fw"],["href","https://docs.apimaker.dev/v1/extensions/ui_maker/introduction.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"fa-fw","ml-3","mr-1","mt-n2",2,"font-size","25px"],[1,"modal-body","overflow-auto"],["header","Basic Info"],[1,"container","pt-3",3,"formGroup"],[1,"form-group","row"],[1,"col-3","col-form-label","col-form-label-sm","text-right"],[1,"col-7"],["formControlName","name","name","name","spellcheck","false","type","text","placeholder","Please provide name",1,"form-control","form-control-sm"],["optionLabel","name","filterBy","name","appendTo","body","formControlName","instanceName","styleClass","w-100 p-input-filled",3,"options","filter","onChange"],["formControlName","databaseName","optionLabel","db","filterBy","db","appendTo","body","styleClass","w-100 p-input-filled",3,"options","filter","onChange"],["formControlName","collectionName","optionLabel","name","filterBy","name","appendTo","body","styleClass","w-100 p-input-filled",3,"options","filter","onChange"],["header","Code"],[1,"row","m-0"],[1,"col-3","pl-0","pr-2","pt-2","overflow-auto",2,"height","calc(100vh - 186px)"],["selectionMode","single","styleClass","w-full md:w-[30rem]","scrollHeight","flex",1,"id_ptree_db_master_config_outline",3,"value","hidden","selection","filter","selectionChange"],["pTemplate","default"],[1,"col-9","pl-0","pr-0"],[3,"activeIndex","activeIndexChange"],["header","Config"],["class","overflow-hidden","style","height: calc(100vh - 212px);",4,"ngIf"],["header","Utility Functions (Main)"],[1,"modal-footer"],["class","mr-3 small text-danger",4,"ngIf"],["href","javascript:;","class","text-danger",3,"click",4,"ngIf"],["data-dismiss","modal","type","button",1,"btn","btn-sm","btn-secondary",3,"click"],[1,"fas","fa-times","text-danger","fa-fw"],["class","btn btn-primary btn-sm","sava-no-dbl-click","","type","button",3,"disabled","click",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"frameId","modalId","docsHostPort"],["insertCodeModalC",""],[3,"modalId","editorOptionsMonacoEditorModal","modalTitle"],["monacoEditorModalC",""],[1,"fas","fa-plus","text-success","fa-fw","mr-1"],[1,"far","fa-eye","text-info","fa-fw","mr-1"],[1,"fas","fa-pencil-alt","text-light","fa-fw","mr-1"],[1,"ml-2","font-weight-normal","small","text-muted"],[3,"innerHTML"],[1,"overflow-hidden",2,"height","calc(100vh - 212px)"],[3,"isSchemaEditor","isUIMakerEditor","editorOptions","onDidChangeModelContent","editorGenerated"],[1,"mr-3","small","text-danger"],["href","javascript:;",1,"text-danger",3,"click"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"disabled","click"],[1,"fas","fa-save","text-success","fa-fw","mr-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(a,o){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.YNc(4,ke,3,0,"span",4),e.YNc(5,Ze,3,0,"span",4),e.YNc(6,we,11,4,"span",4),e.TgZ(7,"div",5)(8,"button",6),e.NdJ("click",function(){return o.hideModal()}),e.TgZ(9,"span",7),e._UZ(10,"i",8),e.qZA()(),e.TgZ(11,"span",9),e.NdJ("click",function(){return o.showInsertCodeModel()}),e._UZ(12,"i",10),e.qZA(),e.TgZ(13,"a",11),e._UZ(14,"img",12),e.qZA()()(),e.TgZ(15,"div",13)(16,"p-tabView")(17,"p-tabPanel",14)(18,"form",15)(19,"div",16)(20,"label",17),e._uU(21,"Name"),e.qZA(),e.TgZ(22,"div",18),e._UZ(23,"input",19),e.qZA()(),e.TgZ(24,"div",16)(25,"label",17),e._uU(26,"Instance"),e.qZA(),e.TgZ(27,"div",18)(28,"p-dropdown",20),e.NdJ("onChange",function(l){return o.tab.instance=l.value,o.loadDatabases()}),e.qZA()()(),e.TgZ(29,"div",16)(30,"label",17),e._uU(31,"Database"),e.qZA(),e.TgZ(32,"div",18)(33,"p-dropdown",21),e.NdJ("onChange",function(l){return o.tab.database=l.value,o.loadCollections()}),e.qZA()()(),e.TgZ(34,"div",16)(35,"label",17),e._uU(36,"Collection"),e.qZA(),e.TgZ(37,"div",18)(38,"p-dropdown",22),e.NdJ("onChange",function(l){return o.tab.collection=l.value}),e.qZA()()()()(),e.TgZ(39,"p-tabPanel",23)(40,"div",24)(41,"div",25)(42,"p-tree",26),e.NdJ("selectionChange",function(l){return o.selectedConfigOutlineNode=l})("selectionChange",function(l){return o.outlineNodeSelected(l,o.editorDBMaster)}),e.YNc(43,Ie,2,3,"ng-template",27),e.qZA(),e.TgZ(44,"p-tree",26),e.NdJ("selectionChange",function(l){return o.selectedConfigOutlineNodeFunctions=l})("selectionChange",function(l){return o.outlineNodeSelected(l,o.editorDBMasterJS)}),e.YNc(45,xe,2,3,"ng-template",27),e.qZA()(),e.TgZ(46,"div",28)(47,"p-tabView",29),e.NdJ("activeIndexChange",function(l){return o.activeIndex=l}),e.TgZ(48,"p-tabPanel",30),e.YNc(49,Ee,2,3,"div",31),e.qZA(),e.TgZ(50,"p-tabPanel",32),e.YNc(51,Ae,2,3,"div",31),e.qZA()()()()()()(),e.TgZ(52,"div",33),e.YNc(53,Fe,2,2,"span",34),e.YNc(54,Ne,2,0,"a",35),e.TgZ(55,"button",36),e.NdJ("click",function(){return o.hideModal()}),e._UZ(56,"i",37),e._uU(57," Close"),e.qZA(),e.YNc(58,Pe,3,2,"button",38),e.YNc(59,Ye,4,3,"button",38),e.qZA(),e.YNc(60,Le,1,0,"p-progressSpinner",39),e.qZA()()(),e._UZ(61,"app-insert-code-modal",40,41)(63,"app-monaco-editor-modal",42,43)),2&a&&(e.xp6(4),e.Q6J("ngIf",o.data.mode===o.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",o.data.mode===o.EFormMode.VIEW),e.xp6(1),e.Q6J("ngIf",o.data.mode===o.EFormMode.EDIT),e.xp6(12),e.Q6J("formGroup",o.form),e.xp6(10),e.Q6J("options",o.tab.allInstances)("filter",!0),e.xp6(5),e.Q6J("options",o.tab.allDatabases)("filter",!0),e.xp6(5),e.Q6J("options",o.tab.allCollections)("filter",!0),e.xp6(4),e.Q6J("value",o.outlineData)("hidden",0!==o.activeIndex)("selection",o.selectedConfigOutlineNode)("filter",!0),e.xp6(2),e.Q6J("value",o.outlineDataFunctions)("hidden",1!==o.activeIndex)("selection",o.selectedConfigOutlineNodeFunctions)("filter",!0),e.xp6(3),e.Q6J("activeIndex",o.activeIndex),e.xp6(2),e.Q6J("ngIf",o.shouldLoadMonacoEditor),e.xp6(2),e.Q6J("ngIf",o.shouldLoadMonacoEditor),e.xp6(2),e.Q6J("ngIf",o.totalCreatedMasters>(null==o.authS.backendSettings?null:o.authS.backendSettings.dbMastersCountForUI)),e.xp6(1),e.Q6J("ngIf",o.lastError),e.xp6(4),e.Q6J("ngIf",o.data.mode===o.EFormMode.EDIT),e.xp6(1),e.Q6J("ngIf",o.data.mode!==o.EFormMode.VIEW),e.xp6(1),e.Q6J("ngIf",o.loading.form),e.xp6(1),e.Q6J("frameId","idInsertCodeDbMig")("modalId","idInsertCodeDbMigForm")("docsHostPort",o.DOCS_HOST_PORT),e.xp6(2),e.Q6J("modalId","idMonacoEditorModalDBMaster")("editorOptionsMonacoEditorModal",o.editorOptionsMonacoEditorModal)("modalTitle","Error info"))},dependencies:[u._Y,u.Fj,u.JJ,u.JL,u.sg,u.u,Y.O5,X.y,ee.P,te.O,x.jx,Te.mp,L.G,Q.xf,Q.x4,B.u,ve.Lt,ae.A,De.z],encapsulation:2,changeDetection:0})}return i})();var oe=d(4950);let Qe=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=e.oAB({type:i});static \u0275inj=e.cJS({imports:[w.u,oe.A]})}return i})();var b=d(6212),ce=d(6925),Be=d(9394),ie=d(2466),ne=d(921),Ge=d(5561),qe=d(7797),S=d(5431);const He=["DBMastersFormC"],Ve=["cloneApiModalC"];function Ke(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"span",24),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.edit())}),e._UZ(1,"i",25),e.qZA()}}function je(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"span",26),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.clone())}),e._UZ(1,"i",27),e.qZA()}}function ze(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"span",28),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.removePermanent())}),e._UZ(1,"i",29),e.qZA()}}function We(i,r){1&i&&(e.TgZ(0,"th",31),e._UZ(1,"p-tableHeaderCheckbox"),e.qZA())}function $e(i,r){if(1&i&&(e.TgZ(0,"tr"),e.YNc(1,We,2,0,"th",30),e.TgZ(2,"th",31),e._uU(3,"*"),e.qZA(),e.TgZ(4,"th",32),e._uU(5,"Name"),e.qZA(),e.TgZ(6,"th"),e._uU(7,"Instance \u2192 Database \u2192 Collection"),e.qZA(),e.TgZ(8,"th"),e._uU(9,"Required Auth Headers"),e.qZA(),e._UZ(10,"th",33),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.showCheckbox)}}function Xe(i,r){if(1&i&&(e.TgZ(0,"td"),e._UZ(1,"p-tableCheckbox",39),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("value",t)("pSelectableRow",t)}}function et(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"tr",34),e.YNc(1,Xe,2,2,"td",35),e.TgZ(2,"td"),e._uU(3),e.qZA(),e.TgZ(4,"td"),e._uU(5),e.qZA(),e.TgZ(6,"td"),e._uU(7),e.qZA(),e.TgZ(8,"td"),e._uU(9),e.qZA(),e.TgZ(10,"td")(11,"div",36)(12,"button",37),e.NdJ("click",function(){const n=e.CHM(t).$implicit,l=e.oxw();return e.KtG(l.openMasterPageInNewTab(n))}),e._UZ(13,"i",38),e.qZA()()()()}if(2&i){const t=r.$implicit,a=r.rowIndex,o=e.oxw();e.Q6J("pSelectableRow",t),e.xp6(1),e.Q6J("ngIf",o.showCheckbox),e.xp6(2),e.Oqu(a+1),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.lnq("",t.instanceName," \u2192 ",t.databaseName," \u2192 ",t.collectionName,""),e.xp6(2),e.Oqu(t.authHeadersGrid)}}function tt(i,r){1&i&&e._UZ(0,"p-progressSpinner",40)}let ue=(()=>{class i{dbMastersS;generalS;notificationS;navigationCS;navigationS;authCS;authS;constantsS;eventCenterS;router;userS;instanceS;ns;cs;confirmationService;cd;showCheckbox=!0;loading={grid:!1};subscriptions=[];data={mode:p.D.ADD,eventChannel:new e.vpe,formData:void 0};rows=[];rowsMap={};EUserType=ne.dN;gridKey=M.iH._id;EAPICategory=I.R;ENavigationMenu=ie.E;BE_HOST_PORT=s.N.BE_HOST_PORT;selectedRows=[];dbMastersFormC;cloneApiModalC;constructor(t,a,o,n,l,m,C,g,h,v,D,E,A,F,se,ta){this.dbMastersS=t,this.generalS=a,this.notificationS=o,this.navigationCS=n,this.navigationS=l,this.authCS=m,this.authS=C,this.constantsS=g,this.eventCenterS=h,this.router=v,this.userS=D,this.instanceS=E,this.ns=A,this.cs=F,this.confirmationService=se,this.cd=ta}ngOnInit(){var t=this;return(0,c.Z)(function*(){if(!t.authS.backendSettings.extensions)return t.navigationS.gotoDashboard();t.eventCenterS.dbMasters.selectedDBMaster.next(void 0),yield t.loadGridData(),t.subscriptions.push(t.data.eventChannel.subscribe(function(){var a=(0,c.Z)(function*(o){(o.action===f.F.SAVED||o.action===f.F.UPDATED)&&(t.dbMastersFormC.hideModal(),yield t.loadGridData())});return function(o){return a.apply(this,arguments)}}())),t.generalS.setNewTitle("UI Maker")})()}loadGridData(){var t=this;return(0,c.Z)(function*(){t.loading.grid=!0;const a=yield t.dbMastersS.getDBMastersGrid({}).toPromise();if(a){t.selectedRows=[],t.rows=a.data,t.rowsMap=_.keyBy(t.rows,M.iH._id);for(const n of t.rows){const l=[];for(const m of n.authHeaders||[])l.push(m.name);n.authHeadersGrid=l.join(", ")}}let o=t.navigationCS.getQueryParam(b.p.am_db_master);o&&!t.rowsMap[o]&&t.rows.length&&(o=t.rows[0]._id),t.rowsMap[o]?yield t.fillData():t.eventCenterS.dbMasters.selectedDBMaster.next(void 0),t.loading.grid=!1,t.cd.detectChanges()})()}add(){this.data.formData={order:(_.max(_.map(this.rows,"order"))||0)+1},this.data.mode=p.D.ADD,this.data.eventChannel.emit({action:f.F.OPEN_FORM_IN_ADD_MODE,data:this.data.formData}),this.dbMastersFormC.showModal()}edit(){this.data.formData=this.rowsMap[_.map(this.selectedRows,"_id")[0]],this.data.mode=p.D.EDIT,this.data.eventChannel.emit({action:f.F.OPEN_FORM_IN_EDIT_MODE}),this.dbMastersFormC.showModal()}clone(){var t=this;return(0,c.Z)(function*(){yield t.cloneApiModalC.showModal(t.getSelectedRowId(),[u.kI.pattern("[a-zA-Z0-9_-]*$")],function(){var a=(0,c.Z)(function*(o){o&&(yield t.loadGridData()),t.cd.detectChanges()});return function(o){return a.apply(this,arguments)}}())})()}getSelectedRowId(){return this.selectedRows[0]?._id}removePermanent(){var t=this;return(0,c.Z)(function*(){var a;t.confirmationService.confirm({message:t.cs.dbMaster.removePermanentConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(a=(0,c.Z)(function*(){for(const o of t.selectedRows)yield t.hardDelete(o._id);t.ns.showSuccess(t.cs.dbMaster.removePermanent),yield t.loadGridData()}),function(){return a.apply(this,arguments)})})})()}hardDelete(t){var a=this;return(0,c.Z)(function*(){yield a.dbMastersS.permanentDelete(t).toPromise()})()}resetSelectedRows(){this.selectedRows.length=0,this.eventCenterS.dbMasters.selectedDBMaster.next(void 0)}resetThisUrl(){var t=this;return(0,c.Z)(function*(){t.eventCenterS.dbMasters.selectedDBMaster.next(void 0),yield t.navigationCS.setQueryParam(b.p.am_db_master,null)})()}itemSelected(){var t=this;return(0,c.Z)(function*(){yield t.resetThisUrl(),setTimeout(t.fillData.bind(t))})()}fillData(){var t=this;return(0,c.Z)(function*(){if(!t.selectedRows.length)return yield t.navigationCS.setQueryParam(b.p.am_db_master,""),void t.eventCenterS.dbMasters.selectedDBMaster.next(null);const a=t.selectedRows[0];a?(yield t.navigationCS.setQueryParam(b.p.am_db_master,a._id),t.eventCenterS.dbMasters.selectedDBMaster.next(a)):yield t.resetThisUrl()})()}dblClick(){this.selectedRows.length&&this.edit()}openMasterPageInNewTab(t){const a=this.authCS.getUserPath();let o=[s.N.BE_HOST_PORT,"/dist-db-masters/browser/",`?${ce.ZF.ADMIN_PATH}=${a}&`].join("");const n=[`${ce.ZF.DB_MASTER_NAME}=${t.name}`];for(const l of t.authHeaders)n.push(`${l.name}=____actual_header_value____`);o+=n.join("&"),window.open(o,"_blank")}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}EModelApiPaths=Be.k4;static \u0275fac=function(a){return new(a||i)(e.Y36(re.z),e.Y36(k.b),e.Y36(U.W),e.Y36(K.S),e.Y36(Ge.X),e.Y36(P.D),e.Y36(le.e),e.Y36(Z.L),e.Y36(R.u),e.Y36(N.F0),e.Y36(j.K),e.Y36(J.E),e.Y36(U.W),e.Y36(Z.L),e.Y36(x.YP),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:i,selectors:[["app-db-masters-list"]],viewQuery:function(a,o){if(1&a&&(e.Gf(He,5),e.Gf(Ve,5)),2&a){let n;e.iGM(n=e.CRH())&&(o.dbMastersFormC=n.first),e.iGM(n=e.CRH())&&(o.cloneApiModalC=n.first)}},inputs:{showCheckbox:"showCheckbox"},decls:31,vars:20,consts:[[1,"card","shadow-sm","h-100"],["pTooltip","",1,"card-header"],["src","/assets/images/icons/ui-maker.svg","alt","Database master image",1,"fa-fw","mr-1"],[1,"small","ml-3"],["href","https://docs.apimaker.dev/v1/extensions/ui_maker/introduction.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"float-right","fa-fw","ml-3","mr-1",2,"font-size","25px"],["tooltipPosition","left","pTooltip","Styles For UI Pages",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fab","fa-css3","text-info","fa-fw"],["tooltipPosition","left","pTooltip","Common Utilities For UI Pages",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fab","fa-uniregistry","text-info","fa-fw"],["tooltipPosition","left","pTooltip","Add New",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-plus","text-success","fa-fw"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Edit",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Clone",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Permanent Delete",3,"click",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],["styleClass","p-datatable-striped","scrollHeight","calc(100vh - 82px)",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange","dblclick"],["pTemplate","header"],["pTemplate","body"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"totalCreatedMasters","data"],["DBMastersFormC",""],[3,"modalId","hostAndPort","modelApiPaths"],["cloneApiModalC",""],["tooltipPosition","left","pTooltip","Edit",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw"],["tooltipPosition","left","pTooltip","Clone",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-copy","text-light","fa-fw"],["tooltipPosition","left","pTooltip","Permanent Delete",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"far","fa-trash-alt","fa-fw","text-danger"],["style","width: 45px;",4,"ngIf"],[2,"width","45px"],[2,"width","25%"],[2,"width","70px"],[3,"pSelectableRow"],[4,"ngIf"],[1,"text-center"],["tooltipPosition","left","pTooltip","Open master page",1,"btn","btn-xsm-custom",3,"click"],[1,"fas","fa-external-link-alt","text-info","fa-fw"],[3,"value","pSelectableRow"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(a,o){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span")(3,"span"),e._UZ(4,"img",2),e._uU(5," UI Pages"),e.qZA(),e.TgZ(6,"span",3),e._uU(7,"Using "),e.TgZ(8,"span"),e._uU(9),e.qZA(),e._uU(10),e.qZA()(),e.TgZ(11,"a",4),e._UZ(12,"img",5),e.qZA(),e.TgZ(13,"span",6),e.NdJ("click",function(){return o.router.navigate([o.ENavigationMenu.DBMasters,"styles"])}),e._UZ(14,"i",7),e.qZA(),e.TgZ(15,"span",8),e.NdJ("click",function(){return o.router.navigate([o.ENavigationMenu.DBMasters,"utils"])}),e._UZ(16,"i",9),e.qZA(),e.TgZ(17,"span",10),e.NdJ("click",function(){return o.add()}),e._UZ(18,"i",11),e.qZA(),e.YNc(19,Ke,2,0,"span",12),e.YNc(20,je,2,0,"span",13),e.YNc(21,ze,2,0,"span",14),e.qZA(),e.TgZ(22,"div",15)(23,"p-table",16),e.NdJ("selectionChange",function(l){return o.selectedRows=l})("selectionChange",function(){return o.itemSelected()})("dblclick",function(){return o.dblClick()}),e.YNc(24,$e,11,1,"ng-template",17),e.YNc(25,et,14,8,"ng-template",18),e.qZA(),e.YNc(26,tt,1,0,"p-progressSpinner",19),e.qZA()(),e._UZ(27,"app-db-masters-form",20,21)(29,"app-clone-api-modal",22,23)),2&a&&(e.xp6(8),e.Tol((null==o.rows?null:o.rows.length)>(null==o.authS.backendSettings?null:o.authS.backendSettings.dbMastersCountForUI)?"text-danger":""),e.xp6(1),e.hij(" ",o.rows.length,""),e.xp6(1),e.hij("/",o.authS.backendSettings.dbMastersCountForUI," "),e.xp6(9),e.Q6J("ngIf",o.selectedRows.length&&o.selectedRows.length<2),e.xp6(1),e.Q6J("ngIf",1===o.selectedRows.length),e.xp6(1),e.Q6J("ngIf",o.selectedRows.length),e.xp6(2),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("selection",o.selectedRows)("dataKey",o.gridKey)("scrollable",!0)("value",o.rows),e.xp6(3),e.Q6J("ngIf",o.loading.grid),e.xp6(1),e.Q6J("totalCreatedMasters",null==o.rows?null:o.rows.length)("data",o.data),e.xp6(2),e.Q6J("modalId","idCloneDBMasters")("hostAndPort",o.BE_HOST_PORT)("modelApiPaths",o.EModelApiPaths.DB_MASTERS))},dependencies:[Y.O5,qe.s,S.iA,x.jx,S.Ei,S.UA,S.Mo,L.G,B.u,de],encapsulation:2,changeDetection:0})}return i})(),me=(()=>{class i{constructor(){}ngOnInit(){}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=e.Xpm({type:i,selectors:[["app-db-masters-layout"]],decls:2,vars:0,consts:[[1,"pt-1","pl-1","pr-1","overflow-auto"]],template:function(a,o){1&a&&(e.TgZ(0,"div",0),e._UZ(1,"app-db-masters-list"),e.qZA())},dependencies:[ue],encapsulation:2})}return i})();var fe=d(9836),at=d(8057);const ot=["insertCodeModalC"],it=["monacoEditorModalC"];function nt(i,r){1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",25),e._uU(2," Add Styles"),e.qZA())}function st(i,r){1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",26),e._uU(2," View Styles"),e.qZA())}function rt(i,r){if(1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",27),e._uU(2," Edit Styles "),e.TgZ(3,"span",28),e._uU(4),e.qZA()()),2&i){const t=e.oxw();e.xp6(4),e.Oqu(t.form.get("name").value)}}function lt(i,r){1&i&&(e.TgZ(0,"div",30)(1,"label",31),e._uU(2,"Order No"),e.qZA(),e.TgZ(3,"div",32),e._UZ(4,"input",37),e.qZA()())}function dt(i,r){if(1&i&&(e.TgZ(0,"div")(1,"form",29)(2,"div",30)(3,"label",31),e._uU(4,"Name"),e.qZA(),e.TgZ(5,"div",32),e._UZ(6,"input",33),e.qZA()(),e.TgZ(7,"div",30),e._UZ(8,"label",31),e.TgZ(9,"div",32)(10,"label",34),e._UZ(11,"p-checkbox",35),e.qZA()()(),e.YNc(12,lt,5,0,"div",36),e.qZA()()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("formGroup",t.form),e.xp6(10),e.Q6J("binary",!0),e.xp6(1),e.Q6J("ngIf",t.form.getRawValue().loadInAllPages)}}function ct(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",38)(1,"app-monaco-editor",39),e.NdJ("editorGenerated",function(o){e.CHM(t);const n=e.oxw();return e.KtG(n.editorGenerated(o))}),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(1),e.Q6J("isSchemaEditor",!1)("isUIMakerEditor",!0)("editorOptions",t.editorOptions)}}function ut(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"a",40),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.viewError())}),e._uU(1,"View error"),e.qZA()}}function mt(i,r){1&i&&(e.TgZ(0,"span"),e._uU(1,"Update"),e.qZA())}function ft(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.save(!1))}),e._UZ(1,"i",42),e.YNc(2,mt,2,0,"span",4),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("disabled",t.form.invalid),e.xp6(2),e.Q6J("ngIf",t.data.mode===t.EFormMode.EDIT)}}function pt(i,r){1&i&&(e.TgZ(0,"span"),e._uU(1,"Save"),e.qZA())}function _t(i,r){1&i&&(e.TgZ(0,"span"),e._uU(1,"Update & Close"),e.qZA())}function ht(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.save(!0))}),e._UZ(1,"i",42),e.YNc(2,pt,2,0,"span",4),e.YNc(3,_t,2,0,"span",4),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("disabled",t.form.invalid),e.xp6(2),e.Q6J("ngIf",t.data.mode===t.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",t.data.mode===t.EFormMode.EDIT)}}function gt(i,r){1&i&&e._UZ(0,"p-progressSpinner",43)}let pe=(()=>{class i{fb;ns;generalS;constantsS;uiMakerStylesS;authCS;monacoS;instanceS;eventCenterS;generalCS;cd;data;loading={form:!1};EFormMode=p.D;form;subscriptions=[];formData;IEventData=f.F;id;BE_HOST_PORT=s.N.BE_HOST_PORT;DOCS_HOST_PORT=s.N.DOCS_HOST_PORT;instances=[];editorPI;editorOptions={readOnly:!1,language:"css",contextmenu:!0};lastError;editorOptionsMonacoEditorModal={readOnly:!0,language:"typescript",contextmenu:!0};insertCodeModalC;viewDockerfileModelC;shouldLoadMonacoEditor=!1;monacoDecorations=[];tab;constructor(t,a,o,n,l,m,C,g,h,v,D){this.fb=t,this.ns=a,this.generalS=o,this.constantsS=n,this.uiMakerStylesS=l,this.authCS=m,this.monacoS=C,this.instanceS=g,this.eventCenterS=h,this.generalCS=v,this.cd=D}ngOnInit(){var t=this;return(0,c.Z)(function*(){t.createForm(),t.subscriptions.push(t.data.eventChannel.subscribe(function(){var a=(0,c.Z)(function*(o){if(o)if(t.form.enable(),o.action===f.F.OPEN_FORM_IN_EDIT_MODE)yield t.editViewLoadData(),t.cd.detectChanges();else if(o.action===f.F.OPEN_FORM_IN_VIEW_MODE)yield t.editViewLoadData(),t.cd.detectChanges();else if(o.action===f.F.OPEN_FORM_IN_ADD_MODE){t.form.reset(),t.form.patchValue(o.data||{});const n=yield t.instanceS.getDefaultContent(t.BE_HOST_PORT,I.R.UI_MAKER_STYLES).toPromise();t.editorOptions={readOnly:!1},t.generalCS.setValueInEditor(t,"editorPI",n.data),t.cd.detectChanges()}});return function(o){return a.apply(this,arguments)}}()))})()}editViewLoadData(){var t=this;return(0,c.Z)(function*(){const a=yield t.uiMakerStylesS.getById(t.data.formData._id).toPromise();t.form.reset(),t.form.patchValue(a.data),t.generalCS.setValueInEditor(t,"editorPI",a.data?.styleCode||"")})()}createForm(){this.form=this.fb.group({name:[null,[u.kI.required]],loadInAllPages:[!1,[]],orderNumber:[!1,[u.kI.min(1)]]})}showModal(){this.lastError=void 0,this.shouldLoadMonacoEditor=!0,setTimeout(()=>{$("#idUIMakerStylesForm").modal("show")},100)}hideModal(){$("#idUIMakerStylesForm").modal("hide")}save(t){var a=this;return(0,c.Z)(function*(){const o=a.form.getRawValue();let n;n=a.data.formData&&a.data.formData._id?(yield a.uiMakerStylesS.getById(a.data.formData._id).toPromise()).data:{};const l=Object.assign({},n,o);l.user=a.authCS.getUserId(),l.styleCode=a.editorPI.getValue();try{let m;a.loading.form=!0,a.lastError=void 0,a.monacoS.clearEditorDecorations(a.editorPI,a.monacoDecorations),a.data.mode===p.D.ADD?m=yield a.uiMakerStylesS.post(l).toPromise():a.data.mode===p.D.EDIT&&(m=yield a.uiMakerStylesS.put(l._id,l,{select:M.iH._id}).toPromise()),a.ns.showSuccess(a.data.mode===p.D.ADD?a.constantsS.uiMakerStyle.addSuccess:a.constantsS.uiMakerStyle.editSuccess),t&&a.data.eventChannel.emit({action:a.data.mode===p.D.ADD?f.F.SAVED:f.F.UPDATED,data:m}),a.eventCenterS.uiMakerStylesSavedAndUpdate.next(!0),a.loading.form=!1}catch(m){a.loading.form=!1,a.ns.showErrorFromResponse(m.error||m,"Unable to save styles."),a.lastError=m.error,a.tab=a.tab||{},a.tab.axiosResponse={data:m.error},a.monacoS.highlightErrorInMonacoEditor(a.editorPI,a.tab,"MainSandbox.ts",a.monacoDecorations)}a.cd.detectChanges()})()}showInsertCodeModel(){this.generalCS.messageReceivedFor=y.H.All,this.insertCodeModalC.showModal(T.b.UiMakerStylesFormC).then()}editorGenerated(t){var a=this;return(0,c.Z)(function*(){a.editorPI=t,yield a.monacoS.loadSchemaEditorSettings(a.BE_HOST_PORT,a.authCS.getUserId(),null),a.monacoS.addSaveCodeKeyBinding(t,o=>{a.form.valid&&a.save(!1)}),a.monacoS.addInsertCodeKeyBinding(t,o=>{a.generalCS.messageReceivedFor=y.H.All,a.data.mode!==p.D.VIEW&&a.insertCodeModalC.showModal(T.b.UiMakerStylesFormC)}),a.subscriptions.push(a.generalS.messageReceived.subscribe(o=>{o.type&&o.type===V.g.TEXT_COPIED&&o.componentName===T.b.UiMakerStylesFormC&&(a.monacoS.insertAtCursor(t,o.selectedText),a.insertCodeModalC.hideModal())}))})()}viewError(){this.viewDockerfileModelC.showModal(this.generalS.stringify(this.lastError),z.d.json)}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions),this.eventCenterS.uiMakerStylesSavedAndUpdate.next(!1)}ISchedulerProps=M.qH;static \u0275fac=function(a){return new(a||i)(e.Y36(u.qu),e.Y36(U.W),e.Y36(k.b),e.Y36(Z.L),e.Y36(fe.q),e.Y36(P.D),e.Y36(W.b),e.Y36(J.E),e.Y36(R.u),e.Y36(k.b),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:i,selectors:[["app-ui-maker-styles-form"]],viewQuery:function(a,o){if(1&a&&(e.Gf(ot,5),e.Gf(it,5)),2&a){let n;e.iGM(n=e.CRH())&&(o.insertCodeModalC=n.first),e.iGM(n=e.CRH())&&(o.viewDockerfileModelC=n.first)}},inputs:{data:"data"},decls:31,vars:15,consts:[["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idUIMakerStylesForm","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal"],["role","document",1,"modal-dialog","modal-full"],[1,"modal-content"],[1,"modal-header"],[4,"ngIf"],[1,"float-right"],["aria-label","Close","data-dismiss","modal","type","button",1,"close",3,"click"],["aria-hidden","true"],[1,"fas","fa-window-close"],["pTooltip","Insert Code","sava-no-dbl-click","",1,"cursor-pointer","mr-1",2,"font-size","1.4em",3,"click"],[1,"fas","fa-info-circle","text-info","fa-fw"],[1,"modal-body","overflow-auto"],["header","Basic Info"],["header","Code"],["class","overflow-hidden","style","height: calc(100vh - 206px);",4,"ngIf"],[1,"modal-footer"],["href","javascript:;","class","text-danger",3,"click",4,"ngIf"],["data-dismiss","modal","type","button",1,"btn","btn-sm","btn-secondary",3,"click"],[1,"fas","fa-times","text-danger","fa-fw"],["class","btn btn-primary btn-sm","sava-no-dbl-click","","type","button",3,"disabled","click",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"frameId","modalId","docsHostPort"],["insertCodeModalC",""],[3,"modalId","editorOptionsMonacoEditorModal","modalTitle"],["monacoEditorModalC",""],[1,"fas","fa-plus","text-success","fa-fw","mr-1"],[1,"far","fa-eye","text-info","fa-fw","mr-1"],[1,"fas","fa-pencil-alt","text-light","fa-fw","mr-1"],[1,"ml-2","font-weight-normal","small","text-muted"],[1,"container","pt-3",3,"formGroup"],[1,"form-group","row"],[1,"col-3","col-form-label","col-form-label-sm","text-right"],[1,"col-7"],["formControlName","name","name","name","spellcheck","false","type","text","placeholder","Please provide name",1,"form-control","form-control-sm"],[1,"align-middle","mb-0","pt-1"],["formControlName","loadInAllPages","pTooltip","If true, these styles will be applied to all UI Pages.","label","Load Styles In All Pages",3,"binary"],["class","form-group row",4,"ngIf"],["formControlName","orderNumber","name","orderNumber","spellcheck","false","type","number","placeholder","Order number in which these styles will be loaded in page",1,"form-control","form-control-sm"],[1,"overflow-hidden",2,"height","calc(100vh - 206px)"],[3,"isSchemaEditor","isUIMakerEditor","editorOptions","editorGenerated"],["href","javascript:;",1,"text-danger",3,"click"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"disabled","click"],[1,"fas","fa-save","text-success","fa-fw","mr-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(a,o){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.YNc(4,nt,3,0,"span",4),e.YNc(5,st,3,0,"span",4),e.YNc(6,rt,5,1,"span",4),e.TgZ(7,"div",5)(8,"button",6),e.NdJ("click",function(){return o.hideModal()}),e.TgZ(9,"span",7),e._UZ(10,"i",8),e.qZA()(),e.TgZ(11,"span",9),e.NdJ("click",function(){return o.showInsertCodeModel()}),e._UZ(12,"i",10),e.qZA()()(),e.TgZ(13,"div",11)(14,"p-tabView")(15,"p-tabPanel",12),e.YNc(16,dt,13,3,"div",4),e.qZA(),e.TgZ(17,"p-tabPanel",13),e.YNc(18,ct,2,3,"div",14),e.qZA()()(),e.TgZ(19,"div",15),e.YNc(20,ut,2,0,"a",16),e.TgZ(21,"button",17),e.NdJ("click",function(){return o.hideModal()}),e._UZ(22,"i",18),e._uU(23," Close"),e.qZA(),e.YNc(24,ft,3,2,"button",19),e.YNc(25,ht,4,3,"button",19),e.qZA(),e.YNc(26,gt,1,0,"p-progressSpinner",20),e.qZA()()(),e._UZ(27,"app-insert-code-modal",21,22)(29,"app-monaco-editor-modal",23,24)),2&a&&(e.xp6(4),e.Q6J("ngIf",o.data.mode===o.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",o.data.mode===o.EFormMode.VIEW),e.xp6(1),e.Q6J("ngIf",o.data.mode===o.EFormMode.EDIT),e.xp6(10),e.Q6J("ngIf",o.shouldLoadMonacoEditor),e.xp6(2),e.Q6J("ngIf",o.shouldLoadMonacoEditor),e.xp6(2),e.Q6J("ngIf",o.lastError),e.xp6(4),e.Q6J("ngIf",o.data.mode===o.EFormMode.EDIT),e.xp6(1),e.Q6J("ngIf",o.data.mode!==o.EFormMode.VIEW),e.xp6(1),e.Q6J("ngIf",o.loading.form),e.xp6(1),e.Q6J("frameId","idInsertCodeDbMig")("modalId","idInsertCodeDbMigForm")("docsHostPort",o.DOCS_HOST_PORT),e.xp6(2),e.Q6J("modalId","idMonacoEditorModalInSysUIMakerStyles")("editorOptionsMonacoEditorModal",o.editorOptionsMonacoEditorModal)("modalTitle","Error info"))},dependencies:[u._Y,u.Fj,u.wV,u.JJ,u.JL,u.sg,u.u,Y.O5,X.y,ee.P,te.O,L.G,Q.xf,Q.x4,B.u,at.XZ,ae.A],encapsulation:2,changeDetection:0})}return i})(),Ct=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=e.oAB({type:i});static \u0275inj=e.cJS({imports:[w.u,oe.A]})}return i})();const Mt=["uiMakerStylesFormC"];function bt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"span",17),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.edit())}),e._UZ(1,"i",18),e.qZA()}}function St(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"span",19),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.clone())}),e._UZ(1,"i",20),e.qZA()}}function Tt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"span",21),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.removePermanent())}),e._UZ(1,"i",22),e.qZA()}}function vt(i,r){1&i&&(e.TgZ(0,"th",26),e._UZ(1,"p-tableHeaderCheckbox"),e.qZA())}function Dt(i,r){if(1&i&&(e.TgZ(0,"tr"),e.YNc(1,vt,2,0,"th",23),e.TgZ(2,"th",24),e._uU(3,"Order"),e.qZA(),e.TgZ(4,"th",25),e._uU(5,"Load in all pages"),e.qZA(),e.TgZ(6,"th"),e._uU(7,"Name"),e.qZA()()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.showCheckbox)}}function yt(i,r){if(1&i&&(e.TgZ(0,"td"),e._UZ(1,"p-tableCheckbox",30),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("value",t)("pSelectableRow",t)}}function Ut(i,r){1&i&&(e.TgZ(0,"span"),e._uU(1,"Yes"),e.qZA())}function kt(i,r){if(1&i&&(e.TgZ(0,"tr",27),e.YNc(1,yt,2,2,"td",28),e.TgZ(2,"td",29),e._uU(3),e.qZA(),e.TgZ(4,"td",29),e.YNc(5,Ut,2,0,"span",28),e.qZA(),e.TgZ(6,"td"),e._uU(7),e.qZA()()),2&i){const t=r.$implicit,a=e.oxw();e.Q6J("pSelectableRow",t),e.xp6(1),e.Q6J("ngIf",a.showCheckbox),e.xp6(2),e.Oqu(t.orderNumber||""),e.xp6(2),e.Q6J("ngIf",t.loadInAllPages),e.xp6(2),e.Oqu(t.name)}}function Zt(i,r){1&i&&e._UZ(0,"p-progressSpinner",31)}let _e=(()=>{class i{uiMakerStylesS;generalS;notificationS;navigationCS;authCS;constantsS;eventCenterS;router;userS;instanceS;ns;cs;confirmationService;cd;showCheckbox=!0;loading={grid:!1};subscriptions=[];data={mode:p.D.ADD,eventChannel:new e.vpe,formData:void 0};rows=[];rowsMap={};showAll=!1;EUserType=ne.dN;gridKey=M.iH._id;EAPICategory=I.R;selectedRows=[];uiMakerStylesFormC;constructor(t,a,o,n,l,m,C,g,h,v,D,E,A,F){this.uiMakerStylesS=t,this.generalS=a,this.notificationS=o,this.navigationCS=n,this.authCS=l,this.constantsS=m,this.eventCenterS=C,this.router=g,this.userS=h,this.instanceS=v,this.ns=D,this.cs=E,this.confirmationService=A,this.cd=F}ngOnInit(){var t=this;return(0,c.Z)(function*(){t.eventCenterS.uiMakerStyles.selectedStyle.next(void 0),yield t.loadGridData(),t.subscriptions.push(t.data.eventChannel.subscribe(function(){var a=(0,c.Z)(function*(o){(o.action===f.F.SAVED||o.action===f.F.UPDATED)&&(t.uiMakerStylesFormC.hideModal(),yield t.loadGridData())});return function(o){return a.apply(this,arguments)}}())),t.generalS.setNewTitle("API Maker - UI Maker Styles")})()}loadGridData(){var t=this;return(0,c.Z)(function*(){t.loading.grid=!0;const a={find:{user:t.authCS.getUserId(),active:!0},select:{name:1,active:1,loadInAllPages:1,orderNumber:1,user:1},sort:{orderNumber:1,name:1}};t.showAll&&delete a.find.active;const o=yield t.uiMakerStylesS.query(a).toPromise();o&&(t.selectedRows=[],t.rows=o.data,t.rowsMap=_.keyBy(t.rows,M.iH._id));let n=t.navigationCS.getQueryParam(b.p.am_ui_maker_style);n&&!t.rowsMap[n]&&t.rows.length&&(n=t.rows[0]._id),t.rowsMap[n]?(t.selectedRows=[t.rowsMap[n]],yield t.fillData()):t.eventCenterS.uiMakerStyles.selectedStyle.next(void 0),t.loading.grid=!1,t.cd.detectChanges()})()}add(){this.data.formData={},this.data.mode=p.D.ADD,this.data.eventChannel.emit({action:f.F.OPEN_FORM_IN_ADD_MODE,data:this.data.formData}),this.uiMakerStylesFormC.showModal()}edit(){this.data.formData=this.rowsMap[_.map(this.selectedRows,"_id")[0]],this.data.mode=p.D.EDIT,this.data.eventChannel.emit({action:f.F.OPEN_FORM_IN_EDIT_MODE}),this.uiMakerStylesFormC.showModal()}clone(){var t=this;return(0,c.Z)(function*(){try{if(!t.selectedRows[0]||!t.rowsMap[_.map(t.selectedRows,"_id")[0]])return;const a=t.rowsMap[_.map(t.selectedRows,"_id")[0]]._id,o=(yield t.uiMakerStylesS.getById(a).toPromise()).data;delete o._id,o.name=`${o.name}-clone`,(yield t.uiMakerStylesS.post(o).toPromise()).success?(t.notificationS.showSuccess(t.constantsS.uiMakerStyle.cloneSuccess),t.loadGridData()):t.notificationS.showSuccess(t.constantsS.uiMakerStyle.cloneSuccess)}catch{t.notificationS.showError(t.constantsS.uiMakerStyle.cloneError)}})()}removePermanent(){var t=this;return(0,c.Z)(function*(){var a;t.confirmationService.confirm({message:t.cs.uiMakerStyle.removePermanentConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(a=(0,c.Z)(function*(){for(const o of t.selectedRows)yield t.hardDelete(o._id);t.ns.showSuccess(t.cs.uiMakerStyle.removePermanent),yield t.loadGridData()}),function(){return a.apply(this,arguments)})})})()}hardDelete(t){var a=this;return(0,c.Z)(function*(){yield a.uiMakerStylesS.permanentDelete(t).toPromise()})()}resetSelectedRows(){this.selectedRows.length=0,this.eventCenterS.uiMakerStyles.selectedStyle.next(void 0)}resetThisUrl(){var t=this;return(0,c.Z)(function*(){t.eventCenterS.uiMakerStyles.selectedStyle.next(void 0),yield t.navigationCS.setQueryParam(b.p.am_ui_maker_style,null)})()}itemSelected(){var t=this;return(0,c.Z)(function*(){yield t.resetThisUrl(),setTimeout(t.fillData.bind(t))})()}fillData(){var t=this;return(0,c.Z)(function*(){if(!t.selectedRows.length)return yield t.navigationCS.setQueryParam(b.p.am_ui_maker_style,""),void t.eventCenterS.uiMakerStyles.selectedStyle.next(null);const a=t.selectedRows[0];a?(yield t.navigationCS.setQueryParam(b.p.am_ui_maker_style,a._id),t.eventCenterS.uiMakerStyles.selectedStyle.next(a)):yield t.resetThisUrl()})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}dblClickHandler(){this.selectedRows.length&&this.edit()}ENavigationMenu=ie.E;static \u0275fac=function(a){return new(a||i)(e.Y36(fe.q),e.Y36(k.b),e.Y36(U.W),e.Y36(K.S),e.Y36(P.D),e.Y36(Z.L),e.Y36(R.u),e.Y36(N.F0),e.Y36(j.K),e.Y36(J.E),e.Y36(U.W),e.Y36(Z.L),e.Y36(x.YP),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:i,selectors:[["app-ui-maker-styles-list"]],viewQuery:function(a,o){if(1&a&&e.Gf(Mt,5),2&a){let n;e.iGM(n=e.CRH())&&(o.uiMakerStylesFormC=n.first)}},inputs:{showCheckbox:"showCheckbox"},decls:19,vars:11,consts:[[1,"card","shadow-sm","h-100"],["pTooltip","",1,"card-header"],[1,"fab","fa-css3","fa-fw","text-white"],["href","javascript:",3,"click"],["tooltipPosition","left","pTooltip","Go back to UI Pages","src","/assets/images/icons/ui-maker.svg",1,"float-right","ml-3","mr-1",2,"height","20px"],["tooltipPosition","left","pTooltip","Add New",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-plus","text-success","fa-fw"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Edit",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Clone",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Permanent Delete",3,"click",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],["styleClass","p-datatable-striped","scrollHeight","calc(100vh - 82px)",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange","dblclick"],["pTemplate","header"],["pTemplate","body"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"data"],["uiMakerStylesFormC",""],["tooltipPosition","left","pTooltip","Edit",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw"],["tooltipPosition","left","pTooltip","Clone",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-copy","text-warning","fa-fw"],["tooltipPosition","left","pTooltip","Permanent Delete",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"far","fa-trash-alt","fa-fw","text-danger"],["style","width: 45px;",4,"ngIf"],[1,"text-center",2,"width","40px"],[1,"text-center",2,"width","150px"],[2,"width","45px"],[3,"pSelectableRow"],[4,"ngIf"],[1,"text-center"],[3,"value","pSelectableRow"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(a,o){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span"),e._UZ(3,"i",2),e._uU(4," Styles For UI Pages"),e.qZA(),e.TgZ(5,"a",3),e.NdJ("click",function(){return o.router.navigate([o.ENavigationMenu.DBMasters,"main"])}),e._UZ(6,"img",4),e.qZA(),e.TgZ(7,"span",5),e.NdJ("click",function(){return o.add()}),e._UZ(8,"i",6),e.qZA(),e.YNc(9,bt,2,0,"span",7),e.YNc(10,St,2,0,"span",8),e.YNc(11,Tt,2,0,"span",9),e.qZA(),e.TgZ(12,"div",10)(13,"p-table",11),e.NdJ("selectionChange",function(l){return o.selectedRows=l})("selectionChange",function(){return o.itemSelected()})("dblclick",function(){return o.dblClickHandler()}),e.YNc(14,Dt,8,1,"ng-template",12),e.YNc(15,kt,8,5,"ng-template",13),e.qZA(),e.YNc(16,Zt,1,0,"p-progressSpinner",14),e.qZA()(),e._UZ(17,"app-ui-maker-styles-form",15,16)),2&a&&(e.xp6(9),e.Q6J("ngIf",o.selectedRows.length&&o.selectedRows.length<2),e.xp6(1),e.Q6J("ngIf",o.selectedRows.length&&o.selectedRows.length<2),e.xp6(1),e.Q6J("ngIf",o.selectedRows.length),e.xp6(2),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("selection",o.selectedRows)("dataKey",o.gridKey)("scrollable",!0)("value",o.rows),e.xp6(3),e.Q6J("ngIf",o.loading.grid),e.xp6(1),e.Q6J("data",o.data))},dependencies:[Y.O5,S.iA,x.jx,S.Ei,S.UA,S.Mo,L.G,B.u,pe],encapsulation:2,changeDetection:0})}return i})(),he=(()=>{class i{constructor(){}ngOnInit(){}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=e.Xpm({type:i,selectors:[["app-ui-maker-styles-layout"]],decls:2,vars:0,consts:[[1,"pt-1","pl-1","pr-1","overflow-auto"]],template:function(a,o){1&a&&(e.TgZ(0,"div",0),e._UZ(1,"app-ui-maker-styles-list"),e.qZA())},dependencies:[_e],encapsulation:2})}return i})();var ge=d(6125);const wt=["insertCodeModalC"],It=["monacoEditorModalC"];function xt(i,r){1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",25),e._uU(2," Add Utility"),e.qZA())}function Et(i,r){1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",26),e._uU(2," View Utility"),e.qZA())}function At(i,r){if(1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",27),e._uU(2," Edit Utility "),e.TgZ(3,"span",28),e._uU(4),e.qZA()()),2&i){const t=e.oxw();e.xp6(4),e.Oqu(t.form.get("name").value)}}function Ft(i,r){if(1&i&&(e.TgZ(0,"div")(1,"form",29)(2,"div",30)(3,"label",31),e._uU(4,"Name"),e.qZA(),e.TgZ(5,"div",32),e._UZ(6,"input",33),e.qZA()()()()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("formGroup",t.form)}}function Nt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",34)(1,"app-monaco-editor",35),e.NdJ("editorGenerated",function(o){e.CHM(t);const n=e.oxw();return e.KtG(n.editorGenerated(o))}),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(1),e.Q6J("isSchemaEditor",!0)("isUIMakerEditor",!0)("editorOptions",t.editorOptions)}}function Ot(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"a",36),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.viewError())}),e._uU(1,"View error"),e.qZA()}}function Pt(i,r){1&i&&(e.TgZ(0,"span"),e._uU(1,"Update"),e.qZA())}function Jt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",37),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.save(!1))}),e._UZ(1,"i",38),e.YNc(2,Pt,2,0,"span",4),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("disabled",t.form.invalid),e.xp6(2),e.Q6J("ngIf",t.data.mode===t.EFormMode.EDIT)}}function Rt(i,r){1&i&&(e.TgZ(0,"span"),e._uU(1,"Save"),e.qZA())}function Yt(i,r){1&i&&(e.TgZ(0,"span"),e._uU(1,"Update & Close"),e.qZA())}function Lt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",37),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.save(!0))}),e._UZ(1,"i",38),e.YNc(2,Rt,2,0,"span",4),e.YNc(3,Yt,2,0,"span",4),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("disabled",t.form.invalid),e.xp6(2),e.Q6J("ngIf",t.data.mode===t.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",t.data.mode===t.EFormMode.EDIT)}}function Qt(i,r){1&i&&e._UZ(0,"p-progressSpinner",39)}let Ce=(()=>{class i{fb;ns;generalS;constantsS;uiMakerUtilsS;authCS;monacoS;instanceS;eventCenterS;generalCS;cd;data;loading={form:!1};EFormMode=p.D;form;subscriptions=[];formData;IEventData=f.F;id;BE_HOST_PORT=s.N.BE_HOST_PORT;DOCS_HOST_PORT=s.N.DOCS_HOST_PORT;instances=[];editorPI;editorOptions={readOnly:!1,language:"typescript",contextmenu:!0};lastError;editorOptionsMonacoEditorModal={readOnly:!0,language:"json",contextmenu:!0};insertCodeModalC;viewDockerfileModelC;shouldLoadMonacoEditor=!1;monacoDecorations=[];tab;constructor(t,a,o,n,l,m,C,g,h,v,D){this.fb=t,this.ns=a,this.generalS=o,this.constantsS=n,this.uiMakerUtilsS=l,this.authCS=m,this.monacoS=C,this.instanceS=g,this.eventCenterS=h,this.generalCS=v,this.cd=D}ngOnInit(){var t=this;return(0,c.Z)(function*(){t.createForm(),t.subscriptions.push(t.data.eventChannel.subscribe(function(){var a=(0,c.Z)(function*(o){if(o)if(t.form.enable(),o.action===f.F.OPEN_FORM_IN_EDIT_MODE)yield t.editViewLoadData(),t.cd.detectChanges();else if(o.action===f.F.OPEN_FORM_IN_VIEW_MODE)yield t.editViewLoadData(),t.cd.detectChanges();else if(o.action===f.F.OPEN_FORM_IN_ADD_MODE){t.form.reset(),t.form.patchValue(o.data||{});const n=yield t.instanceS.getDefaultContent(t.BE_HOST_PORT,I.R.UI_MAKER_UTILITY_CLASS).toPromise();t.editorOptions={readOnly:!1},t.generalCS.setValueInEditor(t,"editorPI",n.data),t.cd.detectChanges()}});return function(o){return a.apply(this,arguments)}}()))})()}editViewLoadData(){var t=this;return(0,c.Z)(function*(){const a=yield t.uiMakerUtilsS.getById(t.data.formData._id).toPromise();t.form.reset(),t.form.patchValue(a.data),t.generalCS.setValueInEditor(t,"editorPI",a.data?.utilsCode||"")})()}createForm(){this.form=this.fb.group({name:[null,[u.kI.required]]})}showModal(){this.lastError=void 0,this.shouldLoadMonacoEditor=!0,setTimeout(()=>{$("#idUIMakerUtilForm").modal("show")},100)}hideModal(){$("#idUIMakerUtilForm").modal("hide")}save(t){var a=this;return(0,c.Z)(function*(){const o=a.form.getRawValue();let n;n=a.data.formData&&a.data.formData._id?(yield a.uiMakerUtilsS.getById(a.data.formData._id).toPromise()).data:{};const l=Object.assign({},n,o);l.user=a.authCS.getUserId(),l.utilsCode=a.editorPI.getValue();try{let m;a.loading.form=!0,a.lastError=void 0,a.monacoS.clearEditorDecorations(a.editorPI,a.monacoDecorations),a.data.mode===p.D.ADD?m=yield a.uiMakerUtilsS.post(l).toPromise():a.data.mode===p.D.EDIT&&(m=yield a.uiMakerUtilsS.put(l._id,l,{select:M.iH._id}).toPromise()),a.ns.showSuccess(a.data.mode===p.D.ADD?a.constantsS.uiMakerUtil.addSuccess:a.constantsS.uiMakerUtil.editSuccess),t&&a.data.eventChannel.emit({action:a.data.mode===p.D.ADD?f.F.SAVED:f.F.UPDATED,data:m}),a.eventCenterS.uiMakerUtilsSavedAndUpdate.next(!0),a.loading.form=!1}catch(m){a.loading.form=!1,a.ns.showErrorFromResponse(m.error||m,"Unable to save utility."),a.lastError=m.error,a.tab=a.tab||{},a.tab.axiosResponse={data:m.error},a.monacoS.highlightErrorInMonacoEditor(a.editorPI,a.tab,"MainSandbox.ts",a.monacoDecorations)}a.cd.detectChanges()})()}showInsertCodeModel(){this.generalCS.messageReceivedFor=y.H.All,this.insertCodeModalC.showModal(T.b.UiMakerUtilsFormC).then()}editorGenerated(t){var a=this;return(0,c.Z)(function*(){a.editorPI=t,yield a.monacoS.loadSchemaEditorSettings(a.BE_HOST_PORT,a.authCS.getUserId(),null),a.monacoS.addSaveCodeKeyBinding(t,o=>{a.form.valid&&a.save(!1)}),a.monacoS.addInsertCodeKeyBinding(t,o=>{a.generalCS.messageReceivedFor=y.H.All,a.data.mode!==p.D.VIEW&&a.insertCodeModalC.showModal(T.b.UiMakerUtilsFormC)}),a.subscriptions.push(a.generalS.messageReceived.subscribe(o=>{o.type&&o.type===V.g.TEXT_COPIED&&o.componentName===T.b.UiMakerUtilsFormC&&(a.monacoS.insertAtCursor(t,o.selectedText),a.insertCodeModalC.hideModal())}))})()}viewError(){this.viewDockerfileModelC.showModal(this.generalS.stringify(this.lastError),z.d.json)}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions),this.eventCenterS.uiMakerUtilsSavedAndUpdate.next(!1)}static \u0275fac=function(a){return new(a||i)(e.Y36(u.qu),e.Y36(U.W),e.Y36(k.b),e.Y36(Z.L),e.Y36(ge.L),e.Y36(P.D),e.Y36(W.b),e.Y36(J.E),e.Y36(R.u),e.Y36(k.b),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:i,selectors:[["app-ui-maker-utils-form"]],viewQuery:function(a,o){if(1&a&&(e.Gf(wt,5),e.Gf(It,5)),2&a){let n;e.iGM(n=e.CRH())&&(o.insertCodeModalC=n.first),e.iGM(n=e.CRH())&&(o.viewDockerfileModelC=n.first)}},inputs:{data:"data"},decls:31,vars:15,consts:[["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idUIMakerUtilForm","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal"],["role","document",1,"modal-dialog","modal-full"],[1,"modal-content"],[1,"modal-header"],[4,"ngIf"],[1,"float-right"],["aria-label","Close","data-dismiss","modal","type","button",1,"close",3,"click"],["aria-hidden","true"],[1,"fas","fa-window-close"],["pTooltip","Insert Code","sava-no-dbl-click","",1,"cursor-pointer","mr-1",2,"font-size","1.4em",3,"click"],[1,"fas","fa-info-circle","text-info","fa-fw"],[1,"modal-body","overflow-auto"],["header","Basic Info"],["header","Code"],["class","overflow-hidden","style","height: calc(100vh - 206px);",4,"ngIf"],[1,"modal-footer"],["href","javascript:;","class","text-danger",3,"click",4,"ngIf"],["data-dismiss","modal","type","button",1,"btn","btn-sm","btn-secondary",3,"click"],[1,"fas","fa-times","text-danger","fa-fw"],["class","btn btn-primary btn-sm","sava-no-dbl-click","","type","button",3,"disabled","click",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"frameId","modalId","docsHostPort"],["insertCodeModalC",""],[3,"modalId","editorOptionsMonacoEditorModal","modalTitle"],["monacoEditorModalC",""],[1,"fas","fa-plus","text-success","fa-fw","mr-1"],[1,"far","fa-eye","text-info","fa-fw","mr-1"],[1,"fas","fa-pencil-alt","text-light","fa-fw","mr-1"],[1,"ml-2","font-weight-normal","small","text-muted"],[1,"container","pt-3",3,"formGroup"],[1,"form-group","row"],[1,"col-3","col-form-label","col-form-label-sm","text-right"],[1,"col-7"],["formControlName","name","name","name","spellcheck","false","type","text","placeholder","Please provide name",1,"form-control","form-control-sm"],[1,"overflow-hidden",2,"height","calc(100vh - 206px)"],[3,"isSchemaEditor","isUIMakerEditor","editorOptions","editorGenerated"],["href","javascript:;",1,"text-danger",3,"click"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"disabled","click"],[1,"fas","fa-save","text-success","fa-fw","mr-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(a,o){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.YNc(4,xt,3,0,"span",4),e.YNc(5,Et,3,0,"span",4),e.YNc(6,At,5,1,"span",4),e.TgZ(7,"div",5)(8,"button",6),e.NdJ("click",function(){return o.hideModal()}),e.TgZ(9,"span",7),e._UZ(10,"i",8),e.qZA()(),e.TgZ(11,"span",9),e.NdJ("click",function(){return o.showInsertCodeModel()}),e._UZ(12,"i",10),e.qZA()()(),e.TgZ(13,"div",11)(14,"p-tabView")(15,"p-tabPanel",12),e.YNc(16,Ft,7,1,"div",4),e.qZA(),e.TgZ(17,"p-tabPanel",13),e.YNc(18,Nt,2,3,"div",14),e.qZA()()(),e.TgZ(19,"div",15),e.YNc(20,Ot,2,0,"a",16),e.TgZ(21,"button",17),e.NdJ("click",function(){return o.hideModal()}),e._UZ(22,"i",18),e._uU(23," Close"),e.qZA(),e.YNc(24,Jt,3,2,"button",19),e.YNc(25,Lt,4,3,"button",19),e.qZA(),e.YNc(26,Qt,1,0,"p-progressSpinner",20),e.qZA()()(),e._UZ(27,"app-insert-code-modal",21,22)(29,"app-monaco-editor-modal",23,24)),2&a&&(e.xp6(4),e.Q6J("ngIf",o.data.mode===o.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",o.data.mode===o.EFormMode.VIEW),e.xp6(1),e.Q6J("ngIf",o.data.mode===o.EFormMode.EDIT),e.xp6(10),e.Q6J("ngIf",o.shouldLoadMonacoEditor),e.xp6(2),e.Q6J("ngIf",o.shouldLoadMonacoEditor),e.xp6(2),e.Q6J("ngIf",o.lastError),e.xp6(4),e.Q6J("ngIf",o.data.mode===o.EFormMode.EDIT),e.xp6(1),e.Q6J("ngIf",o.data.mode!==o.EFormMode.VIEW),e.xp6(1),e.Q6J("ngIf",o.loading.form),e.xp6(1),e.Q6J("frameId","idInsertCodeDbMig")("modalId","idInsertCodeDbMigForm")("docsHostPort",o.DOCS_HOST_PORT),e.xp6(2),e.Q6J("modalId","idMonacoEditorModalInSysUIMakerUtility")("editorOptionsMonacoEditorModal",o.editorOptionsMonacoEditorModal)("modalTitle","Error info"))},dependencies:[u._Y,u.Fj,u.JJ,u.JL,u.sg,u.u,Y.O5,X.y,ee.P,te.O,L.G,Q.xf,Q.x4,B.u,ae.A],encapsulation:2,changeDetection:0})}return i})(),Bt=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=e.oAB({type:i});static \u0275inj=e.cJS({imports:[w.u,oe.A]})}return i})();const Gt=["uiMakerUtilsFormC"];function qt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"span",17),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.edit())}),e._UZ(1,"i",18),e.qZA()}}function Ht(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"span",19),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.clone())}),e._UZ(1,"i",20),e.qZA()}}function Vt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"span",21),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.removePermanent())}),e._UZ(1,"i",22),e.qZA()}}function Kt(i,r){1&i&&(e.TgZ(0,"th",24),e._UZ(1,"p-tableHeaderCheckbox"),e.qZA())}function jt(i,r){if(1&i&&(e.TgZ(0,"tr"),e.YNc(1,Kt,2,0,"th",23),e.TgZ(2,"th"),e._uU(3,"Name"),e.qZA()()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.showCheckbox)}}function zt(i,r){if(1&i&&(e.TgZ(0,"td"),e._UZ(1,"p-tableCheckbox",27),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("value",t)("pSelectableRow",t)}}function Wt(i,r){if(1&i&&(e.TgZ(0,"tr",25),e.YNc(1,zt,2,2,"td",26),e.TgZ(2,"td"),e._uU(3),e.qZA()()),2&i){const t=r.$implicit,a=e.oxw();e.Q6J("pSelectableRow",t),e.xp6(1),e.Q6J("ngIf",a.showCheckbox),e.xp6(2),e.Oqu(t.name)}}function $t(i,r){1&i&&e._UZ(0,"p-progressSpinner",28)}let Me=(()=>{class i{uiMakerUtilsS;generalS;notificationS;navigationCS;authCS;constantsS;eventCenterS;router;userS;instanceS;ns;cs;confirmationService;cd;showCheckbox=!0;loading={grid:!1};subscriptions=[];data={mode:p.D.ADD,eventChannel:new e.vpe,formData:void 0};rows=[];rowsMap={};showAll=!1;EUserType=ne.dN;gridKey=M.iH._id;EAPICategory=I.R;selectedRows=[];uiMakerUtilsFormC;constructor(t,a,o,n,l,m,C,g,h,v,D,E,A,F){this.uiMakerUtilsS=t,this.generalS=a,this.notificationS=o,this.navigationCS=n,this.authCS=l,this.constantsS=m,this.eventCenterS=C,this.router=g,this.userS=h,this.instanceS=v,this.ns=D,this.cs=E,this.confirmationService=A,this.cd=F}ngOnInit(){var t=this;return(0,c.Z)(function*(){t.eventCenterS.uiMakerUtils.selectedUtil.next(void 0),yield t.loadGridData(),t.subscriptions.push(t.data.eventChannel.subscribe(function(){var a=(0,c.Z)(function*(o){(o.action===f.F.SAVED||o.action===f.F.UPDATED)&&(t.uiMakerUtilsFormC.hideModal(),yield t.loadGridData())});return function(o){return a.apply(this,arguments)}}())),t.generalS.setNewTitle("API Maker - UI Maker Utility")})()}loadGridData(){var t=this;return(0,c.Z)(function*(){t.loading.grid=!0;const a={find:{user:t.authCS.getUserId(),active:!0},select:{name:1,active:1,user:1},sort:{order:1}};t.showAll&&delete a.find.active;const o=yield t.uiMakerUtilsS.query(a).toPromise();o&&(t.selectedRows=[],t.rows=o.data,t.rowsMap=_.keyBy(t.rows,M.iH._id));let n=t.navigationCS.getQueryParam(b.p.am_ui_maker_util);n&&!t.rowsMap[n]&&t.rows.length&&(n=t.rows[0]._id),t.rowsMap[n]?(t.selectedRows=[t.rowsMap[n]],yield t.fillData()):t.eventCenterS.uiMakerUtils.selectedUtil.next(void 0),t.loading.grid=!1,t.cd.detectChanges()})()}add(){this.data.formData={},this.data.mode=p.D.ADD,this.data.eventChannel.emit({action:f.F.OPEN_FORM_IN_ADD_MODE,data:this.data.formData}),this.uiMakerUtilsFormC.showModal()}edit(){this.data.formData=this.rowsMap[_.map(this.selectedRows,"_id")[0]],this.data.mode=p.D.EDIT,this.data.eventChannel.emit({action:f.F.OPEN_FORM_IN_EDIT_MODE}),this.uiMakerUtilsFormC.showModal()}clone(){var t=this;return(0,c.Z)(function*(){try{if(!t.selectedRows[0]||!t.rowsMap[_.map(t.selectedRows,"_id")[0]])return;const a=t.rowsMap[_.map(t.selectedRows,"_id")[0]]._id,o=(yield t.uiMakerUtilsS.getById(a).toPromise()).data;delete o._id,o.name=`${o.name}-clone`,(yield t.uiMakerUtilsS.post(o).toPromise()).success?(t.notificationS.showSuccess(t.constantsS.uiMakerUtil.cloneSuccess),t.loadGridData()):t.notificationS.showSuccess(t.constantsS.uiMakerUtil.cloneSuccess)}catch{t.notificationS.showError(t.constantsS.uiMakerUtil.cloneError)}})()}removePermanent(){var t=this;return(0,c.Z)(function*(){var a;t.confirmationService.confirm({message:t.cs.uiMakerUtil.removePermanentConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(a=(0,c.Z)(function*(){for(const o of t.selectedRows)yield t.hardDelete(o._id);t.ns.showSuccess(t.cs.uiMakerUtil.removePermanent),yield t.loadGridData()}),function(){return a.apply(this,arguments)})})})()}hardDelete(t){var a=this;return(0,c.Z)(function*(){yield a.uiMakerUtilsS.permanentDelete(t).toPromise()})()}resetSelectedRows(){this.selectedRows.length=0,this.eventCenterS.uiMakerUtils.selectedUtil.next(void 0)}resetThisUrl(){var t=this;return(0,c.Z)(function*(){t.eventCenterS.uiMakerUtils.selectedUtil.next(void 0),yield t.navigationCS.setQueryParam(b.p.am_ui_maker_util,null)})()}itemSelected(){var t=this;return(0,c.Z)(function*(){yield t.resetThisUrl(),setTimeout(t.fillData.bind(t))})()}fillData(){var t=this;return(0,c.Z)(function*(){if(!t.selectedRows.length)return yield t.navigationCS.setQueryParam(b.p.am_ui_maker_util,""),void t.eventCenterS.uiMakerUtils.selectedUtil.next(null);const a=t.selectedRows[0];a?(yield t.navigationCS.setQueryParam(b.p.am_ui_maker_util,a._id),t.eventCenterS.uiMakerUtils.selectedUtil.next(a)):yield t.resetThisUrl()})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}dblClickHandler(){this.selectedRows.length&&this.edit()}ENavigationMenu=ie.E;static \u0275fac=function(a){return new(a||i)(e.Y36(ge.L),e.Y36(k.b),e.Y36(U.W),e.Y36(K.S),e.Y36(P.D),e.Y36(Z.L),e.Y36(R.u),e.Y36(N.F0),e.Y36(j.K),e.Y36(J.E),e.Y36(U.W),e.Y36(Z.L),e.Y36(x.YP),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:i,selectors:[["app-ui-maker-utils-list"]],viewQuery:function(a,o){if(1&a&&e.Gf(Gt,5),2&a){let n;e.iGM(n=e.CRH())&&(o.uiMakerUtilsFormC=n.first)}},inputs:{showCheckbox:"showCheckbox"},decls:19,vars:11,consts:[[1,"card","shadow-sm","h-100"],["pTooltip","",1,"card-header"],[1,"fab","fa-uniregistry","fa-fw","text-white"],["href","javascript:",3,"click"],["tooltipPosition","left","pTooltip","Go back to UI Pages","src","/assets/images/icons/ui-maker.svg",1,"float-right","ml-3","mr-1",2,"height","20px"],["tooltipPosition","left","pTooltip","Add New",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-plus","text-success","fa-fw"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Edit",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Clone",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Permanent Delete",3,"click",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],["styleClass","p-datatable-striped","scrollHeight","calc(100vh - 82px)",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange","dblclick"],["pTemplate","header"],["pTemplate","body"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"data"],["uiMakerUtilsFormC",""],["tooltipPosition","left","pTooltip","Edit",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw"],["tooltipPosition","left","pTooltip","Clone",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-copy","text-warning","fa-fw"],["tooltipPosition","left","pTooltip","Permanent Delete",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"far","fa-trash-alt","fa-fw","text-danger"],["style","width: 45px;",4,"ngIf"],[2,"width","45px"],[3,"pSelectableRow"],[4,"ngIf"],[3,"value","pSelectableRow"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(a,o){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span"),e._UZ(3,"i",2),e._uU(4," Common Utils For UI Pages"),e.qZA(),e.TgZ(5,"a",3),e.NdJ("click",function(){return o.router.navigate([o.ENavigationMenu.DBMasters,"main"])}),e._UZ(6,"img",4),e.qZA(),e.TgZ(7,"span",5),e.NdJ("click",function(){return o.add()}),e._UZ(8,"i",6),e.qZA(),e.YNc(9,qt,2,0,"span",7),e.YNc(10,Ht,2,0,"span",8),e.YNc(11,Vt,2,0,"span",9),e.qZA(),e.TgZ(12,"div",10)(13,"p-table",11),e.NdJ("selectionChange",function(l){return o.selectedRows=l})("selectionChange",function(){return o.itemSelected()})("dblclick",function(){return o.dblClickHandler()}),e.YNc(14,jt,4,1,"ng-template",12),e.YNc(15,Wt,4,3,"ng-template",13),e.qZA(),e.YNc(16,$t,1,0,"p-progressSpinner",14),e.qZA()(),e._UZ(17,"app-ui-maker-utils-form",15,16)),2&a&&(e.xp6(9),e.Q6J("ngIf",o.selectedRows.length&&o.selectedRows.length<2),e.xp6(1),e.Q6J("ngIf",o.selectedRows.length&&o.selectedRows.length<2),e.xp6(1),e.Q6J("ngIf",o.selectedRows.length),e.xp6(2),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("selection",o.selectedRows)("dataKey",o.gridKey)("scrollable",!0)("value",o.rows),e.xp6(3),e.Q6J("ngIf",o.loading.grid),e.xp6(1),e.Q6J("data",o.data))},dependencies:[Y.O5,S.iA,x.jx,S.Ei,S.UA,S.Mo,L.G,B.u,Ce],encapsulation:2,changeDetection:0})}return i})();const Xt=[{path:"main",component:me,canActivate:[O.P]},{path:"utils",component:(()=>{class i{constructor(){}ngOnInit(){}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=e.Xpm({type:i,selectors:[["app-ui-maker-styles-layout"]],decls:2,vars:0,consts:[[1,"pt-1","pl-1","pr-1","overflow-auto"]],template:function(a,o){1&a&&(e.TgZ(0,"div",0),e._UZ(1,"app-ui-maker-utils-list"),e.qZA())},dependencies:[Me],encapsulation:2})}return i})(),canActivate:[O.P]},{path:"styles",component:he,canActivate:[O.P]}];let ea=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=e.oAB({type:i});static \u0275inj=e.cJS({imports:[N.Bz.forChild(Xt),w.u,Qe,Bt,Ct]})}return i})()},6925:(Se,q,d)=>{d.d(q,{Eg:()=>_,Yp:()=>O,ZF:()=>G,vT:()=>w});var w=function(s){return s.FORM_DATA="FORM_DATA",s.JSON="JSON",s.TEXT="TEXT",s}(w||{}),O=function(s){return s.GET="GET",s.POST="POST",s.PUT="PUT",s.DELETE="DELETE",s}(O||{}),_=function(s){return s.CONTENT_TYPE="content-type",s.ACCEPT_ENCODING="accept-encoding",s.NO_COMPRESSION_STD="x-no-compression",s.AUTHORIZATION_AM="x-am-authorization",s.AUTHORIZATION_AM_USER="x-am-user-authorization",s.AUTHORIZATION_AWS="x-aws-authorization",s.AUTHORIZATION_GOOGLE="x-google-authorization",s.AUTHORIZATION_AZURE="x-azure-authorization",s.RUN_IN_SANDBOX="x-am-run-in-sandbox",s.ORIGIN="origin",s.AUTHORIZATION="authorization",s.META="x-am-meta",s.SECRET="x-am-secret",s.CONTENT_TYPE_RESPONSE="x-am-content-type-response",s.CACHE_CONTROL="x-am-cache-control",s.CODE_HASH="x-am-code-hash",s.SANDBOX_TIMEOUT="x-am-sandbox-timeout",s.GET_ENCRYPTED_DATA="x-am-get-encrypted-data",s.ENCRYPTED_PAYLOAD="x-am-encrypted-payload",s.RESPONSE_CASE="x-am-response-case",s.RESPONSE_OBJECT_TYPE="x-am-response-object-type",s.AM_I18N="x-am-internationalization",s.DATA_SOURCE="x-am-data-source",s.TEST_HOOK="x-am-test-hook",s.TEST_EVENT="x-am-test-event",s.INTER_COMM="x-am-inter-comm",s.SEND_ONLY_OBJECTS="x-am-send-only-objects-in-stream",s.AM_REQUEST_ID="x-am-request-id",s.AM_STORE_TOKEN="x-am-store-token",s}(_||{}),G=function(s){return s.DB_MASTER_NAME="db-master-name",s.ADMIN_PATH="admin-path",s}(G||{})}}]);
|
package/dist/3081.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[3081],{3081:(Zt,C,l)=>{l.r(C),l.d(C,{DeployApiMakerM:()=>Mt});var L=l(7664),r=l(6814),_=l(9862),e=l(4946),p=l(5219),g=l(707),x=l(2076),T=l(3983),m=l(7778),b=l(4713),I=l(2332);let y=(()=>{class i extends b.s{pathId;ngOnInit(){this.pathId="url(#"+(0,I.Th)()+")"}static \u0275fac=function(){let t;return function(s){return(t||(t=e.n5z(i)))(s||i)}}();static \u0275cmp=e.Xpm({type:i,selectors:[["UploadIcon"]],standalone:!0,features:[e.qOj,e.jDz],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.58942 9.82197C6.70165 9.93405 6.85328 9.99793 7.012 10C7.17071 9.99793 7.32234 9.93405 7.43458 9.82197C7.54681 9.7099 7.61079 9.55849 7.61286 9.4V2.04798L9.79204 4.22402C9.84752 4.28011 9.91365 4.32457 9.98657 4.35479C10.0595 4.38502 10.1377 4.40039 10.2167 4.40002C10.2956 4.40039 10.3738 4.38502 10.4467 4.35479C10.5197 4.32457 10.5858 4.28011 10.6413 4.22402C10.7538 4.11152 10.817 3.95902 10.817 3.80002C10.817 3.64102 10.7538 3.48852 10.6413 3.37602L7.45127 0.190618C7.44656 0.185584 7.44176 0.180622 7.43687 0.175736C7.32419 0.063214 7.17136 0 7.012 0C6.85264 0 6.69981 0.063214 6.58712 0.175736C6.58181 0.181045 6.5766 0.186443 6.5715 0.191927L3.38282 3.37602C3.27669 3.48976 3.2189 3.6402 3.22165 3.79564C3.2244 3.95108 3.28746 4.09939 3.39755 4.20932C3.50764 4.31925 3.65616 4.38222 3.81182 4.38496C3.96749 4.3877 4.11814 4.33001 4.23204 4.22402L6.41113 2.04807V9.4C6.41321 9.55849 6.47718 9.7099 6.58942 9.82197ZM11.9952 14H2.02883C1.751 13.9887 1.47813 13.9228 1.22584 13.8061C0.973545 13.6894 0.746779 13.5241 0.558517 13.3197C0.370254 13.1154 0.22419 12.876 0.128681 12.6152C0.0331723 12.3545 -0.00990605 12.0775 0.0019109 11.8V9.40005C0.0019109 9.24092 0.065216 9.08831 0.1779 8.97579C0.290584 8.86326 0.443416 8.80005 0.602775 8.80005C0.762134 8.80005 0.914966 8.86326 1.02765 8.97579C1.14033 9.08831 1.20364 9.24092 1.20364 9.40005V11.8C1.18295 12.0376 1.25463 12.274 1.40379 12.4602C1.55296 12.6463 1.76817 12.7681 2.00479 12.8H11.9952C12.2318 12.7681 12.447 12.6463 12.5962 12.4602C12.7453 12.274 12.817 12.0376 12.7963 11.8V9.40005C12.7963 9.24092 12.8596 9.08831 12.9723 8.97579C13.085 8.86326 13.2378 8.80005 13.3972 8.80005C13.5565 8.80005 13.7094 8.86326 13.8221 8.97579C13.9347 9.08831 13.998 9.24092 13.998 9.40005V11.8C14.022 12.3563 13.8251 12.8996 13.45 13.3116C13.0749 13.7236 12.552 13.971 11.9952 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,s){1&n&&(e.O4$(),e.TgZ(0,"svg",0)(1,"g"),e._UZ(2,"path",1),e.qZA(),e.TgZ(3,"defs")(4,"clipPath",2),e._UZ(5,"rect",3),e.qZA()()()),2&n&&(e.Tol(s.getClassNames()),e.uIk("aria-label",s.ariaLabel)("aria-hidden",s.ariaHidden)("role",s.role),e.xp6(1),e.uIk("clip-path",s.pathId),e.xp6(3),e.Q6J("id",s.pathId))},encapsulation:2})}return i})();var d=l(6825),F=l(2591);let w=(()=>{class i extends b.s{pathId;ngOnInit(){this.pathId="url(#"+(0,I.Th)()+")"}static \u0275fac=function(){let t;return function(s){return(t||(t=e.n5z(i)))(s||i)}}();static \u0275cmp=e.Xpm({type:i,selectors:[["ExclamationTriangleIcon"]],standalone:!0,features:[e.qOj,e.jDz],decls:8,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z","fill","currentColor"],["d","M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z","fill","currentColor"],["d","M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,s){1&n&&(e.O4$(),e.TgZ(0,"svg",0)(1,"g"),e._UZ(2,"path",1)(3,"path",2)(4,"path",3),e.qZA(),e.TgZ(5,"defs")(6,"clipPath",4),e._UZ(7,"rect",5),e.qZA()()()),2&n&&(e.Tol(s.getClassNames()),e.uIk("aria-label",s.ariaLabel)("aria-hidden",s.ariaHidden)("role",s.role),e.xp6(1),e.uIk("clip-path",s.pathId),e.xp6(5),e.Q6J("id",s.pathId))},encapsulation:2})}return i})(),U=(()=>{class i extends b.s{pathId;ngOnInit(){this.pathId="url(#"+(0,I.Th)()+")"}static \u0275fac=function(){let t;return function(s){return(t||(t=e.n5z(i)))(s||i)}}();static \u0275cmp=e.Xpm({type:i,selectors:[["InfoCircleIcon"]],standalone:!0,features:[e.qOj,e.jDz],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,s){1&n&&(e.O4$(),e.TgZ(0,"svg",0)(1,"g"),e._UZ(2,"path",1),e.qZA(),e.TgZ(3,"defs")(4,"clipPath",2),e._UZ(5,"rect",3),e.qZA()()()),2&n&&(e.Tol(s.getClassNames()),e.uIk("aria-label",s.ariaLabel)("aria-hidden",s.ariaHidden)("role",s.role),e.xp6(1),e.uIk("clip-path",s.pathId),e.xp6(3),e.Q6J("id",s.pathId))},encapsulation:2})}return i})();var M=l(8468),f=l(4480),Q=l(5592),E=l(4352),A=l(671);function O(i,a){if(1&i&&e._UZ(0,"span"),2&i){const t=e.oxw().$implicit;e.Tol("p-message-icon pi "+t.icon),e.uIk("data-pc-section","icon")}}function D(i,a){1&i&&e._UZ(0,"CheckIcon"),2&i&&e.uIk("data-pc-section","icon")}function B(i,a){1&i&&e._UZ(0,"InfoCircleIcon"),2&i&&e.uIk("data-pc-section","icon")}function P(i,a){1&i&&e._UZ(0,"TimesCircleIcon"),2&i&&e.uIk("data-pc-section","icon")}function z(i,a){1&i&&e._UZ(0,"ExclamationTriangleIcon"),2&i&&e.uIk("data-pc-section","icon")}function H(i,a){if(1&i&&(e.TgZ(0,"span",10),e.ynx(1),e.YNc(2,D,1,1,"CheckIcon",11),e.YNc(3,B,1,1,"InfoCircleIcon",11),e.YNc(4,P,1,1,"TimesCircleIcon",11),e.YNc(5,z,1,1,"ExclamationTriangleIcon",11),e.BQk(),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(2),e.Q6J("ngIf","success"===t.severity),e.xp6(1),e.Q6J("ngIf","info"===t.severity),e.xp6(1),e.Q6J("ngIf","error"===t.severity),e.xp6(1),e.Q6J("ngIf","warn"===t.severity)}}function R(i,a){if(1&i&&e._UZ(0,"span",14),2&i){const t=e.oxw(2).$implicit;e.Q6J("innerHTML",t.summary,e.oJD),e.uIk("data-pc-section","summary")}}function V(i,a){if(1&i&&e._UZ(0,"span",15),2&i){const t=e.oxw(2).$implicit;e.Q6J("innerHTML",t.detail,e.oJD),e.uIk("data-pc-section","detail")}}function q(i,a){if(1&i&&(e.ynx(0),e.YNc(1,R,1,2,"span",12),e.YNc(2,V,1,2,"span",13),e.BQk()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",t.summary),e.xp6(1),e.Q6J("ngIf",t.detail)}}function G(i,a){if(1&i&&(e.TgZ(0,"span",18),e._uU(1),e.qZA()),2&i){const t=e.oxw(2).$implicit;e.uIk("data-pc-section","summary"),e.xp6(1),e.Oqu(t.summary)}}function j(i,a){if(1&i&&(e.TgZ(0,"span",19),e._uU(1),e.qZA()),2&i){const t=e.oxw(2).$implicit;e.uIk("data-pc-section","detail"),e.xp6(1),e.Oqu(t.detail)}}function K(i,a){if(1&i&&(e.YNc(0,G,2,2,"span",16),e.YNc(1,j,2,2,"span",17)),2&i){const t=e.oxw().$implicit;e.Q6J("ngIf",t.summary),e.xp6(1),e.Q6J("ngIf",t.detail)}}function $(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"button",20),e.NdJ("click",function(){e.CHM(t);const s=e.oxw().index,o=e.oxw(2);return e.KtG(o.removeMessage(s))}),e._UZ(1,"TimesIcon",21),e.qZA()}2&i&&(e.uIk("aria-label","Close")("data-pc-section","closebutton"),e.xp6(1),e.Q6J("styleClass","p-message-close-icon"),e.uIk("data-pc-section","closeicon"))}const W=function(i,a){return{showTransitionParams:i,hideTransitionParams:a}},X=function(i){return{value:"visible",params:i}};function ee(i,a){if(1&i&&(e.TgZ(0,"div",4)(1,"div",5),e.YNc(2,O,1,3,"span",6),e.YNc(3,H,6,4,"span",7),e.YNc(4,q,3,2,"ng-container",1),e.YNc(5,K,2,2,"ng-template",null,8,e.W1O),e.YNc(7,$,2,4,"button",9),e.qZA()()),2&i){const t=a.$implicit,n=e.MAs(6),s=e.oxw(2);e.Tol("p-message p-message-"+t.severity),e.Q6J("@messageAnimation",e.VKq(12,X,e.WLB(9,W,s.showTransitionOptions,s.hideTransitionOptions))),e.xp6(1),e.uIk("data-pc-section","wrapper"),e.xp6(1),e.Q6J("ngIf",t.icon),e.xp6(1),e.Q6J("ngIf",!t.icon),e.xp6(1),e.Q6J("ngIf",!s.escape)("ngIfElse",n),e.xp6(3),e.Q6J("ngIf",s.closable)}}function te(i,a){if(1&i&&(e.ynx(0),e.YNc(1,ee,8,14,"div",3),e.BQk()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.messages)}}function ie(i,a){1&i&&e.GkF(0)}function ne(i,a){if(1&i&&(e.TgZ(0,"div",22)(1,"div",5),e.YNc(2,ie,1,0,"ng-container",23),e.qZA()()),2&i){const t=e.oxw();e.Q6J("ngClass","p-message p-message-"+t.severity),e.xp6(2),e.Q6J("ngTemplateOutlet",t.contentTemplate)}}let se=(()=>{class i{messageService;el;cd;set value(t){this.messages=t,this.startMessageLifes(this.messages)}closable=!0;style;styleClass;enableService=!0;key;escape=!0;severity;showTransitionOptions="300ms ease-out";hideTransitionOptions="200ms cubic-bezier(0.86, 0, 0.07, 1)";valueChange=new e.vpe;templates;messages;messageSubscription;clearSubscription;timerSubscriptions=[];contentTemplate;constructor(t,n,s){this.messageService=t,this.el=n,this.cd=s}ngAfterContentInit(){this.templates?.forEach(t=>{t.getType(),this.contentTemplate=t.template}),this.messageService&&this.enableService&&!this.contentTemplate&&(this.messageSubscription=this.messageService.messageObserver.subscribe(t=>{if(t){Array.isArray(t)||(t=[t]);const n=t.filter(s=>this.key===s.key);this.messages=this.messages?[...this.messages,...n]:[...n],this.startMessageLifes(n),this.cd.markForCheck()}}),this.clearSubscription=this.messageService.clearObserver.subscribe(t=>{t?this.key===t&&(this.messages=null):this.messages=null,this.cd.markForCheck()}))}hasMessages(){let t=this.el.nativeElement.parentElement;return!(!t||!t.offsetParent)&&(null!=this.contentTemplate||this.messages&&this.messages.length>0)}clear(){this.messages=[],this.valueChange.emit(this.messages)}removeMessage(t){this.messages=this.messages?.filter((n,s)=>s!==t),this.valueChange.emit(this.messages)}get icon(){const t=this.severity||(this.hasMessages()?this.messages[0].severity:null);if(this.hasMessages())switch(t){case"success":return"pi-check";case"info":default:return"pi-info-circle";case"error":return"pi-times";case"warn":return"pi-exclamation-triangle"}return null}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.timerSubscriptions?.forEach(t=>t.unsubscribe())}startMessageLifes(t){t?.forEach(n=>n.life&&this.startMessageLife(n))}startMessageLife(t){const n=function Y(i=0,a,t=E.P){let n=-1;return null!=a&&((0,A.K)(a)?t=a:n=a),new Q.y(s=>{let o=function N(i){return i instanceof Date&&!isNaN(i)}(i)?+i-t.now():i;o<0&&(o=0);let c=0;return t.schedule(function(){s.closed||(s.next(c++),0<=n?this.schedule(void 0,n):s.complete())},o)})}(t.life).subscribe(()=>{this.messages=this.messages?.filter(s=>s!==t),this.timerSubscriptions=this.timerSubscriptions?.filter(s=>s!==n),this.valueChange.emit(this.messages),this.cd.markForCheck()});this.timerSubscriptions.push(n)}static \u0275fac=function(n){return new(n||i)(e.Y36(p.ez,8),e.Y36(e.SBq),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:i,selectors:[["p-messages"]],contentQueries:function(n,s,o){if(1&n&&e.Suo(o,p.jx,4),2&n){let c;e.iGM(c=e.CRH())&&(s.templates=c)}},hostAttrs:[1,"p-element"],inputs:{value:"value",closable:"closable",style:"style",styleClass:"styleClass",enableService:"enableService",key:"key",escape:"escape",severity:"severity",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{valueChange:"valueChange"},decls:4,vars:8,consts:[["role","alert",1,"p-messages","p-component",3,"ngStyle"],[4,"ngIf","ngIfElse"],["staticMessage",""],["role","alert",3,"class",4,"ngFor","ngForOf"],["role","alert"],[1,"p-message-wrapper"],[3,"class",4,"ngIf"],["class","p-message-icon",4,"ngIf"],["escapeOut",""],["class","p-message-close p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-message-icon"],[4,"ngIf"],["class","p-message-summary",3,"innerHTML",4,"ngIf"],["class","p-message-detail",3,"innerHTML",4,"ngIf"],[1,"p-message-summary",3,"innerHTML"],[1,"p-message-detail",3,"innerHTML"],["class","p-message-summary",4,"ngIf"],["class","p-message-detail",4,"ngIf"],[1,"p-message-summary"],[1,"p-message-detail"],["type","button","pRipple","",1,"p-message-close","p-link",3,"click"],[3,"styleClass"],["role","alert",3,"ngClass"],[4,"ngTemplateOutlet"]],template:function(n,s){if(1&n&&(e.TgZ(0,"div",0),e.YNc(1,te,2,1,"ng-container",1),e.YNc(2,ne,3,2,"ng-template",null,2,e.W1O),e.qZA()),2&n){const o=e.MAs(3);e.Tol(s.styleClass),e.Q6J("ngStyle",s.style),e.uIk("aria-atomic",!0)("aria-live","assertive")("data-pc-name","message"),e.xp6(1),e.Q6J("ngIf",!s.contentTemplate)("ngIfElse",o)}},dependencies:function(){return[r.mk,r.sg,r.O5,r.tP,r.PC,f.H,F.n,U,M.x,w,m.q]},styles:["@layer primeng{.p-message-wrapper{display:flex;align-items:center}.p-message-close{display:flex;align-items:center;justify-content:center}.p-message-close.p-link{margin-left:auto;overflow:hidden;position:relative}.p-messages .p-message.ng-animating{overflow:hidden}}\n"],encapsulation:2,data:{animation:[(0,d.X$)("messageAnimation",[(0,d.eR)(":enter",[(0,d.oB)({opacity:0,transform:"translateY(-25%)"}),(0,d.jt)("{{showTransitionParams}}")]),(0,d.eR)(":leave",[(0,d.jt)("{{hideTransitionParams}}",(0,d.oB)({height:0,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,opacity:0}))])])]},changeDetection:0})}return i})(),k=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=e.oAB({type:i});static \u0275inj=e.cJS({imports:[r.ez,f.T,F.n,U,M.x,w,m.q]})}return i})();function ae(i,a){if(1&i&&(e.TgZ(0,"div",5),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.Udp("display",null!=t.value&&0!==t.value?"flex":"none"),e.uIk("data-pc-section","label"),e.xp6(1),e.AsE("",t.value,"",t.unit,"")}}function oe(i,a){if(1&i&&(e.TgZ(0,"div",3),e.YNc(1,ae,2,5,"div",4),e.qZA()),2&i){const t=e.oxw();e.Udp("width",t.value+"%")("background",t.color),e.uIk("data-pc-section","value"),e.xp6(1),e.Q6J("ngIf",t.showValue)}}function le(i,a){if(1&i&&(e.TgZ(0,"div",6),e._UZ(1,"div",7),e.qZA()),2&i){const t=e.oxw();e.uIk("data-pc-section","container"),e.xp6(1),e.Udp("background",t.color),e.uIk("data-pc-section","value")}}const ce=function(i,a){return{"p-progressbar p-component":!0,"p-progressbar-determinate":i,"p-progressbar-indeterminate":a}};let re=(()=>{class i{value;showValue=!0;styleClass;style;unit="%";mode="determinate";color;static \u0275fac=function(n){return new(n||i)};static \u0275cmp=e.Xpm({type:i,selectors:[["p-progressBar"]],hostAttrs:[1,"p-element"],inputs:{value:"value",showValue:"showValue",styleClass:"styleClass",style:"style",unit:"unit",mode:"mode",color:"color"},decls:3,vars:14,consts:[["role","progressbar",3,"ngStyle","ngClass"],["class","p-progressbar-value p-progressbar-value-animate","style","display:flex",3,"width","background",4,"ngIf"],["class","p-progressbar-indeterminate-container",4,"ngIf"],[1,"p-progressbar-value","p-progressbar-value-animate",2,"display","flex"],["class","p-progressbar-label",3,"display",4,"ngIf"],[1,"p-progressbar-label"],[1,"p-progressbar-indeterminate-container"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(n,s){1&n&&(e.TgZ(0,"div",0),e.YNc(1,oe,2,6,"div",1),e.YNc(2,le,2,4,"div",2),e.qZA()),2&n&&(e.Tol(s.styleClass),e.Q6J("ngStyle",s.style)("ngClass",e.WLB(11,ce,"determinate"===s.mode,"indeterminate"===s.mode)),e.uIk("aria-valuemin",0)("aria-valuenow",s.value)("aria-valuemax",100)("data-pc-name","progressbar")("data-pc-section","root"),e.xp6(1),e.Q6J("ngIf","determinate"===s.mode),e.xp6(1),e.Q6J("ngIf","indeterminate"===s.mode))},dependencies:[r.mk,r.O5,r.PC],styles:['@layer primeng{.p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate .p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0 none;display:flex;align-items:center;justify-content:center;overflow:hidden}.p-progressbar-determinate .p-progressbar-label{display:inline-flex}.p-progressbar-determinate .p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-indeterminate .p-progressbar-value:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate .p-progressbar-value:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}}@keyframes p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}\n'],encapsulation:2,changeDetection:0})}return i})(),S=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=e.oAB({type:i});static \u0275inj=e.cJS({imports:[r.ez]})}return i})();var pe=l(6593);const de=["advancedfileinput"],ue=["basicfileinput"],_e=["content"];function ge(i,a){if(1&i&&e._UZ(0,"span",18),2&i){const t=e.oxw(2);e.Tol(t.chooseIcon),e.Q6J("ngClass","p-button-icon p-button-icon-left"),e.uIk("aria-label",!0)("data-pc-section","chooseicon")}}function me(i,a){1&i&&e._UZ(0,"PlusIcon",21),2&i&&(e.Q6J("styleClass","p-button-icon p-button-icon-left"),e.uIk("aria-label",!0)("data-pc-section","chooseicon"))}function fe(i,a){}function he(i,a){1&i&&e.YNc(0,fe,0,0,"ng-template")}function ve(i,a){if(1&i&&(e.TgZ(0,"span",22),e.YNc(1,he,1,0,null,11),e.qZA()),2&i){const t=e.oxw(3);e.uIk("aria-label",!0)("data-pc-section","chooseicon"),e.xp6(1),e.Q6J("ngTemplateOutlet",t.chooseIconTemplate)}}function xe(i,a){if(1&i&&(e.ynx(0),e.YNc(1,me,1,3,"PlusIcon",19),e.YNc(2,ve,2,3,"span",20),e.BQk()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!t.chooseIconTemplate),e.xp6(1),e.Q6J("ngIf",t.chooseIconTemplate)}}function be(i,a){if(1&i&&e._UZ(0,"span",25),2&i){const t=e.oxw(3);e.Q6J("ngClass",t.uploadIcon),e.uIk("aria-hidden",!0)}}function Ie(i,a){1&i&&e._UZ(0,"UploadIcon",21),2&i&&e.Q6J("styleClass","p-button-icon p-button-icon-left")}function Ce(i,a){}function Te(i,a){1&i&&e.YNc(0,Ce,0,0,"ng-template")}function ye(i,a){if(1&i&&(e.TgZ(0,"span",22),e.YNc(1,Te,1,0,null,11),e.qZA()),2&i){const t=e.oxw(4);e.uIk("aria-hidden",!0),e.xp6(1),e.Q6J("ngTemplateOutlet",t.uploadIconTemplate)}}function Fe(i,a){if(1&i&&(e.ynx(0),e.YNc(1,Ie,1,1,"UploadIcon",19),e.YNc(2,ye,2,2,"span",20),e.BQk()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",!t.uploadIconTemplate),e.xp6(1),e.Q6J("ngIf",t.uploadIconTemplate)}}function we(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"p-button",23),e.NdJ("onClick",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.upload())}),e.YNc(1,be,1,2,"span",24),e.YNc(2,Fe,3,2,"ng-container",8),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("label",t.uploadButtonLabel)("disabled",!t.hasFiles()||t.isFileLimitExceeded())("styleClass",t.uploadStyleClass),e.xp6(1),e.Q6J("ngIf",t.uploadIcon),e.xp6(1),e.Q6J("ngIf",!t.uploadIcon)}}function Ue(i,a){if(1&i&&e._UZ(0,"span",25),2&i){const t=e.oxw(3);e.Q6J("ngClass",t.cancelIcon)}}function Me(i,a){1&i&&e._UZ(0,"TimesIcon",21),2&i&&(e.Q6J("styleClass","p-button-icon p-button-icon-left"),e.uIk("aria-hidden",!0))}function ke(i,a){}function Se(i,a){1&i&&e.YNc(0,ke,0,0,"ng-template")}function Ze(i,a){if(1&i&&(e.TgZ(0,"span",22),e.YNc(1,Se,1,0,null,11),e.qZA()),2&i){const t=e.oxw(4);e.uIk("aria-hidden",!0),e.xp6(1),e.Q6J("ngTemplateOutlet",t.cancelIconTemplate)}}function Je(i,a){if(1&i&&(e.ynx(0),e.YNc(1,Me,1,2,"TimesIcon",19),e.YNc(2,Ze,2,2,"span",20),e.BQk()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",!t.cancelIconTemplate),e.xp6(1),e.Q6J("ngIf",t.cancelIconTemplate)}}function Le(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"p-button",23),e.NdJ("onClick",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.clear())}),e.YNc(1,Ue,1,1,"span",24),e.YNc(2,Je,3,2,"ng-container",8),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("label",t.cancelButtonLabel)("disabled",!t.hasFiles()||t.uploading)("styleClass",t.cancelStyleClass),e.xp6(1),e.Q6J("ngIf",t.cancelIcon),e.xp6(1),e.Q6J("ngIf",!t.cancelIcon)}}function Qe(i,a){1&i&&e.GkF(0)}function Ee(i,a){if(1&i&&e._UZ(0,"p-progressBar",26),2&i){const t=e.oxw(2);e.Q6J("value",t.progress)("showValue",!1)}}function Ae(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"img",33),e.NdJ("error",function(s){e.CHM(t);const o=e.oxw(5);return e.KtG(o.imageError(s))}),e.qZA()}if(2&i){const t=e.oxw().$implicit,n=e.oxw(4);e.Q6J("src",t.objectURL,e.LSH)("width",n.previewWidth)}}function Ne(i,a){1&i&&e._UZ(0,"TimesIcon")}function Ye(i,a){}function Oe(i,a){1&i&&e.YNc(0,Ye,0,0,"ng-template")}function De(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",29)(1,"div"),e.YNc(2,Ae,1,2,"img",30),e.qZA(),e.TgZ(3,"div",31),e._uU(4),e.qZA(),e.TgZ(5,"div"),e._uU(6),e.qZA(),e.TgZ(7,"div")(8,"button",32),e.NdJ("click",function(s){const c=e.CHM(t).index,u=e.oxw(4);return e.KtG(u.remove(s,c))}),e.YNc(9,Ne,1,0,"TimesIcon",8),e.YNc(10,Oe,1,0,null,11),e.qZA()()()}if(2&i){const t=a.$implicit,n=e.oxw(4);e.xp6(2),e.Q6J("ngIf",n.isImage(t)),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Oqu(n.formatSize(t.size)),e.xp6(2),e.Tol(n.removeStyleClass),e.Q6J("disabled",n.uploading),e.xp6(1),e.Q6J("ngIf",!n.cancelIconTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",n.cancelIconTemplate)}}function Be(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,De,11,8,"div",28),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.files)}}function Pe(i,a){}function ze(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,Pe,0,0,"ng-template",34),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.files)("ngForTemplate",t.fileTemplate)}}function He(i,a){if(1&i&&(e.TgZ(0,"div",27),e.YNc(1,Be,2,1,"div",8),e.YNc(2,ze,2,2,"div",8),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!t.fileTemplate),e.xp6(1),e.Q6J("ngIf",t.fileTemplate)}}function Re(i,a){1&i&&e.GkF(0)}const Ve=function(i,a){return{"p-focus":i,"p-disabled":a}},qe=function(i){return{$implicit:i}};function Ge(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",2)(1,"div",3)(2,"span",4),e.NdJ("focus",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.onFocus())})("blur",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.onBlur())})("click",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.choose())})("keydown.enter",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.choose())}),e.TgZ(3,"input",5,6),e.NdJ("change",function(s){e.CHM(t);const o=e.oxw();return e.KtG(o.onFileSelect(s))}),e.qZA(),e.YNc(5,ge,1,5,"span",7),e.YNc(6,xe,3,2,"ng-container",8),e.TgZ(7,"span",9),e._uU(8),e.qZA()(),e.YNc(9,we,3,5,"p-button",10),e.YNc(10,Le,3,5,"p-button",10),e.YNc(11,Qe,1,0,"ng-container",11),e.qZA(),e.TgZ(12,"div",12,13),e.NdJ("dragenter",function(s){e.CHM(t);const o=e.oxw();return e.KtG(o.onDragEnter(s))})("dragleave",function(s){e.CHM(t);const o=e.oxw();return e.KtG(o.onDragLeave(s))})("drop",function(s){e.CHM(t);const o=e.oxw();return e.KtG(o.onDrop(s))}),e.YNc(14,Ee,1,2,"p-progressBar",14),e._UZ(15,"p-messages",15),e.YNc(16,He,3,2,"div",16),e.YNc(17,Re,1,0,"ng-container",17),e.qZA()()}if(2&i){const t=e.oxw();e.Tol(t.styleClass),e.Q6J("ngClass","p-fileupload p-fileupload-advanced p-component")("ngStyle",t.style),e.uIk("data-pc-name","fileupload")("data-pc-section","root"),e.xp6(1),e.uIk("data-pc-section","buttonbar"),e.xp6(1),e.Tol(t.chooseStyleClass),e.Q6J("ngClass",e.WLB(30,Ve,t.focus,t.disabled||t.isChooseDisabled())),e.uIk("data-pc-section","choosebutton"),e.xp6(1),e.Q6J("multiple",t.multiple)("accept",t.accept)("disabled",t.disabled||t.isChooseDisabled()),e.uIk("title","")("data-pc-section","input"),e.xp6(2),e.Q6J("ngIf",t.chooseIcon),e.xp6(1),e.Q6J("ngIf",!t.chooseIcon),e.xp6(1),e.uIk("data-pc-section","choosebuttonlabel"),e.xp6(1),e.Oqu(t.chooseButtonLabel),e.xp6(1),e.Q6J("ngIf",!t.auto&&t.showUploadButton),e.xp6(1),e.Q6J("ngIf",!t.auto&&t.showCancelButton),e.xp6(1),e.Q6J("ngTemplateOutlet",t.toolbarTemplate),e.xp6(1),e.uIk("data-pc-section","content"),e.xp6(2),e.Q6J("ngIf",t.hasFiles()),e.xp6(1),e.Q6J("value",t.msgs)("enableService",!1),e.xp6(1),e.Q6J("ngIf",t.hasFiles()),e.xp6(1),e.Q6J("ngTemplateOutlet",t.contentTemplate)("ngTemplateOutletContext",e.VKq(33,qe,t.files))}}function je(i,a){if(1&i&&e._UZ(0,"span",25),2&i){const t=e.oxw(3);e.Q6J("ngClass",t.uploadIcon)}}function Ke(i,a){1&i&&e._UZ(0,"UploadIcon",21),2&i&&e.Q6J("styleClass","p-button-icon p-button-icon-left")}function $e(i,a){}function We(i,a){1&i&&e.YNc(0,$e,0,0,"ng-template")}function Xe(i,a){if(1&i&&(e.TgZ(0,"span",22),e.YNc(1,We,1,0,null,11),e.qZA()),2&i){const t=e.oxw(4);e.xp6(1),e.Q6J("ngTemplateOutlet",t.uploadIconTemplate)}}function et(i,a){if(1&i&&(e.ynx(0),e.YNc(1,Ke,1,1,"UploadIcon",19),e.YNc(2,Xe,2,1,"span",20),e.BQk()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",!t.uploadIconTemplate),e.xp6(1),e.Q6J("ngIf",t.uploadIconTemplate)}}function tt(i,a){if(1&i&&(e.ynx(0),e.YNc(1,je,1,1,"span",24),e.YNc(2,et,3,2,"ng-container",8),e.BQk()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.uploadIcon),e.xp6(1),e.Q6J("ngIf",!t.uploadIcon)}}function it(i,a){if(1&i&&e._UZ(0,"span",42),2&i){const t=e.oxw(3);e.Q6J("ngClass",t.chooseIcon)}}function nt(i,a){1&i&&e._UZ(0,"PlusIcon",21),2&i&&(e.Q6J("styleClass","p-button-icon p-button-icon-left pi"),e.uIk("aria-hidden",!0)("data-pc-section","uploadicon"))}function st(i,a){}function at(i,a){1&i&&e.YNc(0,st,0,0,"ng-template")}function ot(i,a){if(1&i&&(e.TgZ(0,"span",44),e.YNc(1,at,1,0,null,11),e.qZA()),2&i){const t=e.oxw(4);e.uIk("aria-hidden",!0)("data-pc-section","uploadicon"),e.xp6(1),e.Q6J("ngTemplateOutlet",t.chooseIconTemplate)}}function lt(i,a){if(1&i&&(e.ynx(0),e.YNc(1,nt,1,3,"PlusIcon",19),e.YNc(2,ot,2,3,"span",43),e.BQk()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",!t.chooseIconTemplate),e.xp6(1),e.Q6J("ngIf",t.chooseIconTemplate)}}function ct(i,a){if(1&i&&(e.YNc(0,it,1,1,"span",41),e.YNc(1,lt,3,2,"ng-container",8)),2&i){const t=e.oxw(2);e.Q6J("ngIf",t.chooseIcon),e.xp6(1),e.Q6J("ngIf",!t.chooseIcon)}}function rt(i,a){if(1&i&&(e.TgZ(0,"span",9),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.uIk("data-pc-section","label"),e.xp6(1),e.Oqu(t.basicButtonLabel)}}function pt(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"input",45,46),e.NdJ("change",function(s){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onFileSelect(s))})("focus",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.onFocus())})("blur",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.onBlur())}),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("accept",t.accept)("multiple",t.multiple)("disabled",t.disabled),e.uIk("data-pc-section","input")}}const dt=function(i,a,t,n){return{"p-button p-component p-fileupload-choose":!0,"p-button-icon-only":i,"p-fileupload-choose-selected":a,"p-focus":t,"p-disabled":n}};function ut(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",35),e._UZ(1,"p-messages",15),e.TgZ(2,"span",36),e.NdJ("mouseup",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.onBasicUploaderClick())})("keydown",function(s){e.CHM(t);const o=e.oxw();return e.KtG(o.onBasicKeydown(s))}),e.YNc(3,tt,3,2,"ng-container",37),e.YNc(4,ct,2,2,"ng-template",null,38,e.W1O),e.YNc(6,rt,2,2,"span",39),e.YNc(7,pt,2,4,"input",40),e.qZA()()}if(2&i){const t=e.MAs(5),n=e.oxw();e.uIk("data-pc-name","fileupload"),e.xp6(1),e.Q6J("value",n.msgs)("enableService",!1),e.xp6(1),e.Tol(n.styleClass),e.Q6J("ngClass",e.l5B(12,dt,!n.basicButtonLabel,n.hasFiles(),n.focus,n.disabled))("ngStyle",n.style),e.uIk("data-pc-section","choosebutton"),e.xp6(1),e.Q6J("ngIf",n.hasFiles()&&!n.auto)("ngIfElse",t),e.xp6(3),e.Q6J("ngIf",n.basicButtonLabel),e.xp6(1),e.Q6J("ngIf",!n.hasFiles())}}let _t=(()=>{class i{document;platformId;renderer;el;sanitizer;zone;http;cd;config;name;url;method="post";multiple;accept;disabled;auto;withCredentials;maxFileSize;invalidFileSizeMessageSummary="{0}: Invalid file size, ";invalidFileSizeMessageDetail="maximum upload size is {0}.";invalidFileTypeMessageSummary="{0}: Invalid file type, ";invalidFileTypeMessageDetail="allowed file types: {0}.";invalidFileLimitMessageDetail="limit is {0} at most.";invalidFileLimitMessageSummary="Maximum number of files exceeded, ";style;styleClass;previewWidth=50;chooseLabel;uploadLabel;cancelLabel;chooseIcon;uploadIcon;cancelIcon;showUploadButton=!0;showCancelButton=!0;mode="advanced";headers;customUpload;fileLimit;uploadStyleClass;cancelStyleClass;removeStyleClass;chooseStyleClass;onBeforeUpload=new e.vpe;onSend=new e.vpe;onUpload=new e.vpe;onError=new e.vpe;onClear=new e.vpe;onRemove=new e.vpe;onSelect=new e.vpe;onProgress=new e.vpe;uploadHandler=new e.vpe;onImageError=new e.vpe;templates;advancedFileInput;basicFileInput;content;set files(t){this._files=[];for(let n=0;n<t.length;n++){let s=t[n];this.validate(s)&&(this.isImage(s)&&(s.objectURL=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(t[n]))),this._files.push(t[n]))}}get files(){return this._files}get basicButtonLabel(){return this.auto||!this.hasFiles()?this.chooseLabel:this.uploadLabel??this.files[0].name}_files=[];progress=0;dragHighlight;msgs;fileTemplate;contentTemplate;toolbarTemplate;chooseIconTemplate;uploadIconTemplate;cancelIconTemplate;uploadedFileCount=0;focus;uploading;duplicateIEEvent;translationSubscription;dragOverListener;constructor(t,n,s,o,c,u,v,kt,St){this.document=t,this.platformId=n,this.renderer=s,this.el=o,this.sanitizer=c,this.zone=u,this.http=v,this.cd=kt,this.config=St}ngAfterContentInit(){this.templates?.forEach(t=>{switch(t.getType()){case"file":default:this.fileTemplate=t.template;break;case"content":this.contentTemplate=t.template;break;case"toolbar":this.toolbarTemplate=t.template;break;case"chooseicon":this.chooseIconTemplate=t.template;break;case"uploadicon":this.uploadIconTemplate=t.template;break;case"cancelicon":this.cancelIconTemplate=t.template}})}ngOnInit(){this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()})}ngAfterViewInit(){(0,r.NF)(this.platformId)&&"advanced"===this.mode&&this.zone.runOutsideAngular(()=>{this.content&&(this.dragOverListener=this.renderer.listen(this.content.nativeElement,"dragover",this.onDragOver.bind(this)))})}getTranslation(t){return this.config.getTranslation(t)}choose(){this.advancedFileInput?.nativeElement.click()}onFileSelect(t){if("drop"!==t.type&&this.isIE11()&&this.duplicateIEEvent)return void(this.duplicateIEEvent=!1);this.msgs=[],this.multiple||(this.files=[]);let n=t.dataTransfer?t.dataTransfer.files:t.target.files;for(let s=0;s<n.length;s++){let o=n[s];this.isFileSelected(o)||this.validate(o)&&(this.isImage(o)&&(o.objectURL=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(n[s]))),this.files.push(n[s]))}this.onSelect.emit({originalEvent:t,files:n,currentFiles:this.files}),this.fileLimit&&this.checkFileLimit(),this.hasFiles()&&this.auto&&("advanced"!==this.mode||!this.isFileLimitExceeded())&&this.upload(),"drop"!==t.type&&this.isIE11()?this.clearIEInput():this.clearInputElement()}isFileSelected(t){for(let n of this.files)if(n.name+n.type+n.size===t.name+t.type+t.size)return!0;return!1}isIE11(){if((0,r.NF)(this.platformId))return!!this.document.defaultView.MSInputMethodContext&&!!this.document.documentMode}validate(t){return this.msgs=this.msgs||[],this.accept&&!this.isFileTypeValid(t)?(this.msgs.push({severity:"error",summary:this.invalidFileTypeMessageSummary.replace("{0}",t.name),detail:this.invalidFileTypeMessageDetail.replace("{0}",this.accept)}),!1):!(this.maxFileSize&&t.size>this.maxFileSize&&(this.msgs.push({severity:"error",summary:this.invalidFileSizeMessageSummary.replace("{0}",t.name),detail:this.invalidFileSizeMessageDetail.replace("{0}",this.formatSize(this.maxFileSize))}),1))}isFileTypeValid(t){let n=this.accept?.split(",").map(s=>s.trim());for(let s of n)if(this.isWildcard(s)?this.getTypeClass(t.type)===this.getTypeClass(s):t.type==s||this.getFileExtension(t).toLowerCase()===s.toLowerCase())return!0;return!1}getTypeClass(t){return t.substring(0,t.indexOf("/"))}isWildcard(t){return-1!==t.indexOf("*")}getFileExtension(t){return"."+t.name.split(".").pop()}isImage(t){return/^image\//.test(t.type)}onImageLoad(t){window.URL.revokeObjectURL(t.src)}upload(){if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.uploadHandler.emit({files:this.files}),this.cd.markForCheck();else{this.uploading=!0,this.msgs=[];let t=new FormData;this.onBeforeUpload.emit({formData:t});for(let n=0;n<this.files.length;n++)t.append(this.name,this.files[n],this.files[n].name);this.http.request(this.method,this.url,{body:t,headers:this.headers,reportProgress:!0,observe:"events",withCredentials:this.withCredentials}).subscribe(n=>{switch(n.type){case _.dt.Sent:this.onSend.emit({originalEvent:n,formData:t});break;case _.dt.Response:this.uploading=!1,this.progress=0,n.status>=200&&n.status<300?(this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.onUpload.emit({originalEvent:n,files:this.files})):this.onError.emit({files:this.files}),this.clear();break;case _.dt.UploadProgress:n.loaded&&(this.progress=Math.round(100*n.loaded/n.total)),this.onProgress.emit({originalEvent:n,progress:this.progress})}this.cd.markForCheck()},n=>{this.uploading=!1,this.onError.emit({files:this.files,error:n})})}}clear(){this.files=[],this.uploadedFileCount=0,this.onClear.emit(),this.clearInputElement(),this.cd.markForCheck()}remove(t,n){this.clearInputElement(),this.onRemove.emit({originalEvent:t,file:this.files[n]}),this.files.splice(n,1),this.checkFileLimit()}isFileLimitExceeded(){return this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount&&this.focus&&(this.focus=!1),this.fileLimit&&this.fileLimit<this.files.length+this.uploadedFileCount}isChooseDisabled(){return this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount}checkFileLimit(){this.msgs??=[],this.isFileLimitExceeded()&&this.msgs.push({severity:"error",summary:this.invalidFileLimitMessageSummary.replace("{0}",this.fileLimit.toString()),detail:this.invalidFileLimitMessageDetail.replace("{0}",this.fileLimit.toString())})}clearInputElement(){this.advancedFileInput&&this.advancedFileInput.nativeElement&&(this.advancedFileInput.nativeElement.value=""),this.basicFileInput&&this.basicFileInput.nativeElement&&(this.basicFileInput.nativeElement.value="")}clearIEInput(){this.advancedFileInput&&this.advancedFileInput.nativeElement&&(this.duplicateIEEvent=!0,this.advancedFileInput.nativeElement.value="")}hasFiles(){return this.files&&this.files.length>0}onDragEnter(t){this.disabled||(t.stopPropagation(),t.preventDefault())}onDragOver(t){this.disabled||(x.p.addClass(this.content?.nativeElement,"p-fileupload-highlight"),this.dragHighlight=!0,t.stopPropagation(),t.preventDefault())}onDragLeave(t){this.disabled||x.p.removeClass(this.content?.nativeElement,"p-fileupload-highlight")}onDrop(t){if(!this.disabled){x.p.removeClass(this.content?.nativeElement,"p-fileupload-highlight"),t.stopPropagation(),t.preventDefault();let n=t.dataTransfer?t.dataTransfer.files:t.target.files;(this.multiple||n&&1===n.length)&&this.onFileSelect(t)}}onFocus(){this.focus=!0}onBlur(){this.focus=!1}formatSize(t){const o=this.getTranslation(p.ws.FILE_SIZE_TYPES);if(0===t)return`0 ${o[0]}`;const c=Math.floor(Math.log(t)/Math.log(1024));return`${(t/Math.pow(1024,c)).toFixed(3)} ${o[c]}`}onBasicUploaderClick(){this.hasFiles()?this.upload():this.basicFileInput?.nativeElement.click()}onBasicKeydown(t){switch(t.code){case"Space":case"Enter":this.onBasicUploaderClick(),t.preventDefault()}}imageError(t){this.onImageError.emit(t)}getBlockableElement(){return this.el.nativeElement.children[0]}get chooseButtonLabel(){return this.chooseLabel||this.config.getTranslation(p.ws.CHOOSE)}get uploadButtonLabel(){return this.uploadLabel||this.config.getTranslation(p.ws.UPLOAD)}get cancelButtonLabel(){return this.cancelLabel||this.config.getTranslation(p.ws.CANCEL)}ngOnDestroy(){this.content&&this.content.nativeElement&&this.dragOverListener&&(this.dragOverListener(),this.dragOverListener=null),this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||i)(e.Y36(r.K0),e.Y36(e.Lbi),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(pe.H7),e.Y36(e.R0b),e.Y36(_.eN),e.Y36(e.sBO),e.Y36(p.b4))};static \u0275cmp=e.Xpm({type:i,selectors:[["p-fileUpload"]],contentQueries:function(n,s,o){if(1&n&&e.Suo(o,p.jx,4),2&n){let c;e.iGM(c=e.CRH())&&(s.templates=c)}},viewQuery:function(n,s){if(1&n&&(e.Gf(de,5),e.Gf(ue,5),e.Gf(_e,5)),2&n){let o;e.iGM(o=e.CRH())&&(s.advancedFileInput=o.first),e.iGM(o=e.CRH())&&(s.basicFileInput=o.first),e.iGM(o=e.CRH())&&(s.content=o.first)}},hostAttrs:[1,"p-element"],inputs:{name:"name",url:"url",method:"method",multiple:"multiple",accept:"accept",disabled:"disabled",auto:"auto",withCredentials:"withCredentials",maxFileSize:"maxFileSize",invalidFileSizeMessageSummary:"invalidFileSizeMessageSummary",invalidFileSizeMessageDetail:"invalidFileSizeMessageDetail",invalidFileTypeMessageSummary:"invalidFileTypeMessageSummary",invalidFileTypeMessageDetail:"invalidFileTypeMessageDetail",invalidFileLimitMessageDetail:"invalidFileLimitMessageDetail",invalidFileLimitMessageSummary:"invalidFileLimitMessageSummary",style:"style",styleClass:"styleClass",previewWidth:"previewWidth",chooseLabel:"chooseLabel",uploadLabel:"uploadLabel",cancelLabel:"cancelLabel",chooseIcon:"chooseIcon",uploadIcon:"uploadIcon",cancelIcon:"cancelIcon",showUploadButton:"showUploadButton",showCancelButton:"showCancelButton",mode:"mode",headers:"headers",customUpload:"customUpload",fileLimit:"fileLimit",uploadStyleClass:"uploadStyleClass",cancelStyleClass:"cancelStyleClass",removeStyleClass:"removeStyleClass",chooseStyleClass:"chooseStyleClass",files:"files"},outputs:{onBeforeUpload:"onBeforeUpload",onSend:"onSend",onUpload:"onUpload",onError:"onError",onClear:"onClear",onRemove:"onRemove",onSelect:"onSelect",onProgress:"onProgress",uploadHandler:"uploadHandler",onImageError:"onImageError"},decls:2,vars:2,consts:[[3,"ngClass","ngStyle","class",4,"ngIf"],["class","p-fileupload p-fileupload-basic p-component",4,"ngIf"],[3,"ngClass","ngStyle"],[1,"p-fileupload-buttonbar"],["pRipple","","tabindex","0",1,"p-button","p-component","p-fileupload-choose",3,"ngClass","focus","blur","click","keydown.enter"],["type","file",3,"multiple","accept","disabled","change"],["advancedfileinput",""],[3,"ngClass","class",4,"ngIf"],[4,"ngIf"],[1,"p-button-label"],["type","button",3,"label","disabled","styleClass","onClick",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"p-fileupload-content",3,"dragenter","dragleave","drop"],["content",""],[3,"value","showValue",4,"ngIf"],[3,"value","enableService"],["class","p-fileupload-files",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-button-icon p-button-icon-left",4,"ngIf"],[3,"styleClass"],[1,"p-button-icon","p-button-icon-left"],["type","button",3,"label","disabled","styleClass","onClick"],["class","p-button-icon p-button-icon-left",3,"ngClass",4,"ngIf"],[1,"p-button-icon","p-button-icon-left",3,"ngClass"],[3,"value","showValue"],[1,"p-fileupload-files"],["class","p-fileupload-row",4,"ngFor","ngForOf"],[1,"p-fileupload-row"],[3,"src","width","error",4,"ngIf"],[1,"p-fileupload-filename"],["type","button","pButton","",1,"p-button-icon-only",3,"disabled","click"],[3,"src","width","error"],["ngFor","",3,"ngForOf","ngForTemplate"],[1,"p-fileupload","p-fileupload-basic","p-component"],["tabindex","0","pRipple","",3,"ngClass","ngStyle","mouseup","keydown"],[4,"ngIf","ngIfElse"],["chooseSection",""],["class","p-button-label",4,"ngIf"],["type","file",3,"accept","multiple","disabled","change","focus","blur",4,"ngIf"],["class","p-button-icon p-button-icon-left pi",3,"ngClass",4,"ngIf"],[1,"p-button-icon","p-button-icon-left","pi",3,"ngClass"],["class","p-button-icon p-button-icon-left pi",4,"ngIf"],[1,"p-button-icon","p-button-icon-left","pi"],["type","file",3,"accept","multiple","disabled","change","focus","blur"],["basicfileinput",""]],template:function(n,s){1&n&&(e.YNc(0,Ge,18,35,"div",0),e.YNc(1,ut,8,17,"div",1)),2&n&&(e.Q6J("ngIf","advanced"===s.mode),e.xp6(1),e.Q6J("ngIf","basic"===s.mode))},dependencies:function(){return[r.mk,r.sg,r.O5,r.tP,r.PC,g.Hq,g.zx,re,se,f.H,T.p,y,m.q]},styles:["@layer primeng{.p-fileupload-content{position:relative}.p-fileupload-row{display:flex;align-items:center}.p-fileupload-row>div{flex:1 1 auto;width:25%}.p-fileupload-row>div:last-child{text-align:right}.p-fileupload-content .p-progressbar{width:100%;position:absolute;top:0;left:0}.p-button.p-fileupload-choose{position:relative;overflow:hidden}.p-button.p-fileupload-choose input[type=file],.p-fileupload-choose.p-fileupload-choose-selected input[type=file]{display:none}.p-fluid .p-fileupload .p-button{width:auto}.p-fileupload-filename{word-break:break-all}}\n"],encapsulation:2,changeDetection:0})}return i})(),gt=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=e.oAB({type:i});static \u0275inj=e.cJS({imports:[r.ez,_.JF,p.m8,g.hJ,S,k,f.T,T.p,y,m.q,p.m8,g.hJ,S,k]})}return i})();var mt=l(7359),ft=l(3726),h=l(5861),Z=l(553),ht=l(3429),vt=l(9961),xt=l(7240),bt=l(1344),It=l(4795),J=l(95),Ct=l(2660),Tt=l(7680),yt=l(3965);function Ft(i,a){1&i&&e._UZ(0,"p-progressSpinner",17)}const wt=function(){return{width:"200px"}},Ut=[{path:"",component:(()=>{class i{instanceS;ns;generalS;feStoreCS;authS;loading={grid:!1};uploadedFiles=[];tarFile;uploadTarURL;version="";versions=[];selectedVersion;STORE_BE_HOST_PORT=Z.N.STORE_BE_HOST_PORT;constructor(t,n,s,o,c){this.instanceS=t,this.ns=n,this.generalS=s,this.feStoreCS=o,this.authS=c}ngOnInit(){this.version=Z.N.VERSION,this.uploadTarURL=this.instanceS.deployAPIMakerURLString(),this.loadAPIMakerVersions().then(),this.generalS.setNewTitle("API Maker - Deploy")}onUploadSuccess(){var t=this;return(0,h.Z)(function*(){t.ns.showSuccess("Your API Maker bundle uploaded successfully. System will restart"),yield t.instanceS.restartAPICallAndUILoadingAndReloadPage(),t.loading.grid=!0})()}onBeforeUpload(){this.loading.grid=!0}onUploadError(){this.loading.grid=!1,this.ns.showError("File upload failed!")}tarFileSelected(t){var n=this;return(0,h.Z)(function*(){n.tarFile=t.currentFiles[0],n.ns.showInfo("Click on upload button to start deployment.")})()}loadAPIMakerVersions(){var t=this;return(0,h.Z)(function*(){let n="@sava-info-systems/api-maker";t.authS.backendSettings?.extensions&&(n="@sava-info-systems/api-maker-with-extensions");try{t.loading.grid=!0;const s=yield t.feStoreCS.getNpmPackageVersions(t.STORE_BE_HOST_PORT,n);s.success?t.versions=s.data.map(o=>({name:o})).reverse():t.ns.showError(s.message)}catch(s){t.ns.showErrorFromResponse(s.error||s,"Unable to get list of API Maker versions.")}t.loading.grid=!1})()}deployAPIMakerVersionFromNPM(){var t=this;return(0,h.Z)(function*(){if(!t.selectedVersion)return void t.ns.showError("Please selection version to deploy");const n=t.selectedVersion.name;t.loading.grid=!0;let s=`https://registry.npmjs.org/@sava-info-systems/api-maker/-/api-maker-${n}.tgz`;t.authS.backendSettings?.extensions&&(s=`https://registry.npmjs.org/@sava-info-systems/api-maker-with-extensions/-/api-maker-with-extensions-${n}.tgz`);try{const o=yield t.instanceS.deployAPIMakerAPICall({tarPath:s});let c;if(o.success){const u=o.data;for(const v of u)if(v.error){c=v.error.message;break}c?t.ns.showError(c):(t.ns.showSuccess("Your API Maker bundle uploaded successfully. System will restart"),yield t.instanceS.restartAPICallAndUILoadingAndReloadPage())}}catch(o){t.ns.showErrorFromResponse(o.error||o,"Unable to install API Maker version "+n)}t.loading.grid=!1})()}static \u0275fac=function(n){return new(n||i)(e.Y36(ht.E),e.Y36(vt.W),e.Y36(xt.b),e.Y36(bt.e),e.Y36(It.e))};static \u0275cmp=e.Xpm({type:i,selectors:[["app-deploy-api-maker"]],decls:22,vars:10,consts:[["id","about",1,"mt-3"],[1,"container"],[1,"row"],[1,"col-lg-8","mx-auto"],[1,"text-center","mb-3","mt-3"],["src","/assets/images/icons/api-maker-deployment.svg","alt","Deploy API Maker icon",1,"fa-fw","mr-1"],[1,"text-muted","text-center"],[1,"mt-3"],[1,"card-body","p-0","h-100","overflow-hidden"],[1,"row","m-0"],[1,"col-6","p-0","text-center"],["name","files","chooseIcon","pi pi-upload","accept",".tgz,.gz,.tar.gz","maxFileSize","100000000","chooseLabel","Select API Maker .tgz file",1,"d-inline-block",3,"id","url","multiple","onBeforeUpload","onUpload","onError","onSelect"],[2,"margin-top","28px"],["appendTo","body","optionLabel","name","filterBy","name","placeholder","Select a version",3,"options","ngModel","ngModelChange"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"click"],[1,"fas","fa-upload","fa-fw","mr-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(n,s){1&n&&(e.TgZ(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h3",4),e._UZ(5,"img",5),e._uU(6," Deploy API Maker"),e.qZA(),e.TgZ(7,"div",6)(8,"span"),e._uU(9),e.qZA()()()()()(),e.TgZ(10,"section",7)(11,"div",8)(12,"div",9)(13,"div",10)(14,"p-fileUpload",11),e.NdJ("onBeforeUpload",function(){return s.onBeforeUpload()})("onUpload",function(){return s.onUploadSuccess()})("onError",function(){return s.onUploadError()})("onSelect",function(c){return s.tarFileSelected(c)}),e.qZA()(),e.TgZ(15,"div",10)(16,"div",12)(17,"p-dropdown",13),e.NdJ("ngModelChange",function(c){return s.selectedVersion=c}),e.qZA(),e.TgZ(18,"button",14),e.NdJ("click",function(){return s.deployAPIMakerVersionFromNPM()}),e._UZ(19,"i",15),e._uU(20," Deploy From NPM "),e.qZA()()()()(),e.YNc(21,Ft,1,0,"p-progressSpinner",16),e.qZA()),2&n&&(e.xp6(9),e.hij("Current Version : ",s.version,""),e.xp6(5),e.Q6J("id","id_api_maker_deploy_file_upload")("url",s.uploadTarURL)("multiple",!1),e.xp6(3),e.Akn(e.DdM(9,wt)),e.Q6J("options",s.versions)("ngModel",s.selectedVersion),e.xp6(4),e.Q6J("ngIf",s.loading.grid))},dependencies:[J.JJ,J.On,r.O5,Ct.y,Tt.G,yt.Lt,_t]})}return i})(),canActivate:[ft.P]}];let Mt=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=e.oAB({type:i});static \u0275inj=e.cJS({imports:[L.Bz.forChild(Ut),mt.u,gt]})}return i})()}}]);
|