@sava-info-systems/api-maker-with-extensions 1.9.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/1025.js +1 -1
- package/dist/1097.js +1 -1
- package/dist/148.js +1 -1
- package/dist/1558.js +1 -1
- package/dist/1678.js +1 -1
- package/dist/1754.js +1 -1
- package/dist/1928.js +1 -1
- package/dist/1957.js +1 -1
- package/dist/2140.js +1 -1
- package/dist/2295.js +1 -1
- package/dist/2473.js +1 -1
- package/dist/2714.js +1 -1
- package/dist/2735.js +1 -1
- package/dist/2908.js +1 -1
- package/dist/3139.js +1 -1
- package/dist/3450.js +1 -1
- package/dist/4110.js +1 -1
- package/dist/4181.js +1 -1
- package/dist/4186.js +1 -1
- package/dist/4211.js +1 -1
- package/dist/4575.js +1 -1
- package/dist/4842.js +1 -1
- package/dist/485.js +1 -1
- package/dist/4895.js +1 -1
- package/dist/5249.js +1 -1
- package/dist/5334.js +1 -1
- package/dist/5421.js +1 -1
- package/dist/5679.js +1 -1
- package/dist/5761.js +1 -1
- package/dist/5765.js +1 -1
- package/dist/6236.js +1 -1
- package/dist/6393.js +1 -1
- package/dist/6401.js +1 -1
- package/dist/7368.js +1 -1
- package/dist/7436.js +1 -1
- package/dist/7470.js +1 -1
- package/dist/7649.js +1 -1
- package/dist/7975.js +1 -1
- package/dist/7977.js +1 -1
- package/dist/7987.js +1 -1
- package/dist/8125.js +1 -1
- package/dist/8266.js +1 -1
- package/dist/8296.js +1 -1
- package/dist/8841.js +1 -1
- package/dist/885.js +1 -1
- package/dist/891.js +1 -1
- package/dist/913.js +1 -1
- package/dist/9243.js +1 -1
- package/dist/9575.js +1 -1
- package/dist/9939.js +1 -1
- package/dist/assets/schema-types/InterfaceProps.ts +3 -1
- package/dist/assets/schema-types/types.ts +313 -12
- package/dist/assets/swagger/index.html +4 -0
- package/dist/common.js +1 -1
- package/dist/index.html +4 -1
- package/dist/main.js +1 -1
- package/main.js +1 -1
- package/package.json +6 -5
- package/sandbox/assets/schema-types/types.js +41 -0
- package/sandbox/sandbox.js +1 -1
- package/src/assets/schema-types/types.ts +313 -12
- package/src/public/dist-db-masters/browser/main.js +49 -49
- package/src/public/index.hbs +2 -2
package/dist/4186.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[4186],{4186:(at,M,o)=>{o.r(M),o.d(M,{SystemApiM:()=>O});var g=o(7664),t=o(8176),m=o(4946),S=o(9329);let A=(()=>{class s{constructor(){}ngOnInit(){}static \u0275fac=function(u){return new(u||s)};static \u0275cmp=m.Xpm({type:s,selectors:[["app-system-api-layout"]],decls:2,vars:1,consts:[[1,"pt-1","pl-1","pr-1"],[3,"showCheckbox"]],template:function(u,b){1&u&&(m.TgZ(0,"div",0),m._UZ(1,"app-system-api-w",1),m.qZA()),2&u&&(m.xp6(1),m.Q6J("showCheckbox",!1))},dependencies:[S.X],encapsulation:2})}return s})();var f=o(3726),I=(o(3219),o(4950));const E=[{path:"layout",component:A,canActivate:[f.P]}];let O=(()=>{class s{static \u0275fac=function(u){return new(u||s)};static \u0275mod=m.oAB({type:s});static \u0275inj=m.cJS({imports:[g.Bz.forChild(E),t.u,I.A]})}return s})()},3219:(at,M,o)=>{o.d(M,{S:()=>st});var g=o(5861),t=o(3157),m=o(328),S=o(7672),A=o(9361),f=o(1162),P=o(553),I=o(5085),E=o(1601),x=o(3531),O=o(9989),s=o(4946),W=o(9961),D=o(6457),u=o(7240),b=o(2304),F=o(3429),K=o(7414),N=o(5852),B=o(6814),Z=o(2660),U=o(5860),G=o(756),T=o(7680),J=o(3259),Y=o(5025);const Q=["monacoEditorModalC"],k=["insertCodeModalC"];function H(d,h){1&d&&(s.TgZ(0,"span"),s._UZ(1,"i",26),s._uU(2," Add System API Setting"),s.qZA())}function V(d,h){1&d&&(s.TgZ(0,"span"),s._UZ(1,"i",27),s._uU(2," View System API Setting"),s.qZA())}function j(d,h){1&d&&(s.TgZ(0,"span"),s._UZ(1,"i",28),s._uU(2," Edit System API Setting"),s.qZA())}function X(d,h){if(1&d){const a=s.EpF();s.TgZ(0,"a",29),s.NdJ("click",function(){s.CHM(a);const r=s.oxw();return s.KtG(r.viewError())}),s._uU(1,"View error"),s.qZA()}}function z(d,h){1&d&&(s.TgZ(0,"span"),s._uU(1,"Save"),s.qZA())}function q(d,h){1&d&&(s.TgZ(0,"span"),s._uU(1,"Update"),s.qZA())}function tt(d,h){if(1&d){const a=s.EpF();s.TgZ(0,"button",30),s.NdJ("click",function(){s.CHM(a);const r=s.oxw();return s.KtG(r.save())}),s._UZ(1,"i",31),s.YNc(2,z,2,0,"span",4),s.YNc(3,q,2,0,"span",4),s.qZA()}if(2&d){const a=s.oxw();s.xp6(2),s.Q6J("ngIf",a.data.mode===a.EFormMode.ADD),s.xp6(1),s.Q6J("ngIf",a.data.mode===a.EFormMode.EDIT)}}function et(d,h){1&d&&s._UZ(0,"p-progressSpinner",32)}let st=(()=>{class d{ns;systemApiSettingsS;generalS;monacoS;instanceS;constantsS;authCS;generalCS;EAPIAccessType=S.di;data;loading={form:!1};EFormMode=m.D;subscriptions=[];editorSysApiCode;editorOptionsSysApi={readOnly:!1,language:"typescript",contextmenu:!0};lastError;editorOptionsMonacoEditorModal={readOnly:!0,language:"json",contextmenu:!0};monacoDecorations=[];tab;BE_HOST_PORT=P.N.BE_HOST_PORT;viewDockerfileModelC;DOCS_HOST_PORT=P.N.DOCS_HOST_PORT;insertCodeModalC;constructor(a,l,r,y,R,nt,it,ot){this.ns=a,this.systemApiSettingsS=l,this.generalS=r,this.monacoS=y,this.instanceS=R,this.constantsS=nt,this.authCS=it,this.generalCS=ot}ngOnInit(){var a=this;this.subscriptions.push(this.data.eventChannel.subscribe(function(){var l=(0,g.Z)(function*(r){r&&(r.action===t.F.OPEN_FORM_IN_EDIT_MODE||r.action===t.F.OPEN_FORM_IN_VIEW_MODE?a.editorSysApiCode&&(a.data.formData.sysApiSettingCode?a.generalCS.setValueInEditor(a,"editorSysApiCode",a.data.formData.sysApiSettingCode):a.loadSysApiCode()):r.action===t.F.OPEN_FORM_IN_ADD_MODE&&a.loadSysApiCode())});return function(r){return l.apply(this,arguments)}}()))}loadSysApiCode(){var a=this;return(0,g.Z)(function*(){const l=yield a.instanceS.getDefaultContent(a.BE_HOST_PORT,I.R.SYSTEM_APIS).toPromise();a.generalCS.setValueInEditor(a,"editorSysApiCode",l.data)})()}showInsertCodeModel(){this.generalCS.messageReceivedFor=A.H.Settings,this.insertCodeModalC.showModal(x.b.SystemApiFormC)}editorGenerated(a){var l=this;return(0,g.Z)(function*(){l.editorSysApiCode=a,yield l.monacoS.loadSchemaEditorSettings(l.BE_HOST_PORT,l.authCS.getUserId(),null),l.monacoS.addSaveCodeKeyBinding(a,r=>{l.data.mode!==m.D.VIEW&&l.save()}),l.monacoS.addInsertCodeKeyBinding(a,r=>{l.generalCS.messageReceivedFor=A.H.All,l.data.mode!==m.D.VIEW&&l.insertCodeModalC.showModal(x.b.SystemApiFormC)}),l.subscriptions.push(l.generalS.messageReceived.subscribe(r=>{r.type&&r.type===O.g.TEXT_COPIED&&(l.monacoS.insertAtCursor(a,r.selectedText),l.insertCodeModalC.hideModal())}))})()}showModal(){this.lastError=void 0,$("#idSystemApiForm").modal("show")}hideModal(){$("#idSystemApiForm").modal("hide")}save(){var a=this;return(0,g.Z)(function*(){const l={};l.user=a.authCS.getUserId(),l.sysApiSettingCode=a.editorSysApiCode.getValue(),l.apiId=a.data.formData.apiId;try{let r;a.loading.form=!0,a.lastError=void 0,a.monacoS.clearEditorDecorations(a.editorSysApiCode,a.monacoDecorations),a.data.mode!==m.D.ADD&&a.data.formData._id?a.data.mode===m.D.EDIT&&(r=yield a.systemApiSettingsS.replace(a.data.formData._id,l,{select:f.iH._id}).toPromise()):r=yield a.systemApiSettingsS.post(l).toPromise(),a.ns.showSuccess(a.data.mode===m.D.ADD?a.constantsS.systemApi.addSuccess:a.constantsS.systemApi.editSuccess),a.data.eventChannel.emit({action:a.data.mode===m.D.ADD?t.F.SAVED:t.F.UPDATED}),a.loading.form=!1}catch(r){a.loading.form=!1,a.ns.showErrorFromResponse(r.error||r,"Unable to save system API."),a.lastError=r.error,a.tab=a.tab||{},a.tab.axiosResponse={data:r.error},a.monacoS.highlightErrorInMonacoEditor(a.editorSysApiCode,a.tab,"MainSandbox.ts",a.monacoDecorations)}})()}viewError(){this.viewDockerfileModelC.showModal(this.generalS.stringify(this.lastError),E.d.json)}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}static \u0275fac=function(l){return new(l||d)(s.Y36(W.W),s.Y36(D.J),s.Y36(u.b),s.Y36(b.b),s.Y36(F.E),s.Y36(K.L),s.Y36(N.D),s.Y36(u.b))};static \u0275cmp=s.Xpm({type:d,selectors:[["app-w-system-api-form"]],viewQuery:function(l,r){if(1&l&&(s.Gf(Q,5),s.Gf(k,5)),2&l){let y;s.iGM(y=s.CRH())&&(r.viewDockerfileModelC=y.first),s.iGM(y=s.CRH())&&(r.insertCodeModalC=y.first)}},inputs:{data:"data"},decls:29,vars:14,consts:[["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idSystemApiForm","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal"],["role","document",1,"modal-dialog","modal-full"],[1,"modal-content"],[1,"modal-header"],[4,"ngIf"],[1,"float-right"],["aria-label","Close","data-dismiss","modal","type","button",1,"close"],["aria-hidden","true"],[1,"fas","fa-window-close"],["pTooltip","Insert Code","sava-no-dbl-click","",1,"cursor-pointer","mr-1",2,"font-size","1.4em",3,"click"],[1,"fas","fa-info-circle","text-info","fa-fw"],["href","https://docs.apimaker.dev/v1/docs/settings/systemApiSettings.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"fa-fw","ml-2","mr-1","mt-n2",2,"font-size","25px"],[1,"modal-body","overflow-auto"],[1,"overflow-hidden",2,"height","calc(100vh - 158px)"],[3,"isSchemaEditor","editorOptions","editorGenerated"],[1,"modal-footer"],["href","javascript:;","class","text-danger",3,"click",4,"ngIf"],["data-dismiss","modal","type","button",1,"btn","btn-sm","btn-secondary"],[1,"fas","fa-times","text-danger","fa-fw"],["class","btn btn-primary btn-sm","sava-no-dbl-click","","type","button",3,"click",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"modalId","editorOptionsMonacoEditorModal","modalTitle"],["monacoEditorModalC",""],[3,"frameId","modalId","docsHostPort"],["insertCodeModalC",""],[1,"fas","fa-plus","text-success","fa-fw","mr-1"],[1,"far","fa-eye","text-info","fa-fw","mr-1"],[1,"fas","fa-pencil-alt","text-light","fa-fw","mr-1"],["href","javascript:;",1,"text-danger",3,"click"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"click"],[1,"fas","fa-save","text-success","fa-fw","mr-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(l,r){1&l&&(s.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),s.YNc(4,H,3,0,"span",4),s.YNc(5,V,3,0,"span",4),s.YNc(6,j,3,0,"span",4),s.TgZ(7,"div",5)(8,"button",6)(9,"span",7),s._UZ(10,"i",8),s.qZA()(),s.TgZ(11,"span",9),s.NdJ("click",function(){return r.showInsertCodeModel()}),s._UZ(12,"i",10),s.qZA(),s.TgZ(13,"a",11),s._UZ(14,"img",12),s.qZA()()(),s.TgZ(15,"div",13)(16,"div",14)(17,"app-monaco-editor",15),s.NdJ("editorGenerated",function(R){return r.editorGenerated(R)}),s.qZA()()(),s.TgZ(18,"div",16),s.YNc(19,X,2,0,"a",17),s.TgZ(20,"button",18),s._UZ(21,"i",19),s._uU(22," Close"),s.qZA(),s.YNc(23,tt,4,2,"button",20),s.qZA(),s.YNc(24,et,1,0,"p-progressSpinner",21),s.qZA()()(),s._UZ(25,"app-monaco-editor-modal",22,23)(27,"app-insert-code-modal",24,25)),2&l&&(s.xp6(4),s.Q6J("ngIf",r.data.mode===r.EFormMode.ADD),s.xp6(1),s.Q6J("ngIf",r.data.mode===r.EFormMode.VIEW),s.xp6(1),s.Q6J("ngIf",r.data.mode===r.EFormMode.EDIT),s.xp6(11),s.Q6J("isSchemaEditor",!0)("editorOptions",r.editorOptionsSysApi),s.xp6(2),s.Q6J("ngIf",r.lastError),s.xp6(4),s.Q6J("ngIf",r.data.mode!==r.EFormMode.VIEW),s.xp6(1),s.Q6J("ngIf",r.loading.form),s.xp6(1),s.Q6J("modalId","idMonacoEditorModalInSysApi")("editorOptionsMonacoEditorModal",r.editorOptionsMonacoEditorModal)("modalTitle","Error info"),s.xp6(2),s.Q6J("frameId","idInsertCodeSystemAPI")("modalId","idInsertCodeSystemAPIForm")("docsHostPort",r.DOCS_HOST_PORT))},dependencies:[B.O5,Z.y,U.P,G.O,T.G,J.u,Y.A],encapsulation:2})}return d})()},9329:(at,M,o)=>{o.d(M,{X:()=>St});var g=o(5861),t=o(4946),m=o(3157),S=o(328),A=o(6212),f=o(6990),I=o(5085),E=o(1162),x=o(6925),O=o(921),s=o(6457),W=o(3429),D=o(7240),u=o(9961),b=o(5219),F=o(2189),K=o(5852),N=o(7414),B=o(2915),Z=o(7664),U=o(95),G=o(6814),T=o(5431),J=o(7680),Y=o(3259),Q=o(8057),k=o(3219);const H=["systemApiFormC"];function V(i,p){if(1&i){const e=t.EpF();t.TgZ(0,"span",13)(1,"label",14)(2,"p-checkbox",15),t.NdJ("ngModelChange",function(_){t.CHM(e);const c=t.oxw();return t.KtG(c.eventCenterS.group.apisRegex.allSystemApis=_)}),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("ngModel",e.eventCenterS.group.apisRegex.allSystemApis)("binary",!0)}}function j(i,p){if(1&i){const e=t.EpF();t.TgZ(0,"span",16)(1,"label",14)(2,"p-checkbox",15),t.NdJ("ngModelChange",function(_){t.CHM(e);const c=t.oxw();return t.KtG(c.eventCenterS.filterInLog.apisRegex.allSystemApis=_)}),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("ngModel",e.eventCenterS.filterInLog.apisRegex.allSystemApis)("binary",!0)}}function X(i,p){if(1&i&&(t.TgZ(0,"div")(1,"div",17),t._uU(2),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(e.constantsS.group.allSystemApisPermitted)}}function z(i,p){1&i&&(t.TgZ(0,"th",26),t._UZ(1,"p-tableHeaderCheckbox"),t.qZA())}function q(i,p){1&i&&t._UZ(0,"th",27)}function tt(i,p){1&i&&(t.TgZ(0,"th"),t._uU(1,"Authorization"),t.qZA())}function et(i,p){1&i&&t._UZ(0,"th")}function st(i,p){1&i&&t._UZ(0,"th",28)}function d(i,p){if(1&i&&(t.TgZ(0,"tr"),t.YNc(1,z,2,0,"th",23),t.YNc(2,q,1,0,"th",24),t.TgZ(3,"th"),t._uU(4,"Name"),t.qZA(),t.TgZ(5,"th"),t._uU(6,"URL"),t.qZA(),t.YNc(7,tt,2,0,"th",9),t.YNc(8,et,1,0,"th",9),t.YNc(9,st,1,0,"th",25),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(5),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 h(i,p){if(1&i&&(t.TgZ(0,"td"),t._UZ(1,"p-tableCheckbox",31),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("value",e)("pSelectableRow",e)}}function a(i,p){if(1&i&&(t.TgZ(0,"td",32)(1,"span"),t._uU(2),t.qZA()()),2&i){const e=t.oxw().rowIndex;t.xp6(2),t.Oqu(e+1)}}function l(i,p){1&i&&(t.TgZ(0,"span",36),t._uU(1,"AM-User"),t.qZA())}function r(i,p){1&i&&(t.TgZ(0,"span",37),t._uU(1,"No-Access"),t.qZA())}function y(i,p){1&i&&(t.TgZ(0,"span",38),t._uU(1,"Public"),t.qZA())}function R(i,p){1&i&&(t.TgZ(0,"span",37),t._uU(1,"DB-User"),t.qZA())}function nt(i,p){1&i&&(t.TgZ(0,"span",37),t._uU(1,"AWS"),t.qZA())}function it(i,p){1&i&&(t.TgZ(0,"span",37),t._uU(1,"Azure"),t.qZA())}function ot(i,p){1&i&&(t.TgZ(0,"span",37),t._uU(1,"Google"),t.qZA())}function _t(i,p){if(1&i&&(t.TgZ(0,"td"),t.YNc(1,l,2,0,"span",33),t.YNc(2,r,2,0,"span",34),t.YNc(3,y,2,0,"span",35),t.YNc(4,R,2,0,"span",34),t.YNc(5,nt,2,0,"span",34),t.YNc(6,it,2,0,"span",34),t.YNc(7,ot,2,0,"span",34),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 rt(i,p){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"label",39)(2,"p-checkbox",40),t.NdJ("ngModelChange",function(_){t.CHM(e);const c=t.oxw(2).$implicit;return t.KtG(c.saveResponseInLog=_)})("click",function(_){t.CHM(e);const c=t.oxw(4);return t.KtG(c.generalS.stopPropagation(_))}),t.qZA()()()}if(2&i){const e=t.oxw(2).$implicit;t.xp6(2),t.Q6J("ngModel",e.saveResponseInLog)("binary",!0)}}function lt(i,p){if(1&i&&(t.TgZ(0,"td"),t.YNc(1,rt,3,2,"div",9),t.qZA()),2&i){const e=t.oxw().$implicit,n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",n.selectedRows.indexOf(e)>=0)}}function pt(i,p){if(1&i){const e=t.EpF();t.TgZ(0,"button",46),t.NdJ("click",function(){t.CHM(e);const _=t.oxw(2).$implicit,c=t.oxw(2);return t.KtG(c.add(_))}),t._UZ(1,"i",47),t.qZA()}}function ct(i,p){if(1&i){const e=t.EpF();t.TgZ(0,"button",48),t.NdJ("click",function(){t.CHM(e);const _=t.oxw(2).$implicit,c=t.oxw(2);return t.KtG(c.edit(_))}),t._UZ(1,"i",49),t.qZA()}}function dt(i,p){if(1&i){const e=t.EpF();t.TgZ(0,"button",50),t.NdJ("click",function(){t.CHM(e);const _=t.oxw(2).$implicit,c=t.oxw(2);return t.KtG(c.removePermanentDialog(_))}),t._UZ(1,"i",51),t.qZA()}}const mt=function(){return["/api-info/api-testing/testing"]},gt=function(i,p,e){return{at_category:i,at_user:p,at_api:e}};function ft(i,p){if(1&i){const e=t.EpF();t.TgZ(0,"td")(1,"div")(2,"a",41),t.NdJ("click",function(_){t.CHM(e);const c=t.oxw().$implicit,v=t.oxw(2);return _.stopPropagation(),t.KtG(v.selectedRows=[c])}),t._UZ(3,"i",42),t.qZA(),t.YNc(4,pt,2,0,"button",43),t.YNc(5,ct,2,0,"button",44),t.YNc(6,dt,2,0,"button",45),t.qZA()()}if(2&i){const e=t.oxw().$implicit,n=t.oxw(2);t.xp6(2),t.Q6J("routerLink",t.DdM(5,mt))("queryParams",t.kEZ(6,gt,n.EAPICategory.SYSTEM_APIS,n.authCS.getUserId(),e.id)),t.xp6(2),t.Q6J("ngIf",!e.systemApiSettings),t.xp6(1),t.Q6J("ngIf",e.systemApiSettings),t.xp6(1),t.Q6J("ngIf",e.systemApiSettings)}}function ut(i,p){if(1&i&&(t.TgZ(0,"tr",29),t.YNc(1,h,2,2,"td",9),t.YNc(2,a,3,1,"td",30),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.YNc(7,_t,8,7,"td",9),t.YNc(8,lt,2,1,"td",9),t.YNc(9,ft,7,10,"td",9),t.qZA()),2&i){const e=p.$implicit,n=t.oxw(2);t.Q6J("pSelectableRow",e),t.xp6(1),t.Q6J("ngIf",n.showCheckbox),t.xp6(1),t.Q6J("ngIf",!n.isDependentOnGroup&&!n.isLPM&&!n.isFilterLogTable),t.xp6(2),t.Oqu(e.name),t.xp6(2),t.Oqu(e.url),t.xp6(1),t.Q6J("ngIf",!n.isDependentOnGroup&&!n.isLPM&&!n.isFilterLogTable),t.xp6(1),t.Q6J("ngIf",n.isLPM),t.xp6(1),t.Q6J("ngIf",!n.isDependentOnGroup&&!n.isLPM&&!n.isFilterLogTable)}}function At(i,p){1&i&&t._UZ(0,"p-progressSpinner",52)}function yt(i,p){if(1&i){const e=t.EpF();t.TgZ(0,"div",18)(1,"p-table",19),t.NdJ("selectionChange",function(_){t.CHM(e);const c=t.oxw();return t.KtG(c.selectedRows=_)})("selectionChange",function(){t.CHM(e);const _=t.oxw();return t.KtG(_.apiSelected())})("dblclick",function(){t.CHM(e);const _=t.oxw();return t.KtG(_.dblClickSystemAPIs())}),t.YNc(2,d,10,5,"ng-template",20),t.YNc(3,ut,10,8,"ng-template",21),t.qZA(),t.YNc(4,At,1,0,"p-progressSpinner",22),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 St=(()=>{class i{systemApiSettingsS;instanceS;generalS;notificationS;confirmationService;navigationCS;authCS;constantsS;eventCenterS;cd;router;isReadOnly=!1;showCheckbox=!0;isDependentOnGroup=!1;isLPM=!1;isFilterLogTable=!1;metaKeySelection=!0;loading={grid:!1};subscriptions=[];rows=[];rowsMap={};rowsMapName={};data={mode:S.D.ADD,eventChannel:new t.vpe,formData:void 0};selectedRows=[];gridKey=E.iH._id;EUserType=O.dN;EAPICategory=I.R;systemApiFormC;constructor(e,n,_,c,v,C,w,L,ht,Ct,vt){this.systemApiSettingsS=e,this.instanceS=n,this.generalS=_,this.notificationS=c,this.confirmationService=v,this.navigationCS=C,this.authCS=w,this.constantsS=L,this.eventCenterS=ht,this.cd=Ct,this.router=vt}ngOnInit(){var e=this;this.loadGridData(),this.subscriptions.push(this.data.eventChannel.subscribe(n=>{(n.action===m.F.SAVED||n.action===m.F.UPDATED)&&(this.systemApiFormC.hideModal(),this.loadGridData())})),this.isDependentOnGroup&&this.subscriptions.push(this.eventCenterS.group.selectedGroups.subscribe(function(){var n=(0,g.Z)(function*(_){_.length&&(yield e.loadGridData())});return function(_){return n.apply(this,arguments)}}())),this.subscriptions.push(this.eventCenterS.filterInLog.refreshGrid.subscribe(n=>{n&&this.loadGridData()})),this.generalS.setNewTitle("API Maker - System APIs")}loadGridData(){var e=this;this.isDependentOnGroup&&0===this.eventCenterS.group.selectedGroups.value.length?this.resetGridAndUrl():(this.loading.grid=!0,this.subscriptions.push(this.instanceS.systemAPIList().subscribe(function(){var n=(0,g.Z)(function*(_){_.success?(e.selectedRows=[],e.rows=_.data||[],e.rowsMap=f.keyBy(e.rows,E.iH._id),e.rowsMapName=f.keyBy(e.rows,E.qD.id)):e.resetGridAndUrl();const c=e.navigationCS.getQueryParam(A.p.system_api)||(e.isFilterLogTable?e.eventCenterS.filterInLog.systemApiIds.value.join(","):e.eventCenterS.group.systemApiIds.value.join(","))||(e.isDependentOnGroup&&e.eventCenterS.group.selectedGroups.value[0]?.queryParams?.systemApiNames?e.eventCenterS.group.selectedGroups.value[0].queryParams.systemApiNames.join(","):"");if(c){const v=c.split(","),C=f.intersection(f.keys(e.rowsMap),v),w=[];for(const L of C)e.rowsMap[L]&&w.push(e.rowsMap[L]);e.selectedRows=w,e.eventCenterS.group.systemApiIds.next(C),e.eventCenterS.group.systemApis.next(e.selectedRows),e.eventCenterS.filterInLog.systemApiIds.next(C)}if(e.isLPM&&e.eventCenterS.group.selectedGroups.value[0]?.queryParams?.systemApiNames?.length){const v=e.eventCenterS.group.selectedGroups.value[0];for(const C of v?.queryParams?.systemApiNames)e.rowsMapName[C]&&(e.rowsMapName[C].saveResponseInLog=v.systemApisLog?.[C]?.saveResponseInLog||!1);e.setResDataInEventCenter()}e.loading.grid=!1,e.cd.detectChanges()});return function(_){return n.apply(this,arguments)}}())))}view(){var e=this;return(0,g.Z)(function*(){const n=yield e.getSystemApiSetting();e.data.formData=n._id?n:{apiId:e.selectedRows[0]._id},e.data.mode=S.D.VIEW,e.data.eventChannel.emit({action:m.F.OPEN_FORM_IN_VIEW_MODE}),e.systemApiFormC.showModal()})()}add(e){var n=this;return(0,g.Z)(function*(){n.selectedRows=[e];const _=yield n.getSystemApiSetting();n.data.formData=_._id?_:{apiId:e.id,hideEnableCachingCheckbox:e.hideEnableCachingCheckbox},n.data.mode=S.D.ADD,n.data.eventChannel.emit({action:m.F.OPEN_FORM_IN_ADD_MODE}),n.systemApiFormC.showModal()})()}edit(e){var n=this;return(0,g.Z)(function*(){n.selectedRows=[e];const _=yield n.getSystemApiSetting();n.data.formData=_._id?_:{apiId:e.id,hideEnableCachingCheckbox:e.hideEnableCachingCheckbox},n.data.mode=S.D.EDIT,n.data.eventChannel.emit({action:m.F.OPEN_FORM_IN_EDIT_MODE}),n.systemApiFormC.showModal()})()}getSystemApiSetting(){var e=this;return(0,g.Z)(function*(){try{return((yield e.systemApiSettingsS.query({find:{user:e.authCS.getUserId(),apiId:e.selectedRows[0]._id}}).toPromise()).data||[])[0]||{apiId:e.selectedRows?.[0]?._id}}catch{return{apiId:e.selectedRows?.[0]?._id}}})()}resetDependents(){var e=this;return(0,g.Z)(function*(){yield e.navigationCS.setQueryParam(A.p.system_api,null)})()}apiSelected(){var e=this;return(0,g.Z)(function*(){yield e.resetDependents(),yield e.fillData(),e.selectedRows?.[0]?e.generalS.setNewTitle(e.selectedRows[0].name,I.R.SYSTEM_APIS):e.generalS.setNewTitle("API Maker - System APIs")})()}resetGridAndUrl(){this.rows=[],this.selectedRows=[],this.rowsMap={},this.rowsMapName={}}fillData(){var e=this;return(0,g.Z)(function*(){if(!e.selectedRows.length)return yield e.navigationCS.setQueryParam(A.p.system_api,null),e.eventCenterS.group.systemApis.next([]),e.eventCenterS.group.systemApiIds.next([]),e.eventCenterS.filterInLog.systemApiIds.next([]),void e.eventCenterS.filterInLog.systemApis.next([]);if(e.isDependentOnGroup||e.isFilterLogTable)e.eventCenterS.group.systemApiIds.next(f.map(e.selectedRows,"_id")),e.eventCenterS.group.systemApis.next(e.selectedRows),e.isFilterLogTable&&(e.eventCenterS.filterInLog.systemApiIds.next(f.map(e.selectedRows,"_id")),e.eventCenterS.filterInLog.systemApis.next(e.selectedRows));else{yield e.navigationCS.setQueryParam(A.p.system_api,e.selectedRows[0]._id);const n=yield e.getSystemApiSetting();e.data.formData=n._id?n:{apiId:e.selectedRows[0]._id}}})()}setResDataInEventCenter(){this.isDependentOnGroup&&(this.eventCenterS.group.systemApis.next(this.selectedRows),this.eventCenterS.group.selectedSystemApis.next(this.selectedRows)),this.isFilterLogTable&&this.eventCenterS.filterInLog.systemApis.next(this.selectedRows)}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}removePermanentDialog(e){var n=this;return(0,g.Z)(function*(){var _;n.selectedRows=[e],n.confirmationService.confirm({message:n.confirmMessage(),header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(_=(0,g.Z)(function*(){yield n.removePermanent(e)}),function(){return _.apply(this,arguments)})}),n.cd.detectChanges()})()}removePermanent(e){var n=this;return(0,g.Z)(function*(){n.loading.grid=!0;const _=yield n.systemApiSettingsS.permanentDelete(e.systemApiSettings).toPromise();n.loading.grid=!1,_?(n.notificationS.showSuccess(n.constantsS.systemApi.removePermanent),n.resetGridAndUrl(),n.loadGridData(),yield n.getSystemApiSetting(),n.cd.detectChanges()):n.notificationS.showErrorFromResponse(_,n.constantsS.systemApi.removePermanentError)})()}dblClickSystemAPIs(){if(this.isDependentOnGroup||this.isLPM)return;const e=this.selectedRows[0];this.selectedRows.length&&e.systemApiSettings?this.edit(e):this.selectedRows.length&&!e.systemApiSettings&&this.add(e)}confirmMessage(){return'<p class="dialog-text">Do you want to <b class="text-danger">permanently remove System API settings</b>?</p>'}ERequestMethod=x.Yp;static \u0275fac=function(n){return new(n||i)(t.Y36(s.J),t.Y36(W.E),t.Y36(D.b),t.Y36(u.W),t.Y36(b.YP),t.Y36(F.S),t.Y36(K.D),t.Y36(N.L),t.Y36(B.u),t.Y36(t.sBO),t.Y36(Z.F0))};static \u0275cmp=t.Xpm({type:i,selectors:[["app-system-api-w"]],viewQuery:function(n,_){if(1&n&&t.Gf(H,5),2&n){let c;t.iGM(c=t.CRH())&&(_.systemApiFormC=c.first)}},inputs:{isReadOnly:["IsReadOnly","isReadOnly"],showCheckbox:"showCheckbox",isDependentOnGroup:["IsDependentOnGroup","isDependentOnGroup"],isLPM:"isLPM",isFilterLogTable:"isFilterLogTable",metaKeySelection:"metaKeySelection"},decls:15,vars:5,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header"],["src","/assets/images/icons/systems.svg","alt","System API",1,"fa-fw","mr-1"],[1,"float-right"],["href","https://docs.apimaker.dev/v1/examples/sys/system/system.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"fa-fw","ml-3","mr-1","mt-n1",2,"font-size","25px"],["class","float-right cursor-pointer","tooltipPosition","left","pTooltip","All System APIs",4,"ngIf"],["class","float-right cursor-pointer","pTooltip","All System APIs",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],[4,"ngIf"],["class","h-100",4,"ngIf"],[3,"data"],["systemApiFormC",""],["tooltipPosition","left","pTooltip","All System APIs",1,"float-right","cursor-pointer"],[1,"align-middle","mb-0","mt--2px"],[3,"ngModel","binary","ngModelChange"],["pTooltip","All System APIs",1,"float-right","cursor-pointer"],[1,"p-2","text-center","text-success"],[1,"h-100"],["styleClass","p-datatable-striped system-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"],["style","width: 140px;",4,"ngIf"],[2,"width","45px"],[2,"width","80px"],[2,"width","140px"],[3,"pSelectableRow"],["class","text-center",4,"ngIf"],[3,"value","pSelectableRow"],[1,"text-center"],["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-1",3,"routerLink","queryParams","click"],[1,"fas","fa-vial","text-info","fa-fw","test-tube","pt-1"],["class","btn btn-xsm-custom mr-1","pTooltip","Add System API Setting","tooltipPosition","left",3,"click",4,"ngIf"],["class","btn btn-xsm-custom mr-1","pTooltip","Edit System API Setting","tooltipPosition","left",3,"click",4,"ngIf"],["class","btn btn-xsm-custom","pTooltip","Permanent Delete System API Setting","tooltipPosition","left",3,"click",4,"ngIf"],["pTooltip","Add System API Setting","tooltipPosition","left",1,"btn","btn-xsm-custom","mr-1",3,"click"],[1,"fas","fa-plus","text-success","fa-fw","cursor-pointer"],["pTooltip","Edit System API Setting","tooltipPosition","left",1,"btn","btn-xsm-custom","mr-1",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw","cursor-pointer"],["pTooltip","Permanent Delete System API Setting","tooltipPosition","left",1,"btn","btn-xsm-custom",3,"click"],[1,"far","fa-trash-alt","fa-fw","cursor-pointer","text-danger"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(n,_){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span"),t._UZ(3,"img",2),t._uU(4," System APIs"),t.qZA(),t.TgZ(5,"div",3)(6,"a",4),t._UZ(7,"img",5),t.qZA()(),t.YNc(8,V,3,2,"span",6),t.YNc(9,j,3,2,"span",7),t.qZA(),t.TgZ(10,"div",8),t.YNc(11,X,3,1,"div",9),t.YNc(12,yt,5,7,"div",10),t.qZA()(),t._UZ(13,"app-w-system-api-form",11,12)),2&n&&(t.xp6(8),t.Q6J("ngIf",_.isDependentOnGroup),t.xp6(1),t.Q6J("ngIf",_.isFilterLogTable),t.xp6(2),t.Q6J("ngIf",_.eventCenterS.group.apisRegex.allSystemApis||_.eventCenterS.filterInLog.apisRegex.allSystemApis),t.xp6(1),t.Q6J("ngIf",!(_.eventCenterS.group.apisRegex.allSystemApis||_.eventCenterS.filterInLog.apisRegex.allSystemApis)),t.xp6(1),t.Q6J("data",_.data))},dependencies:[Z.rH,U.JJ,U.On,G.O5,T.iA,b.jx,T.Ei,T.UA,T.Mo,J.G,Y.u,Q.XZ,k.S],encapsulation:2})}return i})()}}]);
|
|
1
|
+
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[4186],{4186:(at,M,o)=>{o.r(M),o.d(M,{SystemApiM:()=>O});var g=o(7664),t=o(8761),m=o(4946),S=o(9329);let A=(()=>{class s{constructor(){}ngOnInit(){}static \u0275fac=function(u){return new(u||s)};static \u0275cmp=m.Xpm({type:s,selectors:[["app-system-api-layout"]],decls:2,vars:1,consts:[[1,"pt-1","pl-1","pr-1"],[3,"showCheckbox"]],template:function(u,b){1&u&&(m.TgZ(0,"div",0),m._UZ(1,"app-system-api-w",1),m.qZA()),2&u&&(m.xp6(1),m.Q6J("showCheckbox",!1))},dependencies:[S.X],encapsulation:2})}return s})();var f=o(3726),I=(o(3219),o(4950));const E=[{path:"layout",component:A,canActivate:[f.P]}];let O=(()=>{class s{static \u0275fac=function(u){return new(u||s)};static \u0275mod=m.oAB({type:s});static \u0275inj=m.cJS({imports:[g.Bz.forChild(E),t.u,I.A]})}return s})()},3219:(at,M,o)=>{o.d(M,{S:()=>st});var g=o(5861),t=o(3157),m=o(328),S=o(7672),A=o(9361),f=o(1162),P=o(553),I=o(5085),E=o(1601),x=o(3531),O=o(9989),s=o(4946),W=o(9961),D=o(6457),u=o(7240),b=o(2304),F=o(3429),K=o(7414),N=o(5852),B=o(6814),Z=o(2660),U=o(5860),G=o(756),T=o(7680),J=o(3259),Y=o(5025);const Q=["monacoEditorModalC"],k=["insertCodeModalC"];function H(d,h){1&d&&(s.TgZ(0,"span"),s._UZ(1,"i",26),s._uU(2," Add System API Setting"),s.qZA())}function V(d,h){1&d&&(s.TgZ(0,"span"),s._UZ(1,"i",27),s._uU(2," View System API Setting"),s.qZA())}function j(d,h){1&d&&(s.TgZ(0,"span"),s._UZ(1,"i",28),s._uU(2," Edit System API Setting"),s.qZA())}function X(d,h){if(1&d){const a=s.EpF();s.TgZ(0,"a",29),s.NdJ("click",function(){s.CHM(a);const r=s.oxw();return s.KtG(r.viewError())}),s._uU(1,"View error"),s.qZA()}}function z(d,h){1&d&&(s.TgZ(0,"span"),s._uU(1,"Save"),s.qZA())}function q(d,h){1&d&&(s.TgZ(0,"span"),s._uU(1,"Update"),s.qZA())}function tt(d,h){if(1&d){const a=s.EpF();s.TgZ(0,"button",30),s.NdJ("click",function(){s.CHM(a);const r=s.oxw();return s.KtG(r.save())}),s._UZ(1,"i",31),s.YNc(2,z,2,0,"span",4),s.YNc(3,q,2,0,"span",4),s.qZA()}if(2&d){const a=s.oxw();s.xp6(2),s.Q6J("ngIf",a.data.mode===a.EFormMode.ADD),s.xp6(1),s.Q6J("ngIf",a.data.mode===a.EFormMode.EDIT)}}function et(d,h){1&d&&s._UZ(0,"p-progressSpinner",32)}let st=(()=>{class d{ns;systemApiSettingsS;generalS;monacoS;instanceS;constantsS;authCS;generalCS;EAPIAccessType=S.di;data;loading={form:!1};EFormMode=m.D;subscriptions=[];editorSysApiCode;editorOptionsSysApi={readOnly:!1,language:"typescript",contextmenu:!0};lastError;editorOptionsMonacoEditorModal={readOnly:!0,language:"json",contextmenu:!0};monacoDecorations=[];tab;BE_HOST_PORT=P.N.BE_HOST_PORT;viewDockerfileModelC;DOCS_HOST_PORT=P.N.DOCS_HOST_PORT;insertCodeModalC;constructor(a,l,r,y,R,nt,it,ot){this.ns=a,this.systemApiSettingsS=l,this.generalS=r,this.monacoS=y,this.instanceS=R,this.constantsS=nt,this.authCS=it,this.generalCS=ot}ngOnInit(){var a=this;this.subscriptions.push(this.data.eventChannel.subscribe(function(){var l=(0,g.Z)(function*(r){r&&(r.action===t.F.OPEN_FORM_IN_EDIT_MODE||r.action===t.F.OPEN_FORM_IN_VIEW_MODE?a.editorSysApiCode&&(a.data.formData.sysApiSettingCode?a.generalCS.setValueInEditor(a,"editorSysApiCode",a.data.formData.sysApiSettingCode):a.loadSysApiCode()):r.action===t.F.OPEN_FORM_IN_ADD_MODE&&a.loadSysApiCode())});return function(r){return l.apply(this,arguments)}}()))}loadSysApiCode(){var a=this;return(0,g.Z)(function*(){const l=yield a.instanceS.getDefaultContent(a.BE_HOST_PORT,I.R.SYSTEM_APIS).toPromise();a.generalCS.setValueInEditor(a,"editorSysApiCode",l.data)})()}showInsertCodeModel(){this.generalCS.messageReceivedFor=A.H.Settings,this.insertCodeModalC.showModal(x.b.SystemApiFormC)}editorGenerated(a){var l=this;return(0,g.Z)(function*(){l.editorSysApiCode=a,yield l.monacoS.loadSchemaEditorSettings(l.BE_HOST_PORT,l.authCS.getUserId(),null),l.monacoS.addSaveCodeKeyBinding(a,r=>{l.data.mode!==m.D.VIEW&&l.save()}),l.monacoS.addInsertCodeKeyBinding(a,r=>{l.generalCS.messageReceivedFor=A.H.All,l.data.mode!==m.D.VIEW&&l.insertCodeModalC.showModal(x.b.SystemApiFormC)}),l.subscriptions.push(l.generalS.messageReceived.subscribe(r=>{r.type&&r.type===O.g.TEXT_COPIED&&(l.monacoS.insertAtCursor(a,r.selectedText),l.insertCodeModalC.hideModal())}))})()}showModal(){this.lastError=void 0,$("#idSystemApiForm").modal("show")}hideModal(){$("#idSystemApiForm").modal("hide")}save(){var a=this;return(0,g.Z)(function*(){const l={};l.user=a.authCS.getUserId(),l.sysApiSettingCode=a.editorSysApiCode.getValue(),l.apiId=a.data.formData.apiId;try{let r;a.loading.form=!0,a.lastError=void 0,a.monacoS.clearEditorDecorations(a.editorSysApiCode,a.monacoDecorations),a.data.mode!==m.D.ADD&&a.data.formData._id?a.data.mode===m.D.EDIT&&(r=yield a.systemApiSettingsS.replace(a.data.formData._id,l,{select:f.iH._id}).toPromise()):r=yield a.systemApiSettingsS.post(l).toPromise(),a.ns.showSuccess(a.data.mode===m.D.ADD?a.constantsS.systemApi.addSuccess:a.constantsS.systemApi.editSuccess),a.data.eventChannel.emit({action:a.data.mode===m.D.ADD?t.F.SAVED:t.F.UPDATED}),a.loading.form=!1}catch(r){a.loading.form=!1,a.ns.showErrorFromResponse(r.error||r,"Unable to save system API."),a.lastError=r.error,a.tab=a.tab||{},a.tab.axiosResponse={data:r.error},a.monacoS.highlightErrorInMonacoEditor(a.editorSysApiCode,a.tab,"MainSandbox.ts",a.monacoDecorations)}})()}viewError(){this.viewDockerfileModelC.showModal(this.generalS.stringify(this.lastError),E.d.json)}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}static \u0275fac=function(l){return new(l||d)(s.Y36(W.W),s.Y36(D.J),s.Y36(u.b),s.Y36(b.b),s.Y36(F.E),s.Y36(K.L),s.Y36(N.D),s.Y36(u.b))};static \u0275cmp=s.Xpm({type:d,selectors:[["app-w-system-api-form"]],viewQuery:function(l,r){if(1&l&&(s.Gf(Q,5),s.Gf(k,5)),2&l){let y;s.iGM(y=s.CRH())&&(r.viewDockerfileModelC=y.first),s.iGM(y=s.CRH())&&(r.insertCodeModalC=y.first)}},inputs:{data:"data"},decls:29,vars:14,consts:[["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idSystemApiForm","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal"],["role","document",1,"modal-dialog","modal-full"],[1,"modal-content"],[1,"modal-header"],[4,"ngIf"],[1,"float-right"],["aria-label","Close","data-dismiss","modal","type","button",1,"close"],["aria-hidden","true"],[1,"fas","fa-window-close"],["pTooltip","Insert Code","sava-no-dbl-click","",1,"cursor-pointer","mr-1",2,"font-size","1.4em",3,"click"],[1,"fas","fa-info-circle","text-info","fa-fw"],["href","https://docs.apimaker.dev/v1/docs/settings/systemApiSettings.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"fa-fw","ml-2","mr-1","mt-n2",2,"font-size","25px"],[1,"modal-body","overflow-auto"],[1,"overflow-hidden",2,"height","calc(100vh - 158px)"],[3,"isSchemaEditor","editorOptions","editorGenerated"],[1,"modal-footer"],["href","javascript:;","class","text-danger",3,"click",4,"ngIf"],["data-dismiss","modal","type","button",1,"btn","btn-sm","btn-secondary"],[1,"fas","fa-times","text-danger","fa-fw"],["class","btn btn-primary btn-sm","sava-no-dbl-click","","type","button",3,"click",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"modalId","editorOptionsMonacoEditorModal","modalTitle"],["monacoEditorModalC",""],[3,"frameId","modalId","docsHostPort"],["insertCodeModalC",""],[1,"fas","fa-plus","text-success","fa-fw","mr-1"],[1,"far","fa-eye","text-info","fa-fw","mr-1"],[1,"fas","fa-pencil-alt","text-light","fa-fw","mr-1"],["href","javascript:;",1,"text-danger",3,"click"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"click"],[1,"fas","fa-save","text-success","fa-fw","mr-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(l,r){1&l&&(s.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),s.YNc(4,H,3,0,"span",4),s.YNc(5,V,3,0,"span",4),s.YNc(6,j,3,0,"span",4),s.TgZ(7,"div",5)(8,"button",6)(9,"span",7),s._UZ(10,"i",8),s.qZA()(),s.TgZ(11,"span",9),s.NdJ("click",function(){return r.showInsertCodeModel()}),s._UZ(12,"i",10),s.qZA(),s.TgZ(13,"a",11),s._UZ(14,"img",12),s.qZA()()(),s.TgZ(15,"div",13)(16,"div",14)(17,"app-monaco-editor",15),s.NdJ("editorGenerated",function(R){return r.editorGenerated(R)}),s.qZA()()(),s.TgZ(18,"div",16),s.YNc(19,X,2,0,"a",17),s.TgZ(20,"button",18),s._UZ(21,"i",19),s._uU(22," Close"),s.qZA(),s.YNc(23,tt,4,2,"button",20),s.qZA(),s.YNc(24,et,1,0,"p-progressSpinner",21),s.qZA()()(),s._UZ(25,"app-monaco-editor-modal",22,23)(27,"app-insert-code-modal",24,25)),2&l&&(s.xp6(4),s.Q6J("ngIf",r.data.mode===r.EFormMode.ADD),s.xp6(1),s.Q6J("ngIf",r.data.mode===r.EFormMode.VIEW),s.xp6(1),s.Q6J("ngIf",r.data.mode===r.EFormMode.EDIT),s.xp6(11),s.Q6J("isSchemaEditor",!0)("editorOptions",r.editorOptionsSysApi),s.xp6(2),s.Q6J("ngIf",r.lastError),s.xp6(4),s.Q6J("ngIf",r.data.mode!==r.EFormMode.VIEW),s.xp6(1),s.Q6J("ngIf",r.loading.form),s.xp6(1),s.Q6J("modalId","idMonacoEditorModalInSysApi")("editorOptionsMonacoEditorModal",r.editorOptionsMonacoEditorModal)("modalTitle","Error info"),s.xp6(2),s.Q6J("frameId","idInsertCodeSystemAPI")("modalId","idInsertCodeSystemAPIForm")("docsHostPort",r.DOCS_HOST_PORT))},dependencies:[B.O5,Z.y,U.P,G.O,T.G,J.u,Y.A],encapsulation:2})}return d})()},9329:(at,M,o)=>{o.d(M,{X:()=>St});var g=o(5861),t=o(4946),m=o(3157),S=o(328),A=o(6212),f=o(6990),I=o(5085),E=o(1162),x=o(6925),O=o(921),s=o(6457),W=o(3429),D=o(7240),u=o(9961),b=o(5219),F=o(2189),K=o(5852),N=o(7414),B=o(2915),Z=o(7664),U=o(95),G=o(6814),T=o(5431),J=o(7680),Y=o(3259),Q=o(8057),k=o(3219);const H=["systemApiFormC"];function V(i,p){if(1&i){const e=t.EpF();t.TgZ(0,"span",13)(1,"label",14)(2,"p-checkbox",15),t.NdJ("ngModelChange",function(_){t.CHM(e);const c=t.oxw();return t.KtG(c.eventCenterS.group.apisRegex.allSystemApis=_)}),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("ngModel",e.eventCenterS.group.apisRegex.allSystemApis)("binary",!0)}}function j(i,p){if(1&i){const e=t.EpF();t.TgZ(0,"span",16)(1,"label",14)(2,"p-checkbox",15),t.NdJ("ngModelChange",function(_){t.CHM(e);const c=t.oxw();return t.KtG(c.eventCenterS.filterInLog.apisRegex.allSystemApis=_)}),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("ngModel",e.eventCenterS.filterInLog.apisRegex.allSystemApis)("binary",!0)}}function X(i,p){if(1&i&&(t.TgZ(0,"div")(1,"div",17),t._uU(2),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(e.constantsS.group.allSystemApisPermitted)}}function z(i,p){1&i&&(t.TgZ(0,"th",26),t._UZ(1,"p-tableHeaderCheckbox"),t.qZA())}function q(i,p){1&i&&t._UZ(0,"th",27)}function tt(i,p){1&i&&(t.TgZ(0,"th"),t._uU(1,"Authorization"),t.qZA())}function et(i,p){1&i&&t._UZ(0,"th")}function st(i,p){1&i&&t._UZ(0,"th",28)}function d(i,p){if(1&i&&(t.TgZ(0,"tr"),t.YNc(1,z,2,0,"th",23),t.YNc(2,q,1,0,"th",24),t.TgZ(3,"th"),t._uU(4,"Name"),t.qZA(),t.TgZ(5,"th"),t._uU(6,"URL"),t.qZA(),t.YNc(7,tt,2,0,"th",9),t.YNc(8,et,1,0,"th",9),t.YNc(9,st,1,0,"th",25),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(5),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 h(i,p){if(1&i&&(t.TgZ(0,"td"),t._UZ(1,"p-tableCheckbox",31),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("value",e)("pSelectableRow",e)}}function a(i,p){if(1&i&&(t.TgZ(0,"td",32)(1,"span"),t._uU(2),t.qZA()()),2&i){const e=t.oxw().rowIndex;t.xp6(2),t.Oqu(e+1)}}function l(i,p){1&i&&(t.TgZ(0,"span",36),t._uU(1,"AM-User"),t.qZA())}function r(i,p){1&i&&(t.TgZ(0,"span",37),t._uU(1,"No-Access"),t.qZA())}function y(i,p){1&i&&(t.TgZ(0,"span",38),t._uU(1,"Public"),t.qZA())}function R(i,p){1&i&&(t.TgZ(0,"span",37),t._uU(1,"DB-User"),t.qZA())}function nt(i,p){1&i&&(t.TgZ(0,"span",37),t._uU(1,"AWS"),t.qZA())}function it(i,p){1&i&&(t.TgZ(0,"span",37),t._uU(1,"Azure"),t.qZA())}function ot(i,p){1&i&&(t.TgZ(0,"span",37),t._uU(1,"Google"),t.qZA())}function _t(i,p){if(1&i&&(t.TgZ(0,"td"),t.YNc(1,l,2,0,"span",33),t.YNc(2,r,2,0,"span",34),t.YNc(3,y,2,0,"span",35),t.YNc(4,R,2,0,"span",34),t.YNc(5,nt,2,0,"span",34),t.YNc(6,it,2,0,"span",34),t.YNc(7,ot,2,0,"span",34),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 rt(i,p){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"label",39)(2,"p-checkbox",40),t.NdJ("ngModelChange",function(_){t.CHM(e);const c=t.oxw(2).$implicit;return t.KtG(c.saveResponseInLog=_)})("click",function(_){t.CHM(e);const c=t.oxw(4);return t.KtG(c.generalS.stopPropagation(_))}),t.qZA()()()}if(2&i){const e=t.oxw(2).$implicit;t.xp6(2),t.Q6J("ngModel",e.saveResponseInLog)("binary",!0)}}function lt(i,p){if(1&i&&(t.TgZ(0,"td"),t.YNc(1,rt,3,2,"div",9),t.qZA()),2&i){const e=t.oxw().$implicit,n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",n.selectedRows.indexOf(e)>=0)}}function pt(i,p){if(1&i){const e=t.EpF();t.TgZ(0,"button",46),t.NdJ("click",function(){t.CHM(e);const _=t.oxw(2).$implicit,c=t.oxw(2);return t.KtG(c.add(_))}),t._UZ(1,"i",47),t.qZA()}}function ct(i,p){if(1&i){const e=t.EpF();t.TgZ(0,"button",48),t.NdJ("click",function(){t.CHM(e);const _=t.oxw(2).$implicit,c=t.oxw(2);return t.KtG(c.edit(_))}),t._UZ(1,"i",49),t.qZA()}}function dt(i,p){if(1&i){const e=t.EpF();t.TgZ(0,"button",50),t.NdJ("click",function(){t.CHM(e);const _=t.oxw(2).$implicit,c=t.oxw(2);return t.KtG(c.removePermanentDialog(_))}),t._UZ(1,"i",51),t.qZA()}}const mt=function(){return["/api-info/api-testing/testing"]},gt=function(i,p,e){return{at_category:i,at_user:p,at_api:e}};function ft(i,p){if(1&i){const e=t.EpF();t.TgZ(0,"td")(1,"div")(2,"a",41),t.NdJ("click",function(_){t.CHM(e);const c=t.oxw().$implicit,v=t.oxw(2);return _.stopPropagation(),t.KtG(v.selectedRows=[c])}),t._UZ(3,"i",42),t.qZA(),t.YNc(4,pt,2,0,"button",43),t.YNc(5,ct,2,0,"button",44),t.YNc(6,dt,2,0,"button",45),t.qZA()()}if(2&i){const e=t.oxw().$implicit,n=t.oxw(2);t.xp6(2),t.Q6J("routerLink",t.DdM(5,mt))("queryParams",t.kEZ(6,gt,n.EAPICategory.SYSTEM_APIS,n.authCS.getUserId(),e.id)),t.xp6(2),t.Q6J("ngIf",!e.systemApiSettings),t.xp6(1),t.Q6J("ngIf",e.systemApiSettings),t.xp6(1),t.Q6J("ngIf",e.systemApiSettings)}}function ut(i,p){if(1&i&&(t.TgZ(0,"tr",29),t.YNc(1,h,2,2,"td",9),t.YNc(2,a,3,1,"td",30),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.YNc(7,_t,8,7,"td",9),t.YNc(8,lt,2,1,"td",9),t.YNc(9,ft,7,10,"td",9),t.qZA()),2&i){const e=p.$implicit,n=t.oxw(2);t.Q6J("pSelectableRow",e),t.xp6(1),t.Q6J("ngIf",n.showCheckbox),t.xp6(1),t.Q6J("ngIf",!n.isDependentOnGroup&&!n.isLPM&&!n.isFilterLogTable),t.xp6(2),t.Oqu(e.name),t.xp6(2),t.Oqu(e.url),t.xp6(1),t.Q6J("ngIf",!n.isDependentOnGroup&&!n.isLPM&&!n.isFilterLogTable),t.xp6(1),t.Q6J("ngIf",n.isLPM),t.xp6(1),t.Q6J("ngIf",!n.isDependentOnGroup&&!n.isLPM&&!n.isFilterLogTable)}}function At(i,p){1&i&&t._UZ(0,"p-progressSpinner",52)}function yt(i,p){if(1&i){const e=t.EpF();t.TgZ(0,"div",18)(1,"p-table",19),t.NdJ("selectionChange",function(_){t.CHM(e);const c=t.oxw();return t.KtG(c.selectedRows=_)})("selectionChange",function(){t.CHM(e);const _=t.oxw();return t.KtG(_.apiSelected())})("dblclick",function(){t.CHM(e);const _=t.oxw();return t.KtG(_.dblClickSystemAPIs())}),t.YNc(2,d,10,5,"ng-template",20),t.YNc(3,ut,10,8,"ng-template",21),t.qZA(),t.YNc(4,At,1,0,"p-progressSpinner",22),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 St=(()=>{class i{systemApiSettingsS;instanceS;generalS;notificationS;confirmationService;navigationCS;authCS;constantsS;eventCenterS;cd;router;isReadOnly=!1;showCheckbox=!0;isDependentOnGroup=!1;isLPM=!1;isFilterLogTable=!1;metaKeySelection=!0;loading={grid:!1};subscriptions=[];rows=[];rowsMap={};rowsMapName={};data={mode:S.D.ADD,eventChannel:new t.vpe,formData:void 0};selectedRows=[];gridKey=E.iH._id;EUserType=O.dN;EAPICategory=I.R;systemApiFormC;constructor(e,n,_,c,v,C,w,L,ht,Ct,vt){this.systemApiSettingsS=e,this.instanceS=n,this.generalS=_,this.notificationS=c,this.confirmationService=v,this.navigationCS=C,this.authCS=w,this.constantsS=L,this.eventCenterS=ht,this.cd=Ct,this.router=vt}ngOnInit(){var e=this;this.loadGridData(),this.subscriptions.push(this.data.eventChannel.subscribe(n=>{(n.action===m.F.SAVED||n.action===m.F.UPDATED)&&(this.systemApiFormC.hideModal(),this.loadGridData())})),this.isDependentOnGroup&&this.subscriptions.push(this.eventCenterS.group.selectedGroups.subscribe(function(){var n=(0,g.Z)(function*(_){_.length&&(yield e.loadGridData())});return function(_){return n.apply(this,arguments)}}())),this.subscriptions.push(this.eventCenterS.filterInLog.refreshGrid.subscribe(n=>{n&&this.loadGridData()})),this.generalS.setNewTitle("API Maker - System APIs")}loadGridData(){var e=this;this.isDependentOnGroup&&0===this.eventCenterS.group.selectedGroups.value.length?this.resetGridAndUrl():(this.loading.grid=!0,this.subscriptions.push(this.instanceS.systemAPIList().subscribe(function(){var n=(0,g.Z)(function*(_){_.success?(e.selectedRows=[],e.rows=_.data||[],e.rowsMap=f.keyBy(e.rows,E.iH._id),e.rowsMapName=f.keyBy(e.rows,E.qD.id)):e.resetGridAndUrl();const c=e.navigationCS.getQueryParam(A.p.system_api)||(e.isFilterLogTable?e.eventCenterS.filterInLog.systemApiIds.value.join(","):e.eventCenterS.group.systemApiIds.value.join(","))||(e.isDependentOnGroup&&e.eventCenterS.group.selectedGroups.value[0]?.queryParams?.systemApiNames?e.eventCenterS.group.selectedGroups.value[0].queryParams.systemApiNames.join(","):"");if(c){const v=c.split(","),C=f.intersection(f.keys(e.rowsMap),v),w=[];for(const L of C)e.rowsMap[L]&&w.push(e.rowsMap[L]);e.selectedRows=w,e.eventCenterS.group.systemApiIds.next(C),e.eventCenterS.group.systemApis.next(e.selectedRows),e.eventCenterS.filterInLog.systemApiIds.next(C)}if(e.isLPM&&e.eventCenterS.group.selectedGroups.value[0]?.queryParams?.systemApiNames?.length){const v=e.eventCenterS.group.selectedGroups.value[0];for(const C of v?.queryParams?.systemApiNames)e.rowsMapName[C]&&(e.rowsMapName[C].saveResponseInLog=v.systemApisLog?.[C]?.saveResponseInLog||!1);e.setResDataInEventCenter()}e.loading.grid=!1,e.cd.detectChanges()});return function(_){return n.apply(this,arguments)}}())))}view(){var e=this;return(0,g.Z)(function*(){const n=yield e.getSystemApiSetting();e.data.formData=n._id?n:{apiId:e.selectedRows[0]._id},e.data.mode=S.D.VIEW,e.data.eventChannel.emit({action:m.F.OPEN_FORM_IN_VIEW_MODE}),e.systemApiFormC.showModal()})()}add(e){var n=this;return(0,g.Z)(function*(){n.selectedRows=[e];const _=yield n.getSystemApiSetting();n.data.formData=_._id?_:{apiId:e.id,hideEnableCachingCheckbox:e.hideEnableCachingCheckbox},n.data.mode=S.D.ADD,n.data.eventChannel.emit({action:m.F.OPEN_FORM_IN_ADD_MODE}),n.systemApiFormC.showModal()})()}edit(e){var n=this;return(0,g.Z)(function*(){n.selectedRows=[e];const _=yield n.getSystemApiSetting();n.data.formData=_._id?_:{apiId:e.id,hideEnableCachingCheckbox:e.hideEnableCachingCheckbox},n.data.mode=S.D.EDIT,n.data.eventChannel.emit({action:m.F.OPEN_FORM_IN_EDIT_MODE}),n.systemApiFormC.showModal()})()}getSystemApiSetting(){var e=this;return(0,g.Z)(function*(){try{return((yield e.systemApiSettingsS.query({find:{user:e.authCS.getUserId(),apiId:e.selectedRows[0]._id}}).toPromise()).data||[])[0]||{apiId:e.selectedRows?.[0]?._id}}catch{return{apiId:e.selectedRows?.[0]?._id}}})()}resetDependents(){var e=this;return(0,g.Z)(function*(){yield e.navigationCS.setQueryParam(A.p.system_api,null)})()}apiSelected(){var e=this;return(0,g.Z)(function*(){yield e.resetDependents(),yield e.fillData(),e.selectedRows?.[0]?e.generalS.setNewTitle(e.selectedRows[0].name,I.R.SYSTEM_APIS):e.generalS.setNewTitle("API Maker - System APIs")})()}resetGridAndUrl(){this.rows=[],this.selectedRows=[],this.rowsMap={},this.rowsMapName={}}fillData(){var e=this;return(0,g.Z)(function*(){if(!e.selectedRows.length)return yield e.navigationCS.setQueryParam(A.p.system_api,null),e.eventCenterS.group.systemApis.next([]),e.eventCenterS.group.systemApiIds.next([]),e.eventCenterS.filterInLog.systemApiIds.next([]),void e.eventCenterS.filterInLog.systemApis.next([]);if(e.isDependentOnGroup||e.isFilterLogTable)e.eventCenterS.group.systemApiIds.next(f.map(e.selectedRows,"_id")),e.eventCenterS.group.systemApis.next(e.selectedRows),e.isFilterLogTable&&(e.eventCenterS.filterInLog.systemApiIds.next(f.map(e.selectedRows,"_id")),e.eventCenterS.filterInLog.systemApis.next(e.selectedRows));else{yield e.navigationCS.setQueryParam(A.p.system_api,e.selectedRows[0]._id);const n=yield e.getSystemApiSetting();e.data.formData=n._id?n:{apiId:e.selectedRows[0]._id}}})()}setResDataInEventCenter(){this.isDependentOnGroup&&(this.eventCenterS.group.systemApis.next(this.selectedRows),this.eventCenterS.group.selectedSystemApis.next(this.selectedRows)),this.isFilterLogTable&&this.eventCenterS.filterInLog.systemApis.next(this.selectedRows)}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}removePermanentDialog(e){var n=this;return(0,g.Z)(function*(){var _;n.selectedRows=[e],n.confirmationService.confirm({message:n.confirmMessage(),header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(_=(0,g.Z)(function*(){yield n.removePermanent(e)}),function(){return _.apply(this,arguments)})}),n.cd.detectChanges()})()}removePermanent(e){var n=this;return(0,g.Z)(function*(){n.loading.grid=!0;const _=yield n.systemApiSettingsS.permanentDelete(e.systemApiSettings).toPromise();n.loading.grid=!1,_?(n.notificationS.showSuccess(n.constantsS.systemApi.removePermanent),n.resetGridAndUrl(),n.loadGridData(),yield n.getSystemApiSetting(),n.cd.detectChanges()):n.notificationS.showErrorFromResponse(_,n.constantsS.systemApi.removePermanentError)})()}dblClickSystemAPIs(){if(this.isDependentOnGroup||this.isLPM)return;const e=this.selectedRows[0];this.selectedRows.length&&e.systemApiSettings?this.edit(e):this.selectedRows.length&&!e.systemApiSettings&&this.add(e)}confirmMessage(){return'<p class="dialog-text">Do you want to <b class="text-danger">permanently remove System API settings</b>?</p>'}ERequestMethod=x.Yp;static \u0275fac=function(n){return new(n||i)(t.Y36(s.J),t.Y36(W.E),t.Y36(D.b),t.Y36(u.W),t.Y36(b.YP),t.Y36(F.S),t.Y36(K.D),t.Y36(N.L),t.Y36(B.u),t.Y36(t.sBO),t.Y36(Z.F0))};static \u0275cmp=t.Xpm({type:i,selectors:[["app-system-api-w"]],viewQuery:function(n,_){if(1&n&&t.Gf(H,5),2&n){let c;t.iGM(c=t.CRH())&&(_.systemApiFormC=c.first)}},inputs:{isReadOnly:["IsReadOnly","isReadOnly"],showCheckbox:"showCheckbox",isDependentOnGroup:["IsDependentOnGroup","isDependentOnGroup"],isLPM:"isLPM",isFilterLogTable:"isFilterLogTable",metaKeySelection:"metaKeySelection"},decls:15,vars:5,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header"],["src","/assets/images/icons/systems.svg","alt","System API",1,"fa-fw","mr-1"],[1,"float-right"],["href","https://docs.apimaker.dev/v1/examples/sys/system/system.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"fa-fw","ml-3","mr-1","mt-n1",2,"font-size","25px"],["class","float-right cursor-pointer","tooltipPosition","left","pTooltip","All System APIs",4,"ngIf"],["class","float-right cursor-pointer","pTooltip","All System APIs",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],[4,"ngIf"],["class","h-100",4,"ngIf"],[3,"data"],["systemApiFormC",""],["tooltipPosition","left","pTooltip","All System APIs",1,"float-right","cursor-pointer"],[1,"align-middle","mb-0","mt--2px"],[3,"ngModel","binary","ngModelChange"],["pTooltip","All System APIs",1,"float-right","cursor-pointer"],[1,"p-2","text-center","text-success"],[1,"h-100"],["styleClass","p-datatable-striped system-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"],["style","width: 140px;",4,"ngIf"],[2,"width","45px"],[2,"width","80px"],[2,"width","140px"],[3,"pSelectableRow"],["class","text-center",4,"ngIf"],[3,"value","pSelectableRow"],[1,"text-center"],["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-1",3,"routerLink","queryParams","click"],[1,"fas","fa-vial","text-info","fa-fw","test-tube","pt-1"],["class","btn btn-xsm-custom mr-1","pTooltip","Add System API Setting","tooltipPosition","left",3,"click",4,"ngIf"],["class","btn btn-xsm-custom mr-1","pTooltip","Edit System API Setting","tooltipPosition","left",3,"click",4,"ngIf"],["class","btn btn-xsm-custom","pTooltip","Permanent Delete System API Setting","tooltipPosition","left",3,"click",4,"ngIf"],["pTooltip","Add System API Setting","tooltipPosition","left",1,"btn","btn-xsm-custom","mr-1",3,"click"],[1,"fas","fa-plus","text-success","fa-fw","cursor-pointer"],["pTooltip","Edit System API Setting","tooltipPosition","left",1,"btn","btn-xsm-custom","mr-1",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw","cursor-pointer"],["pTooltip","Permanent Delete System API Setting","tooltipPosition","left",1,"btn","btn-xsm-custom",3,"click"],[1,"far","fa-trash-alt","fa-fw","cursor-pointer","text-danger"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(n,_){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span"),t._UZ(3,"img",2),t._uU(4," System APIs"),t.qZA(),t.TgZ(5,"div",3)(6,"a",4),t._UZ(7,"img",5),t.qZA()(),t.YNc(8,V,3,2,"span",6),t.YNc(9,j,3,2,"span",7),t.qZA(),t.TgZ(10,"div",8),t.YNc(11,X,3,1,"div",9),t.YNc(12,yt,5,7,"div",10),t.qZA()(),t._UZ(13,"app-w-system-api-form",11,12)),2&n&&(t.xp6(8),t.Q6J("ngIf",_.isDependentOnGroup),t.xp6(1),t.Q6J("ngIf",_.isFilterLogTable),t.xp6(2),t.Q6J("ngIf",_.eventCenterS.group.apisRegex.allSystemApis||_.eventCenterS.filterInLog.apisRegex.allSystemApis),t.xp6(1),t.Q6J("ngIf",!(_.eventCenterS.group.apisRegex.allSystemApis||_.eventCenterS.filterInLog.apisRegex.allSystemApis)),t.xp6(1),t.Q6J("data",_.data))},dependencies:[Z.rH,U.JJ,U.On,G.O5,T.iA,b.jx,T.Ei,T.UA,T.Mo,J.G,Y.u,Q.XZ,k.S],encapsulation:2})}return i})()}}]);
|