@sava-info-systems/api-maker-with-extensions 1.19.2 → 1.19.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/dist/1025.ad3d7fe2972421a7.js +1 -0
  2. package/dist/1097.f7edc9a254293cbe.js +1 -0
  3. package/dist/148.3d1172921fc38628.js +1 -0
  4. package/dist/1558.d77067ef3989dc57.js +1 -0
  5. package/dist/{1351.48e08341fba9b889.js → 1617.cd35a3a268fd8f90.js} +1 -1
  6. package/dist/1678.2c6fe869dc9df280.js +1 -0
  7. package/dist/1754.616b92791d39dab1.js +1 -0
  8. package/dist/1928.a299b3986d670379.js +1 -0
  9. package/dist/1957.cafa315c70f23efe.js +1 -0
  10. package/dist/2140.82e389d21656cd83.js +1 -0
  11. package/dist/2295.b066a00a7c4c4d9c.js +1 -0
  12. package/dist/238.6207cf874f0ff82a.js +1 -0
  13. package/dist/2473.6a522dcf87dfb922.js +1 -0
  14. package/dist/2714.1ed8bfd73f5693eb.js +1 -0
  15. package/dist/{3611.9577d58af5f1f4aa.js → 2735.880b4c038ef3207e.js} +1 -1
  16. package/dist/2908.c7cbde300e1840a4.js +1 -0
  17. package/dist/3081.e470a8aeed4a7745.js +1 -0
  18. package/dist/3139.7a6ebcaa6a5f38f6.js +1 -0
  19. package/dist/3450.68d8d179c9496764.js +1 -0
  20. package/dist/4110.1747a68dfaacbbd8.js +1 -0
  21. package/dist/4186.601304798e909236.js +1 -0
  22. package/dist/4211.b7a72c8db8263edf.js +1 -0
  23. package/dist/4575.987834c6e73af961.js +1 -0
  24. package/dist/4842.f89ded9e1e9f1110.js +1 -0
  25. package/dist/485.b333cf63f954b75c.js +1 -0
  26. package/dist/4895.95e42b567a89ce84.js +1 -0
  27. package/dist/5249.52aa732ef6a173c5.js +1 -0
  28. package/dist/5334.8ed5b236a6948681.js +1 -0
  29. package/dist/5421.e729ed3585afa9af.js +1 -0
  30. package/dist/5679.53292305f1448567.js +1 -0
  31. package/dist/5761.c363fe26244e8787.js +1 -0
  32. package/dist/5765.e70cd773673bfe27.js +1 -0
  33. package/dist/6236.b81e95926f7fcd60.js +1 -0
  34. package/dist/6393.1323e8b7d2cdae70.js +1 -0
  35. package/dist/6401.02e5b3cb94d0322a.js +1 -0
  36. package/dist/{8970.8eece52bbc1c316c.js → 6925.d59cabb0e343d24c.js} +1 -1
  37. package/dist/7368.4c04430d3efc5947.js +1 -0
  38. package/dist/{2442.adbc5b49349bb569.js → 7436.7e4876b9e90efde6.js} +1 -1
  39. package/dist/7470.9195bddaee5202e0.js +1 -0
  40. package/dist/7649.870e05f3aa978078.js +1 -0
  41. package/dist/7975.dbe6e674c50ab553.js +1 -0
  42. package/dist/7977.35ebfb6f4c9503b4.js +1 -0
  43. package/dist/7987.37367b65a76d5083.js +1 -0
  44. package/dist/8125.58e1a7a385797896.js +1 -0
  45. package/dist/8266.d665463de8b8d75a.js +1 -0
  46. package/dist/8296.32f107844a1381b6.js +1 -0
  47. package/dist/{3732.b5ac36f1448e215c.js → 8374.11d430ef2432bfba.js} +1 -1
  48. package/dist/{6589.b9c83295e466e464.js → 8682.5bde1163690a18dc.js} +1 -1
  49. package/dist/8841.6cb824dd9d5ad8f8.js +1 -0
  50. package/dist/885.e3d53b62c51f8311.js +1 -0
  51. package/dist/{9785.35cc7f0c3778344e.js → 891.333c6913b8246e3c.js} +1 -1
  52. package/dist/913.7d41933171ab9fbe.js +1 -0
  53. package/dist/9243.c223cdbc4cd84cb8.js +1 -0
  54. package/dist/9575.0a35a4da70f9e6e5.js +1 -0
  55. package/dist/9939.218315684234eb18.js +1 -0
  56. package/dist/common.442040891fd4ef29.js +1 -0
  57. package/dist/index.html +1 -1
  58. package/dist/main.9630ecd9c9613e82.js +1 -0
  59. package/dist/polyfills.93062920aa87d580.js +1 -0
  60. package/dist/runtime.21919a870e05d69b.js +1 -0
  61. package/main.js +1 -1
  62. package/package.json +4 -4
  63. package/sandbox/sandbox.js +1 -1
  64. package/src/tools/local-client.js +1 -1
  65. package/dist/1417.5caf023140e7c67f.js +0 -1
  66. package/dist/1468.d42293f7d802a787.js +0 -1
  67. package/dist/1959.a22fe393419f10c5.js +0 -1
  68. package/dist/2162.3c94f3d66c6312d5.js +0 -1
  69. package/dist/2818.71176f4848a9419f.js +0 -1
  70. package/dist/3488.ada60be2dbcd9845.js +0 -1
  71. package/dist/3545.b5585792e9fe1447.js +0 -1
  72. package/dist/3605.3c6cdf2a08c47301.js +0 -1
  73. package/dist/3621.412300a009ea6346.js +0 -1
  74. package/dist/379.d3e61f3350a595dc.js +0 -1
  75. package/dist/3929.9ac933e926943db2.js +0 -1
  76. package/dist/4092.71b0eccc0cb429f0.js +0 -1
  77. package/dist/4124.a8329e77343e7087.js +0 -1
  78. package/dist/4316.542be541e58dff84.js +0 -1
  79. package/dist/4344.d8f42d425eaec852.js +0 -1
  80. package/dist/4689.e827720779e0cf34.js +0 -1
  81. package/dist/4709.262c34f60b50ebc9.js +0 -1
  82. package/dist/4774.a4368f3ce2e778da.js +0 -1
  83. package/dist/4880.70ca405524206be7.js +0 -1
  84. package/dist/5011.ed9a6465223f760d.js +0 -1
  85. package/dist/5090.c8bf74c35b0a5d26.js +0 -1
  86. package/dist/5140.581ccd2699e2a8a8.js +0 -1
  87. package/dist/5362.912e053f78479e90.js +0 -1
  88. package/dist/5442.186b40719e7c1da9.js +0 -1
  89. package/dist/5455.a1d0d507419e3c59.js +0 -1
  90. package/dist/5729.f0ee236ba6579a94.js +0 -1
  91. package/dist/5826.44efead20568788a.js +0 -1
  92. package/dist/6053.67f38f7b35484475.js +0 -1
  93. package/dist/6220.b6c29e6e3e717880.js +0 -1
  94. package/dist/6415.a48241737e134178.js +0 -1
  95. package/dist/6679.c5073d3a60b67e2e.js +0 -1
  96. package/dist/6828.36c6805f2b3c6f38.js +0 -1
  97. package/dist/6866.4dd76a41246a20be.js +0 -1
  98. package/dist/6882.fe03a3df377ca119.js +0 -1
  99. package/dist/7014.5db4db60cc21782e.js +0 -1
  100. package/dist/7152.dab3cc50472f703f.js +0 -1
  101. package/dist/7367.ba1e63db0f9b97f4.js +0 -1
  102. package/dist/7374.ebfe1004d1773912.js +0 -1
  103. package/dist/7597.177f15771dcdea42.js +0 -1
  104. package/dist/7759.2b4ed39a62323abd.js +0 -1
  105. package/dist/807.dba59148bbbbe7fb.js +0 -1
  106. package/dist/8219.2c97945d465ab185.js +0 -1
  107. package/dist/8447.8caa67c3eb5d2b55.js +0 -1
  108. package/dist/9036.876c1f0c1ce4e82b.js +0 -1
  109. package/dist/9347.4e7d02eee86c5778.js +0 -1
  110. package/dist/9429.9299aa0abda3dc76.js +0 -1
  111. package/dist/9882.a94c746b42e5fc0e.js +0 -1
  112. package/dist/9957.47ed0e74bdfeddd5.js +0 -1
  113. package/dist/common.d4eb1616e93e21e1.js +0 -1
  114. package/dist/main.1da32156380b46d5.js +0 -1
  115. package/dist/polyfills.9cbb1c8222a6b6c3.js +0 -1
  116. package/dist/runtime.212fca73d6a42b3a.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[8296],{8296:(Nt,P,d)=>{d.r(P),d.d(P,{LogTableM:()=>Pt});var O=d(7664),J=d(7017),Q=d(3726),B=d(1025),u=d(5861),e=d(4946),r=d(6990),T=d(6925),N=d(3157),E=d(328),p=d(1162),c=d(5085),F=d(819),H=d(5852),D=d(7240),Y=d(3429),G=d(7629),L=d(2915),K=d(1042),V=d(7145),j=d(262),W=d(1429),Z=d(5219),b=d(7414),M=d(95),_=d(6814),x=d(5431),q=d(7680),R=d(3259),X=d(1532),z=d(2169),w=d(9961),ee=d(2660),te=d(5043),ie=d(3885),se=d(559),ae=d(6937),ne=d(356),le=d(9329),oe=d(7595),re=d(3824),de=d(8651),pe=d(6607),ce=d(5305),ue=d(2726);function ge(a,o){1&a&&(e.TgZ(0,"div",38),e._UZ(1,"app-w-instances",39),e.qZA()),2&a&&(e.xp6(1),e.Q6J("metaKeySelection",!1)("IsReadOnly",!0)("IsFilterLogTable",!0))}function me(a,o){1&a&&(e.TgZ(0,"div",40),e._UZ(1,"app-w-databases",39),e.qZA()),2&a&&(e.xp6(1),e.Q6J("metaKeySelection",!1)("IsReadOnly",!0)("IsFilterLogTable",!0))}function _e(a,o){1&a&&e._UZ(0,"p-progressSpinner",41)}const he=function(){return[50,50]};let ve=(()=>{class a{eventCenterS;notificationS;constantsS;data;EAPICategory=c.R;loading={form:!1};constructor(t,i,s){this.eventCenterS=t,this.notificationS=i,this.constantsS=s}ngOnInit(){}showModal(){$("#idFilterPanelInLogsTableForm").modal("show")}hideModal(){$("#idFilterPanelInLogsTableForm").modal("hide")}applyFilter(){const t={};t.supportedAPIs=this.eventCenterS.filterInLog.supportedAPIs.value,t.customApis=this.getPermissionMapFunctions(this.eventCenterS.filterInLog.functions.value),t.systemApis=this.getPermissionMapFunctions(this.eventCenterS.filterInLog.systemApis.value),t.eventsApis=this.getPermissionMapFunctions(this.eventCenterS.filterInLog.eventsApis.value),t.schedulersApis=this.getPermissionMapFunctions(this.eventCenterS.filterInLog.schedulersApis.value),t.webSocketEvents=this.getPermissionMapFunctions(this.eventCenterS.filterInLog.webSocketApis.value),t.thirdPartyApis=this.eventCenterS.filterInLog.thirdPartyAPIs.value,t.queryParams={},t.apisRegex=this.eventCenterS.filterInLog.apisRegex,this.setDataInObjectFromEventCenter(t),this.data.eventChannel.emit({action:N.F.APPLY_FILTER,data:t}),this.notificationS.showSuccess("Success.")}setDataInObjectFromEventCenter(t){t.queryParams.instanceIds=this.eventCenterS.filterInLog.instanceIds.value,t.queryParams.databaseIds=this.eventCenterS.filterInLog.databaseIds.value,t.queryParams.databaseNames=this.eventCenterS.filterInLog.databaseNames.value,t.queryParams.collectionIds=this.eventCenterS.filterInLog.collectionIds.value,t.queryParams.collectionNames=this.eventCenterS.filterInLog.collectionNames.value,t.queryParams.supportedApiIds=this.eventCenterS.filterInLog.supportedApiIds.value,t.queryParams.supportedApiNames=this.eventCenterS.filterInLog.supportedApiNames.value,t.queryParams.functions=this.eventCenterS.filterInLog.functionIds.value,t.queryParams.systemApis=this.eventCenterS.filterInLog.systemApiIds.value,t.queryParams.eventIds=this.eventCenterS.filterInLog.eventIds.value,t.queryParams.schedulersIds=this.eventCenterS.filterInLog.schedulersIds.value,t.queryParams.webSocketIds=this.eventCenterS.filterInLog.webSocketIds.value,this.setThirdPartyApiIds(t)}setThirdPartyApiIds(t){const i=this.eventCenterS.filterInLog.thirdPartyApiIds.value,s=[];for(const n of i)n.length>=24&&s.push(n);t.queryParams.thirdPartyApis=s}getPermissionMapFunctions(t){const i={};for(const s of t||[])i[s._id]=!0;return i}ngOnDestroy(){this.eventCenterS.filterInLog.apisRegex={}}static \u0275fac=function(i){return new(i||a)(e.Y36(L.u),e.Y36(w.W),e.Y36(b.L))};static \u0275cmp=e.Xpm({type:a,selectors:[["app-log-filter-panel-layout-model"]],inputs:{data:"data"},decls:52,vars:54,consts:[["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idFilterPanelInLogsTableForm","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal"],["role","document",1,"modal-dialog","modal-full"],[1,"modal-content",2,"max-height","calc(100vh - 58px)"],[1,"modal-header"],[1,"fas","fa-plus","text-success","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"],[2,"width","max-content"],[1,"v-div","w-categories"],[1,"vertical-height-max"],[3,"isFilterLogTable","typeIsGroup"],[1,"v-div","w-ins-db"],["layout","vertical",3,"panelSizes"],["pTemplate",""],[1,"v-div","w-collection"],[3,"metaKeySelection","IsReadOnly","IsFilterLogTable"],[1,"v-div","w-ins-apis"],[1,"vertical-height-max",2,"width","500px"],[3,"isLPM","isFilterLogTable","treeViewId"],[1,"v-div","w-third-party"],[1,"vertical-height-tp-api"],[3,"isFilterLogTable","isLPM","IsDependentOnGroup"],[1,"v-div","w-custom-apis"],[3,"metaKeySelection","IsReadOnly","isFilterLogTable","isLPM"],[1,"v-div","w-system-apis"],[1,"v-div","w-events"],[1,"v-div","w-schedulers"],[3,"metaKeySelection","IsReadOnly","IsMultiSelect","isFilterLogTable","isLPM"],[1,"v-div","w-web-sockets"],[3,"metaKeySelection","showCheckbox","IsReadOnly","isFilterLogTable","isLPM"],[1,"modal-footer"],["data-dismiss","modal","type","button",1,"btn","btn-sm","btn-secondary"],[1,"fas","fa-times","text-danger","fa-fw"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"click"],[1,"fas","fa-filter","text-yellow","fa-fw","mr-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[1,"vertical-height-instances","w-100"],[1,"w-100",3,"metaKeySelection","IsReadOnly","IsFilterLogTable"],[1,"vertical-height-db","w-100"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(i,s){1&i&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span"),e._UZ(5,"i",4),e._uU(6,"Filter "),e.qZA(),e.TgZ(7,"button",5)(8,"span",6),e._UZ(9,"i",7),e.qZA()()(),e.TgZ(10,"div",8)(11,"div",9)(12,"div",10)(13,"div",11),e._UZ(14,"app-w-api-categories",12),e.qZA()(),e.TgZ(15,"div",13)(16,"p-splitter",14),e.YNc(17,ge,2,3,"ng-template",15),e.YNc(18,me,2,3,"ng-template",15),e.qZA()(),e.TgZ(19,"div",16)(20,"div",11),e._UZ(21,"app-w-collections",17),e.qZA()(),e.TgZ(22,"div",18)(23,"div",19),e._UZ(24,"app-w-supported-api",20),e.qZA()(),e.TgZ(25,"div",21)(26,"div",22),e._UZ(27,"app-w-supported-tp-api",23),e.qZA()(),e.TgZ(28,"div",24)(29,"div",11),e._UZ(30,"app-custom-api-grid",25),e.qZA()(),e.TgZ(31,"div",26)(32,"div",11),e._UZ(33,"app-system-api-w",25),e.qZA()(),e.TgZ(34,"div",27)(35,"div",11),e._UZ(36,"app-events-grid",25),e.qZA()(),e.TgZ(37,"div",28)(38,"div",11),e._UZ(39,"app-scheduler-man-w",29),e.qZA()(),e.TgZ(40,"div",30)(41,"div",11),e._UZ(42,"app-web-socket-events-grid",31),e.qZA()()()(),e.TgZ(43,"div",32)(44,"button",33),e._UZ(45,"i",34),e._uU(46," Cancel"),e.qZA(),e.TgZ(47,"button",35),e.NdJ("click",function(){return s.applyFilter()}),e._UZ(48,"i",36),e.TgZ(49,"span"),e._uU(50,"Apply Filter"),e.qZA()()(),e.YNc(51,_e,1,0,"p-progressSpinner",37),e.qZA()()()),2&i&&(e.xp6(14),e.Q6J("isFilterLogTable",!0)("typeIsGroup","LOG_PROFILE"),e.xp6(1),e.Udp("display",(null==s.eventCenterS.apiCategory.selectedApiCategory||null==s.eventCenterS.apiCategory.selectedApiCategory.value[0]?null:s.eventCenterS.apiCategory.selectedApiCategory.value[0].id)===s.EAPICategory.INSTANCES?"block":"none"),e.xp6(1),e.Q6J("panelSizes",e.DdM(53,he)),e.xp6(3),e.Udp("display",(null==s.eventCenterS.apiCategory.selectedApiCategory||null==s.eventCenterS.apiCategory.selectedApiCategory.value[0]?null:s.eventCenterS.apiCategory.selectedApiCategory.value[0].id)===s.EAPICategory.INSTANCES?"block":"none"),e.xp6(2),e.Q6J("metaKeySelection",!1)("IsReadOnly",!0)("IsFilterLogTable",!0),e.xp6(1),e.Udp("display",(null==s.eventCenterS.apiCategory.selectedApiCategory||null==s.eventCenterS.apiCategory.selectedApiCategory.value[0]?null:s.eventCenterS.apiCategory.selectedApiCategory.value[0].id)===s.EAPICategory.INSTANCES?"block":"none"),e.xp6(2),e.Q6J("isLPM",!1)("isFilterLogTable",!0)("treeViewId","treeViewFromLogFilterPanel"),e.xp6(1),e.Udp("display",(null==s.eventCenterS.apiCategory.selectedApiCategory||null==s.eventCenterS.apiCategory.selectedApiCategory.value[0]?null:s.eventCenterS.apiCategory.selectedApiCategory.value[0].id)===s.EAPICategory.THIRD_PARTY_APIS?"block":"none"),e.xp6(2),e.Q6J("isFilterLogTable",!0)("isLPM",!1)("IsDependentOnGroup",!1),e.xp6(1),e.Udp("display",(null==s.eventCenterS.apiCategory.selectedApiCategory||null==s.eventCenterS.apiCategory.selectedApiCategory.value[0]?null:s.eventCenterS.apiCategory.selectedApiCategory.value[0].id)===s.EAPICategory.CUSTOM_APIS?"block":"none"),e.xp6(2),e.Q6J("metaKeySelection",!1)("IsReadOnly",!0)("isFilterLogTable",!0)("isLPM",!1),e.xp6(1),e.Udp("display",(null==s.eventCenterS.apiCategory.selectedApiCategory||null==s.eventCenterS.apiCategory.selectedApiCategory.value[0]?null:s.eventCenterS.apiCategory.selectedApiCategory.value[0].id)===s.EAPICategory.SYSTEM_APIS?"block":"none"),e.xp6(2),e.Q6J("metaKeySelection",!1)("IsReadOnly",!0)("isFilterLogTable",!0)("isLPM",!1),e.xp6(1),e.Udp("display",(null==s.eventCenterS.apiCategory.selectedApiCategory||null==s.eventCenterS.apiCategory.selectedApiCategory.value[0]?null:s.eventCenterS.apiCategory.selectedApiCategory.value[0].id)===s.EAPICategory.EVENTS?"block":"none"),e.xp6(2),e.Q6J("metaKeySelection",!1)("IsReadOnly",!0)("isFilterLogTable",!0)("isLPM",!1),e.xp6(1),e.Udp("display",(null==s.eventCenterS.apiCategory.selectedApiCategory||null==s.eventCenterS.apiCategory.selectedApiCategory.value[0]?null:s.eventCenterS.apiCategory.selectedApiCategory.value[0].id)===s.EAPICategory.SCHEDULERS?"block":"none"),e.xp6(2),e.Q6J("metaKeySelection",!1)("IsReadOnly",!0)("IsMultiSelect",!0)("isFilterLogTable",!0)("isLPM",!1),e.xp6(1),e.Udp("display",(null==s.eventCenterS.apiCategory.selectedApiCategory||null==s.eventCenterS.apiCategory.selectedApiCategory.value[0]?null:s.eventCenterS.apiCategory.selectedApiCategory.value[0].id)===s.EAPICategory.WEB_SOCKET_EVENT?"block":"none"),e.xp6(2),e.Q6J("metaKeySelection",!1)("showCheckbox",!0)("IsReadOnly",!0)("isFilterLogTable",!0)("isLPM",!1),e.xp6(9),e.Q6J("ngIf",s.loading.form))},dependencies:[_.O5,ee.y,Z.jx,q.G,te.q,ie.f,se.O,ae.n,ne.T,le.X,oe.G,re.d,de.A,pe.V,ce.N,ue.x],styles:[".vertical-height-instances[_ngcontent-%COMP%]{height:248px}.vertical-height-db[_ngcontent-%COMP%]{height:calc(100vh - 410px)}.vertical-height-max[_ngcontent-%COMP%], .vertical-height-tp-api[_ngcontent-%COMP%]{height:calc(100vh - 154px)}.v-div[_ngcontent-%COMP%]{display:inline-block;height:calc(100vh - 158px);float:left}.w-categories[_ngcontent-%COMP%]{width:17rem}.w-ins-db[_ngcontent-%COMP%]{width:25rem}.w-collection[_ngcontent-%COMP%]{width:28rem}.w-ins-apis[_ngcontent-%COMP%]{width:35rem}.w-custom-apis[_ngcontent-%COMP%], .w-system-apis[_ngcontent-%COMP%], .w-third-party[_ngcontent-%COMP%], .w-web-sockets[_ngcontent-%COMP%], .w-events[_ngcontent-%COMP%], .w-schedulers[_ngcontent-%COMP%]{width:calc(100vw - 24.5rem)}"]})}return a})();var v=d(7672),fe=d(2304),ye=d(756);function Ce(a,o){1&a&&(e.TgZ(0,"tr")(1,"th"),e._uU(2,"Keys"),e.qZA(),e.TgZ(3,"th"),e._uU(4,"Value"),e.qZA()())}function Ae(a,o){if(1&a&&(e.TgZ(0,"tr",43)(1,"td",44)(2,"span"),e._uU(3),e.qZA()(),e.TgZ(4,"td")(5,"span"),e._uU(6),e.qZA()()()),2&a){const t=o.$implicit;e.Q6J("pSelectableRow",t),e.xp6(3),e.Oqu(t.toString().split(",")[0]),e.xp6(3),e.Oqu(t.toString().split(",")[1]||"")}}function Te(a,o){1&a&&(e.TgZ(0,"tr")(1,"th"),e._uU(2,"Keys"),e.qZA(),e.TgZ(3,"th"),e._uU(4,"Value"),e.qZA()())}function Ze(a,o){if(1&a&&(e.TgZ(0,"tr",43)(1,"td",44)(2,"span"),e._uU(3),e.qZA()(),e.TgZ(4,"td")(5,"span"),e._uU(6),e.qZA()()()),2&a){const t=o.$implicit;e.Q6J("pSelectableRow",t),e.xp6(3),e.Oqu(t.toString().split(",")[0]),e.xp6(3),e.Oqu(t.toString().split(",")[1]||"")}}const xe=function(a,o,t,i){return{get:a,put:o,post:t,delete:i}},U=function(){return{color:"#26b47f"}},k=function(){return{color:"#ed4b48"}};let Ie=(()=>{class a{ec;notificationS;generalCS;logS;cd;monacoS;constantsS;EAPICategory=c.R;loading={form:!1};selectedRowData;reqHeaders=[];resHeaders=[];inputData;editorReqQueryParams;editorOptionReqQueryParams={readOnly:!1,language:"json",contextmenu:!1};editorReqBody;editorOptionReqBody={readOnly:!1,language:"json",contextmenu:!1};editorResBody;editorOptionResBody={readOnly:!1,language:"json",contextmenu:!1};editorLogs;editorOptionLogs={readOnly:!1,language:"text",contextmenu:!1};reqHeaderCollapse;reqQueryParamsCollapse;reqBodyCollapse;resHeaderCollapse;resQueryParamsCollapse;resBodyCollapse;logsBodyCollapse;ERequestMethod=T.Yp;constructor(t,i,s,n,l,g,h){this.ec=t,this.notificationS=i,this.generalCS=s,this.logS=n,this.cd=l,this.monacoS=g,this.constantsS=h}ngOnInit(){}hideModal(){$("#idLogDetailsLayoutModal").modal("hide")}showModal(t){var i=this;return(0,u.Z)(function*(){try{if(i.inputData=t[0],!i.inputData)return;yield i.getLogByID(i.inputData._id),i.collapseAll(),$("#idLogDetailsLayoutModal").modal("show")}catch(s){console.log(s)}})()}getLogByID(t){var i=this;return(0,u.Z)(function*(){const s=(yield i.logS.getById(t).toPromise()).data;if(i.inputData=Object.assign({},i.inputData,s),s){s.pathVariables=JSON.parse(s.pathVariables||"{}"),s.meta&&(s.executionTime=s.meta?.executionTime),s.createdAt=moment(s.createdAt).format("DD-MM-YYYY hh:mm:ss A"),s.updatedAt=moment(s.updatedAt).format("DD-MM-YYYY hh:mm:ss A");for(const l of i.getKeys(s.pathVariables))s[l]=s.pathVariables[l];for(const l of s.apiErrors||[])for(const g of i.getKeys(l))s[g]=l[g];delete s.pathVariables,delete s.apiErrors,delete s.meta,delete s._id,delete s.user,delete s.instance,delete s.apiUser}if(i.selectedRowData=s,i.reqHeaders=i.selectedRowData?.reqHeaders?Object.entries(i.selectedRowData.reqHeaders):[],i.generalCS.setValueInEditor(i,"editorReqQueryParams",i.selectedRowData.queryParams||""),i.generalCS.setValueInEditor(i,"editorReqBody",i.selectedRowData.reqPayload||""),i.selectedRowData.resHeaders){i.resHeaders=Object.entries(i.selectedRowData.resHeaders);const l=i.selectedRowData.resHeaders[T.Eg.CONTENT_TYPE];yield i.setResponseBodyLanguage(l)}else i.resHeaders=[];let n=i.selectedRowData.resPayload;(!i.selectedRowData.resHeaders||i.selectedRowData.resHeaders&&i.selectedRowData.resHeaders[T.Eg.CONTENT_TYPE].indexOf(v.g7.JSON)>=0)&&(n=JSON.stringify(i.selectedRowData.resPayload)),i.generalCS.setValueInEditor(i,"editorResBody",n||""),i.generalCS.setValueInEditor(i,"editorLogs",i.selectedRowData.logs||""),i.cd.detectChanges()})()}setResponseBodyLanguage(t){var i=this;return(0,u.Z)(function*(){t.indexOf(v.g7.JSON)>=0?(i.editorOptionResBody.language="json",i.monacoS.setLanguage(i.editorResBody,i.editorOptionResBody.language)):t.indexOf(v.g7.HTML)>=0?(i.editorOptionResBody.language="html",i.monacoS.setLanguage(i.editorResBody,i.editorOptionResBody.language)):t.indexOf(v.g7.XML)>=0?(i.editorOptionResBody.language="xml",i.monacoS.setLanguage(i.editorResBody,i.editorOptionResBody.language)):t.indexOf(v.g7.YAML)>=0?(i.editorOptionResBody.language="yaml",i.monacoS.setLanguage(i.editorResBody,i.editorOptionResBody.language)):t.indexOf(v.g7.TEXT)>=0&&(i.editorOptionResBody.language="plaintext",i.monacoS.setLanguage(i.editorResBody,i.editorOptionResBody.language))})()}getKeys(t){return t?Object.keys(t):[]}requestHeaderClick(){this.reqHeaderCollapse=!this.reqHeaderCollapse}requestQueryParamsClick(){void 0!==this.editorReqQueryParams&&this.monacoS.formatDocument(this.editorReqQueryParams),this.reqQueryParamsCollapse=!this.reqQueryParamsCollapse}requestBodyClick(){void 0!==this.editorReqBody&&this.monacoS.formatDocument(this.editorReqBody),this.reqBodyCollapse=!this.reqBodyCollapse}responseHeaderClick(){this.resHeaderCollapse=!this.resHeaderCollapse}responseBodyClick(){void 0!==this.editorResBody&&this.monacoS.formatDocument(this.editorResBody),this.resBodyCollapse=!this.resBodyCollapse}logsBodyClick(){void 0!==this.editorLogs&&this.monacoS.formatDocument(this.editorLogs),this.logsBodyCollapse=!this.logsBodyCollapse}expandAll(){this.reqHeaderCollapse=!0,this.reqQueryParamsCollapse=!0,this.reqBodyCollapse=!0,this.resHeaderCollapse=!0,this.resQueryParamsCollapse=!0,this.resBodyCollapse=!0,this.logsBodyCollapse=!0,void 0!==this.editorReqQueryParams&&this.monacoS.formatDocument(this.editorReqQueryParams),void 0!==this.editorReqBody&&this.monacoS.formatDocument(this.editorReqBody),void 0!==this.editorResBody&&this.monacoS.formatDocument(this.editorResBody),void 0!==this.editorLogs&&this.monacoS.formatDocument(this.editorLogs),this.cd.detectChanges()}collapseAll(){this.reqHeaderCollapse=!1,this.reqQueryParamsCollapse=!1,this.reqBodyCollapse=!1,this.resHeaderCollapse=!1,this.resQueryParamsCollapse=!1,this.resBodyCollapse=!1,this.logsBodyCollapse=!1,this.cd.detectChanges()}ngOnDestroy(){this.ec.filterInLog.apisRegex={}}static \u0275fac=function(i){return new(i||a)(e.Y36(L.u),e.Y36(w.W),e.Y36(D.b),e.Y36(F.e),e.Y36(e.sBO),e.Y36(fe.b),e.Y36(b.L))};static \u0275cmp=e.Xpm({type:a,selectors:[["app-log-details-layout-model"]],decls:141,vars:50,consts:[["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idLogDetailsLayoutModal","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal"],["role","document",1,"modal-dialog","modal-full"],[1,"modal-content"],[1,"modal-header"],[2,"margin-top","1px"],[1,"fas","fa-info-circle","text-success","fa-fw","mr-1"],[1,"float-right"],["aria-label","Close","data-dismiss","modal","type","button",1,"close"],["aria-hidden","true"],[1,"fas","fa-window-close"],["pTooltip","Expand",1,"cursor-pointer"],[1,"btn-outline-light","btn-sm","mr-1","mt-1px","ng-star-inserted","text-danger","fas","fa-expand-alt",3,"click"],["pTooltip","Collapse",1,"cursor-pointer"],[1,"btn-outline-light","btn-sm","mr-1","mt-1px","ng-star-inserted","fas","fa-compress-alt",3,"click"],[1,"modal-body","p-4",2,"overflow-y","scroll"],[1,""],[1,"table","table-hover","table-striped","table-bordered","table-sm"],[2,"width","150px"],[2,"width","10px"],[1,"pl-2"],[3,"ngClass"],[3,"ngStyle"],["id","reqHeader",1,"cursor-pointer","logs-collapse-div",3,"click"],[2,"margin-left","10px"],[1,"float-right","mr-2",3,"hidden"],[1,"fas","fa-caret-down"],[1,"fas","fa-caret-up"],[1,"mt-1",2,"background","#373b3d","border-radius","10px",3,"hidden"],["styleClass","p-datatable-striped","scrollHeight","calc(100vh - 100px)",3,"selectionMode","metaKeySelection","scrollable","value"],["pTemplate","header"],["pTemplate","body"],["id","reqQueryParams",1,"mt-1","cursor-pointer","logs-collapse-div",3,"click"],[1,"overflow-auto",2,"height","300px !important"],[3,"editorOptions","editorGenerated"],["id","reqBody",1,"mt-1","cursor-pointer","logs-collapse-div",3,"click"],["id","resHeader",1,"mt-1","cursor-pointer","logs-collapse-div",3,"click"],["id","resBody",1,"mt-1","cursor-pointer","logs-collapse-div",3,"click"],["id","logsBody",1,"mt-1","cursor-pointer","logs-collapse-div",3,"click"],[1,"ml-2"],[1,"modal-footer"],["data-dismiss","modal","type","button",1,"btn","btn-sm","btn-secondary"],[1,"fas","fa-times","text-danger","fa-fw"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",3,"hidden"],[3,"pSelectableRow"],[2,"white-space","nowrap"]],template:function(i,s){1&i&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4),e._UZ(5,"i",5),e._uU(6,"Detail view "),e.qZA(),e.TgZ(7,"div",6)(8,"button",7)(9,"span",8),e._UZ(10,"i",9),e.qZA()(),e.TgZ(11,"span",10)(12,"i",11),e.NdJ("click",function(){return s.expandAll()}),e.qZA()(),e.TgZ(13,"span",12)(14,"i",13),e.NdJ("click",function(){return s.collapseAll()}),e.qZA()()()(),e.TgZ(15,"div",14)(16,"div",15)(17,"table",16)(18,"colgroup"),e._UZ(19,"col",17)(20,"col",18)(21,"col"),e.qZA(),e.TgZ(22,"tr")(23,"td"),e._uU(24,"URL"),e.qZA(),e.TgZ(25,"td"),e._uU(26," :"),e.qZA(),e.TgZ(27,"td",19),e._uU(28),e.qZA()(),e.TgZ(29,"tr")(30,"td"),e._uU(31,"Method"),e.qZA(),e.TgZ(32,"td"),e._uU(33," :"),e.qZA(),e.TgZ(34,"td",19)(35,"span",20),e._uU(36),e.qZA()()(),e.TgZ(37,"tr")(38,"td"),e._uU(39,"Type"),e.qZA(),e.TgZ(40,"td"),e._uU(41," :"),e.qZA(),e.TgZ(42,"td",19),e._uU(43),e.qZA()(),e.TgZ(44,"tr")(45,"td"),e._uU(46,"Name"),e.qZA(),e.TgZ(47,"td"),e._uU(48," :"),e.qZA(),e.TgZ(49,"td",19),e._uU(50),e.qZA()(),e.TgZ(51,"tr")(52,"td"),e._uU(53,"Time"),e.qZA(),e.TgZ(54,"td"),e._uU(55," :"),e.qZA(),e.TgZ(56,"td",19),e._uU(57),e.qZA()(),e.TgZ(58,"tr")(59,"td"),e._uU(60,"Status"),e.qZA(),e.TgZ(61,"td"),e._uU(62," :"),e.qZA(),e.TgZ(63,"td",19)(64,"span",21),e._uU(65),e.qZA()()(),e.TgZ(66,"tr")(67,"td"),e._uU(68,"Status Code"),e.qZA(),e.TgZ(69,"td"),e._uU(70," :"),e.qZA(),e.TgZ(71,"td",19)(72,"span",21),e._uU(73),e.qZA()()()()(),e.TgZ(74,"div",22),e.NdJ("click",function(){return s.requestHeaderClick()}),e.TgZ(75,"span",23),e._uU(76,"Request Header "),e.qZA(),e.TgZ(77,"div",24),e._UZ(78,"i",25),e.qZA(),e.TgZ(79,"div",24),e._UZ(80,"i",26),e.qZA()(),e.TgZ(81,"div",27)(82,"p-table",28),e.YNc(83,Ce,5,0,"ng-template",29),e.YNc(84,Ae,7,3,"ng-template",30),e.qZA()(),e.TgZ(85,"div",31),e.NdJ("click",function(){return s.requestQueryParamsClick()}),e.TgZ(86,"span",23),e._uU(87,"Request Query params "),e.qZA(),e.TgZ(88,"div",24),e._UZ(89,"i",25),e.qZA(),e.TgZ(90,"div",24),e._UZ(91,"i",26),e.qZA()(),e.TgZ(92,"div",27)(93,"div",32)(94,"app-monaco-editor",33),e.NdJ("editorGenerated",function(l){return s.editorReqQueryParams=l}),e.qZA()()(),e.TgZ(95,"div",34),e.NdJ("click",function(){return s.requestBodyClick()}),e.TgZ(96,"span",23),e._uU(97,"Request Body "),e.qZA(),e.TgZ(98,"div",24),e._UZ(99,"i",25),e.qZA(),e.TgZ(100,"div",24),e._UZ(101,"i",26),e.qZA()(),e.TgZ(102,"div",27)(103,"div",32)(104,"app-monaco-editor",33),e.NdJ("editorGenerated",function(l){return s.editorReqBody=l}),e.qZA()()(),e.TgZ(105,"div",35),e.NdJ("click",function(){return s.responseHeaderClick()}),e.TgZ(106,"span",23),e._uU(107,"Response Header "),e.qZA(),e.TgZ(108,"div",24),e._UZ(109,"i",25),e.qZA(),e.TgZ(110,"div",24),e._UZ(111,"i",26),e.qZA()(),e.TgZ(112,"div",27)(113,"p-table",28),e.YNc(114,Te,5,0,"ng-template",29),e.YNc(115,Ze,7,3,"ng-template",30),e.qZA()(),e.TgZ(116,"div",36),e.NdJ("click",function(){return s.responseBodyClick()}),e.TgZ(117,"span",23),e._uU(118,"Response Body "),e.qZA(),e.TgZ(119,"div",24),e._UZ(120,"i",25),e.qZA(),e.TgZ(121,"div",24),e._UZ(122,"i",26),e.qZA()(),e.TgZ(123,"div",27)(124,"div",32)(125,"app-monaco-editor",33),e.NdJ("editorGenerated",function(l){return s.editorResBody=l}),e.qZA()()(),e.TgZ(126,"div",37),e.NdJ("click",function(){return s.logsBodyClick()}),e.TgZ(127,"span",38),e._uU(128,"Logs "),e.qZA(),e.TgZ(129,"div",24),e._UZ(130,"i",25),e.qZA(),e.TgZ(131,"div",24),e._UZ(132,"i",26),e.qZA()(),e.TgZ(133,"div",27)(134,"div",32)(135,"app-monaco-editor",33),e.NdJ("editorGenerated",function(l){return s.editorLogs=l}),e.qZA()()()(),e.TgZ(136,"div",39)(137,"button",40),e._UZ(138,"i",41),e._uU(139," Cancel"),e.qZA()(),e._UZ(140,"p-progressSpinner",42),e.qZA()()()),2&i&&(e.xp6(28),e.Oqu(null==s.inputData?null:s.inputData.url),e.xp6(7),e.Q6J("ngClass",e.l5B(41,xe,(null==s.inputData?null:s.inputData.requestMethod)===s.ERequestMethod.GET,(null==s.inputData?null:s.inputData.requestMethod)===s.ERequestMethod.PUT,(null==s.inputData?null:s.inputData.requestMethod)===s.ERequestMethod.POST,(null==s.inputData?null:s.inputData.requestMethod)===s.ERequestMethod.DELETE)),e.xp6(1),e.hij(" ",null==s.inputData||null==s.inputData.requestMethod?null:s.inputData.requestMethod.toUpperCase()," "),e.xp6(7),e.Oqu(null==s.inputData?null:s.inputData.category),e.xp6(7),e.Oqu(null==s.inputData?null:s.inputData.logNameForUI),e.xp6(7),e.Oqu(null==s.inputData?null:s.inputData.createdAt),e.xp6(7),e.Q6J("ngStyle",null!=s.inputData&&s.inputData.success?e.DdM(46,U):e.DdM(47,k)),e.xp6(1),e.Oqu(null!=s.inputData&&s.inputData.success?"Success":"Fail"),e.xp6(7),e.Q6J("ngStyle",null!=s.inputData&&s.inputData.success?e.DdM(48,U):e.DdM(49,k)),e.xp6(1),e.Oqu(null==s.inputData?null:s.inputData.statusCode),e.xp6(4),e.Q6J("hidden",s.reqHeaderCollapse),e.xp6(2),e.Q6J("hidden",!s.reqHeaderCollapse),e.xp6(2),e.Q6J("hidden",!s.reqHeaderCollapse),e.xp6(1),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("scrollable",!0)("value",s.reqHeaders),e.xp6(6),e.Q6J("hidden",s.reqQueryParamsCollapse),e.xp6(2),e.Q6J("hidden",!s.reqQueryParamsCollapse),e.xp6(2),e.Q6J("hidden",!s.reqQueryParamsCollapse),e.xp6(2),e.Q6J("editorOptions",s.editorOptionReqQueryParams),e.xp6(4),e.Q6J("hidden",s.reqBodyCollapse),e.xp6(2),e.Q6J("hidden",!s.reqBodyCollapse),e.xp6(2),e.Q6J("hidden",!s.reqBodyCollapse),e.xp6(2),e.Q6J("editorOptions",s.editorOptionReqBody),e.xp6(4),e.Q6J("hidden",s.resHeaderCollapse),e.xp6(2),e.Q6J("hidden",!s.resHeaderCollapse),e.xp6(2),e.Q6J("hidden",!s.resHeaderCollapse),e.xp6(1),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("scrollable",!0)("value",s.resHeaders),e.xp6(6),e.Q6J("hidden",s.resBodyCollapse),e.xp6(2),e.Q6J("hidden",!s.resBodyCollapse),e.xp6(2),e.Q6J("hidden",!s.resBodyCollapse),e.xp6(2),e.Q6J("editorOptions",s.editorOptionResBody),e.xp6(4),e.Q6J("hidden",s.logsBodyCollapse),e.xp6(2),e.Q6J("hidden",!s.logsBodyCollapse),e.xp6(2),e.Q6J("hidden",!s.logsBodyCollapse),e.xp6(2),e.Q6J("editorOptions",s.editorOptionLogs),e.xp6(5),e.Q6J("hidden",!s.loading.form))},dependencies:[_.mk,_.PC,ye.O,x.iA,Z.jx,x.Ei,q.G,R.u],encapsulation:2})}return a})();const Se=["logFilterPanelLayoutModelC"],Le=["logDetailsLayoutModelC"];function be(a,o){if(1&a&&(e.TgZ(0,"div",7)(1,"span",8)(2,"h4",9),e._uU(3),e.qZA()()()),2&a){const t=e.oxw(2);e.xp6(3),e.Oqu(t.constantsS.logTable.setupExternalLogs)}}function qe(a,o){1&a&&(e.TgZ(0,"div",48),e._uU(1,"ALL INSTANCES"),e.qZA())}function Pe(a,o){if(1&a){const t=e.EpF();e.TgZ(0,"p-chip",50)(1,"div"),e._uU(2),e.TgZ(3,"i",51),e.NdJ("click",function(){const n=e.CHM(t).$implicit,l=e.oxw(4);return e.KtG(l.instanceClickData([n]))}),e.qZA()()()}if(2&a){const t=o.$implicit;e.xp6(2),e.hij("",null==t?null:t.name," ")}}function Ne(a,o){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,Pe,4,1,"p-chip",49),e.qZA()),2&a){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.instances)}}function Ee(a,o){1&a&&(e.TgZ(0,"div",48),e._uU(1,"ALL DATABASES"),e.qZA())}function Fe(a,o){if(1&a){const t=e.EpF();e.TgZ(0,"p-chip",53)(1,"div"),e._uU(2),e.TgZ(3,"i",51),e.NdJ("click",function(){const n=e.CHM(t).$implicit,l=e.oxw(4);return e.KtG(l.removeDbClick([n]))}),e.qZA()()()}if(2&a){const t=o.$implicit;e.xp6(2),e.hij("",null==t?null:t.db," ")}}function De(a,o){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,Fe,4,1,"p-chip",52),e.qZA()),2&a){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.databases)}}function Me(a,o){1&a&&(e.TgZ(0,"div",48),e._uU(1,"ALL COLLECTIONS"),e.qZA())}function Re(a,o){if(1&a){const t=e.EpF();e.TgZ(0,"p-chip",55)(1,"div"),e._uU(2),e.TgZ(3,"i",51),e.NdJ("click",function(){const n=e.CHM(t).$implicit,l=e.oxw(4);return e.KtG(l.removeCollectionClick([n]))}),e.qZA()()()}if(2&a){const t=o.$implicit;e.xp6(2),e.hij("",null==t?null:t.name," ")}}function we(a,o){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,Re,4,1,"p-chip",54),e.qZA()),2&a){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.collections)}}function Ue(a,o){1&a&&(e.TgZ(0,"div",48),e._uU(1,"ALL APIS"),e.qZA())}function ke(a,o){if(1&a){const t=e.EpF();e.TgZ(0,"p-chip",57)(1,"div"),e._uU(2),e.TgZ(3,"i",51),e.NdJ("click",function(){const n=e.CHM(t).$implicit,l=e.oxw(4);return e.KtG(l.removeApiClick([n]))}),e.qZA()()()}if(2&a){const t=o.$implicit;e.xp6(2),e.hij("",null==t?null:t.name," ")}}function Oe(a,o){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,ke,4,1,"p-chip",56),e.qZA()),2&a){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.supportedAPIs)}}function Je(a,o){1&a&&(e.TgZ(0,"td",29)(1,"div",48),e._uU(2,"ALL THIRD PARTY APIS"),e.qZA()())}function Qe(a,o){if(1&a){const t=e.EpF();e.TgZ(0,"p-chip",53)(1,"div"),e._uU(2),e.TgZ(3,"i",51),e.NdJ("click",function(){const n=e.CHM(t).$implicit,l=e.oxw(4);return e.KtG(l.npmPackageClickData(n,"L_1"))}),e.qZA()()()}if(2&a){const t=o.$implicit;e.xp6(2),e.hij("",null==t?null:t.name," ")}}function Be(a,o){if(1&a&&(e.TgZ(0,"td",23),e.YNc(1,Qe,4,1,"p-chip",52),e.qZA()),2&a){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.tpBundles)}}function He(a,o){if(1&a){const t=e.EpF();e.TgZ(0,"p-chip",55)(1,"div"),e._uU(2),e.TgZ(3,"i",51),e.NdJ("click",function(){const n=e.CHM(t).$implicit,l=e.oxw(4);return e.KtG(l.npmPackageClickData(n,"L_2"))}),e.qZA()()()}if(2&a){const t=o.$implicit;e.xp6(2),e.hij("",null==t?null:t.nameId," ")}}function Ye(a,o){if(1&a&&(e.TgZ(0,"td",23),e.YNc(1,He,4,1,"p-chip",54),e.qZA()),2&a){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.tpApiVersions)}}function $e(a,o){if(1&a){const t=e.EpF();e.TgZ(0,"p-chip",57)(1,"div"),e._uU(2),e.TgZ(3,"i",51),e.NdJ("click",function(){const n=e.CHM(t).$implicit,l=e.oxw(4);return e.KtG(l.npmPackageClickData(n,"L_3"))}),e.qZA()()()}if(2&a){const t=o.$implicit;e.xp6(2),e.hij("",null==t?null:t.nameId," ")}}function Ge(a,o){if(1&a&&(e.TgZ(0,"td",58),e.YNc(1,$e,4,1,"p-chip",56),e.qZA()),2&a){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.tpApis)}}function Ke(a,o){1&a&&(e.TgZ(0,"div",48),e._uU(1,"ALL CUSTOM APIS"),e.qZA())}function Ve(a,o){if(1&a){const t=e.EpF();e.TgZ(0,"p-chip",57)(1,"div"),e._uU(2),e.TgZ(3,"i",51),e.NdJ("click",function(){const n=e.CHM(t).$implicit,l=e.oxw(4);return e.KtG(l.customApisClick(n))}),e.qZA()()()}if(2&a){const t=o.$implicit;e.xp6(2),e.hij("",null==t?null:t.name," ")}}function je(a,o){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,Ve,4,1,"p-chip",56),e.qZA()),2&a){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.customApis)}}function We(a,o){1&a&&(e.TgZ(0,"div",48),e._uU(1,"ALL SYSTEM APIS"),e.qZA())}function Xe(a,o){if(1&a){const t=e.EpF();e.TgZ(0,"p-chip",57)(1,"div"),e._uU(2),e.TgZ(3,"i",51),e.NdJ("click",function(){const n=e.CHM(t).$implicit,l=e.oxw(4);return e.KtG(l.systemsApisClick(n))}),e.qZA()()()}if(2&a){const t=o.$implicit;e.xp6(2),e.hij("",null==t?null:t.name," ")}}function ze(a,o){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,Xe,4,1,"p-chip",56),e.qZA()),2&a){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.systemsApis)}}function et(a,o){1&a&&(e.TgZ(0,"div",48),e._uU(1,"ALL EVENTS"),e.qZA())}function tt(a,o){if(1&a){const t=e.EpF();e.TgZ(0,"p-chip",57)(1,"div"),e._uU(2),e.TgZ(3,"i",51),e.NdJ("click",function(){const n=e.CHM(t).$implicit,l=e.oxw(4);return e.KtG(l.amEventsClick(n))}),e.qZA()()()}if(2&a){const t=o.$implicit;e.xp6(2),e.hij("",null==t?null:t.name," ")}}function it(a,o){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,tt,4,1,"p-chip",56),e.qZA()),2&a){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.amEvents)}}function st(a,o){1&a&&(e.TgZ(0,"div",48),e._uU(1,"ALL SCHEDULERS"),e.qZA())}function at(a,o){if(1&a){const t=e.EpF();e.TgZ(0,"p-chip",57)(1,"div"),e._uU(2),e.TgZ(3,"i",51),e.NdJ("click",function(){const n=e.CHM(t).$implicit,l=e.oxw(4);return e.KtG(l.schedulersClick(n))}),e.qZA()()()}if(2&a){const t=o.$implicit;e.xp6(2),e.hij("",null==t?null:t.name," ")}}function nt(a,o){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,at,4,1,"p-chip",56),e.qZA()),2&a){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.schedulersApis)}}function lt(a,o){1&a&&(e.TgZ(0,"div",48),e._uU(1,"ALL WEBSOCKET EVENTS"),e.qZA())}function ot(a,o){if(1&a){const t=e.EpF();e.TgZ(0,"p-chip",57)(1,"div"),e._uU(2),e.TgZ(3,"i",51),e.NdJ("click",function(){const n=e.CHM(t).$implicit,l=e.oxw(4);return e.KtG(l.wsEventClick(n))}),e.qZA()()()}if(2&a){const t=o.$implicit;e.xp6(2),e.hij("",null==t?null:t.nameUI," ")}}function rt(a,o){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,ot,4,1,"p-chip",56),e.qZA()),2&a){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.wsEvents)}}function dt(a,o){1&a&&(e.TgZ(0,"tr")(1,"th",59),e._uU(2,"Index"),e.qZA(),e.TgZ(3,"th",60),e._uU(4,"Date & Time"),e.qZA(),e.TgZ(5,"th",61),e._uU(6,"Method"),e.qZA(),e.TgZ(7,"th",62),e._uU(8,"Status"),e.qZA(),e.TgZ(9,"th",60),e._uU(10,"API Type"),e.qZA(),e.TgZ(11,"th"),e._uU(12,"API Name"),e.qZA()())}const f=function(a){return{"selected-row":a}},pt=function(a,o,t,i){return{get:a,put:o,post:t,delete:i}},ct=function(){return{color:"#26b47f"}},ut=function(){return{color:"#ed4b48"}};function gt(a,o){if(1&a&&(e.TgZ(0,"tr",63)(1,"td")(2,"div",64),e._uU(3),e.qZA()(),e.TgZ(4,"td")(5,"div",65),e._uU(6),e.qZA()(),e.TgZ(7,"td")(8,"div",65)(9,"span",66),e._uU(10),e.qZA()()(),e.TgZ(11,"td")(12,"div",67),e._uU(13),e.qZA()(),e.TgZ(14,"td")(15,"div",65),e._uU(16),e.qZA()(),e.TgZ(17,"td")(18,"div",65),e._uU(19),e.qZA()()()),2&a){const t=o.$implicit,i=o.rowIndex,s=e.oxw(3);e.Q6J("pSelectableRow",t),e.xp6(2),e.Q6J("ngClass",e.VKq(15,f,t.isNewInGrid)),e.xp6(1),e.Oqu(i+1),e.xp6(2),e.Q6J("ngClass",e.VKq(17,f,t.isNewInGrid)),e.xp6(1),e.Oqu(t.createdAt),e.xp6(2),e.Q6J("ngClass",e.VKq(19,f,t.isNewInGrid)),e.xp6(1),e.Q6J("ngClass",e.l5B(21,pt,(null==t?null:t.requestMethod)===s.ERequestMethod.GET,(null==t?null:t.requestMethod)===s.ERequestMethod.PUT,(null==t?null:t.requestMethod)===s.ERequestMethod.POST,(null==t?null:t.requestMethod)===s.ERequestMethod.DELETE)),e.xp6(1),e.hij("",null==t?null:t.requestMethod," "),e.xp6(2),e.Q6J("ngStyle",t.success?e.DdM(26,ct):e.DdM(27,ut))("ngClass",e.VKq(28,f,t.isNewInGrid)),e.xp6(1),e.hij("",t.success?"Success":"Fail"," "),e.xp6(2),e.Q6J("ngClass",e.VKq(30,f,t.isNewInGrid)),e.xp6(1),e.Oqu(t.category),e.xp6(2),e.Q6J("ngClass",e.VKq(32,f,t.isNewInGrid)),e.xp6(1),e.Oqu(t.logNameForUI)}}const mt=function(){return[50,200,500]};function _t(a,o){if(1&a){const t=e.EpF();e.TgZ(0,"div",4)(1,"div",10)(2,"div",11)(3,"span"),e._UZ(4,"i",12),e._uU(5," Log Table Summary"),e.qZA(),e.TgZ(6,"div",13)(7,"a",14),e._UZ(8,"img",15),e.qZA()(),e.TgZ(9,"span",16),e.NdJ("click",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.loadGridData(!1))}),e._UZ(10,"i",17),e._uU(11," Apply "),e.qZA(),e.TgZ(12,"span",18),e.NdJ("click",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.showFilterPanelModel())}),e._UZ(13,"i",19),e.qZA()(),e.TgZ(14,"div",20)(15,"table",21)(16,"tbody")(17,"tr")(18,"td",22),e._uU(19," Instances"),e.qZA(),e.TgZ(20,"td",23),e.YNc(21,qe,2,0,"div",24),e.YNc(22,Ne,2,1,"div",25),e.qZA(),e.TgZ(23,"td",23),e.YNc(24,Ee,2,0,"div",24),e.YNc(25,De,2,1,"div",25),e.qZA(),e.TgZ(26,"td",23),e.YNc(27,Me,2,0,"div",24),e.YNc(28,we,2,1,"div",25),e.qZA(),e.TgZ(29,"td"),e.YNc(30,Ue,2,0,"div",24),e.YNc(31,Oe,2,1,"div",25),e.qZA()(),e.TgZ(32,"tr")(33,"td",22),e._uU(34," Third Party APIs"),e.qZA(),e.YNc(35,Je,3,0,"td",26),e.YNc(36,Be,2,1,"td",27),e.YNc(37,Ye,2,1,"td",27),e.YNc(38,Ge,2,1,"td",28),e.qZA(),e.TgZ(39,"tr")(40,"td",22),e._uU(41," Custom APIs"),e.qZA(),e.TgZ(42,"td",29),e.YNc(43,Ke,2,0,"div",24),e.YNc(44,je,2,1,"div",25),e.qZA()(),e.TgZ(45,"tr")(46,"td",22),e._uU(47," System APIs"),e.qZA(),e.TgZ(48,"td",29),e.YNc(49,We,2,0,"div",24),e.YNc(50,ze,2,1,"div",25),e.qZA()(),e.TgZ(51,"tr")(52,"td",22),e._uU(53," Events"),e.qZA(),e.TgZ(54,"td",29),e.YNc(55,et,2,0,"div",24),e.YNc(56,it,2,1,"div",25),e.qZA()(),e.TgZ(57,"tr")(58,"td",22),e._uU(59," Schedulers"),e.qZA(),e.TgZ(60,"td",29),e.YNc(61,st,2,0,"div",24),e.YNc(62,nt,2,1,"div",25),e.qZA()(),e.TgZ(63,"tr")(64,"td",22),e._uU(65," WebSocket Events"),e.qZA(),e.TgZ(66,"td",29),e.YNc(67,lt,2,0,"div",24),e.YNc(68,rt,2,1,"div",25),e.qZA()(),e.TgZ(69,"tr")(70,"td",30)(71,"span",31),e._uU(72,"Date"),e.qZA()(),e.TgZ(73,"td",32)(74,"p-calendar",33),e.NdJ("ngModelChange",function(s){e.CHM(t);const n=e.oxw(2);return e.KtG(n.gridFilter.rangeDates=s)}),e.qZA(),e.TgZ(75,"span",34),e.NdJ("click",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.clearDate())}),e._UZ(76,"i",35),e.qZA()()()()()()(),e.TgZ(77,"div",36)(78,"div",11)(79,"span"),e._UZ(80,"img",37),e._uU(81," Log Table"),e.qZA(),e.TgZ(82,"span",38),e.NdJ("click",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.showFilterPanelModel())}),e._UZ(83,"i",19),e.qZA(),e.TgZ(84,"span",39),e.NdJ("click",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.clearAllLogsDialog())}),e._UZ(85,"i",40),e.qZA(),e.TgZ(86,"span",41),e.NdJ("click",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.refresh())}),e._UZ(87,"i",42),e.qZA()()(),e.TgZ(88,"div",43)(89,"div",44)(90,"p-table",45),e.NdJ("selectionChange",function(s){e.CHM(t);const n=e.oxw(2);return e.KtG(n.selectedRows=s)})("dblclick",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.dblClickLogs())}),e.YNc(91,dt,13,0,"ng-template",46),e.YNc(92,gt,20,34,"ng-template",47),e.qZA()()()()}if(2&a){const t=e.oxw(2);e.xp6(21),e.Q6J("ngIf",null==t.gridFilter?null:t.gridFilter.apisRegex.allInstances),e.xp6(1),e.Q6J("ngIf",!(null!=t.gridFilter&&t.gridFilter.apisRegex.allInstances)),e.xp6(2),e.Q6J("ngIf",(null==t.gridFilter?null:t.gridFilter.apisRegex.allDatabases)||(null==t.gridFilter?null:t.gridFilter.apisRegex.allInstances)),e.xp6(1),e.Q6J("ngIf",!(null!=t.gridFilter&&t.gridFilter.apisRegex.allDatabases||null!=t.gridFilter&&t.gridFilter.apisRegex.allInstances)),e.xp6(2),e.Q6J("ngIf",(null==t.gridFilter?null:t.gridFilter.apisRegex.allCollections)||(null==t.gridFilter?null:t.gridFilter.apisRegex.allInstances)||(null==t.gridFilter?null:t.gridFilter.apisRegex.allDatabases)),e.xp6(1),e.Q6J("ngIf",!(null!=t.gridFilter&&t.gridFilter.apisRegex.allCollections||null!=t.gridFilter&&t.gridFilter.apisRegex.allInstances||null!=t.gridFilter&&t.gridFilter.apisRegex.allDatabases)),e.xp6(2),e.Q6J("ngIf",(null==t.gridFilter?null:t.gridFilter.apisRegex.allInstanceApis)||(null==t.gridFilter?null:t.gridFilter.apisRegex.allInstances)||(null==t.gridFilter?null:t.gridFilter.apisRegex.allDatabases)||(null==t.gridFilter?null:t.gridFilter.apisRegex.allCollections)),e.xp6(1),e.Q6J("ngIf",!(null!=t.gridFilter&&t.gridFilter.apisRegex.allInstanceApis||null!=t.gridFilter&&t.gridFilter.apisRegex.allInstances||null!=t.gridFilter&&t.gridFilter.apisRegex.allDatabases||null!=t.gridFilter&&t.gridFilter.apisRegex.allCollections)),e.xp6(4),e.Q6J("ngIf",null==t.gridFilter?null:t.gridFilter.apisRegex.allThirdPartyApis),e.xp6(1),e.Q6J("ngIf",!(null!=t.gridFilter&&t.gridFilter.apisRegex.allThirdPartyApis)),e.xp6(1),e.Q6J("ngIf",!(null!=t.gridFilter&&t.gridFilter.apisRegex.allThirdPartyApis)),e.xp6(1),e.Q6J("ngIf",!(null!=t.gridFilter&&t.gridFilter.apisRegex.allThirdPartyApis)),e.xp6(5),e.Q6J("ngIf",null==t.gridFilter?null:t.gridFilter.apisRegex.allCustomApis),e.xp6(1),e.Q6J("ngIf",!(null!=t.gridFilter&&t.gridFilter.apisRegex.allCustomApis)),e.xp6(5),e.Q6J("ngIf",null==t.gridFilter?null:t.gridFilter.apisRegex.allSystemApis),e.xp6(1),e.Q6J("ngIf",!(null!=t.gridFilter&&t.gridFilter.apisRegex.allSystemApis)),e.xp6(5),e.Q6J("ngIf",null==t.gridFilter?null:t.gridFilter.apisRegex.allEvents),e.xp6(1),e.Q6J("ngIf",!(null!=t.gridFilter&&t.gridFilter.apisRegex.allEvents)),e.xp6(5),e.Q6J("ngIf",null==t.gridFilter?null:t.gridFilter.apisRegex.allSchedulers),e.xp6(1),e.Q6J("ngIf",!(null!=t.gridFilter&&t.gridFilter.apisRegex.allSchedulers)),e.xp6(5),e.Q6J("ngIf",null==t.gridFilter?null:t.gridFilter.apisRegex.allWebSocketEvents),e.xp6(1),e.Q6J("ngIf",!(null!=t.gridFilter&&t.gridFilter.apisRegex.allWebSocketEvents)),e.xp6(6),e.Q6J("ngModel",t.gridFilter.rangeDates)("showIcon",!0)("showButtonBar",!0)("readonlyInput",!0),e.xp6(16),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("selection",t.selectedRows)("dataKey",t.gridKey)("scrollable",!0)("paginator",!0)("rows",50)("rowsPerPageOptions",e.DdM(35,mt))("value",t.responseData)}}function ht(a,o){1&a&&e._UZ(0,"p-progressSpinner",68)}function vt(a,o){if(1&a&&(e.TgZ(0,"div",4),e.YNc(1,be,4,1,"div",5),e.YNc(2,_t,93,36,"div",0),e.YNc(3,ht,1,0,"p-progressSpinner",6),e.qZA()),2&a){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.isExternalLogsSetupDoneByRoot),e.xp6(1),e.Q6J("ngIf",t.isExternalLogsSetupDoneByRoot),e.xp6(1),e.Q6J("ngIf",t.loading)}}let ft=(()=>{class a{logS;authCS;generalS;instanceS;functionS;eventCenterS;schedulerS;amEventS;webSocketEventsS;dataProviderS;confirmationService;constantsS;cd;responseData=[];loading;allApiCategories=[];tab={apiCategory:this.allApiCategories[0]};subscriptions=[];settings={maxRowsLimit:1e4};data={mode:E.D.ADD,eventChannel:new e.vpe,formData:void 0};instances;instanceIds;instanceNames;databases;databaseNames;collections;collectionNames;supportedAPIs;supportedApiNames;customApis;functionIds;customApiNames;systemsApis;systemApiIds;systemApiNames;amEvents;amEventIds;amEventNames;schedulersApis;schedulersIds;schedulersNames;wsEvents;wsEventIds;wsEventsNames;tpBundles;tpBundleMap=[];tpApiVersions;tpApiVersionMap=[];tpApis;tpApisMap=[];allTreeItemsMap={};value=new Date;range={start:null,end:null};logFilterPanelLayoutModelC;logDetailsLayoutModelC;gridFilter={queryParams:{},apisRegex:{},supportedAPIs:{}};ERequestMethod=T.Yp;constructor(t,i,s,n,l,g,h,A,y,m,I,S,C){this.logS=t,this.authCS=i,this.generalS=s,this.instanceS=n,this.functionS=l,this.eventCenterS=g,this.schedulerS=h,this.amEventS=A,this.webSocketEventsS=y,this.dataProviderS=m,this.confirmationService=I,this.constantsS=S,this.cd=C,this.allApiCategories=this.dataProviderS.getApiCategories()}ngOnInit(){var t=this;this.getExternalRedisSetupFromPackageJson(),this.subscriptions.push(this.data.eventChannel.subscribe(function(){var i=(0,u.Z)(function*(s){if(s&&s.action===N.F.APPLY_FILTER){const n=t.gridFilter;t.gridFilter=s.data,t.gridFilter.rangeDates=n.rangeDates,yield t.loadInstances(s.data),yield t.logTableSummaryData(s.data),t.logFilterPanelLayoutModelC&&t.logFilterPanelLayoutModelC.hideModal(),yield t.loadGridData(!1)}});return function(s){return i.apply(this,arguments)}}())),this.generalS.setNewTitle("API Maker - Log Table Summary")}isExternalLogsSetupDoneByRoot;getExternalRedisSetupFromPackageJson(){var t=this;return(0,u.Z)(function*(){t.loading=!0;try{const i=(yield t.instanceS.getExternalSetupStatus().toPromise()).data;t.loading=!1,!0===i.isLogsSetupDone?(t.isExternalLogsSetupDoneByRoot=!0,t.loadGridData(!1)):t.isExternalLogsSetupDoneByRoot=!1}catch{t.isExternalLogsSetupDoneByRoot=!1}t.cd.detectChanges()})()}loadGridData(t){var i=this;return(0,u.Z)(function*(){const s={find:{user:i.authCS.getUserId()},select:{createdAt:1,success:1,category:1,requestMethod:1,instanceName:1,databaseName:1,collectionName:1,instanceApiName:1,customApiName:1,systemApiName:1,eventName:1,tpApiBundleName:1,apiVersion:1,tpApiName:1,schedulerName:1,webSocketEventName:1,url:1},sort:{_id:-1},limit:i.settings.maxRowsLimit};if(i.setDataForFilterModal(!1),i.gridFilter&&i.logFilterPanelLayoutModelC&&i.logFilterPanelLayoutModelC.setDataInObjectFromEventCenter(i.gridFilter),i.applyFilterInQuery(s.find,i.gridFilter),t){const l=i.responseData?.[0]?._id;l&&(s.find._id={$gt:l})}const n=yield i.logS.query(s).toPromise();if(t){for(const l of i.responseData)l.isNewInGrid=!1;i.responseData=[...n.data,...i.responseData];for(const l of n.data)i.doChangesInLogObject(l,!0)}else{i.responseData=n.data;for(const l of i.responseData)i.doChangesInLogObject(l,!1)}i.generalS.setNewTitle("API Maker - Log Table Summary"),i.loading=!1,i.cd.detectChanges()})()}applyFilterInQuery(t,i){if(!i)return;t.$or=[],t.$and=[];const s={category:c.R.CUSTOM_APIS};i?.apisRegex?.allCustomApis?t.$or.push(s):r.isEmpty(i?.queryParams?.functions)||t.$or.push({category:c.R.CUSTOM_APIS,customApiName:{$in:this.customApiNames}});const n={category:c.R.SYSTEM_APIS};i?.apisRegex?.allSystemApis?t.$or.push(n):r.isEmpty(i?.queryParams?.systemApis)||t.$or.push({category:c.R.SYSTEM_APIS,systemApiName:{$in:this.systemApiNames}});const l={category:c.R.INSTANCES};i?.apisRegex?.allInstances?t.$or.push(l):r.isEmpty(i?.queryParams?.instanceIds)||(l.instanceName={$in:this.instanceNames},r.isEmpty(i.queryParams.databaseNames)||(l.databaseName={$in:i.queryParams.databaseNames}),r.isEmpty(i.queryParams.collectionNames)||(l.collectionName={$in:i.queryParams.collectionNames}),r.isEmpty(i.queryParams.supportedApiNames)||(l.instanceApiName={$in:i.queryParams.supportedApiNames}),t.$or.push(l));const g={category:c.R.THIRD_PARTY_APIS};if(i?.apisRegex?.allThirdPartyApis)t.$or.push(g);else if(!r.isEmpty(this.tpApis)||!r.isEmpty(this.tpBundles)||!r.isEmpty(this.tpApiVersions)){const m=r.uniq(r.map(this.tpBundles,"bundleName")),I=r.uniq(r.map(this.tpApiVersions,"apiVersion")),S=r.uniq(r.map(this.tpApis,"apiName")),C={category:c.R.THIRD_PARTY_APIS};r.isEmpty(m)||(C.tpApiBundleName={$in:m}),r.isEmpty(I)||(C.apiVersion={$in:I}),r.isEmpty(S)||(C.tpApiName={$in:S}),t.$or.push(C)}const h={category:c.R.EVENTS};i?.apisRegex?.allEvents?t.$or.push(h):r.isEmpty(i?.queryParams?.eventIds)||t.$or.push({category:c.R.SYSTEM_APIS,eventName:{$in:this.amEventNames}});const A={category:c.R.SCHEDULERS};i?.apisRegex?.allSchedulers?t.$or.push(A):r.isEmpty(i?.queryParams?.schedulersIds)||t.$or.push({category:c.R.SCHEDULERS,schedulerName:{$in:this.schedulersNames}});const y={category:c.R.WEB_SOCKET_EVENT};i?.apisRegex?.allWebSocketEvents?t.$or.push(y):r.isEmpty(i?.queryParams?.webSocketIds)||t.$or.push({category:c.R.WEB_SOCKET_EVENT,webSocketEventName:{$in:this.wsEventsNames}}),i?.rangeDates?.[0]&&t.$and.push({createdAt:{$gte:i.rangeDates[0]}}),i?.rangeDates?.[1]&&t.$and.push({createdAt:{$lte:i.rangeDates[1]}}),r.isEmpty(t.$or)&&delete t.$or,r.isEmpty(t.$and)&&delete t.$and}logTableSummaryData(t){var i=this;return(0,u.Z)(function*(){const s={find:{_id:t?.queryParams.functions},select:{name:1}};i.customApis=(yield i.functionS.query(s).toPromise()).data,i.functionIds=r.map(i.customApis,p.iH._id),i.customApiNames=r.map(i.customApis,p.eb.name);const n=(yield i.instanceS.systemAPIList().toPromise()).data,l=r.keyBy(n,p.iH._id);i.systemsApis=[];for(const m of t?.queryParams.systemApis)l[m]&&i.systemsApis.push(l[m]);i.systemApiIds=r.map(i.systemsApis,p.iH._id),i.systemApiNames=r.map(i.systemsApis,p.aV.name);const g={find:{_id:t?.queryParams.eventIds},select:{name:1}};i.amEvents=(yield i.amEventS.query(g).toPromise()).data,i.amEventIds=r.map(i.amEvents,p.iH._id),i.amEventNames=r.map(i.amEvents,p.l0.name);const h={find:{_id:t?.queryParams.schedulersIds},select:{name:1}};i.schedulersApis=(yield i.schedulerS.query(h).toPromise()).data,i.schedulersIds=r.map(i.schedulersApis,p.iH._id),i.schedulersNames=r.map(i.schedulersApis,p.qH.name);const A=(yield i.webSocketEventsS.getWSEventKGrid({}).toPromise()).data,y=r.keyBy(A,p.iH._id);i.wsEvents=[];for(const m of t?.queryParams.webSocketIds)y[m]&&i.wsEvents.push(y[m]);i.wsEventIds=r.map(i.wsEvents,p.iH._id),i.wsEventsNames=r.map(i.wsEvents,p.of.id),i.calculateThirdPartyApiDataForUI(t)})()}calculateThirdPartyApiDataForUI(t){this.tpBundles=[],this.tpApiVersions=[],this.tpApis=[];for(const i of t.thirdPartyApis)i.level0?this.tpBundles.push(i):i.level1?this.tpApiVersions.push(i):i.level2&&this.tpApis.push(i);this.generalS.getMapOfAllItems(this.allTreeItemsMap,t.thirdPartyApis),this.tpBundleMap=r.map(this.tpBundles,p.iH._id),this.tpApiVersionMap=r.map(this.tpApiVersions,p.iH._id),this.tpApisMap=r.map(this.tpApis,p.iH._id)}loadInstances(t){var i=this;return(0,u.Z)(function*(){const s={find:{_id:t?.queryParams.instanceIds},select:{name:1},sort:{name:1}};i.instances=(yield i.instanceS.query(s).toPromise()).data,i.instanceIds=r.map(i.instances,p.iH._id),i.instanceNames=r.map(i.instances,p.Il.name),yield i.loadDatabases(t)})()}loadDatabases(t){var i=this;return(0,u.Z)(function*(){if(!i.instances)return i.databases=[],i.collections=[],void(i.supportedAPIs=[]);const s=(yield i.instanceS.getDatabases(i.instances).toPromise()).data||[],n=r.keyBy(r.flatten(s||[]),p.iH._id);i.databases=[];for(const l of t?.queryParams.databaseIds)n[l]&&i.databases.push(n[l]);i.databaseNames=r.map(i.databases,p.iH._id),yield i.loadCollection(t)})()}loadCollection(t){var i=this;return(0,u.Z)(function*(){if(!i.instances||!i.databases)return i.collections=[],void(i.supportedAPIs=[]);const s=(yield i.instanceS.getCollections(i.databases).toPromise()).data||[],n=r.keyBy(r.flatten(s||[]),p.iH._id);i.collections=[];for(const l of t?.queryParams.collectionIds)n[l]&&i.collections.push(n[l]);i.collectionNames=r.map(i.collections,p.iH._id),yield i.loadSupportedApis(t)})()}loadSupportedApis(t){var i=this;return(0,u.Z)(function*(){i.instances&&i.databases&&i.collections?(i.supportedAPIs=[],i.supportedAPIs=t.supportedAPIs||[],i.supportedApiNames=r.map(i.supportedAPIs,p.iH._id)):i.supportedAPIs=[]})()}doChangesInLogObject(t,i){t.createdAt=moment(t.createdAt).format("DD-MM-YYYY hh:mm:ss A"),t.isNewInGrid=i,t.category===c.R.INSTANCES?t.logNameForUI=t.instanceName+" \u2192 "+t.databaseName+" \u2192 "+t.collectionName+" \u2192 "+t.instanceApiName:t.category===c.R.CUSTOM_APIS?t.logNameForUI=t.customApiName:t.category===c.R.SYSTEM_APIS?t.logNameForUI=t.eventName?t.eventName:t.systemApiName:t.category===c.R.SCHEDULERS?t.logNameForUI=t.schedulerName:t.category===c.R.WEB_SOCKET_EVENT?t.logNameForUI=t.webSocketEventName:t.category===c.R.THIRD_PARTY_APIS&&(t.logNameForUI=t.tpApiBundleName+" \u2192 "+t.apiVersion+" \u2192 "+t.tpApiName)}showFilterPanelModel(){this.data.formData=void 0,this.data.mode=E.D.ADD,this.setDataForFilterModal(!0),this.logFilterPanelLayoutModelC.showModal()}instanceClickData(t){var i=this;return(0,u.Z)(function*(){const s=[];for(const n of t){i.instances.splice(i.instances.indexOf(n),1);for(const l of i.databases)l.instanceId===n._id&&s.push(l)}i.instanceIds=r.map(i.instances,p.iH._id),i.instanceNames=r.map(i.instances,p.Il.name),i.eventCenterS.filterInLog.instanceIds.next(i.instanceIds),i.removeDbClick(s)})()}removeDbClick(t){const i=[];for(const s of t){this.databases.splice(this.databases.indexOf(s),1);for(const n of this.collections)n.instanceName===s.instanceName&&n.databaseName===s.db&&i.push(n)}this.databaseNames=r.map(this.databases,p.iH._id),this.eventCenterS.filterInLog.databaseIds.next(this.databaseNames),this.removeCollectionClick(i)}removeCollectionClick(t){const i=[];for(const s of t){this.collections.splice(this.collections.indexOf(s),1);for(const n of this.supportedAPIs)s.instanceName&&n.databaseName===s.databaseName&&n.collectionName===s.name&&i.push(n)}this.collectionNames=r.map(this.collections,p.iH._id),this.eventCenterS.filterInLog.collectionIds.next(this.collectionNames),this.removeApiClick(i)}removeApiClick(t){for(const i of t)this.supportedAPIs.splice(this.supportedAPIs.indexOf(i),1);this.supportedApiNames=r.map(this.supportedAPIs,p.iH._id),this.eventCenterS.filterInLog.supportedApiIds.next(this.supportedApiNames),this.setRegexOnRemove()}setRegexOnRemove(){(0===this.instances.length||0===this.databases.length||0===this.collections.length||0===this.supportedAPIs.length)&&(this.gridFilter.apisRegex={})}customApisClick(t){this.customApis.splice(this.customApis.indexOf(t),1),this.functionIds=r.map(this.customApis,p.iH._id),this.customApiNames=r.map(this.customApis,p.eb.name),this.eventCenterS.filterInLog.functionIds.next(this.functionIds)}systemsApisClick(t){this.systemsApis.splice(this.systemsApis.indexOf(t),1),this.systemApiIds=r.map(this.systemsApis,p.iH._id),this.systemApiNames=r.map(this.systemsApis,p.aV.name),this.eventCenterS.filterInLog.systemApiIds.next(this.systemApiIds)}amEventsClick(t){this.amEvents.splice(this.amEvents.indexOf(t),1),this.amEventIds=r.map(this.amEvents,p.iH._id),this.amEventNames=r.map(this.amEvents,p.l0.name),this.eventCenterS.filterInLog.eventIds.next(this.amEventIds)}schedulersClick(t){this.schedulersApis.splice(this.schedulersApis.indexOf(t),1),this.schedulersIds=r.map(this.schedulersApis,p.iH._id),this.schedulersNames=r.map(this.schedulersApis,p.qH.name),this.eventCenterS.filterInLog.schedulersIds.next(this.schedulersIds)}wsEventClick(t){this.wsEvents.splice(this.wsEvents.indexOf(t),1),this.wsEventIds=r.map(this.wsEvents,p.iH._id),this.wsEventsNames=r.map(this.wsEvents,p.of.id),this.eventCenterS.filterInLog.webSocketIds.next(this.wsEventIds)}npmPackageClickData(t,i){"L_1"===i?this.bundleAndVersionAndApiRemove(t):"L_2"===i?this.allTreeItemsMap[t._id]&&this.apiVersionClickData(this.allTreeItemsMap[t._id]):"L_3"===i&&this.allTreeItemsMap[t._id]&&this.tpApiClickData(this.allTreeItemsMap[t._id])}bundleAndVersionAndApiRemove(t){if(t.level0&&this.tpBundles.indexOf(t)>=0){for(const i of t.children||[])this.apiVersionClickData(i);this.tpBundles.splice(this.tpBundles.indexOf(t),1)}this.tpBundleMap=r.map(this.tpBundles,p.iH._id),this.apiVersionClickData(t)}apiVersionClickData(t){t.level1&&this.tpApiVersions.indexOf(t)>=0&&this.tpApiVersions.splice(this.tpApiVersions.indexOf(t),1),this.tpApiVersionMap=r.map(this.tpApiVersions,p.iH._id),this.tpApiClickData(t)}tpApiClickData(t){if(t.level1)for(const i of t.children||[])this.tpApis.indexOf(i)>=0&&this.tpApis.splice(this.tpApis.indexOf(i),1);else if(t.level0)for(const i of t.children||[])for(const s of i.children||[])this.tpApis.indexOf(s)>=0&&this.tpApis.splice(this.tpApis.indexOf(s),1);else t.level2&&this.tpApis.indexOf(t)>=0&&this.tpApis.splice(this.tpApis.indexOf(t),1);this.tpApisMap=r.map(this.tpApis,p.iH._id)}setDataForFilterModal(t){this.eventCenterS.filterInLog.instanceIds.next(this.instanceIds?this.instanceIds:[]),this.eventCenterS.filterInLog.functionIds.next(this.functionIds?this.functionIds:[]),this.eventCenterS.filterInLog.systemApiIds.next(this.systemApiIds?this.systemApiIds:[]),this.eventCenterS.filterInLog.eventIds.next(this.amEventIds?this.amEventIds:[]),this.eventCenterS.filterInLog.schedulersIds.next(this.schedulersIds?this.schedulersIds:[]),this.eventCenterS.filterInLog.webSocketIds.next(this.wsEventIds?this.wsEventIds:[]),this.eventCenterS.filterInLog.databaseIds.next(this.databaseNames?this.databaseNames:[]),this.eventCenterS.filterInLog.collectionIds.next(this.collectionNames?this.collectionNames:[]),this.eventCenterS.filterInLog.supportedApiIds.next(this.supportedApiNames?this.supportedApiNames:[]);const i=[...this.tpBundleMap,...this.tpApiVersionMap,...this.tpApisMap];this.eventCenterS.filterInLog.thirdPartyApiIds.next(i.length?i:[]),t&&this.eventCenterS.filterInLog.refreshGrid.next(Math.random())}clearAllLogsDialog(){var t=this;return(0,u.Z)(function*(){var i;t.confirmationService.confirm({message:t.constantsS.logTable.clearAllLogsConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(i=(0,u.Z)(function*(){yield t.clearAllLogs()}),function(){return i.apply(this,arguments)})})})()}clearAllLogs(){var t=this;return(0,u.Z)(function*(){yield t.logS.clearUserLogs(t.authCS.getUserId()).toPromise(),t.loadGridData(!1)})()}refresh(){var t=this;return(0,u.Z)(function*(){t.loadGridData(!0)})()}clearDate(){this.gridFilter.rangeDates=void 0}selectedRows=[];gridKey=p.iH._id;dblClickLogs(){var t=this;return(0,u.Z)(function*(){yield t.logDetailsLayoutModelC.showModal(t.selectedRows)})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}static \u0275fac=function(i){return new(i||a)(e.Y36(F.e),e.Y36(H.D),e.Y36(D.b),e.Y36(Y.E),e.Y36(G.d),e.Y36(L.u),e.Y36(K.Z),e.Y36(V.l),e.Y36(j.a),e.Y36(W.B),e.Y36(Z.YP),e.Y36(b.L),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:a,selectors:[["app-log-table-c"]],viewQuery:function(i,s){if(1&i&&(e.Gf(Se,5),e.Gf(Le,5)),2&i){let n;e.iGM(n=e.CRH())&&(s.logFilterPanelLayoutModelC=n.first),e.iGM(n=e.CRH())&&(s.logDetailsLayoutModelC=n.first)}},decls:5,vars:2,consts:[["class","pt-1 pl-1 pr-1",4,"ngIf"],[3,"data"],["logFilterPanelLayoutModelC",""],["logDetailsLayoutModelC",""],[1,"pt-1","pl-1","pr-1"],["class","overflow-hidden","style","height: calc(100vh - 46px);",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[1,"overflow-hidden",2,"height","calc(100vh - 46px)"],[1,"text-center"],[1,"mt-5","pt-5"],[1,"card","shadow-sm","h-100"],[1,"card-header"],[1,"fas","fa-table","text-yellow","fa-fw","mr-1"],[1,"float-right"],["href","https://docs.apimaker.dev/v1/docs/logs/log-table.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"fa-fw","ml-3","mr-1","mt-n1",2,"font-size","25px"],["tooltipPosition","left","pTooltip","Apply Filter",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-check","fa-fw","align-middle","text-success"],["tooltipPosition","left","pTooltip","Show Filter Modal",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fa","fa-filter","text-yellow","fa-fw"],[1,"card-body","p-0","overflow-auto",2,"height","278px"],[1,"table","table-striped","table-sm","mb-0"],[1,"w-10-nowrap","text-right","font-weight-bold","border-right","pr-2","pl-2"],[1,"border-right"],["class","text-center text-success",4,"ngIf"],[4,"ngIf"],["colspan","4",4,"ngIf"],["class","border-right",4,"ngIf"],["colspan","2",4,"ngIf"],["colspan","4"],[1,"w-10-nowrap","text-right","font-weight-bold","border-right","pr-2","pl-2","pt-2"],[1,"mt-1","d-inline-block"],["colspan","4",1,""],["appendTo","body","selectionMode","range","dateFormat","dd/mm/yy","inputId","filterDatePickerId",3,"ngModel","showIcon","showButtonBar","readonlyInput","ngModelChange"],["pTooltip","Clear",1,"cursor-pointer",3,"click"],[1,"fas","fa-ban","fa-fw","ml-4","align-middle","text-danger"],[1,"card","shadow-sm","h-100","mt-2"],["src","/assets/images/icons/log.svg","alt","Log Table",1,"fa-fw","mr-1"],["tooltipPosition","left","pTooltip","Show Apply Filter",1,"float-right","cursor-pointer","ml-3",3,"click"],["tooltipPosition","left","pTooltip","Clear All Logs",1,"float-right","cursor-pointer","ml-3","text-danger",3,"click"],[1,"far","fa-trash-alt","text-danger","fa-fw"],["tooltipPosition","left","pTooltip","Refresh Logs",1,"float-right","cursor-pointer","ml-3","text-success",3,"click"],[1,"fas","fa-sync-alt","text-info","fa-fw"],[1,"overflow-hidden"],[2,"height","calc(100vh - 418px)","width","calc(100% - 2px)"],["styleClass","p-datatable-striped","scrollHeight","flex",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","paginator","rows","rowsPerPageOptions","value","selectionChange","dblclick"],["pTemplate","header"],["pTemplate","body"],[1,"text-center","text-success"],["class","ml-1","styleClass","bg-danger text-dark",4,"ngFor","ngForOf"],["styleClass","bg-danger text-dark",1,"ml-1"],[1,"fas","fa-times-circle","cursor-pointer",3,"click"],["class","ml-1","styleClass","bg-warning text-dark",4,"ngFor","ngForOf"],["styleClass","bg-warning text-dark",1,"ml-1"],["class","ml-1","styleClass","bg-info text-dark",4,"ngFor","ngForOf"],["styleClass","bg-info text-dark",1,"ml-1"],["class","ml-1","styleClass","bg-light text-dark",4,"ngFor","ngForOf"],["styleClass","bg-light text-dark",1,"ml-1"],["colspan","2"],[1,"text-center",2,"width","80px"],[2,"width","200px"],[2,"width","130px"],[2,"width","100px"],[3,"pSelectableRow"],[1,"text-center",3,"ngClass"],[1,"text-nowrap",3,"ngClass"],[1,"small","font-weight-bold","mr-3",3,"ngClass"],[1,"text-nowrap",3,"ngStyle","ngClass"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(i,s){1&i&&(e.YNc(0,vt,4,3,"div",0),e._UZ(1,"app-log-filter-panel-layout-model",1,2)(3,"app-log-details-layout-model",null,3)),2&i&&(e.Q6J("ngIf",void 0!==s.isExternalLogsSetupDoneByRoot),e.xp6(1),e.Q6J("data",s.data))},dependencies:[M.JJ,M.On,_.mk,_.sg,_.O5,_.PC,x.iA,Z.jx,x.Ei,q.G,R.u,X.f,z.A,ve,Ie],styles:[".table th,.table td{border-top:none}#filterDatePickerId,.w-date-input{width:210px}\n"],encapsulation:2,changeDetection:0})}return a})();var yt=d(5249),Ct=d(1678),At=d(4211),Tt=d(1434),Zt=d(4186),xt=d(5765),It=d(2777),St=d(7705),Lt=d(1558),bt=d(8125);const qt=[{path:"main",component:ft,canActivate:[Q.P]}];let Pt=(()=>{class a{static \u0275fac=function(i){return new(i||a)};static \u0275mod=e.oAB({type:a});static \u0275inj=e.cJS({imports:[O.Bz.forChild(qt),J.u,yt.ApiTestingM,Ct.DashboardM,At.DbCellM,Tt.B,Zt.SystemApiM,xt.FunctionManM,It.u,St.L,Lt.SchedulerManM,bt.AmEventsM,B.WebSocketEventsM]})}return a})()}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[3732,6589,8970,1351],{6589:(l,o,c)=>{c.d(o,{Zm:()=>t,kK:()=>_,mO:()=>a,v$:()=>i});var t=function(n){return n.FORM_DATA="FORM_DATA",n.JSON="JSON",n.TEXT="TEXT",n}(t||{}),a=function(n){return n.GET="GET",n.POST="POST",n.PUT="PUT",n.DELETE="DELETE",n}(a||{}),i=function(n){return n.CONTENT_TYPE="content-type",n.ACCEPT_ENCODING="accept-encoding",n.NO_COMPRESSION_STD="x-no-compression",n.AUTHORIZATION_AM="x-am-authorization",n.AUTHORIZATION_AM_USER="x-am-user-authorization",n.AUTHORIZATION_AWS="x-aws-authorization",n.AUTHORIZATION_GOOGLE="x-google-authorization",n.AUTHORIZATION_AZURE="x-azure-authorization",n.RUN_IN_SANDBOX="x-am-run-in-sandbox",n.ORIGIN="origin",n.AUTHORIZATION="authorization",n.META="x-am-meta",n.SECRET="x-am-secret",n.CONTENT_TYPE_RESPONSE="x-am-content-type-response",n.CACHE_CONTROL="x-am-cache-control",n.CODE_HASH="x-am-code-hash",n.SANDBOX_TIMEOUT="x-am-sandbox-timeout",n.GET_ENCRYPTED_DATA="x-am-get-encrypted-data",n.ENCRYPTED_PAYLOAD="x-am-encrypted-payload",n.RESPONSE_CASE="x-am-response-case",n.RESPONSE_OBJECT_TYPE="x-am-response-object-type",n.AM_I18N="x-am-internationalization",n.DATA_SOURCE="x-am-data-source",n.TEST_HOOK="x-am-test-hook",n.TEST_EVENT="x-am-test-event",n.INTER_COMM="x-am-inter-comm",n.SEND_ONLY_OBJECTS="x-am-send-only-objects-in-stream",n.AM_REQUEST_ID="x-am-request-id",n.AM_STORE_TOKEN="x-am-store-token",n.AM_WS_Client_ID="x-am-ws-client-id",n.RUN_IN_DEBUGGER="x-am-run-in-debugger",n}(i||{}),_=function(n){return n.DB_MASTER_NAME="db-master-name",n.ADMIN_PATH="admin-path",n}(_||{})}}]);
1
+ "use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[8374,6925,8682,1617],{6925:(l,o,c)=>{c.d(o,{Eg:()=>i,Yp:()=>a,ZF:()=>_,vT:()=>t});var t=function(n){return n.FORM_DATA="FORM_DATA",n.JSON="JSON",n.TEXT="TEXT",n}(t||{}),a=function(n){return n.GET="GET",n.POST="POST",n.PUT="PUT",n.DELETE="DELETE",n}(a||{}),i=function(n){return n.CONTENT_TYPE="content-type",n.ACCEPT_ENCODING="accept-encoding",n.NO_COMPRESSION_STD="x-no-compression",n.AUTHORIZATION_AM="x-am-authorization",n.AUTHORIZATION_AM_USER="x-am-user-authorization",n.AUTHORIZATION_AWS="x-aws-authorization",n.AUTHORIZATION_GOOGLE="x-google-authorization",n.AUTHORIZATION_AZURE="x-azure-authorization",n.RUN_IN_SANDBOX="x-am-run-in-sandbox",n.ORIGIN="origin",n.AUTHORIZATION="authorization",n.META="x-am-meta",n.SECRET="x-am-secret",n.CONTENT_TYPE_RESPONSE="x-am-content-type-response",n.CACHE_CONTROL="x-am-cache-control",n.CODE_HASH="x-am-code-hash",n.SANDBOX_TIMEOUT="x-am-sandbox-timeout",n.GET_ENCRYPTED_DATA="x-am-get-encrypted-data",n.ENCRYPTED_PAYLOAD="x-am-encrypted-payload",n.RESPONSE_CASE="x-am-response-case",n.RESPONSE_OBJECT_TYPE="x-am-response-object-type",n.AM_I18N="x-am-internationalization",n.DATA_SOURCE="x-am-data-source",n.TEST_HOOK="x-am-test-hook",n.TEST_EVENT="x-am-test-event",n.INTER_COMM="x-am-inter-comm",n.SEND_ONLY_OBJECTS="x-am-send-only-objects-in-stream",n.AM_REQUEST_ID="x-am-request-id",n.AM_STORE_TOKEN="x-am-store-token",n.AM_WS_Client_ID="x-am-ws-client-id",n.RUN_IN_DEBUGGER="x-am-run-in-debugger",n}(i||{}),_=function(n){return n.DB_MASTER_NAME="db-master-name",n.ADMIN_PATH="admin-path",n}(_||{})}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[6589,8970,1351,3732],{6589:(l,o,c)=>{c.d(o,{Zm:()=>t,kK:()=>_,mO:()=>a,v$:()=>i});var t=function(n){return n.FORM_DATA="FORM_DATA",n.JSON="JSON",n.TEXT="TEXT",n}(t||{}),a=function(n){return n.GET="GET",n.POST="POST",n.PUT="PUT",n.DELETE="DELETE",n}(a||{}),i=function(n){return n.CONTENT_TYPE="content-type",n.ACCEPT_ENCODING="accept-encoding",n.NO_COMPRESSION_STD="x-no-compression",n.AUTHORIZATION_AM="x-am-authorization",n.AUTHORIZATION_AM_USER="x-am-user-authorization",n.AUTHORIZATION_AWS="x-aws-authorization",n.AUTHORIZATION_GOOGLE="x-google-authorization",n.AUTHORIZATION_AZURE="x-azure-authorization",n.RUN_IN_SANDBOX="x-am-run-in-sandbox",n.ORIGIN="origin",n.AUTHORIZATION="authorization",n.META="x-am-meta",n.SECRET="x-am-secret",n.CONTENT_TYPE_RESPONSE="x-am-content-type-response",n.CACHE_CONTROL="x-am-cache-control",n.CODE_HASH="x-am-code-hash",n.SANDBOX_TIMEOUT="x-am-sandbox-timeout",n.GET_ENCRYPTED_DATA="x-am-get-encrypted-data",n.ENCRYPTED_PAYLOAD="x-am-encrypted-payload",n.RESPONSE_CASE="x-am-response-case",n.RESPONSE_OBJECT_TYPE="x-am-response-object-type",n.AM_I18N="x-am-internationalization",n.DATA_SOURCE="x-am-data-source",n.TEST_HOOK="x-am-test-hook",n.TEST_EVENT="x-am-test-event",n.INTER_COMM="x-am-inter-comm",n.SEND_ONLY_OBJECTS="x-am-send-only-objects-in-stream",n.AM_REQUEST_ID="x-am-request-id",n.AM_STORE_TOKEN="x-am-store-token",n.AM_WS_Client_ID="x-am-ws-client-id",n.RUN_IN_DEBUGGER="x-am-run-in-debugger",n}(i||{}),_=function(n){return n.DB_MASTER_NAME="db-master-name",n.ADMIN_PATH="admin-path",n}(_||{})}}]);
1
+ "use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[8682,6925,8374,1617],{6925:(l,o,c)=>{c.d(o,{Eg:()=>i,Yp:()=>a,ZF:()=>_,vT:()=>t});var t=function(n){return n.FORM_DATA="FORM_DATA",n.JSON="JSON",n.TEXT="TEXT",n}(t||{}),a=function(n){return n.GET="GET",n.POST="POST",n.PUT="PUT",n.DELETE="DELETE",n}(a||{}),i=function(n){return n.CONTENT_TYPE="content-type",n.ACCEPT_ENCODING="accept-encoding",n.NO_COMPRESSION_STD="x-no-compression",n.AUTHORIZATION_AM="x-am-authorization",n.AUTHORIZATION_AM_USER="x-am-user-authorization",n.AUTHORIZATION_AWS="x-aws-authorization",n.AUTHORIZATION_GOOGLE="x-google-authorization",n.AUTHORIZATION_AZURE="x-azure-authorization",n.RUN_IN_SANDBOX="x-am-run-in-sandbox",n.ORIGIN="origin",n.AUTHORIZATION="authorization",n.META="x-am-meta",n.SECRET="x-am-secret",n.CONTENT_TYPE_RESPONSE="x-am-content-type-response",n.CACHE_CONTROL="x-am-cache-control",n.CODE_HASH="x-am-code-hash",n.SANDBOX_TIMEOUT="x-am-sandbox-timeout",n.GET_ENCRYPTED_DATA="x-am-get-encrypted-data",n.ENCRYPTED_PAYLOAD="x-am-encrypted-payload",n.RESPONSE_CASE="x-am-response-case",n.RESPONSE_OBJECT_TYPE="x-am-response-object-type",n.AM_I18N="x-am-internationalization",n.DATA_SOURCE="x-am-data-source",n.TEST_HOOK="x-am-test-hook",n.TEST_EVENT="x-am-test-event",n.INTER_COMM="x-am-inter-comm",n.SEND_ONLY_OBJECTS="x-am-send-only-objects-in-stream",n.AM_REQUEST_ID="x-am-request-id",n.AM_STORE_TOKEN="x-am-store-token",n.AM_WS_Client_ID="x-am-ws-client-id",n.RUN_IN_DEBUGGER="x-am-run-in-debugger",n}(i||{}),_=function(n){return n.DB_MASTER_NAME="db-master-name",n.ADMIN_PATH="admin-path",n}(_||{})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[8841],{8841:(m,s,n)=>{n.r(s),n.d(s,{AccountsM:()=>l});var d=n(7664),o=n(7017),a=n(4946);const h=[{path:"admin-users",loadChildren:()=>n.e(6393).then(n.bind(n,6393)).then(t=>t.AdminUserM)},{path:"dev-accounts",loadChildren:()=>n.e(2295).then(n.bind(n,2295)).then(t=>t.DevAccM)},{path:"secret-management",loadChildren:()=>n.e(5679).then(n.bind(n,5679)).then(t=>t.SecretManagementM)}];let l=(()=>{class t{static \u0275fac=function(c){return new(c||t)};static \u0275mod=a.oAB({type:t});static \u0275inj=a.cJS({imports:[d.Bz.forChild(h),o.u]})}return t})()}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[885],{8487:(ee,Z,s)=>{s.d(Z,{L:()=>k});var g=s(5861),e=s(95),p=s(1162),u=s(328),m=s(3157),M=s(9490),t=s(4946),C=s(9961),S=s(1042),I=s(7240),A=s(7414),y=s(5852),F=s(2304),O=s(1429),L=s(5405),P=s(6814),w=s(2660),b=s(7680),W=s(3965),K=s(8057);function N(l,h){1&l&&(t.TgZ(0,"span"),t._UZ(1,"i",34),t._uU(2," Add Interval"),t.qZA())}function B(l,h){1&l&&(t.TgZ(0,"span"),t._UZ(1,"i",35),t._uU(2," View Interval"),t.qZA())}function J(l,h){1&l&&(t.TgZ(0,"span"),t._UZ(1,"i",36),t._uU(2," Edit Interval"),t.qZA())}function Y(l,h){1&l&&(t.TgZ(0,"div",39)(1,"a",40),t._uU(2,"Reference"),t.qZA()())}function V(l,h){if(1&l){const i=t.EpF();t.TgZ(0,"div",15)(1,"label",16),t._uU(2,"Custom"),t.qZA(),t.TgZ(3,"div",14)(4,"input",37),t.NdJ("blur",function(d){t.CHM(i);const D=t.oxw();return t.KtG(D.validateCronExpression(d))}),t.qZA(),t.YNc(5,Y,3,0,"div",38),t.qZA()()}if(2&l){const i=t.oxw();t.xp6(5),t.Q6J("ngIf",i.form.get("timeInterval").value===i.ESchedulerInterval.CUSTOM)}}function U(l,h){1&l&&(t.TgZ(0,"div",41)(1,"div",42)(2,"div",43)(3,"div",44),t._uU(4,"Custom CRON writing guide"),t.qZA(),t.TgZ(5,"div",45)(6,"table",46)(7,"tr")(8,"td",47),t._uU(9,"Seconds"),t.qZA(),t.TgZ(10,"td",48),t._uU(11," : "),t.qZA(),t.TgZ(12,"td",49),t._uU(13,"0-59"),t.qZA()(),t.TgZ(14,"tr")(15,"td",47),t._uU(16,"Minutes"),t.qZA(),t.TgZ(17,"td",48),t._uU(18," : "),t.qZA(),t.TgZ(19,"td",49),t._uU(20,"0-59"),t.qZA()(),t.TgZ(21,"tr")(22,"td",47),t._uU(23,"Hours"),t.qZA(),t.TgZ(24,"td",48),t._uU(25," : "),t.qZA(),t.TgZ(26,"td",49),t._uU(27,"0-23"),t.qZA()(),t.TgZ(28,"tr")(29,"td",47),t._uU(30,"Day of Month"),t.qZA(),t.TgZ(31,"td",48),t._uU(32," : "),t.qZA(),t.TgZ(33,"td",49),t._uU(34,"1-31"),t.qZA()(),t.TgZ(35,"tr")(36,"td",47),t._uU(37,"Months"),t.qZA(),t.TgZ(38,"td",48),t._uU(39," : "),t.qZA(),t.TgZ(40,"td",49),t._uU(41,"0-11 (Jan-Dec)"),t.qZA()(),t.TgZ(42,"tr")(43,"td",47),t._uU(44,"Day of Week"),t.qZA(),t.TgZ(45,"td",48),t._uU(46," : "),t.qZA(),t.TgZ(47,"td",49),t._uU(48,"0-6 (Sun-Sat)"),t.qZA()()()()(),t.TgZ(49,"div",50)(50,"span"),t._uU(51,"Note:- "),t.qZA(),t.TgZ(52,"span")(53,"a",40),t._uU(54,"Reference"),t.qZA(),t._uU(55," is having only 5 fields and this cron expression support 6 fields, precision upto seconds."),t.qZA()()()())}function q(l,h){1&l&&(t.TgZ(0,"span"),t._uU(1,"Save"),t.qZA())}function Q(l,h){1&l&&(t.TgZ(0,"span"),t._uU(1,"Update interval"),t.qZA())}function G(l,h){if(1&l){const i=t.EpF();t.TgZ(0,"button",51),t.NdJ("click",function(){t.CHM(i);const d=t.oxw();return t.KtG(d.save())}),t._UZ(1,"i",52),t.YNc(2,q,2,0,"span",4),t.YNc(3,Q,2,0,"span",4),t.qZA()}if(2&l){const i=t.oxw();t.Q6J("disabled",i.form.invalid),t.xp6(2),t.Q6J("ngIf",i.data.mode===i.EFormMode.ADD),t.xp6(1),t.Q6J("ngIf",i.data.mode===i.EFormMode.EDIT)}}function x(l,h){1&l&&t._UZ(0,"p-progressSpinner",53)}let k=(()=>{class l{fb;ns;schedulerS;generalS;constantsS;authCS;monacoS;dataProviderS;eventCenterCS;data;loading={form:!1};EFormMode=u.D;form;ESchedulerInterval=M.M;subscriptions=[];intervalList=[];timezoneList=[];constructor(i,c,d,D,R,H,j,z,X){this.fb=i,this.ns=c,this.schedulerS=d,this.generalS=D,this.constantsS=R,this.authCS=H,this.monacoS=j,this.dataProviderS=z,this.eventCenterCS=X}ngOnInit(){var i=this;this.intervalList=this.dataProviderS.getSchedulerIntervals(),this.timezoneList=this.dataProviderS.getTimeZones(),this.createForm(),this.subscriptions.push(this.data.eventChannel.subscribe(function(){var c=(0,g.Z)(function*(d){d&&(i.form.enable(),d.action===m.F.OPEN_FORM_IN_EDIT_MODE?(i.form.reset(),i.form.patchValue(i.data.formData)):d.action===m.F.OPEN_FORM_IN_VIEW_MODE?(i.form.patchValue(i.data.formData),i.form.reset(),i.form.disable()):d.action===m.F.OPEN_FORM_IN_ADD_MODE&&(i.form.reset(),i.form.get("active").setValue(!1)))});return function(d){return c.apply(this,arguments)}}()))}createForm(){this.form=this.fb.group({timeZone:[null,[e.kI.required]],timeInterval:[null,[e.kI.required]],customInterval:[null,[]],active:[null,[]]}),this.manageValidations()}showModal(){$("#idIntervals").modal("show"),this.form.get(p._h.active).setValue(!0)}hideModal(){$("#idIntervals").modal("hide")}manageValidations(){const i=this.form.get("timeInterval"),c=this.form.get("customInterval");i.valueChanges.subscribe(d=>{c.setValidators(d===M.M.CUSTOM?[e.kI.required]:[]),c.updateValueAndValidity()})}validateCronExpression(i){var c=this;return(0,g.Z)(function*(){const d=c.form.get("customInterval"),D=d.value;(yield c.schedulerS.isCronExpressionValid(D).toPromise()).data.valid||d.setValue("")})()}save(){var i=this;return(0,g.Z)(function*(){const c=i.form.value;try{if(i.data.mode===u.D.ADD)i.eventCenterCS.intervalArr.next(c);else if(i.data.mode===u.D.EDIT){const d=Object.assign(i.data.formData,c);i.eventCenterCS.intervalArr.next(d)}i.data.eventChannel.emit({action:i.data.mode===u.D.ADD?m.F.SAVED:m.F.UPDATED})}catch(d){console.log(d)}})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}static \u0275fac=function(c){return new(c||l)(t.Y36(e.qu),t.Y36(C.W),t.Y36(S.Z),t.Y36(I.b),t.Y36(A.L),t.Y36(y.D),t.Y36(F.b),t.Y36(O.B),t.Y36(L.M))};static \u0275cmp=t.Xpm({type:l,selectors:[["app-intervals-add-edit"]],inputs:{data:"data"},decls:50,vars:13,consts:[["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idIntervals","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal"],["role","document",1,"modal-dialog","modal-lg"],[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"],["href","https://docs.apimaker.dev/v1/docs/apis-all/schedulers/user-created-schedulers-api.html#interval-time","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"fa-fw","ml-3","mr-1","mt-n1",2,"font-size","25px"],[1,"modal-body","overflow-auto"],[1,"container","pt-3",3,"formGroup"],[1,"form-group","row"],[1,"col-8"],[1,"row"],[1,"col-4","col-form-label","col-form-label-sm","text-right"],[1,"col-2","input-group","input-group-sm"],[1,"input-group-prepend"],["id","spanTimeInterval",1,"input-group-text","form-control","form-control-sm"],[1,"col-10","pl-0"],["formControlName","timeInterval","optionLabel","name","optionValue","id","filterBy","name","appendTo","body","styleClass","w-100 p-input-filled",3,"options","filter"],[1,"col-4"],["class","row",4,"ngIf"],["formControlName","timeZone","optionLabel","name","optionValue","id","filterBy","name","appendTo","body","styleClass","w-100 p-input-filled",3,"options","filter"],[1,"col-6","col-form-label","col-form-label-sm","text-right"],[1,"col-6","col-form-label","col-form-label-sm","align-middle","mb-0","pt-1"],["formControlName","active",3,"binary"],["class","form-group row mt-5",4,"ngIf"],[1,"modal-footer"],["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,"disabled","click",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[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"],["formControlName","customInterval","name","customInterval","placeholder","Custom","spellcheck","false","type","text",1,"form-control","form-control-sm",3,"blur"],["class","text-center",4,"ngIf"],[1,"text-center"],["href","https://crontab.guru","target","_blank",1,"text-info",2,"text-decoration","underline"],[1,"form-group","row","mt-5"],[1,"col-12"],[1,"border"],[1,"h6","border-bottom","p-3","m-0","text-center"],[1,"p-3","font-monospaced"],[1,"table","table-sm","table-condensed","w-100","mb-0"],[1,"text-right","pr-1","border-0",2,"width","49%"],[1,"border-0",2,"width","10px"],[1,"border-0"],[1,"text-center","small","border-left","border-right","border-bottom","p-2"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"disabled","click"],[1,"fas","fa-save","text-success","fa-fw","mr-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(c,d){1&c&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,N,3,0,"span",4),t.YNc(5,B,3,0,"span",4),t.YNc(6,J,3,0,"span",4),t.TgZ(7,"div",5)(8,"button",6)(9,"span",7),t._UZ(10,"i",8),t.qZA()(),t.TgZ(11,"a",9),t._UZ(12,"img",10),t.qZA()()(),t.TgZ(13,"div",11)(14,"form",12)(15,"div",13)(16,"div",14)(17,"div",15)(18,"label",16),t._uU(19,"Time Interval"),t.qZA(),t.TgZ(20,"div",14)(21,"div",15)(22,"div",17)(23,"div",18)(24,"span",19),t._uU(25,"Every "),t.qZA()()(),t.TgZ(26,"div",20),t._UZ(27,"p-dropdown",21),t.qZA()()()()(),t.TgZ(28,"div",22),t.YNc(29,V,6,1,"div",23),t.qZA()(),t.TgZ(30,"div",13)(31,"div",14)(32,"div",15)(33,"label",16),t._uU(34,"Time Zone"),t.qZA(),t.TgZ(35,"div",14),t._UZ(36,"p-dropdown",24),t.qZA()()(),t.TgZ(37,"div",22)(38,"div",15)(39,"label",25),t._uU(40,"Active"),t.qZA(),t.TgZ(41,"label",26),t._UZ(42,"p-checkbox",27),t.qZA()()()(),t.YNc(43,U,56,0,"div",28),t.qZA()(),t.TgZ(44,"div",29)(45,"button",30),t._UZ(46,"i",31),t._uU(47," Close"),t.qZA(),t.YNc(48,G,4,3,"button",32),t.qZA(),t.YNc(49,x,1,0,"p-progressSpinner",33),t.qZA()()()),2&c&&(t.xp6(4),t.Q6J("ngIf",d.data.mode===d.EFormMode.ADD),t.xp6(1),t.Q6J("ngIf",d.data.mode===d.EFormMode.VIEW),t.xp6(1),t.Q6J("ngIf",d.data.mode===d.EFormMode.EDIT),t.xp6(8),t.Q6J("formGroup",d.form),t.xp6(13),t.Q6J("options",d.intervalList)("filter",!0),t.xp6(2),t.Q6J("ngIf",d.form.get("timeInterval").value===d.ESchedulerInterval.CUSTOM),t.xp6(7),t.Q6J("options",d.timezoneList)("filter",!0),t.xp6(6),t.Q6J("binary",!0),t.xp6(1),t.Q6J("ngIf",d.form.get("timeInterval").value===d.ESchedulerInterval.CUSTOM),t.xp6(5),t.Q6J("ngIf",d.data.mode!==d.EFormMode.VIEW),t.xp6(1),t.Q6J("ngIf",d.loading.form))},dependencies:[e._Y,e.Fj,e.JJ,e.JL,e.sg,e.u,P.O5,w.y,b.G,W.Lt,K.XZ],encapsulation:2})}return l})()},8479:(ee,Z,s)=>{s.d(Z,{o:()=>ve});var g=s(5861),e=s(4946),p=s(95),u=s(3157),m=s(328),M=s(6990),C=s(9490),S=s(9361),I=s(1162),A=s(553),y=s(5085),F=s(1601),O=s(3531),L=s(9989),P=s(9961),w=s(1042),b=s(7240),W=s(7414),K=s(5852),N=s(2304),B=s(3429),J=s(5405),Y=s(2915),V=s(1429),U=s(6814),q=s(2660),Q=s(5860),G=s(756),x=s(5431),k=s(5219),l=s(7680),h=s(4844),i=s(3259),c=s(8057),d=s(5025),D=s(8487);const R=["intervalsAddEditC"],H=["insertCodeModalC"],j=["monacoEditorModalC"];function z(r,f){1&r&&(e.TgZ(0,"span"),e._UZ(1,"i",52),e._uU(2," Add Scheduler"),e.qZA())}function X(r,f){1&r&&(e.TgZ(0,"span"),e._UZ(1,"i",53),e._uU(2," View Scheduler"),e.qZA())}function te(r,f){if(1&r&&(e.TgZ(0,"span"),e._UZ(1,"i",54),e._uU(2," Edit Scheduler "),e.TgZ(3,"span",55),e._uU(4),e.qZA()()),2&r){const o=e.oxw();e.xp6(4),e.Oqu(o.form.get("name").value)}}function ae(r,f){if(1&r&&(e.TgZ(0,"span",56),e._uU(1),e.qZA()),2&r){const o=e.oxw();e.xp6(1),e.hij("The system will allow ",o.form.get(o.ISchedulerProps.schedulerTimeoutInMinutes).value," minutes for the scheduler to complete its work.")}}function oe(r,f){if(1&r){const o=e.EpF();e.TgZ(0,"div",57)(1,"app-monaco-editor",58),e.NdJ("editorGenerated",function(n){e.CHM(o);const _=e.oxw();return e.KtG(_.editorGenerated(n))}),e.qZA()()}if(2&r){const o=e.oxw();e.xp6(1),e.Q6J("isSchemaEditor",!0)("editorOptions",o.editorOptionsSchedulers)}}function ne(r,f){if(1&r){const o=e.EpF();e.TgZ(0,"span",59),e.NdJ("click",function(){e.CHM(o);const n=e.oxw();return e.KtG(n.add())}),e._UZ(1,"i",60),e.qZA()}}function se(r,f){1&r&&(e.TgZ(0,"tr"),e._UZ(1,"th",61),e.TgZ(2,"th"),e._uU(3,"Time Interval"),e.qZA(),e.TgZ(4,"th"),e._uU(5,"Time Zone"),e.qZA(),e.TgZ(6,"th"),e._uU(7,"Custom Interval"),e.qZA(),e.TgZ(8,"th",62),e._uU(9,"Action"),e.qZA()())}function re(r,f){1&r&&e._UZ(0,"i",67)}function ie(r,f){1&r&&e._UZ(0,"i",68)}function de(r,f){if(1&r){const o=e.EpF();e.TgZ(0,"div",69)(1,"button",70),e.NdJ("click",function(n){e.CHM(o);const _=e.oxw().$implicit,v=e.oxw();return e.KtG(v.edit(n,_))}),e._UZ(2,"i",71),e.qZA(),e.TgZ(3,"button",72),e.NdJ("click",function(n){e.CHM(o);const _=e.oxw().$implicit,v=e.oxw();return e.KtG(v.deleteInterval(n,_))}),e._UZ(4,"i",73),e.qZA()()}}function le(r,f){if(1&r&&(e.TgZ(0,"tr",63)(1,"td"),e.YNc(2,re,1,0,"i",64),e.YNc(3,ie,1,0,"i",65),e.qZA(),e.TgZ(4,"td")(5,"span"),e._uU(6),e.qZA()(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td")(10,"span"),e._uU(11),e.qZA()(),e.TgZ(12,"td"),e.YNc(13,de,5,0,"div",66),e.qZA()()),2&r){const o=f.$implicit,a=e.oxw();e.Q6J("pSelectableRow",o),e.xp6(2),e.Q6J("ngIf",o.active),e.xp6(1),e.Q6J("ngIf",!o.active),e.xp6(3),e.hij("Every ",a.intervalListMap[o.timeInterval].name,""),e.xp6(2),e.Oqu(o.timeZone),e.xp6(3),e.Oqu(a.intervalListMap[o.timeInterval].name===a.ESchedulerInterval.CUSTOM?o.customInterval:""),e.xp6(2),e.Q6J("ngIf",!o.isReadOnly&&a.data.mode!==a.EFormMode.VIEW)}}function _e(r,f){if(1&r){const o=e.EpF();e.TgZ(0,"a",74),e.NdJ("click",function(){e.CHM(o);const n=e.oxw();return e.KtG(n.viewError())}),e._uU(1,"View error"),e.qZA()}}function ce(r,f){1&r&&(e.TgZ(0,"span"),e._uU(1,"Save"),e.qZA())}function me(r,f){1&r&&(e.TgZ(0,"span"),e._uU(1,"Update"),e.qZA())}function ue(r,f){if(1&r){const o=e.EpF();e.TgZ(0,"button",75),e.NdJ("click",function(){e.CHM(o);const n=e.oxw();return e.KtG(n.save(!0))}),e._UZ(1,"i",76),e.YNc(2,ce,2,0,"span",4),e.YNc(3,me,2,0,"span",4),e.qZA()}if(2&r){const o=e.oxw();e.Q6J("disabled",o.form.invalid),e.xp6(2),e.Q6J("ngIf",o.data.mode===o.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",o.data.mode===o.EFormMode.EDIT)}}function pe(r,f){1&r&&e._UZ(0,"p-progressSpinner",77)}const fe=function(r){return{"text-danger font-weight-bold":r}};let ve=(()=>{class r{fb;ns;schedulerS;generalS;constantsS;authCS;monacoS;instanceS;notificationS;eventCenterCS;eventCenterS;dataProviderS;generalCS;data;loading={form:!1};EFormMode=m.D;form;subscriptions=[];ESchedulerInterval=C.M;editorSchedulers;editorOptionsSchedulers={readOnly:!1,language:"typescript",contextmenu:!0};intervalList=[];selectedRows=[];rows=[];rowsMap={};dataItem={mode:m.D.ADD,eventChannel:new e.vpe,formData:void 0};intervalListMap={};gridKey="id";idCounter=0;BE_HOST_PORT=A.N.BE_HOST_PORT;DOCS_HOST_PORT=A.N.DOCS_HOST_PORT;shouldLoadMonacoEditor=!1;lastError;editorOptionsMonacoEditorModal={readOnly:!0,language:"json",contextmenu:!0};ISchedulerProps=I.qH;intervalsAddEditC;insertCodeModalC;viewDockerfileModelC;constructor(o,a,n,_,v,T,E,he,Ee,ge,Me,Ce,Ie){this.fb=o,this.ns=a,this.schedulerS=n,this.generalS=_,this.constantsS=v,this.authCS=T,this.monacoS=E,this.instanceS=he,this.notificationS=Ee,this.eventCenterCS=ge,this.eventCenterS=Me,this.dataProviderS=Ce,this.generalCS=Ie}ngOnInit(){var o=this;this.intervalList=this.dataProviderS.getSchedulerIntervals(),this.intervalListMap=M.keyBy(this.intervalList,I.GR.id),this.createForm(),this.subscriptions.push(this.data.eventChannel.subscribe(function(){var a=(0,g.Z)(function*(n){if(n)if(o.form.enable(),n.action===u.F.OPEN_FORM_IN_EDIT_MODE)yield o.updateEditCommon();else if(n.action===u.F.OPEN_FORM_IN_VIEW_MODE)yield o.updateEditCommon(),o.form.disable();else if(n.action===u.F.OPEN_FORM_IN_ADD_MODE){o.form.reset(),o.rows=[];const _=yield o.instanceS.getDefaultContent(o.BE_HOST_PORT,y.R.SCHEDULERS).toPromise();o.generalCS.setValueInEditor(o,"editorSchedulers",_.data),o.form.get(I.qH.isActive).setValue(!1),o.form.get(I.qH.runOnNativeProcess).setValue(!1)}});return function(n){return a.apply(this,arguments)}}())),this.subscriptions.push(this.dataItem.eventChannel.subscribe(function(){var a=(0,g.Z)(function*(n){n&&(o.form.enable(),(n.action===u.F.SAVED||n.action===u.F.UPDATED)&&(o.intervalsAddEditC.hideModal(),o.loadGridData()))});return function(n){return a.apply(this,arguments)}}())),this.subscriptions.push(this.eventCenterCS.intervalArr.subscribe(a=>{this.dataItem.mode===m.D.ADD&&(this.rows.unshift(a),this.loadGridData())}))}createForm(){this.form=this.fb.group({name:[null,[p.kI.required]],schedulerTimeoutInMinutes:[null,[p.kI.min(1),p.kI.max(43200)]],isActive:[null,[]],runOnNativeProcess:[null,[]]})}showInsertCodeModel(){this.generalCS.messageReceivedFor=S.H.All,this.insertCodeModalC.showModal(O.b.SchedulerManFormC)}updateEditCommon(){var o=this;return(0,g.Z)(function*(){const a=yield o.schedulerS.queryOne({find:{guid:o.data.formData.guid,user:o.authCS.gUser._id}});o.form.reset(),o.form.patchValue(a),o.rows=a.intervalArr||[],o.generalCS.setValueInEditor(o,"editorSchedulers",a.schedulerCode||""),o.loadGridData()})()}loadGridData(){this.selectedRows=[];for(const o of this.rows)o.id=this.idCounter++;this.rowsMap=M.keyBy(this.rows,this.gridKey)}reqActiveIndex=0;tabIndexReq={Basic:0,Code:1,Intervals:2};save(o){var a=this;return(0,g.Z)(function*(){const n=a.form.getRawValue();let _;_=a.data.formData&&a.data.formData._id?yield a.schedulerS.queryOne({find:{guid:a.data.formData.guid,user:a.authCS.gUser._id}}):{};const v=M.find(_.versions||[],{isActive:!0});v&&(v.apiCodeStr=a.editorSchedulers.getValue());const T=Object.assign({},_,n);T.user=a.authCS.getUserId(),T.intervalArr=a.rows,T.schedulerCode=a.editorSchedulers.getValue();for(const E of T?.versions||[])E.version=E.version.toString();try{let E;a.loading.form=!0,a.lastError=void 0,a.data.mode===m.D.ADD?E=yield a.schedulerS.post(T).toPromise():a.data.mode===m.D.EDIT&&(E=yield a.schedulerS.put(_._id,T,{select:I.iH._id}).toPromise()),a.ns.showSuccess(a.data.mode===m.D.ADD?a.constantsS.schedulers.addSuccess:a.constantsS.schedulers.editSuccess),a.data.eventChannel.emit({action:a.data.mode===m.D.ADD?u.F.SAVED:u.F.UPDATED,closeModal:o}),a.form.get("name").disable(),a.eventCenterS.schedulerSavedAndUpdate.next(!0),a.loading.form=!1}catch(E){"Please Provide Interval."===E.error.errors[0].message&&(a.reqActiveIndex=a.tabIndexReq.Intervals),a.loading.form=!1,a.ns.showErrorFromResponse(E.error||E,"Unable to save scheduler."),a.lastError=E.error}})()}showModal(){this.lastError=void 0,this.shouldLoadMonacoEditor=!0,setTimeout(()=>{$("#idSchedulerForm").modal("show")},100)}hideModal(){$("#idSchedulerForm").modal("hide")}add(){this.dataItem.formData=void 0,this.dataItem.mode=m.D.ADD,this.dataItem.eventChannel.emit({action:u.F.OPEN_FORM_IN_ADD_MODE}),this.intervalsAddEditC.showModal()}view(){this.dataItem.formData=this.rowsMap[this.selectedRows[0]],this.dataItem.mode=m.D.VIEW,this.dataItem.eventChannel.emit({action:u.F.OPEN_FORM_IN_VIEW_MODE}),this.intervalsAddEditC.showModal()}edit(o,a){o.stopPropagation(),o.preventDefault(),this.dataItem.formData=a,this.dataItem.mode=m.D.EDIT,this.dataItem.eventChannel.emit({action:u.F.OPEN_FORM_IN_EDIT_MODE}),this.intervalsAddEditC.showModal()}deleteInterval(o,a){o.stopPropagation(),o.preventDefault(),this.rows.splice(this.rows.indexOf(a),1),this.notificationS.showSuccess(this.constantsS.interval.removePermanent)}editorGenerated(o){var a=this;return(0,g.Z)(function*(){a.editorSchedulers=o,yield a.monacoS.loadSchemaEditorSettings(a.BE_HOST_PORT,a.authCS.getUserId(),null),a.monacoS.addSaveCodeKeyBinding(o,n=>{a.form.valid&&a.save(!0)}),a.monacoS.addInsertCodeKeyBinding(o,n=>{a.generalCS.messageReceivedFor=S.H.All,a.data.mode!==m.D.VIEW&&a.insertCodeModalC.showModal(O.b.SchedulerManFormC)}),a.subscriptions.push(a.generalS.messageReceived.subscribe(n=>{n.type&&n.type===L.g.TEXT_COPIED&&n.componentName===O.b.SchedulerManFormC&&(a.monacoS.insertAtCursor(o,n.selectedText),a.insertCodeModalC.hideModal())}))})()}viewError(){this.viewDockerfileModelC.showModal(this.generalS.stringify(this.lastError),F.d.json)}dblClickIntervalOpenModel(o){this.selectedRows.length&&this.data.mode!==m.D.VIEW&&this.edit(o,this.selectedRows[0])}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions),this.eventCenterS.schedulerSavedAndUpdate.next(!1)}static \u0275fac=function(a){return new(a||r)(e.Y36(p.qu),e.Y36(P.W),e.Y36(w.Z),e.Y36(b.b),e.Y36(W.L),e.Y36(K.D),e.Y36(N.b),e.Y36(B.E),e.Y36(P.W),e.Y36(J.M),e.Y36(Y.u),e.Y36(V.B),e.Y36(b.b))};static \u0275cmp=e.Xpm({type:r,selectors:[["app-w-scheduler-man-form"]],viewQuery:function(a,n){if(1&a&&(e.Gf(R,5),e.Gf(H,5),e.Gf(j,5)),2&a){let _;e.iGM(_=e.CRH())&&(n.intervalsAddEditC=_.first),e.iGM(_=e.CRH())&&(n.insertCodeModalC=_.first),e.iGM(_=e.CRH())&&(n.viewDockerfileModelC=_.first)}},inputs:{data:"data"},decls:69,vars:30,consts:[["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idSchedulerForm","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal"],["role","document",1,"modal-dialog","modal-full"],[1,"modal-content"],[1,"modal-header"],[4,"ngIf"],[1,"float-right"],["aria-label","Close","data-dismiss","modal","type","button",1,"close",3,"click"],["aria-hidden","true"],[1,"fas","fa-window-close"],["pTooltip","Insert Code","sava-no-dbl-click","",1,"cursor-pointer","mr-1",2,"font-size","1.4em",3,"click"],[1,"fas","fa-info-circle","text-info","fa-fw"],["href","https://docs.apimaker.dev/v1/docs/apis-all/schedulers/user-created-schedulers-api.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"fa-fw","ml-3","mr-1","mt-n2",2,"font-size","25px"],[1,"modal-body","overflow-auto"],[1,"w-100",3,"activeIndex","activeIndexChange"],["header","Basic Info"],[1,"container","pt-3",3,"formGroup"],[1,"form-group","row"],[1,"col-3","col-form-label","col-form-label-sm","text-right"],[1,"col-7"],["formControlName","name","name","name","spellcheck","false","type","text","placeholder","Please provide name",1,"form-control","form-control-sm"],["formControlName","schedulerTimeoutInMinutes","name","schedulerTimeoutInMinutes","spellcheck","false","type","number","placeholder","10",1,"form-control","form-control-sm",3,"min"],["class","mt-1px small text-info",4,"ngIf"],[1,"align-middle","mb-0","pt-1"],["formControlName","isActive","label","Active",3,"binary"],["formControlName","runOnNativeProcess","pTooltip","Code will run on actual process and not in sandbox, so be careful with code. You can not use sandbox packages in this mode. You can use all Node.js packages + some packages on which API Maker is dependent on. You can use features of global variable 'g'.","label","Run Native",3,"ngClass","binary"],["header","Code"],["class","overflow-hidden mb-3","style","height: calc(100vh - 270px);",4,"ngIf"],["header","Intervals"],[1,"overflow-auto",2,"height","calc(100vh - 206px)"],[1,"card","shadow-sm","h-100","mr-1","ml-1"],[1,"card-header"],[1,"fas","fa-stopwatch","text-warning","fa-fw","mr-1"],["href","https://docs.apimaker.dev/v1/docs/apis-all/schedulers/user-created-schedulers-api.html#create-intervals-in-scheduler","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"float-right","fa-fw","ml-3","mr-1",2,"font-size","25px"],["class","float-right cursor-pointer ml-3","pTooltip","Add New",3,"click",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],["styleClass","p-datatable-striped","scrollHeight","200px",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange","dblclick"],["pTemplate","header"],["pTemplate","body"],[1,"modal-footer"],["href","javascript:;","class","text-danger",3,"click",4,"ngIf"],["data-dismiss","modal","type","button",1,"btn","btn-sm","btn-secondary",3,"click"],[1,"fas","fa-times","text-danger","fa-fw"],["class","btn btn-primary btn-sm","sava-no-dbl-click","","type","button",3,"disabled","click",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"data"],["intervalsAddEditC",""],[3,"frameId","modalId","docsHostPort"],["insertCodeModalC",""],[3,"modalId","editorOptionsMonacoEditorModal","modalTitle"],["monacoEditorModalC",""],[1,"fas","fa-plus","text-success","fa-fw","mr-1"],[1,"far","fa-eye","text-info","fa-fw","mr-1"],[1,"fas","fa-pencil-alt","text-light","fa-fw","mr-1"],[1,"ml-2","font-weight-normal","small","text-muted"],[1,"mt-1px","small","text-info"],[1,"overflow-hidden","mb-3",2,"height","calc(100vh - 270px)"],[3,"isSchemaEditor","editorOptions","editorGenerated"],["pTooltip","Add New",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-plus","text-success","fa-fw"],[2,"width","40px"],[2,"width","100px"],[3,"pSelectableRow"],["class","fas fa-circle fa-fw text-success text-v-small",4,"ngIf"],["class","fas fa-circle fa-fw text-muted text-v-small",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"fas","fa-circle","fa-fw","text-success","text-v-small"],[1,"fas","fa-circle","fa-fw","text-muted","text-v-small"],[1,"text-center"],["pTooltip","Edit",1,"btn","btn-xsm-custom","mr-1",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw","cursor-pointer"],["pTooltip","Delete",1,"btn","btn-xsm-custom","ml-1",3,"click"],[1,"far","fa-trash-alt","text-danger","fa-fw","cursor-pointer"],["href","javascript:;",1,"text-danger",3,"click"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"disabled","click"],[1,"fas","fa-save","text-success","fa-fw","mr-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(a,n){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.YNc(4,z,3,0,"span",4),e.YNc(5,X,3,0,"span",4),e.YNc(6,te,5,1,"span",4),e.TgZ(7,"div",5)(8,"button",6),e.NdJ("click",function(){return n.hideModal()}),e.TgZ(9,"span",7),e._UZ(10,"i",8),e.qZA()(),e.TgZ(11,"span",9),e.NdJ("click",function(){return n.showInsertCodeModel()}),e._UZ(12,"i",10),e.qZA(),e.TgZ(13,"a",11),e._UZ(14,"img",12),e.qZA()()(),e.TgZ(15,"div",13)(16,"p-tabView",14),e.NdJ("activeIndexChange",function(v){return n.reqActiveIndex=v}),e.TgZ(17,"p-tabPanel",15)(18,"form",16)(19,"div",17)(20,"label",18),e._uU(21,"Name"),e.qZA(),e.TgZ(22,"div",19),e._UZ(23,"input",20),e.qZA()(),e.TgZ(24,"div",17)(25,"label",18),e._uU(26,"Timeout in minutes"),e.qZA(),e.TgZ(27,"div",19),e._UZ(28,"input",21),e.YNc(29,ae,2,1,"span",22),e.qZA()(),e.TgZ(30,"div",17),e._UZ(31,"label",18),e.TgZ(32,"div",19)(33,"label",23),e._UZ(34,"p-checkbox",24),e.qZA()()(),e.TgZ(35,"div",17),e._UZ(36,"label",18),e.TgZ(37,"div",19)(38,"label",23),e._UZ(39,"p-checkbox",25),e.qZA()()()()(),e.TgZ(40,"p-tabPanel",26),e.YNc(41,oe,2,2,"div",27),e.qZA(),e.TgZ(42,"p-tabPanel",28)(43,"div",29)(44,"div",30)(45,"div",31)(46,"span"),e._UZ(47,"i",32),e._uU(48," Interval"),e.qZA(),e.TgZ(49,"a",33),e._UZ(50,"img",34),e.qZA(),e.YNc(51,ne,2,0,"span",35),e.qZA(),e.TgZ(52,"div",36)(53,"p-table",37),e.NdJ("selectionChange",function(v){return n.selectedRows=v})("dblclick",function(v){return n.dblClickIntervalOpenModel(v)}),e.YNc(54,se,10,0,"ng-template",38),e.YNc(55,le,14,7,"ng-template",39),e.qZA()()()()()()(),e.TgZ(56,"div",40),e.YNc(57,_e,2,0,"a",41),e.TgZ(58,"button",42),e.NdJ("click",function(){return n.hideModal()}),e._UZ(59,"i",43),e._uU(60," Close"),e.qZA(),e.YNc(61,ue,4,3,"button",44),e.qZA(),e.YNc(62,pe,1,0,"p-progressSpinner",45),e.qZA()()(),e._UZ(63,"app-intervals-add-edit",46,47)(65,"app-insert-code-modal",48,49)(67,"app-monaco-editor-modal",50,51)),2&a&&(e.xp6(4),e.Q6J("ngIf",n.data.mode===n.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",n.data.mode===n.EFormMode.VIEW),e.xp6(1),e.Q6J("ngIf",n.data.mode===n.EFormMode.EDIT),e.xp6(10),e.Q6J("activeIndex",n.reqActiveIndex),e.xp6(2),e.Q6J("formGroup",n.form),e.xp6(10),e.Q6J("min",1),e.xp6(1),e.Q6J("ngIf",n.form.get(n.ISchedulerProps.schedulerTimeoutInMinutes).value),e.xp6(5),e.Q6J("binary",!0),e.xp6(5),e.Q6J("ngClass",e.VKq(28,fe,!0===n.form.get(n.ISchedulerProps.runOnNativeProcess).value))("binary",!0),e.xp6(2),e.Q6J("ngIf",n.shouldLoadMonacoEditor),e.xp6(10),e.Q6J("ngIf",n.data.mode!==n.EFormMode.VIEW),e.xp6(2),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("selection",n.selectedRows)("dataKey",n.gridKey)("scrollable",!0)("value",n.rows),e.xp6(4),e.Q6J("ngIf",n.lastError),e.xp6(4),e.Q6J("ngIf",n.data.mode!==n.EFormMode.VIEW),e.xp6(1),e.Q6J("ngIf",n.loading.form),e.xp6(1),e.Q6J("data",n.dataItem),e.xp6(2),e.Q6J("frameId","idInsertCodeSchedulers")("modalId","idInsertCodeSchedulersForm")("docsHostPort",n.DOCS_HOST_PORT),e.xp6(2),e.Q6J("modalId","idMonacoEditorModalInScheduler")("editorOptionsMonacoEditorModal",n.editorOptionsMonacoEditorModal)("modalTitle","Error info"))},dependencies:[p._Y,p.Fj,p.wV,p.JJ,p.JL,p.qQ,p.sg,p.u,U.mk,U.O5,q.y,Q.P,G.O,x.iA,k.jx,x.Ei,l.G,h.xf,h.x4,i.u,c.XZ,d.A,D.L],encapsulation:2})}return r})()},885:(ee,Z,s)=>{s.d(Z,{R:()=>t});var g=s(7017),u=(s(8479),s(8487),s(4950)),m=s(4946);let t=(()=>{class C{static \u0275fac=function(A){return new(A||C)};static \u0275mod=m.oAB({type:C});static \u0275inj=m.cJS({imports:[g.u,u.A]})}return C})()}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[9785],{9785:(g,s,a)=>{a.r(s),a.d(s,{DashRootM:()=>f});var p=a(1709),t=a(540),i=a(467),r=a(7060);let c=(()=>{class n{constructor(){}ngOnInit(){return(0,i.A)(function*(){})()}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=t.VBU({type:n,selectors:[["app-counter-block"]],decls:21,vars:0,consts:[[2,"height","calc(100vh - 44px)","overflow","auto"],[1,"ml-5","mt-5","bold"],[2,"margin-left","20px"],[1,"fas","fa-users","text-danger","fa-fw"],[1,"icon-row","ml-5","mt-lg-n2"],["href","javascript:","routerLink","/accounts/admin-users",2,"text-decoration","none"],[1,"icon-box"],["src","/assets/images/icons/adminuser.png",1,"mt-2"],[1,"fas","fa-tools","fa-fw","text-warning"],["href","javascript:","routerLink","/root-settings/deployment-settings",2,"text-decoration","none"],["src","/assets/images/icons/deployset.png",1,"mt-2"]],template:function(o,m){1&o&&(t.j41(0,"div",0)(1,"h4",1)(2,"span",2),t.nrm(3,"i",3),t.EFF(4," AM Account"),t.k0s()(),t.j41(5,"div",4)(6,"a",5)(7,"div",6),t.nrm(8,"img",7),t.j41(9,"h1"),t.EFF(10,"Admin Users"),t.k0s()()()(),t.j41(11,"h4",1)(12,"span",2),t.nrm(13,"i",8),t.EFF(14," Settings"),t.k0s()(),t.j41(15,"div",4)(16,"a",9)(17,"div",6),t.nrm(18,"img",10),t.j41(19,"h1"),t.EFF(20,"Deployment Settings"),t.k0s()()()()())},dependencies:[r.Wk],styles:[".icon-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}h1[_ngcontent-%COMP%]{font-size:15px;margin-top:10px}img[_ngcontent-%COMP%]{height:50px}.icon-box[_ngcontent-%COMP%]{font-size:15px;text-align:center;width:120px;min-width:120px;height:120px;background:transparent;border:1px solid #515151;margin:20px 0 0 20px;padding:5px;transition:all .1s;border-radius:10px;box-shadow:#00000040 0 54px 55px,#0000001f 0 -12px 30px,#0000001f 0 4px 6px,#0000002b 0 12px 13px,#00000017 0 -3px 5px}.icon-box[_ngcontent-%COMP%]:hover{background:#292929;box-shadow:#b8b8b840 0 54px 55px,#a5a5a51f 0 -12px 30px,#ffffff1f 0 4px 6px,#0b88982b 0 12px 13px,#ab151517 0 -3px 5px;--darkreader-inline-boxshadow: rgba(0, 0, 0, .25) 0px 54px 55px, rgba(0, 0, 0, .12) 0px -12px 30px, rgba(0, 0, 0, .12) 0px 4px 6px, rgba(0, 0, 0, .17) 0px 12px 13px, rgba(0, 0, 0, .09) 0px -3px 5px}"]})}return n})();const l=[{path:"",component:(()=>{class n{constructor(){}ngOnInit(){}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=t.VBU({type:n,selectors:[["app-dash-root"]],decls:1,vars:0,template:function(o,m){1&o&&t.nrm(0,"app-counter-block")},dependencies:[c],encapsulation:2})}return n})(),canActivate:[a(7358).k]}];let f=(()=>{class n{static \u0275fac=function(o){return new(o||n)};static \u0275mod=t.$C({type:n});static \u0275inj=t.G2t({imports:[r.iI.forChild(l),p.u]})}return n})()}}]);
1
+ "use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[891],{891:(u,s,a)=>{a.r(s),a.d(s,{DashRootM:()=>l});var r=a(7017),t=a(4946),c=a(5861),p=a(7664);let i=(()=>{class n{constructor(){}ngOnInit(){return(0,c.Z)(function*(){})()}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=t.Xpm({type:n,selectors:[["app-counter-block"]],decls:21,vars:0,consts:[[2,"height","calc(100vh - 44px)","overflow","auto"],[1,"ml-5","mt-5","bold"],[2,"margin-left","20px"],[1,"fas","fa-users","text-danger","fa-fw"],[1,"icon-row","ml-5","mt-lg-n2"],["href","javascript:","routerLink","/accounts/admin-users",2,"text-decoration","none"],[1,"icon-box"],["src","/assets/images/icons/adminuser.png",1,"mt-2"],[1,"fas","fa-tools","fa-fw","text-warning"],["href","javascript:","routerLink","/root-settings/deployment-settings",2,"text-decoration","none"],["src","/assets/images/icons/deployset.png",1,"mt-2"]],template:function(o,f){1&o&&(t.TgZ(0,"div",0)(1,"h4",1)(2,"span",2),t._UZ(3,"i",3),t._uU(4," AM Account"),t.qZA()(),t.TgZ(5,"div",4)(6,"a",5)(7,"div",6),t._UZ(8,"img",7),t.TgZ(9,"h1"),t._uU(10,"Admin Users"),t.qZA()()()(),t.TgZ(11,"h4",1)(12,"span",2),t._UZ(13,"i",8),t._uU(14," Settings"),t.qZA()(),t.TgZ(15,"div",4)(16,"a",9)(17,"div",6),t._UZ(18,"img",10),t.TgZ(19,"h1"),t._uU(20,"Deployment Settings"),t.qZA()()()()())},dependencies:[p.rH],styles:[".icon-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}h1[_ngcontent-%COMP%]{font-size:15px;margin-top:10px}img[_ngcontent-%COMP%]{height:50px}.icon-box[_ngcontent-%COMP%]{font-size:15px;text-align:center;width:120px;min-width:120px;height:120px;background:transparent;border:1px solid #515151;margin:20px 0 0 20px;padding:5px;transition:all .1s;border-radius:10px;box-shadow:#00000040 0 54px 55px,#0000001f 0 -12px 30px,#0000001f 0 4px 6px,#0000002b 0 12px 13px,#00000017 0 -3px 5px}.icon-box[_ngcontent-%COMP%]:hover{background:#292929;box-shadow:#b8b8b840 0 54px 55px,#a5a5a51f 0 -12px 30px,#ffffff1f 0 4px 6px,#0b88982b 0 12px 13px,#ab151517 0 -3px 5px;--darkreader-inline-boxshadow: rgba(0, 0, 0, .25) 0px 54px 55px, rgba(0, 0, 0, .12) 0px -12px 30px, rgba(0, 0, 0, .12) 0px 4px 6px, rgba(0, 0, 0, .17) 0px 12px 13px, rgba(0, 0, 0, .09) 0px -3px 5px}"]})}return n})();const d=[{path:"",component:(()=>{class n{constructor(){}ngOnInit(){}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=t.Xpm({type:n,selectors:[["app-dash-root"]],decls:1,vars:0,template:function(o,f){1&o&&t._UZ(0,"app-counter-block")},dependencies:[i],encapsulation:2})}return n})(),canActivate:[a(1490).g]}];let l=(()=>{class n{static \u0275fac=function(o){return new(o||n)};static \u0275mod=t.oAB({type:n});static \u0275inj=t.cJS({imports:[p.Bz.forChild(d),r.u]})}return n})()}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[913],{6215:(Z,O,p)=>{"use strict";p.d(O,{B:()=>T});var T=function(g){return g.DRAFT="DRAFT",g.PENDING_APPROVAL="PENDING_APPROVAL",g.PUBLISHED="PUBLISHED",g.DEPRECATED="DEPRECATED",g.BLOCKED="BLOCKED",g}(T||{})},913:(Z,O,p)=>{"use strict";p.r(O),p.d(O,{AppStoreM:()=>Yt});var T=p(7664),g=p(7017),u=p(5861),I=p(553),M=function(n){return n.DRAFT="DRAFT",n.PENDING_APPROVAL="PENDING_APPROVAL",n.PUBLISHED="PUBLISHED",n.BLOCKED="BLOCKED",n}(M||{}),e=p(4946),L=p(7240),A=p(3429),S=p(7414),V=p(1027),N=p(1344),r=p(5852),d=p(4977),h=p(9961),C=p(2915),c=p(95),f=p(6814),k=p(7680),w=p(3259),x=p(5219),y=p(218),v=p(707),b=p(2076),ee=p(3714),F=p(5807),H=p(4480),B=p(6489),m=p(2332),U=p(8468),P=p(8717),R=p(7778),z=p(6005);const te=["container"],ie=["focusInput"],ne=["multiIn"],oe=["multiContainer"],le=["ddBtn"],se=["items"],ae=["scroller"],pe=["overlay"];function re(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"input",12,13),e.NdJ("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))})("change",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onInputChange(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))})("paste",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onInputPaste(o))})("keyup",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onInputKeyUp(o))}),e.qZA()}if(2&n){const t=e.oxw();e.Tol(t.inputStyleClass),e.Q6J("autofocus",t.autofocus)("ngClass",t.inputClass)("ngStyle",t.inputStyle)("type",t.type)("autocomplete",t.autocomplete)("required",t.required)("name",t.name)("maxlength",t.maxlength)("tabindex",t.disabled?-1:t.tabindex)("readonly",t.readonly)("disabled",t.disabled),e.uIk("value",t.inputValue())("id",t.inputId)("placeholder",t.placeholder)("size",t.size)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledBy)("aria-required",t.required)("aria-expanded",t.overlayVisible)("aria-controls",t.id+"_list")("aria-aria-activedescendant",t.focused?t.focusedOptionId:void 0)}}function ce(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"TimesIcon",16),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.clear())}),e.qZA()}2&n&&(e.Q6J("styleClass","p-autocomplete-clear-icon"),e.uIk("aria-hidden",!0))}function ue(n,s){}function de(n,s){1&n&&e.YNc(0,ue,0,0,"ng-template")}function me(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"span",17),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.clear())}),e.YNc(1,de,1,0,null,9),e.qZA()}if(2&n){const t=e.oxw(2);e.uIk("aria-hidden",!0),e.xp6(1),e.Q6J("ngTemplateOutlet",t.clearIconTemplate)}}function _e(n,s){if(1&n&&(e.ynx(0),e.YNc(1,ce,1,2,"TimesIcon",14),e.YNc(2,me,2,2,"span",15),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.clearIconTemplate),e.xp6(1),e.Q6J("ngIf",t.clearIconTemplate)}}function he(n,s){1&n&&e.GkF(0)}function fe(n,s){if(1&n&&(e.TgZ(0,"span",30),e._uU(1),e.qZA()),2&n){const t=e.oxw().$implicit,i=e.oxw(2);e.xp6(1),e.Oqu(i.getOptionLabel(t))}}function ge(n,s){1&n&&e._UZ(0,"TimesCircleIcon",31),2&n&&(e.Q6J("styleClass","p-autocomplete-token-icon"),e.uIk("aria-hidden",!0))}function xe(n,s){}function Ce(n,s){1&n&&e.YNc(0,xe,0,0,"ng-template")}function be(n,s){if(1&n&&(e.TgZ(0,"span",32),e.YNc(1,Ce,1,0,null,9),e.qZA()),2&n){const t=e.oxw(3);e.uIk("aria-hidden",!0),e.xp6(1),e.Q6J("ngTemplateOutlet",t.removeIconTemplate)}}const ye=function(n){return{"p-autocomplete-token":!0,"p-focus":n}},K=function(n){return{$implicit:n}};function Ie(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"li",23,24),e.YNc(2,he,1,0,"ng-container",25),e.YNc(3,fe,2,1,"span",26),e.TgZ(4,"span",27),e.NdJ("click",function(o){const a=e.CHM(t).index,_=e.oxw(2);return e.KtG(_.removeOption(o,a))}),e.YNc(5,ge,1,2,"TimesCircleIcon",28),e.YNc(6,be,2,2,"span",29),e.qZA()()}if(2&n){const t=s.$implicit,i=s.index,o=e.oxw(2);e.Q6J("ngClass",e.VKq(11,ye,o.focusedMultipleOptionIndex()===i)),e.uIk("id",o.id+"_multiple_option_"+i)("aria-label",o.getOptionLabel(t))("aria-setsize",o.modelValue().length)("aria-posinset",i+1)("aria-selected",!0),e.xp6(2),e.Q6J("ngTemplateOutlet",o.selectedItemTemplate)("ngTemplateOutletContext",e.VKq(13,K,t)),e.xp6(1),e.Q6J("ngIf",!o.selectedItemTemplate),e.xp6(2),e.Q6J("ngIf",!o.removeIconTemplate),e.xp6(1),e.Q6J("ngIf",o.removeIconTemplate)}}function ve(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"ul",18,19),e.NdJ("focus",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onMultipleContainerFocus(o))})("blur",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onMultipleContainerBlur(o))})("keydown",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onMultipleContainerKeyDown(o))}),e.YNc(2,Ie,7,15,"li",20),e.TgZ(3,"li",21)(4,"input",22,13),e.NdJ("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))})("change",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onInputChange(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))})("paste",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onInputPaste(o))})("keyup",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onInputKeyUp(o))}),e.qZA()()()}if(2&n){const t=e.oxw();e.Tol(t.multiContainerClass),e.Q6J("tabindex",-1),e.uIk("aria-orientation","horizontal")("aria-activedescendant",t.focused?t.focusedMultipleOptionId:void 0),e.xp6(2),e.Q6J("ngForOf",t.modelValue()),e.xp6(2),e.Tol(t.inputStyleClass),e.Q6J("autofocus",t.autofocus)("ngClass",t.inputClass)("ngStyle",t.inputStyle)("autocomplete",t.autocomplete)("required",t.required)("maxlength",t.maxlength)("tabindex",t.disabled?-1:t.tabindex)("readonly",t.readonly)("disabled",t.disabled),e.uIk("type",t.type)("id",t.inputId)("name",t.name)("placeholder",t.placeholder)("size",t.size)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledBy)("aria-required",t.required)("aria-expanded",t.overlayVisible)("aria-controls",t.id+"_list")("aria-aria-activedescendant",t.focused?t.focusedOptionId:void 0)}}function Te(n,s){1&n&&e._UZ(0,"SpinnerIcon",35),2&n&&(e.Q6J("styleClass","p-autocomplete-loader")("spin",!0),e.uIk("aria-hidden",!0))}function Oe(n,s){}function Ae(n,s){1&n&&e.YNc(0,Oe,0,0,"ng-template")}function Se(n,s){if(1&n&&(e.TgZ(0,"span",36),e.YNc(1,Ae,1,0,null,9),e.qZA()),2&n){const t=e.oxw(2);e.uIk("aria-hidden",!0),e.xp6(1),e.Q6J("ngTemplateOutlet",t.loadingIconTemplate)}}function we(n,s){if(1&n&&(e.ynx(0),e.YNc(1,Te,1,3,"SpinnerIcon",33),e.YNc(2,Se,2,2,"span",34),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.loadingIconTemplate),e.xp6(1),e.Q6J("ngIf",t.loadingIconTemplate)}}function Me(n,s){if(1&n&&e._UZ(0,"span",40),2&n){const t=e.oxw(2);e.Q6J("ngClass",t.dropdownIcon),e.uIk("aria-hidden",!0)}}function ke(n,s){1&n&&e._UZ(0,"ChevronDownIcon")}function Ee(n,s){}function Le(n,s){1&n&&e.YNc(0,Ee,0,0,"ng-template")}function Ve(n,s){if(1&n&&(e.ynx(0),e.YNc(1,ke,1,0,"ChevronDownIcon",3),e.YNc(2,Le,1,0,null,9),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!t.dropdownIconTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",t.dropdownIconTemplate)}}function De(n,s){if(1&n){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,Me,1,2,"span",39),e.YNc(3,Ve,3,2,"ng-container",3),e.qZA()}if(2&n){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 Ze(n,s){1&n&&e.GkF(0)}function Ne(n,s){1&n&&e.GkF(0)}const q=function(n,s){return{$implicit:n,options:s}};function Fe(n,s){if(1&n&&e.YNc(0,Ne,1,0,"ng-container",25),2&n){const t=s.$implicit,i=s.options;e.oxw(2);const o=e.MAs(14);e.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",e.WLB(2,q,t,i))}}function Be(n,s){1&n&&e.GkF(0)}const Ke=function(n){return{options:n}};function Je(n,s){if(1&n&&e.YNc(0,Be,1,0,"ng-container",25),2&n){const t=s.options,i=e.oxw(3);e.Q6J("ngTemplateOutlet",i.loaderTemplate)("ngTemplateOutletContext",e.VKq(2,Ke,t))}}function Ye(n,s){1&n&&(e.ynx(0),e.YNc(1,Je,1,4,"ng-template",44),e.BQk())}const D=function(n){return{height:n}};function Qe(n,s){if(1&n){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,Fe,1,5,"ng-template",43),e.YNc(3,Ye,2,0,"ng-container",3),e.qZA()}if(2&n){const t=e.oxw();e.Akn(e.VKq(8,D,t.scrollHeight)),e.Q6J("items",t.visibleOptions())("itemSize",t.virtualScrollItemSize||t._itemSize)("autoSize",!0)("lazy",t.lazy)("options",t.virtualScrollOptions),e.xp6(3),e.Q6J("ngIf",t.loaderTemplate)}}function Ge(n,s){1&n&&e.GkF(0)}const He=function(){return{}};function Ue(n,s){if(1&n&&(e.ynx(0),e.YNc(1,Ge,1,0,"ng-container",25),e.BQk()),2&n){const t=e.oxw(),i=e.MAs(14);e.xp6(1),e.Q6J("ngTemplateOutlet",i)("ngTemplateOutletContext",e.WLB(3,q,t.visibleOptions(),e.DdM(2,He)))}}function Pe(n,s){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2).$implicit,i=e.oxw(2);e.xp6(1),e.Oqu(i.getOptionGroupLabel(t.optionGroup))}}function Re(n,s){1&n&&e.GkF(0)}function ze(n,s){if(1&n&&(e.ynx(0),e.TgZ(1,"li",50),e.YNc(2,Pe,2,1,"span",3),e.YNc(3,Re,1,0,"ng-container",25),e.qZA(),e.BQk()),2&n){const t=e.oxw(),i=t.index,o=t.$implicit,l=e.oxw().options,a=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(5,D,l.itemSize+"px")),e.uIk("id",a.id+"_"+a.getOptionIndex(i,l)),e.xp6(1),e.Q6J("ngIf",!a.groupTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",a.groupTemplate)("ngTemplateOutletContext",e.VKq(7,K,o.optionGroup))}}function qe(n,s){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2).$implicit,i=e.oxw(2);e.xp6(1),e.Oqu(i.getOptionLabel(t))}}function $e(n,s){1&n&&e.GkF(0)}const We=function(n,s,t){return{"p-highlight":n,"p-focus":s,"p-disabled":t}},je=function(n,s){return{$implicit:n,index:s}};function Xe(n,s){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"li",51),e.NdJ("click",function(o){e.CHM(t);const l=e.oxw().$implicit,a=e.oxw(2);return e.KtG(a.onOptionSelect(o,l))})("mouseenter",function(o){e.CHM(t);const l=e.oxw().index,a=e.oxw().options,_=e.oxw();return e.KtG(_.onOptionMouseEnter(o,_.getOptionIndex(l,a)))}),e.YNc(2,qe,2,1,"span",3),e.YNc(3,$e,1,0,"ng-container",25),e.qZA(),e.BQk()}if(2&n){const t=e.oxw(),i=t.$implicit,o=t.index,l=e.oxw().options,a=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(12,D,l.itemSize+"px"))("ngClass",e.kEZ(14,We,a.isSelected(i),a.focusedOptionIndex()===a.getOptionIndex(o,l),a.isOptionDisabled(i))),e.uIk("id",a.id+"_"+a.getOptionIndex(o,l))("aria-label",a.getOptionLabel(i))("aria-selected",a.isSelected(i))("aria-disabled",a.isOptionDisabled(i))("data-p-focused",a.focusedOptionIndex()===a.getOptionIndex(o,l))("aria-setsize",a.ariaSetSize)("aria-posinset",a.getAriaPosInset(a.getOptionIndex(o,l))),e.xp6(1),e.Q6J("ngIf",!a.itemTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",a.itemTemplate)("ngTemplateOutletContext",e.WLB(18,je,i,l.getOptions?l.getOptions(o):o))}}function et(n,s){if(1&n&&(e.YNc(0,ze,4,9,"ng-container",3),e.YNc(1,Xe,4,21,"ng-container",3)),2&n){const t=s.$implicit,i=e.oxw(2);e.Q6J("ngIf",i.isOptionGroup(t)),e.xp6(1),e.Q6J("ngIf",!i.isOptionGroup(t))}}function tt(n,s){if(1&n&&(e.ynx(0),e._uU(1),e.BQk()),2&n){const t=e.oxw(3);e.xp6(1),e.hij(" ",t.searchResultMessageText," ")}}function it(n,s){1&n&&e.GkF(0,null,54)}function nt(n,s){if(1&n&&(e.TgZ(0,"li",52),e.YNc(1,tt,2,1,"ng-container",53),e.YNc(2,it,2,0,"ng-container",9),e.qZA()),2&n){const t=e.oxw().options,i=e.oxw();e.Q6J("ngStyle",e.VKq(4,D,t.itemSize+"px")),e.xp6(1),e.Q6J("ngIf",!i.emptyTemplate)("ngIfElse",i.empty),e.xp6(1),e.Q6J("ngTemplateOutlet",i.emptyTemplate)}}function ot(n,s){1&n&&e.GkF(0)}function lt(n,s){if(1&n&&(e.TgZ(0,"ul",45,46),e.YNc(2,et,2,2,"ng-template",47),e.YNc(3,nt,3,6,"li",48),e.qZA(),e.YNc(4,ot,1,0,"ng-container",25),e.TgZ(5,"span",49),e._uU(6),e.qZA()),2&n){const t=s.$implicit,i=s.options,o=e.oxw();e.Akn(i.contentStyle),e.Q6J("ngClass",i.contentStyleClass),e.uIk("id",o.id+"_list"),e.xp6(2),e.Q6J("ngForOf",t),e.xp6(1),e.Q6J("ngIf",!t||t&&0===t.length&&o.showEmptyMessage),e.xp6(1),e.Q6J("ngTemplateOutlet",o.footerTemplate)("ngTemplateOutletContext",e.VKq(9,K,t)),e.xp6(2),e.hij(" ",o.selectedMessageText," ")}}const st={provide:c.JU,useExisting:(0,e.Gpc)(()=>W),multi:!0};let W=(()=>{class n{document;el;renderer;cd;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=!0;baseZIndex=0;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="items";optionGroupLabel="label";overlayOptions;get suggestions(){return this._suggestions()}set suggestions(t){this._suggestions.set(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.")}optionLabel;id;searchMessage;emptySelectionMessage;selectionMessage;autoOptionFocus=!0;selectOnFocus;searchLocale;optionDisabled;focusOnHover;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=(0,e.tdS)(null);onModelChange=()=>{};onModelTouched=()=>{};timeout;overlayVisible;suggestionsUpdated;highlightOption;highlightOptionChanged;focused=!1;filled;loading;scrollHandler;listId;searchTimeout;dirty=!1;modelValue=(0,e.tdS)(null);focusedMultipleOptionIndex=(0,e.tdS)(-1);focusedOptionIndex=(0,e.tdS)(-1);visibleOptions=(0,e.Flj)(()=>this.group?this.flatOptions(this._suggestions()):this._suggestions()||[]);inputValue=(0,e.Flj)(()=>{const t=this.modelValue();return this.filled=m.gb.isNotEmpty(this.modelValue()),t?"object"==typeof t?this.getOptionLabel(t)??t:t:""});get focusedMultipleOptionId(){return-1!==this.focusedMultipleOptionIndex()?`${this.id}_multiple_option_${this.focusedMultipleOptionIndex()}`:null}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}get containerClass(){return{"p-autocomplete p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-focus":this.focused,"p-autocomplete-dd":this.dropdown,"p-autocomplete-multiple":this.multiple,"p-inputwrapper-filled":this.modelValue()||m.gb.isNotEmpty(this.inputValue),"p-inputwrapper-focus":this.focused,"p-overlay-open":this.overlayVisible}}get multiContainerClass(){return"p-autocomplete-multiple-container p-component p-inputtext"}get panelClass(){return{"p-autocomplete-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle,"p-ripple-disabled":!1===this.config.ripple}}get inputClass(){return{"p-autocomplete-input p-inputtext p-component":!this.multiple,"p-autocomplete-dd-input":this.dropdown}}get searchResultMessageText(){return m.gb.isNotEmpty(this.visibleOptions())&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptySearchMessageText}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptySearchMessageText(){return this.emptyMessage||this.config.translation.emptySearchMessage||""}get selectionMessageText(){return this.selectionMessage||this.config.translation.selectionMessage||""}get emptySelectionMessageText(){return this.emptySelectionMessage||this.config.translation.emptySelectionMessage||""}get selectedMessageText(){return this.hasSelectedOption()?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue().length:"1"):this.emptySelectionMessageText}get ariaSetSize(){return this.visibleOptions().filter(t=>!this.isOptionGroup(t)).length}get virtualScrollerDisabled(){return!this.virtualScroll}constructor(t,i,o,l,a,_,E){this.document=t,this.el=i,this.renderer=o,this.cd=l,this.config=a,this.overlayService=_,this.zone=E}ngOnInit(){this.id=this.id||(0,m.Th)()}ngAfterViewChecked(){this.suggestionsUpdated&&this.overlayViewChild&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1),this.suggestionsUpdated=!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}})}handleSuggestionsChange(){if(this.loading){this._suggestions()||this.emptyTemplate?this.show():this.hide();const t=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(t),this.suggestionsUpdated=!0,this.loading=!1,this.cd.markForCheck()}}flatOptions(t){return(t||[]).reduce((i,o,l)=>{i.push({optionGroup:o,group:!0,index:l});const a=this.getOptionGroupChildren(o);return a&&a.forEach(_=>i.push(_)),i},[])}isOptionGroup(t){return this.optionGroupLabel&&t.optionGroup&&t.group}findFirstOptionIndex(){return this.visibleOptions().findIndex(t=>this.isValidOption(t))}findLastOptionIndex(){return m.gb.findLastIndex(this.visibleOptions(),t=>this.isValidOption(t))}findFirstFocusedOptionIndex(){const t=this.findSelectedOptionIndex();return t<0?this.findFirstOptionIndex():t}findLastFocusedOptionIndex(){const t=this.findSelectedOptionIndex();return t<0?this.findLastOptionIndex():t}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(t=>this.isValidSelectedOption(t)):-1}findNextOptionIndex(t){const i=t<this.visibleOptions().length-1?this.visibleOptions().slice(t+1).findIndex(o=>this.isValidOption(o)):-1;return i>-1?i+t+1:t}findPrevOptionIndex(t){const i=t>0?m.gb.findLastIndex(this.visibleOptions().slice(0,t),o=>this.isValidOption(o)):-1;return i>-1?i:t}isValidSelectedOption(t){return this.isValidOption(t)&&this.isSelected(t)}isValidOption(t){return t&&!(this.isOptionDisabled(t)||this.isOptionGroup(t))}isOptionDisabled(t){return!!this.optionDisabled&&m.gb.resolveFieldData(t,this.optionDisabled)}isSelected(t){return m.gb.equals(this.modelValue(),this.getOptionValue(t),this.equalityKey())}isOptionMatched(t,i){return this.isValidOption(t)&&this.getOptionLabel(t).toLocaleLowerCase(this.searchLocale)===i.toLocaleLowerCase(this.searchLocale)}isInputClicked(t){return this.multiple?t.target===this.multiContainerEL.nativeElement||this.multiContainerEL.nativeElement.contains(t.target):t.target===this.inputEL.nativeElement}isDropdownClicked(t){return!!this.dropdownButton?.nativeElement&&(t.target===this.dropdownButton.nativeElement||this.dropdownButton.nativeElement.contains(t.target))}equalityKey(){return this.dataKey}onContainerClick(t){this.disabled||this.loading||this.isInputClicked(t)||this.isDropdownClicked(t)||(!this.overlayViewChild||!this.overlayViewChild.overlayViewChild?.nativeElement.contains(t.target))&&b.p.focus(this.inputEL.nativeElement)}handleDropdownClick(t){let i;this.overlayVisible?this.hide(!0):(b.p.focus(this.inputEL.nativeElement),i=this.inputEL.nativeElement.value,"blank"===this.dropdownMode?this.search(t,"","dropdown"):"current"===this.dropdownMode&&this.search(t,i,"dropdown")),this.onDropdownClick.emit({originalEvent:t,query:i})}onInput(t){this.searchTimeout&&clearTimeout(this.searchTimeout);let i=t.target.value;this.multiple||this.updateModel(i),0!==i.length||this.multiple?i.length>=this.minLength?(this.focusedOptionIndex.set(-1),this.searchTimeout=setTimeout(()=>{this.search(t,i,"input")},this.delay)):this.hide():(this.onClear.emit(),setTimeout(()=>{this.hide()},this.delay/2))}onInputChange(t){if(this.forceSelection){let i=!1;if(this.visibleOptions()){const o=this.visibleOptions().find(l=>this.isOptionMatched(l,this.inputEL.nativeElement.value||""));void 0!==o&&(i=!0,!this.isSelected(o)&&this.onOptionSelect(t,o))}i||(this.inputEL.nativeElement.value="",!this.multiple&&this.updateModel(null))}}onInputFocus(t){if(this.disabled)return;!this.dirty&&this.completeOnFocus&&this.search(t,t.target.value,"focus"),this.dirty=!0,this.focused=!0;const i=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(t)}onMultipleContainerFocus(t){this.disabled||(this.focused=!0)}onMultipleContainerBlur(t){this.focusedMultipleOptionIndex.set(-1),this.focused=!1}onMultipleContainerKeyDown(t){if(this.disabled)t.preventDefault();else switch(t.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(t);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(t);break;case"Backspace":this.onBackspaceKeyOnMultiple(t)}}onInputBlur(t){this.dirty=!1,this.focused=!1,this.focusedOptionIndex.set(-1),this.onModelTouched(),this.onBlur.emit(t)}onInputPaste(t){this.onKeyDown(t)}onInputKeyUp(t){this.onKeyUp.emit(t)}onKeyDown(t){if(this.disabled)t.preventDefault();else switch(t.code){case"ArrowDown":this.onArrowDownKey(t);break;case"ArrowUp":this.onArrowUpKey(t);break;case"ArrowLeft":this.onArrowLeftKey(t);break;case"ArrowRight":this.onArrowRightKey(t);break;case"Home":this.onHomeKey(t);break;case"End":this.onEndKey(t);break;case"PageDown":this.onPageDownKey(t);break;case"PageUp":this.onPageUpKey(t);break;case"Enter":case"NumpadEnter":this.onEnterKey(t);break;case"Escape":this.onEscapeKey(t);break;case"Tab":this.onTabKey(t);break;case"Backspace":this.onBackspaceKey(t)}}onArrowDownKey(t){if(!this.overlayVisible)return;const i=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(t,i),t.preventDefault(),t.stopPropagation()}onArrowUpKey(t){if(this.overlayVisible)if(t.altKey)-1!==this.focusedOptionIndex()&&this.onOptionSelect(t,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),t.preventDefault();else{const i=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(t,i),t.preventDefault(),t.stopPropagation()}}onArrowLeftKey(t){const i=t.currentTarget;this.focusedOptionIndex.set(-1),this.multiple&&(m.gb.isEmpty(i.value)&&this.hasSelectedOption()?(b.p.focus(this.multiContainerEL.nativeElement),this.focusedMultipleOptionIndex.set(this.modelValue().length)):t.stopPropagation())}onArrowRightKey(t){this.focusedOptionIndex.set(-1),this.multiple&&t.stopPropagation()}onHomeKey(t){const{currentTarget:i}=t;i.setSelectionRange(0,t.shiftKey?i.value.length:0),this.focusedOptionIndex.set(-1),t.preventDefault()}onEndKey(t){const{currentTarget:i}=t,o=i.value.length;i.setSelectionRange(t.shiftKey?0:o,o),this.focusedOptionIndex.set(-1),t.preventDefault()}onPageDownKey(t){this.scrollInView(this.visibleOptions().length-1),t.preventDefault()}onPageUpKey(t){this.scrollInView(0),t.preventDefault()}onEnterKey(t){this.overlayVisible?(-1!==this.focusedOptionIndex()&&this.onOptionSelect(t,this.visibleOptions()[this.focusedOptionIndex()]),this.hide()):this.onArrowDownKey(t),t.preventDefault()}onEscapeKey(t){this.overlayVisible&&this.hide(!0),t.preventDefault()}onTabKey(t){-1!==this.focusedOptionIndex()&&this.onOptionSelect(t,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide()}onBackspaceKey(t){if(this.multiple){if(m.gb.isNotEmpty(this.modelValue())&&!this.inputEL.nativeElement.value){const i=this.modelValue()[this.modelValue().length-1],o=this.modelValue().slice(0,-1);this.updateModel(o),this.onUnselect.emit({originalEvent:t,value:i})}t.stopPropagation()}}onArrowLeftKeyOnMultiple(t){const i=this.focusedMultipleOptionIndex()<1?0:this.focusedMultipleOptionIndex()-1;this.focusedMultipleOptionIndex.set(i)}onArrowRightKeyOnMultiple(t){let i=this.focusedMultipleOptionIndex();i++,this.focusedMultipleOptionIndex.set(i),i>this.modelValue().length-1&&(this.focusedMultipleOptionIndex.set(-1),b.p.focus(this.inputEL.nativeElement))}onBackspaceKeyOnMultiple(t){-1!==this.focusedMultipleOptionIndex()&&this.removeOption(t,this.focusedMultipleOptionIndex())}onOptionSelect(t,i,o=!0){const l=this.getOptionValue(i);this.multiple?(this.inputEL.nativeElement.value="",this.isSelected(i)||this.updateModel([...this.modelValue()||[],l])):this.updateModel(l),this.onSelect.emit({originalEvent:t,value:i}),o&&this.hide(!0)}onOptionMouseEnter(t,i){this.focusOnHover&&this.changeFocusedOptionIndex(t,i)}search(t,i,o){null!=i&&("input"===o&&0===i.trim().length||(this.loading=!0,this.completeMethod.emit({originalEvent:t,query:i})))}removeOption(t,i){const o=this.modelValue()[i],l=this.modelValue().filter((a,_)=>_!==i).map(a=>this.getOptionValue(a));this.updateModel(l),this.onUnselect.emit({originalEvent:t,value:o}),b.p.focus(this.inputEL.nativeElement)}updateModel(t){this.value=t,this.modelValue.set(t),this.onModelChange(t),this.updateInputValue(),this.cd.markForCheck()}updateInputValue(){this.value&&this.inputEL&&this.inputEL.nativeElement&&(this.inputEL.nativeElement.value=this.multiple?"":this.inputValue())}autoUpdateModel(){if((this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption()){const t=this.findFirstFocusedOptionIndex();this.focusedOptionIndex.set(t),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)}}scrollInView(t=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=b.p.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==t?`${this.id}_${t}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==t?t:this.focusedOptionIndex())},0)}}changeFocusedOptionIndex(t,i){this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView(),(this.selectOnFocus||this.autoHighlight)&&this.onOptionSelect(t,this.visibleOptions()[i],!1))}show(t=!1){this.dirty=!0,this.overlayVisible=!0;const i=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),t&&b.p.focus(this.inputEL.nativeElement),t&&b.p.focus(this.inputEL.nativeElement),this.onShow.emit(),this.cd.markForCheck()}hide(t=!1){const i=()=>{this.dirty=t,this.overlayVisible=!1,this.focusedOptionIndex.set(-1),t&&b.p.focus(this.inputEL.nativeElement),this.onHide.emit(),this.cd.markForCheck()};setTimeout(()=>{i()},0)}clear(){this.updateModel(null),this.inputEL.nativeElement.value="",this.onClear.emit()}writeValue(t){this.value=t,this.filled=!(!this.value||!this.value.length),this.updateModel(t),this.cd.markForCheck()}hasSelectedOption(){return m.gb.isNotEmpty(this.modelValue())}getAriaPosInset(t){return(this.optionGroupLabel?t-this.visibleOptions().slice(0,t).filter(i=>this.isOptionGroup(i)).length:t)+1}getOptionLabel(t){return this.field||this.optionLabel?m.gb.resolveFieldData(t,this.field||this.optionLabel):t&&null!=t.label?t.label:t}getOptionValue(t){return t}getOptionIndex(t,i){return this.virtualScrollerDisabled?t:i&&i.getItemOptions(t).index}getOptionGroupLabel(t){return this.optionGroupLabel?m.gb.resolveFieldData(t,this.optionGroupLabel):t&&null!=t.label?t.label:t}getOptionGroupChildren(t){return this.optionGroupChildren?m.gb.resolveFieldData(t,this.optionGroupChildren):t.items}registerOnChange(t){this.onModelChange=t}registerOnTouched(t){this.onModelTouched=t}setDisabledState(t){this.disabled=t,this.cd.markForCheck()}onOverlayAnimationStart(t){if("visible"===t.toState&&(this.itemsWrapper=b.p.findSingle(this.overlayViewChild.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-autocomplete-panel"),this.virtualScroll&&(this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.scroller.viewInit()),this.visibleOptions()&&this.visibleOptions().length))if(this.virtualScroll){const i=this.modelValue()?this.focusedOptionIndex():-1;-1!==i&&this.scroller?.scrollToIndex(i)}else{let i=b.p.findSingle(this.itemsWrapper,".p-autocomplete-item.p-highlight");i&&i.scrollIntoView({block:"nearest",inline:"center"})}}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(i){return new(i||n)(e.Y36(f.K0),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(x.b4),e.Y36(x.F0),e.Y36(e.R0b))};static \u0275cmp=e.Xpm({type:n,selectors:[["p-autoComplete"]],contentQueries:function(i,o,l){if(1&i&&e.Suo(l,x.jx,4),2&i){let a;e.iGM(a=e.CRH())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&(e.Gf(te,5),e.Gf(ie,5),e.Gf(ne,5),e.Gf(oe,5),e.Gf(le,5),e.Gf(se,5),e.Gf(ae,5),e.Gf(pe,5)),2&i){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(i,o){2&i&&e.ekj("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused&&!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",optionLabel:"optionLabel",id:"id",searchMessage:"searchMessage",emptySelectionMessage:"emptySelectionMessage",selectionMessage:"selectionMessage",autoOptionFocus:"autoOptionFocus",selectOnFocus:"selectOnFocus",searchLocale:"searchLocale",optionDisabled:"optionDisabled",focusOnHover:"focusOnHover"},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([st])],decls:15,vars:24,consts:[[3,"ngClass","ngStyle","click"],["container",""],["pAutoFocus","","aria-autocomplete","list","role","combobox",3,"autofocus","ngClass","ngStyle","class","type","autocomplete","required","name","maxlength","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup",4,"ngIf"],[4,"ngIf"],["role","listbox",3,"class","tabindex","focus","blur","keydown",4,"ngIf"],["type","button","pButton","","class","p-autocomplete-dropdown p-button-icon-only","pRipple","",3,"disabled","click",4,"ngIf"],[3,"visible","options","target","appendTo","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],[3,"ngClass","ngStyle"],[4,"ngTemplateOutlet"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["pAutoFocus","","aria-autocomplete","list","role","combobox",3,"autofocus","ngClass","ngStyle","type","autocomplete","required","name","maxlength","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup"],["focusInput",""],[3,"styleClass","click",4,"ngIf"],["class","p-autocomplete-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-autocomplete-clear-icon",3,"click"],["role","listbox",3,"tabindex","focus","blur","keydown"],["multiContainer",""],["role","option",3,"ngClass",4,"ngFor","ngForOf"],["role","option",1,"p-autocomplete-input-token"],["pAutoFocus","","role","combobox","aria-autocomplete","list",3,"autofocus","ngClass","ngStyle","autocomplete","required","maxlength","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup"],["role","option",3,"ngClass"],["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",""],["ngFor","",3,"ngForOf"],["class","p-autocomplete-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","status","aria-live","polite",1,"p-hidden-accessible"],["role","option",1,"p-autocomplete-item-group",3,"ngStyle"],["pRipple","","role","option",1,"p-autocomplete-item",3,"ngStyle","ngClass","click","mouseenter"],["role","option",1,"p-autocomplete-empty-message",3,"ngStyle"],[4,"ngIf","ngIfElse"],["empty",""]],template:function(i,o){1&i&&(e.TgZ(0,"div",0,1),e.NdJ("click",function(a){return o.onContainerClick(a)}),e.YNc(2,re,2,23,"input",2),e.YNc(3,_e,3,2,"ng-container",3),e.YNc(4,ve,6,28,"ul",4),e.YNc(5,we,3,2,"ng-container",3),e.YNc(6,De,4,5,"button",5),e.TgZ(7,"p-overlay",6,7),e.NdJ("visibleChange",function(a){return o.overlayVisible=a})("onAnimationStart",function(a){return o.onOverlayAnimationStart(a)})("onHide",function(){return o.hide()}),e.TgZ(9,"div",8),e.YNc(10,Ze,1,0,"ng-container",9),e.YNc(11,Qe,4,10,"p-scroller",10),e.YNc(12,Ue,2,6,"ng-container",3),e.YNc(13,lt,7,11,"ng-template",null,11,e.W1O),e.qZA()()()),2&i&&(e.Tol(o.styleClass),e.Q6J("ngClass",o.containerClass)("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)("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",o.panelClass)("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))},dependencies:function(){return[f.mk,f.sg,f.O5,f.tP,f.PC,F.aV,x.jx,v.Hq,H.H,B.T,y.P,U.x,P.L,R.q,z.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 n})(),at=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=e.oAB({type:n});static \u0275inj=e.cJS({imports:[f.ez,F.U8,ee.j,v.hJ,x.m8,H.T,B.v,y.E,U.x,P.L,R.q,z.v,F.U8,x.m8,B.v,y.E]})}return n})();var pt=p(2712),rt=p(6215),ct=p(1601),ut=p(3835),dt=p(5405),mt=p(3965),_t=p(5025);const ht=["monacoEditorModalC"];function ft(n,s){1&n&&e._UZ(0,"i",37)}function gt(n,s){1&n&&e._UZ(0,"i",38)}function xt(n,s){if(1&n&&(e.TgZ(0,"div",34)(1,"span"),e._uU(2),e.qZA(),e.YNc(3,ft,1,0,"i",35),e.YNc(4,gt,1,0,"i",36),e.qZA()),2&n){const t=e.oxw().$implicit,i=e.oxw(2);e.xp6(2),e.Oqu(t.apiVersion),e.xp6(1),e.Q6J("ngIf",i.tpApiVersionIdMap&&i.tpApiVersionIdMap[t.bundleName]&&i.tpApiVersionIdMap[t.bundleName][t.apiVersion]),e.xp6(1),e.Q6J("ngIf",t.dockerFile)}}function Ct(n,s){1&n&&e.YNc(0,xt,5,3,"div",33),2&n&&e.Q6J("ngIf",s.$implicit)}function bt(n,s){1&n&&e._UZ(0,"i",37)}function yt(n,s){1&n&&e._UZ(0,"i",38)}function It(n,s){if(1&n&&(e.TgZ(0,"div",34)(1,"span"),e._uU(2),e.qZA(),e.YNc(3,bt,1,0,"i",35),e.YNc(4,yt,1,0,"i",36),e.qZA()),2&n){const t=e.oxw().$implicit,i=e.oxw(2);e.xp6(2),e.Oqu(t.apiVersion),e.xp6(1),e.Q6J("ngIf",i.tpApiVersionIdMap&&i.tpApiVersionIdMap[t.bundleName]&&i.tpApiVersionIdMap[t.bundleName][t.apiVersion]),e.xp6(1),e.Q6J("ngIf",t.dockerFile)}}function vt(n,s){1&n&&e.YNc(0,It,5,3,"div",33),2&n&&e.Q6J("ngIf",s.$implicit)}function Tt(n,s){if(1&n){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 Ot(n,s){if(1&n){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 At(n,s){if(1&n){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 St(n,s){if(1&n){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&n){const t=e.oxw(2);e.Q6J("disabled",t.loading.form)}}function wt(n,s){1&n&&e._UZ(0,"p-progressSpinner",44)}function Mt(n,s){if(1&n){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,Ct,1,1,"ng-template",21),e.YNc(22,vt,1,1,"ng-template",22),e.qZA(),e.TgZ(23,"div",23),e.YNc(24,Tt,3,0,"span",24),e.qZA()(),e.TgZ(25,"div",25)(26,"span",19),e._uU(27,"Operation"),e.qZA(),e.YNc(28,Ot,2,0,"button",26),e.YNc(29,At,2,0,"ng-template",null,27,e.W1O),e.qZA()()()(),e.TgZ(31,"div",28),e.YNc(32,St,2,1,"button",29),e.TgZ(33,"button",30),e._UZ(34,"i",31),e._uU(35," Close"),e.qZA()(),e.YNc(36,wt,1,0,"p-progressSpinner",32),e.qZA()}if(2&n){const t=e.MAs(30),i=e.oxw();e.xp6(10),e.s9C("src",i.apiBundle.iconUrl,e.LSH),e.s9C("alt",i.apiBundle.name),e.xp6(3),e.Oqu(i.apiBundle.label),e.xp6(2),e.Oqu(i.apiBundle.description),e.xp6(5),e.Q6J("options",i.apiVersions)("ngModel",i.selectedApiVersion)("filter",!0),e.xp6(4),e.Q6J("ngIf",null==i.selectedApiVersion?null:i.selectedApiVersion.dockerFile),e.xp6(4),e.Q6J("ngIf",i.tpApiVersionIdMap&&i.tpApiVersionIdMap[null==i.selectedApiVersion?null:i.selectedApiVersion.bundleName]&&i.tpApiVersionIdMap[null==i.selectedApiVersion?null:i.selectedApiVersion.bundleName][null==i.selectedApiVersion?null:i.selectedApiVersion.apiVersion])("ngIfElse",t),e.xp6(4),e.Q6J("ngIf",i.tpApiVersionIdMap[i.apiBundle._id]),e.xp6(4),e.Q6J("ngIf",i.loading.form)}}let j=(()=>{class n{fb;ns;confirmationService;userS;generalS;cs;eventCenterCS;authCS;storeApisCS;cd;tpStoreApiVersionS;STORE_BE_HOST_PORT_SITES=I.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,i,o,l,a,_,E,J,Y,Q,G){this.fb=t,this.ns=i,this.confirmationService=o,this.userS=l,this.generalS=a,this.cs=_,this.eventCenterCS=E,this.authCS=J,this.storeApisCS=Y,this.cd=Q,this.tpStoreApiVersionS=G}ngOnInit(){}init(){var t=this;return(0,u.Z)(function*(){if(!t.apiBundle)return;t.apiVersions=[],t.selectedApiVersion=void 0;const i={find:{bundleName:t.apiBundle.name,active:!0,apiVersionState:rt.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,i)).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,i)=>pt(i.apiVersion,t.apiVersion))}installVersionAndSchemaHandler(t){var i=this;return(0,u.Z)(function*(){var o;i.selectedApiVersion.dockerFile?i.confirmationService.confirm({message:i.cs.appStore.dockerfileInstallConfirmation,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(o=(0,u.Z)(function*(){yield i.installOrUninstallAPIVersion(t)}),function(){return o.apply(this,arguments)})}):yield i.installOrUninstallAPIVersion(t)})()}installOrUninstallAPIVersion(t){var i=this;return(0,u.Z)(function*(){try{i.loading.form=!0;let o=null;"install"===t&&(o={apiBundleName:i.apiBundle.name,apiBundleLabel:i.apiBundle.label,storeApiVersion:i.selectedApiVersion.apiVersion,dependencies:i.selectedApiVersion.dependencies,secretKeys:i.selectedApiVersion.secretKeys,user:i.authCS.getUserId(),active:!0}),yield i.tpStoreApiVersionS.installApisFromStore(o,t).toPromise(),i.loading.form=!1,t.toString().toUpperCase(),i.ns.showSuccess("APIs installed successfully."),i.change.emit(Math.random())}catch(o){i.loading.form=!1,i.cd.detectChanges(),i.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,ct.d.dockerfile)}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}static \u0275fac=function(i){return new(i||n)(e.Y36(c.qu),e.Y36(h.W),e.Y36(x.YP),e.Y36(ut.K),e.Y36(L.b),e.Y36(S.L),e.Y36(dt.M),e.Y36(r.D),e.Y36(V.V),e.Y36(e.sBO),e.Y36(d.f))};static \u0275cmp=e.Xpm({type:n,selectors:[["app-lib-details-modal"]],viewQuery:function(i,o){if(1&i&&e.Gf(ht,5),2&i){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(i,o){1&i&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,Mt,37,12,"div",2),e.qZA()(),e._UZ(3,"app-monaco-editor-modal",3,4)),2&i&&(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,f.O5,x.jx,k.G,mt.Lt,_t.A],encapsulation:2,changeDetection:0})}return n})();var kt=p(4066);const Et=["libDetailModalC"];function Lt(n,s){1&n&&(e.TgZ(0,"span",26),e._uU(1,"Installed"),e.qZA())}function Vt(n,s){1&n&&(e.TgZ(0,"span",27),e._uU(1,"Install"),e.qZA())}function Dt(n,s){if(1&n&&(e.TgZ(0,"div",23),e.YNc(1,Lt,2,0,"span",24),e.YNc(2,Vt,2,0,"span",25),e.qZA()),2&n){const t=e.oxw().$implicit,i=e.oxw();e.xp6(1),e.Q6J("ngIf",i.tpApiBundleIdMap[t.name]),e.xp6(1),e.Q6J("ngIf",!i.tpApiBundleIdMap[t.name])}}function Zt(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",14),e.NdJ("click",function(){const l=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.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,Dt,3,2,"div",22),e.qZA()()}if(2&n){const t=s.$implicit,i=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,i.cs.DATE_FORMAT_USER)),e.xp6(3),e.Oqu(t.description),e.xp6(1),e.Q6J("ngIf",i.tpApiBundleIdMap)}}function Nt(n,s){1&n&&e._UZ(0,"p-progressSpinner",28)}const Ft=function(){return{"padding-top":"5px","padding-bottom":"5px","padding-left":"5px",width:"1000px"}};let X=(()=>{class n{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=I.N.STORE_BE_HOST_PORT_SITES;STORE_IMAGE_DOMAIN=I.N.STORE_IMAGE_DOMAIN;LICENSE_KEY=I.N.LICENSE_KEY;passStoreCommunication=I.N.crypto.passStoreCommunication;libDetailModalC;constructor(t,i,o,l,a,_,E,J,Y,Q,G){this.generalS=t,this.instanceS=i,this.cs=o,this.storeApisCS=l,this.feStoreCS=a,this.authCS=_,this.tpStoreApiVersionS=E,this.notificationS=J,this.eventCenterS=Y,this.constantsS=Q,this.cd=G}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:M.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:i,tpApiBundleIdMap:o}=(yield t.instanceS.getInstalledPackagesAndSchemas().toPromise()).data;t.tpApiVersionIdMap=i,t.tpApiBundleIdMap=o,t.cd.detectChanges()})()}versionChanged(){var t=this;return(0,u.Z)(function*(){yield t.loadDependenciesAndSchemas()})()}libraryClick(t){var i=this;return(0,u.Z)(function*(){i.selectedLib=t,i.libDetailModalC.showLibraryModal(i.selectedLib)})()}static \u0275fac=function(i){return new(i||n)(e.Y36(L.b),e.Y36(A.E),e.Y36(S.L),e.Y36(V.V),e.Y36(N.e),e.Y36(r.D),e.Y36(d.f),e.Y36(h.W),e.Y36(C.u),e.Y36(S.L),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:n,selectors:[["app-app-store-layout"]],viewQuery:function(i,o){if(1&i&&e.Gf(Et,5),2&i){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(i,o){1&i&&(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(a){return o.searchText=a})("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,Zt,13,10,"div",10),e.YNc(15,Nt,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&i&&(e.xp6(9),e.Akn(e.DdM(8,Ft)),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,f.sg,f.O5,k.G,w.u,W,j,kt.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 n})();var Bt=p(3726),Kt=p(4950);const Jt=[{path:"main",component:X,canActivate:[Bt.P]}];let Yt=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=e.oAB({type:n});static \u0275inj=e.cJS({imports:[T.Bz.forChild(Jt),g.u,Kt.A,at]})}return n})()},2712:function(Z,O){var p,g;void 0!==(g="function"==typeof(p=function(){var u=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function M(r){var d=r.replace(/^v/,"").replace(/\+.*$/,""),h=function I(r,d){return-1===r.indexOf(d)?r.length:r.indexOf(d)}(d,"-"),C=d.substring(0,h).split(".");return C.push(d.substring(h+1)),C}function e(r){return isNaN(Number(r))?r:Number(r)}function L(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 A(r,d){[r,d].forEach(L);for(var h=M(r),C=M(d),c=0;c<Math.max(h.length-1,C.length-1);c++){var f=parseInt(h[c]||0,10),k=parseInt(C[c]||0,10);if(f>k)return 1;if(k>f)return-1}var w=h[h.length-1],x=C[C.length-1];if(w&&x){var y=w.split(".").map(e),v=x.split(".").map(e);for(c=0;c<Math.max(y.length,v.length);c++){if(void 0===y[c]||"string"==typeof v[c]&&"number"==typeof y[c])return-1;if(void 0===v[c]||"string"==typeof y[c]&&"number"==typeof v[c]||y[c]>v[c])return 1;if(v[c]>y[c])return-1}}else if(w||x)return w?-1:1;return 0}var S=[">",">=","=","<","<="],V={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return A.validate=function(r){return"string"==typeof r&&u.test(r)},A.compare=function(r,d,h){!function N(r){if("string"!=typeof r)throw new TypeError("Invalid operator type, expected string but got "+typeof r);if(-1===S.indexOf(r))throw new TypeError("Invalid operator, expected one of "+S.join("|"))}(h);var C=A(r,d);return V[h].indexOf(C)>-1},A})?p.apply(O,[]):p)&&(Z.exports=g)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[9243],{3824:(G,S,a)=>{a.d(S,{d:()=>j});var m=a(5861),u=a(6212),E=a(6990),M=a(5085),D=a(1162),e=a(4946),n=a(7240),U=a(9961),y=a(2189),Z=a(5852),W=a(7414),B=a(2915),K=a(1429),N=a(6814),w=a(5431),Y=a(5219),J=a(7680);function Q(I,b){1&I&&(e.TgZ(0,"tr")(1,"th"),e._uU(2,"Name"),e.qZA()())}function F(I,b){if(1&I&&(e.TgZ(0,"tr",8)(1,"td"),e._uU(2),e.qZA()()),2&I){const o=b.$implicit;e.Q6J("pSelectableRow",o),e.xp6(2),e.Oqu(o.name)}}function H(I,b){1&I&&e._UZ(0,"p-progressSpinner",9)}let j=(()=>{class I{generalS;notificationS;navigationCS;authCS;constantsS;eventCenterS;dataProviderS;cd;loading={grid:!1};subscriptions=[];rows;rowsMap={};selectedRows=[];gridKey="id";isFilterLogTable=!1;typeIsGroup;constructor(o,h,T,O,c,x,s,d){this.generalS=o,this.notificationS=h,this.navigationCS=T,this.authCS=O,this.constantsS=c,this.eventCenterS=x,this.dataProviderS=s,this.cd=d}ngOnInit(){const o=this.dataProviderS.getApiCategoriesForWebSocketAndGroup();"GROUP"===this.typeIsGroup&&(this.rows=o.filter(h=>h.id!==M.R.SCHEDULERS&&h.id!==M.R.EVENTS)),"LOG_PROFILE"===this.typeIsGroup&&(this.rows=o),this.init()}init(){var o=this;return(0,m.Z)(function*(){o.rowsMap=E.keyBy(o.rows,D.GR.id),o.eventCenterS.apiCategory.selectedApiCategory.next([]);const h=o.navigationCS.getQueryParam(u.p.api_category);o.rowsMap[h]&&(o.eventCenterS.apiCategory.selectedApiCategory.next([o.rowsMap[h]]),o.selectedRows.length=0,o.selectedRows.push(o.rowsMap[h]),yield o.fillData()),o.subscriptions.push(o.eventCenterS.group.selectedGroups.subscribe(function(){var T=(0,m.Z)(function*(O){O.length&&o.commonGetQueryParam()});return function(O){return T.apply(this,arguments)}}())),o.isFilterLogTable&&o.commonGetQueryParam(),o.loading.grid=!1})()}commonGetQueryParam(){this.navigationCS.getQueryParam(u.p.api_category)||(setTimeout(()=>{this.navigationCS.setQueryParam(u.p.api_category,M.R.INSTANCES)},0),this.eventCenterS.apiCategory.selectedApiCategory.next([this.rows[0]]),this.selectedRows=[],this.selectedRows.push(this.rows[0])),this.cd.markForCheck()}resetDependents(){var o=this;return(0,m.Z)(function*(){o.eventCenterS.apiCategory.selectedApiCategory.next([]),yield o.navigationCS.setQueryParam(u.p.api_category,null)})()}apiCategorySelected(){var o=this;return(0,m.Z)(function*(){o.resetDependents(),o.fillData()})()}fillData(){var o=this;return(0,m.Z)(function*(){if(!o.selectedRows.length)return void o.resetDependents();const h=o.selectedRows[0];h&&(o.eventCenterS.apiCategory.selectedApiCategory.next(o.selectedRows),yield o.navigationCS.setQueryParam(u.p.api_category,h.id))})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}static \u0275fac=function(h){return new(h||I)(e.Y36(n.b),e.Y36(U.W),e.Y36(y.S),e.Y36(Z.D),e.Y36(W.L),e.Y36(B.u),e.Y36(K.B),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:I,selectors:[["app-w-api-categories"]],inputs:{isFilterLogTable:"isFilterLogTable",typeIsGroup:"typeIsGroup"},decls:10,vars:7,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header"],[1,"fas","fa-border-none","text-warning","fa-fw"],[1,"card-body","p-0","h-100","overflow-hidden"],["styleClass","p-datatable-striped","scrollHeight","flex",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange"],["pTemplate","header"],["pTemplate","body"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"pSelectableRow"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(h,T){1&h&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span"),e._UZ(3,"i",2),e._uU(4," API Categories"),e.qZA()(),e.TgZ(5,"div",3)(6,"p-table",4),e.NdJ("selectionChange",function(c){return T.selectedRows=c})("selectionChange",function(){return T.apiCategorySelected()}),e.YNc(7,Q,3,0,"ng-template",5),e.YNc(8,F,3,2,"ng-template",6),e.qZA(),e.YNc(9,H,1,0,"p-progressSpinner",7),e.qZA()()),2&h&&(e.xp6(6),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("selection",T.selectedRows)("dataKey",T.gridKey)("scrollable",!0)("value",T.rows),e.xp6(3),e.Q6J("ngIf",T.loading.grid))},dependencies:[N.O5,w.iA,Y.jx,w.Ei,J.G],changeDetection:0})}return I})()},2777:(G,S,a)=>{a.d(S,{u:()=>D});var m=a(7017),E=(a(3824),a(4946));let D=(()=>{class e{static \u0275fac=function(y){return new(y||e)};static \u0275mod=E.oAB({type:e});static \u0275inj=E.cJS({imports:[m.u]})}return e})()},356:(G,S,a)=>{a.d(S,{T:()=>O});var m=a(5861),u=a(6990),L=a(3620),M=a(1162),D=a(6925),e=a(9394),n=a(4946),U=a(3429),y=a(2915),Z=a(7414),W=a(6162),B=a(7240),K=a(95),N=a(6814),w=a(5219),Y=a(1396),J=a(7680),Q=a(3259),F=a(8057);function H(c,x){if(1&c){const s=n.EpF();n.TgZ(0,"span",8)(1,"label",9)(2,"p-checkbox",10),n.NdJ("ngModelChange",function(_){n.CHM(s);const A=n.oxw();return n.KtG(A.eventCenterS.group.apisRegex.allInstanceApis=_)}),n.qZA()()()}if(2&c){const s=n.oxw();n.xp6(2),n.Q6J("ngModel",s.eventCenterS.group.apisRegex.allInstanceApis)("binary",!0)}}function j(c,x){if(1&c&&(n.TgZ(0,"div")(1,"div",11),n._uU(2),n.qZA()()),2&c){const s=n.oxw();n.xp6(2),n.Oqu(s.constantsS.group.allApisPermitted)}}function I(c,x){if(1&c&&(n.TgZ(0,"span",19),n._uU(1),n.qZA()),2&c){const s=n.oxw().$implicit;n.xp6(1),n.hij(" [",s.category,"] ")}}function b(c,x){if(1&c){const s=n.EpF();n.TgZ(0,"div",20)(1,"p-checkbox",21),n.NdJ("ngModelChange",function(_){n.CHM(s);const A=n.oxw().$implicit;return n.KtG(A.saveResponseInLog=_)})("click",function(_){n.CHM(s);const A=n.oxw(3);return n.KtG(A.generalS.stopPropagation(_))}),n.qZA()()}if(2&c){const s=n.oxw().$implicit;n.xp6(1),n.Q6J("ngModel",s.saveResponseInLog)("binary",!0)}}function o(c,x){if(1&c&&(n.TgZ(0,"div",16),n._uU(1),n.YNc(2,I,2,1,"span",17),n.YNc(3,b,2,2,"div",18),n.qZA()),2&c){const s=x.$implicit,d=n.oxw(2);n.xp6(1),n.hij(" ",s.name," "),n.xp6(1),n.Q6J("ngIf",!s.level1&&s.category),n.xp6(1),n.Q6J("ngIf",s.level2&&d.isLPM&&d.selectedRows.indexOf(s)>=0&&s.id!==d.EAPIId.GEN_GET_ALL_STREAM&&s.id!==d.EAPIId.SCHEMA_GET_ALL_STREAM&&s.id!==d.EAPIId.GEN_POST_QUERY_STREAM&&s.id!==d.EAPIId.SCHEMA_POST_QUERY_STREAM)}}function h(c,x){1&c&&n._UZ(0,"p-progressSpinner",22)}function T(c,x){if(1&c){const s=n.EpF();n.TgZ(0,"div",12)(1,"p-tree",13),n.NdJ("selectionChange",function(_){n.CHM(s);const A=n.oxw();return n.KtG(A.selectedRows=_)})("selectionChange",function(){n.CHM(s);const _=n.oxw();return n.KtG(_.checkedChange())}),n.YNc(2,o,4,3,"ng-template",14),n.qZA(),n.YNc(3,h,1,0,"p-progressSpinner",15),n.qZA()}if(2&c){const s=n.oxw();n.xp6(1),n.Q6J("value",s.supportedApiGroups)("selection",s.selectedRows)("metaKeySelection",!1),n.xp6(2),n.Q6J("ngIf",s.loading.grid)}}let O=(()=>{class c{instanceS;eventCenterS;constantsS;dbCellCommonS;generalS;cd;isLPM=!1;isDependentOnGroup=!1;isFilterLogTable=!1;treeViewId="";loading={grid:!1};subscriptions=[];supportedApiGroups=[];supportedApiArr=[];allTreeItemsMap={};ERequestMethod=D.Yp;EAPIId=e.pj;selectedRows=[];key="_id";constructor(s,d,_,A,l,v){this.instanceS=s,this.eventCenterS=d,this.constantsS=_,this.dbCellCommonS=A,this.generalS=l,this.cd=v}ngOnInit(){var s=this;this.subscriptions.push(this.eventCenterS.collection.selectedCollections.pipe((0,L.b)(300)).subscribe(function(){var d=(0,m.Z)(function*(_){yield s.loadSupportedAPIs()});return function(_){return d.apply(this,arguments)}}()))}loadSupportedAPIs(){var s=this;return(0,m.Z)(function*(){const d=s.eventCenterS.collection.selectedCollections.value;if(!d.length)return void(yield s.resetGridAndUrl());s.loading.grid=!0,!s.isLPM&&!s.isDependentOnGroup&&(yield s.resetGridAndUrl()),s.supportedApiArr=(yield s.instanceS.instanceAPIList(d)).data,s.allTreeItemsMap=u.keyBy(s.supportedApiArr,M.iH._id);const _=u.groupBy(s.supportedApiArr,M.aV.collectionId),A=[];for(const l in _)A.push({field:M.aV.collectionId,value:l,children:_[l]});for(const l of A){const v=l.children[0],k=v.instanceName+":"+v.databaseName+":"+v.collectionName;if(l.name=l.value,l._id=k,l.level1=!0,l.isGroup=!0,l.instanceName=v.instanceName,l.category=v.category,l.instanceName=v.instanceName,l.databaseName=v.databaseName,l.collectionName=v.collectionName,l.children=l.children,s.isLPM)for(const V of l.children||[])V.level2=!0;s.allTreeItemsMap[l._id]=l;for(const V of l?.children||[])V.parent=l}for(const l of A)s.generalS.convertKTreeItemToPrimeNGTreeItem(l);if(s.isLPM&&s.eventCenterS.group.selectedGroups.value[0]?.queryParams?.supportedApiNames?.length){const l=s.eventCenterS.group.selectedGroups.value[0];for(const v of l?.queryParams?.supportedApiNames)s.allTreeItemsMap[v]&&(s.allTreeItemsMap[v].saveResponseInLog=l.supportedApiLog?.[v]?.saveResponseInLog||!1)}if(s.eventCenterS.group.supportedApiIds.value.length&&s.isDependentOnGroup){const l=u.intersection(u.keys(s.allTreeItemsMap),s.eventCenterS.group.supportedApiIds.value);s.generalS.setDataInSelectedRowsFromIdArr(l,s.selectedRows,s.allTreeItemsMap),s.eventCenterS.group.supportedApiIds.next(l)}if(s.eventCenterS.filterInLog.supportedApiIds.value.length&&s.isFilterLogTable){const l=u.intersection(u.keys(s.allTreeItemsMap),s.eventCenterS.filterInLog.supportedApiIds.value);s.generalS.setDataInSelectedRowsFromIdArr(l,s.selectedRows,s.allTreeItemsMap),s.eventCenterS.filterInLog.supportedApiIds.next(l),s.isFilterLogTable&&s.dbCellCommonS.extractNameAndSetForLogTable(l,s.allTreeItemsMap,"supportedApiNames","id")}s.setDataInEventCenter(),s.supportedApiGroups=A,s.loading.grid=!1,s.cd.detectChanges()})()}resetGridAndUrl(){var s=this;return(0,m.Z)(function*(){s.supportedApiGroups=[],s.supportedApiArr=[],s.allTreeItemsMap={},s.eventCenterS.group.supportedAPIs.next([]),s.eventCenterS.filterInLog.supportedAPIs.next([])})()}checkedChange(){var s=this;setTimeout((0,m.Z)(function*(){for(const d in s.allTreeItemsMap){const _=s.allTreeItemsMap[d];-1===s.selectedRows.indexOf(_)&&(_.saveResponseInLog=!1)}s.setDataInEventCenter(),s.cd.detectChanges()}),100)}setDataInEventCenter(){const s=this.selectedRows;this.isDependentOnGroup&&(this.eventCenterS.group.supportedAPIs.next(s),this.eventCenterS.group.selectedSupportedAPIs.next(s)),this.isFilterLogTable&&this.eventCenterS.filterInLog.supportedAPIs.next(s),this.isDependentOnGroup&&this.eventCenterS.group.supportedApiIds.next(u.map(this.selectedRows,"_id")),this.isFilterLogTable&&(this.eventCenterS.filterInLog.supportedApiIds.next(u.map(this.selectedRows,"_id")),this.dbCellCommonS.extractNameAndSetForLogTable(u.map(this.selectedRows,"_id"),this.allTreeItemsMap,"supportedApiNames","id"))}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}static \u0275fac=function(d){return new(d||c)(n.Y36(U.E),n.Y36(y.u),n.Y36(Z.L),n.Y36(W.m),n.Y36(B.b),n.Y36(n.sBO))};static \u0275cmp=n.Xpm({type:c,selectors:[["app-w-supported-api"]],inputs:{isLPM:"isLPM",isDependentOnGroup:"isDependentOnGroup",isFilterLogTable:"isFilterLogTable",treeViewId:"treeViewId"},decls:10,vars:3,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header"],[1,"fas","fa-stream","text-warning","fa-fw","mr-1"],["class","float-right cursor-pointer","tooltipPosition","left","pTooltip","All APIs",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],[1,"position-relative","border-top","h-100"],[4,"ngIf"],["class","h-100",4,"ngIf"],["tooltipPosition","left","pTooltip","All 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"],["scrollHeight","flex","selectionMode","checkbox",1,"w-full",3,"value","selection","metaKeySelection","selectionChange"],["pTemplate","default"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[1,"w-100","prevent-text-selection","cursor-pointer","pt-1","pb-1"],["class","float-right small mr-1",4,"ngIf"],["class","mt-1",4,"ngIf"],[1,"float-right","small","mr-1"],[1,"mt-1"],["label","Save Response In Log",3,"ngModel","binary","ngModelChange","click"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(d,_){1&d&&(n.TgZ(0,"div",0)(1,"div",1)(2,"span"),n._UZ(3,"i",2),n._uU(4," Supported APIs"),n.qZA(),n.YNc(5,H,3,2,"span",3),n.qZA(),n.TgZ(6,"div",4)(7,"div",5),n.YNc(8,j,3,1,"div",6),n.YNc(9,T,4,4,"div",7),n.qZA()()()),2&d&&(n.xp6(5),n.Q6J("ngIf",_.isDependentOnGroup),n.xp6(3),n.Q6J("ngIf",_.eventCenterS.group.apisRegex.allInstances||_.eventCenterS.filterInLog.apisRegex.allInstances||_.eventCenterS.group.apisRegex.allDatabases||_.eventCenterS.group.apisRegex.allCollections||_.eventCenterS.group.apisRegex.allInstanceApis),n.xp6(1),n.Q6J("ngIf",!(_.eventCenterS.group.apisRegex.allInstances||_.eventCenterS.filterInLog.apisRegex.allInstances||_.eventCenterS.group.apisRegex.allDatabases||_.eventCenterS.group.apisRegex.allCollections||_.eventCenterS.group.apisRegex.allInstanceApis)))},dependencies:[K.JJ,K.On,N.O5,w.jx,Y.mp,J.G,Q.u,F.XZ],encapsulation:2})}return c})()},1434:(G,S,a)=>{a.d(S,{B:()=>D});var m=a(7017),E=(a(356),a(4946));let D=(()=>{class e{static \u0275fac=function(y){return new(y||e)};static \u0275mod=E.oAB({type:e});static \u0275inj=E.cJS({imports:[m.u]})}return e})()},8651:(G,S,a)=>{a.d(S,{A:()=>re});var m=a(5861),u=a(6990),L=a(7672),M=a(5085),D=a(921),e=a(4946),n=a(5852),U=a(2915),y=a(7414),Z=a(7240),W=a(2559),B=a(7664),K=a(95),N=a(6814),w=a(5219),Y=a(1396),J=a(7680),Q=a(3259),F=a(8057);function H(r,g){if(1&r){const t=e.EpF();e.TgZ(0,"span",11)(1,"label",12)(2,"p-checkbox",13),e.NdJ("ngModelChange",function(p){e.CHM(t);const f=e.oxw();return e.KtG(f.eventCenterS.group.apisRegex.allThirdPartyApis=p)}),e.qZA()()()}if(2&r){const t=e.oxw();e.xp6(2),e.Q6J("ngModel",t.eventCenterS.group.apisRegex.allThirdPartyApis)("binary",!0)}}function j(r,g){if(1&r){const t=e.EpF();e.TgZ(0,"span",11)(1,"label",12)(2,"p-checkbox",13),e.NdJ("ngModelChange",function(p){e.CHM(t);const f=e.oxw();return e.KtG(f.eventCenterS.filterInLog.apisRegex.allThirdPartyApis=p)}),e.qZA()()()}if(2&r){const t=e.oxw();e.xp6(2),e.Q6J("ngModel",t.eventCenterS.filterInLog.apisRegex.allThirdPartyApis)("binary",!0)}}function I(r,g){if(1&r&&(e.TgZ(0,"div")(1,"div",14),e._uU(2),e.qZA()()),2&r){const t=e.oxw();e.xp6(2),e.Oqu(t.constantsS.group.allThirdPartyApisPermitted)}}function b(r,g){1&r&&(e.TgZ(0,"span"),e._uU(1,"[Public]"),e.qZA())}function o(r,g){if(1&r){const t=e.EpF();e.TgZ(0,"div",24)(1,"p-checkbox",25),e.NdJ("ngModelChange",function(p){e.CHM(t);const f=e.oxw().$implicit;return e.KtG(f.saveResponseInLog=p)})("click",function(p){e.CHM(t);const f=e.oxw(4);return e.KtG(f.generalS.stopPropagation(p))}),e.qZA()()}if(2&r){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngModel",t.saveResponseInLog)("binary",!0)}}function h(r,g){if(1&r&&(e.TgZ(0,"div",21)(1,"span"),e._uU(2),e.qZA(),e.TgZ(3,"span",22),e.YNc(4,b,2,0,"span",9),e.qZA(),e.YNc(5,o,2,2,"div",23),e.qZA()),2&r){const t=g.$implicit,i=e.oxw(3);e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Q6J("ngIf",t.apiAccessType===i.EAPIAccessType.IS_PUBLIC),e.xp6(1),e.Q6J("ngIf",t.level2&&i.isLPM&&i.selectedRows.indexOf(t)>=0)}}function T(r,g){if(1&r){const t=e.EpF();e.TgZ(0,"p-tree",19),e.NdJ("selectionChange",function(p){e.CHM(t);const f=e.oxw(2);return e.KtG(f.selectedRows=p)})("selectionChange",function(){e.CHM(t);const p=e.oxw(2);return e.KtG(p.checkedChange())}),e.YNc(1,h,6,3,"ng-template",20),e.qZA()}if(2&r){const t=e.oxw(2);e.Q6J("value",t.supportedApiListData)("selection",t.selectedRows)}}function O(r,g){if(1&r&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&r){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.name,"")}}function c(r,g){if(1&r&&(e.TgZ(0,"span",38),e._uU(1),e.qZA()),2&r){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.name)}}function x(r,g){if(1&r&&(e.TgZ(0,"span",39),e._uU(1),e.qZA()),2&r){const t=e.oxw().$implicit;e.xp6(1),e.hij(" [",t.path,"]")}}function s(r,g){1&r&&(e.TgZ(0,"span",40),e._uU(1,"[AM-User]"),e.qZA())}function d(r,g){1&r&&(e.TgZ(0,"span",41),e._uU(1,"No-Access"),e.qZA())}function _(r,g){1&r&&(e.TgZ(0,"span",42),e._uU(1,"[Public]"),e.qZA())}function A(r,g){1&r&&(e.TgZ(0,"span",43),e._uU(1,"[DB-User]"),e.qZA())}function l(r,g){1&r&&(e.TgZ(0,"span",43),e._uU(1,"[AWS]"),e.qZA())}function v(r,g){1&r&&(e.TgZ(0,"span",43),e._uU(1,"[Azure]"),e.qZA())}function k(r,g){1&r&&(e.TgZ(0,"span",43),e._uU(1,"[Google]"),e.qZA())}const V=function(){return["/api-info/api-testing/testing"]},$=function(r,g,t){return{at_category:"THIRD_PARTY_APIS",at_bundleName:r,at_apiVersion:g,at_api:t}};function X(r,g){if(1&r&&(e.TgZ(0,"span",3)(1,"a",44),e.NdJ("click",function(i){return i.stopPropagation()}),e._UZ(2,"i",45),e.qZA()()),2&r){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("routerLink",e.DdM(2,V))("queryParams",e.kEZ(3,$,t.bundleName,t.apiVersion,t._id))}}const z=function(){return{width:"55px"}};function q(r,g){if(1&r&&(e.TgZ(0,"span",46),e._UZ(1,"i",47),e.qZA()),2&r){const t=e.oxw().$implicit;e.Q6J("ngStyle",t.level1?"":e.DdM(1,z))}}function ee(r,g){1&r&&(e.TgZ(0,"span",48),e._uU(1,"[Public]"),e.qZA())}const te=function(r,g,t,i){return{get:r,put:g,post:t,delete:i}};function ne(r,g){if(1&r&&(e.TgZ(0,"div",27)(1,"span",28),e._uU(2),e.qZA(),e.YNc(3,O,2,1,"span",9),e.YNc(4,c,2,1,"span",29),e.YNc(5,x,2,1,"span",30),e.YNc(6,s,2,0,"span",31),e.YNc(7,d,2,0,"span",32),e.YNc(8,_,2,0,"span",33),e.YNc(9,A,2,0,"span",34),e.YNc(10,l,2,0,"span",34),e.YNc(11,v,2,0,"span",34),e.YNc(12,k,2,0,"span",34),e.YNc(13,X,3,7,"span",35),e.YNc(14,q,2,2,"span",36),e.TgZ(15,"span",22),e.YNc(16,ee,2,0,"span",37),e.qZA()()),2&r){const t=g.$implicit,i=e.oxw(3);e.xp6(1),e.Q6J("ngClass",e.l5B(15,te,t.requestMethod===i.ERequestMethod.GET,t.requestMethod===i.ERequestMethod.PUT,t.requestMethod===i.ERequestMethod.POST,t.requestMethod===i.ERequestMethod.DELETE)),e.xp6(1),e.hij("",t.requestMethod," "),e.xp6(1),e.Q6J("ngIf",!t.level1),e.xp6(1),e.Q6J("ngIf",t.level1),e.xp6(1),e.Q6J("ngIf",t.level2),e.xp6(1),e.Q6J("ngIf",t.level2&&t.hasAmAuth),e.xp6(1),e.Q6J("ngIf",t.level2&&t.noAccess),e.xp6(1),e.Q6J("ngIf",t.level2&&t.isPublic),e.xp6(1),e.Q6J("ngIf",t.level2&&t.hasAmDBAuth),e.xp6(1),e.Q6J("ngIf",t.level2&&t.hasAwsAuth),e.xp6(1),e.Q6J("ngIf",t.level2&&t.hasAzureAuth),e.xp6(1),e.Q6J("ngIf",t.level2&&t.hasGoogleAuth),e.xp6(1),e.Q6J("ngIf",t.level2),e.xp6(1),e.Q6J("ngIf",t.isThirdPartyAPISettings),e.xp6(2),e.Q6J("ngIf",t.apiAccessType===i.EAPIAccessType.IS_PUBLIC)}}function se(r,g){if(1&r){const t=e.EpF();e.TgZ(0,"p-tree",26),e.NdJ("selectionChange",function(p){e.CHM(t);const f=e.oxw(2);return e.KtG(f.selectedRows=p)})("selectionChange",function(){e.CHM(t);const p=e.oxw(2);return e.KtG(p.selectedKeysChange())}),e.YNc(1,ne,17,20,"ng-template",20),e.qZA()}if(2&r){const t=e.oxw(2);e.Q6J("value",t.supportedApiListData)("selection",t.selectedRows)}}function ie(r,g){1&r&&e._UZ(0,"p-progressSpinner",49)}function ae(r,g){if(1&r&&(e.TgZ(0,"div",15),e.YNc(1,T,2,2,"p-tree",16),e.YNc(2,se,2,2,"p-tree",17),e.YNc(3,ie,1,0,"p-progressSpinner",18),e.qZA()),2&r){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.isDependentOnGroup||t.isFilterLogTable),e.xp6(1),e.Q6J("ngIf",!t.isDependentOnGroup&&!t.isFilterLogTable),e.xp6(1),e.Q6J("ngIf",t.loading.grid)}}let re=(()=>{class r{authCS;eventCenterS;constantsS;generalS;cd;tpInstalledApisS;router;isDependentOnGroup=!1;isLPM=!1;isFilterLogTable=!1;ERequestMethod=L.Yp;EUserType=D.d;EAPIAccessType=L.di;loading={grid:!1};subscriptions=[];supportedApiListData=[];allTreeItemsMap={};allTreeItemsMapNameId={};selectedRows=[];key="_id";selectedItem;saveResponseInLog={};constructor(t,i,p,f,C,P,R){this.authCS=t,this.eventCenterS=i,this.constantsS=p,this.generalS=f,this.cd=C,this.tpInstalledApisS=P,this.router=R}ngOnInit(){var t=this;this.isDependentOnGroup&&this.subscriptions.push(this.eventCenterS.group.selectedGroups.subscribe(function(){var i=(0,m.Z)(function*(p){p.length&&setTimeout((0,m.Z)(function*(){yield t.loadThirdPartyAPIList(p[0])}),1e3)});return function(p){return i.apply(this,arguments)}}())),(this.isFilterLogTable||this.isLPM)&&this.subscriptions.push(this.eventCenterS.filterInLog.refreshGrid.subscribe(i=>{i&&this.loadThirdPartyAPIList().then()})),this.loadThirdPartyAPIList().then(),this.generalS.setNewTitle("API Maker - Third Party APIs")}loadThirdPartyAPIList(t){var i=this;return(0,m.Z)(function*(){const p=i.allTreeItemsMap||{};if(i.isDependentOnGroup&&!t)return void(yield i.resetGridAndUrl());i.loading.grid=!0,yield i.resetGridAndUrl();const f=(yield i.tpInstalledApisS.thirdPartyAPIKTree(i.isLPM).toPromise()).data;for(const C of f)i.generalS.convertKTreeItemToPrimeNGTreeItem(C);i.supportedApiListData=f,i.allTreeItemsMap={},i.allTreeItemsMapNameId={},i.getMapOfAllItems(i.allTreeItemsMap,i.supportedApiListData),i.allTreeItemsMapNameId={};for(const C of Object.keys(i.allTreeItemsMap)){const P=i.allTreeItemsMap[C],R=[];P.bundleName&&R.push(P.bundleName),P.apiVersion&&R.push(P.apiVersion),P.apiName&&R.push(P.apiName),P.nameId=R.join(":"),i.allTreeItemsMapNameId[P.nameId]=P}if(i.generalS.setIsExpandedStateFromOldMap(p,i.allTreeItemsMap),i.isDependentOnGroup)if(i.eventCenterS.group.thirdPartyApiIds&&i.eventCenterS.group.thirdPartyApiIds.value.length){const C=u.intersection(u.keys(i.allTreeItemsMap),i.eventCenterS.group.thirdPartyApiIds.value);i.eventCenterS.group.thirdPartyApiIds.next(C),i.generalS.setDataInSelectedRowsFromIdArr(C,i.selectedRows,i.allTreeItemsMap),i.setDataInEventCenter()}else i.selectedRows=[];if(i.isFilterLogTable)if(i.eventCenterS.filterInLog.thirdPartyApiIds&&i.eventCenterS.filterInLog.thirdPartyApiIds.value.length){const C=u.intersection(u.keys(i.allTreeItemsMap),i.eventCenterS.filterInLog.thirdPartyApiIds.value);i.eventCenterS.filterInLog.thirdPartyApiIds.next(C),i.generalS.setDataInSelectedRowsFromIdArr(C,i.selectedRows,i.allTreeItemsMap),i.setDataInEventCenter()}else i.selectedRows=[];if(i.isLPM&&i.eventCenterS.group.selectedGroups.value[0]?.queryParams?.thirdPartyApiNames?.length){const C=i.eventCenterS.group.selectedGroups.value[0];for(const P of C?.queryParams?.thirdPartyApiNames){const R=i.allTreeItemsMapNameId[P];R&&(R.saveResponseInLog=C.thirdPartyApisLog?.[P]?.saveResponseInLog||!1)}i.setDataInEventCenter()}i.loading.grid=!1,i.cd.detectChanges()})()}resetGridAndUrl(){var t=this;return(0,m.Z)(function*(){t.supportedApiListData=[],t.allTreeItemsMap={},t.allTreeItemsMapNameId={}})()}checkedChange(){var t=this;setTimeout((0,m.Z)(function*(){for(const i in t.allTreeItemsMap){const p=t.allTreeItemsMap[i];-1===t.selectedRows.indexOf(p)&&(p.saveResponseInLog=!1)}t.setDataInEventCenter(),t.cd.detectChanges()}),100)}selectedKeysChange(){if(this.selectedRows.length){const t=this.selectedRows[0];t?.bundleName&&this.generalS.setNewTitle(t.bundleName,M.R.THIRD_PARTY_APIS),this.eventCenterS.tpApiSettings.apiSelected.next(t)}}getMapOfAllItems(t,i){for(const p of i)if(t[p._id]=p,p.children&&p.children.length){for(const f of p.children)f.parent=p;this.getMapOfAllItems(t,p.children)}}setDataInEventCenter(){this.isDependentOnGroup&&(this.eventCenterS.group.thirdPartyAPIs.next(this.selectedRows),this.eventCenterS.group.selectedThirdPartyAPIs.next(this.selectedRows),this.eventCenterS.group.thirdPartyApiIds.next(this.getThirdPartyIdArr())),this.isFilterLogTable&&(this.eventCenterS.filterInLog.thirdPartyAPIs.next(this.selectedRows),this.eventCenterS.filterInLog.thirdPartyApiIds.next(this.getThirdPartyIdArr()))}getThirdPartyIdArr(){const t=[];for(const i of this.selectedRows){const p=i._id;this.generalS.isValidMongodbID(p)&&t.push(p)}return t}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}undefined=void 0;static \u0275fac=function(i){return new(i||r)(e.Y36(n.D),e.Y36(U.u),e.Y36(y.L),e.Y36(Z.b),e.Y36(e.sBO),e.Y36(W.d),e.Y36(B.F0))};static \u0275cmp=e.Xpm({type:r,selectors:[["app-w-supported-tp-api"]],inputs:{isDependentOnGroup:["IsDependentOnGroup","isDependentOnGroup"],isLPM:"isLPM",isFilterLogTable:"isFilterLogTable"},decls:14,vars:4,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header"],["src","/assets/images/icons/third-party.svg","alt","Third Party API",1,"fa-fw","mr-1"],[1,"float-right"],["href","https://docs.apimaker.dev/v1/docs/apis-all/thirdParty-apis/installed-third-party-api.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 Third Party APIs",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],[1,"position-relative","border-top","h-100"],[4,"ngIf"],["class","h-100",4,"ngIf"],["tooltipPosition","left","pTooltip","All Third Party APIs",1,"float-right","cursor-pointer"],[1,"align-middle","mb-0","mt--2px"],[3,"ngModel","binary","ngModelChange"],[1,"p-2","text-center","text-success"],[1,"h-100"],["class","w-full system-api-grid-height","scrollHeight","flex","selectionMode","checkbox",3,"value","selection","selectionChange",4,"ngIf"],["class","w-full","scrollHeight","calc(100vh - 94px)","selectionMode","multiple",3,"value","selection","selectionChange",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],["scrollHeight","flex","selectionMode","checkbox",1,"w-full","system-api-grid-height",3,"value","selection","selectionChange"],["pTemplate","default"],[1,"w-100","prevent-text-selection","cursor-pointer","pt-1","pb-1"],[1,"text-monospace","font-weight-bold","font-italic","float-right",2,"font-size","xx-small"],["class","mt-1",4,"ngIf"],[1,"mt-1"],["label","Save Response In Log",3,"ngModel","binary","ngModelChange","click"],["scrollHeight","calc(100vh - 94px)","selectionMode","multiple",1,"w-full",3,"value","selection","selectionChange"],[1,"w-100","prevent-text-selection","cursor-pointer"],["pTooltip","Request Type",1,"small","font-weight-bold","mr-1",3,"ngClass"],["pTooltip","API Name","class","mr-1",4,"ngIf"],["class","text-muted small","pTooltip","API Path",4,"ngIf"],["class","d-inline-block ml-1 small font-monospaced",4,"ngIf"],["class","d-inline-block ml-1 small font-monospaced text-success ml-2",4,"ngIf"],["class","d-inline-block ml-1 small font-monospaced text-warning",4,"ngIf"],["class","d-inline-block ml-1 small font-monospaced text-success",4,"ngIf"],["class","float-right",4,"ngIf"],["class","float-right",3,"ngStyle",4,"ngIf"],["class","public-class",4,"ngIf"],["pTooltip","API Name",1,"mr-1"],["pTooltip","API Path",1,"text-muted","small"],[1,"d-inline-block","ml-1","small","font-monospaced"],[1,"d-inline-block","ml-1","small","font-monospaced","text-success","ml-2"],[1,"d-inline-block","ml-1","small","font-monospaced","text-warning"],[1,"d-inline-block","ml-1","small","font-monospaced","text-success"],["href","javascript:","tooltipPosition","left","pTooltip","Test API",1,"btn","btn-xsm-custom","mr-3",3,"routerLink","queryParams","click"],[1,"fas","fa-vial","text-info","fa-fw","test-tube","pt-1"],[1,"float-right",3,"ngStyle"],[1,"fas","fa-cog","text-danger","fa-fw","mr-2"],[1,"public-class"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(i,p){1&i&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span"),e._UZ(3,"img",2),e._uU(4," Installed Third Party APIs"),e.qZA(),e.TgZ(5,"div",3)(6,"a",4),e._UZ(7,"img",5),e.qZA()(),e.YNc(8,H,3,2,"span",6),e.YNc(9,j,3,2,"span",6),e.qZA(),e.TgZ(10,"div",7)(11,"div",8),e.YNc(12,I,3,1,"div",9),e.YNc(13,ae,4,3,"div",10),e.qZA()()()),2&i&&(e.xp6(8),e.Q6J("ngIf",p.isDependentOnGroup),e.xp6(1),e.Q6J("ngIf",p.isFilterLogTable),e.xp6(3),e.Q6J("ngIf",p.eventCenterS.group.apisRegex.allThirdPartyApis||p.eventCenterS.filterInLog.apisRegex.allThirdPartyApis),e.xp6(1),e.Q6J("ngIf",!(p.eventCenterS.group.apisRegex.allThirdPartyApis||p.eventCenterS.filterInLog.apisRegex.allThirdPartyApis)))},dependencies:[K.JJ,K.On,N.mk,N.O5,N.PC,B.rH,w.jx,Y.mp,J.G,Q.u,F.XZ],styles:[".public-class{display:inline-block;padding-top:5px;padding-right:15px}.get{color:var(--accent-success)}.put{color:var(--brand-secondary)}.post{color:var(--accent-warning)}.delete{color:var(--accent-error)}\n"],encapsulation:2})}return r})()},7705:(G,S,a)=>{a.d(S,{L:()=>e});var m=a(7017),E=(a(8651),a(4946));let e=(()=>{class n{static \u0275fac=function(Z){return new(Z||n)};static \u0275mod=E.oAB({type:n});static \u0275inj=E.cJS({imports:[m.u]})}return n})()}}]);