@sava-info-systems/api-maker-with-extensions 1.18.1 → 1.19.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/dist/{1351.c372d4232c6551fb.js → 1351.48e08341fba9b889.js} +1 -1
- package/dist/{1417.336e9ca469a92f03.js → 1417.5caf023140e7c67f.js} +1 -1
- package/dist/1468.d42293f7d802a787.js +1 -0
- package/dist/1959.a22fe393419f10c5.js +1 -0
- package/dist/{2162.bb1f670dabb5c84a.js → 2162.3c94f3d66c6312d5.js} +1 -1
- package/dist/{2442.18887167a25c7dee.js → 2442.adbc5b49349bb569.js} +1 -1
- package/dist/{2818.dd50a60acfbaad6b.js → 2818.71176f4848a9419f.js} +1 -1
- package/dist/3488.ada60be2dbcd9845.js +1 -0
- package/dist/{3545.d415d4baf2d79163.js → 3545.b5585792e9fe1447.js} +1 -1
- package/dist/{3605.e398ec79072f4bf2.js → 3605.3c6cdf2a08c47301.js} +1 -1
- package/dist/{3611.59468f2dba2cd6df.js → 3611.9577d58af5f1f4aa.js} +1 -1
- package/dist/{3621.43633d73990c0546.js → 3621.412300a009ea6346.js} +1 -1
- package/dist/{3732.d698a74f1f0e24e6.js → 3732.b5ac36f1448e215c.js} +1 -1
- package/dist/{379.0d35e4e001b196b4.js → 379.d3e61f3350a595dc.js} +1 -1
- package/dist/{3929.a017182a7e24cf7f.js → 3929.9ac933e926943db2.js} +1 -1
- package/dist/{4092.b7a59976bb87bf26.js → 4092.71b0eccc0cb429f0.js} +1 -1
- package/dist/{4124.1dab3feb76c9c039.js → 4124.a8329e77343e7087.js} +1 -1
- package/dist/{4316.3745e74e3d9c2865.js → 4316.542be541e58dff84.js} +1 -1
- package/dist/4344.d8f42d425eaec852.js +1 -0
- package/dist/{4689.4f5958fddadc577e.js → 4689.e827720779e0cf34.js} +1 -1
- package/dist/{4709.bd58a5ca8c74f29c.js → 4709.262c34f60b50ebc9.js} +1 -1
- package/dist/{4774.088c1fbbb2988ee5.js → 4774.a4368f3ce2e778da.js} +1 -1
- package/dist/{4880.968e1ffff2f417d9.js → 4880.70ca405524206be7.js} +1 -1
- package/dist/{5011.f661999b271a98de.js → 5011.ed9a6465223f760d.js} +1 -1
- package/dist/{5090.fb3787137ba94607.js → 5090.c8bf74c35b0a5d26.js} +1 -1
- package/dist/{5140.05120f243608b828.js → 5140.581ccd2699e2a8a8.js} +1 -1
- package/dist/{5362.4514e2ffb27ce0ac.js → 5362.912e053f78479e90.js} +1 -1
- package/dist/{5442.454ac3ebe7c10659.js → 5442.186b40719e7c1da9.js} +1 -1
- package/dist/{5455.c1f4f3493ea016d4.js → 5455.a1d0d507419e3c59.js} +1 -1
- package/dist/5729.f0ee236ba6579a94.js +1 -0
- package/dist/{5826.650d402e8a957ea3.js → 5826.44efead20568788a.js} +1 -1
- package/dist/{6053.fa624fe98db9a213.js → 6053.67f38f7b35484475.js} +1 -1
- package/dist/6220.b6c29e6e3e717880.js +1 -0
- package/dist/{6415.6b8243526609c494.js → 6415.a48241737e134178.js} +1 -1
- package/dist/{6589.1003b792dd929437.js → 6589.b9c83295e466e464.js} +1 -1
- package/dist/{6679.e71f655f0e7e3e6c.js → 6679.c5073d3a60b67e2e.js} +1 -1
- package/dist/{6828.e0cfd2be83bbc047.js → 6828.36c6805f2b3c6f38.js} +1 -1
- package/dist/{6866.2b7ff38ea0ea8d8f.js → 6866.4dd76a41246a20be.js} +1 -1
- package/dist/{6882.c12e0aff75132b05.js → 6882.fe03a3df377ca119.js} +1 -1
- package/dist/{7014.8aa576d25335a412.js → 7014.5db4db60cc21782e.js} +1 -1
- package/dist/7152.dab3cc50472f703f.js +1 -0
- package/dist/{7367.bd5d43e22b265555.js → 7367.ba1e63db0f9b97f4.js} +1 -1
- package/dist/{7374.b0ad763987f68749.js → 7374.ebfe1004d1773912.js} +1 -1
- package/dist/{7597.9fe66d68836d18f4.js → 7597.177f15771dcdea42.js} +1 -1
- package/dist/7759.2b4ed39a62323abd.js +1 -0
- package/dist/{807.2ba5cc740aa4efa0.js → 807.dba59148bbbbe7fb.js} +1 -1
- package/dist/{8219.46ff63825141f651.js → 8219.2c97945d465ab185.js} +1 -1
- package/dist/{8447.17357e24b9438857.js → 8447.87b3cf73f79cd889.js} +1 -1
- package/dist/{8970.3abda875c6d7de4f.js → 8970.8eece52bbc1c316c.js} +1 -1
- package/dist/9036.876c1f0c1ce4e82b.js +1 -0
- package/dist/{9347.cb017d6396c7f64e.js → 9347.4e7d02eee86c5778.js} +1 -1
- package/dist/{9429.3ce31b960b639d09.js → 9429.9299aa0abda3dc76.js} +1 -1
- package/dist/{9785.edd131cfe4b5abdb.js → 9785.35cc7f0c3778344e.js} +1 -1
- package/dist/{9882.1e4cda6c65811bb5.js → 9882.a94c746b42e5fc0e.js} +1 -1
- package/dist/{9957.baf57c960e56a490.js → 9957.47ed0e74bdfeddd5.js} +1 -1
- package/dist/assets/schema-types/store-types.ts +1 -0
- package/dist/assets/schema-types/types.ts +1 -0
- package/dist/assets/styles/out/colors-dark.css +1 -1
- package/dist/assets/styles/out/styles.css +1 -1
- package/dist/assets/styles/styles.scss +2 -0
- package/dist/{common.2e05fdf2a25495d6.js → common.d4eb1616e93e21e1.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/main.ffc8631f3e17b1c3.js +1 -0
- package/dist/runtime.f7e0fa10d087fa0b.js +1 -0
- package/main.js +1 -1
- package/package.json +4 -4
- package/sandbox/Dockerfile +1 -0
- package/sandbox/assets/schema-types/store-types.js +1 -0
- package/sandbox/package.json +2 -1
- package/sandbox/sandbox.js +1 -1
- package/src/assets/schema-types/store-types.ts +1 -0
- package/src/assets/schema-types/types.ts +1 -0
- package/src/tools/local-client.js +1 -1215
- package/dist/1468.7643522cc3e89857.js +0 -1
- package/dist/1959.59ee99be25f59755.js +0 -1
- package/dist/3488.7052042211d08d07.js +0 -1
- package/dist/4344.b6f194f896eb2205.js +0 -1
- package/dist/5729.9b201708284e16bc.js +0 -1
- package/dist/6220.7d7df941537ed662.js +0 -1
- package/dist/7152.4f047369765b7ac5.js +0 -1
- package/dist/7759.6c363b1156e3658a.js +0 -1
- package/dist/9036.18609df03a18bbdb.js +0 -1
- package/dist/main.b85e625cdc44b214.js +0 -1
- package/dist/runtime.f9839e08ff0d235d.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[7759],{7829:(v,D,o)=>{o.d(D,{Y:()=>oe});var f=o(467),s=o(4341),c=o(8727),l=o(5046),g=o(4388),E=o(6645),M=o(5312),O=o(5632),C=o(9239),p=o(8677),I=o(2133),e=o(540),P=o(6708),b=o(6129),S=o(1987),T=o(1914),F=o(7237),R=o(3864),A=o(6268),y=o(3966),U=o(2396),B=o(177),k=o(3478),j=o(4098),L=o(6914),x=o(7515),h=o(4945),K=o(8542),G=o(5430),W=o(4466);const V=["insertCodeModalC"],N=["monacoEditorModalC"];function X(i,d){1&i&&(e.j41(0,"span"),e.nrm(1,"i",27),e.EFF(2," Add Database Migration"),e.k0s())}function Y(i,d){1&i&&(e.j41(0,"span"),e.nrm(1,"i",28),e.EFF(2," View Database Migration"),e.k0s())}function w(i,d){1&i&&(e.j41(0,"span"),e.nrm(1,"i",29),e.EFF(2," Edit Database Migration"),e.k0s())}function H(i,d){1&i&&(e.j41(0,"span",42),e.EFF(1,"You can not change name later, it can be used in script."),e.k0s())}function J(i,d){1&i&&(e.j41(0,"span",42),e.EFF(1,"You can change Label later."),e.k0s())}function Q(i,d){if(1&i){const a=e.RV6();e.j41(0,"div")(1,"form",30)(2,"div",31)(3,"label",32),e.EFF(4,"Name"),e.k0s(),e.j41(5,"div",33)(6,"input",34),e.bIt("keyup",function(){e.eBV(a);const t=e.XpG();return e.Njj(t.form.get("label").setValue(t.form.get("name").value))}),e.k0s(),e.DNE(7,H,2,0,"span",35),e.k0s()(),e.j41(8,"div",31)(9,"label",32),e.EFF(10,"Label"),e.k0s(),e.j41(11,"div",33),e.nrm(12,"input",36),e.DNE(13,J,2,0,"span",35),e.k0s()(),e.j41(14,"div",31)(15,"label",32),e.EFF(16,"Order"),e.k0s(),e.j41(17,"div",33),e.nrm(18,"input",37),e.k0s()(),e.j41(19,"div",31)(20,"label",32),e.EFF(21,"Timeout in minutes"),e.k0s(),e.j41(22,"div",33),e.nrm(23,"input",38),e.k0s()(),e.j41(24,"div",31),e.nrm(25,"label",32),e.j41(26,"div",33),e.nrm(27,"i",39),e.j41(28,"label",40),e.nrm(29,"p-checkbox",41),e.k0s()()()()()}if(2&i){const a=e.XpG();e.R7$(1),e.Y8G("formGroup",a.form),e.R7$(6),e.Y8G("ngIf",a.data.mode===a.EFormMode.ADD),e.R7$(6),e.Y8G("ngIf",a.data.mode===a.EFormMode.ADD),e.R7$(16),e.Y8G("binary",!0)}}function Z(i,d){if(1&i){const a=e.RV6();e.j41(0,"div",43)(1,"app-monaco-editor",44),e.bIt("editorGenerated",function(t){e.eBV(a);const r=e.XpG();return e.Njj(r.editorGenerated(t))}),e.k0s()()}if(2&i){const a=e.XpG();e.R7$(1),e.Y8G("isSchemaEditor",!0)("editorOptions",a.editorOptionsDBMigration)}}function z(i,d){if(1&i){const a=e.RV6();e.j41(0,"a",45),e.bIt("click",function(){e.eBV(a);const t=e.XpG();return e.Njj(t.viewError())}),e.EFF(1,"View error"),e.k0s()}}function q(i,d){1&i&&(e.j41(0,"span"),e.EFF(1,"Save"),e.k0s())}function ee(i,d){1&i&&(e.j41(0,"span"),e.EFF(1,"Update"),e.k0s())}function ae(i,d){if(1&i){const a=e.RV6();e.j41(0,"button",46),e.bIt("click",function(){e.eBV(a);const t=e.XpG();return e.Njj(t.save())}),e.nrm(1,"i",47),e.DNE(2,q,2,0,"span",4),e.DNE(3,ee,2,0,"span",4),e.k0s()}if(2&i){const a=e.XpG();e.Y8G("disabled",a.form.invalid),e.R7$(2),e.Y8G("ngIf",a.data.mode===a.EFormMode.ADD),e.R7$(1),e.Y8G("ngIf",a.data.mode===a.EFormMode.EDIT)}}function te(i,d){1&i&&e.nrm(0,"p-progressSpinner",48)}let oe=(()=>{class i{fb;ns;generalS;constantsS;dbMigrationS;authCS;monacoS;instanceS;eventCenterS;generalCS;userS;cd;data;loading={form:!1};EFormMode=l.X;form;subscriptions=[];formData;IEventData=c.K;id;BE_HOST_PORT=M.c.BE_HOST_PORT;DOCS_HOST_PORT=M.c.DOCS_HOST_PORT;instances=[];editorDbM;editorOptionsDBMigration={readOnly:!1,language:"typescript",contextmenu:!0};lastError;editorOptionsMonacoEditorModal={readOnly:!0,language:"json",contextmenu:!0};insertCodeModalC;viewDockerfileModelC;shouldLoadMonacoEditor=!1;monacoDecorations=[];tab;constructor(a,n,t,r,u,m,_,ne,ie,re,se,de){this.fb=a,this.ns=n,this.generalS=t,this.constantsS=r,this.dbMigrationS=u,this.authCS=m,this.monacoS=_,this.instanceS=ne,this.eventCenterS=ie,this.generalCS=re,this.userS=se,this.cd=de}ngOnInit(){var a=this;return(0,f.A)(function*(){a.createForm(),a.subscriptions.push(a.data.eventChannel.subscribe(function(){var n=(0,f.A)(function*(t){if(t)if(a.form.enable(),t.action===c.K.OPEN_FORM_IN_EDIT_MODE)yield a.editViewLoadData(),a.form.get("name").disable(),a.cd.detectChanges();else if(t.action===c.K.OPEN_FORM_IN_VIEW_MODE)yield a.editViewLoadData(),a.form.disable(),a.cd.detectChanges();else if(t.action===c.K.OPEN_FORM_IN_ADD_MODE){a.form.reset(),a.form.patchValue(t.data||{});const r=yield a.instanceS.getDefaultContent(a.BE_HOST_PORT,O.O.MIGRATION_SCRIPT).toPromise();a.editorOptionsDBMigration={readOnly:!1},a.generalCS.setValueInEditor(a,"editorDbM",r.data),a.cd.detectChanges()}});return function(t){return n.apply(this,arguments)}}()))})()}editViewLoadData(){var a=this;return(0,f.A)(function*(){const n=yield a.dbMigrationS.getById(a.data.formData._id).toPromise();a.form.reset(),a.form.patchValue(n.data),a.form.get("isScriptExecutedCalculated").setValue(a.data.formData.isScriptExecutedCalculated),a.generalCS.setValueInEditor(a,"editorDbM",n.data?.dbMigrationScriptCode||"")})()}createForm(){this.form=this.fb.group({name:[null,[s.k0.required]],order:[null,[s.k0.required]],label:[null,[s.k0.required]],dbMigrationTimeoutInMinutes:[null,[]],isScriptExecutedCalculated:[!1,[]],executedMigrationScripts:[!1,[]]})}showModal(){this.lastError=void 0,this.shouldLoadMonacoEditor=!0,setTimeout(()=>{$("#idDbMigrationForm").modal("show")},100)}hideModal(){$("#idDbMigrationForm").modal("hide")}save(){var a=this;return(0,f.A)(function*(){const n=a.form.getRawValue();let t;t=a.data.formData&&a.data.formData._id?(yield a.dbMigrationS.getById(a.data.formData._id).toPromise()).data:{};const r=Object.assign({},t,n);r.user=a.authCS.getUserId(),r.dbMigrationScriptCode=a.editorDbM.getValue();const u=(yield a.userS.getById(a.authCS.gUser._id).toPromise()).data,m={};m._id=u._id,m.executedMigrationScripts=u.executedMigrationScripts,m.executedMigrationScripts=m.executedMigrationScripts||{},m.executedMigrationScripts[r.name]=!!n.isScriptExecutedCalculated,yield a.userS.put(a.authCS.gUser._id,m,{select:E.GX._id}).toPromise();try{let _;a.loading.form=!0,a.lastError=void 0,a.monacoS.clearEditorDecorations(a.editorDbM,a.monacoDecorations),a.data.mode===l.X.ADD?_=yield a.dbMigrationS.post(r).toPromise():a.data.mode===l.X.EDIT&&(_=yield a.dbMigrationS.put(r._id,r,{select:E.GX._id}).toPromise()),a.ns.showSuccess(a.data.mode===l.X.ADD?a.constantsS.dbMigration.addSuccess:a.constantsS.dbMigration.editSuccess),a.data.eventChannel.emit({action:a.data.mode===l.X.ADD?c.K.SAVED:c.K.UPDATED,data:_}),a.eventCenterS.dbMigrationSavedAndUpdate.next(!0),a.loading.form=!1}catch(_){a.loading.form=!1,a.ns.showErrorFromResponse(_.error||_,"Unable to save database migration."),a.lastError=_.error,a.tab=a.tab||{},a.tab.axiosResponse={data:_.error},a.monacoS.highlightErrorInMonacoEditor(a.editorDbM,a.tab,"MainSandbox.ts",a.monacoDecorations)}a.cd.detectChanges()})()}resetForm(){this.formData=void 0,this.editorDbM&&this.editorDbM.getValue()&&this.editorDbM.setValue(""),this.monacoS.clearEditorDecorations(this.editorDbM,this.monacoDecorations),this.eventCenterS.dbMigration.detectChangesForm.next(Math.random())}showInsertCodeModel(){this.generalCS.messageReceivedFor=g.r.All,this.insertCodeModalC.showModal(p.Z.CodeFinderResultC)}editorGenerated(a){var n=this;return(0,f.A)(function*(){n.editorDbM=a,yield n.monacoS.loadSchemaEditorSettings(n.BE_HOST_PORT,n.authCS.getUserId(),null),n.monacoS.addSaveCodeKeyBinding(a,t=>{n.form.valid&&n.save()}),n.monacoS.addInsertCodeKeyBinding(a,t=>{n.generalCS.messageReceivedFor=g.r.All,n.data.mode!==l.X.VIEW&&n.insertCodeModalC.showModal(p.Z.DatabasesMigrationFormC)}),n.subscriptions.push(n.generalS.messageReceived.subscribe(t=>{t.type&&t.type===I.R.TEXT_COPIED&&t.componentName===p.Z.DatabasesMigrationFormC&&(n.monacoS.insertAtCursor(a,t.selectedText),n.insertCodeModalC.hideModal())}))})()}viewError(){this.viewDockerfileModelC.showModal(this.generalS.stringify(this.lastError),C.L.json)}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions),this.eventCenterS.dbMigrationSavedAndUpdate.next(!1)}static \u0275fac=function(n){return new(n||i)(e.rXU(s.ok),e.rXU(P.m),e.rXU(b.f),e.rXU(S.X),e.rXU(T.S),e.rXU(F.l),e.rXU(R.e),e.rXU(A.J),e.rXU(y.d),e.rXU(b.f),e.rXU(U.N),e.rXU(e.gRc))};static \u0275cmp=e.VBU({type:i,selectors:[["app-databases-migration-form"]],viewQuery:function(n,t){if(1&n&&(e.GBs(V,5),e.GBs(N,5)),2&n){let r;e.mGM(r=e.lsd())&&(t.insertCodeModalC=r.first),e.mGM(r=e.lsd())&&(t.viewDockerfileModelC=r.first)}},inputs:{data:"data"},decls:32,vars:14,consts:[["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idDbMigrationForm","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/docs/features/database-migration.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"],["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,"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",3,"keyup"],["class","mt-1px small",4,"ngIf"],["formControlName","label","name","label","spellcheck","false","type","text","placeholder","Please provide label",1,"form-control","form-control-sm"],["formControlName","order","name","order","spellcheck","false","type","number","placeholder","Please provide order",1,"form-control","form-control-sm"],["formControlName","dbMigrationTimeoutInMinutes","name","dbMigrationTimeoutInMinutes","spellcheck","false","type","number","placeholder","10",1,"form-control","form-control-sm"],[1,"fas","fa-lock","fa-fw","align-middle","text-warning","d-inline-block","mr-1","mt-1"],[1,"align-middle","mb-0","mt-1","ml-2"],["formControlName","isScriptExecutedCalculated","label","Script Executed",3,"binary"],[1,"mt-1px","small"],[1,"overflow-hidden",2,"height","calc(100vh - 206px)"],[3,"isSchemaEditor","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(n,t){1&n&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.DNE(4,X,3,0,"span",4),e.DNE(5,Y,3,0,"span",4),e.DNE(6,w,3,0,"span",4),e.j41(7,"div",5)(8,"button",6),e.bIt("click",function(){return t.hideModal()}),e.j41(9,"span",7),e.nrm(10,"i",8),e.k0s()(),e.j41(11,"span",9),e.bIt("click",function(){return t.showInsertCodeModel()}),e.nrm(12,"i",10),e.k0s(),e.j41(13,"a",11),e.nrm(14,"img",12),e.k0s()()(),e.j41(15,"div",13)(16,"p-tabView")(17,"p-tabPanel",14),e.DNE(18,Q,30,4,"div",4),e.k0s(),e.j41(19,"p-tabPanel",15),e.DNE(20,Z,2,2,"div",16),e.k0s()()(),e.j41(21,"div",17),e.DNE(22,z,2,0,"a",18),e.j41(23,"button",19),e.bIt("click",function(){return t.hideModal()}),e.nrm(24,"i",20),e.EFF(25," Close"),e.k0s(),e.DNE(26,ae,4,3,"button",21),e.k0s(),e.DNE(27,te,1,0,"p-progressSpinner",22),e.k0s()()(),e.nrm(28,"app-insert-code-modal",23,24)(30,"app-monaco-editor-modal",25,26)),2&n&&(e.R7$(4),e.Y8G("ngIf",t.data.mode===t.EFormMode.ADD),e.R7$(1),e.Y8G("ngIf",t.data.mode===t.EFormMode.VIEW),e.R7$(1),e.Y8G("ngIf",t.data.mode===t.EFormMode.EDIT),e.R7$(12),e.Y8G("ngIf",t.shouldLoadMonacoEditor),e.R7$(2),e.Y8G("ngIf",t.shouldLoadMonacoEditor),e.R7$(2),e.Y8G("ngIf",t.lastError),e.R7$(4),e.Y8G("ngIf",t.data.mode!==t.EFormMode.VIEW),e.R7$(1),e.Y8G("ngIf",t.loading.form),e.R7$(1),e.Y8G("frameId","idInsertCodeDbMig")("modalId","idInsertCodeDbMigForm")("docsHostPort",t.DOCS_HOST_PORT),e.R7$(2),e.Y8G("modalId","idMonacoEditorModalInSysMigration")("editorOptionsMonacoEditorModal",t.editorOptionsMonacoEditorModal)("modalTitle","Error info"))},dependencies:[s.qT,s.me,s.Q0,s.BC,s.cb,s.j4,s.JD,B.bT,k.U,j.V,L.A,x.p,h.JQ,h.Kp,K.m,G.Sc,W.J],encapsulation:2,changeDetection:0})}return i})()},7759:(v,D,o)=>{o.d(D,{k:()=>E});var f=o(7431),c=(o(7829),o(2508)),l=o(540);let E=(()=>{class M{static \u0275fac=function(p){return new(p||M)};static \u0275mod=l.$C({type:M});static \u0275inj=l.G2t({imports:[f.u,c.v]})}return M})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[9036],{2290:(Dt,P,l)=>{l.d(P,{d:()=>c});var d=l(467),t=l(540),s=l(8727),f=l(5046),C=l(7326),g=l(7376),R=l(5632),G=l(6645),Pt=l(6589),Rt=l(5312),U=l(9561),D=l(1325),L=l(123),S=l(6129),m=l(6708),x=l(7337),M=l(7237),v=l(1987),y=l(3966),O=l(7060),$=l(1626),w=l(5779),F=l(4341),k=l(177),X=l(6146),T=l(7645),B=l(7515),Y=l(8542),K=l(5430),V=l(3534);const W=["funManFormC"],Q=["cloneApiModalC"];function J(n,o){if(1&n){const e=t.RV6();t.j41(0,"span",20),t.bIt("click",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.edit())}),t.nrm(1,"i",21),t.k0s()}}function H(n,o){if(1&n){const e=t.RV6();t.j41(0,"span",22),t.bIt("click",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.clone())}),t.nrm(1,"i",23),t.k0s()}}function z(n,o){if(1&n){const e=t.RV6();t.j41(0,"span",24),t.bIt("click",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.removePermanentDialog())}),t.nrm(1,"i",25),t.k0s()}}function Z(n,o){if(1&n){const e=t.RV6();t.j41(0,"span")(1,"span",13),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.navigateToTreeView())}),t.nrm(2,"i",14),t.k0s(),t.j41(3,"span",15),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.add())}),t.nrm(4,"i",16),t.k0s(),t.DNE(5,J,2,0,"span",17),t.DNE(6,H,2,0,"span",18),t.DNE(7,z,2,0,"span",19),t.k0s()}if(2&n){const e=t.XpG();t.R7$(5),t.Y8G("ngIf",1===e.selectedRows.length),t.R7$(1),t.Y8G("ngIf",1===e.selectedRows.length),t.R7$(1),t.Y8G("ngIf",1===e.selectedRows.length)}}function q(n,o){if(1&n){const e=t.RV6();t.j41(0,"span",26)(1,"label",27)(2,"p-checkbox",28),t.bIt("ngModelChange",function(r){t.eBV(e);const p=t.XpG();return t.Njj(p.eventCenterS.group.apisRegex.allCustomApis=r)}),t.k0s()()()}if(2&n){const e=t.XpG();t.R7$(2),t.Y8G("ngModel",e.eventCenterS.group.apisRegex.allCustomApis)("binary",!0)}}function tt(n,o){if(1&n){const e=t.RV6();t.j41(0,"span",26)(1,"label",27)(2,"p-checkbox",28),t.bIt("ngModelChange",function(r){t.eBV(e);const p=t.XpG();return t.Njj(p.eventCenterS.filterInLog.apisRegex.allCustomApis=r)}),t.k0s()()()}if(2&n){const e=t.XpG();t.R7$(2),t.Y8G("ngModel",e.eventCenterS.filterInLog.apisRegex.allCustomApis)("binary",!0)}}function et(n,o){if(1&n&&(t.j41(0,"div")(1,"div",29),t.EFF(2),t.k0s()()),2&n){const e=t.XpG();t.R7$(2),t.JRh(e.constantsS.group.allCustomApisPermitted)}}function nt(n,o){1&n&&(t.j41(0,"th",39),t.nrm(1,"p-tableHeaderCheckbox"),t.k0s())}function st(n,o){1&n&&t.nrm(0,"th",37)}function it(n,o){1&n&&(t.j41(0,"th"),t.EFF(1,"Authorization"),t.k0s())}function ot(n,o){1&n&&t.nrm(0,"th")}function at(n,o){1&n&&t.nrm(0,"th",40)}function rt(n,o){if(1&n&&(t.j41(0,"tr"),t.DNE(1,nt,2,0,"th",35),t.DNE(2,st,1,0,"th",36),t.nrm(3,"th",37),t.j41(4,"th"),t.EFF(5,"Name"),t.k0s(),t.j41(6,"th"),t.EFF(7,"Path"),t.k0s(),t.DNE(8,it,2,0,"th",5),t.DNE(9,ot,1,0,"th",5),t.DNE(10,at,1,0,"th",38),t.k0s()),2&n){const e=t.XpG(2);t.R7$(1),t.Y8G("ngIf",e.showCheckbox),t.R7$(1),t.Y8G("ngIf",!e.isDependentOnGroup&&!e.isLPM&&!e.isFilterLogTable),t.R7$(6),t.Y8G("ngIf",!e.isDependentOnGroup&&!e.isLPM&&!e.isFilterLogTable),t.R7$(1),t.Y8G("ngIf",e.isLPM),t.R7$(1),t.Y8G("ngIf",!e.isDependentOnGroup&&!e.isLPM&&!e.isFilterLogTable)}}function lt(n,o){if(1&n&&(t.j41(0,"td"),t.nrm(1,"p-tableCheckbox",46),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(1),t.Y8G("value",e)("pSelectableRow",e)}}function ct(n,o){if(1&n&&(t.j41(0,"td",47)(1,"span"),t.EFF(2),t.k0s()()),2&n){const e=t.XpG().rowIndex;t.R7$(2),t.JRh(e+1)}}function pt(n,o){1&n&&t.nrm(0,"i",48)}function dt(n,o){1&n&&t.nrm(0,"i",49)}function _t(n,o){1&n&&(t.j41(0,"span",53),t.EFF(1,"AM-User"),t.k0s())}function mt(n,o){1&n&&(t.j41(0,"span",54),t.EFF(1,"No-Access"),t.k0s())}function ut(n,o){1&n&&(t.j41(0,"span",55),t.EFF(1,"Public"),t.k0s())}function ft(n,o){1&n&&(t.j41(0,"span",54),t.EFF(1,"DB-User"),t.k0s())}function gt(n,o){1&n&&(t.j41(0,"span",54),t.EFF(1,"AWS"),t.k0s())}function ht(n,o){1&n&&(t.j41(0,"span",54),t.EFF(1,"Azure"),t.k0s())}function Ct(n,o){1&n&&(t.j41(0,"span",54),t.EFF(1,"Google"),t.k0s())}function vt(n,o){if(1&n&&(t.j41(0,"td"),t.DNE(1,_t,2,0,"span",50),t.DNE(2,mt,2,0,"span",51),t.DNE(3,ut,2,0,"span",52),t.DNE(4,ft,2,0,"span",51),t.DNE(5,gt,2,0,"span",51),t.DNE(6,ht,2,0,"span",51),t.DNE(7,Ct,2,0,"span",51),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(1),t.Y8G("ngIf",e.hasAmAuth),t.R7$(1),t.Y8G("ngIf",e.noAccess),t.R7$(1),t.Y8G("ngIf",e.isPublic),t.R7$(1),t.Y8G("ngIf",e.hasAmDBAuth),t.R7$(1),t.Y8G("ngIf",e.hasAwsAuth),t.R7$(1),t.Y8G("ngIf",e.hasAzureAuth),t.R7$(1),t.Y8G("ngIf",e.hasGoogleAuth)}}function Tt(n,o){if(1&n){const e=t.RV6();t.j41(0,"div")(1,"label",56)(2,"p-checkbox",57),t.bIt("ngModelChange",function(r){t.eBV(e);const p=t.XpG(2).$implicit;return t.Njj(p.saveResponseInLog=r)})("ngModelChange",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.saveResponseInLogCheckData())})("click",function(r){t.eBV(e);const p=t.XpG(4);return t.Njj(p.generalS.stopPropagation(r))}),t.k0s()()()}if(2&n){const e=t.XpG(2).$implicit;t.R7$(2),t.Y8G("ngModel",e.saveResponseInLog)("binary",!0)}}function b(n,o){if(1&n&&(t.j41(0,"td"),t.DNE(1,Tt,3,2,"div",5),t.k0s()),2&n){const e=t.XpG().$implicit,i=t.XpG(2);t.R7$(1),t.Y8G("ngIf",(null==i.selectedRows?null:i.selectedRows.indexOf(e))>=0)}}const At=function(){return["/api-info/api-testing/testing"]},j=function(n,o,e){return{at_category:n,at_user:o,at_api:e}};function N(n,o){if(1&n&&(t.j41(0,"td")(1,"div",47)(2,"a",58),t.bIt("click",function(i){return i.stopPropagation()}),t.nrm(3,"i",59),t.k0s()()()),2&n){const e=t.XpG().$implicit,i=t.XpG(2);t.R7$(2),t.Y8G("routerLink",t.lJ4(2,At))("queryParams",t.sMw(3,j,i.EAPICategory.CUSTOM_APIS,i.authCS.getUserId(),e._id))}}const It=function(n,o,e,i){return{get:n,put:o,post:e,delete:i}};function Gt(n,o){if(1&n&&(t.j41(0,"tr",41),t.DNE(1,lt,2,2,"td",5),t.DNE(2,ct,3,1,"td",42),t.j41(3,"td")(4,"span",43),t.EFF(5),t.k0s()(),t.j41(6,"td")(7,"span"),t.EFF(8),t.k0s(),t.DNE(9,pt,1,0,"i",44),t.DNE(10,dt,1,0,"i",45),t.k0s(),t.j41(11,"td"),t.EFF(12),t.k0s(),t.DNE(13,vt,8,7,"td",5),t.DNE(14,b,2,1,"td",5),t.DNE(15,N,4,7,"td",5),t.k0s()),2&n){const e=o.$implicit,i=t.XpG(2);t.Y8G("pSelectableRow",e),t.R7$(1),t.Y8G("ngIf",i.showCheckbox),t.R7$(1),t.Y8G("ngIf",!i.isDependentOnGroup&&!i.isLPM&&!i.isFilterLogTable),t.R7$(2),t.Y8G("ngClass",t.ziG(12,It,e.requestMethod===i.ERequestMethod.GET,e.requestMethod===i.ERequestMethod.PUT,e.requestMethod===i.ERequestMethod.POST,e.requestMethod===i.ERequestMethod.DELETE)),t.R7$(1),t.JRh(e.requestMethod),t.R7$(3),t.JRh(e.name),t.R7$(1),t.Y8G("ngIf",e.runOnNativeProcess),t.R7$(1),t.Y8G("ngIf",e.enableCaching),t.R7$(2),t.JRh(e.path),t.R7$(1),t.Y8G("ngIf",!i.isDependentOnGroup&&!i.isLPM&&!i.isFilterLogTable),t.R7$(1),t.Y8G("ngIf",i.isLPM),t.R7$(1),t.Y8G("ngIf",!i.isDependentOnGroup&&!i.isLPM&&!i.isFilterLogTable)}}function Et(n,o){1&n&&t.nrm(0,"p-progressSpinner",60)}function a(n,o){if(1&n){const e=t.RV6();t.j41(0,"div",30)(1,"p-table",31),t.bIt("selectionChange",function(r){t.eBV(e);const p=t.XpG();return t.Njj(p.selectedRows=r)})("selectionChange",function(r){t.eBV(e);const p=t.XpG();return t.Njj(p.functionSelected(r))})("dblclick",function(r){t.eBV(e);const p=t.XpG();return t.Njj(p.dblClickCustomAPIsGrid(r))}),t.DNE(2,rt,11,5,"ng-template",32),t.DNE(3,Gt,16,17,"ng-template",33),t.k0s(),t.DNE(4,Et,1,0,"p-progressSpinner",34),t.k0s()}if(2&n){const e=t.XpG();t.R7$(1),t.Y8G("selectionMode","multiple")("metaKeySelection",e.metaKeySelection)("selection",e.selectedRows)("dataKey",e.gridKey)("scrollable",!0)("value",e.rows),t.R7$(3),t.Y8G("ngIf",e.loading.grid)}}let c=(()=>{class n{functionS;generalS;notificationS;navigationCS;authCS;constantsS;eventCenterS;cd;router;http;confirmationService;showCheckbox=!0;isReadOnly=!1;isDependentOnGroup=!1;isLPM=!1;isFilterLogTable=!1;metaKeySelection=!0;loading={grid:!1};subscriptions=[];data={mode:f.X.ADD,eventChannel:new t.bkB,formData:void 0};rows=[];rowsMap={};rowsMapName={};showAll=!1;selectedRows=[];gridKey=G.GX._id;EUserType=D.l;BE_HOST_PORT=Rt.c.BE_HOST_PORT;EAPICategory=R.O;ERequestMethod=Pt.mO;FunManFormC;cloneApiModalC;constructor(e,i,r,p,A,_,u,I,E,h,St){this.functionS=e,this.generalS=i,this.notificationS=r,this.navigationCS=p,this.authCS=A,this.constantsS=_,this.eventCenterS=u,this.cd=I,this.router=E,this.http=h,this.confirmationService=St}ngOnInit(){var e=this;this.eventCenterS.functions.selectedFunctions.next([]),this.loadGridData(),this.subscriptions.push(this.data.eventChannel.subscribe(i=>{this.FunManFormC.hideModal(),this.loadGridData()})),this.isDependentOnGroup&&this.subscriptions.push(this.eventCenterS.group.selectedGroups.subscribe(function(){var i=(0,d.A)(function*(r){r.length&&(yield e.loadGridData())});return function(r){return i.apply(this,arguments)}}())),this.isLPM&&(this.subscriptions.push(this.eventCenterS.filterInLog.refreshGrid.subscribe(i=>{i&&this.loadGridData()})),this.subscriptions.push(this.eventCenterS.filterInLog.functionIds.subscribe((0,d.A)(function*(){e.loadGridData()})))),this.generalS.setNewTitle("API Maker - Custom APIs")}navigateToTreeView(){var e=this;return(0,d.A)(function*(){yield e.router.navigate(["api-info","custom-api","functions-tree"])})()}loadGridData(){var e=this;if(this.isDependentOnGroup&&0===this.eventCenterS.group.selectedGroups.value.length)return void this.resetGridAndUrl();this.loading.grid=!0;const i={find:{user:this.authCS.getUserId(),active:!0},select:{name:1,label:1,path:1,active:1,requestMethod:1,runOnNativeProcess:1,enableCaching:1,apiAccessType:1},sort:{path:1}};this.showAll&&delete i.find.active,this.subscriptions.push(this.functionS.query(i,"getAuthData=true").subscribe(function(){var r=(0,d.A)(function*(p){p.success?(e.selectedRows=[],e.rows=p.data||[],e.rowsMap=g.keyBy(e.rows,G.GX._id),e.rowsMapName=g.keyBy(e.rows,G.dG.name)):e.resetGridAndUrl();const A=e.navigationCS.getQueryParam(C.F.custom_api)||(e.isFilterLogTable?e.eventCenterS.filterInLog.functionIds.value.join(","):e.eventCenterS.group.customApiIds.value.join(","))||(e.isDependentOnGroup&&e.eventCenterS.group.selectedGroups.value[0].queryParams.customApiNames?e.eventCenterS.group.selectedGroups.value[0].queryParams.customApiNames.join(","):"");if(A){const _=A.split(","),u=g.intersection(g.keys(e.rowsMap),_),I=[];for(const h of u)e.rowsMap[h]&&I.push(e.rowsMap[h]);const E=[];for(const h of u)e.rowsMap[h]&&E.push(e.rowsMap[h]);e.selectedRows=E,e.eventCenterS.functions.selectedFunctions.next(I)}if(e.isLPM&&e.eventCenterS.group.selectedGroups.value[0]?.queryParams?.customApiNames?.length){const _=e.eventCenterS.group.selectedGroups.value[0];for(const u of _?.queryParams?.customApiNames)e.rowsMapName[u]&&(e.rowsMapName[u].saveResponseInLog=_.functionsLog?.[u]?.saveResponseInLog||!1);e.setResDataInEventCenter()}if(e.isDependentOnGroup){e.selectedRows=[];for(const _ of e.eventCenterS.group.customApiIds.value)e.rowsMap[_]&&e.selectedRows.push(e.rowsMap[_])}if(e.isFilterLogTable){e.selectedRows=[];for(const _ of e.eventCenterS.filterInLog.functionIds.value)e.rowsMap[_]&&e.selectedRows.push(e.rowsMap[_])}e.loading.grid=!1,e.cd.detectChanges()});return function(p){return r.apply(this,arguments)}}()))}add(){this.data.formData=void 0,this.data.mode=f.X.ADD,this.data.eventChannel.emit({action:s.K.OPEN_FORM_IN_ADD_MODE}),this.FunManFormC.showModal()}view(){this.data.formData=this.rowsMap[this.getSelectedRowId()],this.data.mode=f.X.VIEW,this.data.eventChannel.emit({action:s.K.OPEN_FORM_IN_VIEW_MODE}),this.FunManFormC.showModal()}edit(){this.data.formData=this.rowsMap[this.getSelectedRowId()],this.data.mode=f.X.EDIT,this.data.eventChannel.emit({action:s.K.OPEN_FORM_IN_EDIT_MODE}),this.FunManFormC.showModal()}removePermanentDialog(){var i,e=this;this.confirmationService.confirm({message:this.constantsS.functions.removePermanentConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(i=(0,d.A)(function*(){yield e.removePermanent()}),function(){return i.apply(this,arguments)})})}removePermanent(){var e=this;return(0,d.A)(function*(){if(e.getSelectedRowId()){e.loading.grid=!0;try{const i=`${e.getSelectedRowGuid()}:${e.authCS.gUser._id}`,r=yield e.functionS.permanentDelete(i).toPromise();r.success?(e.notificationS.showSuccess(e.constantsS.functions.removePermanent),e.resetGridAndUrl(),e.loadGridData()):e.notificationS.showErrorFromResponse(r,e.constantsS.functions.removePermanentError)}catch{e.notificationS.showError(e.constantsS.functions.removePermanentError)}e.loading.grid=!1}})()}resetDependents(){var e=this;return(0,d.A)(function*(){e.eventCenterS.functions.selectedFunctions.next([]),yield e.navigationCS.setQueryParam(C.F.custom_api,null)})()}functionSelected(e){var i=this;return(0,d.A)(function*(){i.selectedRows=e,i.resetDependents().then();for(const r of i.rows)-1===i.selectedRows.indexOf(r)&&(r.saveResponseInLog=!1);i.fillData().then(),i.getSelectedRowId()?i.generalS.setNewTitle(i.rowsMap[i.getSelectedRowId()].name,R.O.CUSTOM_APIS):i.generalS.setNewTitle("API Maker - Custom APIs")})()}resetGridAndUrl(){this.rows=[],this.selectedRows=[],this.rowsMap={},this.eventCenterS.functions.selectedFunctions.next([])}fillData(){var e=this;return(0,d.A)(function*(){if(!e.selectedRows||Array.isArray(e.selectedRows)&&!e.selectedRows.length)return yield e.navigationCS.setQueryParam(C.F.custom_api,""),e.eventCenterS.group.customApis.next([]),e.eventCenterS.functions.selectedFunctions.next([]),e.eventCenterS.group.customApiIds.next([]),void e.eventCenterS.group.customApis.next([]);if(e.isDependentOnGroup||e.isFilterLogTable){const i=g.map(e.selectedRows,"_id");e.eventCenterS.group.customApiIds.next(i),e.eventCenterS.group.customApis.next(e.selectedRows),e.isFilterLogTable&&(e.eventCenterS.filterInLog.functionIds.next(i),e.eventCenterS.filterInLog.functions.next(e.selectedRows))}else{const i=e.getSelectedRowId(),r=(yield e.functionS.getById(i).toPromise()).data;r._id?(yield e.navigationCS.setQueryParam(C.F.custom_api,r._id),e.eventCenterS.functions.selectedFunctions.next([r])):e.resetDependents().then()}})()}getSelectedRowId(){return this.selectedRows[0]?._id}getSelectedRowGuid(){return this.selectedRows[0]?.guid}dblClickCustomAPIsGrid(e){setTimeout(()=>{this.edit()},10)}setResDataInEventCenter(){this.isDependentOnGroup&&(this.eventCenterS.group.customApis.next(this.selectedRows),this.eventCenterS.group.selectedFunctions.next(this.selectedRows)),this.isFilterLogTable&&this.eventCenterS.filterInLog.functions.next(this.selectedRows)}saveResponseInLogCheckData(){this.setResDataInEventCenter()}clone(){var e=this;return(0,d.A)(function*(){yield e.cloneApiModalC.showModal(e.getSelectedRowId(),null,function(){var i=(0,d.A)(function*(r){r&&(yield e.loadGridData()),e.cd.detectChanges()});return function(r){return i.apply(this,arguments)}}())})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}EModelApiPaths=U.bd;static \u0275fac=function(i){return new(i||n)(t.rXU(L.a),t.rXU(S.f),t.rXU(m.m),t.rXU(x.$),t.rXU(M.l),t.rXU(v.X),t.rXU(y.d),t.rXU(t.gRc),t.rXU(O.Ix),t.rXU($.Qq),t.rXU(w.td))};static \u0275cmp=t.VBU({type:n,selectors:[["app-custom-api-grid"]],viewQuery:function(i,r){if(1&i&&(t.GBs(W,5),t.GBs(Q,5)),2&i){let p;t.mGM(p=t.lsd())&&(r.FunManFormC=p.first),t.mGM(p=t.lsd())&&(r.cloneApiModalC=p.first)}},inputs:{showCheckbox:"showCheckbox",isReadOnly:["IsReadOnly","isReadOnly"],isDependentOnGroup:["IsDependentOnGroup","isDependentOnGroup"],isLPM:"isLPM",isFilterLogTable:"isFilterLogTable",metaKeySelection:"metaKeySelection"},decls:17,vars:9,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header"],["src","/assets/images/icons/custom.svg","alt","Custom API",1,"fa-fw","mr-1"],["href","https://docs.apimaker.dev/v1/docs/apis-all/custom-apis/user-created-custom-api.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"float-right","fa-fw","ml-3","mr-1",2,"font-size","25px"],[4,"ngIf"],["class","float-right cursor-pointer","tooltipPosition","left","pTooltip","All Custom APIs",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],["class","h-100",4,"ngIf"],[3,"data"],["funManFormC",""],[3,"modalId","hostAndPort","modelApiPaths"],["cloneApiModalC",""],[1,"float-right","cursor-pointer","ml-3",3,"click"],["tooltipPosition","left","pTooltip","Tree View","tooltipPosition","left",1,"fas","fa-sitemap","text-yellow","fa-fw","fa-rotate-270"],["tooltipPosition","left","pTooltip","Add New","tooltipPosition","left",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"],["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"],["tooltipPosition","left","pTooltip","All Custom APIs",1,"float-right","cursor-pointer"],[1,"mb-0","mt--2px"],[3,"ngModel","binary","ngModelChange"],[1,"p-2","text-center","text-success"],[1,"h-100"],["styleClass","p-datatable-striped custom-api-grid-height","scrollHeight","flex",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange","dblclick"],["pTemplate","header"],["pTemplate","body"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],["style","width: 45px;",4,"ngIf"],["style","width: 80px;",4,"ngIf"],[2,"width","80px"],["style","width: 60px;",4,"ngIf"],[2,"width","45px"],[2,"width","60px"],[3,"pSelectableRow"],["class","text-center",4,"ngIf"],[1,"small","font-weight-bold","d-inline-block","mr-2",3,"ngClass"],["pTooltip","Running on native process","class","fas fa-radiation ml-2 text-danger",4,"ngIf"],["pTooltip","Caching enabled","class","fas fa-fighter-jet ml-2 text-warning",4,"ngIf"],[3,"value","pSelectableRow"],[1,"text-center"],["pTooltip","Running on native process",1,"fas","fa-radiation","ml-2","text-danger"],["pTooltip","Caching enabled",1,"fas","fa-fighter-jet","ml-2","text-warning"],["class","d-inline-block small font-weight-bold font-monospaced ml-2",4,"ngIf"],["class","d-inline-block small font-weight-bold font-monospaced text-success ml-2",4,"ngIf"],["class","d-inline-block small font-weight-bold font-monospaced text-warning ml-2",4,"ngIf"],[1,"d-inline-block","small","font-weight-bold","font-monospaced","ml-2"],[1,"d-inline-block","small","font-weight-bold","font-monospaced","text-success","ml-2"],[1,"d-inline-block","small","font-weight-bold","font-monospaced","text-warning","ml-2"],[1,"m-0","vertical-align-sub"],["label","Save Response In Log",3,"ngModel","binary","ngModelChange","click"],["href","javascript:",1,"btn","btn-xsm-custom","mr-3",3,"routerLink","queryParams","click"],[1,"fas","fa-vial","text-info","fa-fw","test-tube","pt-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(i,r){1&i&&(t.j41(0,"div",0)(1,"div",1)(2,"span"),t.nrm(3,"img",2),t.EFF(4," Custom APIs"),t.k0s(),t.j41(5,"a",3),t.nrm(6,"img",4),t.k0s(),t.DNE(7,Z,8,3,"span",5),t.DNE(8,q,3,2,"span",6),t.DNE(9,tt,3,2,"span",6),t.k0s(),t.j41(10,"div",7),t.DNE(11,et,3,1,"div",5),t.DNE(12,a,5,7,"div",8),t.k0s()(),t.nrm(13,"app-w-fun-man-form",9,10)(15,"app-clone-api-modal",11,12)),2&i&&(t.R7$(7),t.Y8G("ngIf",!r.isReadOnly),t.R7$(1),t.Y8G("ngIf",r.isDependentOnGroup),t.R7$(1),t.Y8G("ngIf",r.isFilterLogTable),t.R7$(2),t.Y8G("ngIf",r.eventCenterS.group.apisRegex.allCustomApis||r.eventCenterS.filterInLog.apisRegex.allCustomApis),t.R7$(1),t.Y8G("ngIf",!(r.eventCenterS.group.apisRegex.allCustomApis||r.eventCenterS.filterInLog.apisRegex.allCustomApis)),t.R7$(1),t.Y8G("data",r.data),t.R7$(2),t.Y8G("modalId","idCloneCustomAPIGrid")("hostAndPort",r.BE_HOST_PORT)("modelApiPaths",r.EModelApiPaths.CUSTOM_APIS))},dependencies:[O.Wk,F.BC,F.vS,k.YU,k.bT,X.K,T.XI,w.Ei,T.d5,T.S9,T.nA,B.p,Y.m,K.Sc,V.r],styles:[".custom-tab-title[_ngcontent-%COMP%]{padding:.5rem}.min-width[_ngcontent-%COMP%], .none[_ngcontent-%COMP%], .delete[_ngcontent-%COMP%], .post[_ngcontent-%COMP%], .put[_ngcontent-%COMP%], .get[_ngcontent-%COMP%]{width:45px;display:inline-block}.get[_ngcontent-%COMP%]{color:var(--accent-success)}.put[_ngcontent-%COMP%]{color:var(--brand-secondary)}.post[_ngcontent-%COMP%]{color:var(--accent-warning)}.delete[_ngcontent-%COMP%]{color:var(--accent-error)}.none[_ngcontent-%COMP%]{color:var(--accent-success--shade--three)}.width-160[_ngcontent-%COMP%]{width:160px}"]})}return n})()},9036:(Dt,P,l)=>{l.r(P),l.d(P,{FunctionManM:()=>Et});var d=l(7060),t=l(177),s=l(540),f=l(5779);let U=(()=>{class a{static \u0275fac=function(o){return new(o||a)};static \u0275mod=s.$C({type:a});static \u0275inj=s.G2t({imports:[t.MD,f.Gg,f.Gg]})}return a})();var D=l(2173),L=l(7431),S=l(2290),m=l(467),x=l(8727),M=l(5046),v=l(7326),y=l(5632),O=l(6645),$=l(6589),w=l(5312),F=l(9561),k=l(1325),X=l(123),T=l(6129),B=l(6708),Y=l(7337),K=l(7237),V=l(1987),W=l(3966),Q=l(1626),J=l(6146),H=l(9861),z=l(7515),Z=l(8542),q=l(3534);const tt=["funManFormC"],et=["cloneApiModalC"];function nt(a,c){if(1&a){const n=s.RV6();s.j41(0,"span",21),s.bIt("click",function(){s.eBV(n);const e=s.XpG();return s.Njj(e.edit())}),s.nrm(1,"i",22),s.k0s()}}function st(a,c){if(1&a){const n=s.RV6();s.j41(0,"span",23),s.bIt("click",function(){s.eBV(n);const e=s.XpG();return s.Njj(e.clone())}),s.nrm(1,"i",24),s.k0s()}}function it(a,c){if(1&a){const n=s.RV6();s.j41(0,"span",25),s.bIt("click",function(){s.eBV(n);const e=s.XpG();return s.Njj(e.removePermanentDialog())}),s.nrm(1,"i",26),s.k0s()}}function ot(a,c){if(1&a&&(s.j41(0,"div"),s.EFF(1),s.k0s()),2&a){const n=s.XpG().$implicit;s.R7$(1),s.JRh(n.label)}}function at(a,c){1&a&&s.nrm(0,"i",40)}function rt(a,c){1&a&&s.nrm(0,"i",41)}function lt(a,c){1&a&&(s.j41(0,"span",42),s.EFF(1,"AM-User"),s.k0s())}function ct(a,c){1&a&&(s.j41(0,"span",43),s.EFF(1,"No-Access"),s.k0s())}function pt(a,c){1&a&&(s.j41(0,"span",44),s.EFF(1,"Public"),s.k0s())}function dt(a,c){1&a&&(s.j41(0,"span",43),s.EFF(1,"DB-User"),s.k0s())}function _t(a,c){1&a&&(s.j41(0,"span",43),s.EFF(1,"AWS"),s.k0s())}function mt(a,c){1&a&&(s.j41(0,"span",43),s.EFF(1,"Azure"),s.k0s())}function ut(a,c){1&a&&(s.j41(0,"span",43),s.EFF(1,"Google"),s.k0s())}const ft=function(a,c,n,o){return{get:a,put:c,post:n,delete:o}},gt=function(){return["/api-info/api-testing/testing"]},ht=function(a,c,n){return{at_category:a,at_user:c,at_api:n}};function Ct(a,c){if(1&a&&(s.j41(0,"div")(1,"div")(2,"table",29)(3,"tr")(4,"td",30)(5,"span",31),s.EFF(6),s.k0s(),s.j41(7,"span")(8,"span"),s.EFF(9),s.k0s(),s.DNE(10,at,1,0,"i",32),s.DNE(11,rt,1,0,"i",33),s.k0s()(),s.j41(12,"td",30),s.EFF(13),s.k0s(),s.j41(14,"td"),s.DNE(15,lt,2,0,"span",34),s.DNE(16,ct,2,0,"span",35),s.DNE(17,pt,2,0,"span",36),s.DNE(18,dt,2,0,"span",35),s.DNE(19,_t,2,0,"span",35),s.DNE(20,mt,2,0,"span",35),s.DNE(21,ut,2,0,"span",35),s.k0s(),s.j41(22,"td",37)(23,"a",38),s.bIt("click",function(o){return o.stopPropagation()}),s.nrm(24,"i",39),s.k0s()()()()()()),2&a){const n=s.XpG().$implicit,o=s.XpG();s.R7$(5),s.Y8G("ngClass",s.ziG(15,ft,n.data.requestMethod===o.ERequestMethod.GET,n.data.requestMethod===o.ERequestMethod.PUT,n.data.requestMethod===o.ERequestMethod.POST,n.data.requestMethod===o.ERequestMethod.DELETE)),s.R7$(1),s.JRh(n.data.requestMethod),s.R7$(3),s.JRh(n.data.name),s.R7$(1),s.Y8G("ngIf",n.data.runOnNativeProcess),s.R7$(1),s.Y8G("ngIf",n.data.enableCaching),s.R7$(2),s.JRh(n.data.path),s.R7$(2),s.Y8G("ngIf",n.data.hasAmAuth),s.R7$(1),s.Y8G("ngIf",n.data.noAccess),s.R7$(1),s.Y8G("ngIf",n.data.isPublic),s.R7$(1),s.Y8G("ngIf",n.data.hasAmDBAuth),s.R7$(1),s.Y8G("ngIf",n.data.hasAwsAuth),s.R7$(1),s.Y8G("ngIf",n.data.hasAzureAuth),s.R7$(1),s.Y8G("ngIf",n.data.hasGoogleAuth),s.R7$(2),s.Y8G("routerLink",s.lJ4(20,gt))("queryParams",s.sMw(21,ht,o.EAPICategory.CUSTOM_APIS,o.authCS.getUserId(),n.data._id))}}function vt(a,c){if(1&a&&(s.j41(0,"div",27),s.DNE(1,ot,2,1,"div",28),s.DNE(2,Ct,25,25,"div",28),s.k0s()),2&a){const n=c.$implicit;s.R7$(1),s.Y8G("ngIf",null==n.children?null:n.children.length),s.R7$(1),s.Y8G("ngIf",!(null!=n.children&&n.children.length))}}function Tt(a,c){1&a&&s.nrm(0,"p-progressSpinner",45)}let b=(()=>{class a{functionS;generalS;notificationS;navigationCS;authCS;constantsS;eventCenterS;cd;router;http;confirmationService;loading={grid:!1};subscriptions=[];data={mode:M.X.ADD,eventChannel:new s.bkB,formData:void 0};gridKey=O.GX._id;EUserType=k.l;BE_HOST_PORT=w.c.BE_HOST_PORT;EAPICategory=y.O;EQueryParam=v.F;leafSelected=!1;selectedRows=void 0;treeNodes=[];allTreeItemsMap={};FunManFormC;cloneApiModalC;constructor(n,o,e,i,r,p,A,_,u,I,E){this.functionS=n,this.generalS=o,this.notificationS=e,this.navigationCS=i,this.authCS=r,this.constantsS=p,this.eventCenterS=A,this.cd=_,this.router=u,this.http=I,this.confirmationService=E}ngOnInit(){this.loadTreeData(),this.subscriptions.push(this.data.eventChannel.subscribe(n=>{this.FunManFormC.hideModal(),this.loadTreeData()})),this.generalS.setNewTitle("API Maker - Custom APIs")}navigateToGridView(){var n=this;return(0,m.A)(function*(){yield n.router.navigate(["api-info","custom-api","functions"])})()}loadTreeData(){var n=this;return(0,m.A)(function*(){const o=(yield n.functionS.getCustomAPITree().toPromise()).data;for(const i of o)n.generalS.convertKTreeItemToPrimeNGTreeItem(i);const e={};n.generalS.getMapOfAllItems(e,o);for(const i of Object.keys(e)){const r=n.allTreeItemsMap[i];r&&(e[i].expanded=r.expanded)}n.treeNodes=o,n.allTreeItemsMap=e,n.loading.grid=!1,n.cd.detectChanges()})()}add(){this.data.formData=void 0,this.data.mode=M.X.ADD,this.data.eventChannel.emit({action:x.K.OPEN_FORM_IN_ADD_MODE}),this.FunManFormC.showModal()}edit(){this.leafSelected&&(this.data.formData=this.selectedRows[0].data,this.data.mode=M.X.EDIT,this.data.eventChannel.emit({action:x.K.OPEN_FORM_IN_EDIT_MODE}),this.FunManFormC.showModal())}removePermanentDialog(){var o,n=this;this.leafSelected&&this.confirmationService.confirm({message:this.constantsS.functions.removePermanentConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(o=(0,m.A)(function*(){yield n.removePermanent()}),function(){return o.apply(this,arguments)})})}removePermanent(){var n=this;return(0,m.A)(function*(){if(n.getSelectedRowId()){n.loading.grid=!0;try{const o=`${n.getSelectedRowGuid()}:${n.authCS.gUser._id}`,e=yield n.functionS.permanentDelete(o).toPromise();e.success?(n.notificationS.showSuccess(n.constantsS.functions.removePermanent),n.resetGridAndUrl(),yield n.loadTreeData(),n.leafSelected=!1):n.notificationS.showErrorFromResponse(e,n.constantsS.functions.removePermanentError)}catch{n.notificationS.showError(n.constantsS.functions.removePermanentError)}n.loading.grid=!1}})()}resetDependents(){var n=this;return(0,m.A)(function*(){yield n.navigationCS.setQueryParam(v.F.custom_api,null)})()}functionSelected(){var n=this;return(0,m.A)(function*(){n.resetDependents(),n.fillData(),n.getSelectedRowId()?n.generalS.setNewTitle(n.selectedRows[0].data.name,y.O.CUSTOM_APIS):n.generalS.setNewTitle("API Maker - Custom APIs"),n.leafSelected=!(!n.getSelectedRowId()||n.selectedRows[0].children?.length)})()}resetGridAndUrl(){this.selectedRows=void 0}fillData(){var n=this;return(0,m.A)(function*(){if(!n.selectedRows)return void(yield n.navigationCS.setQueryParam(v.F.custom_api,""));const o=n.getSelectedRowId();o?yield n.navigationCS.setQueryParam(v.F.custom_api,o):n.resetDependents()})()}getSelectedRowId(){return this.selectedRows?.[0]?.data?._id}getSelectedRowGuid(){return this.selectedRows?.[0]?.data?.guid}dblClickCustomAPIsGrid(){setTimeout(()=>{this.edit()},10)}clone(){var n=this;return(0,m.A)(function*(){yield n.cloneApiModalC.showModal(n.getSelectedRowId(),null,function(){var o=(0,m.A)(function*(e){e&&(yield n.loadTreeData()),n.cd.detectChanges()});return function(e){return o.apply(this,arguments)}}())})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}ERequestMethod=$.mO;EModelApiPaths=F.bd;static \u0275fac=function(o){return new(o||a)(s.rXU(X.a),s.rXU(T.f),s.rXU(B.m),s.rXU(Y.$),s.rXU(K.l),s.rXU(V.X),s.rXU(W.d),s.rXU(s.gRc),s.rXU(d.Ix),s.rXU(Q.Qq),s.rXU(f.td))};static \u0275cmp=s.VBU({type:a,selectors:[["app-custom-api-tree"]],viewQuery:function(o,e){if(1&o&&(s.GBs(tt,5),s.GBs(et,5)),2&o){let i;s.mGM(i=s.lsd())&&(e.FunManFormC=i.first),s.mGM(i=s.lsd())&&(e.cloneApiModalC=i.first)}},decls:24,vars:10,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header"],["src","/assets/images/icons/custom.svg","alt","Custom API",1,"fa-fw","mr-1"],["href","https://docs.apimaker.dev/v1/docs/apis-all/custom-apis/user-created-custom-api.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"float-right","fa-fw","ml-3","mr-1",2,"font-size","25px"],[1,"float-right","cursor-pointer","ml-3",3,"click"],["pTooltip","Grid View",1,"fas","fa-table","text-yellow","fa-fw"],["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","pTooltip","Edit",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","pTooltip","Clone",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","pTooltip","Permanent Delete",3,"click",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],[1,"h-100"],["scrollHeight","calc(100vh - 82px)","selectionMode","multiple",1,"w-full",3,"value","selection","selectionChange","dblclick"],["pTemplate","default"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"data"],["funManFormC",""],[3,"modalId","hostAndPort","modelApiPaths"],["cloneApiModalC",""],["pTooltip","Edit",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw"],["pTooltip","Clone",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-copy","text-light","fa-fw"],["pTooltip","Permanent Delete",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"far","fa-trash-alt","fa-fw","text-danger"],[1,"w-100","prevent-text-selection","cursor-pointer"],[4,"ngIf"],[1,"w-100"],[2,"width","40%"],[1,"small","font-weight-bold","d-inline-block","mr-2",3,"ngClass"],["pTooltip","Running on native process","class","fas fa-radiation ml-2 text-danger",4,"ngIf"],["pTooltip","Caching enabled","class","fas fa-fighter-jet ml-2 text-warning",4,"ngIf"],["class","d-inline-block small font-weight-bold font-monospaced ml-2",4,"ngIf"],["class","d-inline-block small font-weight-bold font-monospaced text-success ml-2",4,"ngIf"],["class","d-inline-block small font-weight-bold font-monospaced text-warning ml-2",4,"ngIf"],[2,"text-align","right"],["href","javascript:",1,"btn","btn-xsm-custom","mr-3",3,"routerLink","queryParams","click"],[1,"fas","fa-vial","text-info","fa-fw","test-tube","pt-1"],["pTooltip","Running on native process",1,"fas","fa-radiation","ml-2","text-danger"],["pTooltip","Caching enabled",1,"fas","fa-fighter-jet","ml-2","text-warning"],[1,"d-inline-block","small","font-weight-bold","font-monospaced","ml-2"],[1,"d-inline-block","small","font-weight-bold","font-monospaced","text-success","ml-2"],[1,"d-inline-block","small","font-weight-bold","font-monospaced","text-warning","ml-2"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(o,e){1&o&&(s.j41(0,"div",0)(1,"div",1)(2,"span"),s.nrm(3,"img",2),s.EFF(4," Custom APIs"),s.k0s(),s.j41(5,"a",3),s.nrm(6,"img",4),s.k0s(),s.j41(7,"span")(8,"span",5),s.bIt("click",function(){return e.navigateToGridView()}),s.nrm(9,"i",6),s.k0s(),s.j41(10,"span",7),s.bIt("click",function(){return e.add()}),s.nrm(11,"i",8),s.k0s(),s.DNE(12,nt,2,0,"span",9),s.DNE(13,st,2,0,"span",10),s.DNE(14,it,2,0,"span",11),s.k0s()(),s.j41(15,"div",12)(16,"div",13)(17,"p-tree",14),s.bIt("selectionChange",function(r){return e.selectedRows=r})("dblclick",function(){return e.dblClickCustomAPIsGrid()})("selectionChange",function(){return e.functionSelected()}),s.DNE(18,vt,3,2,"ng-template",15),s.k0s(),s.DNE(19,Tt,1,0,"p-progressSpinner",16),s.k0s()()(),s.nrm(20,"app-w-fun-man-form",17,18)(22,"app-clone-api-modal",19,20)),2&o&&(s.R7$(12),s.Y8G("ngIf",e.leafSelected),s.R7$(1),s.Y8G("ngIf",e.leafSelected),s.R7$(1),s.Y8G("ngIf",e.leafSelected),s.R7$(3),s.Y8G("value",e.treeNodes)("selection",e.selectedRows),s.R7$(2),s.Y8G("ngIf",e.loading.grid),s.R7$(1),s.Y8G("data",e.data),s.R7$(2),s.Y8G("modalId","idCloneCustomAPITree")("hostAndPort",e.BE_HOST_PORT)("modelApiPaths",e.EModelApiPaths.CUSTOM_APIS))},dependencies:[d.Wk,t.YU,t.bT,J.K,f.Ei,H.PH,z.p,Z.m,q.r],styles:[".custom-tab-title[_ngcontent-%COMP%]{padding:.5rem}.min-width[_ngcontent-%COMP%], .none[_ngcontent-%COMP%], .delete[_ngcontent-%COMP%], .post[_ngcontent-%COMP%], .put[_ngcontent-%COMP%], .get[_ngcontent-%COMP%]{width:45px;display:inline-block}.get[_ngcontent-%COMP%]{color:var(--accent-success)}.put[_ngcontent-%COMP%]{color:var(--brand-secondary)}.post[_ngcontent-%COMP%]{color:var(--accent-warning)}.delete[_ngcontent-%COMP%]{color:var(--accent-error)}.none[_ngcontent-%COMP%]{color:var(--accent-success--shade--three)}.width-160[_ngcontent-%COMP%]{width:160px}"]})}return a})();var At=l(3488);const It=[{path:"",redirectTo:"functions-tree",pathMatch:"full"},{path:"functions-tree",component:(()=>{class a{route;constructor(n){this.route=n}ngOnInit(){}static \u0275fac=function(o){return new(o||a)(s.rXU(d.nX))};static \u0275cmp=s.VBU({type:a,selectors:[["app-fun-man-layout-tree"]],decls:2,vars:0,consts:[[1,"pt-1","pl-1","pr-1"]],template:function(o,e){1&o&&(s.j41(0,"div",0),s.nrm(1,"app-custom-api-tree"),s.k0s())},dependencies:[b],encapsulation:2})}return a})(),canActivate:[D.Z]},{path:"functions",component:(()=>{class a{route;mode="tree";constructor(n){this.route=n}ngOnInit(){this.route.queryParams.subscribe(n=>{n.mode&&(this.mode=n.mode)})}static \u0275fac=function(o){return new(o||a)(s.rXU(d.nX))};static \u0275cmp=s.VBU({type:a,selectors:[["app-fun-man-layout"]],decls:2,vars:1,consts:[[1,"pt-1","pl-1","pr-1"],[3,"showCheckbox"]],template:function(o,e){1&o&&(s.j41(0,"div",0),s.nrm(1,"app-custom-api-grid",1),s.k0s()),2&o&&(s.R7$(1),s.Y8G("showCheckbox",!1))},dependencies:[S.d],encapsulation:2})}return a})(),canActivate:[D.Z]}];let Et=(()=>{class a{static \u0275fac=function(o){return new(o||a)};static \u0275mod=s.$C({type:a});static \u0275inj=s.G2t({imports:[d.iI.forChild(It),L.u,At.d,U]})}return a})()}}]);
|