@sava-info-systems/api-maker-with-extensions 1.19.5 → 1.19.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/3081.dd32ee0f5db41577.js +1 -0
- package/dist/5249.73e35de880a7af92.js +1 -0
- package/dist/5765.2b385a8405d8e7b2.js +1 -0
- package/dist/913.e60cadd27b99097f.js +1 -0
- package/dist/assets/monaco-assets/grammars/javascript.tmLanguage.json +3574 -5913
- package/dist/assets/monaco-assets/grammars/magicpython.tmLanguage.json +3437 -4212
- package/dist/assets/monaco-assets/grammars/rust.tmLanguage.json +89 -72
- package/dist/assets/monaco-assets/grammars/typescript.tmLanguage.json +3302 -5664
- package/dist/assets/monaco-assets/grammars/xml.tmLanguage.json +1 -1
- package/dist/assets/monaco-assets/onig.wasm +0 -0
- package/dist/assets/primeng-theme/primeng-theme-overrides.scss +1 -1
- package/dist/assets/schema-types/types.ts +21 -2
- package/dist/assets/styles/out/styles.css +1 -1
- package/dist/assets/styles/styles.scss +2 -1
- package/dist/index.html +14 -6
- package/dist/main.45d0e6ca86c448ba.js +1 -0
- package/dist/runtime.662c613ba3c97743.js +1 -0
- package/dist/{styles.1764f1e35ed631e4.css → styles.242217e145c3f7ab.css} +1 -1
- package/main.js +1 -1
- package/package.json +4 -4
- package/sandbox/sandbox.js +1 -1
- package/src/assets/schema-types/types.ts +21 -2
- package/src/public/dist-db-masters/browser/index.html +1 -1
- package/src/public/dist-db-masters/browser/main-ANQDJFEO.js +139 -0
- package/src/tools/local-client.js +1 -1
- package/dist/3081.e470a8aeed4a7745.js +0 -1
- package/dist/5249.52aa732ef6a173c5.js +0 -1
- package/dist/5765.e70cd773673bfe27.js +0 -1
- package/dist/913.7d41933171ab9fbe.js +0 -1
- package/dist/assets/styles/out/bootstrap-overrides.css.map +0 -1
- package/dist/assets/styles/out/colors-dark.css.map +0 -1
- package/dist/assets/styles/out/colors-light.css.map +0 -1
- package/dist/assets/styles/out/monaco-editor-overrides.css.map +0 -1
- package/dist/assets/styles/out/styles.css.map +0 -1
- package/dist/assets/styles/out/variables.css.map +0 -1
- package/dist/main.9630ecd9c9613e82.js +0 -1
- package/dist/runtime.21919a870e05d69b.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[5765],{7595:(Et,P,l)=>{l.d(P,{G:()=>c});var d=l(5861),t=l(4946),n=l(3157),f=l(328),C=l(6212),h=l(6990),I=l(5085),S=l(1162),St=l(6925),Zt=l(553),F=l(9394),Z=l(921),L=l(7629),y=l(7240),u=l(9961),E=l(2189),M=l(5852),T=l(7414),w=l(2915),D=l(7664),Q=l(9862),O=l(5219),R=l(95),G=l(6814),J=l(7797),v=l(5431),Y=l(7680),q=l(3259),k=l(8057),K=l(1137);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,"label",27)(2,"p-checkbox",28),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(2),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,"label",27)(2,"p-checkbox",28),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(2),t.Q6J("ngModel",e.eventCenterS.filterInLog.apisRegex.allCustomApis)("binary",!0)}}function tt(i,s){if(1&i&&(t.TgZ(0,"div")(1,"div",29),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",39),t._UZ(1,"p-tableHeaderCheckbox"),t.qZA())}function nt(i,s){1&i&&t._UZ(0,"th",37)}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",40)}function at(i,s){if(1&i&&(t.TgZ(0,"tr"),t.YNc(1,et,2,0,"th",35),t.YNc(2,nt,1,0,"th",36),t._UZ(3,"th",37),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",38),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",48),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",49)(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",50),t._uU(1,"Native"),t.qZA())}function pt(i,s){1&i&&(t.TgZ(0,"span",51),t._uU(1,"Caching"),t.qZA())}function dt(i,s){1&i&&(t.TgZ(0,"span",52),t._uU(1,"B. Schema"),t.qZA())}function _t(i,s){1&i&&(t.TgZ(0,"span",53),t._uU(1,"Q. Schema"),t.qZA())}function ut(i,s){1&i&&(t.TgZ(0,"span",57),t._uU(1,"AM-User"),t.qZA())}function mt(i,s){1&i&&(t.TgZ(0,"span",58),t._uU(1,"No-Access"),t.qZA())}function ft(i,s){1&i&&(t.TgZ(0,"span",59),t._uU(1,"Public"),t.qZA())}function gt(i,s){1&i&&(t.TgZ(0,"span",58),t._uU(1,"DB-User"),t.qZA())}function ht(i,s){1&i&&(t.TgZ(0,"span",58),t._uU(1,"AWS"),t.qZA())}function Ct(i,s){1&i&&(t.TgZ(0,"span",58),t._uU(1,"Azure"),t.qZA())}function Tt(i,s){1&i&&(t.TgZ(0,"span",58),t._uU(1,"Google"),t.qZA())}function vt(i,s){if(1&i&&(t.TgZ(0,"td"),t.YNc(1,ut,2,0,"span",54),t.YNc(2,mt,2,0,"span",55),t.YNc(3,ft,2,0,"span",56),t.YNc(4,gt,2,0,"span",55),t.YNc(5,ht,2,0,"span",55),t.YNc(6,Ct,2,0,"span",55),t.YNc(7,Tt,2,0,"span",55),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",60)(2,"p-checkbox",61),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 b(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"]},U=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",49)(2,"a",62),t.NdJ("click",function(o){return o.stopPropagation()}),t._UZ(3,"i",63),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,U,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",41),t.YNc(1,rt,2,2,"td",5),t.YNc(2,lt,3,1,"td",42),t.TgZ(3,"td")(4,"span",43),t._uU(5),t.qZA()(),t.TgZ(6,"td")(7,"span"),t._uU(8),t.qZA(),t.YNc(9,ct,2,0,"span",44),t.YNc(10,pt,2,0,"span",45),t.YNc(11,dt,2,0,"span",46),t.YNc(12,_t,2,0,"span",47),t.qZA(),t.TgZ(13,"td"),t._uU(14),t.qZA(),t.YNc(15,vt,8,7,"td",5),t.YNc(16,b,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",64)}function a(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"div",30)(1,"p-table",31),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",32),t.YNc(3,yt,18,19,"ng-template",33),t.qZA(),t.YNc(4,Pt,1,0,"p-progressSpinner",34),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"],[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"],["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,3,2,"span",6),t.YNc(9,X,3,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})()},5765:(Et,P,l)=>{l.r(P),l.d(P,{FunctionManM:()=>Pt});var d=l(7664),t=l(6814),n=l(4946),f=l(5219);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(3726),L=l(7017),y=l(7595),u=l(5861),E=l(3157),M=l(328),T=l(6212),w=l(5085),D=l(1162),Q=l(6925),O=l(553),R=l(9394),G=l(921),J=l(7629),v=l(7240),Y=l(9961),q=l(2189),k=l(5852),K=l(7414),B=l(2915),W=l(9862),H=l(7797),j=l(1396),$=l(7680),z=l(3259),V=l(1137);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 b=(()=>{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(7987);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:[b],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})()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[913],{6215:(J,b,s)=>{"use strict";s.d(b,{B:()=>I});var I=function(g){return g.DRAFT="DRAFT",g.PENDING_APPROVAL="PENDING_APPROVAL",g.PUBLISHED="PUBLISHED",g.DEPRECATED="DEPRECATED",g.BLOCKED="BLOCKED",g}(I||{})},913:(J,b,s)=>{"use strict";s.r(b),s.d(b,{AppStoreM:()=>Rt});var I=s(7664),g=s(7017),u=s(5861),T=s(553),O=function(i){return i.DRAFT="DRAFT",i.PENDING_APPROVAL="PENDING_APPROVAL",i.PUBLISHED="PUBLISHED",i.BLOCKED="BLOCKED",i}(O||{}),e=s(4946),Z=s(7240),S=s(3429),w=s(7414),V=s(1027),Y=s(1344),r=s(5852),d=s(4977),m=s(9961),C=s(2915),c=s(95),_=s(6814),E=s(7680),M=s(3259),h=s(5219),v=s(218),y=s(707),k=s(2076),ee=s(3714),F=s(5807),H=s(4480),B=s(6489),A=s(2332),K=s(8468),P=s(8717),z=s(7778),R=s(6005);const te=["container"],ie=["in"],ne=["multiIn"],oe=["multiContainer"],le=["ddBtn"],ae=["items"],se=["scroller"],pe=["overlay"],re=function(i,a){return{"p-autocomplete-dd-input":i,"p-disabled":a}};function ce(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"input",11,12),e.NdJ("click",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onInputClick(o))})("input",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onInput(o))})("keydown",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onKeydown(o))})("keyup",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onKeyup(o))})("focus",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onInputFocus(o))})("blur",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onInputBlur(o))})("change",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onInputChange(o))})("paste",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onInputPaste(o))}),e.qZA()}if(2&i){const t=e.oxw();e.Tol(t.inputStyleClass),e.Q6J("autofocus",t.autofocus)("ngStyle",t.inputStyle)("autocomplete",t.autocomplete)("ngClass",e.WLB(20,re,t.dropdown,t.disabled))("value",t.inputFieldValue)("readonly",t.readonly)("disabled",t.disabled),e.uIk("type",t.type)("id",t.inputId)("required",t.required)("name",t.name)("placeholder",t.placeholder)("size",t.size)("maxlength",t.maxlength)("tabindex",t.tabindex)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledBy)("aria-required",t.required)}}function ue(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"TimesIcon",15),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.clear())}),e.qZA()}2&i&&e.Q6J("styleClass","p-autocomplete-clear-icon")}function de(i,a){}function me(i,a){1&i&&e.YNc(0,de,0,0,"ng-template")}function _e(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"span",16),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.clear())}),e.YNc(1,me,1,0,null,8),e.qZA()}if(2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",t.clearIconTemplate)}}function he(i,a){if(1&i&&(e.ynx(0),e.YNc(1,ue,1,1,"TimesIcon",13),e.YNc(2,_e,2,1,"span",14),e.BQk()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.clearIconTemplate),e.xp6(1),e.Q6J("ngIf",t.clearIconTemplate)}}function ge(i,a){1&i&&e.GkF(0)}function fe(i,a){if(1&i&&(e.TgZ(0,"span",30),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Oqu(n.resolveFieldData(t))}}function Ce(i,a){1&i&&e._UZ(0,"TimesCircleIcon",31),2&i&&e.Q6J("styleClass","p-autocomplete-token-icon")}function xe(i,a){}function ve(i,a){1&i&&e.YNc(0,xe,0,0,"ng-template")}function Te(i,a){if(1&i&&(e.TgZ(0,"span",32),e.YNc(1,ve,1,0,null,8),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngTemplateOutlet",t.removeIconTemplate)}}const N=function(i){return{$implicit:i}};function ye(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"li",23,24),e.YNc(2,ge,1,0,"ng-container",25),e.YNc(3,fe,2,1,"span",26),e.TgZ(4,"span",27),e.NdJ("click",function(){e.CHM(t);const o=e.MAs(1),l=e.oxw(2);return e.KtG(l.removeItem(o))}),e.YNc(5,Ce,1,1,"TimesCircleIcon",28),e.YNc(6,Te,2,1,"span",29),e.qZA()()}if(2&i){const t=a.$implicit,n=e.oxw(2);e.xp6(2),e.Q6J("ngTemplateOutlet",n.selectedItemTemplate)("ngTemplateOutletContext",e.VKq(5,N,t)),e.xp6(1),e.Q6J("ngIf",!n.selectedItemTemplate),e.xp6(2),e.Q6J("ngIf",!n.removeIconTemplate),e.xp6(1),e.Q6J("ngIf",n.removeIconTemplate)}}const Ie=function(i,a){return{"p-disabled":i,"p-focus":a}};function Ae(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"ul",17,18),e.NdJ("click",function(){e.CHM(t);const o=e.MAs(5);return e.KtG(o.focus())}),e.YNc(2,ye,7,7,"li",19),e.TgZ(3,"li",20)(4,"input",21,22),e.NdJ("input",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onInput(o))})("click",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onInputClick(o))})("keydown",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onKeydown(o))})("keyup",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onKeyup(o))})("focus",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onInputFocus(o))})("blur",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onInputBlur(o))})("change",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onInputChange(o))})("paste",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onInputPaste(o))}),e.qZA()()()}if(2&i){const t=e.oxw();e.Q6J("ngClass",e.WLB(20,Ie,t.disabled,t.focus)),e.xp6(2),e.Q6J("ngForOf",t.value),e.xp6(2),e.Tol(t.inputStyleClass),e.Q6J("autofocus",t.autofocus)("disabled",t.disabled)("readonly",t.readonly)("autocomplete",t.autocomplete)("ngStyle",t.inputStyle),e.uIk("type",t.type)("id",t.inputId)("placeholder",t.value&&t.value.length?null:t.placeholder)("tabindex",t.tabindex)("maxlength",t.maxlength)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledBy)("aria-required",t.required)("aria-controls",t.listId)("aria-expanded",t.overlayVisible)("aria-activedescendant","p-highlighted-option")}}function be(i,a){1&i&&e._UZ(0,"SpinnerIcon",35),2&i&&e.Q6J("styleClass","p-autocomplete-loader")("spin",!0)}function Se(i,a){}function we(i,a){1&i&&e.YNc(0,Se,0,0,"ng-template")}function Me(i,a){if(1&i&&(e.TgZ(0,"span",36),e.YNc(1,we,1,0,null,8),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",t.loadingIconTemplate)}}function Oe(i,a){if(1&i&&(e.ynx(0),e.YNc(1,be,1,2,"SpinnerIcon",33),e.YNc(2,Me,2,1,"span",34),e.BQk()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.loadingIconTemplate),e.xp6(1),e.Q6J("ngIf",t.loadingIconTemplate)}}function Ee(i,a){if(1&i&&e._UZ(0,"span",40),2&i){const t=e.oxw(2);e.Q6J("ngClass",t.dropdownIcon)}}function ke(i,a){1&i&&e._UZ(0,"ChevronDownIcon")}function Le(i,a){}function Ze(i,a){1&i&&e.YNc(0,Le,0,0,"ng-template")}function Ve(i,a){if(1&i&&(e.ynx(0),e.YNc(1,ke,1,0,"ChevronDownIcon",3),e.YNc(2,Ze,1,0,null,8),e.BQk()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!t.dropdownIconTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",t.dropdownIconTemplate)}}function Ne(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"button",37,38),e.NdJ("click",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.handleDropdownClick(o))}),e.YNc(2,Ee,1,1,"span",39),e.YNc(3,Ve,3,2,"ng-container",3),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("disabled",t.disabled),e.uIk("aria-label",t.dropdownAriaLabel)("tabindex",t.tabindex),e.xp6(2),e.Q6J("ngIf",t.dropdownIcon),e.xp6(1),e.Q6J("ngIf",!t.dropdownIcon)}}function De(i,a){1&i&&e.GkF(0)}function Je(i,a){1&i&&e.GkF(0)}const q=function(i,a){return{$implicit:i,options:a}};function Ye(i,a){if(1&i&&e.YNc(0,Je,1,0,"ng-container",25),2&i){const t=a.$implicit,n=a.options;e.oxw(2);const o=e.MAs(14);e.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",e.WLB(2,q,t,n))}}function Fe(i,a){1&i&&e.GkF(0)}const Be=function(i){return{options:i}};function Ge(i,a){if(1&i&&e.YNc(0,Fe,1,0,"ng-container",25),2&i){const t=a.options,n=e.oxw(3);e.Q6J("ngTemplateOutlet",n.loaderTemplate)("ngTemplateOutletContext",e.VKq(2,Be,t))}}function Qe(i,a){1&i&&(e.ynx(0),e.YNc(1,Ge,1,4,"ng-template",44),e.BQk())}const D=function(i){return{height:i}};function Ue(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"p-scroller",41,42),e.NdJ("onLazyLoad",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onLazyLoad.emit(o))}),e.YNc(2,Ye,1,5,"ng-template",43),e.YNc(3,Qe,2,0,"ng-container",3),e.qZA()}if(2&i){const t=e.oxw();e.Akn(e.VKq(8,D,t.scrollHeight)),e.Q6J("items",t.suggestions)("itemSize",t.virtualScrollItemSize||t._itemSize)("autoSize",!0)("lazy",t.lazy)("options",t.virtualScrollOptions),e.xp6(3),e.Q6J("ngIf",t.loaderTemplate)}}function He(i,a){1&i&&e.GkF(0)}const Ke=function(){return{}};function Pe(i,a){if(1&i&&(e.ynx(0),e.YNc(1,He,1,0,"ng-container",25),e.BQk()),2&i){const t=e.oxw(),n=e.MAs(14);e.xp6(1),e.Q6J("ngTemplateOutlet",n)("ngTemplateOutletContext",e.WLB(3,q,t.suggestions,e.DdM(2,Ke)))}}function ze(i,a){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Oqu(n.getOptionGroupLabel(t)||"empty")}}function Re(i,a){1&i&&e.GkF(0)}function qe(i,a){1&i&&e.GkF(0)}function $e(i,a){if(1&i&&(e.TgZ(0,"li",50),e.YNc(1,ze,2,1,"span",3),e.YNc(2,Re,1,0,"ng-container",25),e.qZA(),e.YNc(3,qe,1,0,"ng-container",25)),2&i){const t=a.$implicit,n=e.oxw(2).options,o=e.MAs(5),l=e.oxw();e.Q6J("ngStyle",e.VKq(6,D,n.itemSize+"px")),e.xp6(1),e.Q6J("ngIf",!l.groupTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",l.groupTemplate)("ngTemplateOutletContext",e.VKq(8,N,t)),e.xp6(1),e.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",e.VKq(10,N,l.getOptionGroupChildren(t)))}}function We(i,a){if(1&i&&(e.ynx(0),e.YNc(1,$e,4,12,"ng-template",49),e.BQk()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",t)}}function je(i,a){1&i&&e.GkF(0)}function Xe(i,a){if(1&i&&(e.ynx(0),e.YNc(1,je,1,0,"ng-container",25),e.BQk()),2&i){const t=e.oxw().$implicit,n=e.MAs(5);e.xp6(1),e.Q6J("ngTemplateOutlet",n)("ngTemplateOutletContext",e.VKq(2,N,t))}}function et(i,a){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Oqu(n.resolveFieldData(t))}}function tt(i,a){1&i&&e.GkF(0)}const it=function(i){return{"p-highlight":i}},nt=function(i,a){return{$implicit:i,index:a}};function ot(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"li",52),e.NdJ("click",function(){const l=e.CHM(t).$implicit,p=e.oxw(3);return e.KtG(p.selectItem(l))}),e.YNc(1,et,2,1,"span",3),e.YNc(2,tt,1,0,"ng-container",25),e.qZA()}if(2&i){const t=a.$implicit,n=a.index,o=e.oxw(2).options,l=e.oxw();e.Q6J("ngStyle",e.VKq(6,D,o.itemSize+"px"))("ngClass",e.VKq(8,it,t===l.highlightOption))("id",l.highlightOption==t?"p-highlighted-option":""),e.xp6(1),e.Q6J("ngIf",!l.itemTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",l.itemTemplate)("ngTemplateOutletContext",e.WLB(10,nt,t,o.getOptions?o.getOptions(n):n))}}function lt(i,a){1&i&&e.YNc(0,ot,3,13,"li",51),2&i&&e.Q6J("ngForOf",a.$implicit)}function at(i,a){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const t=e.oxw(3);e.xp6(1),e.hij(" ",t.emptyMessageLabel," ")}}function st(i,a){1&i&&e.GkF(0,null,55)}function pt(i,a){if(1&i&&(e.TgZ(0,"li",53),e.YNc(1,at,2,1,"ng-container",54),e.YNc(2,st,2,0,"ng-container",8),e.qZA()),2&i){const t=e.oxw().options,n=e.oxw();e.Q6J("ngStyle",e.VKq(4,D,t.itemSize+"px")),e.xp6(1),e.Q6J("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),e.xp6(1),e.Q6J("ngTemplateOutlet",n.emptyTemplate)}}function rt(i,a){if(1&i&&(e.TgZ(0,"ul",45,46),e.YNc(2,We,2,1,"ng-container",3),e.YNc(3,Xe,2,4,"ng-container",3),e.YNc(4,lt,1,1,"ng-template",null,47,e.W1O),e.YNc(6,pt,3,6,"li",48),e.qZA()),2&i){const t=a.options,n=e.oxw();e.Akn(t.contentStyle),e.Q6J("ngClass",t.contentStyleClass),e.uIk("id",n.listId),e.xp6(2),e.Q6J("ngIf",n.group),e.xp6(1),e.Q6J("ngIf",!n.group),e.xp6(3),e.Q6J("ngIf",n.noResults&&n.showEmptyMessage)}}function ct(i,a){1&i&&e.GkF(0)}const ut=function(i,a){return{"p-autocomplete p-component":!0,"p-autocomplete-dd":i,"p-autocomplete-multiple":a}},dt=function(){return["p-autocomplete-panel p-component"]},mt={provide:c.JU,useExisting:(0,e.Gpc)(()=>W),multi:!0};let W=(()=>{class i{document;el;renderer;cd;differs;config;overlayService;zone;minLength=1;delay=300;style;panelStyle;styleClass;panelStyleClass;inputStyle;inputId;inputStyleClass;placeholder;readonly;disabled;scrollHeight="200px";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;maxlength;name;required;size;appendTo;autoHighlight;forceSelection;type="text";_autoZIndex;get autoZIndex(){return this._autoZIndex}set autoZIndex(t){this._autoZIndex=t,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_baseZIndex;get baseZIndex(){return this._baseZIndex}set baseZIndex(t){this._baseZIndex=t,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}ariaLabel;dropdownAriaLabel;ariaLabelledBy;dropdownIcon;unique=!0;group;completeOnFocus=!1;showClear=!1;field;dropdown;showEmptyMessage;dropdownMode="blank";multiple;tabindex;dataKey;emptyMessage;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autofocus;autocomplete="off";optionGroupChildren;optionGroupLabel;overlayOptions;get suggestions(){return this._suggestions}set suggestions(t){this._suggestions=t,this.handleSuggestionsChange()}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=t,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}completeMethod=new e.vpe;onSelect=new e.vpe;onUnselect=new e.vpe;onFocus=new e.vpe;onBlur=new e.vpe;onDropdownClick=new e.vpe;onClear=new e.vpe;onKeyUp=new e.vpe;onShow=new e.vpe;onHide=new e.vpe;onLazyLoad=new e.vpe;containerEL;inputEL;multiInputEl;multiContainerEL;dropdownButton;itemsViewChild;scroller;overlayViewChild;templates;_itemSize;itemsWrapper;itemTemplate;emptyTemplate;headerTemplate;footerTemplate;selectedItemTemplate;groupTemplate;loaderTemplate;removeIconTemplate;loadingIconTemplate;clearIconTemplate;dropdownIconTemplate;value;_suggestions;onModelChange=()=>{};onModelTouched=()=>{};timeout;overlayVisible=!1;suggestionsUpdated;highlightOption;highlightOptionChanged;focus=!1;filled;inputClick;inputKeyDown;noResults;differ;inputFieldValue=null;loading;scrollHandler;documentResizeListener;forceSelectionUpdateModelTimeout;listId;itemClicked;inputValue=null;isSearching=!1;constructor(t,n,o,l,p,x,f,L){this.document=t,this.el=n,this.renderer=o,this.cd=l,this.differs=p,this.config=x,this.overlayService=f,this.zone=L,this.differ=p.find([]).create(void 0),this.listId=(0,A.Th)()+"_list"}ngAfterViewChecked(){this.suggestionsUpdated&&this.overlayViewChild&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1),this.suggestionsUpdated=!1}),this.highlightOptionChanged&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{if(this.overlayViewChild&&this.itemsWrapper){let t=k.p.findSingle(this.overlayViewChild.overlayViewChild.nativeElement,"li.p-highlight");t&&k.p.scrollInView(this.itemsWrapper,t)}},1),this.highlightOptionChanged=!1})}handleSuggestionsChange(){null!=this._suggestions&&this.loading&&(this.highlightOption=null,this._suggestions.length?(this.noResults=!1,this.show(),this.suggestionsUpdated=!0,this.autoHighlight&&(this.highlightOption=this._suggestions[0])):(this.noResults=!0,this.showEmptyMessage?(this.show(),this.suggestionsUpdated=!0):this.hide()),this.loading=!1,this.isSearching=!1)}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"item":default:this.itemTemplate=t.template;break;case"group":this.groupTemplate=t.template;break;case"selectedItem":this.selectedItemTemplate=t.template;break;case"header":this.headerTemplate=t.template;break;case"empty":this.emptyTemplate=t.template;break;case"footer":this.footerTemplate=t.template;break;case"loader":this.loaderTemplate=t.template;break;case"removetokenicon":this.removeIconTemplate=t.template;break;case"loadingicon":this.loadingIconTemplate=t.template;break;case"clearicon":this.clearIconTemplate=t.template;break;case"dropdownicon":this.dropdownIconTemplate=t.template}})}writeValue(t){this.value=t,this.filled=!(!this.value||!this.value.length),this.updateInputField(),this.cd.markForCheck()}getOptionGroupChildren(t){return this.optionGroupChildren?A.gb.resolveFieldData(t,this.optionGroupChildren):t.items}getOptionGroupLabel(t){return this.optionGroupLabel?A.gb.resolveFieldData(t,this.optionGroupLabel):null!=t.label?t.label:t}registerOnChange(t){this.onModelChange=t}registerOnTouched(t){this.onModelTouched=t}setDisabledState(t){this.disabled=t,this.cd.markForCheck()}onInput(t){if(!this.inputKeyDown&&k.p.isIE())return;this.timeout&&clearTimeout(this.timeout);let n=t.target.value;this.inputValue=n,!this.multiple&&!this.forceSelection&&this.onModelChange(n),0===n.length&&!this.multiple&&(this.value=null,this.hide(),this.onClear.emit(t),this.onModelChange(n)),n.length>=this.minLength?this.timeout=setTimeout(()=>{this.search(t,n)},this.delay):this.hide(),this.updateFilledState(),this.inputKeyDown=!1}onInputClick(t){this.inputClick=!0}search(t,n){this.isSearching||(this.isSearching=!0,this.loading=!0,this.completeMethod.emit({originalEvent:t,query:n}),setTimeout(()=>{this.isSearching=!1},100))}selectItem(t,n=!0){this.forceSelectionUpdateModelTimeout&&(clearTimeout(this.forceSelectionUpdateModelTimeout),this.forceSelectionUpdateModelTimeout=null),this.multiple?(this.multiInputEl.nativeElement.value="",this.value=this.value||[],(!this.isSelected(t)||!this.unique)&&(this.value=[...this.value,t],this.onModelChange(this.value))):(this.inputEL.nativeElement.value=this.resolveFieldData(t),this.value=t,this.onModelChange(this.value)),this.onSelect.emit(t),this.updateFilledState(),n&&(this.itemClicked=!0,this.focusInput()),this.hide()}show(t){(this.multiInputEl||this.inputEL)&&!this.overlayVisible&&(this.multiple?this.multiInputEl?.nativeElement.ownerDocument.activeElement==this.multiInputEl?.nativeElement:this.inputEL?.nativeElement.ownerDocument.activeElement==this.inputEL?.nativeElement)&&(this.overlayVisible=!0),this.onShow.emit(t),this.cd.markForCheck()}clear(){this.value=null,this.inputValue=null,this.multiple?this.multiInputEl.nativeElement.value="":(this.inputValue=null,this.inputEL.nativeElement.value=""),this.updateFilledState(),this.onModelChange(this.value),this.onClear.emit()}onOverlayAnimationStart(t){"visible"===t.toState&&(this.itemsWrapper=k.p.findSingle(this.overlayViewChild.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-autocomplete-panel"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement))}resolveFieldData(t){let n=this.field?A.gb.resolveFieldData(t,this.field):t;return void 0!==n?n:""}hide(t){this.overlayVisible=!1,this.onHide.emit(t),this.cd.markForCheck()}handleDropdownClick(t){if(this.overlayVisible)this.hide(t);else{this.focusInput();let n=this.multiple?this.multiInputEl.nativeElement.value:this.inputEL.nativeElement.value;"blank"===this.dropdownMode?(this.onDropdownClick.emit({originalEvent:t,query:""}),this.search(t,"")):"current"===this.dropdownMode&&(this.onDropdownClick.emit({originalEvent:t,query:n}),this.search(t,n))}}focusInput(){this.multiple?this.multiInputEl.nativeElement.focus():this.inputEL?.nativeElement.focus()}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(h.ws.EMPTY_MESSAGE)}removeItem(t){let n=k.p.index(t),o=this.value[n];this.value=this.value.filter((l,p)=>p!=n),this.onModelChange(this.value),this.updateFilledState(),this.onUnselect.emit(o)}onKeydown(t){if(this.overlayVisible)switch(t.which){case 40:if(this.group){let o=this.findOptionGroupIndex(this.highlightOption,this.suggestions);if(-1!==o){let l=o.itemIndex+1;l<this.getOptionGroupChildren(this.suggestions[o.groupIndex]).length?(this.highlightOption=this.getOptionGroupChildren(this.suggestions[o.groupIndex])[l],this.highlightOptionChanged=!0):this.suggestions[o.groupIndex+1]&&(this.highlightOption=this.getOptionGroupChildren(this.suggestions[o.groupIndex+1])[0],this.highlightOptionChanged=!0)}else this.highlightOption=this.getOptionGroupChildren(this.suggestions[0])[0]}else{let o=this.findOptionIndex(this.highlightOption,this.suggestions);if(-1!=o){var n=o+1;n!=this.suggestions.length&&(this.highlightOption=this.suggestions[n],this.highlightOptionChanged=!0)}else this.highlightOption=this.suggestions[0]}t.preventDefault();break;case 38:if(this.group){let o=this.findOptionGroupIndex(this.highlightOption,this.suggestions);if(-1!==o){let l=o.itemIndex-1;if(l>=0)this.highlightOption=this.getOptionGroupChildren(this.suggestions[o.groupIndex])[l],this.highlightOptionChanged=!0;else if(l<0){let p=this.suggestions[o.groupIndex-1];p&&(this.highlightOption=this.getOptionGroupChildren(p)[this.getOptionGroupChildren(p).length-1],this.highlightOptionChanged=!0)}}}else{let o=this.findOptionIndex(this.highlightOption,this.suggestions);o>0&&(this.highlightOption=this.suggestions[o-1],this.highlightOptionChanged=!0)}t.preventDefault();break;case 13:this.highlightOption&&(this.selectItem(this.highlightOption),this.hide()),t.preventDefault();break;case 27:this.hide(),t.preventDefault();break;case 9:this.highlightOption&&this.selectItem(this.highlightOption),this.hide()}else 40===t.which&&this.suggestions?this.search(t,t.target.value):t.ctrlKey&&"z"===t.key&&!this.multiple?(this.inputEL.nativeElement.value=this.resolveFieldData(null),this.value="",this.onModelChange(this.value)):t.ctrlKey&&"z"===t.key&&this.multiple&&(this.value.pop(),this.onModelChange(this.value),this.updateFilledState());if(this.multiple&&8===t.which&&this.value&&this.value.length&&!this.multiInputEl?.nativeElement.value){this.value=[...this.value];const o=this.value.pop();this.onModelChange(this.value),this.updateFilledState(),this.onUnselect.emit(o)}this.inputKeyDown=!0}onKeyup(t){this.onKeyUp.emit(t)}onInputFocus(t){!this.itemClicked&&this.completeOnFocus&&this.search(t,this.multiple?this.multiInputEl?.nativeElement.value:this.inputEL?.nativeElement.value),this.focus=!0,this.onFocus.emit(t),this.itemClicked=!1}onInputBlur(t){this.focus=!1,this.onModelTouched(),this.onBlur.emit(t)}onInputChange(t){if(this.forceSelection){let n=!1,l=t.target.value.trim();if(this.suggestions){let p=[...this.suggestions];if(this.group){let x=this.suggestions.filter(f=>f[this.optionGroupChildren]).flatMap(f=>f[this.optionGroupChildren]);p=p.concat(x)}for(let x of p){let f=this.field?A.gb.resolveFieldData(x,this.field):x;if(f&&l.toLowerCase()===f.toLowerCase().trim()){n=!0,this.forceSelectionUpdateModelTimeout=setTimeout(()=>{this.selectItem(x,!1)},250);break}}}n||(this.multiple?this.multiInputEl.nativeElement.value="":(this.value=null,this.inputEL.nativeElement.value=""),this.onClear.emit(t),this.onModelChange(this.value),this.updateFilledState())}}onInputPaste(t){this.onKeydown(t)}isSelected(t){let n=!1;if(this.value&&this.value.length)for(let o=0;o<this.value.length;o++)if(A.gb.equals(this.value[o],t,this.dataKey)){n=!0;break}return n}findOptionIndex(t,n){let o=-1;if(n)for(let l=0;l<n.length;l++)if(A.gb.equals(t,n[l])){o=l;break}return o}findOptionGroupIndex(t,n){let o,l;if(n)for(let p=0;p<n.length&&(o=p,l=this.findOptionIndex(t,this.getOptionGroupChildren(n[p])),-1===l);p++);return-1!==l?{groupIndex:o,itemIndex:l}:-1}updateFilledState(){this.filled=this.multiple?this.value&&this.value.length||this.multiInputEl&&this.multiInputEl.nativeElement&&""!=this.multiInputEl.nativeElement.value:this.inputFieldValue&&""!=this.inputFieldValue||this.inputEL&&this.inputEL.nativeElement&&""!=this.inputEL.nativeElement.value}updateInputField(){let t=this.resolveFieldData(this.value);this.inputFieldValue=t,this.inputEL&&this.inputEL.nativeElement&&(this.inputEL.nativeElement.value=t),this.updateFilledState()}ngOnDestroy(){this.forceSelectionUpdateModelTimeout&&(clearTimeout(this.forceSelectionUpdateModelTimeout),this.forceSelectionUpdateModelTimeout=null),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(n){return new(n||i)(e.Y36(_.K0),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(e.ZZ4),e.Y36(h.b4),e.Y36(h.F0),e.Y36(e.R0b))};static \u0275cmp=e.Xpm({type:i,selectors:[["p-autoComplete"]],contentQueries:function(n,o,l){if(1&n&&e.Suo(l,h.jx,4),2&n){let p;e.iGM(p=e.CRH())&&(o.templates=p)}},viewQuery:function(n,o){if(1&n&&(e.Gf(te,5),e.Gf(ie,5),e.Gf(ne,5),e.Gf(oe,5),e.Gf(le,5),e.Gf(ae,5),e.Gf(se,5),e.Gf(pe,5)),2&n){let l;e.iGM(l=e.CRH())&&(o.containerEL=l.first),e.iGM(l=e.CRH())&&(o.inputEL=l.first),e.iGM(l=e.CRH())&&(o.multiInputEl=l.first),e.iGM(l=e.CRH())&&(o.multiContainerEL=l.first),e.iGM(l=e.CRH())&&(o.dropdownButton=l.first),e.iGM(l=e.CRH())&&(o.itemsViewChild=l.first),e.iGM(l=e.CRH())&&(o.scroller=l.first),e.iGM(l=e.CRH())&&(o.overlayViewChild=l.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&e.ekj("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focus&&!o.disabled||o.autofocus||o.overlayVisible)("p-autocomplete-clearable",o.showClear&&!o.disabled)},inputs:{minLength:"minLength",delay:"delay",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",inputStyle:"inputStyle",inputId:"inputId",inputStyleClass:"inputStyleClass",placeholder:"placeholder",readonly:"readonly",disabled:"disabled",scrollHeight:"scrollHeight",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",maxlength:"maxlength",name:"name",required:"required",size:"size",appendTo:"appendTo",autoHighlight:"autoHighlight",forceSelection:"forceSelection",type:"type",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",ariaLabel:"ariaLabel",dropdownAriaLabel:"dropdownAriaLabel",ariaLabelledBy:"ariaLabelledBy",dropdownIcon:"dropdownIcon",unique:"unique",group:"group",completeOnFocus:"completeOnFocus",showClear:"showClear",field:"field",dropdown:"dropdown",showEmptyMessage:"showEmptyMessage",dropdownMode:"dropdownMode",multiple:"multiple",tabindex:"tabindex",dataKey:"dataKey",emptyMessage:"emptyMessage",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autofocus:"autofocus",autocomplete:"autocomplete",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",overlayOptions:"overlayOptions",suggestions:"suggestions",itemSize:"itemSize"},outputs:{completeMethod:"completeMethod",onSelect:"onSelect",onUnselect:"onUnselect",onFocus:"onFocus",onBlur:"onBlur",onDropdownClick:"onDropdownClick",onClear:"onClear",onKeyUp:"onKeyUp",onShow:"onShow",onHide:"onHide",onLazyLoad:"onLazyLoad"},features:[e._Bn([mt])],decls:16,vars:31,consts:[[3,"ngClass","ngStyle"],["container",""],["pAutoFocus","","class","p-autocomplete-input p-inputtext p-component","aria-autocomplete","list","role","searchbox",3,"autofocus","ngStyle","class","autocomplete","ngClass","value","readonly","disabled","click","input","keydown","keyup","focus","blur","change","paste",4,"ngIf"],[4,"ngIf"],["class","p-autocomplete-multiple-container p-component p-inputtext",3,"ngClass","click",4,"ngIf"],["type","button","pButton","","class","p-autocomplete-dropdown p-button-icon-only","pRipple","",3,"disabled","click",4,"ngIf"],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onShow","onHide"],["overlay",""],[4,"ngTemplateOutlet"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["pAutoFocus","","aria-autocomplete","list","role","searchbox",1,"p-autocomplete-input","p-inputtext","p-component",3,"autofocus","ngStyle","autocomplete","ngClass","value","readonly","disabled","click","input","keydown","keyup","focus","blur","change","paste"],["in",""],[3,"styleClass","click",4,"ngIf"],["class","p-autocomplete-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-autocomplete-clear-icon",3,"click"],[1,"p-autocomplete-multiple-container","p-component","p-inputtext",3,"ngClass","click"],["multiContainer",""],["class","p-autocomplete-token",4,"ngFor","ngForOf"],[1,"p-autocomplete-input-token"],["pAutoFocus","","aria-autocomplete","list","role","searchbox","aria-haspopup","true",3,"autofocus","disabled","readonly","autocomplete","ngStyle","input","click","keydown","keyup","focus","blur","change","paste"],["multiIn",""],[1,"p-autocomplete-token"],["token",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-autocomplete-token-label",4,"ngIf"],[1,"p-autocomplete-token-icon",3,"click"],[3,"styleClass",4,"ngIf"],["class","p-autocomplete-token-icon",4,"ngIf"],[1,"p-autocomplete-token-label"],[3,"styleClass"],[1,"p-autocomplete-token-icon"],[3,"styleClass","spin",4,"ngIf"],["class","p-autocomplete-loader pi-spin ",4,"ngIf"],[3,"styleClass","spin"],[1,"p-autocomplete-loader","pi-spin"],["type","button","pButton","","pRipple","",1,"p-autocomplete-dropdown","p-button-icon-only",3,"disabled","click"],["ddBtn",""],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","content"],["pTemplate","loader"],["role","listbox",1,"p-autocomplete-items",3,"ngClass"],["items",""],["itemslist",""],["class","p-autocomplete-empty-message",3,"ngStyle",4,"ngIf"],["ngFor","",3,"ngForOf"],[1,"p-autocomplete-item-group",3,"ngStyle"],["role","option","class","p-autocomplete-item","pRipple","",3,"ngStyle","ngClass","id","click",4,"ngFor","ngForOf"],["role","option","pRipple","",1,"p-autocomplete-item",3,"ngStyle","ngClass","id","click"],[1,"p-autocomplete-empty-message",3,"ngStyle"],[4,"ngIf","ngIfElse"],["empty",""]],template:function(n,o){1&n&&(e.TgZ(0,"span",0,1),e.YNc(2,ce,2,23,"input",2),e.YNc(3,he,3,2,"ng-container",3),e.YNc(4,Ae,6,23,"ul",4),e.YNc(5,Oe,3,2,"ng-container",3),e.YNc(6,Ne,4,5,"button",5),e.TgZ(7,"p-overlay",6,7),e.NdJ("visibleChange",function(p){return o.overlayVisible=p})("onAnimationStart",function(p){return o.onOverlayAnimationStart(p)})("onShow",function(p){return o.show(p)})("onHide",function(p){return o.hide(p)}),e.TgZ(9,"div",0),e.YNc(10,De,1,0,"ng-container",8),e.YNc(11,Ue,4,10,"p-scroller",9),e.YNc(12,Pe,2,6,"ng-container",3),e.YNc(13,rt,7,7,"ng-template",null,10,e.W1O),e.YNc(15,ct,1,0,"ng-container",8),e.qZA()()()),2&n&&(e.Tol(o.styleClass),e.Q6J("ngClass",e.WLB(27,ut,o.dropdown,o.multiple))("ngStyle",o.style),e.xp6(2),e.Q6J("ngIf",!o.multiple),e.xp6(1),e.Q6J("ngIf",o.filled&&!o.disabled&&o.showClear&&!o.loading),e.xp6(1),e.Q6J("ngIf",o.multiple),e.xp6(1),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",o.dropdown),e.xp6(1),e.Q6J("visible",o.overlayVisible)("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("autoZIndex",o.autoZIndex)("baseZIndex",o.baseZIndex)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions),e.xp6(2),e.Tol(o.panelStyleClass),e.Udp("max-height",o.virtualScroll?"auto":o.scrollHeight),e.Q6J("ngClass",e.DdM(30,dt))("ngStyle",o.panelStyle),e.xp6(1),e.Q6J("ngTemplateOutlet",o.headerTemplate),e.xp6(1),e.Q6J("ngIf",o.virtualScroll),e.xp6(1),e.Q6J("ngIf",!o.virtualScroll),e.xp6(3),e.Q6J("ngTemplateOutlet",o.footerTemplate))},dependencies:function(){return[_.mk,_.sg,_.O5,_.tP,_.PC,F.aV,h.jx,y.Hq,H.H,B.T,v.P,K.x,P.L,z.q,R.v]},styles:["@layer primeng{.p-autocomplete{display:inline-flex;position:relative}.p-autocomplete-loader{position:absolute;top:50%;margin-top:-.5rem}.p-autocomplete-dd .p-autocomplete-input{flex:1 1 auto;width:1%}.p-autocomplete-dd .p-autocomplete-input,.p-autocomplete-dd .p-autocomplete-multiple-container{border-top-right-radius:0;border-bottom-right-radius:0}.p-autocomplete-dd .p-autocomplete-dropdown{border-top-left-radius:0;border-bottom-left-radius:0}.p-autocomplete-panel{overflow:auto}.p-autocomplete-items{margin:0;padding:0;list-style-type:none}.p-autocomplete-item{cursor:pointer;white-space:nowrap;position:relative;overflow:hidden}.p-autocomplete-multiple-container{margin:0;padding:0;list-style-type:none;cursor:text;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap}.p-autocomplete-token{width:-moz-fit-content;width:fit-content;cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-autocomplete-token-icon{display:flex;cursor:pointer}.p-autocomplete-input-token{flex:1 1 auto;display:inline-flex}.p-autocomplete-input-token input{border:0 none;outline:0 none;background-color:transparent;margin:0;padding:0;box-shadow:none;border-radius:0;width:100%}.p-fluid .p-autocomplete{display:flex}.p-fluid .p-autocomplete-dd .p-autocomplete-input{width:1%}.p-autocomplete-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-autocomplete-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return i})(),_t=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=e.oAB({type:i});static \u0275inj=e.cJS({imports:[_.ez,F.U8,ee.j,y.hJ,h.m8,H.T,B.v,v.E,K.x,P.L,z.q,R.v,F.U8,h.m8,B.v,v.E]})}return i})();var ht=s(2712),gt=s(6215),ft=s(1601),Ct=s(3835),xt=s(5405),vt=s(3965),Tt=s(5025);const yt=["monacoEditorModalC"];function It(i,a){1&i&&e._UZ(0,"i",37)}function At(i,a){1&i&&e._UZ(0,"i",38)}function bt(i,a){if(1&i&&(e.TgZ(0,"div",34)(1,"span"),e._uU(2),e.qZA(),e.YNc(3,It,1,0,"i",35),e.YNc(4,At,1,0,"i",36),e.qZA()),2&i){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(2),e.Oqu(t.apiVersion),e.xp6(1),e.Q6J("ngIf",n.tpApiVersionIdMap&&n.tpApiVersionIdMap[t.bundleName]&&n.tpApiVersionIdMap[t.bundleName][t.apiVersion]),e.xp6(1),e.Q6J("ngIf",t.dockerFile)}}function St(i,a){1&i&&e.YNc(0,bt,5,3,"div",33),2&i&&e.Q6J("ngIf",a.$implicit)}function wt(i,a){1&i&&e._UZ(0,"i",37)}function Mt(i,a){1&i&&e._UZ(0,"i",38)}function Ot(i,a){if(1&i&&(e.TgZ(0,"div",34)(1,"span"),e._uU(2),e.qZA(),e.YNc(3,wt,1,0,"i",35),e.YNc(4,Mt,1,0,"i",36),e.qZA()),2&i){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(2),e.Oqu(t.apiVersion),e.xp6(1),e.Q6J("ngIf",n.tpApiVersionIdMap&&n.tpApiVersionIdMap[t.bundleName]&&n.tpApiVersionIdMap[t.bundleName][t.apiVersion]),e.xp6(1),e.Q6J("ngIf",t.dockerFile)}}function Et(i,a){1&i&&e.YNc(0,Ot,5,3,"div",33),2&i&&e.Q6J("ngIf",a.$implicit)}function kt(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"span",39),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.viewDockerfile())}),e._UZ(1,"i",40),e._uU(2," View dockerfile"),e.qZA()}}function Lt(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.uninstallSchema())}),e._uU(1,"Uninstall API Version "),e.qZA()}}function Zt(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"button",42),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.installVersionAndSchemaHandler("install"))}),e._uU(1,"Install API Version"),e.qZA()}}function Vt(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"button",43),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.installVersionAndSchemaHandler("uninstall"))}),e._uU(1,"Uninstall Library "),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("disabled",t.loading.form)}}function Nt(i,a){1&i&&e._UZ(0,"p-progressSpinner",44)}function Dt(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",5)(1,"div",6)(2,"span"),e._UZ(3,"i",7),e._uU(4," API Bundle Details"),e.qZA(),e.TgZ(5,"button",8)(6,"span",9),e._UZ(7,"i",10),e.qZA()()(),e.TgZ(8,"div",11)(9,"div",12),e._UZ(10,"img",13),e.qZA(),e.TgZ(11,"div",14)(12,"h6",15),e._uU(13),e.qZA(),e.TgZ(14,"div",16),e._uU(15),e.qZA(),e.TgZ(16,"div",17)(17,"div",18)(18,"span",19),e._uU(19,"API Version"),e.qZA(),e.TgZ(20,"p-dropdown",20),e.NdJ("onChange",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.selectedApiVersion=o.value)}),e.YNc(21,St,1,1,"ng-template",21),e.YNc(22,Et,1,1,"ng-template",22),e.qZA(),e.TgZ(23,"div",23),e.YNc(24,kt,3,0,"span",24),e.qZA()(),e.TgZ(25,"div",25)(26,"span",19),e._uU(27,"Operation"),e.qZA(),e.YNc(28,Lt,2,0,"button",26),e.YNc(29,Zt,2,0,"ng-template",null,27,e.W1O),e.qZA()()()(),e.TgZ(31,"div",28),e.YNc(32,Vt,2,1,"button",29),e.TgZ(33,"button",30),e._UZ(34,"i",31),e._uU(35," Close"),e.qZA()(),e.YNc(36,Nt,1,0,"p-progressSpinner",32),e.qZA()}if(2&i){const t=e.MAs(30),n=e.oxw();e.xp6(10),e.s9C("src",n.apiBundle.iconUrl,e.LSH),e.s9C("alt",n.apiBundle.name),e.xp6(3),e.Oqu(n.apiBundle.label),e.xp6(2),e.Oqu(n.apiBundle.description),e.xp6(5),e.Q6J("options",n.apiVersions)("ngModel",n.selectedApiVersion)("filter",!0),e.xp6(4),e.Q6J("ngIf",null==n.selectedApiVersion?null:n.selectedApiVersion.dockerFile),e.xp6(4),e.Q6J("ngIf",n.tpApiVersionIdMap&&n.tpApiVersionIdMap[null==n.selectedApiVersion?null:n.selectedApiVersion.bundleName]&&n.tpApiVersionIdMap[null==n.selectedApiVersion?null:n.selectedApiVersion.bundleName][null==n.selectedApiVersion?null:n.selectedApiVersion.apiVersion])("ngIfElse",t),e.xp6(4),e.Q6J("ngIf",n.tpApiVersionIdMap[n.apiBundle._id]),e.xp6(4),e.Q6J("ngIf",n.loading.form)}}let j=(()=>{class i{fb;ns;confirmationService;userS;generalS;cs;eventCenterCS;authCS;storeApisCS;cd;tpStoreApiVersionS;STORE_BE_HOST_PORT_SITES=T.N.STORE_BE_HOST_PORT_SITES;apiBundle;tpApiVersionIdMap;tpApiBundleIdMap;change=new e.vpe;loading={form:!1};subscriptions=[];selectedApiVersion;apiVersions=[];editorOptionsMonacoEditorModal={readOnly:!0,language:"dockerfile",contextmenu:!0};monacoEditorModalC;constructor(t,n,o,l,p,x,f,L,G,Q,U){this.fb=t,this.ns=n,this.confirmationService=o,this.userS=l,this.generalS=p,this.cs=x,this.eventCenterCS=f,this.authCS=L,this.storeApisCS=G,this.cd=Q,this.tpStoreApiVersionS=U}ngOnInit(){}init(){var t=this;return(0,u.Z)(function*(){if(!t.apiBundle)return;t.apiVersions=[],t.selectedApiVersion=void 0;const n={find:{bundleName:t.apiBundle.name,active:!0,apiVersionState:gt.B.PUBLISHED},select:{bundleName:1,apiVersion:1,dependencies:1,secretKeys:1,dockerFile:1}};t.apiVersions=(yield t.storeApisCS.storeAPIVersion(t.STORE_BE_HOST_PORT_SITES,n)).data,t.apiVersions.length&&(t.selectedApiVersion=t.apiVersions[0]),t.sortAPIVersions(),t.cd.detectChanges()})()}showLibraryModal(t){this.apiBundle=t,this.init(),this.loading.form=!1,$("#idLibDetailModal").modal("show"),this.cd.detectChanges()}hideLibraryModal(){$("#idLibDetailModal").modal("hide")}sortAPIVersions(){this.apiVersions.sort((t,n)=>ht(n.apiVersion,t.apiVersion))}installVersionAndSchemaHandler(t){var n=this;return(0,u.Z)(function*(){var o;n.selectedApiVersion.dockerFile?n.confirmationService.confirm({message:n.cs.appStore.dockerfileInstallConfirmation,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(o=(0,u.Z)(function*(){yield n.installOrUninstallAPIVersion(t)}),function(){return o.apply(this,arguments)})}):yield n.installOrUninstallAPIVersion(t)})()}installOrUninstallAPIVersion(t){var n=this;return(0,u.Z)(function*(){try{n.loading.form=!0;let o=null;"install"===t&&(o={apiBundleName:n.apiBundle.name,apiBundleLabel:n.apiBundle.label,storeApiVersion:n.selectedApiVersion.apiVersion,dependencies:n.selectedApiVersion.dependencies,secretKeys:n.selectedApiVersion.secretKeys,user:n.authCS.getUserId(),active:!0}),yield n.tpStoreApiVersionS.installApisFromStore(o,t).toPromise(),n.loading.form=!1,t.toString().toUpperCase(),n.ns.showSuccess("APIs installed successfully."),n.change.emit(Math.random())}catch(o){n.loading.form=!1,n.cd.detectChanges(),n.ns.showErrorFromResponse(o.error||o,"Unable to API bundle install.")}})()}uninstallSchema(){var t=this;return(0,u.Z)(function*(){t.loading.form=!0,yield t.tpStoreApiVersionS.uninstallSchemaApis(t.selectedApiVersion).toPromise(),t.ns.showSuccess("APIs uninstalled successfully."),t.change.emit(Math.random()),t.loading.form=!1})()}viewDockerfile(){this.monacoEditorModalC.showModal(this.selectedApiVersion.dockerFile,ft.d.dockerfile)}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}static \u0275fac=function(n){return new(n||i)(e.Y36(c.qu),e.Y36(m.W),e.Y36(h.YP),e.Y36(Ct.K),e.Y36(Z.b),e.Y36(w.L),e.Y36(xt.M),e.Y36(r.D),e.Y36(V.V),e.Y36(e.sBO),e.Y36(d.f))};static \u0275cmp=e.Xpm({type:i,selectors:[["app-lib-details-modal"]],viewQuery:function(n,o){if(1&n&&e.Gf(yt,5),2&n){let l;e.iGM(l=e.CRH())&&(o.monacoEditorModalC=l.first)}},inputs:{tpApiVersionIdMap:"tpApiVersionIdMap",tpApiBundleIdMap:"tpApiBundleIdMap"},outputs:{change:"change"},decls:5,vars:4,consts:[["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idLibDetailModal","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal"],["role","document",1,"modal-dialog"],["class","modal-content",4,"ngIf"],[3,"modalId","editorOptionsMonacoEditorModal","modalTitle"],["monacoEditorModalC",""],[1,"modal-content"],[1,"modal-header"],[1,"fas","fa-cube","text-info","fa-fw","mr-1"],["aria-label","Close","data-dismiss","modal","type","button",1,"close"],["aria-hidden","true"],[1,"fas","fa-window-close"],[1,"modal-body","overflow-auto","pt-3"],[1,"pl-4","pr-4","pt-2","text-center",2,"height","125px"],[1,"card-img-top","mt-3",2,"height","70%","width","auto",3,"src","alt"],[1,"p-2"],[1,"card-title","mb-3","text-overflow-ellipsis"],[1,"small","line-height-1","mt-2","block-desc"],[1,"row","mt-2","mb-4"],[1,"col-6","pr-0"],[1,"bold","small"],["filterBy","schemaVersion","appendTo","body","styleClass","w-100 p-input-filled",3,"options","ngModel","filter","onChange"],["pTemplate","item"],["pTemplate","selectedItem"],[1,"text-right"],["class","small text-info cursor-pointer",3,"click",4,"ngIf"],[1,"col-6"],["class","btn btn-sm btn-warning btn-block","type","button",3,"click",4,"ngIf","ngIfElse"],["install",""],[1,"modal-footer","d-block"],["class","btn btn-sm btn-danger","type","button",3,"disabled","click",4,"ngIf"],["data-dismiss","modal","type","button",1,"btn","btn-sm","btn-secondary","float-right"],[1,"fas","fa-times","text-danger","fa-fw"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],["class","text-nowrap w-100",4,"ngIf"],[1,"text-nowrap","w-100"],["class","fas fa-check fa-fw float-right text-success pt-1 ml-2",4,"ngIf"],["class","fab fa-docker fa-fw float-right text-info pt-1",4,"ngIf"],[1,"fas","fa-check","fa-fw","float-right","text-success","pt-1","ml-2"],[1,"fab","fa-docker","fa-fw","float-right","text-info","pt-1"],[1,"small","text-info","cursor-pointer",3,"click"],[1,"fab","fa-docker"],["type","button",1,"btn","btn-sm","btn-warning","btn-block",3,"click"],["type","button",1,"btn","btn-sm","btn-success","btn-block",3,"click"],["type","button",1,"btn","btn-sm","btn-danger",3,"disabled","click"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,Dt,37,12,"div",2),e.qZA()(),e._UZ(3,"app-monaco-editor-modal",3,4)),2&n&&(e.xp6(2),e.Q6J("ngIf",o.apiBundle),e.xp6(1),e.Q6J("modalId","idViewDockerfileModel")("editorOptionsMonacoEditorModal",o.editorOptionsMonacoEditorModal)("modalTitle","View dockerfile"))},dependencies:[c.JJ,c.On,_.O5,h.jx,E.G,vt.Lt,Tt.A],encapsulation:2,changeDetection:0})}return i})();var Jt=s(4066);const Yt=["libDetailModalC"];function Ft(i,a){1&i&&(e.TgZ(0,"span",26),e._uU(1,"Installed"),e.qZA())}function Bt(i,a){1&i&&(e.TgZ(0,"span",27),e._uU(1,"Install"),e.qZA())}function Gt(i,a){if(1&i&&(e.TgZ(0,"div",23),e.YNc(1,Ft,2,0,"span",24),e.YNc(2,Bt,2,0,"span",25),e.qZA()),2&i){const t=e.oxw().$implicit,n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.tpApiBundleIdMap[t.name]),e.xp6(1),e.Q6J("ngIf",!n.tpApiBundleIdMap[t.name])}}function Qt(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",14),e.NdJ("click",function(){const l=e.CHM(t).$implicit,p=e.oxw();return e.KtG(p.libraryClick(l))}),e.TgZ(1,"div",15),e._UZ(2,"img",16),e.qZA(),e.TgZ(3,"div",17)(4,"h6",18),e._uU(5),e.qZA(),e.TgZ(6,"div",19)(7,"span",20),e._uU(8),e.ALo(9,"moment"),e.qZA()(),e.TgZ(10,"div",21),e._uU(11),e.qZA(),e.YNc(12,Gt,3,2,"div",22),e.qZA()()}if(2&i){const t=a.$implicit,n=e.oxw();e.xp6(2),e.s9C("src",t.iconUrl,e.LSH),e.s9C("alt",t.label),e.xp6(3),e.Oqu(t.label),e.xp6(2),e.Q6J("pTooltip","Last published on."),e.xp6(1),e.Oqu(e.xi3(9,7,t.lastPublished,n.cs.DATE_FORMAT_USER)),e.xp6(3),e.Oqu(t.description),e.xp6(1),e.Q6J("ngIf",n.tpApiBundleIdMap)}}function Ut(i,a){1&i&&e._UZ(0,"p-progressSpinner",28)}const Ht=function(){return{"padding-top":"5px","padding-bottom":"5px","padding-left":"5px",width:"1000px"}};let X=(()=>{class i{generalS;instanceS;cs;storeApisCS;feStoreCS;authCS;tpStoreApiVersionS;notificationS;eventCenterS;constantsS;cd;searchText="";autoCompleteData=[];virtual={itemHeight:28};apiBundles=[];selectedLib;tpApiVersionIdMap={};tpApiBundleIdMap={};loading={apiPackages:!1};STORE_BE_HOST_PORT_SITES=T.N.STORE_BE_HOST_PORT_SITES;STORE_IMAGE_DOMAIN=T.N.STORE_IMAGE_DOMAIN;LICENSE_KEY=T.N.LICENSE_KEY;passStoreCommunication=T.N.crypto.passStoreCommunication;libDetailModalC;constructor(t,n,o,l,p,x,f,L,G,Q,U){this.generalS=t,this.instanceS=n,this.cs=o,this.storeApisCS=l,this.feStoreCS=p,this.authCS=x,this.tpStoreApiVersionS=f,this.notificationS=L,this.eventCenterS=G,this.constantsS=Q,this.cd=U}ngOnInit(){this.loadAutoComplete(),this.findAPIBundles(),this.loadDependenciesAndSchemas(),this.generalS.setNewTitle("API Maker Store")}findAPIBundles(){var t=this;return(0,u.Z)(function*(){t.searchText=t.searchText.trim(),t.loading.apiPackages=!0,setTimeout((0,u.Z)(function*(){t.apiBundles=(yield t.storeApisCS.findAPIBundles(t.STORE_BE_HOST_PORT_SITES,{name:{$regex:`.*(${t.searchText}).*`,$options:"i"},apiBundleState:O.PUBLISHED}).toPromise()).data,yield t.feStoreCS.setDefaultLibIcon(t.STORE_IMAGE_DOMAIN,t.apiBundles),t.loading.apiPackages=!1,t.cd.detectChanges()})),t.cd.detectChanges()})()}loadAutoComplete(){var t=this;return(0,u.Z)(function*(){t.autoCompleteData=(yield t.storeApisCS.distinct_field(t.STORE_BE_HOST_PORT_SITES,{},"name","asc",t.LICENSE_KEY,t.passStoreCommunication).toPromise()).data,t.cd.detectChanges()})()}loadDependenciesAndSchemas(){var t=this;return(0,u.Z)(function*(){const{tpApiVersionIdMap:n,tpApiBundleIdMap:o}=(yield t.instanceS.getInstalledPackagesAndSchemas().toPromise()).data;t.tpApiVersionIdMap=n,t.tpApiBundleIdMap=o,t.cd.detectChanges()})()}versionChanged(){var t=this;return(0,u.Z)(function*(){yield t.loadDependenciesAndSchemas()})()}libraryClick(t){var n=this;return(0,u.Z)(function*(){n.selectedLib=t,n.libDetailModalC.showLibraryModal(n.selectedLib)})()}static \u0275fac=function(n){return new(n||i)(e.Y36(Z.b),e.Y36(S.E),e.Y36(w.L),e.Y36(V.V),e.Y36(Y.e),e.Y36(r.D),e.Y36(d.f),e.Y36(m.W),e.Y36(C.u),e.Y36(w.L),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:i,selectors:[["app-app-store-layout"]],viewQuery:function(n,o){if(1&n&&e.Gf(Yt,5),2&n){let l;e.iGM(l=e.CRH())&&(o.libDetailModalC=l.first)}},decls:18,vars:9,consts:[[1,"p-1"],[1,"container","mt-3"],[1,"row"],[1,"col-12"],[1,"text-center","mb-3"],[1,"input-group","input-group-lg","mb-3","shadow-sm"],["inputStyleClass","form-control","placeholder","Search Package",3,"ngModel","suggestions","ngModelChange","keyup.enter"],[1,"input-group-append"],["type","button","id","button-addon2",1,"btn","btn-primary",3,"click"],[1,"d-flex","flex-wrap","justify-content-center","overflow-auto",2,"height","calc(100vh - 206px)","align-content","flex-start"],["class","card shadow-sm d-inline-block m-2 cursor-pointer","style","width: 14rem; height: 280px; overflow: hidden;",3,"click",4,"ngFor","ngForOf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"tpApiVersionIdMap","tpApiBundleIdMap","change"],["libDetailModalC",""],[1,"card","shadow-sm","d-inline-block","m-2","cursor-pointer",2,"width","14rem","height","280px","overflow","hidden",3,"click"],[1,"pl-4","pr-4","pt-2","text-center",2,"height","125px"],[1,"card-img-top","mt-3",2,"height","70%","width","auto",3,"src","alt"],[1,"pl-2","pr-2","pb-2"],[1,"card-title","mb-2","line-height-1-plain","block-desc-2-lines","text-center",2,"color","#D27E00"],[1,"mb-1","text-right"],[1,"small","text-warning","italic",3,"pTooltip"],[1,"small","line-height-1","block-desc-4-lines","text-center"],["class","text-right",4,"ngIf"],[1,"text-right"],["class","text-muted pr-1 italic small",4,"ngIf"],["class","text-info pr-1 small",4,"ngIf"],[1,"text-muted","pr-1","italic","small"],[1,"text-info","pr-1","small"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"div")(2,"div",1)(3,"div",2)(4,"div",3)(5,"h2",4),e._uU(6,"API Maker Store"),e.qZA()(),e.TgZ(7,"div",3)(8,"div",5)(9,"p-autoComplete",6),e.NdJ("ngModelChange",function(p){return o.searchText=p})("keyup.enter",function(){return o.findAPIBundles()}),e.qZA(),e.TgZ(10,"div",7)(11,"button",8),e.NdJ("click",function(){return o.findAPIBundles()}),e._uU(12,"Search"),e.qZA()()()()()()(),e.TgZ(13,"div",9),e.YNc(14,Qt,13,10,"div",10),e.YNc(15,Ut,1,0,"p-progressSpinner",11),e.qZA()(),e.TgZ(16,"app-lib-details-modal",12,13),e.NdJ("change",function(){return o.versionChanged()}),e.qZA()),2&n&&(e.xp6(9),e.Akn(e.DdM(8,Ht)),e.Q6J("ngModel",o.searchText)("suggestions",o.autoCompleteData),e.xp6(5),e.Q6J("ngForOf",o.apiBundles),e.xp6(1),e.Q6J("ngIf",o.loading.apiPackages),e.xp6(1),e.Q6J("tpApiVersionIdMap",o.tpApiVersionIdMap)("tpApiBundleIdMap",o.tpApiBundleIdMap))},dependencies:[c.JJ,c.On,_.sg,_.O5,E.G,M.u,W,j,Jt.d],styles:[".block-desc-2-lines[_ngcontent-%COMP%]{height:30px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.block-desc-4-lines[_ngcontent-%COMP%]{height:60px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0})}return i})();var Kt=s(3726),Pt=s(4950);const zt=[{path:"main",component:X,canActivate:[Kt.P]}];let Rt=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=e.oAB({type:i});static \u0275inj=e.cJS({imports:[I.Bz.forChild(zt),g.u,Pt.A,_t]})}return i})()},2712:function(J,b){var s,g;void 0!==(g="function"==typeof(s=function(){var u=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function O(r){var d=r.replace(/^v/,"").replace(/\+.*$/,""),m=function T(r,d){return-1===r.indexOf(d)?r.length:r.indexOf(d)}(d,"-"),C=d.substring(0,m).split(".");return C.push(d.substring(m+1)),C}function e(r){return isNaN(Number(r))?r:Number(r)}function Z(r){if("string"!=typeof r)throw new TypeError("Invalid argument expected string");if(!u.test(r))throw new Error("Invalid argument not valid semver ('"+r+"' received)")}function S(r,d){[r,d].forEach(Z);for(var m=O(r),C=O(d),c=0;c<Math.max(m.length-1,C.length-1);c++){var _=parseInt(m[c]||0,10),E=parseInt(C[c]||0,10);if(_>E)return 1;if(E>_)return-1}var M=m[m.length-1],h=C[C.length-1];if(M&&h){var v=M.split(".").map(e),y=h.split(".").map(e);for(c=0;c<Math.max(v.length,y.length);c++){if(void 0===v[c]||"string"==typeof y[c]&&"number"==typeof v[c])return-1;if(void 0===y[c]||"string"==typeof v[c]&&"number"==typeof y[c]||v[c]>y[c])return 1;if(y[c]>v[c])return-1}}else if(M||h)return M?-1:1;return 0}var w=[">",">=","=","<","<="],V={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return S.validate=function(r){return"string"==typeof r&&u.test(r)},S.compare=function(r,d,m){!function Y(r){if("string"!=typeof r)throw new TypeError("Invalid operator type, expected string but got "+typeof r);if(-1===w.indexOf(r))throw new TypeError("Invalid operator, expected one of "+w.join("|"))}(m);var C=S(r,d);return V[m].indexOf(C)>-1},S})?s.apply(b,[]):s)&&(J.exports=g)}}]);
|