@sava-info-systems/api-maker-with-extensions 1.21.0 → 2.0.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.
Files changed (32) hide show
  1. package/.dockerignore +30 -0
  2. package/Dockerfile +51 -0
  3. package/dist/292.885b93c9e38b775a.js +1 -0
  4. package/dist/4575.a69d55da7b6dc4de.js +1 -0
  5. package/dist/5765.2b640be5d177d794.js +1 -0
  6. package/dist/index.html +1 -1
  7. package/dist/main.d876eb0d409c6ceb.js +1 -0
  8. package/dist/{runtime.3ae0fcbd4f474bdc.js → runtime.553fe0e243e03c0a.js} +1 -1
  9. package/main.js +1 -1
  10. package/package-sandbox.json +57 -0
  11. package/package.json +6 -6
  12. package/sandbox.js +1 -0
  13. package/src/public/dist-db-masters/browser/index.html +1 -1
  14. package/src/public/dist-db-masters/browser/{main-TKPYMFGX.js → main-EZ3HQGMX.js} +46 -46
  15. package/src/public/dist-db-masters/browser/{main-SJKWFBLX.js → main-LJ7WAVMT.js} +35 -35
  16. package/src/tools/.github/copilot-instructions.md +1342 -0
  17. package/src/tools/local-client.js +1 -1
  18. package/dist/292.a9b9c6aef70ca8b4.js +0 -1
  19. package/dist/4575.f2056aa18e4cc778.js +0 -1
  20. package/dist/5765.1994a5bd001c1c55.js +0 -1
  21. package/dist/main.38591a8dafb94708.js +0 -1
  22. package/sandbox/.dockerignore +0 -2
  23. package/sandbox/Dockerfile +0 -34
  24. package/sandbox/package.json +0 -27
  25. package/sandbox/sandbox.js +0 -1
  26. package/src/public/dist-db-masters/browser/main-ANQDJFEO.js +0 -139
  27. package/src/public/dist-db-masters/browser/main-E76YJGUR.js +0 -139
  28. package/src/public/dist-db-masters/browser/main-HGRBZVEX.js +0 -139
  29. package/src/public/dist-db-masters/browser/main-LWHKTSAI.js +0 -139
  30. /package/{sandbox/assets → src}/schema-types/store-types.js +0 -0
  31. /package/{sandbox/assets → src}/schema-types/types.js +0 -0
  32. /package/{sandbox/src/utils → src/sutils}/VmInit.js +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[5765],{37595:(Et,P,l)=>{l.d(P,{G:()=>c});var d=l(15861),t=l(94946),n=l(33157),f=l(90328),C=l(56212),h=l(6990),I=l(45085),S=l(51162),St=l(96925),Zt=l(20553),F=l(19394),Z=l(60921),L=l(67629),y=l(77240),u=l(99961),E=l(92189),M=l(95852),T=l(27414),w=l(32915),D=l(77664),Q=l(69862),O=l(85219),R=l(60095),G=l(96814),J=l(87797),v=l(95431),Y=l(97680),q=l(33259),k=l(38057),K=l(21137);const B=["funManFormC"],W=["cloneApiModalC"];function H(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"span",20),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(2);return t.KtG(r.edit())}),t._UZ(1,"i",21),t.qZA()}}function j(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"span",22),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(2);return t.KtG(r.clone())}),t._UZ(1,"i",23),t.qZA()}}function $(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"span",24),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(2);return t.KtG(r.removePermanentDialog())}),t._UZ(1,"i",25),t.qZA()}}function z(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"span")(1,"span",13),t.NdJ("click",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.navigateToTreeView())}),t._UZ(2,"i",14),t.qZA(),t.TgZ(3,"span",15),t.NdJ("click",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.add())}),t._UZ(4,"i",16),t.qZA(),t.YNc(5,H,2,0,"span",17),t.YNc(6,j,2,0,"span",18),t.YNc(7,$,2,0,"span",19),t.qZA()}if(2&i){const e=t.oxw();t.xp6(5),t.Q6J("ngIf",1===e.selectedRows.length),t.xp6(1),t.Q6J("ngIf",1===e.selectedRows.length),t.xp6(1),t.Q6J("ngIf",1===e.selectedRows.length)}}function V(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"span",26)(1,"p-checkbox",27),t.NdJ("ngModelChange",function(r){t.CHM(e);const p=t.oxw();return t.KtG(p.eventCenterS.group.apisRegex.allCustomApis=r)}),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngModel",e.eventCenterS.group.apisRegex.allCustomApis)("binary",!0)}}function X(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"span",26)(1,"p-checkbox",27),t.NdJ("ngModelChange",function(r){t.CHM(e);const p=t.oxw();return t.KtG(p.eventCenterS.filterInLog.apisRegex.allCustomApis=r)}),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngModel",e.eventCenterS.filterInLog.apisRegex.allCustomApis)("binary",!0)}}function tt(i,s){if(1&i&&(t.TgZ(0,"div")(1,"div",28),t._uU(2),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(e.constantsS.group.allCustomApisPermitted)}}function et(i,s){1&i&&(t.TgZ(0,"th",38),t._UZ(1,"p-tableHeaderCheckbox"),t.qZA())}function nt(i,s){1&i&&t._UZ(0,"th",36)}function it(i,s){1&i&&(t.TgZ(0,"th"),t._uU(1,"Authorization"),t.qZA())}function ot(i,s){1&i&&t._UZ(0,"th")}function st(i,s){1&i&&t._UZ(0,"th",39)}function at(i,s){if(1&i&&(t.TgZ(0,"tr"),t.YNc(1,et,2,0,"th",34),t.YNc(2,nt,1,0,"th",35),t._UZ(3,"th",36),t.TgZ(4,"th"),t._uU(5,"Name"),t.qZA(),t.TgZ(6,"th"),t._uU(7,"Path"),t.qZA(),t.YNc(8,it,2,0,"th",5),t.YNc(9,ot,1,0,"th",5),t.YNc(10,st,1,0,"th",37),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.showCheckbox),t.xp6(1),t.Q6J("ngIf",!e.isDependentOnGroup&&!e.isLPM&&!e.isFilterLogTable),t.xp6(6),t.Q6J("ngIf",!e.isDependentOnGroup&&!e.isLPM&&!e.isFilterLogTable),t.xp6(1),t.Q6J("ngIf",e.isLPM),t.xp6(1),t.Q6J("ngIf",!e.isDependentOnGroup&&!e.isLPM&&!e.isFilterLogTable)}}function rt(i,s){if(1&i&&(t.TgZ(0,"td"),t._UZ(1,"p-tableCheckbox",47),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("value",e)("pSelectableRow",e)}}function lt(i,s){if(1&i&&(t.TgZ(0,"td",48)(1,"span"),t._uU(2),t.qZA()()),2&i){const e=t.oxw().rowIndex;t.xp6(2),t.Oqu(e+1)}}function ct(i,s){1&i&&(t.TgZ(0,"span",49),t._uU(1,"Native"),t.qZA())}function pt(i,s){1&i&&(t.TgZ(0,"span",50),t._uU(1,"Caching"),t.qZA())}function dt(i,s){1&i&&(t.TgZ(0,"span",51),t._uU(1,"B. Schema"),t.qZA())}function _t(i,s){1&i&&(t.TgZ(0,"span",52),t._uU(1,"Q. Schema"),t.qZA())}function ut(i,s){1&i&&(t.TgZ(0,"span",56),t._uU(1,"AM-User"),t.qZA())}function mt(i,s){1&i&&(t.TgZ(0,"span",57),t._uU(1,"No-Access"),t.qZA())}function ft(i,s){1&i&&(t.TgZ(0,"span",58),t._uU(1,"Public"),t.qZA())}function gt(i,s){1&i&&(t.TgZ(0,"span",57),t._uU(1,"DB-User"),t.qZA())}function ht(i,s){1&i&&(t.TgZ(0,"span",57),t._uU(1,"AWS"),t.qZA())}function Ct(i,s){1&i&&(t.TgZ(0,"span",57),t._uU(1,"Azure"),t.qZA())}function Tt(i,s){1&i&&(t.TgZ(0,"span",57),t._uU(1,"Google"),t.qZA())}function vt(i,s){if(1&i&&(t.TgZ(0,"td"),t.YNc(1,ut,2,0,"span",53),t.YNc(2,mt,2,0,"span",54),t.YNc(3,ft,2,0,"span",55),t.YNc(4,gt,2,0,"span",54),t.YNc(5,ht,2,0,"span",54),t.YNc(6,Ct,2,0,"span",54),t.YNc(7,Tt,2,0,"span",54),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",e.hasAmAuth),t.xp6(1),t.Q6J("ngIf",e.noAccess),t.xp6(1),t.Q6J("ngIf",e.isPublic),t.xp6(1),t.Q6J("ngIf",e.hasAmDBAuth),t.xp6(1),t.Q6J("ngIf",e.hasAwsAuth),t.xp6(1),t.Q6J("ngIf",e.hasAzureAuth),t.xp6(1),t.Q6J("ngIf",e.hasGoogleAuth)}}function At(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"label",59)(2,"p-checkbox",60),t.NdJ("ngModelChange",function(r){t.CHM(e);const p=t.oxw(2).$implicit;return t.KtG(p.saveResponseInLog=r)})("ngModelChange",function(){t.CHM(e);const r=t.oxw(4);return t.KtG(r.saveResponseInLogCheckData())})("click",function(r){t.CHM(e);const p=t.oxw(4);return t.KtG(p.generalS.stopPropagation(r))}),t.qZA()()()}if(2&i){const e=t.oxw(2).$implicit;t.xp6(2),t.Q6J("ngModel",e.saveResponseInLog)("binary",!0)}}function U(i,s){if(1&i&&(t.TgZ(0,"td"),t.YNc(1,At,3,2,"div",5),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(null==o.selectedRows?null:o.selectedRows.indexOf(e))>=0)}}const xt=function(){return["/api-info/api-testing/testing"]},b=function(i,s,e){return{at_category:i,at_user:s,at_api:e}};function N(i,s){if(1&i&&(t.TgZ(0,"td")(1,"div",48)(2,"a",61),t.NdJ("click",function(o){return o.stopPropagation()}),t._UZ(3,"i",62),t.qZA()()()),2&i){const e=t.oxw().$implicit,o=t.oxw(2);t.xp6(2),t.Q6J("routerLink",t.DdM(2,xt))("queryParams",t.kEZ(3,b,o.EAPICategory.CUSTOM_APIS,o.authCS.getUserId(),e._id))}}const Mt=function(i,s,e,o){return{get:i,put:s,post:e,delete:o}};function yt(i,s){if(1&i&&(t.TgZ(0,"tr",40),t.YNc(1,rt,2,2,"td",5),t.YNc(2,lt,3,1,"td",41),t.TgZ(3,"td")(4,"span",42),t._uU(5),t.qZA()(),t.TgZ(6,"td")(7,"span"),t._uU(8),t.qZA(),t.YNc(9,ct,2,0,"span",43),t.YNc(10,pt,2,0,"span",44),t.YNc(11,dt,2,0,"span",45),t.YNc(12,_t,2,0,"span",46),t.qZA(),t.TgZ(13,"td"),t._uU(14),t.qZA(),t.YNc(15,vt,8,7,"td",5),t.YNc(16,U,2,1,"td",5),t.YNc(17,N,4,7,"td",5),t.qZA()),2&i){const e=s.$implicit,o=t.oxw(2);t.Q6J("pSelectableRow",e),t.xp6(1),t.Q6J("ngIf",o.showCheckbox),t.xp6(1),t.Q6J("ngIf",!o.isDependentOnGroup&&!o.isLPM&&!o.isFilterLogTable),t.xp6(2),t.Q6J("ngClass",t.l5B(14,Mt,e.requestMethod===o.ERequestMethod.GET,e.requestMethod===o.ERequestMethod.PUT,e.requestMethod===o.ERequestMethod.POST,e.requestMethod===o.ERequestMethod.DELETE)),t.xp6(1),t.Oqu(e.requestMethod),t.xp6(3),t.Oqu(e.name),t.xp6(1),t.Q6J("ngIf",e.runOnNativeProcess),t.xp6(1),t.Q6J("ngIf",e.enableCaching),t.xp6(1),t.Q6J("ngIf",e.hasReqBodySchema),t.xp6(1),t.Q6J("ngIf",e.hasReqQueryParametersSchema),t.xp6(2),t.Oqu(e.path),t.xp6(1),t.Q6J("ngIf",!o.isDependentOnGroup&&!o.isLPM&&!o.isFilterLogTable),t.xp6(1),t.Q6J("ngIf",o.isLPM),t.xp6(1),t.Q6J("ngIf",!o.isDependentOnGroup&&!o.isLPM&&!o.isFilterLogTable)}}function Pt(i,s){1&i&&t._UZ(0,"p-progressSpinner",63)}function a(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"div",29)(1,"p-table",30),t.NdJ("selectionChange",function(r){t.CHM(e);const p=t.oxw();return t.KtG(p.selectedRows=r)})("selectionChange",function(r){t.CHM(e);const p=t.oxw();return t.KtG(p.functionSelected(r))})("dblclick",function(r){t.CHM(e);const p=t.oxw();return t.KtG(p.dblClickCustomAPIsGrid(r))}),t.YNc(2,at,11,5,"ng-template",31),t.YNc(3,yt,18,19,"ng-template",32),t.qZA(),t.YNc(4,Pt,1,0,"p-progressSpinner",33),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("selectionMode","multiple")("metaKeySelection",e.metaKeySelection)("selection",e.selectedRows)("dataKey",e.gridKey)("scrollable",!0)("value",e.rows),t.xp6(3),t.Q6J("ngIf",e.loading.grid)}}let c=(()=>{class i{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.D.ADD,eventChannel:new t.vpe,formData:void 0};rows=[];rowsMap={};rowsMapName={};showAll=!1;selectedRows=[];gridKey=S.iH._id;EUserType=Z.d;BE_HOST_PORT=Zt.N.BE_HOST_PORT;EAPICategory=I.R;ERequestMethod=St.Yp;FunManFormC;cloneApiModalC;constructor(e,o,r,p,_,m,A,x,g,wt,Dt){this.functionS=e,this.generalS=o,this.notificationS=r,this.navigationCS=p,this.authCS=_,this.constantsS=m,this.eventCenterS=A,this.cd=x,this.router=g,this.http=wt,this.confirmationService=Dt}ngOnInit(){var e=this;this.eventCenterS.functions.selectedFunctions.next([]),this.loadGridData(),this.subscriptions.push(this.data.eventChannel.subscribe(o=>{this.FunManFormC.hideModal(),this.loadGridData()})),this.isDependentOnGroup&&this.subscriptions.push(this.eventCenterS.group.selectedGroups.subscribe(function(){var o=(0,d.Z)(function*(r){r.length&&(yield e.loadGridData())});return function(r){return o.apply(this,arguments)}}())),(this.isFilterLogTable||this.isLPM)&&this.subscriptions.push(this.eventCenterS.filterInLog.refreshGrid.subscribe(o=>{o&&this.loadGridData()})),this.isLPM&&this.subscriptions.push(this.eventCenterS.filterInLog.functionIds.subscribe((0,d.Z)(function*(){e.loadGridData()}))),this.generalS.setNewTitle("API Maker - Custom APIs")}navigateToTreeView(){var e=this;return(0,d.Z)(function*(){yield e.router.navigate(["api-info","custom-api","functions-tree"])})()}loadGridData(){var e=this;this.isDependentOnGroup&&0===this.eventCenterS.group.selectedGroups.value.length?this.resetGridAndUrl():(this.loading.grid=!0,this.subscriptions.push(this.functionS.getFunctionsAsAPI().subscribe(function(){var o=(0,d.Z)(function*(r){r.success?(e.selectedRows=[],e.rows=r.data||[],e.rowsMap=h.keyBy(e.rows,S.iH._id),e.rowsMapName=h.keyBy(e.rows,S.eb.name)):e.resetGridAndUrl();const p=e.navigationCS.getQueryParam(C.p.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(p){const _=p.split(","),m=h.intersection(h.keys(e.rowsMap),_),A=[];for(const g of m)e.rowsMap[g]&&A.push(e.rowsMap[g]);const x=[];for(const g of m)e.rowsMap[g]&&x.push(e.rowsMap[g]);e.selectedRows=x,e.eventCenterS.functions.selectedFunctions.next(A)}if(e.isLPM&&e.eventCenterS.group.selectedGroups.value[0]?.queryParams?.customApiNames?.length){const _=e.eventCenterS.group.selectedGroups.value[0];for(const m of _?.queryParams?.customApiNames)e.rowsMapName[m]&&(e.rowsMapName[m].saveResponseInLog=_.functionsLog?.[m]?.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(r){return o.apply(this,arguments)}}())))}add(){this.data.formData=void 0,this.data.mode=f.D.ADD,this.data.eventChannel.emit({action:n.F.OPEN_FORM_IN_ADD_MODE}),this.FunManFormC.showModal()}view(){this.data.formData=this.rowsMap[this.getSelectedRowId()],this.data.mode=f.D.VIEW,this.data.eventChannel.emit({action:n.F.OPEN_FORM_IN_VIEW_MODE}),this.FunManFormC.showModal()}edit(){this.data.formData=this.rowsMap[this.getSelectedRowId()],this.data.mode=f.D.EDIT,this.data.eventChannel.emit({action:n.F.OPEN_FORM_IN_EDIT_MODE}),this.FunManFormC.showModal()}removePermanentDialog(){var o,e=this;this.confirmationService.confirm({message:this.constantsS.functions.removePermanentConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(o=(0,d.Z)(function*(){yield e.removePermanent()}),function(){return o.apply(this,arguments)})})}removePermanent(){var e=this;return(0,d.Z)(function*(){if(e.getSelectedRowId()){e.loading.grid=!0;try{const o=`${e.getSelectedRowGuid()}:${e.authCS.gUser._id}`,r=yield e.functionS.permanentDelete(o).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.Z)(function*(){e.eventCenterS.functions.selectedFunctions.next([]),yield e.navigationCS.setQueryParam(C.p.custom_api,null)})()}functionSelected(e){var o=this;return(0,d.Z)(function*(){o.selectedRows=e,o.resetDependents().then();for(const r of o.rows)-1===o.selectedRows.indexOf(r)&&(r.saveResponseInLog=!1);o.fillData().then(),o.getSelectedRowId()?o.generalS.setNewTitle(o.rowsMap[o.getSelectedRowId()].name,I.R.CUSTOM_APIS):o.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.Z)(function*(){if(!e.selectedRows||Array.isArray(e.selectedRows)&&!e.selectedRows.length)return yield e.navigationCS.setQueryParam(C.p.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 o=h.map(e.selectedRows,"_id");e.eventCenterS.group.customApiIds.next(o),e.eventCenterS.group.customApis.next(e.selectedRows),e.isFilterLogTable&&(e.eventCenterS.filterInLog.functionIds.next(o),e.eventCenterS.filterInLog.functions.next(e.selectedRows))}else{const o=e.getSelectedRowId(),r=(yield e.functionS.getById(o).toPromise()).data;r._id?(yield e.navigationCS.setQueryParam(C.p.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.Z)(function*(){yield e.cloneApiModalC.showModal(e.getSelectedRowId(),null,function(){var o=(0,d.Z)(function*(r){r&&(yield e.loadGridData()),e.cd.detectChanges()});return function(r){return o.apply(this,arguments)}}())})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}EModelApiPaths=F.k4;static \u0275fac=function(o){return new(o||i)(t.Y36(L.d),t.Y36(y.b),t.Y36(u.W),t.Y36(E.S),t.Y36(M.D),t.Y36(T.L),t.Y36(w.u),t.Y36(t.sBO),t.Y36(D.F0),t.Y36(Q.eN),t.Y36(O.YP))};static \u0275cmp=t.Xpm({type:i,selectors:[["app-custom-api-grid"]],viewQuery:function(o,r){if(1&o&&(t.Gf(B,5),t.Gf(W,5)),2&o){let p;t.iGM(p=t.CRH())&&(r.FunManFormC=p.first),t.iGM(p=t.CRH())&&(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"],[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"],["tooltipPosition","left","pTooltip","Running on native process","class","ml-2 grid-pill-custom-api text-danger border",4,"ngIf"],["tooltipPosition","left","pTooltip","Caching enabled","class","ml-2 grid-pill-custom-api text-warning border",4,"ngIf"],["tooltipPosition","left","pTooltip","It has request body schema","class","ml-2 grid-pill-custom-api text-muted border",4,"ngIf"],["tooltipPosition","left","pTooltip","It has request query parameters schema","class","ml-2 grid-pill-custom-api text-muted border",4,"ngIf"],[3,"value","pSelectableRow"],[1,"text-center"],["tooltipPosition","left","pTooltip","Running on native process",1,"ml-2","grid-pill-custom-api","text-danger","border"],["tooltipPosition","left","pTooltip","Caching enabled",1,"ml-2","grid-pill-custom-api","text-warning","border"],["tooltipPosition","left","pTooltip","It has request body schema",1,"ml-2","grid-pill-custom-api","text-muted","border"],["tooltipPosition","left","pTooltip","It has request query parameters schema",1,"ml-2","grid-pill-custom-api","text-muted","border"],["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(o,r){1&o&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span"),t._UZ(3,"img",2),t._uU(4," Custom APIs"),t.qZA(),t.TgZ(5,"a",3),t._UZ(6,"img",4),t.qZA(),t.YNc(7,z,8,3,"span",5),t.YNc(8,V,2,2,"span",6),t.YNc(9,X,2,2,"span",6),t.qZA(),t.TgZ(10,"div",7),t.YNc(11,tt,3,1,"div",5),t.YNc(12,a,5,7,"div",8),t.qZA()(),t._UZ(13,"app-w-fun-man-form",9,10)(15,"app-clone-api-modal",11,12)),2&o&&(t.xp6(7),t.Q6J("ngIf",!r.isReadOnly),t.xp6(1),t.Q6J("ngIf",r.isDependentOnGroup),t.xp6(1),t.Q6J("ngIf",r.isFilterLogTable),t.xp6(2),t.Q6J("ngIf",r.eventCenterS.group.apisRegex.allCustomApis||r.eventCenterS.filterInLog.apisRegex.allCustomApis),t.xp6(1),t.Q6J("ngIf",!(r.eventCenterS.group.apisRegex.allCustomApis||r.eventCenterS.filterInLog.apisRegex.allCustomApis)),t.xp6(1),t.Q6J("data",r.data),t.xp6(2),t.Q6J("modalId","idCloneCustomAPIGrid")("hostAndPort",r.BE_HOST_PORT)("modelApiPaths",r.EModelApiPaths.CUSTOM_APIS))},dependencies:[D.rH,R.JJ,R.On,G.mk,G.O5,J.s,v.iA,O.jx,v.Ei,v.UA,v.Mo,Y.G,q.u,k.XZ,K.u],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 i})()},95765:(Et,P,l)=>{l.r(P),l.d(P,{FunctionManM:()=>Pt});var d=l(77664),t=l(96814),n=l(94946),f=l(85219);let F=(()=>{class a{static \u0275fac=function(s){return new(s||a)};static \u0275mod=n.oAB({type:a});static \u0275inj=n.cJS({imports:[t.ez,f.m8,f.m8]})}return a})();var Z=l(63726),L=l(17017),y=l(37595),u=l(15861),E=l(33157),M=l(90328),T=l(56212),w=l(45085),D=l(51162),Q=l(96925),O=l(20553),R=l(19394),G=l(60921),J=l(67629),v=l(77240),Y=l(99961),q=l(92189),k=l(95852),K=l(27414),B=l(32915),W=l(69862),H=l(87797),j=l(91396),$=l(97680),z=l(33259),V=l(21137);const X=["funManFormC"],tt=["cloneApiModalC"];function et(a,c){if(1&a){const i=n.EpF();n.TgZ(0,"span",21),n.NdJ("click",function(){n.CHM(i);const e=n.oxw();return n.KtG(e.edit())}),n._UZ(1,"i",22),n.qZA()}}function nt(a,c){if(1&a){const i=n.EpF();n.TgZ(0,"span",23),n.NdJ("click",function(){n.CHM(i);const e=n.oxw();return n.KtG(e.clone())}),n._UZ(1,"i",24),n.qZA()}}function it(a,c){if(1&a){const i=n.EpF();n.TgZ(0,"span",25),n.NdJ("click",function(){n.CHM(i);const e=n.oxw();return n.KtG(e.removePermanentDialog())}),n._UZ(1,"i",26),n.qZA()}}function ot(a,c){if(1&a&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&a){const i=n.oxw().$implicit;n.xp6(1),n.Oqu(i.label)}}function st(a,c){1&a&&(n.TgZ(0,"span",42),n._uU(1,"Native"),n.qZA())}function at(a,c){1&a&&(n.TgZ(0,"span",43),n._uU(1,"Caching"),n.qZA())}function rt(a,c){1&a&&(n.TgZ(0,"span",44),n._uU(1,"B. Schema"),n.qZA())}function lt(a,c){1&a&&(n.TgZ(0,"span",45),n._uU(1,"Q. Schema"),n.qZA())}function ct(a,c){1&a&&(n.TgZ(0,"span",46),n._uU(1,"AM-User"),n.qZA())}function pt(a,c){1&a&&(n.TgZ(0,"span",47),n._uU(1,"No-Access"),n.qZA())}function dt(a,c){1&a&&(n.TgZ(0,"span",48),n._uU(1,"Public"),n.qZA())}function _t(a,c){1&a&&(n.TgZ(0,"span",47),n._uU(1,"DB-User"),n.qZA())}function ut(a,c){1&a&&(n.TgZ(0,"span",47),n._uU(1,"AWS"),n.qZA())}function mt(a,c){1&a&&(n.TgZ(0,"span",47),n._uU(1,"Azure"),n.qZA())}function ft(a,c){1&a&&(n.TgZ(0,"span",47),n._uU(1,"Google"),n.qZA())}const gt=function(a,c,i,s){return{get:a,put:c,post:i,delete:s}},ht=function(){return["/api-info/api-testing/testing"]},Ct=function(a,c,i){return{at_category:a,at_user:c,at_api:i}};function Tt(a,c){if(1&a&&(n.TgZ(0,"div")(1,"div")(2,"table",29)(3,"tr")(4,"td",30)(5,"span",31),n._uU(6),n.qZA(),n.TgZ(7,"span")(8,"span"),n._uU(9),n.qZA(),n.YNc(10,st,2,0,"span",32),n.YNc(11,at,2,0,"span",33),n.YNc(12,rt,2,0,"span",34),n.YNc(13,lt,2,0,"span",35),n.qZA()(),n.TgZ(14,"td",30),n._uU(15),n.qZA(),n.TgZ(16,"td"),n.YNc(17,ct,2,0,"span",36),n.YNc(18,pt,2,0,"span",37),n.YNc(19,dt,2,0,"span",38),n.YNc(20,_t,2,0,"span",37),n.YNc(21,ut,2,0,"span",37),n.YNc(22,mt,2,0,"span",37),n.YNc(23,ft,2,0,"span",37),n.qZA(),n.TgZ(24,"td",39)(25,"a",40),n.NdJ("click",function(s){return s.stopPropagation()}),n._UZ(26,"i",41),n.qZA()()()()()()),2&a){const i=n.oxw().$implicit,s=n.oxw();n.xp6(5),n.Q6J("ngClass",n.l5B(17,gt,i.data.requestMethod===s.ERequestMethod.GET,i.data.requestMethod===s.ERequestMethod.PUT,i.data.requestMethod===s.ERequestMethod.POST,i.data.requestMethod===s.ERequestMethod.DELETE)),n.xp6(1),n.Oqu(i.data.requestMethod),n.xp6(3),n.Oqu(i.data.name),n.xp6(1),n.Q6J("ngIf",i.data.runOnNativeProcess),n.xp6(1),n.Q6J("ngIf",i.data.enableCaching),n.xp6(1),n.Q6J("ngIf",i.data.hasReqBodySchema),n.xp6(1),n.Q6J("ngIf",i.data.hasReqQueryParametersSchema),n.xp6(2),n.Oqu(i.data.path),n.xp6(2),n.Q6J("ngIf",i.data.hasAmAuth),n.xp6(1),n.Q6J("ngIf",i.data.noAccess),n.xp6(1),n.Q6J("ngIf",i.data.isPublic),n.xp6(1),n.Q6J("ngIf",i.data.hasAmDBAuth),n.xp6(1),n.Q6J("ngIf",i.data.hasAwsAuth),n.xp6(1),n.Q6J("ngIf",i.data.hasAzureAuth),n.xp6(1),n.Q6J("ngIf",i.data.hasGoogleAuth),n.xp6(2),n.Q6J("routerLink",n.DdM(22,ht))("queryParams",n.kEZ(23,Ct,s.EAPICategory.CUSTOM_APIS,s.authCS.getUserId(),i.data._id))}}function vt(a,c){if(1&a&&(n.TgZ(0,"div",27),n.YNc(1,ot,2,1,"div",28),n.YNc(2,Tt,27,27,"div",28),n.qZA()),2&a){const i=c.$implicit;n.xp6(1),n.Q6J("ngIf",null==i.children?null:i.children.length),n.xp6(1),n.Q6J("ngIf",!(null!=i.children&&i.children.length))}}function At(a,c){1&a&&n._UZ(0,"p-progressSpinner",49)}let U=(()=>{class a{functionS;generalS;notificationS;navigationCS;authCS;constantsS;eventCenterS;cd;router;http;confirmationService;loading={grid:!1};subscriptions=[];data={mode:M.D.ADD,eventChannel:new n.vpe,formData:void 0};gridKey=D.iH._id;EUserType=G.d;BE_HOST_PORT=O.N.BE_HOST_PORT;EAPICategory=w.R;EQueryParam=T.p;leafSelected=!1;selectedRows=void 0;treeNodes=[];allTreeItemsMap={};FunManFormC;cloneApiModalC;constructor(i,s,e,o,r,p,_,m,A,x,g){this.functionS=i,this.generalS=s,this.notificationS=e,this.navigationCS=o,this.authCS=r,this.constantsS=p,this.eventCenterS=_,this.cd=m,this.router=A,this.http=x,this.confirmationService=g}ngOnInit(){this.loadTreeData(),this.subscriptions.push(this.data.eventChannel.subscribe(i=>{this.FunManFormC.hideModal(),this.loadTreeData()})),this.generalS.setNewTitle("API Maker - Custom APIs")}navigateToGridView(){var i=this;return(0,u.Z)(function*(){yield i.router.navigate(["api-info","custom-api","functions"])})()}loadTreeData(){var i=this;return(0,u.Z)(function*(){const s=(yield i.functionS.getCustomAPITree().toPromise()).data;for(const o of s)i.generalS.convertKTreeItemToPrimeNGTreeItem(o);const e={};i.generalS.getMapOfAllItems(e,s);for(const o of Object.keys(e)){const r=i.allTreeItemsMap[o];r&&(e[o].expanded=r.expanded)}i.treeNodes=s,i.allTreeItemsMap=e,i.loading.grid=!1,i.cd.detectChanges()})()}add(){this.data.formData=void 0,this.data.mode=M.D.ADD,this.data.eventChannel.emit({action:E.F.OPEN_FORM_IN_ADD_MODE}),this.FunManFormC.showModal()}edit(){this.leafSelected&&(this.data.formData=this.selectedRows[0].data,this.data.mode=M.D.EDIT,this.data.eventChannel.emit({action:E.F.OPEN_FORM_IN_EDIT_MODE}),this.FunManFormC.showModal())}removePermanentDialog(){var s,i=this;this.leafSelected&&this.confirmationService.confirm({message:this.constantsS.functions.removePermanentConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(s=(0,u.Z)(function*(){yield i.removePermanent()}),function(){return s.apply(this,arguments)})})}removePermanent(){var i=this;return(0,u.Z)(function*(){if(i.getSelectedRowId()){i.loading.grid=!0;try{const s=`${i.getSelectedRowGuid()}:${i.authCS.gUser._id}`,e=yield i.functionS.permanentDelete(s).toPromise();e.success?(i.notificationS.showSuccess(i.constantsS.functions.removePermanent),i.resetGridAndUrl(),yield i.loadTreeData(),i.leafSelected=!1):i.notificationS.showErrorFromResponse(e,i.constantsS.functions.removePermanentError)}catch{i.notificationS.showError(i.constantsS.functions.removePermanentError)}i.loading.grid=!1}})()}resetDependents(){var i=this;return(0,u.Z)(function*(){yield i.navigationCS.setQueryParam(T.p.custom_api,null)})()}functionSelected(){var i=this;return(0,u.Z)(function*(){i.resetDependents(),i.fillData(),i.getSelectedRowId()?i.generalS.setNewTitle(i.selectedRows[0].data.name,w.R.CUSTOM_APIS):i.generalS.setNewTitle("API Maker - Custom APIs"),i.leafSelected=!(!i.getSelectedRowId()||i.selectedRows[0].children?.length)})()}resetGridAndUrl(){this.selectedRows=void 0}fillData(){var i=this;return(0,u.Z)(function*(){if(!i.selectedRows)return void(yield i.navigationCS.setQueryParam(T.p.custom_api,""));const s=i.getSelectedRowId();s?yield i.navigationCS.setQueryParam(T.p.custom_api,s):i.resetDependents()})()}getSelectedRowId(){return this.selectedRows?.[0]?.data?._id}getSelectedRowGuid(){return this.selectedRows?.[0]?.data?.guid}dblClickCustomAPIsGrid(){setTimeout(()=>{this.edit()},10)}clone(){var i=this;return(0,u.Z)(function*(){yield i.cloneApiModalC.showModal(i.getSelectedRowId(),null,function(){var s=(0,u.Z)(function*(e){e&&(yield i.loadTreeData()),i.cd.detectChanges()});return function(e){return s.apply(this,arguments)}}())})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}ERequestMethod=Q.Yp;EModelApiPaths=R.k4;static \u0275fac=function(s){return new(s||a)(n.Y36(J.d),n.Y36(v.b),n.Y36(Y.W),n.Y36(q.S),n.Y36(k.D),n.Y36(K.L),n.Y36(B.u),n.Y36(n.sBO),n.Y36(d.F0),n.Y36(W.eN),n.Y36(f.YP))};static \u0275cmp=n.Xpm({type:a,selectors:[["app-custom-api-tree"]],viewQuery:function(s,e){if(1&s&&(n.Gf(X,5),n.Gf(tt,5)),2&s){let o;n.iGM(o=n.CRH())&&(e.FunManFormC=o.first),n.iGM(o=n.CRH())&&(e.cloneApiModalC=o.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"],["tooltipPosition","left","pTooltip","Running on native process","class","ml-2 grid-pill-custom-api text-danger border",4,"ngIf"],["tooltipPosition","left","pTooltip","Caching enabled","class","ml-2 grid-pill-custom-api text-warning border",4,"ngIf"],["tooltipPosition","left","pTooltip","It has request body schema","class","ml-2 grid-pill-custom-api text-muted border",4,"ngIf"],["tooltipPosition","left","pTooltip","It has request query parameters schema","class","ml-2 grid-pill-custom-api text-muted border",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"],["tooltipPosition","left","pTooltip","Running on native process",1,"ml-2","grid-pill-custom-api","text-danger","border"],["tooltipPosition","left","pTooltip","Caching enabled",1,"ml-2","grid-pill-custom-api","text-warning","border"],["tooltipPosition","left","pTooltip","It has request body schema",1,"ml-2","grid-pill-custom-api","text-muted","border"],["tooltipPosition","left","pTooltip","It has request query parameters schema",1,"ml-2","grid-pill-custom-api","text-muted","border"],[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(s,e){1&s&&(n.TgZ(0,"div",0)(1,"div",1)(2,"span"),n._UZ(3,"img",2),n._uU(4," Custom APIs"),n.qZA(),n.TgZ(5,"a",3),n._UZ(6,"img",4),n.qZA(),n.TgZ(7,"span")(8,"span",5),n.NdJ("click",function(){return e.navigateToGridView()}),n._UZ(9,"i",6),n.qZA(),n.TgZ(10,"span",7),n.NdJ("click",function(){return e.add()}),n._UZ(11,"i",8),n.qZA(),n.YNc(12,et,2,0,"span",9),n.YNc(13,nt,2,0,"span",10),n.YNc(14,it,2,0,"span",11),n.qZA()(),n.TgZ(15,"div",12)(16,"div",13)(17,"p-tree",14),n.NdJ("selectionChange",function(r){return e.selectedRows=r})("dblclick",function(){return e.dblClickCustomAPIsGrid()})("selectionChange",function(){return e.functionSelected()}),n.YNc(18,vt,3,2,"ng-template",15),n.qZA(),n.YNc(19,At,1,0,"p-progressSpinner",16),n.qZA()()(),n._UZ(20,"app-w-fun-man-form",17,18)(22,"app-clone-api-modal",19,20)),2&s&&(n.xp6(12),n.Q6J("ngIf",e.leafSelected),n.xp6(1),n.Q6J("ngIf",e.leafSelected),n.xp6(1),n.Q6J("ngIf",e.leafSelected),n.xp6(3),n.Q6J("value",e.treeNodes)("selection",e.selectedRows),n.xp6(2),n.Q6J("ngIf",e.loading.grid),n.xp6(1),n.Q6J("data",e.data),n.xp6(2),n.Q6J("modalId","idCloneCustomAPITree")("hostAndPort",e.BE_HOST_PORT)("modelApiPaths",e.EModelApiPaths.CUSTOM_APIS))},dependencies:[d.rH,t.mk,t.O5,H.s,f.jx,j.mp,$.G,z.u,V.u],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 xt=l(67987);const Mt=[{path:"",redirectTo:"functions-tree",pathMatch:"full"},{path:"functions-tree",component:(()=>{class a{route;constructor(i){this.route=i}ngOnInit(){}static \u0275fac=function(s){return new(s||a)(n.Y36(d.gz))};static \u0275cmp=n.Xpm({type:a,selectors:[["app-fun-man-layout-tree"]],decls:2,vars:0,consts:[[1,"pt-1","pl-1","pr-1"]],template:function(s,e){1&s&&(n.TgZ(0,"div",0),n._UZ(1,"app-custom-api-tree"),n.qZA())},dependencies:[U],encapsulation:2})}return a})(),canActivate:[Z.P]},{path:"functions",component:(()=>{class a{route;mode="tree";constructor(i){this.route=i}ngOnInit(){this.route.queryParams.subscribe(i=>{i.mode&&(this.mode=i.mode)})}static \u0275fac=function(s){return new(s||a)(n.Y36(d.gz))};static \u0275cmp=n.Xpm({type:a,selectors:[["app-fun-man-layout"]],decls:2,vars:1,consts:[[1,"pt-1","pl-1","pr-1"],[3,"showCheckbox"]],template:function(s,e){1&s&&(n.TgZ(0,"div",0),n._UZ(1,"app-custom-api-grid",1),n.qZA()),2&s&&(n.xp6(1),n.Q6J("showCheckbox",!1))},dependencies:[y.G],encapsulation:2})}return a})(),canActivate:[Z.P]}];let Pt=(()=>{class a{static \u0275fac=function(s){return new(s||a)};static \u0275mod=n.oAB({type:a});static \u0275inj=n.cJS({imports:[d.Bz.forChild(Mt),L.u,xt.X,F]})}return a})()}}]);