@sava-info-systems/api-maker-with-extensions 2.2.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +5 -1
- package/Dockerfile +1 -35
- package/Dockerfile.base +22 -0
- package/Dockerfile.extended-base +44 -0
- package/dist/1025.5c34b11ab88519fd.js +1 -0
- package/dist/1097.3c5b2b4587cefa6e.js +1 -0
- package/dist/115.8d10b2b963e7d632.js +1 -0
- package/dist/148.f8f560a5f818328e.js +1 -0
- package/dist/1558.576af7585833e289.js +1 -0
- package/dist/1678.14f917ee37080d63.js +1 -0
- package/dist/1754.fc6d6e9f6c1e96d5.js +1 -0
- package/dist/1928.9c9375dd036b025a.js +1 -0
- package/dist/1957.b718aa368330b524.js +1 -0
- package/dist/2140.bb097d69bcb6a1e5.js +1 -0
- package/dist/2295.aa3514c8d1238cb2.js +1 -0
- package/dist/238.553f30dbe5124419.js +1 -0
- package/dist/2473.260a6b26a70eaa8d.js +1 -0
- package/dist/2579.b02fe6a8ba3a2e71.js +1 -0
- package/dist/2714.b41d14f7378785df.js +1 -0
- package/dist/2735.4046cae4c68ac75f.js +1 -0
- package/dist/292.bb85e0ea91dcc118.js +1 -0
- package/dist/3139.5dd9289cc24b4100.js +1 -0
- package/dist/3450.588aafa515b19133.js +1 -0
- package/dist/3664.ed1232e3c70195fc.js +1 -0
- package/dist/3752.d4e0a280a37c1426.js +1 -0
- package/dist/3rdpartylicenses.txt +1 -1
- package/dist/4110.b9ebfd9a7382c450.js +1 -0
- package/dist/4186.2fd0537d5bc6d882.js +1 -0
- package/dist/4211.b6b9f495b100e985.js +1 -0
- package/dist/4575.1fee055d10b57afc.js +1 -0
- package/dist/4842.ccf765ed3e9753a7.js +1 -0
- package/dist/485.7870367c9475fed8.js +1 -0
- package/dist/{4895.a54759704d1994b1.js → 4895.fa7b24d66157c531.js} +1 -1
- package/dist/5334.e0a2450fc295f659.js +1 -0
- package/dist/5421.2c2c0fbf926792db.js +1 -0
- package/dist/5434.0997994b319a866a.js +1 -0
- package/dist/5679.e362a3e10cb1b953.js +1 -0
- package/dist/5761.6c20b09245ac31ef.js +1 -0
- package/dist/5765.8d761aef1708e8a1.js +1 -0
- package/dist/6236.969b45cad747277c.js +1 -0
- package/dist/6393.1b7b097f17d75290.js +1 -0
- package/dist/6401.f18e3c98d6deaa22.js +1 -0
- package/dist/6650.05ea40acd68697c3.js +1 -0
- package/dist/7368.85d940d08fdca6e2.js +1 -0
- package/dist/7436.4a62f7ef13cffb21.js +1 -0
- package/dist/7470.d24359dc7a3ef75a.js +1 -0
- package/dist/7649.8e5ff8a951b474e0.js +1 -0
- package/dist/7975.d3d7064d527ac017.js +1 -0
- package/dist/7977.85b17bdb465e9a90.js +1 -0
- package/dist/7987.c1637bec96a9cc03.js +1 -0
- package/dist/8125.8390bc1b477ec6b9.js +1 -0
- package/dist/8266.0bf85311cf40ddff.js +1 -0
- package/dist/8296.fe54c3787977fad3.js +1 -0
- package/dist/885.7e1ec0f82adbdd6f.js +1 -0
- package/dist/891.fee03277c7f1c29d.js +1 -0
- package/dist/{913.4580b4ce4307a40f.js → 913.e49eb351997bc25c.js} +1 -1
- package/dist/9243.eaa2c312b42fc4b3.js +1 -0
- package/dist/9575.8404e98d640fd9f9.js +1 -0
- package/dist/9939.537c5e355804804b.js +1 -0
- package/dist/assets/images/icons/api-group-light.svg +11 -0
- package/dist/assets/images/icons/api-group.svg +5 -5
- package/dist/assets/images/icons/api-maker-deployment-light.svg +5 -0
- package/dist/assets/images/icons/api-maker-deployment.svg +3 -3
- package/dist/assets/images/icons/api-user-light.svg +12 -0
- package/dist/assets/images/icons/api-user.svg +2 -2
- package/dist/assets/images/icons/comparator-light.svg +61 -0
- package/dist/assets/images/icons/comparator.svg +2 -2
- package/dist/assets/images/icons/custom-light.svg +6 -0
- package/dist/assets/images/icons/custom.svg +5 -5
- package/dist/assets/images/icons/database-light.svg +29 -0
- package/dist/assets/images/icons/database.svg +6 -6
- package/dist/assets/images/icons/db-m-light.svg +10 -0
- package/dist/assets/images/icons/db-m.svg +4 -4
- package/dist/assets/images/icons/db-token-generator-light.svg +4 -0
- package/dist/assets/images/icons/db-token-generator.svg +4 -0
- package/dist/assets/images/icons/dev-light.svg +13 -0
- package/dist/assets/images/icons/dev.svg +4 -4
- package/dist/assets/images/icons/diagram-light.svg +28 -0
- package/dist/assets/images/icons/diagram.svg +9 -9
- package/dist/assets/images/icons/event-light.svg +16 -0
- package/dist/assets/images/icons/event.svg +4 -4
- package/dist/assets/images/icons/film-movies-icon.svg +3 -3
- package/dist/assets/images/icons/finder-light.svg +14 -0
- package/dist/assets/images/icons/finder.svg +3 -3
- package/dist/assets/images/icons/i18n-light.svg +11 -0
- package/dist/assets/images/icons/i18n.svg +6 -6
- package/dist/assets/images/icons/increment-light.svg +5 -0
- package/dist/assets/images/icons/increment.svg +2 -2
- package/dist/assets/images/icons/license-light.svg +6 -0
- package/dist/assets/images/icons/license.svg +4 -4
- package/dist/assets/images/icons/log-light.svg +17 -0
- package/dist/assets/images/icons/log-profile-light.svg +23 -0
- package/dist/assets/images/icons/log-profile.svg +7 -7
- package/dist/assets/images/icons/log.svg +6 -6
- package/dist/assets/images/icons/masters.svg +3 -3
- package/dist/assets/images/icons/native-process-logs-light.svg +13 -0
- package/dist/assets/images/icons/native-process-logs.svg +6 -6
- package/dist/assets/images/icons/nodes-light.svg +5 -0
- package/dist/assets/images/icons/nodes.svg +2 -2
- package/dist/assets/images/icons/notes-light.svg +16 -0
- package/dist/assets/images/icons/notes.svg +2 -2
- package/dist/assets/images/icons/process_initializers-light.svg +20 -0
- package/dist/assets/images/icons/process_initializers.svg +7 -7
- package/dist/assets/images/icons/rsa_encryption-light.svg +6 -0
- package/dist/assets/images/icons/rsa_encryption.svg +2 -2
- package/dist/assets/images/icons/sandbox-light.svg +11 -0
- package/dist/assets/images/icons/sandbox.svg +2 -2
- package/dist/assets/images/icons/scanning-period-light.svg +13 -0
- package/dist/assets/images/icons/scanning-period.svg +4 -4
- package/dist/assets/images/icons/schedulers-light.svg +8 -0
- package/dist/assets/images/icons/schedulers.svg +5 -5
- package/dist/assets/images/icons/secret-light.svg +15 -0
- package/dist/assets/images/icons/secret.svg +2 -2
- package/dist/assets/images/icons/swagger-logo-light.svg +9 -0
- package/dist/assets/images/icons/swagger-logo.svg +2 -2
- package/dist/assets/images/icons/systems-light.svg +8 -0
- package/dist/assets/images/icons/systems.svg +3 -3
- package/dist/assets/images/icons/testing-light.svg +12 -0
- package/dist/assets/images/icons/testing.svg +6 -6
- package/dist/assets/images/icons/third-party-light.svg +19 -0
- package/dist/assets/images/icons/third-party.svg +4 -4
- package/dist/assets/images/icons/typescript-light.svg +12 -0
- package/dist/assets/images/icons/typescript.svg +2 -2
- package/dist/assets/images/icons/ui-maker-light.svg +23 -0
- package/dist/assets/images/icons/ui-maker.svg +10 -10
- package/dist/assets/images/icons/utility-light.svg +19 -0
- package/dist/assets/images/icons/utility.svg +2 -2
- package/dist/assets/images/icons/vulnerability-light.svg +20 -0
- package/dist/assets/images/icons/vulnerability.svg +5 -5
- package/dist/assets/images/icons/web-light.svg +16 -0
- package/dist/assets/images/icons/web.svg +3 -3
- package/dist/assets/images/logo/api_maker_logo_dark.svg +29 -0
- package/dist/assets/images/logo/api_maker_logo_full_white.svg +29 -0
- package/dist/assets/images/logo/api_maker_logo_light.svg +22 -0
- package/dist/assets/images/logo/apple-touch-icon.png +0 -0
- package/dist/assets/images/logo/favicon-192x192.png +0 -0
- package/dist/assets/images/logo/favicon-32x32.png +0 -0
- package/dist/assets/images/logo/favicon-512x512.png +0 -0
- package/dist/assets/images/logo/logo_docs-light.svg +15 -0
- package/dist/assets/images/logo/logo_docs.svg +3 -3
- package/dist/assets/images/logo/logo_store-light.svg +17 -0
- package/dist/assets/images/logo/logo_store.svg +3 -3
- package/dist/assets/images/logo/store_logo-dark.svg +11 -0
- package/dist/assets/images/logo/store_logo-light.svg +11 -0
- package/dist/assets/images/logo/store_logo.svg +2 -2
- package/dist/assets/primeng-theme/primeng-theme-overrides.scss +1426 -31
- package/dist/assets/public/diagram-viewer/data.json +1886 -0
- package/dist/assets/public/diagram-viewer/index.html +1228 -0
- package/dist/assets/public/diagram-viewer/index.js +1 -0
- package/dist/assets/public/monaco-editor/index.html +105 -9
- package/dist/assets/public/monaco-editor/index.js +1 -1
- package/dist/assets/public/table-viewer/index.html +738 -0
- package/dist/assets/public/table-viewer/index.js +1 -0
- package/dist/assets/schema-types/InterfaceProps.ts +71 -13
- package/dist/assets/schema-types/store-types.ts +2 -0
- package/dist/assets/schema-types/types.ts +65 -17
- package/dist/assets/styles/bootstrap-overrides.scss +170 -7
- package/dist/assets/styles/colors-dark.scss +320 -33
- package/dist/assets/styles/colors-light.scss +453 -9
- package/dist/assets/styles/out/styles.css.map +1 -1
- package/dist/assets/styles/styles.scss +286 -15
- package/dist/assets/styles/variables.scss +2 -2
- package/dist/bootstrap-overrides.css +1 -0
- package/dist/colors-dark.css +1 -0
- package/dist/colors-light.css +1 -0
- package/dist/{common.912ad7a22e5de63a.js → common.86c514055f788290.js} +1 -1
- package/dist/index.html +111 -27
- package/dist/main.0ac98a72f1b9c1dd.js +1 -0
- package/dist/runtime.0e9fc303007ced09.js +1 -0
- package/dist/styles-global.css +1 -0
- package/dist/{styles.242217e145c3f7ab.css → styles.c1032bc4f4d7829b.css} +1 -1
- package/main.js +1 -1
- package/package-sandbox.json +1 -1
- package/package.json +9 -9
- package/pnpm-workspace.yaml +15 -0
- package/sandbox.js +1 -1
- package/src/assets/schema-types/store-types.ts +2 -0
- package/src/assets/schema-types/types.ts +65 -17
- package/src/schema-types/store-types.js +2 -0
- package/src/schema-types/types.js +1 -0
- package/src/tools/.github/copilot-instructions.md +17 -9
- package/src/tools/local-client.js +1 -1
- package/dist/1025.a0db9347453600d0.js +0 -1
- package/dist/1097.d0d6fd13031aa1f0.js +0 -1
- package/dist/148.1dc7d9e0cfe45510.js +0 -1
- package/dist/1558.0aae3e5c538d3815.js +0 -1
- package/dist/1678.ed1e4a269e0f42bc.js +0 -1
- package/dist/1754.691f142aa1eabe28.js +0 -1
- package/dist/1928.2b376f7cf66ed038.js +0 -1
- package/dist/1957.ab7fda21d9978597.js +0 -1
- package/dist/2140.1ce150285aebe3cc.js +0 -1
- package/dist/2295.4fa1d4b5ff482f3a.js +0 -1
- package/dist/238.891233aa670bdd2b.js +0 -1
- package/dist/2473.4b2bb1ad5b1cc99d.js +0 -1
- package/dist/2579.6558b67b2d98f116.js +0 -1
- package/dist/2714.0d6939336a02dd0a.js +0 -1
- package/dist/2735.86437a8639a0c1bb.js +0 -1
- package/dist/292.c7c794ff29abbe37.js +0 -1
- package/dist/3139.0921102d181c220d.js +0 -1
- package/dist/3450.9b5cfc83039b02b5.js +0 -1
- package/dist/3664.4a1dd7f16f8b57fb.js +0 -1
- package/dist/4110.d108e786ecbdfd1b.js +0 -1
- package/dist/4186.ac3e8af0efeeac14.js +0 -1
- package/dist/4211.1bfe72ce0b7b2f76.js +0 -1
- package/dist/443.7e3946651373e09a.js +0 -1
- package/dist/4575.6ad36e53bd72fb6f.js +0 -1
- package/dist/4842.e7649d81606ad80d.js +0 -1
- package/dist/485.b546656b466cb8a4.js +0 -1
- package/dist/5334.72c1c6d89fdf136e.js +0 -1
- package/dist/5421.2067001c10533303.js +0 -1
- package/dist/5679.4e22239895c7f520.js +0 -1
- package/dist/5761.331ca41ab64cca92.js +0 -1
- package/dist/5765.2b640be5d177d794.js +0 -1
- package/dist/6236.6c0fc469f0c96549.js +0 -1
- package/dist/6393.173ecdfc3b022973.js +0 -1
- package/dist/6401.374823002788afe7.js +0 -1
- package/dist/6650.1d18ee25901d68be.js +0 -1
- package/dist/7368.9ebf62d518f8ad7a.js +0 -1
- package/dist/7436.640bf5fe48814cbe.js +0 -1
- package/dist/7470.b1ce7eedb9cedb2d.js +0 -1
- package/dist/7649.ab4744cfe713eec0.js +0 -1
- package/dist/7975.578a00ebd1160a1e.js +0 -1
- package/dist/7977.afeded970bac8b66.js +0 -1
- package/dist/7987.5958ad5b81873058.js +0 -1
- package/dist/8125.b2f908096882ed45.js +0 -1
- package/dist/8266.aca59a0a04590ab1.js +0 -1
- package/dist/8296.a387c28f5702c5e8.js +0 -1
- package/dist/885.be44d92efca1aaf6.js +0 -1
- package/dist/891.5e08c81e5200413e.js +0 -1
- package/dist/9243.08630ad94e1fddba.js +0 -1
- package/dist/9575.30ac91b65602c0ca.js +0 -1
- package/dist/9939.4b0d758462bcc042.js +0 -1
- package/dist/assets/images/logo/API Maker Logo 2021 black.svg +0 -47
- package/dist/assets/images/logo/API Maker Logo 2021.svg +0 -49
- package/dist/assets/images/logo/logo.svg +0 -41
- package/dist/assets/styles/out/bootstrap-overrides.css +0 -2
- package/dist/assets/styles/out/colors-dark.css +0 -2
- package/dist/assets/styles/out/colors-light.css +0 -2
- package/dist/assets/styles/out/monaco-editor-overrides.css +0 -2
- package/dist/assets/styles/out/styles.css +0 -2
- package/dist/assets/styles/out/variables.css +0 -2
- package/dist/favicon.ico +0 -0
- package/dist/main.d3c81428418939dc.js +0 -1
- package/dist/runtime.2f0f434d4763c970.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[6650],{86650:(L,p,t)=>{t.r(p),t.d(p,{DeployApiMakerM:()=>w});var u=t(77664),c=t(73752),m=t(17017),b=t(63726),s=t(15861),y=t(38727),g=t(20553),e=t(94946),x=t(53429),M=t(99961),C=t(77240),P=t(81344),v=t(84795),O=t(51774),f=t(60095),_=t(96814),T=t(32660),I=t(97680),k=t(53965),A=t(66651);function S(l,G){if(1&l&&(e.TgZ(0,"div",24)(1,"div",25),e._UZ(2,"p-progressSpinner",26),e.TgZ(3,"div",27),e._uU(4,"Installing\u2026 the system will restart automatically when finished."),e.qZA(),e._UZ(5,"p-progressBar",28),e.qZA()()),2&l){const o=e.oxw();e.xp6(5),e.Q6J("value",o.progressValue)}}const Z=function(){return{width:"100%"}},U=[{path:"",component:(()=>{class l{instanceS;ns;generalS;feStoreCS;authS;themeS;loading={grid:!1};uploadedFiles=[];tarFile;uploadTarURL;version="";versions=[];selectedVersion;STORE_BE_HOST_PORT=g.N.STORE_BE_HOST_PORT;progressValue=0;intervalRef;constructor(o,a,n,r,i,d){this.instanceS=o,this.ns=a,this.generalS=n,this.feStoreCS=r,this.authS=i,this.themeS=d}icon(o){return this.themeS.theme.value===y.K.LIGHT&&o.endsWith(".svg")?o.replace(/\.svg$/,"-light.svg"):o}ngOnInit(){this.version=g.N.VERSION,this.uploadTarURL=this.instanceS.deployAPIMakerURLString(),this.loadAPIMakerVersions().then(),this.generalS.setNewTitle("Deploy"),this.startIncrementInterval()}startIncrementInterval(){this.intervalRef=setInterval(()=>{this.progressValue++},2500)}onUploadSuccess(){var o=this;return(0,s.Z)(function*(){o.ns.showSuccess("Your API Maker bundle uploaded successfully. System will restart"),yield o.instanceS.restartAPICallAndUILoadingAndReloadPage(),o.loading.grid=!1})()}onBeforeUpload(){this.loading.grid=!0,this.progressValue=0}onUploadError(){this.loading.grid=!1,this.ns.showError("File upload failed!")}tarFileSelected(o){var a=this;return(0,s.Z)(function*(){a.tarFile=o.currentFiles[0],a.ns.showInfo("Click on upload button to start deployment.")})()}loadAPIMakerVersions(){var o=this;return(0,s.Z)(function*(){let a="@sava-info-systems/api-maker";o.authS.backendSettings?.extensions&&(a="@sava-info-systems/api-maker-with-extensions");try{const n=yield o.feStoreCS.getNpmPackageVersions(o.STORE_BE_HOST_PORT,a);n.success?o.versions=n.data.map(r=>({name:r})).reverse():o.ns.showError(n.message)}catch(n){o.ns.showErrorFromResponse(n.error||n,"Unable to get list of API Maker versions.")}})()}deployAPIMakerVersionFromNPM(){var o=this;return(0,s.Z)(function*(){if(!o.selectedVersion)return void o.ns.showError("Please selection version to deploy");const a=o.selectedVersion.name;o.loading.grid=!0,o.progressValue=0;let n=`https://registry.npmjs.org/@sava-info-systems/api-maker/-/api-maker-${a}.tgz`;o.authS.backendSettings?.extensions&&(n=`https://registry.npmjs.org/@sava-info-systems/api-maker-with-extensions/-/api-maker-with-extensions-${a}.tgz`);try{const r=yield o.instanceS.deployAPIMakerAPICall({tarPath:n});let i;if(r.success){const d=r.data;for(const h of d)if(h.error){i=h.error.message;break}i?o.ns.showError(i):(o.ns.showSuccess("Your API Maker bundle uploaded successfully. System will restart"),yield o.instanceS.restartAPICallAndUILoadingAndReloadPage())}}catch(r){o.ns.showErrorFromResponse(r.error||r,"Unable to install API Maker version "+a)}o.loading.grid=!1})()}ngOnDestroy(){clearInterval(this.intervalRef)}static \u0275fac=function(a){return new(a||l)(e.Y36(x.E),e.Y36(M.W),e.Y36(C.b),e.Y36(P.e),e.Y36(v.e),e.Y36(O.Y))};static \u0275cmp=e.Xpm({type:l,selectors:[["app-deploy-api-maker"]],decls:48,vars:15,consts:[[1,"deploy-page"],[1,"deploy-header"],["alt","Deploy API Maker",1,"deploy-header-icon",3,"src"],[1,"deploy-title"],["title","Currently installed version",1,"version-badge"],[1,"fas","fa-check-circle","mr-1"],[1,"deploy-methods"],[1,"deploy-card"],[1,"deploy-card-head"],[1,"deploy-card-badge"],[1,"fas","fa-file-archive"],[1,"deploy-card-title"],[1,"deploy-card-sub"],[1,"deploy-card-body"],["name","files","styleClass","am-fileupload","chooseIcon","pi pi-upload","accept",".tgz,.gz,.tar.gz","maxFileSize","100000000","chooseLabel","Select .tgz file",3,"id","url","multiple","disabled","onBeforeUpload","onUpload","onError","onSelect"],[1,"deploy-card-hint"],[1,"fas","fa-info-circle","mr-1"],[1,"deploy-or"],[1,"fab","fa-npm"],[1,"deploy-npm-row"],["appendTo","body","styleClass","am-version-dropdown","optionLabel","name","filterBy","name","placeholder","Select a version",3,"options","ngModel","filter","disabled","ngModelChange"],["sava-no-dbl-click","","type","button",1,"btn","btn-deploy",3,"disabled","click"],[1,"fas","fa-cloud-download-alt","mr-1"],["class","deploy-progress",4,"ngIf"],[1,"deploy-progress"],[1,"deploy-progress-inner"],["styleClass","deploy-spinner","strokeWidth","4","animationDuration",".8s"],[1,"deploy-progress-label"],["color","#00893F",3,"value"]],template:function(a,n){1&a&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"img",2),e.TgZ(3,"h3",3),e._uU(4,"Deploy API Maker"),e.qZA(),e.TgZ(5,"span",4),e._UZ(6,"i",5),e._uU(7),e.qZA()(),e.TgZ(8,"div",6)(9,"div",7)(10,"div",8)(11,"span",9),e._UZ(12,"i",10),e.qZA(),e.TgZ(13,"div")(14,"div",11),e._uU(15,"Upload a bundle"),e.qZA(),e.TgZ(16,"div",12),e._uU(17,"Install from a local API Maker "),e.TgZ(18,"code"),e._uU(19,".tgz"),e.qZA(),e._uU(20," file."),e.qZA()()(),e.TgZ(21,"div",13)(22,"p-fileUpload",14),e.NdJ("onBeforeUpload",function(){return n.onBeforeUpload()})("onUpload",function(){return n.onUploadSuccess()})("onError",function(){return n.onUploadError()})("onSelect",function(i){return n.tarFileSelected(i)}),e.qZA(),e.TgZ(23,"div",15),e._UZ(24,"i",16),e._uU(25," Max size 100\xa0MB \xb7 formats: .tgz, .tar.gz"),e.qZA()()(),e.TgZ(26,"div",17)(27,"span"),e._uU(28,"OR"),e.qZA()(),e.TgZ(29,"div",7)(30,"div",8)(31,"span",9),e._UZ(32,"i",18),e.qZA(),e.TgZ(33,"div")(34,"div",11),e._uU(35,"Deploy from NPM"),e.qZA(),e.TgZ(36,"div",12),e._uU(37,"Pick a published version to install."),e.qZA()()(),e.TgZ(38,"div",13)(39,"div",19)(40,"p-dropdown",20),e.NdJ("ngModelChange",function(i){return n.selectedVersion=i}),e.qZA(),e.TgZ(41,"button",21),e.NdJ("click",function(){return n.deployAPIMakerVersionFromNPM()}),e._UZ(42,"i",22),e._uU(43," Deploy "),e.qZA()(),e.TgZ(44,"div",15),e._UZ(45,"i",16),e._uU(46," Installs from the official npm registry."),e.qZA()()()(),e.YNc(47,S,6,1,"div",23),e.qZA()),2&a&&(e.xp6(2),e.Q6J("src",n.icon("/assets/images/icons/api-maker-deployment.svg"),e.LSH),e.xp6(5),e.hij(" Current Version: ",n.version," "),e.xp6(15),e.Q6J("id","id_api_maker_deploy_file_upload")("url",n.uploadTarURL)("multiple",!1)("disabled",n.loading.grid),e.xp6(18),e.Akn(e.DdM(14,Z)),e.Q6J("options",n.versions)("ngModel",n.selectedVersion)("filter",!0)("disabled",n.loading.grid),e.xp6(1),e.Q6J("disabled",n.loading.grid||!n.selectedVersion),e.xp6(6),e.Q6J("ngIf",n.loading.grid))},dependencies:[f.JJ,f.On,_.O5,T.y,I.G,k.Lt,c.p,A.k],styles:["[_nghost-%COMP%]{display:block;min-height:calc(100vh - 44px)}.deploy-page[_ngcontent-%COMP%]{min-height:calc(100vh - 44px);display:flex;flex-direction:column;justify-content:center;max-width:920px;margin:0 auto;padding:40px 20px 56px}.deploy-header[_ngcontent-%COMP%]{text-align:center;margin-bottom:30px}.deploy-header-icon[_ngcontent-%COMP%]{height:52px;margin-bottom:8px;filter:drop-shadow(0 2px 6px rgba(12,83,164,.25))}.deploy-title[_ngcontent-%COMP%]{font-weight:600;font-size:26px;margin:0 0 12px;color:#5aa9f2;text-shadow:0 1px 3px rgba(0,0,0,.4);letter-spacing:.2px}.version-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;font-size:13px;font-weight:500;padding:4px 12px;border-radius:999px;color:#d7e6c9;background:rgba(0,137,63,.16);border:1px solid rgba(0,137,63,.4)}.version-badge[_ngcontent-%COMP%] .fa-check-circle[_ngcontent-%COMP%]{color:#3dbe79}.deploy-methods[_ngcontent-%COMP%]{display:flex;align-items:stretch;gap:0;flex-wrap:wrap}.deploy-card[_ngcontent-%COMP%]{flex:1 1 0;min-width:280px;display:flex;flex-direction:column;border-radius:14px;padding:20px;border:1px solid transparent;background-image:linear-gradient(#141c29,#141c29),linear-gradient(150deg,#245f9f 0%,#15527f 45%,#155b41 100%);background-origin:border-box;background-clip:padding-box,border-box;box-shadow:inset 0 1px #ffffff0d,0 4px 16px #00000059;transition:transform .15s ease,box-shadow .15s ease}.deploy-card[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:inset 0 1px #ffffff14,0 8px 22px #0c53a44d,0 2px 10px #00893f33}.deploy-card-head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:16px}.deploy-card-badge[_ngcontent-%COMP%]{width:44px;height:44px;flex:0 0 44px;display:inline-flex;align-items:center;justify-content:center;border-radius:11px;font-size:20px;color:#fff;background:linear-gradient(135deg,#0C53A4 0%,#0a6a5f 50%,#00893F 100%);box-shadow:0 2px 8px #0c53a459}.deploy-card-title[_ngcontent-%COMP%]{font-size:16px;font-weight:600;color:#eef3fa;line-height:1.2}.deploy-card-sub[_ngcontent-%COMP%]{font-size:12.5px;color:#9fb3cc;margin-top:2px}.deploy-card-sub[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{color:#8fd0ff;background:rgba(97,175,239,.12);padding:0 4px;border-radius:4px;font-size:11.5px}.deploy-card-body[_ngcontent-%COMP%]{margin-top:auto;display:flex;flex-direction:column;gap:12px}.deploy-card-hint[_ngcontent-%COMP%]{font-size:11.5px;color:#7e90a8}.deploy-or[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;position:relative;flex:0 0 64px}.deploy-or[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;font-weight:700;letter-spacing:1px;color:#9fb3cc;width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:rgba(20,28,41,.9);border:1px solid rgba(97,175,239,.3)}.deploy-npm-row[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:stretch}.btn-deploy[_ngcontent-%COMP%]{flex:0 0 auto;display:inline-flex;align-items:center;font-weight:600;font-size:13px;color:#fff;border:none;border-radius:4px;padding:0 16px;background:linear-gradient(135deg,#0C53A4 0%,#00893F 100%);box-shadow:0 2px 8px #0c53a44d;transition:filter .15s ease,transform .1s ease}.btn-deploy[_ngcontent-%COMP%]:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-1px)}.btn-deploy[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.deploy-progress[_ngcontent-%COMP%]{margin-top:34px;display:flex;justify-content:center}.deploy-progress-inner[_ngcontent-%COMP%]{width:70%;max-width:560px;text-align:center}.deploy-progress-label[_ngcontent-%COMP%]{margin:14px 0 10px;color:#cdd9e8;font-size:14px} .am-fileupload .p-fileupload-buttonbar{background:transparent!important;border:none!important;padding:0!important;gap:8px} .am-fileupload .p-fileupload-content{background:rgba(255,255,255,.02)!important;border:1px dashed rgba(97,175,239,.3)!important;border-radius:10px!important;padding:12px!important;margin-top:10px} .am-fileupload .p-button.p-fileupload-choose{background:linear-gradient(135deg,#0C53A4 0%,#00893F 100%)!important;border:none!important;border-radius:4px!important;font-weight:600!important;box-shadow:0 2px 8px #0c53a44d} .am-fileupload .p-button.p-fileupload-choose:hover{filter:brightness(1.08)} .am-fileupload .p-fileupload-buttonbar .p-button:not(.p-fileupload-choose){background:transparent!important;color:#cdd9e8!important;border:1px solid rgba(159,179,204,.4)!important;border-radius:4px!important} .am-fileupload .p-fileupload-buttonbar .p-button:not(.p-fileupload-choose):not(:disabled):hover{background:rgba(255,255,255,.06)!important} .am-fileupload .p-fileupload-buttonbar .p-button.p-disabled{opacity:.45} .am-version-dropdown{flex:1 1 auto} .am-version-dropdown.p-dropdown{width:100%!important;border-radius:8px;border:1px solid rgba(97,175,239,.3)} .deploy-spinner .p-progress-spinner-circle{stroke:#0c53a4}html.LIGHT[_nghost-%COMP%] .deploy-title[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .deploy-title[_ngcontent-%COMP%]{color:#0c53a4;text-shadow:none}html.LIGHT[_nghost-%COMP%] .version-badge[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .version-badge[_ngcontent-%COMP%]{color:#1d6b3a;background:rgba(0,137,63,.1);border-color:#00893f4d}html.LIGHT[_nghost-%COMP%] .deploy-card[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .deploy-card[_ngcontent-%COMP%]{background-image:linear-gradient(#ffffff,#ffffff),linear-gradient(150deg,#2a73c4 0%,#1d8a6a 100%);box-shadow:inset 0 1px #fff9,0 4px 16px #0c1e3c14}html.LIGHT[_nghost-%COMP%] .deploy-card[_ngcontent-%COMP%]:hover, html.LIGHT [_nghost-%COMP%] .deploy-card[_ngcontent-%COMP%]:hover{box-shadow:0 8px 22px #0c53a42e,0 2px 10px #00893f1a}html.LIGHT[_nghost-%COMP%] .deploy-card-title[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .deploy-card-title[_ngcontent-%COMP%]{color:#1f2b38}html.LIGHT[_nghost-%COMP%] .deploy-card-sub[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .deploy-card-sub[_ngcontent-%COMP%]{color:#5a6a82}html.LIGHT[_nghost-%COMP%] .deploy-card-sub[_ngcontent-%COMP%] code[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .deploy-card-sub[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{color:#0c53a4;background:rgba(12,83,164,.08)}html.LIGHT[_nghost-%COMP%] .deploy-card-hint[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .deploy-card-hint[_ngcontent-%COMP%]{color:#8a98ab}html.LIGHT[_nghost-%COMP%] .deploy-or[_ngcontent-%COMP%] span[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .deploy-or[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#5a6a82;background:#ffffff;border-color:#0c53a440}html.LIGHT[_nghost-%COMP%] .deploy-progress-label[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .deploy-progress-label[_ngcontent-%COMP%]{color:#46556a}html.LIGHT[_nghost-%COMP%] .am-fileupload .p-fileupload-content, html.LIGHT [_nghost-%COMP%] .am-fileupload .p-fileupload-content{background:rgba(12,83,164,.02)!important;border-color:#0c53a440!important}html.LIGHT[_nghost-%COMP%] .am-fileupload .p-fileupload-buttonbar .p-button:not(.p-fileupload-choose), html.LIGHT [_nghost-%COMP%] .am-fileupload .p-fileupload-buttonbar .p-button:not(.p-fileupload-choose){background:#ffffff!important;color:#0c53a4!important;border:1px solid rgba(12,83,164,.4)!important}html.LIGHT[_nghost-%COMP%] .am-fileupload .p-fileupload-buttonbar .p-button:not(.p-fileupload-choose):not(:disabled):hover, html.LIGHT [_nghost-%COMP%] .am-fileupload .p-fileupload-buttonbar .p-button:not(.p-fileupload-choose):not(:disabled):hover{background:rgba(12,83,164,.08)!important;border-color:#0c53a48c!important;color:#0c53a4!important}html.LIGHT[_nghost-%COMP%] .am-fileupload .p-fileupload-buttonbar .p-button.p-disabled, html.LIGHT [_nghost-%COMP%] .am-fileupload .p-fileupload-buttonbar .p-button.p-disabled{opacity:1!important;background:transparent!important;background-image:none!important;color:#9aa6b5!important;border-color:#0c53a42e!important;box-shadow:none!important}"]})}return l})(),canActivate:[b.P]}];let w=(()=>{class l{static \u0275fac=function(a){return new(a||l)};static \u0275mod=e.oAB({type:l});static \u0275inj=e.cJS({imports:[u.Bz.forChild(U),m.u,c.O]})}return l})()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[7368],{67368:(be,S,s)=>{s.r(S),s.d(S,{SandboxSettingsM:()=>fe});var O=s(77664),k=s(63726),D=s(17017),y=s(70292),r=s(15861),e=s(94946),f=s(6990),h=s(33157),c=s(90328),M=s(51162),x=s(20553),U=s(54371),v=s(95852),b=s(33835),Z=s(25405),T=s(99961),g=s(85219),w=s(27414),I=s(45809),P=s(24977),E=s(53429),N=s(81344),J=s(77240),p=s(60095),_=s(96814),R=s(38147),G=s(91861),B=s(756),u=s(95431),q=s(97680),C=s(14844),A=s(33259),K=s(32660);function H(a,d){1&a&&(e.TgZ(0,"tr")(1,"th"),e._uU(2,"Name"),e.qZA(),e.TgZ(3,"th",28),e._uU(4,"Action"),e.qZA()())}function F(a,d){if(1&a){const t=e.EpF();e.TgZ(0,"div",31)(1,"button",32),e.NdJ("click",function(i){e.CHM(t);const o=e.oxw().$implicit,l=e.oxw();return e.KtG(l.editAllowedOrigin(i,o))}),e._UZ(2,"i",33),e.qZA(),e.TgZ(3,"button",34),e.NdJ("click",function(i){e.CHM(t);const o=e.oxw().$implicit,l=e.oxw();return e.KtG(l.removeAllowedOrigin(i,o))}),e._UZ(4,"i",35),e.qZA()()}}function Y(a,d){if(1&a&&(e.TgZ(0,"tr",29)(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e.YNc(4,F,5,0,"div",30),e.qZA()()),2&a){const t=d.$implicit;e.Q6J("pSelectableRow",t),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Q6J("ngIf",!t.isReadOnly)}}function V(a,d){if(1&a){const t=e.EpF();e.TgZ(0,"button",36),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.save())}),e._UZ(1,"i",37),e.TgZ(2,"span"),e._uU(3,"Save"),e.qZA()()}}let Q=(()=>{class a{authCS;userS;eventCenterCS;notificationS;cs;confirmationService;modalId="idAllowedOriginModal";subscriptions=[];allowedOriginsGridData=[];saveSettings=new e.vpe;gridKeyAllowedOrigins="name";allowedOriginModel={domainName:"",domainNameBak:""};exampleOrigin=location.origin;allowedOriginData={mode:c.D.ADD};EFormMode=c.D;selectedRowsUI=[];constructor(t,n,i,o,l,m){this.authCS=t,this.userS=n,this.eventCenterCS=i,this.notificationS=o,this.cs=l,this.confirmationService=m}ngOnInit(){}save(){var t=this;return(0,r.Z)(function*(){if(t.allowedOriginData.mode===c.D.ADD)t.allowedOriginsGridData.push({name:t.allowedOriginModel.domainName});else{const n=t.allowedOriginsGridData.findIndex(i=>i.name===t.allowedOriginModel.domainNameBak);t.allowedOriginsGridData[n].name=t.allowedOriginModel.domainName}t.allowedOriginsGridData=f.uniqBy(t.allowedOriginsGridData,"name"),t.saveSettings.emit(),t.hideAllowedOriginModal()})()}showAllowedOriginModal(){$("#idAllowedOriginModal").modal("show")}hideAllowedOriginModal(){$("#idAllowedOriginModal").modal("hide")}addAllowedOrigin(){var t=this;return(0,r.Z)(function*(){t.allowedOriginModel.domainNameBak=t.allowedOriginModel.domainName="",t.allowedOriginData.mode=c.D.ADD,t.showAllowedOriginModal()})()}editAllowedOrigin(t,n){var i=this;return(0,r.Z)(function*(){i.allowedOriginModel.domainNameBak=i.allowedOriginModel.domainName=n.name,i.allowedOriginData.mode=c.D.EDIT,i.showAllowedOriginModal()})()}doubleClick(){this.editAllowedOrigin(null,this.selectedRowsUI[0]).then()}removeAllowedOrigin(t,n){var i=this;return(0,r.Z)(function*(){var o;i.confirmationService.confirm({message:i.cs.amUserSandboxDepSetting.removePermanentAllowedOriginConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(o=(0,r.Z)(function*(){yield i.removeAO(t,n)}),function(){return o.apply(this,arguments)})})})()}removeAO(t,n){var i=this;return(0,r.Z)(function*(){const o=i.allowedOriginsGridData.findIndex(l=>l.name===n.name);i.allowedOriginsGridData.splice(o,1),i.saveSettings.emit()})()}ngOnDestroy(){for(const t of this.subscriptions)t.unsubscribe()}static \u0275fac=function(n){return new(n||a)(e.Y36(v.D),e.Y36(b.K),e.Y36(Z.M),e.Y36(T.W),e.Y36(w.L),e.Y36(g.YP))};static \u0275cmp=e.Xpm({type:a,selectors:[["allowed-origin-c"]],inputs:{allowedOriginsGridData:["allowedOrigins","allowedOriginsGridData"]},outputs:{saveSettings:"saveSettings"},decls:37,vars:10,consts:[[1,"card","shadow-sm","mt-2","mr-1","mb-5",2,"height","384px"],[1,"card-header"],[1,"fas","fa-link","text-yellow","fa-fw","mr-1"],["pTooltip","Add New",1,"float-right","cursor-pointer","mr-1",3,"click"],[1,"fas","fa-plus","text-success","fa-fw"],[1,"card-body","p-0","overflow-hidden"],["styleClass","p-datatable-striped","scrollHeight","350px",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange","dblclick"],["pTemplate","header"],["pTemplate","body"],["aria-hidden","true","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal",3,"id"],["role","document",1,"modal-dialog","modal-lg"],[1,"modal-content"],[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"],[1,"form-group","row","mt-3","mb-0"],[1,"col-4","col-form-label","col-form-label-sm","text-right"],[1,"col-6"],["name","name","spellcheck","false","type","text","placeholder","Please provide domain name",1,"form-control","form-control-sm",3,"ngModel","blur","ngModelChange"],[1,"form-group","row"],[1,"col-form-label","col-form-label-sm","text-info","font-monospaced"],[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,"click",4,"ngIf"],[2,"width","100px"],[3,"pSelectableRow"],["class","text-center",4,"ngIf"],[1,"text-center"],["pTooltip","Edit","tooltipPosition","left",1,"btn","btn-xsm-custom","mr-1",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw","cursor-pointer"],["pTooltip","Permanent Delete","tooltipPosition","left",1,"btn","btn-xsm-custom","ml-1",3,"click"],[1,"far","fa-trash-alt","fa-fw","cursor-pointer","text-danger"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"click"],[1,"fas","fa-save","text-success","fa-fw","mr-1"]],template:function(n,i){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span"),e._UZ(3,"i",2),e._uU(4," Allowed Origins"),e.qZA(),e.TgZ(5,"span",3),e.NdJ("click",function(){return i.addAllowedOrigin()}),e._UZ(6,"i",4),e.qZA()(),e.TgZ(7,"div",5)(8,"p-table",6),e.NdJ("selectionChange",function(l){return i.selectedRowsUI=l})("dblclick",function(){return i.doubleClick()}),e.YNc(9,H,5,0,"ng-template",7),e.YNc(10,Y,5,3,"ng-template",8),e.qZA()()(),e.TgZ(11,"div",9)(12,"div",10)(13,"div",11)(14,"div",12)(15,"span"),e._UZ(16,"i",13),e._uU(17," Allowed Origins"),e.qZA(),e.TgZ(18,"button",14)(19,"span",15),e._UZ(20,"i",16),e.qZA()()(),e.TgZ(21,"div",17)(22,"div",18)(23,"label",19),e._uU(24,"Domain name"),e.qZA(),e.TgZ(25,"div",20)(26,"input",21),e.NdJ("blur",function(){return i.allowedOriginModel.domainName=i.allowedOriginModel.domainName.toLowerCase()})("ngModelChange",function(l){return i.allowedOriginModel.domainName=l}),e.qZA()()(),e.TgZ(27,"div",22),e._UZ(28,"label",19),e.TgZ(29,"div",20)(30,"label",23),e._uU(31),e.qZA()()()(),e.TgZ(32,"div",24)(33,"button",25),e._UZ(34,"i",26),e._uU(35," Close"),e.qZA(),e.YNc(36,V,4,0,"button",27),e.qZA()()()()),2&n&&(e.xp6(8),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("selection",i.selectedRowsUI)("dataKey",i.gridKeyAllowedOrigins)("scrollable",!0)("value",i.allowedOriginsGridData),e.xp6(3),e.s9C("id",i.modalId),e.xp6(15),e.Q6J("ngModel",i.allowedOriginModel.domainName),e.xp6(5),e.hij("(Ex: ",i.exampleOrigin,")"),e.xp6(5),e.Q6J("ngIf",i.allowedOriginData.mode!==i.EFormMode.VIEW))},dependencies:[p.Fj,p.JJ,p.On,_.O5,K.y,u.iA,g.jx,u.Ei,A.u],encapsulation:2})}return a})();var L=s(44879);const W=["addNpmLibC"],j=["allowedOriginC"],z=["SandboxSettingsPkgVersionsModalC"];function X(a,d){1&a&&(e.TgZ(0,"tr"),e._UZ(1,"th",61)(2,"th",62),e.TgZ(3,"th",63),e._uU(4,"Version"),e.qZA(),e.TgZ(5,"th"),e._uU(6,"Name"),e.qZA(),e.TgZ(7,"th",64),e._uU(8,"Sub Dependencies"),e.qZA(),e.TgZ(9,"th",65),e._uU(10,"Third Party API"),e.qZA(),e.TgZ(11,"th",66),e._uU(12,"Default"),e.qZA(),e.TgZ(13,"th",67),e._uU(14,"Action"),e.qZA()())}function ee(a,d){1&a&&e._UZ(0,"i",76)}function te(a,d){1&a&&e._UZ(0,"i",77)}function ne(a,d){if(1&a&&(e.TgZ(0,"div",79),e._uU(1),e.qZA()),2&a){const t=d.$implicit;e.xp6(1),e.AsE("",t.name," @",t.version,"")}}function ie(a,d){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,ne,2,2,"div",78),e.qZA()),2&a){const t=d.$implicit;e.xp6(1),e.Q6J("ngForOf",t.dependencies)}}function oe(a,d){1&a&&e._UZ(0,"i",80)}function ae(a,d){1&a&&e._UZ(0,"i",80)}function se(a,d){if(1&a){const t=e.EpF();e.TgZ(0,"div",73)(1,"button",81),e.NdJ("click",function(i){e.CHM(t);const o=e.oxw().$implicit,l=e.oxw(2);return e.KtG(l.editData(i,o))}),e._UZ(2,"i",82),e.qZA(),e.TgZ(3,"button",83),e.NdJ("click",function(i){e.CHM(t);const o=e.oxw().$implicit,l=e.oxw(2);return e.KtG(l.removePermanentDialog(i,o))}),e._UZ(4,"i",84),e.qZA()()}}function re(a,d){if(1&a&&(e.TgZ(0,"tr",68)(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e.YNc(4,ee,1,0,"i",69),e.YNc(5,te,1,0,"i",70),e.qZA(),e.TgZ(6,"td"),e._uU(7),e.qZA(),e.TgZ(8,"td"),e._uU(9),e.qZA(),e.TgZ(10,"td")(11,"div",71),e.YNc(12,ie,2,1,"div",72),e.qZA()(),e.TgZ(13,"td",73),e.YNc(14,oe,1,0,"i",74),e.qZA(),e.TgZ(15,"td",73),e.YNc(16,ae,1,0,"i",74),e.qZA(),e.TgZ(17,"td"),e.YNc(18,se,5,0,"div",75),e.qZA()()),2&a){const t=d.$implicit,n=d.rowIndex;e.Q6J("pSelectableRow",t),e.xp6(2),e.Oqu(n+1),e.xp6(2),e.Q6J("ngIf",t.active),e.xp6(1),e.Q6J("ngIf",!t.active),e.xp6(2),e.Oqu(t.version),e.xp6(2),e.Oqu(t.name),e.xp6(3),e.Q6J("ngForOf",t.subDependencies),e.xp6(2),e.Q6J("ngIf",t.isThirdPartyApi),e.xp6(2),e.Q6J("ngIf",t.isDefault),e.xp6(2),e.Q6J("ngIf",!t.isReadOnly)}}function de(a,d){1&a&&(e.TgZ(0,"tr"),e._UZ(1,"th",61),e.TgZ(2,"th",63),e._uU(3,"Version"),e.qZA(),e.TgZ(4,"th"),e._uU(5,"Name"),e.qZA(),e.TgZ(6,"th",85),e._uU(7,"Third Party API"),e.qZA(),e.TgZ(8,"th",63),e._uU(9,"Default"),e.qZA()())}function le(a,d){1&a&&e._UZ(0,"i",80)}function ce(a,d){1&a&&e._UZ(0,"i",80)}function pe(a,d){if(1&a&&(e.TgZ(0,"tr",68)(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._uU(4),e.qZA(),e.TgZ(5,"td"),e._uU(6),e.qZA(),e.TgZ(7,"td"),e.YNc(8,le,1,0,"i",74),e.qZA(),e.TgZ(9,"td"),e.YNc(10,ce,1,0,"i",74),e.qZA()()),2&a){const t=d.$implicit,n=d.rowIndex;e.Q6J("pSelectableRow",t),e.xp6(2),e.Oqu(n+1),e.xp6(2),e.Oqu(t.version),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Q6J("ngIf",t.isThirdPartyApi),e.xp6(2),e.Q6J("ngIf",t.isDefault)}}function me(a,d){1&a&&e._UZ(0,"p-progressSpinner",86)}function ge(a,d){if(1&a){const t=e.EpF();e.TgZ(0,"div",5)(1,"div",6)(2,"button",7),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.loadGridData())}),e._UZ(3,"i",8),e._uU(4," Refresh "),e.qZA(),e.TgZ(5,"button",9),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.saveSettings(i.EFormMode.EDIT))}),e._UZ(6,"i",10),e._uU(7," Save "),e.qZA()(),e.TgZ(8,"div",11)(9,"div",12)(10,"span"),e._UZ(11,"i",13),e._uU(12," Settings"),e.qZA()(),e.TgZ(13,"div",14)(14,"div",15)(15,"div",16)(16,"label",17),e._uU(17,"Sandbox Count"),e.qZA(),e.TgZ(18,"div",18)(19,"input",19),e.NdJ("ngModelChange",function(i){e.CHM(t);const o=e.oxw();return e.KtG(o.settings.sandbox.sandboxCountOverrideAdmin=i)}),e.qZA()(),e.TgZ(20,"div",20)(21,"span",21),e._uU(22,"1 CPU core \u2192 1 process \u2192 N sandboxes. Ideally 1\u20132."),e.qZA()()(),e.TgZ(23,"div",22)(24,"label",17),e._uU(25,"Auto Restart (seconds)"),e.qZA(),e.TgZ(26,"div",18)(27,"input",23),e.NdJ("ngModelChange",function(i){e.CHM(t);const o=e.oxw();return e.KtG(o.settings.sandbox.automaticSandboxRestartInSeconds=i)}),e.qZA()(),e.TgZ(28,"div",20)(29,"span",21),e._uU(30,"All sandboxes restart automatically after this interval across all servers, without dropping requests."),e.qZA()()()()()(),e.TgZ(31,"div",11)(32,"div",12)(33,"span"),e._UZ(34,"i",24),e._uU(35," Sandbox Dependencies"),e.qZA(),e.TgZ(36,"div",25)(37,"a",26),e._UZ(38,"img",27),e.ALo(39,"themeIcon"),e.qZA()(),e.TgZ(40,"span",28),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.showLibraryModel())}),e._UZ(41,"i",29),e.qZA()(),e.TgZ(42,"div",30)(43,"p-tabView",31)(44,"p-tabPanel",32)(45,"p-table",33),e.NdJ("selectionChange",function(i){e.CHM(t);const o=e.oxw();return e.KtG(o.selectedRowsUI=i)})("dblclick",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.summaryTableDoubleClick())}),e.YNc(46,X,15,0,"ng-template",34),e.YNc(47,re,19,10,"ng-template",35),e.qZA()(),e.TgZ(48,"p-tabPanel",36)(49,"p-table",37),e.NdJ("selectionChange",function(i){e.CHM(t);const o=e.oxw();return e.KtG(o.selectedRowsPackageJson=i)}),e.YNc(50,de,10,0,"ng-template",34),e.YNc(51,pe,11,6,"ng-template",35),e.qZA()()(),e.YNc(52,me,1,0,"p-progressSpinner",38),e.qZA()(),e.TgZ(53,"div",11)(54,"div",30)(55,"p-tabView",31)(56,"p-tabPanel",39)(57,"div",40)(58,"span",21),e._uU(59," This builds the base sandbox image (Node, pnpm, system libraries, Oracle client). It is built automatically and cached; it rebuilds only when you change it here. "),e.qZA(),e.TgZ(60,"span",41),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.resetDockerfileBaseToDefault())}),e._UZ(61,"i",42)(62,"i",43),e.qZA()(),e.TgZ(63,"div",44)(64,"app-monaco-editor",45),e.NdJ("editorGenerated",function(i){e.CHM(t);const o=e.oxw();return e.KtG(o.editorBaseGenerated(i))}),e.qZA()()(),e.TgZ(65,"p-tabPanel",46)(66,"div",40)(67,"span",21),e._uU(68," This builds the extended base sandbox image (default packages installed on top of the base image via pnpm). It is built automatically and cached; it rebuilds only when you change it here, change the base image, or change the default packages. "),e.qZA(),e.TgZ(69,"span",47),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.resetDockerfileExtendedBaseToDefault())}),e._UZ(70,"i",42)(71,"i",43),e.qZA()(),e.TgZ(72,"div",44)(73,"app-monaco-editor",45),e.NdJ("editorGenerated",function(i){e.CHM(t);const o=e.oxw();return e.KtG(o.editorExtendedBaseGenerated(i))}),e.qZA()()(),e.TgZ(74,"p-tabPanel",48)(75,"div",40)(76,"span"),e._UZ(77,"i",42),e._uU(78," Docker File"),e.qZA(),e.TgZ(79,"span",49)(80,"span",50),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.showDockerImageBuildLogs())}),e._UZ(81,"i",51),e.qZA(),e.TgZ(82,"span",52),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.resetDockerfileToDefault())}),e._UZ(83,"i",43),e.qZA()()(),e.TgZ(84,"div",44)(85,"app-monaco-editor",45),e.NdJ("editorGenerated",function(i){e.CHM(t);const o=e.oxw();return e.KtG(o.editorGenerated(i))}),e.qZA()(),e.TgZ(86,"div",53)(87,"div",12)(88,"span"),e._UZ(89,"i",54),e._uU(90," pnpm-workspace.yaml"),e.qZA(),e.TgZ(91,"span",55),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.resetPnpmWorkspaceToDefault())}),e._UZ(92,"i",43),e.qZA()(),e.TgZ(93,"div",56)(94,"span",21),e._uU(95," This is the pnpm-workspace.yaml used by the sandbox "),e.TgZ(96,"code"),e._uU(97,"pnpm install"),e.qZA(),e._uU(98,". It is packed into the extended base image build; changing it here rebuilds that image automatically. "),e.qZA()(),e.TgZ(99,"div",57)(100,"app-monaco-editor",45),e.NdJ("editorGenerated",function(i){e.CHM(t);const o=e.oxw();return e.KtG(o.editorPnpmWorkspaceGenerated(i))}),e.qZA()()()()()()(),e.TgZ(101,"allowed-origin-c",58,59),e.NdJ("saveSettings",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.saveSettings(i.EFormMode.EDIT))}),e.qZA(),e.TgZ(103,"div",60),e._uU(104,"\xa0"),e.qZA()()}if(2&a){const t=e.oxw();e.xp6(19),e.Q6J("ngModel",t.settings.sandbox.sandboxCountOverrideAdmin),e.xp6(8),e.Q6J("ngModel",t.settings.sandbox.automaticSandboxRestartInSeconds),e.xp6(11),e.Q6J("src",e.lcZ(39,22,"/assets/images/logo/logo_docs.svg"),e.LSH),e.xp6(7),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("selection",t.selectedRowsUI)("dataKey",t.gridKey)("scrollable",!0)("value",t.packageSummary),e.xp6(4),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("selection",t.selectedRowsPackageJson)("dataKey",t.gridKey)("scrollable",!0)("value",t.finalPackageJson),e.xp6(3),e.Q6J("ngIf",t.loading.form),e.xp6(12),e.Q6J("editorOptions",t.editorOptionsDockerBase),e.xp6(9),e.Q6J("editorOptions",t.editorOptionsDockerExtendedBase),e.xp6(1),e.Q6J("selected",!0),e.xp6(11),e.Q6J("editorOptions",t.editorOptionsDocker),e.xp6(15),e.Q6J("editorOptions",t.editorOptionsPnpmWorkspace),e.xp6(1),e.Q6J("allowedOrigins",t.settings.allowedOrigins)}}const ue=[{path:"main",component:(()=>{class a{authCS;userS;eventCenterCS;notificationS;confirmationService;cs;monacoS;tpStoreApiVersionS;instanceS;feStoreCS;generalCS;STORE_BE_HOST_PORT=x.N.STORE_BE_HOST_PORT;BE_HOST_PORT=x.N.BE_HOST_PORT;subscriptions=[];data={mode:c.D.ADD,eventChannel:new e.vpe,formData:void 0};packageSummary=[];selectedRowsUI=[];gridKey="rowId";counter;EFormMode=c.D;finalPackageJson=[];selectedRowsPackageJson=[];showAll=!1;loading={form:!1};settings;tpNpmPackageAndVersion={};tpApiVersionIdMap;tpApiBundleIdMap;editorDocker;editorOptionsDocker={readOnly:!1,language:"dockerfile",contextmenu:!0};editorDockerBase;editorOptionsDockerBase={readOnly:!1,language:"dockerfile",contextmenu:!0};editorDockerExtendedBase;editorOptionsDockerExtendedBase={readOnly:!1,language:"dockerfile",contextmenu:!0};editorPnpmWorkspace;editorOptionsPnpmWorkspace={readOnly:!1,language:"yaml",contextmenu:!0};addNpmLibC;allowedOriginC;SandboxSettingsPkgVersionsModalC;constructor(t,n,i,o,l,m,_e,Se,he,xe,ve){this.authCS=t,this.userS=n,this.eventCenterCS=i,this.notificationS=o,this.confirmationService=l,this.cs=m,this.monacoS=_e,this.tpStoreApiVersionS=Se,this.instanceS=he,this.feStoreCS=xe,this.generalCS=ve}ngOnInit(){var t=this;return(0,r.Z)(function*(){t.subscriptions.push(t.eventCenterCS.sandboxDep.subscribe(n=>{if(t.data.mode===c.D.ADD){for(const i of t.packageSummary)if(i.name===n.name&&i.isDefault)return void t.notificationS.showError("You can not override default package.");t.packageSummary.unshift(n),t.rowIdSet(),t.notificationS.showSuccess(t.cs.amUserSandboxDepSetting.addSuccess),t.addNpmLibC.hideModal()}})),yield t.loadGridData(),t.generalCS.setNewTitle("Sandbox Settings")})()}loadGridData(){var t=this;return(0,r.Z)(function*(){const n=yield t.userS.getAdminSettings(t.authCS.getUserId()).toPromise();t.settings=n.data||{},t.packageSummary=t.settings.sandbox.dependenciesUI.nodeJS,t.finalPackageJson=t.settings.sandbox.dependencies.nodeJS;const i=t.settings.allowedOrigins||[];t.settings.sandbox&&(t.settings.sandbox.automaticSandboxRestartInSeconds=t.settings.sandbox.automaticSandboxRestartInSeconds||null),i.sort(),t.settings.allowedOrigins=f.map(i,o=>({name:o})),t.rowIdSet();for(const o of t.finalPackageJson)o.rowId=(t.counter++).toString();t.generalCS.setValueInEditor(t,"editorDocker",t.settings.dockerFile||""),t.generalCS.setValueInEditor(t,"editorDockerBase",t.settings.dockerFileBase||""),t.generalCS.setValueInEditor(t,"editorDockerExtendedBase",t.settings.dockerFileExtendedBase||""),t.generalCS.setValueInEditor(t,"editorPnpmWorkspace",t.settings.pnpmWorkspaceYaml||"")})()}editorGenerated(t){var n=this;return(0,r.Z)(function*(){n.editorDocker=t,yield n.monacoS.loadSchemaEditorSettings(n.BE_HOST_PORT,n.authCS.getUserId(),null),n.monacoS.addSaveCodeKeyBinding(t,i=>{n.saveSettings()})})()}editorBaseGenerated(t){var n=this;return(0,r.Z)(function*(){n.editorDockerBase=t,yield n.monacoS.loadSchemaEditorSettings(n.BE_HOST_PORT,n.authCS.getUserId(),null),n.monacoS.addSaveCodeKeyBinding(t,i=>{n.saveSettings()})})()}editorExtendedBaseGenerated(t){var n=this;return(0,r.Z)(function*(){n.editorDockerExtendedBase=t,yield n.monacoS.loadSchemaEditorSettings(n.BE_HOST_PORT,n.authCS.getUserId(),null),n.monacoS.addSaveCodeKeyBinding(t,i=>{n.saveSettings()})})()}editorPnpmWorkspaceGenerated(t){var n=this;return(0,r.Z)(function*(){n.editorPnpmWorkspace=t,yield n.monacoS.loadSchemaEditorSettings(n.BE_HOST_PORT,n.authCS.getUserId(),null),n.monacoS.addSaveCodeKeyBinding(t,i=>{n.saveSettings()})})()}rowIdSet(){this.counter=1;for(const t of this.packageSummary)t.rowId=(this.counter++).toString()}showLibraryModel(){this.data.formData=void 0,this.data.mode=c.D.ADD,this.data.eventChannel.emit({action:h.F.OPEN_FORM_IN_ADD_MODE}),this.addNpmLibC.showModal()}saveSettings(t){var n=this;return(0,r.Z)(function*(){try{const i=n.authCS.getUserId();if(n?.settings?.sandbox?.sandboxCountOverrideAdmin>5)return void n.notificationS.showError("More than 5 sandbox are not allowed.");const o={settings:{sandbox:{sandboxCountOverrideAdmin:n.settings.sandbox.sandboxCountOverrideAdmin,automaticSandboxRestartInSeconds:n.settings.sandbox.automaticSandboxRestartInSeconds||null,dependencies:{nodeJS:n.packageSummary.filter(m=>!m.isReadOnly&&!m.isThirdPartyApi&&!m.isDefault)}},dockerFile:n.editorDocker.getValue(),dockerFileBase:n.editorDockerBase.getValue(),dockerFileExtendedBase:n.editorDockerExtendedBase.getValue(),pnpmWorkspaceYaml:n.editorPnpmWorkspace.getValue(),allowedOrigins:f.map(n.allowedOriginC.allowedOriginsGridData,"name").sort()}};(yield n.userS.put(i,o,{select:M.iH._id}).toPromise())&&(t===c.D.EDIT?n.notificationS.showSuccess(n.cs.amUserSandboxDepSetting.editSuccess):"DELETE"===t?n.notificationS.showSuccess(n.cs.amUserSandboxDepSetting.removePermanent):t||n.notificationS.showSuccess("Success")),n.loadGridData().then()}catch(i){n.loading.form=!1,n.notificationS.showErrorFromResponse(i.error||i,"Unable to save settings.")}})()}removePermanentDialog(t,n){var i=this;return(0,r.Z)(function*(){var o;t.stopPropagation(),t.preventDefault(),i.confirmationService.confirm({message:i.cs.amUserSandboxDepSetting.removePermanentConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(o=(0,r.Z)(function*(){yield i.removePermanent(n)}),function(){return o.apply(this,arguments)})})})()}removePermanent(t){var n=this;return(0,r.Z)(function*(){n.packageSummary.splice(n.packageSummary.indexOf(t),1),n.saveSettings("DELETE").then()})()}loadDependenciesAndSchemas(){var t=this;return(0,r.Z)(function*(){const{tpNpmPackageAndVersion:n,tpApiBundleIdMap:i,tpApiVersionIdMap:o}=(yield t.instanceS.getInstalledPackagesAndSchemas().toPromise()).data;t.tpNpmPackageAndVersion=n,t.tpApiBundleIdMap=i,t.tpApiVersionIdMap=o})()}commonPackageAddRemoveTasks(){var t=this;return(0,r.Z)(function*(){yield t.loadDependenciesAndSchemas()})()}editData(t,n){var i=this;return(0,r.Z)(function*(){t?.stopPropagation(),t?.preventDefault(),i.data.formData=n,i.data.mode=c.D.EDIT,i.data.eventChannel.emit({action:h.F.OPEN_FORM_IN_EDIT_MODE}),yield i.SandboxSettingsPkgVersionsModalC.showPkgVersions(n.name)})()}hideNpmLibModel(){this.addNpmLibC.hideModal()}resetDockerfileToDefault(){var t=this;return(0,r.Z)(function*(){try{const n=yield t.feStoreCS.geDefaultDockerfile(t.BE_HOST_PORT);t.editorDocker&&t.editorDocker.setValue(n.data)}catch(n){t.notificationS.showErrorFromResponse(n.error||n,"Unable to reset docker file.")}})()}resetDockerfileBaseToDefault(){var t=this;return(0,r.Z)(function*(){try{const n=yield t.feStoreCS.geDefaultDockerfileBase(t.BE_HOST_PORT);t.editorDockerBase&&t.editorDockerBase.setValue(n.data)}catch(n){t.notificationS.showErrorFromResponse(n.error||n,"Unable to reset base docker file.")}})()}resetDockerfileExtendedBaseToDefault(){var t=this;return(0,r.Z)(function*(){try{const n=yield t.feStoreCS.geDefaultDockerfileExtendedBase(t.BE_HOST_PORT);t.editorDockerExtendedBase&&t.editorDockerExtendedBase.setValue(n.data)}catch(n){t.notificationS.showErrorFromResponse(n.error||n,"Unable to reset extended base docker file.")}})()}resetPnpmWorkspaceToDefault(){var t=this;return(0,r.Z)(function*(){try{const n=yield t.feStoreCS.geDefaultPnpmWorkspaceYaml(t.BE_HOST_PORT);t.editorPnpmWorkspace&&t.editorPnpmWorkspace.setValue(n.data)}catch(n){t.notificationS.showErrorFromResponse(n.error||n,"Unable to reset pnpm-workspace.yaml.")}})()}showDockerImageBuildLogs(){var t=this;return(0,r.Z)(function*(){const n=t.eventCenterCS.headerC,i=n.systemLogsModelC.systemLogsListC.filterOptions.find(o=>o.value===U.g.DOCKER_IMAGE_BUILD_LOGS);n.showSystemLogsModal(i)})()}summaryTableDoubleClick(){var t=this;setTimeout((0,r.Z)(function*(){if(t.selectedRowsUI[0]){let n;for(const i of t.packageSummary)i[t.gridKey]===t.selectedRowsUI[0].rowId&&(n=i);n&&!n.isReadOnly&&(yield t.editData(null,n))}}),100)}ngOnDestroy(){for(const t of this.subscriptions)t.unsubscribe()}static \u0275fac=function(n){return new(n||a)(e.Y36(v.D),e.Y36(b.K),e.Y36(Z.M),e.Y36(T.W),e.Y36(g.YP),e.Y36(w.L),e.Y36(I.b),e.Y36(P.f),e.Y36(E.E),e.Y36(N.e),e.Y36(J.b))};static \u0275cmp=e.Xpm({type:a,selectors:[["app-sandbox-settings-c"]],viewQuery:function(n,i){if(1&n&&(e.Gf(W,5),e.Gf(j,5),e.Gf(z,5)),2&n){let o;e.iGM(o=e.CRH())&&(i.addNpmLibC=o.first),e.iGM(o=e.CRH())&&(i.allowedOriginC=o.first),e.iGM(o=e.CRH())&&(i.SandboxSettingsPkgVersionsModalC=o.first)}},decls:6,vars:9,consts:[["class","pt-1 pl-5 pr-5 full-body overflow-auto",4,"ngIf"],[3,"data","pkgVersionModal","modalId","hostAndPort"],["addNpmLibC",""],[3,"modalId","hostAndPort","data","dependencies","saveUpdateSandboxDep","hideLibraryModelEventEmitter","installed"],["pkgVersionsModalC","","SandboxSettingsPkgVersionsModalC",""],[1,"pt-1","pl-5","pr-5","full-body","overflow-auto"],[1,"text-right",2,"position","sticky","top","0","z-index","100","padding","6px 5px"],[1,"btn","btn-primary","btn-sm","mr-1",3,"click"],[1,"fas","fa-sync-alt","text-info","fa-fw"],[1,"btn","btn-success","btn-sm",3,"click"],[1,"fas","fa-save","fa-fw"],[1,"card","shadow-sm","mt-2","mr-1"],[1,"card-header"],[1,"fas","fa-cog","text-danger","fa-fw","mr-1"],[1,"card-body","p-3","overflow-hidden"],[1,"container"],[1,"row"],[1,"col-2","col-form-label","col-form-label-sm","text-right"],[1,"col-2"],["name","Setting","type","number","placeholder","1",1,"form-control","form-control-sm",3,"ngModel","ngModelChange"],[1,"col-8","d-flex","align-items-center"],[1,"small","text-info"],[1,"row","mt-3"],["name","automaticSandboxRestartInSeconds","type","number","placeholder","seconds",1,"form-control","form-control-sm",3,"ngModel","ngModelChange"],[1,"fas","fa-box","text-warning","fa-fw","mr-1"],[1,"float-right"],["href","https://docs.apimaker.dev/v1/docs/settings/sandboxSettings.html","target","_blank"],[1,"fa-fw","ml-2","mr-1","mt-n1",2,"font-size","25px",3,"src"],["tooltipPosition","left","pTooltip","Add New",1,"float-right","cursor-pointer","mr-1",3,"click"],[1,"fas","fa-plus","text-success","fa-fw"],[1,"card-body","p-2","overflow-hidden"],[1,"w-100"],["header","Summary"],["styleClass","p-datatable-striped","scrollHeight","400px",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange","dblclick"],["pTemplate","header"],["pTemplate","body"],["header","Final package.json"],["styleClass","p-datatable-striped","scrollHeight","400px",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],["header","Base Docker File"],[1,"d-flex","justify-content-between","align-items-center","px-1"],["tooltipPosition","left","pTooltip","Reset base dockerfile to default",1,"cursor-pointer","ml-2","flex-shrink-0",3,"click"],[1,"fab","fa-docker","fa-fw","mr-1","text-info"],[1,"fas","fa-undo","text-warning","fa-fw"],[1,"p-1","overflow-hidden","mt-2",2,"height","400px"],[3,"editorOptions","editorGenerated"],["header","Extended Base Docker File"],["tooltipPosition","left","pTooltip","Reset extended base dockerfile to default",1,"cursor-pointer","ml-2","flex-shrink-0",3,"click"],["header","Docker File",3,"selected"],[1,"flex-shrink-0"],["tooltipPosition","left","pTooltip","View logs of docker image build",1,"cursor-pointer","ml-2",3,"click"],[1,"fas","fa-water","text-info","fa-fw"],["tooltipPosition","left","pTooltip","Reset dockerfile to default",1,"cursor-pointer","ml-2",3,"click"],[1,"card","shadow-sm","mt-3"],[1,"fas","fa-file-code","fa-fw","mr-1","text-info"],["tooltipPosition","left","pTooltip","Reset pnpm-workspace.yaml to default",1,"float-right","cursor-pointer","ml-2",3,"click"],[1,"card-body","p-2"],[1,"card-body","p-1","overflow-hidden",2,"height","400px"],[3,"allowedOrigins","saveSettings"],["allowedOriginC",""],[1,"mb-5"],[2,"width","55px"],[2,"width","40px"],[2,"width","100px"],[2,"width","200px"],[1,"text-center",2,"width","150px"],[1,"text-center",2,"width","100px"],[1,"text-center",2,"width","130px"],[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"],[1,"small"],[4,"ngFor","ngForOf"],[1,"text-center"],["class","fas fa-check fa-fw text-success pt-1",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"],["class","pl-3",4,"ngFor","ngForOf"],[1,"pl-3"],[1,"fas","fa-check","fa-fw","text-success","pt-1"],["pTooltip","Edit","tooltipPosition","left",1,"btn","btn-xsm-custom","mr-1",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw","cursor-pointer"],["pTooltip","Permanent Delete","tooltipPosition","left",1,"btn","btn-xsm-custom","ml-1",3,"click"],[1,"far","fa-trash-alt","fa-fw","cursor-pointer","text-danger"],[2,"width","150px"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(n,i){if(1&n&&(e.YNc(0,ge,105,24,"div",0),e._UZ(1,"find-npm-package",1,2),e.TgZ(3,"app-sandbox-settings-pkg-versions-modal",3,4),e.NdJ("saveUpdateSandboxDep",function(l){return i.saveSettings(l)})("hideLibraryModelEventEmitter",function(){return i.hideNpmLibModel()})("installed",function(){return i.commonPackageAddRemoveTasks()}),e.qZA()),2&n){const o=e.MAs(4);e.Q6J("ngIf",i.settings),e.xp6(1),e.Q6J("data",i.data)("pkgVersionModal",o)("modalId","idAddNpmSandboxSettings")("hostAndPort",i.STORE_BE_HOST_PORT),e.xp6(2),e.Q6J("modalId","idAddNpmSandboxSettingsEdit")("hostAndPort",i.STORE_BE_HOST_PORT)("data",i.data)("dependencies",i.tpNpmPackageAndVersion)}},dependencies:[p.Fj,p.wV,p.JJ,p.On,_.sg,_.O5,R.K,G.S,B.O,u.iA,g.jx,u.Ei,q.G,C.xf,C.x4,A.u,Q,L.w],encapsulation:2})}return a})(),canActivate:[k.P]}];let fe=(()=>{class a{static \u0275fac=function(n){return new(n||a)};static \u0275mod=e.oAB({type:a});static \u0275inj=e.cJS({imports:[O.Bz.forChild(ue),D.u,y.ApiTestingM]})}return a})()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[7436],{17436:(ne,g,c)=>{c.r(g),c.d(g,{ExtLicensesM:()=>W});var m=c(77664),C=c(27213),x=c(17017),v=c(63726),r=c(15861),f=c(60921),p=c(51162),P=c(45085),e=c(94946),M=c(95852),y=c(84795),b=c(77240),O=c(53429),I=c(99961),L=c(15561),T=c(85219),U=c(27414),S=c(32915),d=c(60095),h=c(96814),w=c(32660),E=c(97680),Z=c(33259),A=c(44879);function k(o,a){1&o&&(e.TgZ(0,"span",5),e._UZ(1,"i",31),e.qZA())}function G(o,a){1&o&&(e.TgZ(0,"div",32),e._UZ(1,"i",33),e.TgZ(2,"div"),e._uU(3,"No servers found."),e.qZA()())}function K(o,a){1&o&&e._UZ(0,"span",57)}function H(o,a){1&o&&e._UZ(0,"span",58)}function N(o,a){1&o&&e._UZ(0,"span",59)}function F(o,a){1&o&&(e.TgZ(0,"div",60),e._UZ(1,"i",61),e._uU(2," All good "),e.qZA())}function D(o,a){if(1&o&&(e.TgZ(0,"div",64),e._UZ(1,"i",65),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&o){const t=a.$implicit;e.xp6(3),e.Oqu(t.message)}}function J(o,a){if(1&o&&(e.TgZ(0,"div",62),e.YNc(1,D,4,1,"div",63),e.qZA()),2&o){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",t.licenseError)}}function Y(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"a",71),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2).$implicit,s=e.oxw();return e.KtG(s.resetMacAddress(i))}),e._UZ(1,"i",72),e._uU(2," Reset MAC "),e.qZA()}}function R(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"a",73),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2).$implicit,s=e.oxw();return e.KtG(s.showDialogToGetNewLicenseKey(i))}),e._UZ(1,"i",74),e._uU(2," Set Key "),e.qZA()}}function q(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"a",75),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2).$implicit,s=e.oxw();return e.KtG(s.reduceUsage__click(i,"REDUCE_CPU_USAGE"))}),e._UZ(1,"i",76),e._uU(2," Fix CPU "),e.qZA()}}function Q(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"a",77),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2).$implicit,s=e.oxw();return e.KtG(s.reduceUsage__click(i,"REDUCE_UI_PAGES_USAGE"))}),e._UZ(1,"i",78),e._uU(2," Fix UI Pages "),e.qZA()}}function z(o,a){if(1&o&&(e.TgZ(0,"div",66),e.YNc(1,Y,3,0,"a",67),e.YNc(2,R,3,0,"a",68),e.YNc(3,q,3,0,"a",69),e.YNc(4,Q,3,0,"a",70),e.qZA()),2&o){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",t.licenseActions.indexOf("RESET_MAC")>=0),e.xp6(1),e.Q6J("ngIf",t.licenseActions.indexOf("LICENSE_NOT_FOUND")>=0||t.licenseActions.indexOf("EXPIRED")>=0),e.xp6(1),e.Q6J("ngIf",t.licenseActions.indexOf("REDUCE_CPU_USAGE")>=0),e.xp6(1),e.Q6J("ngIf",t.licenseActions.indexOf("REDUCE_UI_PAGES_USAGE")>=0)}}function V(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div",34)(1,"div",35)(2,"span",36),e.YNc(3,K,1,0,"span",37),e.YNc(4,H,1,0,"span",38),e.YNc(5,N,1,0,"span",39),e.TgZ(6,"span",40),e._uU(7),e.qZA()(),e.TgZ(8,"span",41),e._uU(9),e.qZA()(),e.TgZ(10,"div",42),e._UZ(11,"i",43),e.TgZ(12,"div",44)(13,"div",45),e._uU(14),e.qZA(),e.TgZ(15,"a",46),e._uU(16),e.qZA()()(),e.TgZ(17,"div",47)(18,"span",48),e._uU(19,"License Key"),e.qZA(),e.TgZ(20,"div",49)(21,"code",50),e._uU(22),e.qZA(),e.TgZ(23,"a",51),e.NdJ("click",function(){const s=e.CHM(t).$implicit,l=e.oxw();return e.KtG(s.showLicenseKey?l.hideLicenseKey(s):l.showLicenseKey(s))}),e._UZ(24,"i",52),e.qZA()()(),e.TgZ(25,"div",53),e.YNc(26,F,3,0,"div",54),e.YNc(27,J,2,1,"div",55),e.qZA(),e.YNc(28,z,5,4,"div",56),e.qZA()}if(2&o){const t=a.$implicit,n=a.index;e.ekj("lic-card--valid","VALID"===t.licenseCheckStatus)("lic-card--invalid","INVALID"===t.licenseCheckStatus)("lic-card--pending","PENDING"===t.licenseCheckStatus),e.xp6(3),e.Q6J("ngIf","PENDING"===t.licenseCheckStatus),e.xp6(1),e.Q6J("ngIf","VALID"===t.licenseCheckStatus),e.xp6(1),e.Q6J("ngIf","INVALID"===t.licenseCheckStatus),e.xp6(2),e.Oqu(t.licenseCheckStatus),e.xp6(2),e.hij("#",n+1,""),e.xp6(4),e.s9C("pTooltip",t.hostName),e.xp6(1),e.Oqu(t.hostName),e.xp6(1),e.s9C("href",t.beHostPort,e.LSH),e.xp6(1),e.Oqu(t.beHostPort),e.xp6(6),e.Oqu(t.showLicenseKey?t.licenseKey||"\u2014":"\u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022"),e.xp6(1),e.Q6J("pTooltip",t.showLicenseKey?"Hide key":"Show key"),e.xp6(1),e.ekj("fa-eye",!t.showLicenseKey)("fa-eye-slash",t.showLicenseKey),e.xp6(2),e.Q6J("ngIf","VALID"===t.licenseCheckStatus&&!(null!=t.licenseError&&t.licenseError.length)),e.xp6(1),e.Q6J("ngIf",null==t.licenseError?null:t.licenseError.length),e.xp6(1),e.Q6J("ngIf",null==t.licenseActions?null:t.licenseActions.length)}}function j(o,a){1&o&&e._UZ(0,"p-progressSpinner",79)}const B=[{path:"",component:(()=>{class o{authCS;authS;generalCS;instanceS;ns;navigationS;confirmationService;constantsS;eventCenterS;EUserType=f.d;EAPICategory=P.R;gridKey=p.iH._id;loading={grid:!1};serverList=[];newLicenseKey="";setLicenseKeyForObj;showValidationInProgress;constructor(t,n,i,s,l,u,X,ee,te){this.authCS=t,this.authS=n,this.generalCS=i,this.instanceS=s,this.ns=l,this.navigationS=u,this.confirmationService=X,this.constantsS=ee,this.eventCenterS=te}ngOnInit(){return this.authS.backendSettings.extensions?this.authCS.gUser?.userType!==f.d.ADMIN?this.navigationS.gotoDashboard():(this.generalCS.setNewTitle("Extensions Licenses"),void this.loadData().then()):this.navigationS.gotoDashboard()}loadData(){var t=this;return(0,r.Z)(function*(){t.loading.grid=!0;try{t.serverList=[];const n=(yield t.instanceS.getFullSystemInfo().toPromise()).data,i=_.groupBy(n,p.GR.hostName);for(const s in i)t.serverList.push(i[s][0])}catch(n){console.log(n),t.ns.showErrorFromResponse(n.error||n,"Unable to load server information.")}t.loading.grid=!1})()}resetMacAddress(t){var n=this;return(0,r.Z)(function*(){var i;n.confirmationService.confirm({message:n.constantsS.license.resetMacAddressConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(i=(0,r.Z)(function*(){try{yield n.instanceS.resetMacAddressOfLicense({key:t.licenseKey}).toPromise(),n.ns.showSuccess("MAC address reset successfully."),n.setUIAfterFix(1e4)}catch(s){console.log(s),n.ns.showErrorFromResponse(s.error||s,"Unable to reset MAC address of license.")}}),function(){return i.apply(this,arguments)})})})()}showLicenseKey(t){t.showLicenseKey=!0}hideLicenseKey(t){t.showLicenseKey=!1}showModalSetLicenseKey(){$("#idSetLicenseKeyModal").modal("show")}hideModalSetLicenseKey(){$("#idSetLicenseKeyModal").modal("hide")}showDialogToGetNewLicenseKey(t){this.setLicenseKeyForObj=t,this.newLicenseKey=t.licenseKey,this.showModalSetLicenseKey()}setLicenseKeyAPICall(t){var n=this;return(0,r.Z)(function*(){try{yield n.instanceS.setLicenseKeyOnServer({updateMode:"LICENSE_KEY",uniqueServerId:t.uniqueServerId,uniqueProcessId:t.uniqueProcessId,workerId:t.workerId,licenseKey:n.newLicenseKey,serverName:t.hostName}).toPromise(),n.hideModalSetLicenseKey(),n.ns.showSuccess("License key set successfully."),n.setUIAfterFix(6e3)}catch(i){console.log(i),n.ns.showErrorFromResponse(i.error||i,"Unable to reset MAC address of license.")}})()}reduceUsage__click(t,n){var i=this;let s="";var l;"REDUCE_CPU_USAGE"===n?s=this.constantsS.license.setCPUCoreConfirm:"REDUCE_UI_PAGES_USAGE"===n&&(s=this.constantsS.license.setUIPageCountConfirm),this.confirmationService.confirm({message:s,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(l=(0,r.Z)(function*(){"REDUCE_CPU_USAGE"===n?yield i.hitReduceAPICallForCPU(t):"REDUCE_UI_PAGES_USAGE"===n&&(yield i.hitReduceAPICallForDBMasters(t))}),function(){return l.apply(this,arguments)})})}hitReduceAPICallForCPU(t){var n=this;return(0,r.Z)(function*(){try{const i=(t.licenseError||[]).find(s=>s.licensePermitsCPU)?.licensePermitsCPU;if(!i)return void n.ns.showError("Unable to find CPU core issue in license error.");yield n.instanceS.setLicenseKeyOnServer({updateMode:"CPU_CORE",uniqueServerId:t.uniqueServerId,uniqueProcessId:t.uniqueProcessId,workerId:t.workerId,serverName:t.hostName,cpuCore:i}).toPromise(),n.hideModalSetLicenseKey(),n.ns.showSuccess("CPU core set successfully."),n.setUIAfterFix(1e4)}catch(i){console.log(i),n.ns.showErrorFromResponse(i.error||i,"Unable to set CPU core of license.")}})()}hitReduceAPICallForDBMasters(t){var n=this;return(0,r.Z)(function*(){try{const i=(t.licenseError||[]).find(s=>s.licensePermitsDBMasterCount)?.licensePermitsDBMasterCount;if(!i)return void n.ns.showError("Unable to find UI Pages count issue in license error.");yield n.instanceS.setLicenseKeyOnServer({updateMode:"UI_PAGES_COUNT",uniqueServerId:t.uniqueServerId,uniqueProcessId:t.uniqueProcessId,workerId:t.workerId,serverName:t.hostName,dbMasterCount:i}).toPromise(),n.hideModalSetLicenseKey(),n.ns.showSuccess("UI Pages count set successfully."),n.setUIAfterFix(1e4)}catch(i){console.log(i),n.ns.showErrorFromResponse(i.error||i,"Unable to set UI Pages count of license.")}})()}setUIAfterFix(t){var n=this;this.loadData().then(),this.showValidationInProgress=!0,setTimeout((0,r.Z)(function*(){yield n.loadData(),n.showValidationInProgress=!1,yield n.eventCenterS.headerC.setLicenseHasIssues(n.serverList)}),t)}static \u0275fac=function(n){return new(n||o)(e.Y36(M.D),e.Y36(y.e),e.Y36(b.b),e.Y36(O.E),e.Y36(I.W),e.Y36(L.X),e.Y36(T.YP),e.Y36(U.L),e.Y36(S.u))};static \u0275cmp=e.Xpm({type:o,selectors:[["app-ext-licenses"]],decls:40,vars:8,consts:[[1,"pt-1","pl-1","pr-1"],[1,"full-body","overflow-hidden"],[1,"card"],[1,"card-header"],["alt","Extension license icon",1,"fa-fw","mr-1",2,"vertical-align","text-top",3,"src"],[1,"float-right"],["class","float-right",4,"ngIf"],[1,"card-body","p-0","overflow-auto",2,"height","calc(100vh - 88px)"],["class","lic-empty",4,"ngIf"],[1,"lic-grid"],["class","lic-card",3,"lic-card--valid","lic-card--invalid","lic-card--pending",4,"ngFor","ngForOf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idSetLicenseKeyModal","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal"],["role","document",1,"modal-dialog","modal-lg"],[1,"modal-content"],[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"],[1,"container","pt-3"],[1,"form-group","row"],[1,"col-4","col-form-label","col-form-label-sm","text-right"],[1,"col-6"],["name","licenseKey","spellcheck","false","type","text","autocomplete","off",1,"form-control","form-control-sm","font-monospaced",3,"ngModel","ngModelChange"],[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-save","text-success","fa-fw","mr-1"],["tooltipPosition","left","pTooltip","Validation in progress.",1,"fas","fa-sync-alt","text-success","fa-fw","fa-spin"],[1,"lic-empty"],[1,"fas","fa-server"],[1,"lic-card"],[1,"lic-card__head"],[1,"lic-status"],["class","lic-status__dot lic-status__dot--pending","pTooltip","License validation will happen in future.",4,"ngIf"],["class","lic-status__dot lic-status__dot--valid","pTooltip","Valid license",4,"ngIf"],["class","lic-status__dot lic-status__dot--invalid","pTooltip","Invalid license",4,"ngIf"],[1,"lic-status__text"],[1,"lic-card__index"],[1,"lic-card__server"],[1,"fas","fa-server","lic-card__server-ico"],[1,"lic-card__server-meta"],[1,"lic-card__host",3,"pTooltip"],["target","_blank",1,"lic-card__url",3,"href"],[1,"lic-card__key"],[1,"lic-card__key-label"],[1,"lic-card__key-row"],[1,"lic-card__key-value"],["href","javascript:",1,"lic-icon-btn",3,"pTooltip","click"],[1,"fas","fa-fw"],[1,"lic-card__status-msg"],["class","lic-msg lic-msg--ok",4,"ngIf"],["class","lic-msg lic-msg--error",4,"ngIf"],["class","lic-card__actions",4,"ngIf"],["pTooltip","License validation will happen in future.",1,"lic-status__dot","lic-status__dot--pending"],["pTooltip","Valid license",1,"lic-status__dot","lic-status__dot--valid"],["pTooltip","Invalid license",1,"lic-status__dot","lic-status__dot--invalid"],[1,"lic-msg","lic-msg--ok"],[1,"fas","fa-check-circle","fa-fw"],[1,"lic-msg","lic-msg--error"],["class","lic-msg__line",4,"ngFor","ngForOf"],[1,"lic-msg__line"],[1,"fas","fa-exclamation-circle","fa-fw"],[1,"lic-card__actions"],["class","lic-action-btn lic-action-btn--info","pTooltip","Reset registered mac address.","tooltipPosition","top","href","javascript:",3,"click",4,"ngIf"],["class","lic-action-btn lic-action-btn--primary","pTooltip","Set license key","tooltipPosition","top","href","javascript:",3,"click",4,"ngIf"],["class","lic-action-btn lic-action-btn--primary","pTooltip","Set CPU core usage from license","tooltipPosition","top","href","javascript:",3,"click",4,"ngIf"],["class","lic-action-btn lic-action-btn--primary","pTooltip","Set UI Pages usage from license","tooltipPosition","top","href","javascript:",3,"click",4,"ngIf"],["pTooltip","Reset registered mac address.","tooltipPosition","top","href","javascript:",1,"lic-action-btn","lic-action-btn--info",3,"click"],[1,"fas","fa-history","fa-fw"],["pTooltip","Set license key","tooltipPosition","top","href","javascript:",1,"lic-action-btn","lic-action-btn--primary",3,"click"],[1,"fas","fa-wrench","fa-fw"],["pTooltip","Set CPU core usage from license","tooltipPosition","top","href","javascript:",1,"lic-action-btn","lic-action-btn--primary",3,"click"],[1,"fas","fa-microchip","fa-fw"],["pTooltip","Set UI Pages usage from license","tooltipPosition","top","href","javascript:",1,"lic-action-btn","lic-action-btn--primary",3,"click"],[1,"fab","fa-html5","fa-fw"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(n,i){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span"),e._UZ(5,"img",4),e.ALo(6,"themeIcon"),e._uU(7," Server List "),e.qZA(),e.TgZ(8,"div",5),e.YNc(9,k,2,0,"span",6),e.qZA()(),e.TgZ(10,"div",7),e.YNc(11,G,4,0,"div",8),e.TgZ(12,"div",9),e.YNc(13,V,29,24,"div",10),e.qZA(),e.YNc(14,j,1,0,"p-progressSpinner",11),e.qZA()()()(),e.TgZ(15,"div",12)(16,"div",13)(17,"div",14)(18,"div",15)(19,"span"),e._UZ(20,"i",16),e._uU(21," Set License Key"),e.qZA(),e.TgZ(22,"button",17)(23,"span",18),e._UZ(24,"i",19),e.qZA()()(),e.TgZ(25,"div",20)(26,"form",21)(27,"div",22)(28,"label",23),e._uU(29,"Name"),e.qZA(),e.TgZ(30,"div",24)(31,"input",25),e.NdJ("ngModelChange",function(l){return i.newLicenseKey=l}),e.qZA()()()()(),e.TgZ(32,"div",26)(33,"button",27),e._UZ(34,"i",28),e._uU(35," Close "),e.qZA(),e.TgZ(36,"button",29),e.NdJ("click",function(){return i.setLicenseKeyAPICall(i.setLicenseKeyForObj)}),e._UZ(37,"i",30),e.TgZ(38,"span"),e._uU(39,"Set Key"),e.qZA()()()()()()),2&n&&(e.xp6(5),e.Q6J("src",e.lcZ(6,6,"/assets/images/icons/license.svg"),e.LSH),e.xp6(4),e.Q6J("ngIf",i.showValidationInProgress),e.xp6(2),e.Q6J("ngIf",!i.loading.grid&&0===i.serverList.length),e.xp6(2),e.Q6J("ngForOf",i.serverList),e.xp6(1),e.Q6J("ngIf",i.loading.grid),e.xp6(17),e.Q6J("ngModel",i.newLicenseKey))},dependencies:[d._Y,d.Fj,d.JJ,d.JL,d.On,d.F,h.sg,h.O5,w.y,E.G,Z.u,A.w],styles:[".lic-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px;padding:16px;align-items:start}.lic-card[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;gap:12px;padding:16px 16px 14px;border-radius:14px;border:1px solid rgba(97,175,239,.22);background:linear-gradient(160deg,rgba(28,42,61,.65) 0%,rgba(20,28,41,.55) 100%);box-shadow:inset 0 1px #ffffff14,0 4px 16px #00000047;overflow:hidden;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.lic-card[_ngcontent-%COMP%]:hover{transform:translateY(-2px);border-color:#61afef80;box-shadow:inset 0 1px #ffffff1f,0 10px 26px #0c53a44d,0 2px 10px #00893f29}.lic-card__head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.lic-status[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:7px}.lic-status__dot[_ngcontent-%COMP%]{width:9px;height:9px;border-radius:50%;display:inline-block;flex:0 0 auto}.lic-status__dot--valid[_ngcontent-%COMP%]{background:#2FB36A;box-shadow:0 0 0 3px #2fb36a33}.lic-status__dot--invalid[_ngcontent-%COMP%]{background:#ED6A67;box-shadow:0 0 0 3px #ed6a6733}.lic-status__dot--pending[_ngcontent-%COMP%]{background:#f0c14b;box-shadow:0 0 0 3px #f0c14b33}.lic-status__text[_ngcontent-%COMP%]{font-size:.65rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#9fb3cc}.lic-card__index[_ngcontent-%COMP%]{font-size:.72rem;font-weight:600;color:#6f7f95}.lic-card__server[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;min-width:0}.lic-card__server-ico[_ngcontent-%COMP%]{flex:0 0 auto;font-size:16px;color:#61afef;width:34px;height:34px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;background:rgba(97,175,239,.12);border:1px solid rgba(97,175,239,.22)}.lic-card__server-meta[_ngcontent-%COMP%]{min-width:0}.lic-card__host[_ngcontent-%COMP%]{font-size:.95rem;font-weight:600;color:#eef3fa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lic-card__url[_ngcontent-%COMP%]{font-size:.78rem;color:#7e9ec2;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:100%}.lic-card__url[_ngcontent-%COMP%]:hover{color:#9fc6f0;text-decoration:underline}.lic-card__key[_ngcontent-%COMP%]{border-radius:10px;padding:9px 11px;background:rgba(11,18,28,.45);border:1px solid rgba(97,175,239,.14)}.lic-card__key-label[_ngcontent-%COMP%]{display:block;font-size:.6rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#6f7f95;margin-bottom:4px}.lic-card__key-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.lic-card__key-value[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;font-size:.82rem;color:#cfe0f4;letter-spacing:.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lic-icon-btn[_ngcontent-%COMP%]{flex:0 0 auto;width:26px;height:26px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;color:#61afef;background:rgba(97,175,239,.1);border:1px solid rgba(97,175,239,.2);cursor:pointer;font-size:.75rem;transition:background .15s ease,border-color .15s ease}.lic-icon-btn[_ngcontent-%COMP%]:hover{background:rgba(97,175,239,.22);border-color:#61afef73}.lic-card__status-msg[_ngcontent-%COMP%]{min-height:1px}.lic-msg[_ngcontent-%COMP%]{font-size:.82rem;line-height:1.4}.lic-msg--ok[_ngcontent-%COMP%]{color:#4fcf8e;font-weight:600}.lic-msg--error[_ngcontent-%COMP%]{color:#f0a3a1}.lic-msg__line[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:6px;margin-bottom:2px}.lic-msg__line[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-top:2px}.lic-card__actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:2px}.lic-action-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;font-weight:600;line-height:1;padding:7px 11px;border-radius:8px;cursor:pointer;text-decoration:none;border:1px solid transparent;transition:filter .15s ease,background .15s ease,border-color .15s ease}.lic-action-btn--primary[_ngcontent-%COMP%]{color:#fff;background-image:linear-gradient(135deg,#0C53A4 0%,#0a6a5f 55%,#00893F 100%);border-color:#61afef73}.lic-action-btn--primary[_ngcontent-%COMP%]:hover{filter:brightness(1.1);color:#fff}.lic-action-btn--info[_ngcontent-%COMP%]{color:#61afef;background:rgba(97,175,239,.1);border-color:#61afef59}.lic-action-btn--info[_ngcontent-%COMP%]:hover{background:rgba(97,175,239,.2);border-color:#61afef80;color:#9fc6f0}.lic-empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;height:60vh;color:#6f7f95}.lic-empty[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:36px;opacity:.5}html.LIGHT[_nghost-%COMP%] .lic-card[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .lic-card[_ngcontent-%COMP%]{border-color:#0c53a429;background:linear-gradient(160deg,rgba(255,255,255,.95) 0%,rgba(243,247,252,.92) 100%);box-shadow:inset 0 1px #fffc,0 2px 10px #0c1e3c12}html.LIGHT[_nghost-%COMP%] .lic-card[_ngcontent-%COMP%]:hover, html.LIGHT [_nghost-%COMP%] .lic-card[_ngcontent-%COMP%]:hover{border-color:#0c53a466;box-shadow:inset 0 1px #ffffffb3,0 8px 20px #0c53a424,0 2px 10px #00893f1a}html.LIGHT[_nghost-%COMP%] .lic-status__text[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .lic-status__text[_ngcontent-%COMP%]{color:#5a6a82}html.LIGHT[_nghost-%COMP%] .lic-card__index[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .lic-card__index[_ngcontent-%COMP%]{color:#8a98ab}html.LIGHT[_nghost-%COMP%] .lic-card__server-ico[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .lic-card__server-ico[_ngcontent-%COMP%]{color:#0c53a4;background:rgba(12,83,164,.08);border-color:#0c53a42e}html.LIGHT[_nghost-%COMP%] .lic-card__host[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .lic-card__host[_ngcontent-%COMP%]{color:#1b2330}html.LIGHT[_nghost-%COMP%] .lic-card__url[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .lic-card__url[_ngcontent-%COMP%]{color:#2d6fb0}html.LIGHT[_nghost-%COMP%] .lic-card__url[_ngcontent-%COMP%]:hover, html.LIGHT [_nghost-%COMP%] .lic-card__url[_ngcontent-%COMP%]:hover{color:#0c53a4}html.LIGHT[_nghost-%COMP%] .lic-card__key[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .lic-card__key[_ngcontent-%COMP%]{background:rgba(12,83,164,.04);border-color:#0c53a41f}html.LIGHT[_nghost-%COMP%] .lic-card__key-label[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .lic-card__key-label[_ngcontent-%COMP%]{color:#8a98ab}html.LIGHT[_nghost-%COMP%] .lic-card__key-value[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .lic-card__key-value[_ngcontent-%COMP%]{color:#29333f}html.LIGHT[_nghost-%COMP%] .lic-icon-btn[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .lic-icon-btn[_ngcontent-%COMP%]{color:#0c53a4;background:rgba(12,83,164,.06);border-color:#0c53a42e}html.LIGHT[_nghost-%COMP%] .lic-icon-btn[_ngcontent-%COMP%]:hover, html.LIGHT [_nghost-%COMP%] .lic-icon-btn[_ngcontent-%COMP%]:hover{background:rgba(12,83,164,.14);border-color:#0c53a466}html.LIGHT[_nghost-%COMP%] .lic-msg--ok[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .lic-msg--ok[_ngcontent-%COMP%]{color:#00893f}html.LIGHT[_nghost-%COMP%] .lic-msg--error[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .lic-msg--error[_ngcontent-%COMP%]{color:#c0392b}html.LIGHT[_nghost-%COMP%] .lic-action-btn--info[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .lic-action-btn--info[_ngcontent-%COMP%]{color:#0c53a4;background:rgba(12,83,164,.06);border-color:#0c53a447}html.LIGHT[_nghost-%COMP%] .lic-action-btn--info[_ngcontent-%COMP%]:hover, html.LIGHT [_nghost-%COMP%] .lic-action-btn--info[_ngcontent-%COMP%]:hover{background:rgba(12,83,164,.14);border-color:#0c53a473;color:#0c53a4}html.LIGHT[_nghost-%COMP%] .lic-empty[_ngcontent-%COMP%], html.LIGHT [_nghost-%COMP%] .lic-empty[_ngcontent-%COMP%]{color:#8a98ab}"]})}return o})(),canActivate:[v.P]}];let W=(()=>{class o{static \u0275fac=function(n){return new(n||o)};static \u0275mod=e.oAB({type:o});static \u0275inj=e.cJS({imports:[m.Bz.forChild(B),x.u,C.S]})}return o})()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[7470],{92883:(R,P,i)=>{i.d(P,{c:()=>C});var c=i(94946),_=i(53300);let C=(()=>{class n{hideCodeFinderModel=new c.vpe;loading={form:!1,response:!1};constructor(){}ngOnInit(){}showModal(){$("#idCodeFinder").modal("show")}hideModal(){$("#idCodeFinder").modal("hide")}hideModalEvent(){this.hideCodeFinderModel.emit(!0)}ngOnDestroy(){}static \u0275fac=function(r){return new(r||n)};static \u0275cmp=c.Xpm({type:n,selectors:[["app-code-finder-modal"]],outputs:{hideCodeFinderModel:"hideCodeFinderModel"},decls:8,vars:1,consts:[["id","idCodeFinder","role","dialog","data-backdrop","static","data-keyboard","false",1,"pt-1","pl-1","pr-1","overflow-auto","modal","parent-notes-modal"],["role","document",1,"modal-dialog","modal-full"],[1,"modal-content","border-0"],["aria-label","Close","type","button",1,"close","position-absolute",2,"top","0.25rem","right","0.5rem","z-index","1",3,"click"],["aria-hidden","true"],[1,"fas","fa-window-close","m-1"],[1,"modal-body","p-0"],[3,"modalId"]],template:function(r,b){1&r&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),c.NdJ("click",function(){return b.hideModalEvent()}),c.TgZ(4,"span",4),c._UZ(5,"i",5),c.qZA()(),c.TgZ(6,"div",6),c._UZ(7,"app-code-finder-w",7),c.qZA()()()()),2&r&&(c.xp6(7),c.Q6J("modalId","idCodeFinder"))},dependencies:[_.k],encapsulation:2,changeDetection:0})}return n})()},365:(R,P,i)=>{i.d(P,{n:()=>Ne});var c=i(15861),_=i(6990),n=i(11440),l=i(51162),A=i(20553),r=i(45085),b=i(91601),j=i(3531),S=i(39989),f=i(22583),e=i(94946),h=i(77240),I=i(27414),U=i(45809),y=i(95852),D=i(67629),M=i(31042),Z=i(90602),O=i(10262),E=i(62694),d=i(99150),m=i(12559),p=i(25394),u=i(79448),N=i(3366),F=i(93645),L=i(45800),B=i(56457),H=i(67145),K=i(99961),J=i(32915),k=i(81344),W=i(56233),Y=i(60115),w=i(61252),Q=i(39530),q=i(99729),G=i(26125),V=i(90204),x=i(96814),z=i(5860),X=i(756),ee=i(33259),oe=i(25025);const te=["insertCodeModalC"],se=["monacoEditorModalC"];function ie(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",12),e._uU(4),e.qZA(),e.TgZ(5,"span",13),e._uU(6),e.qZA(),e.TgZ(7,"span",14),e._uU(8),e.qZA(),e.TgZ(9,"span",15),e._uU(10),e.qZA(),e.TgZ(11,"span",16),e._uU(12),e.qZA(),e.TgZ(13,"span",17),e._uU(14),e.qZA()()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.hij("",o.codeObj.instanceName," \u2192 "),e.xp6(2),e.hij("",o.codeObj.databaseName," \u2192 "),e.xp6(2),e.hij("",o.codeObj.collectionName," \u2192 "),e.xp6(2),e.hij("",o.codeObj.apiId," \u2192 "),e.xp6(2),e.Oqu(o.codeObj.name),e.xp6(2),e.Oqu(o.codeObj.hookType)}}function ae(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",12),e._uU(4),e.qZA(),e.TgZ(5,"span",16),e._uU(6),e.qZA(),e.TgZ(7,"span",17),e._uU(8),e.qZA()()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.hij("",o.codeObj.instanceName," \u2192 "),e.xp6(2),e.Oqu(o.codeObj.name),e.xp6(2),e.Oqu(o.codeObj.hookType)}}function ne(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",12),e._uU(4),e.qZA(),e.TgZ(5,"span",13),e._uU(6),e.qZA(),e.TgZ(7,"span",16),e._uU(8),e.qZA(),e.TgZ(9,"span",17),e._uU(10),e.qZA()()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.hij("",o.codeObj.instanceName," \u2192 "),e.xp6(2),e.hij("",o.codeObj.databaseName," \u2192 "),e.xp6(2),e.Oqu(o.codeObj.name),e.xp6(2),e.Oqu(o.codeObj.hookType)}}function re(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",12),e._uU(4),e.qZA(),e.TgZ(5,"span",13),e._uU(6),e.qZA(),e.TgZ(7,"span",14),e._uU(8),e.qZA(),e.TgZ(9,"span",16),e._uU(10),e.qZA(),e.TgZ(11,"span",17),e._uU(12),e.qZA()()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.hij("",o.codeObj.instanceName," \u2192 "),e.xp6(2),e.hij("",o.codeObj.databaseName," \u2192 "),e.xp6(2),e.hij("",o.codeObj.collectionName," \u2192 "),e.xp6(2),e.Oqu(o.codeObj.name),e.xp6(2),e.Oqu(o.codeObj.hookType)}}function de(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",15),e._uU(4),e.qZA(),e.TgZ(5,"span",16),e._uU(6),e.qZA(),e.TgZ(7,"span",17),e._uU(8),e.qZA()()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.hij("",o.codeObj.apiId," \u2192 "),e.xp6(2),e.Oqu(o.codeObj.name),e.xp6(2),e.Oqu(o.codeObj.hookType)}}function ce(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",15),e._uU(4),e.qZA(),e.TgZ(5,"span",16),e._uU(6),e.qZA(),e.TgZ(7,"span",17),e._uU(8),e.qZA()()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.hij("",o.codeObj.apiId," \u2192 "),e.xp6(2),e.Oqu(o.codeObj.name),e.xp6(2),e.Oqu(o.codeObj.hookType)}}function _e(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",18),e._uU(4),e.qZA()()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.Oqu(o.codeObj.name)}}function pe(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",18),e._uU(4),e.qZA()()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.Oqu(o.codeObj.name)}}function le(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",18),e._uU(4),e.qZA()()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.Oqu(o.codeObj.name)}}function Ce(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",19),e._uU(4),e.qZA(),e.TgZ(5,"span",20),e._uU(6),e.qZA()()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.Oqu(o.codeObj.name),e.xp6(2),e.Oqu(o.codeObj.versionUI?"("+o.codeObj.versionUI+")":"")}}function Oe(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",21),e._uU(4),e.qZA(),e.TgZ(5,"span",22),e._uU(6),e.qZA(),e.TgZ(7,"span",20),e._uU(8),e.qZA()()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.hij("",o.codeObj.eventName," \u2192 "),e.xp6(2),e.Oqu(o.codeObj.eventListenersName),e.xp6(2),e.Oqu(o.codeObj.versionUI?"("+o.codeObj.versionUI+")":"")}}function ue(a,g){if(1&a&&(e.TgZ(0,"span",16),e._uU(1),e.qZA()),2&a){const o=e.oxw(2);e.xp6(1),e.hij(" \u2192 ",o.codeObj.name,"")}}function ge(a,g){if(1&a&&(e.TgZ(0,"span",17),e._uU(1),e.qZA()),2&a){const o=e.oxw(2);e.xp6(1),e.Oqu(o.codeObj.hookType)}}function he(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",23),e._uU(4),e.qZA(),e.TgZ(5,"span",20),e._uU(6),e.qZA(),e.YNc(7,ue,2,1,"span",24),e.YNc(8,ge,2,1,"span",25),e.qZA()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.Oqu(o.codeObj.customApiName),e.xp6(2),e.Oqu(o.codeObj.versionUI?"("+o.codeObj.versionUI+")":""),e.xp6(1),e.Q6J("ngIf",o.codeObj.hookType),e.xp6(1),e.Q6J("ngIf",o.codeObj.hookType)}}function me(a,g){if(1&a&&(e.TgZ(0,"span",16),e._uU(1),e.qZA()),2&a){const o=e.oxw(2);e.xp6(1),e.hij(" \u2192 ",o.codeObj.name,"")}}function Ee(a,g){if(1&a&&(e.TgZ(0,"span",17),e._uU(1),e.qZA()),2&a){const o=e.oxw(2);e.xp6(1),e.Oqu(o.codeObj.hookType)}}function Se(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",26),e._uU(4),e.qZA(),e.TgZ(5,"span",27),e._uU(6),e.qZA(),e.TgZ(7,"span",28),e._uU(8),e.qZA(),e.TgZ(9,"span",20),e._uU(10),e.qZA(),e.YNc(11,me,2,1,"span",24),e.YNc(12,Ee,2,1,"span",25),e.qZA()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.hij("",o.codeObj.bundleName," \u2192 "),e.xp6(2),e.Oqu(o.codeObj.apiVersion),e.xp6(2),e.hij("",o.codeObj.apiName," \u2192 "),e.xp6(2),e.Oqu(o.codeObj.versionUI?"("+o.codeObj.versionUI+")":""),e.xp6(1),e.Q6J("ngIf",o.codeObj.hookType),e.xp6(1),e.Q6J("ngIf",o.codeObj.hookType)}}function Te(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",29),e._uU(4),e.qZA(),e.TgZ(5,"span",20),e._uU(6),e.qZA()()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.Oqu(o.codeObj.utilityClassName),e.xp6(2),e.Oqu(o.codeObj.versionUI?"("+o.codeObj.versionUI+")":"")}}function fe(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",18),e._uU(4),e.qZA()()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.Oqu(o.codeObj.name)}}function Ie(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",30),e._uU(4),e.qZA()()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.Oqu(o.codeObj.name)}}function Ae(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",31),e._uU(4),e.qZA()()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.Oqu(o.codeObj.name)}}function ye(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",12),e._uU(4),e.qZA(),e.TgZ(5,"span",13),e._uU(6),e.qZA(),e.TgZ(7,"span",14),e._uU(8),e.qZA(),e.TgZ(9,"span",15),e._uU(10),e.qZA()()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.hij("",o.codeObj.instanceName," \u2192 "),e.xp6(2),e.hij("",o.codeObj.databaseName," \u2192 "),e.xp6(2),e.hij("",o.codeObj.collectionName," \u2192 "),e.xp6(2),e.hij("",o.codeObj.apiId," ")}}function Pe(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",26),e._uU(4),e.qZA(),e.TgZ(5,"span",27),e._uU(6),e.qZA(),e.TgZ(7,"span",28),e._uU(8),e.qZA()()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.hij("",o.codeObj.bundleName," \u2192 "),e.xp6(2),e.hij("",o.codeObj.apiVersion," \u2192 "),e.xp6(2),e.hij("",o.codeObj.name," ")}}function be(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",12),e._uU(4),e.qZA(),e.TgZ(5,"span",13),e._uU(6),e.qZA(),e.TgZ(7,"span",14),e._uU(8),e.qZA()()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.hij("",o.codeObj.instanceName," \u2192 "),e.xp6(2),e.hij("",o.codeObj.databaseName," \u2192 "),e.xp6(2),e.hij("",o.codeObj.collectionName," ")}}function je(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",12),e._uU(4),e.qZA(),e.TgZ(5,"span",13),e._uU(6),e.qZA(),e.TgZ(7,"span",14),e._uU(8),e.qZA()()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.hij("",o.codeObj.instanceName," \u2192 "),e.xp6(2),e.hij("",o.codeObj.databaseName," \u2192 "),e.xp6(2),e.hij("",o.codeObj.collectionName," ")}}function Me(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",12),e._uU(4),e.qZA(),e.TgZ(5,"span",13),e._uU(6),e.qZA(),e.TgZ(7,"span",14),e._uU(8),e.qZA()()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.hij("",o.codeObj.instanceName," \u2192 "),e.xp6(2),e.hij("",o.codeObj.databaseName," \u2192 "),e.xp6(2),e.hij("",o.codeObj.collectionName," ")}}function Ue(a,g){if(1&a&&(e.TgZ(0,"span")(1,"span",11),e._uU(2),e.qZA(),e.TgZ(3,"span",30),e._uU(4),e.qZA()()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("pTooltip",o.codeObj.tooltip),e.xp6(1),e.hij("",o.codeObj.prefix," : "),e.xp6(2),e.Oqu(o.codeObj.name)}}function Re(a,g){if(1&a&&(e.TgZ(0,"span",38),e._uU(1),e.qZA()),2&a){const o=e.oxw(2);e.Q6J("pTooltip",o.matchFound+" match found in this file."),e.xp6(1),e.Oqu(o.matchFound)}}function ve(a,g){if(1&a){const o=e.EpF();e.TgZ(0,"a",39),e.NdJ("click",function(){e.CHM(o);const s=e.oxw(2);return e.KtG(s.viewError())}),e._uU(1,"View error"),e.qZA()}}const De=function(){return{"margin-right":"30px"}},Ze=function(){return{}};function xe(a,g){if(1&a){const o=e.EpF();e.TgZ(0,"span")(1,"span",32),e.NdJ("click",function(){e.CHM(o);const s=e.oxw();return e.KtG(s.saveData())}),e._UZ(2,"i",33),e._uU(3,"Save "),e.qZA(),e.TgZ(4,"span",34),e.NdJ("click",function(){e.CHM(o);const s=e.oxw();return e.KtG(s.toggleResponseTab())}),e._UZ(5,"i",35),e.qZA(),e.YNc(6,Re,2,2,"span",36),e.YNc(7,ve,2,0,"a",37),e.qZA()}if(2&a){const o=e.oxw();e.xp6(1),e.Q6J("ngStyle",o.modalId?e.DdM(3,De):e.DdM(4,Ze)),e.xp6(5),e.Q6J("ngIf",o.matchFound),e.xp6(1),e.Q6J("ngIf",o.lastError)}}let Ne=(()=>{class a{generalCS;constantsS;monacoS;authCS;functionS;schedulerS;dbMigrationS;webSocketEventsS;processInitializersS;dbTokenGeneratorS;tpInstalledApisS;instanceApiSettingsS;instanceApiHooksS;instanceHooksS;databaseHooksS;collectionHooksS;systemApiSettingsS;amEventS;ns;eventCenterS;feStoreCS;i18nS;secretS;tpApiSettingsS;schemaS;dbMastersS;uiMakerUtilsS;constantsCS;cd;modalId;DOCS_HOST_PORT=A.N.DOCS_HOST_PORT;loading={grid:!1};subscriptions=[];editorCodeFinder;editorOptionsEditorCodeFinder={readOnly:!1,language:b.d.typescript,contextmenu:!0};lastError;editorOptionsMonacoEditorModal={readOnly:!0,language:"json",contextmenu:!0};gridKey=l.iH._id;BE_HOST_PORT=A.N.BE_HOST_PORT;EAPICategory=r.R;codeObj={};monacoDecorations=[];tab;insertCodeModalC;viewDockerfileModelC;lastCodeFinderObject={};matchFound=0;constructor(o,t,s,T,v,Fe,Le,Be,He,Ke,Je,ke,We,Ye,we,Qe,qe,Ge,Ve,$e,ze,Xe,eo,oo,to,so,io,ao,no){this.generalCS=o,this.constantsS=t,this.monacoS=s,this.authCS=T,this.functionS=v,this.schedulerS=Fe,this.dbMigrationS=Le,this.webSocketEventsS=Be,this.processInitializersS=He,this.dbTokenGeneratorS=Ke,this.tpInstalledApisS=Je,this.instanceApiSettingsS=ke,this.instanceApiHooksS=We,this.instanceHooksS=Ye,this.databaseHooksS=we,this.collectionHooksS=Qe,this.systemApiSettingsS=qe,this.amEventS=Ge,this.ns=Ve,this.eventCenterS=$e,this.feStoreCS=ze,this.i18nS=Xe,this.secretS=eo,this.tpApiSettingsS=oo,this.schemaS=to,this.dbMastersS=so,this.uiMakerUtilsS=io,this.constantsCS=ao,this.cd=no}ngOnInit(){this.subscriptions.push(this.eventCenterS.codeFinderResult.subscribe(o=>{if(o.length){this.codeObj=o[0],_.isEmpty(this.lastCodeFinderObject)||this.getBackupOfMonacoEditor(this.lastCodeFinderObject),this.lastCodeFinderObject=this.codeObj,this.generalCS.setValueInEditor(this,"editorCodeFinder",this.codeObj?.apiCodeStr),this.restoreBackupOfMonacoEditor(this.lastCodeFinderObject);const t=this.findMatchesInEditor(o[0].searchKeyWord);this.lastCodeFinderObject.cursorPosition={lineNumber:t[0]?.range?.startLineNumber,column:t[0]?.range?.startColumn},this?.lastCodeFinderObject?.cursorPosition?.lineNumber&&this.editorCodeFinder.setPosition(this?.lastCodeFinderObject?.cursorPosition),t[0]?.range?.startLineNumber&&this.editorCodeFinder.revealLineInCenter(t[0]?.range?.startLineNumber),t[0]?.range&&this.editorCodeFinder.revealRange(t[0].range,f.Up.REVEAL_RANGE_CENTER_IF_OUTSIDE_VIEWPORT),this.editorCodeFinder.deltaDecorations(this.monacoDecorations,[]),this.monacoDecorations=[];for(const s of t)if(this.editorCodeFinder){const v=this.editorCodeFinder.deltaDecorations([],[{range:{startLineNumber:s?.range?.startLineNumber,startColumn:s?.range?.startColumn,endLineNumber:s?.range?.endLineNumber,endColumn:s?.range?.endColumn},options:{inlineClassName:"highlightMatchedWord"}}]);this.monacoDecorations.push(...v)}this.matchFound=this.monacoDecorations.length,this.editorCodeFinder.focus()}else this.resetCodeObj();this.lastError=void 0,this.cd.detectChanges()}))}getBackupOfMonacoEditor(o){o.viewState=this.editorCodeFinder.saveViewState()}restoreBackupOfMonacoEditor(o){o.viewState&&this.editorCodeFinder.restoreViewState(o.viewState),o.cursorPosition?.lineNumber?this.editorCodeFinder.setPosition(o.cursorPosition):(o.cursorPosition={lineNumber:f.Up.DEFAULT_LINE_NUMBER,column:f.Up.DEFAULT_COLUMN_NUMBER},this.editorCodeFinder.setPosition(o.cursorPosition),this.editorCodeFinder.setScrollTop(0),this.editorCodeFinder.setScrollLeft(0)),this.editorCodeFinder.focus()}findMatchesInEditor(o){const t=(o||"").trim();if(!t||!this.editorCodeFinder)return[];const s=this.editorCodeFinder.getModel();if(s&&"function"==typeof s.findMatches){const T=s.findMatches(t,!0,!1,!1,null,!0);if(Array.isArray(T))return T}return[]}editorGenerated(o){var t=this;return(0,c.Z)(function*(){t.editorCodeFinder=o,yield t.monacoS.loadSchemaEditorSettings(t.BE_HOST_PORT,t.authCS.getUserId(),null),t.monacoS.addSaveCodeKeyBinding(o,s=>{t.codeObj&&t.saveData()}),t.editorCodeFinder.onDidChangeCursorPosition(s=>{t.lastCodeFinderObject&&1!==s.position.lineNumber&&1!==s.position.column&&(t.lastCodeFinderObject.cursorPosition=s.position)}),t.monacoS.addInsertCodeKeyBinding(o,s=>{(t.codeObj.apiCategory===r.R.INSTANCES||t.codeObj.apiCategory===r.R.THIRD_PARTY_APIS||t.codeObj.apiCategory===r.R.CUSTOM_APIS||t.codeObj.apiCategory===r.R.SYSTEM_APIS||t.codeObj.apiCategory===r.R.EVENTS||t.codeObj.apiCategory===r.R.SCHEDULERS||t.codeObj.apiCategory===r.R.UTILITY_CLASS||t.codeObj.apiCategory===r.R.MIGRATION_SCRIPT||t.codeObj.apiCategory===r.R.WEB_SOCKET_EVENT_CAN_USER_CONNECT_CODE||t.codeObj.apiCategory===r.R.PROCESS_INITIALIZER||t.codeObj.apiCategory===r.R.TOKEN_GENERATORS||t.codeObj.apiCategory===r.R.INSTANCE_API_HOOKS_JSON||t.codeObj.apiCategory!==r.R.I18N_JSON&&t.codeObj.apiCategory!==r.R.SECRET_JSON&&t.codeObj.apiCategory!==r.R.INSTANCE_API_SETTINGS_JSON&&t.codeObj.apiCategory!==r.R.THIRD_PARTY_API_SETTINGS_JSON&&t.codeObj.apiCategory!==r.R.SCHEMA_JSON&&t.codeObj.apiCategory!==r.R.SYSTEM_API_SETTINGS_JSON)&&t.insertCodeModalC.showModal(j.b.CodeFinderResultC)}),t.subscriptions.push(t.generalCS.messageReceived.subscribe(s=>{s.type&&s.type===S.g.TEXT_COPIED&&s.componentName===j.b.CodeFinderResultC&&(t.monacoS.insertAtCursor(o,s.selectedText),t.insertCodeModalC.hideModal())})),t.monacoS.addToggleCodeKeyBinding(o,s=>{t.toggleResponseTab(),t.layout.cd.detectChanges(),t.cd.detectChanges()})})()}layout;saveData(){var o=this;return(0,c.Z)(function*(){o.monacoS.clearEditorDecorations(o.editorCodeFinder,o.monacoDecorations),yield o.customApisUpdateData(),yield o.schedulerApisUpdateData(),yield o.dbMigrationUpdateData(),yield o.webSocketNotificationUpdateData(),yield o.processInitializerUpdateData(),yield o.tokenGeneratorUpdateData(),yield o.amEventsUpdateData(),yield o.tpApisUpdateData(),yield o.instanceApisSettingUpdateData(),yield o.instanceApisHooksUpdateData(),yield o.instanceHooksUpdateData(),yield o.databaseHooksUpdateData(),yield o.collectionHooksUpdateData(),yield o.sysApisSettingUpdateData(),yield o.utilityClassesUpdateData(),yield o.i18nUpdateData(),yield o.secretsUpdateData(),yield o.tpApiSettingUpdateData(),yield o.schemaUpdateData(),yield o.dbMasterUpdateData(),yield o.dbMasterUpdateJSUtilsData(),yield o.uiMakerUtilityUpdateData(),o.cd.detectChanges()})()}customApisUpdateData(){var o=this;return(0,c.Z)(function*(){if(o.codeObj.apiCategory===r.R.CUSTOM_APIS)try{const t=(yield o.functionS.getById(o.codeObj._id).toPromise()).data;o.setEditorValueInCodeOrHook(t.versions),yield o.functionS.put(t._id,t,{select:l.iH._id}).toPromise(),o.ns.showSuccess(o.constantsS.functions.editSuccess)}catch(t){o.ns.showErrorMessageFromErrorObject(t),o.lastError=t.error}if(o.codeObj.apiCategory===r.R.CUSTOM_API_JSON)try{const t=(yield o.functionS.getById(o.codeObj._id).toPromise()).data,s={_id:t._id,functionBasicInfo:o.editorCodeFinder.getValue()};yield o.functionS.put(t._id,s,{select:l.iH._id}).toPromise(),o.ns.showSuccess(o.constantsS.functions.editSuccess)}catch(t){o.ns.showErrorMessageFromErrorObject(t),o.lastError=t.error}})()}schedulerApisUpdateData(){var o=this;return(0,c.Z)(function*(){if(o.codeObj.apiCategory===r.R.SCHEDULERS)try{const t=(yield o.schedulerS.getById(o.codeObj._id).toPromise()).data;o.setEditorValueInCodeOrHook(t.versions),yield o.schedulerS.put(t._id,t,{select:l.iH._id}).toPromise(),o.ns.showSuccess(o.constantsS.schedulers.editSuccess)}catch(t){o.ns.showErrorMessageFromErrorObject(t),o.lastError=t.error}})()}dbMigrationUpdateData(){var o=this;return(0,c.Z)(function*(){if(o.codeObj.apiCategory===r.R.MIGRATION_SCRIPT)try{const t=(yield o.dbMigrationS.getById(o.codeObj._id).toPromise()).data;t.dbMigrationScriptCode=o.editorCodeFinder.getValue(),yield o.dbMigrationS.put(t._id,t,{select:l.iH._id}).toPromise(),o.ns.showSuccess(o.constantsS.dbMigration.editSuccess)}catch(t){o.catchErrorCommon(t)}})()}webSocketNotificationUpdateData(){var o=this;return(0,c.Z)(function*(){if(o.codeObj.apiCategory===r.R.WEB_SOCKET_EVENT_CAN_USER_CONNECT_CODE)try{const t=(yield o.webSocketEventsS.getById(o.codeObj._id).toPromise()).data;o.getVersionObject(t.versions,o.codeObj.version).apiCodeStr=o.editorCodeFinder.getValue(),yield o.webSocketEventsS.put(t._id,t,{select:l.iH._id}).toPromise(),o.ns.showSuccess(o.constantsS.webSocketEvents.editSuccess)}catch(t){o.catchErrorCommon(t)}})()}processInitializerUpdateData(){var o=this;return(0,c.Z)(function*(){if(o.codeObj.apiCategory===r.R.PROCESS_INITIALIZER)try{const t=(yield o.processInitializersS.getById(o.codeObj._id).toPromise()).data;t.processInitializerCode=o.editorCodeFinder.getValue(),yield o.processInitializersS.put(t._id,t,{select:l.iH._id}).toPromise(),o.ns.showSuccess(o.constantsS.processInitializer.editSuccess)}catch(t){o.catchErrorCommon(t)}})()}tokenGeneratorUpdateData(){var o=this;return(0,c.Z)(function*(){if(o.codeObj.apiCategory===r.R.TOKEN_GENERATORS)try{const t=o.codeObj.tokenGeneratorSubKey,s=(yield o.dbTokenGeneratorS.getById(o.codeObj._id).toPromise()).data;if(!s)throw new Error("Token generator not found.");const T=o.editorCodeFinder.getValue();if("fields-generator"===t)s.fieldsGeneratorFunCode=T;else if("token-generator"===t)s.customTokenGeneratorFunCode=T;else{if("token-validator"!==t)throw new Error(`Unknown token generator sub-section: ${t}.`);s.customTokenValidatorFunCode=T}yield o.dbTokenGeneratorS.put(s._id,s,{select:l.iH._id}).toPromise(),o.ns.showSuccess("Changes saved.")}catch(t){o.catchErrorCommon(t)}})()}amEventsUpdateData(){var o=this;return(0,c.Z)(function*(){if(o.codeObj.apiCategory===r.R.EVENTS)try{const t=(yield o.amEventS.getById(o.codeObj._id).toPromise()).data;for(const s of t.eventListeners)s._id===o.codeObj.eventListenersId&&s.name===o.codeObj.eventListenersName&&o.setEditorValueInCodeOrHook(s.versions);yield o.amEventS.put(t._id,t,{select:l.iH._id}).toPromise(),o.ns.showSuccess(o.constantsS.amEventListeners.editSuccess)}catch(t){o.ns.showErrorMessageFromErrorObject(t),o.lastError=t.error}})()}tpApisUpdateData(){var o=this;return(0,c.Z)(function*(){if(o.codeObj.apiCategory===r.R.THIRD_PARTY_APIS)try{const t=(yield o.tpInstalledApisS.getById(o.codeObj._id).toPromise()).data;o.setEditorValueInCodeOrHook(t.versions),yield o.tpInstalledApisS.put(t._id,t,{select:l.iH._id}).toPromise(),o.ns.showSuccess("Changes saved.")}catch(t){o.ns.showErrorMessageFromErrorObject(t),o.lastError=t.error}})()}instanceApisSettingUpdateData(){var o=this;return(0,c.Z)(function*(){if(o.codeObj.apiCategory===r.R.INSTANCE_API_SETTINGS_JSON)try{const t=(yield o.instanceApiSettingsS.getById(o.codeObj._id).toPromise()).data;o.codeObj.apiCategory===r.R.INSTANCE_API_SETTINGS_JSON&&(t.instanceApiSettingCode=o.editorCodeFinder.getValue()),yield o.instanceApiSettingsS.put(t._id,t,{select:l.iH._id}).toPromise(),o.ns.showSuccess("Changes saved.")}catch(t){o.catchErrorCommon(t)}})()}instanceApisHooksUpdateData(){var o=this;return(0,c.Z)(function*(){if(o.codeObj.apiCategory===r.R.INSTANCE_API_HOOKS_JSON)try{const t=(yield o.instanceApiHooksS.getById(o.codeObj._id).toPromise()).data;o.codeObj.apiCategory===r.R.INSTANCE_API_HOOKS_JSON&&o.codeObj.hookType&&o.prePostHooksCodeCommon(t),yield o.instanceApiHooksS.put(t._id,t,{select:l.iH._id}).toPromise(),o.ns.showSuccess("Changes saved.")}catch(t){o.catchErrorCommon(t)}})()}instanceHooksUpdateData(){var o=this;return(0,c.Z)(function*(){if(o.codeObj.apiCategory===r.R.INSTANCE_HOOKS)try{const t=(yield o.instanceApiHooksS.getById(o.codeObj._id).toPromise()).data;o.codeObj.apiCategory===r.R.INSTANCE_HOOKS&&o.codeObj.hookType&&o.prePostHooksCodeCommon(t),yield o.instanceHooksS.put(t._id,t,{select:l.iH._id}).toPromise(),o.ns.showSuccess("Changes saved.")}catch(t){o.catchErrorCommon(t)}})()}databaseHooksUpdateData(){var o=this;return(0,c.Z)(function*(){if(o.codeObj.apiCategory===r.R.DATABASE_HOOKS)try{const t=(yield o.databaseHooksS.getById(o.codeObj._id).toPromise()).data;o.codeObj.apiCategory===r.R.DATABASE_HOOKS&&o.codeObj.hookType&&o.prePostHooksCodeCommon(t),yield o.databaseHooksS.put(t._id,t,{select:l.iH._id}).toPromise(),o.ns.showSuccess("Changes saved.")}catch(t){o.catchErrorCommon(t)}})()}collectionHooksUpdateData(){var o=this;return(0,c.Z)(function*(){if(o.codeObj.apiCategory===r.R.COLLECTION_HOOKS)try{const t=(yield o.collectionHooksS.getById(o.codeObj._id).toPromise()).data;o.codeObj.apiCategory===r.R.COLLECTION_HOOKS&&o.codeObj.hookType&&o.prePostHooksCodeCommon(t),yield o.collectionHooksS.put(t._id,t,{select:l.iH._id}).toPromise(),o.ns.showSuccess("Changes saved.")}catch(t){o.catchErrorCommon(t)}})()}sysApisSettingUpdateData(){var o=this;return(0,c.Z)(function*(){if(o.codeObj.apiCategory===r.R.SYSTEM_APIS||o.codeObj.apiCategory===r.R.SYSTEM_API_SETTINGS_JSON)try{const t=(yield o.systemApiSettingsS.getById(o.codeObj._id).toPromise()).data;o.codeObj.apiCategory===r.R.SYSTEM_API_SETTINGS_JSON&&(t.sysApiSettingCode=o.editorCodeFinder.getValue()),o.codeObj.apiCategory===r.R.SYSTEM_APIS&&o.codeObj.hookType&&o.prePostHooksCodeCommon(t),yield o.systemApiSettingsS.put(t._id,t,{select:l.iH._id}).toPromise(),o.ns.showSuccess("Changes saved.")}catch(t){o.catchErrorCommon(t)}})()}utilityClassesUpdateData(){var o=this;return(0,c.Z)(function*(){if(o.codeObj.apiCategory===r.R.UTILITY_CLASS)try{const t=(yield o.feStoreCS.getByIdUtilityClasses(o.BE_HOST_PORT,o.codeObj._id).toPromise()).data;o.setEditorValueInCodeOrHook(t.versions),yield o.feStoreCS.putUtilityClasses(o.BE_HOST_PORT,t._id,t,{select:l.iH._id}).toPromise(),o.ns.showSuccess(o.constantsCS.utilityClassesS.editSuccess)}catch(t){o.ns.showErrorMessageFromErrorObject(t),o.lastError=t.error}})()}i18nUpdateData(){var o=this;return(0,c.Z)(function*(){if(o.codeObj.apiCategory===r.R.I18N_JSON)try{const t=(yield o.i18nS.getById(o.codeObj._id).toPromise()).data;t.keysCode=o.editorCodeFinder.getValue(),yield o.i18nS.put(t._id,t,{select:l.iH._id}).toPromise(),o.ns.showSuccess(o.constantsS.i18n.editSuccess)}catch(t){o.catchErrorCommon(t)}})()}secretsUpdateData(){var o=this;return(0,c.Z)(function*(){if(o.codeObj.apiCategory===r.R.SECRET_JSON)try{const t=(yield o.secretS.getById(o.codeObj._id).toPromise()).data;t.keysCode=o.editorCodeFinder.getValue(),t.keysCode=o.generalCS.getEncryptedString(t.keysCode,A.N.crypto.passCommunication),yield o.secretS.put(t._id,t,{select:l.iH._id}).toPromise(),o.ns.showSuccess(o.constantsCS.secret.editSuccess)}catch(t){o.catchErrorCommon(t)}})()}tpApiSettingUpdateData(){var o=this;return(0,c.Z)(function*(){if(o.codeObj.apiCategory===r.R.THIRD_PARTY_API_SETTINGS_JSON)try{const t=(yield o.tpApiSettingsS.getById(o.codeObj._id).toPromise()).data;t.thirdPartyApiSettingsCode=o.editorCodeFinder.getValue(),yield o.tpApiSettingsS.put(t._id,t,{select:l.iH._id}).toPromise(),o.ns.showSuccess(o.constantsS.tpApiSettings.addOrUpdateSuccess)}catch(t){o.catchErrorCommon(t)}})()}schemaUpdateData(){var o=this;return(0,c.Z)(function*(){if(o.codeObj.apiCategory===r.R.SCHEMA_JSON)try{const t=(yield o.schemaS.getById(o.codeObj._id).toPromise()).data;t.propertiesCode=o.editorCodeFinder.getValue(),yield o.schemaS.put(t._id,t,{select:l.iH._id}).toPromise(),o.ns.showSuccess("Schema updated successfully.")}catch(t){o.catchErrorCommon(t)}})()}dbMasterUpdateData(){var o=this;return(0,c.Z)(function*(){if(o.codeObj.apiCategory===r.R.DB_MASTERS_JSON)try{const t=(yield o.dbMastersS.getById(o.codeObj._id).toPromise()).data;t.dbMasterConfigCode=o.editorCodeFinder.getValue(),o.codeObj[n.nA.dbMasterConfigCode]=t.dbMasterConfigCode,yield o.dbMastersS.put(t._id,t,{select:l.iH._id}).toPromise(),o.ns.showSuccess("DB Master updated successfully.")}catch(t){o.catchErrorCommon(t)}})()}dbMasterUpdateJSUtilsData(){var o=this;return(0,c.Z)(function*(){if(o.codeObj.apiCategory===r.R.DB_MASTERS_JS_UTILS)try{const t=(yield o.dbMastersS.getById(o.codeObj._id).toPromise()).data;t.pageUtilsCode=o.editorCodeFinder.getValue(),o.codeObj[n.nA.pageUtilsCode]=t.pageUtilsCode,yield o.dbMastersS.put(t._id,t,{select:l.iH._id}).toPromise(),o.ns.showSuccess("DB Master utils updated successfully.")}catch(t){o.catchErrorCommon(t)}})()}uiMakerUtilityUpdateData(){var o=this;return(0,c.Z)(function*(){if(o.codeObj.apiCategory===r.R.UI_MAKER_UTILITY_CLASS)try{const t=(yield o.uiMakerUtilsS.getById(o.codeObj._id).toPromise()).data;t.utilsCode=o.editorCodeFinder.getValue(),o.codeObj[n.Kr.utilsCode]=t.utilsCode,yield o.uiMakerUtilsS.put(t._id,t,{select:l.iH._id}).toPromise(),o.ns.showSuccess("UI Maker utility updated successfully.")}catch(t){o.catchErrorCommon(t)}})()}setEditorValueInCodeOrHook(o){const t=this.getVersionObject(o,this.codeObj.version);this.codeObj.hookType?(this.codeObj.apiCategory===r.R.CUSTOM_APIS||this.codeObj.apiCategory===r.R.THIRD_PARTY_APIS||this.codeObj.apiCategory===r.R.SCHEDULERS||this.codeObj.apiCategory===r.R.UTILITY_CLASS||this.codeObj.apiCategory===r.R.EVENTS)&&this.prePostHooksCodeCommon(t):t.apiCodeStr=this.editorCodeFinder.getValue()}getVersionObject(o,t){for(const s of o)if(s.version===t)return s}prePostHooksCodeCommon(o){for(const t of o.preHooks)t.name===this.codeObj.name&&t._id===this.codeObj.preHookId&&"Pre Hook"===this.codeObj.hookType&&(t.hookCode=this.editorCodeFinder.getValue());for(const t of o.postHooks)t.name===this.codeObj.name&&t._id===this.codeObj.postHookId&&"Post Hook"===this.codeObj.hookType&&(t.hookCode=this.editorCodeFinder.getValue())}resetCodeObj(){this.codeObj={},this.editorCodeFinder.setValue("")}catchErrorCommon(o){this.ns.showErrorMessageFromErrorObject(o),this.lastError=o.error,this.tab=this.tab||{},this.tab.axiosResponse={data:o.error},this.monacoS.highlightErrorInMonacoEditor(this.editorCodeFinder,this.tab,"MainSandbox.ts",this.monacoDecorations)}viewError(){this.viewDockerfileModelC.showModal(this.generalCS.stringify(this.lastError),b.d.json)}isResponseCollapsed=!1;toggleResponseTab(){this.isResponseCollapsed=!this.isResponseCollapsed,this.layout.isResponseCollapsed=!this.layout.isResponseCollapsed}ngOnDestroy(){this.generalCS.unsubscribe(this.subscriptions)}static \u0275fac=function(t){return new(t||a)(e.Y36(h.b),e.Y36(I.L),e.Y36(U.b),e.Y36(y.D),e.Y36(D.d),e.Y36(M.Z),e.Y36(Z.j),e.Y36(O.a),e.Y36(E.e),e.Y36(d.T),e.Y36(m.d),e.Y36(p.f),e.Y36(u.S),e.Y36(N.Q),e.Y36(F.y),e.Y36(L.l),e.Y36(B.J),e.Y36(H.l),e.Y36(K.W),e.Y36(J.u),e.Y36(k.e),e.Y36(W.q),e.Y36(Y.e),e.Y36(w.G),e.Y36(Q.$),e.Y36(q.z),e.Y36(G.L),e.Y36(V.s),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:a,selectors:[["app-code-finder-result"]],viewQuery:function(t,s){if(1&t&&(e.Gf(te,5),e.Gf(se,5)),2&t){let T;e.iGM(T=e.CRH())&&(s.insertCodeModalC=T.first),e.iGM(T=e.CRH())&&(s.viewDockerfileModelC=T.first)}},inputs:{modalId:"modalId"},decls:34,vars:32,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header","font-weight-normal"],[2,"font-size","small"],[1,"fas","fa-list-alt","text-yellow","fa-fw","mr-1"],[4,"ngIf"],[1,"overflow-hidden","h-100"],[3,"isSchemaEditor","editorOptions","editorGenerated"],[3,"frameId","modalId","docsHostPort"],["insertCodeModalC",""],[3,"modalId","editorOptionsMonacoEditorModal","modalTitle"],["monacoEditorModalC",""],["tooltipPosition","top",3,"pTooltip"],["pTooltip","Instances","tooltipPosition","top",1,"pl-1"],["pTooltip","Databases","tooltipPosition","top",1,"pl-1"],["pTooltip","Collections","tooltipPosition","top",1,"pl-1"],["pTooltip","API","tooltipPosition","top",1,"pl-1"],["pTooltip","Hook Name","tooltipPosition","top",1,"pl-1"],["pTooltip","Hook Type","tooltipPosition","top",1,"pl-1","small","text-secondary"],["pTooltip","Name","tooltipPosition","top",1,"pl-1"],["pTooltip","Schedulers Name","tooltipPosition","top",1,"pl-1"],["pTooltip","Version","tooltipPosition","top",1,"pl-1","small","text-secondary"],["pTooltip","Event Name","tooltipPosition","top",1,"pl-1"],["pTooltip","Listener Name","tooltipPosition","top",1,"pl-1"],["pTooltip","Custom API Name","tooltipPosition","top",1,"pl-1"],["class","pl-1","pTooltip","Hook Name","tooltipPosition","top",4,"ngIf"],["class","pl-1 small text-secondary","pTooltip","Hook Type","tooltipPosition","top",4,"ngIf"],["pTooltip","Library","tooltipPosition","top",1,"pl-1"],["pTooltip","API Versions","tooltipPosition","top",1,"pl-1"],["pTooltip","API Name","tooltipPosition","top",1,"pl-1"],["pTooltip","Utility Class Name","tooltipPosition","top",1,"pl-1"],["pTooltip","Secret Name","tooltipPosition","top",1,"pl-1"],["pTooltip","System Api Name","tooltipPosition","top",1,"pl-1"],[1,"float-right","cursor-pointer","ml-3",3,"ngStyle","click"],[1,"fas","fa-save","text-success","fa-fw","mr-1"],["pTooltip","Toggle response panel","tooltipPosition","left",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-window-maximize","text-info","fa-fw","fa-rotate-90"],["class","mr-2 font-weight-bold float-right matchCircle",3,"pTooltip",4,"ngIf"],["href","javascript:;","class","text-danger float-right mr-2",3,"click",4,"ngIf"],[1,"mr-2","font-weight-bold","float-right","matchCircle",3,"pTooltip"],["href","javascript:;",1,"text-danger","float-right","mr-2",3,"click"]],template:function(t,s){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span",2),e._UZ(3,"i",3),e.YNc(4,ie,15,8,"span",4),e.YNc(5,ae,9,5,"span",4),e.YNc(6,ne,11,6,"span",4),e.YNc(7,re,13,7,"span",4),e.YNc(8,de,9,5,"span",4),e.YNc(9,ce,9,5,"span",4),e.YNc(10,_e,5,3,"span",4),e.YNc(11,pe,5,3,"span",4),e.YNc(12,le,5,3,"span",4),e.YNc(13,Ce,7,4,"span",4),e.YNc(14,Oe,9,5,"span",4),e.YNc(15,he,9,6,"span",4),e.YNc(16,Se,13,8,"span",4),e.YNc(17,Te,7,4,"span",4),e.YNc(18,fe,5,3,"span",4),e.YNc(19,Ie,5,3,"span",4),e.YNc(20,Ae,5,3,"span",4),e.YNc(21,ye,11,6,"span",4),e.YNc(22,Pe,9,5,"span",4),e.YNc(23,be,9,5,"span",4),e.YNc(24,je,9,5,"span",4),e.YNc(25,Me,9,5,"span",4),e.YNc(26,Ue,5,3,"span",4),e.qZA(),e.YNc(27,xe,8,5,"span",4),e.qZA(),e.TgZ(28,"div",5)(29,"app-monaco-editor",6),e.NdJ("editorGenerated",function(v){return s.editorGenerated(v)}),e.qZA()()(),e._UZ(30,"app-insert-code-modal",7,8)(32,"app-monaco-editor-modal",9,10)),2&t&&(e.xp6(4),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.INSTANCE_API_HOOKS_JSON),e.xp6(1),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.INSTANCE_HOOKS),e.xp6(1),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.DATABASE_HOOKS),e.xp6(1),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.COLLECTION_HOOKS),e.xp6(1),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.SYSTEM_APIS),e.xp6(1),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.SYSTEM_API_HOOKS_JSON),e.xp6(1),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.MIGRATION_SCRIPT),e.xp6(1),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.WEB_SOCKET_EVENT_CAN_USER_CONNECT_CODE),e.xp6(1),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.PROCESS_INITIALIZER),e.xp6(1),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.SCHEDULERS),e.xp6(1),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.EVENTS),e.xp6(1),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.CUSTOM_APIS),e.xp6(1),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.THIRD_PARTY_APIS),e.xp6(1),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.UTILITY_CLASS),e.xp6(1),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.I18N_JSON),e.xp6(1),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.SECRET_JSON),e.xp6(1),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.SYSTEM_API_SETTINGS_JSON),e.xp6(1),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.INSTANCE_API_SETTINGS_JSON),e.xp6(1),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.THIRD_PARTY_API_SETTINGS_JSON),e.xp6(1),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.SCHEMA_JSON),e.xp6(1),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.DB_MASTERS_JSON),e.xp6(1),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.DB_MASTERS_JS_UTILS),e.xp6(1),e.Q6J("ngIf",s.codeObj&&s.codeObj.apiCategory===s.EAPICategory.UI_MAKER_UTILITY_CLASS),e.xp6(1),e.Q6J("ngIf",s.codeObj.apiCategory),e.xp6(2),e.Q6J("isSchemaEditor",!0)("editorOptions",s.editorOptionsEditorCodeFinder),e.xp6(1),e.Q6J("frameId","idInsertCodeFinder")("modalId","idInsertCodeFinderForm")("docsHostPort",s.DOCS_HOST_PORT),e.xp6(2),e.Q6J("modalId","idMonacoEditorModalInCodeFinder")("editorOptionsMonacoEditorModal",s.editorOptionsMonacoEditorModal)("modalTitle","Error info"))},dependencies:[x.O5,x.PC,z.P,X.O,ee.u,oe.A],styles:[".from-modal[_ngcontent-%COMP%]{height:calc(100vh - 117px)}.from-page[_ngcontent-%COMP%]{height:calc(100vh - 87px)}.matchCircle[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;font-size:.72rem;font-weight:700;line-height:1;color:#1b1402;background-image:linear-gradient(135deg,#ffd166 0%,#f0a500 100%);border:1px solid rgba(217,154,7,.55);box-shadow:0 1px 4px #d99a0759}.card-header[_ngcontent-%COMP%] .cursor-pointer[_ngcontent-%COMP%]{font-weight:500}"],changeDetection:0})}return a})()},17566:(R,P,i)=>{i.d(P,{Q:()=>D});var c=i(15861),_=i(51162),C=i(45085),n=i(94946),l=i(53429),A=i(95852),r=i(99961),b=i(32915),j=i(77240),S=i(60095),f=i(96814),e=i(97680),h=i(33259),I=i(44879);function U(M,Z){if(1&M&&(n.TgZ(0,"span",23),n._uU(1),n.qZA()),2&M){const O=n.oxw();n.xp6(1),n.hij("Total Items: ",O.searchArrays.length,"")}}function y(M,Z){1&M&&n._UZ(0,"p-progressSpinner",24)}let D=(()=>{class M{instanceS;authCS;ns;eventCenterS;cd;generalS;loading={grid:!1};subscriptions=[];searchArrays=[];gridKey=_.iH._id;searchText="";isCaseSensitive=!1;constructor(O,E,d,m,p,u){this.instanceS=O,this.authCS=E,this.ns=d,this.eventCenterS=m,this.cd=p,this.generalS=u}ngOnInit(){this.generalS.setNewTitle("Code Finder")}codeSearch(){var O=this;return(0,c.Z)(function*(){try{O.loading.grid=!0;const E={text:O.searchText.trim(),user:O.authCS.getUserId(),isCaseSensitive:O.isCaseSensitive};if(E.text){const d=yield O.instanceS.codeFinderData(E);if(d.success)if(O.searchArrays=d.data,O.searchArrays.length)O.showDataInUI();else{const m=[];m.push('<div class="bold text-warning cursor-pointer pt-3 text-center">\n <span class="pl-2">No match found</span>\n </div>'),$("[name='codeBlock']").html(m.join("")),O.eventCenterS.codeFinderResult.next([])}}O.loading.grid=!1,O.cd.detectChanges()}catch(E){O.ns.showErrorFromResponse(E.error||E,"Unable to code search.")}})()}showDataInUI(){const O=[],E=[];for(const d of this.searchArrays){const m=this.searchArrays.indexOf(d);let p="",u="";d.apiCategory===C.R.SCHEDULERS?(p="SCH",u="Scheduler"):d.apiCategory===C.R.MIGRATION_SCRIPT?(p="DB-MS",u="Database Migration Script"):d.apiCategory===C.R.WEB_SOCKET_EVENT_CAN_USER_CONNECT_CODE?(p="WSN",u="WebSocket User Can Connect"):d.apiCategory===C.R.PROCESS_INITIALIZER?(p="PI",u="Process Initializer"):d.apiCategory===C.R.EVENTS?(p="EV",u="Event"):d.apiCategory===C.R.CUSTOM_APIS?(p="CA",u="Custom APIs"):d.apiCategory===C.R.THIRD_PARTY_APIS?(p="TP",u="Third Party APIs"):d.apiCategory===C.R.THIRD_PARTY_API_SETTINGS_JSON?(p="TP-S",u="Third Party API Settings"):d.apiCategory===C.R.INSTANCE_API_SETTINGS_JSON?(p="INS-J",u="Instance APIs Settings"):d.apiCategory===C.R.INSTANCE_API_HOOKS_JSON?(p="INS-API-Hook",u="Instance APIs Hooks"):d.apiCategory===C.R.INSTANCE_HOOKS?(p="INS-Hook",u="Instance Hooks"):d.apiCategory===C.R.DATABASE_HOOKS?(p="DB-Hook",u="Database Hooks"):d.apiCategory===C.R.COLLECTION_HOOKS?(p="COL-Hook",u="Collection Hooks"):d.apiCategory===C.R.SYSTEM_API_SETTINGS_JSON?(p="SYS-J",u="System API Settings"):d.apiCategory===C.R.SYSTEM_API_HOOKS_JSON?(p="SYS-Hook",u="System API Hooks"):d.apiCategory===C.R.UTILITY_CLASS?(p="UTIL",u="Utility Classes"):d.apiCategory===C.R.I18N_JSON?(p="I18N",u="Internationalization Settings"):d.apiCategory===C.R.SECRET_JSON?(p="SEC",u="Secret"):d.apiCategory===C.R.SCHEMA_JSON?(p="SC",u="Schema"):d.apiCategory===C.R.DB_MASTERS_JSON?(p="DMC",u="DB Master Config"):d.apiCategory===C.R.DB_MASTERS_JS_UTILS?(p="DMU",u="DB Master Utils"):d.apiCategory===C.R.UI_MAKER_UTILITY_CLASS?(p="UMU",u="UI Maker Utils"):(p=d.categoryName,u=d.categoryName),d.prefix=p,d.tooltip=u,d.versionUI="-1"===d?.version?"Original":d?.version?d.version:"",O.push('<div class="bold cursor-pointer pt-1">'),O.push('<i class="fas fa-times fa-fw text-danger float-right pt-1 nameRemoveSearchResultBlock"></i>'),O.push(`<span class="pl-2 font-weight-bold" title="${u}">${p} :</span>`),d.name&&O.push(`<span class="pl-2">${d.name}</span>`),d.versionUI&&O.push(`<span class="pl-2 small text-secondary">${"("+d.versionUI+")"}</span>`),d.hookType&&O.push(`<span class="pl-2 small">${"["+d.hookType+"]"}</span>`),O.push(`<pre class="h-100 language-javascript m-1 cursor-pointer"><code name="namePrismCss" id="idCodeFinder_${m}" class="language-javascript"></code></pre>`),O.push("</div>"),E.push({i:m,code:d.apiCode})}$("[name='codeBlock']").html(O.join(""));for(const d of E)$(`#idCodeFinder_${d.i}`).text(d.code),Prism.highlightElement(document.getElementById(`idCodeFinder_${d.i}`));this.cd.detectChanges(),$("pre.language-javascript").on("click",d=>{$("pre.bg-primary").removeClass("bg-primary"),$(d.currentTarget.className+=" bg-primary");const m=$(d.currentTarget.childNodes).attr("id").split("_")[1];this.searchArrays[m].searchKeyWord=this.searchText.trim(),this.eventCenterS.codeFinderResult.next([this.searchArrays[m]])}),$("i.nameRemoveSearchResultBlock").on("click",d=>{const m=Number($(d.currentTarget).parent().find("code[name=namePrismCss]").attr("id").split("_")[1]);this.searchArrays.splice(m,1),this.showDataInUI()})}clear(){this.searchText="",this.eventCenterS.codeFinderResult.next([]),$("[name='codeBlock']").empty(),this.searchArrays=[]}static \u0275fac=function(E){return new(E||M)(n.Y36(l.E),n.Y36(A.D),n.Y36(r.W),n.Y36(b.u),n.Y36(n.sBO),n.Y36(j.b))};static \u0275cmp=n.Xpm({type:M,selectors:[["app-code-finder-search"]],decls:28,vars:10,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header","font-weight-normal"],["alt","Code Finder",1,"fa-fw","mr-1",3,"src"],["class","pl-3 text-info",4,"ngIf"],[1,"float-right"],["href","https://docs.apimaker.dev/v1/docs/features/code-finder.html","target","_blank"],[1,"fa-fw","ml-2","mr-1","mt-n1",2,"font-size","25px",3,"src"],[1,"pt-1","pl-1","pr-1"],[1,"input-group","input-group-sm","mb-1"],["name","searchText","id","code_search","placeholder","Enter To Search",1,"form-control","form-control-sm",3,"ngModel","ngModelChange","keyup.enter"],[1,"input-group-append"],["type","button","pTooltip","Clear","tooltipPosition","bottom",1,"btn","btn-outline-secondary",3,"click"],[1,"fas","fa-ban","fa-fw","text-danger"],["type","button","data-toggle","dropdown","pTooltip","Options","aria-haspopup","true","aria-expanded","false",1,"btn","btn-outline-secondary"],[1,"fas","fa-ellipsis-v"],[1,"dropdown-menu","dropdown-menu-right","p-2"],["for","idIsCaseSensitive",1,"cf-option","mb-0"],["type","checkbox","name","idIsCaseSensitive","id","idIsCaseSensitive",1,"mr-2",3,"ngModel","ngModelChange"],[1,"card-body","p-0","h-100","overflow-auto"],[1,"position-relative","h-100"],[1,"overflow-auto"],["name","codeBlock"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[1,"pl-3","text-info"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(E,d){1&E&&(n.TgZ(0,"div",0)(1,"div",1)(2,"span"),n._UZ(3,"img",2),n.ALo(4,"themeIcon"),n._uU(5," Search"),n.qZA(),n.YNc(6,U,2,1,"span",3),n.TgZ(7,"div",4)(8,"a",5),n._UZ(9,"img",6),n.ALo(10,"themeIcon"),n.qZA()()(),n.TgZ(11,"div",7)(12,"div",8)(13,"input",9),n.NdJ("ngModelChange",function(p){return d.searchText=p})("keyup.enter",function(){return d.codeSearch()}),n.qZA(),n.TgZ(14,"div",10)(15,"button",11),n.NdJ("click",function(){return d.clear()}),n._UZ(16,"i",12),n.qZA(),n.TgZ(17,"button",13),n._UZ(18,"i",14),n.qZA(),n.TgZ(19,"div",15)(20,"label",16)(21,"input",17),n.NdJ("ngModelChange",function(p){return d.isCaseSensitive=p}),n.qZA(),n._uU(22," Case Sensitive "),n.qZA()()()()(),n.TgZ(23,"div",18)(24,"div",19)(25,"div",20),n._UZ(26,"div",21),n.YNc(27,y,1,0,"p-progressSpinner",22),n.qZA()()()()),2&E&&(n.xp6(3),n.Q6J("src",n.lcZ(4,6,"/assets/images/icons/finder.svg"),n.LSH),n.xp6(3),n.Q6J("ngIf",d.searchArrays.length),n.xp6(3),n.Q6J("src",n.lcZ(10,8,"/assets/images/logo/logo_docs.svg"),n.LSH),n.xp6(4),n.Q6J("ngModel",d.searchText),n.xp6(8),n.Q6J("ngModel",d.isCaseSensitive),n.xp6(6),n.Q6J("ngIf",d.loading.grid))},dependencies:[S.Fj,S.Wl,S.JJ,S.On,f.O5,e.G,h.u,I.w],styles:[".cf-option[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;font-size:.85rem;white-space:nowrap;-webkit-user-select:none;user-select:none}.cf-option[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{cursor:pointer} .input-group-append .btn{display:inline-flex;align-items:center}"],changeDetection:0})}return M})()},53300:(R,P,i)=>{i.d(P,{k:()=>S});var c=i(51162),_=i(94946),C=i(77240),n=i(96814),l=i(17566),A=i(365);const r=["codeFinderResult"],b=function(f,e){return{"col-4":f,"d-none":e}},j=function(f,e){return{"col-8":f,"col-12":e}};let S=(()=>{class f{cd;generalS;modalId="idDefaultCodeFinderId";loading={grid:!1};subscriptions=[];gridKey=c.iH._id;codeFinderResult;constructor(h,I){this.cd=h,this.generalS=I}ngOnInit(){setTimeout(()=>{this.codeFinderResult.layout=this},1e3)}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}static \u0275fac=function(I){return new(I||f)(_.Y36(_.sBO),_.Y36(C.b))};static \u0275cmp=_.Xpm({type:f,selectors:[["app-code-finder-w"]],viewQuery:function(I,U){if(1&I&&_.Gf(r,5),2&I){let y;_.iGM(y=_.CRH())&&(U.codeFinderResult=y.first)}},inputs:{modalId:"modalId"},decls:7,vars:9,consts:[[1,"pt-1","pl-1","pr-1"],[1,"row","m-0","overflow-hidden","code-finder-height"],[1,"p-0","h-100",3,"ngClass"],[1,"w-100"],[1,"w-100",3,"modalId"],["codeFinderResult",""]],template:function(I,U){if(1&I&&(_.TgZ(0,"div",0)(1,"div",1)(2,"div",2),_._UZ(3,"app-code-finder-search",3),_.qZA(),_.TgZ(4,"div",2),_._UZ(5,"app-code-finder-result",4,5),_.qZA()()()),2&I){const y=_.MAs(6);_.xp6(2),_.Q6J("ngClass",_.WLB(3,b,!y.isResponseCollapsed,y.isResponseCollapsed)),_.xp6(2),_.Q6J("ngClass",_.WLB(6,j,!y.isResponseCollapsed,y.isResponseCollapsed)),_.xp6(1),_.Q6J("modalId",U.modalId)}},dependencies:[n.mk,l.Q,A.n],encapsulation:2,changeDetection:0})}return f})()},27470:(R,P,i)=>{i.r(P),i.d(P,{CodeFinderM:()=>e});var c=i(77664),_=i(17017),C=i(63726),n=i(53300),b=(i(92883),i(17566),i(365),i(44950)),j=i(94946);const S=[{path:"finder",component:n.k,canActivate:[C.P]}];let e=(()=>{class h{static \u0275fac=function(y){return new(y||h)};static \u0275mod=j.oAB({type:h});static \u0275inj=j.cJS({imports:[c.Bz.forChild(S),_.u,b.A]})}return h})()},99150:(R,P,i)=>{i.d(P,{T:()=>j});var c=i(20553),_=i(19394),C=i(46178),n=i(94946),l=i(69862),A=i(95852),r=i(99961),b=i(27414);let j=(()=>{class S extends C.g{http;authCS;ns;cs;constructor(e,h,I,U){super(e,_.k4.TOKEN_GENERATORS),this.http=e,this.authCS=h,this.ns=I,this.cs=U}getTokenGeneratorsAsAPI(e){const h=this.authCS.getUserPath();return this.http.post(c.N.BE_HOST_PORT_SITES+`${this.modelPath}/${h}/token-generators-api-list-arr`,{},{headers:e})}static \u0275fac=function(h){return new(h||S)(n.LFG(l.eN),n.LFG(A.D),n.LFG(r.W),n.LFG(b.L))};static \u0275prov=n.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[7649],{57649:(L,C,i)=>{i.r(C),i.d(C,{UtilityClassesM:()=>R});var p=i(77664),u=i(17017),m=i(63726),c=i(15861),d=i(20553),s=i(94946),f=i(13065),v=i(77240),T=i(96814),h=i(73535),O=i(5290);const g=["utilityClassesFormC"],S=["utilityClassesListC"],A=function(e,r){return{"col-3":e,"d-none":r}},F=function(e,r){return{"col-9":e,"col-12":r}};const P=[{path:"utility-classes-internal/main",component:(()=>{class e{cd;apiS;generalS;projectType="AM";BE_HOST_PORT=d.N.BE_HOST_PORT;DOCS_HOST_PORT=d.N.DOCS_HOST_PORT;loading={form:!1,response:!1};editorOptionsVersions={readOnly:!1,language:"typescript",contextmenu:!0};utilityClassesFormC;utilityClassesListC;constructor(t,o,l){this.cd=t,this.apiS=o,this.generalS=l}ngOnInit(){var t=this;this.generalS.setNewTitle("Utility Classes"),setTimeout((0,c.Z)(function*(){t.utilityClassesFormC.layout=t,t.utilityClassesFormC.heightClass="height-page",t.utilityClassesListC.utilityClassesForm=t.utilityClassesFormC,yield t.utilityClassesListC.init(),yield t.utilityClassesFormC.init(),t.utilityClassesFormC.cd.detectChanges()}),1e3)}saveVersionCode(t){var o=this;return(0,c.Z)(function*(){const l=t;yield o.apiS.saveVersionCode(l)})()}static \u0275fac=function(o){return new(o||e)(s.Y36(s.sBO),s.Y36(f.k),s.Y36(v.b))};static \u0275cmp=s.Xpm({type:e,selectors:[["app-utility-classes-layout"]],viewQuery:function(o,l){if(1&o&&(s.Gf(g,5),s.Gf(S,5)),2&o){let a;s.iGM(a=s.CRH())&&(l.utilityClassesFormC=a.first),s.iGM(a=s.CRH())&&(l.utilityClassesListC=a.first)}},decls:8,vars:19,consts:[["id","idUtilityClassesFormPanel",1,"pt-1","pl-1","pr-1","overflow-auto"],[1,"row","m-0","full-body"],[1,"p-0",3,"ngClass"],[3,"projectType","hostAndPort","isFromModal"],["utilityClassesListC",""],[3,"hostAndPort","editorOptionsVersions","docsHostAndPort","data","loading","projectType","saveVersionCode"],["utilityClassesFormC",""]],template:function(o,l){if(1&o&&(s.TgZ(0,"div",0)(1,"div",1)(2,"div",2),s._UZ(3,"app-utility-classes-list",3,4),s.qZA(),s.TgZ(5,"div",2)(6,"app-utility-classes-form",5,6),s.NdJ("saveVersionCode",function(n){return l.saveVersionCode(n)}),s.qZA()()()()),2&o){const a=s.MAs(4),n=s.MAs(7);s.xp6(2),s.Q6J("ngClass",s.WLB(13,A,!n.isResponseCollapsed,n.isResponseCollapsed)),s.xp6(1),s.Q6J("projectType","AM")("hostAndPort",l.BE_HOST_PORT)("isFromModal",!1),s.xp6(2),s.Udp("display",a.selectedRows.length?"block":"none"),s.Q6J("ngClass",s.WLB(16,F,!n.isResponseCollapsed,n.isResponseCollapsed)),s.xp6(1),s.Q6J("hostAndPort",l.BE_HOST_PORT)("editorOptionsVersions",l.editorOptionsVersions)("docsHostAndPort",l.DOCS_HOST_PORT)("data",a.data)("loading",l.loading)("projectType","AM")}},dependencies:[T.mk,h.w,O.D]})}return e})(),canActivate:[m.P]}];let R=(()=>{class e{static \u0275fac=function(o){return new(o||e)};static \u0275mod=s.oAB({type:e});static \u0275inj=s.cJS({imports:[p.Bz.forChild(P),u.u]})}return e})()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[7975],{96522:(v,E,o)=>{o.d(E,{i:()=>ie});var p=o(15861),s=o(60095),m=o(33157),l=o(90328),D=o(59361),g=o(51162),f=o(20553),O=o(45085),C=o(91601),u=o(3531),T=o(39989),e=o(94946),I=o(99961),h=o(77240),P=o(27414),S=o(90602),A=o(95852),Z=o(45809),U=o(53429),x=o(32915),F=o(33835),y=o(96814),R=o(32660),L=o(5860),B=o(756),K=o(97680),b=o(14844),W=o(33259),N=o(38057),J=o(25025),Y=o(44879);const V=["insertCodeModalC"],w=["monacoEditorModalC"];function Q(n,d){1&n&&(e.TgZ(0,"span"),e._UZ(1,"i",27),e._uU(2," Add Database Migration"),e.qZA())}function H(n,d){1&n&&(e.TgZ(0,"span"),e._UZ(1,"i",28),e._uU(2," View Database Migration"),e.qZA())}function G(n,d){1&n&&(e.TgZ(0,"span"),e._UZ(1,"i",29),e._uU(2," Edit Database Migration"),e.qZA())}function k(n,d){1&n&&(e.TgZ(0,"span",42),e._uU(1,"You can not change name later, it can be used in script."),e.qZA())}function j(n,d){1&n&&(e.TgZ(0,"span",42),e._uU(1,"You can change Label later."),e.qZA())}function X(n,d){if(1&n){const a=e.EpF();e.TgZ(0,"div")(1,"form",30)(2,"div",31)(3,"label",32),e._uU(4,"Name"),e.qZA(),e.TgZ(5,"div",33)(6,"input",34),e.NdJ("keyup",function(){e.CHM(a);const t=e.oxw();return e.KtG(t.form.get("label").setValue(t.form.get("name").value))}),e.qZA(),e.YNc(7,k,2,0,"span",35),e.qZA()(),e.TgZ(8,"div",31)(9,"label",32),e._uU(10,"Label"),e.qZA(),e.TgZ(11,"div",33),e._UZ(12,"input",36),e.YNc(13,j,2,0,"span",35),e.qZA()(),e.TgZ(14,"div",31)(15,"label",32),e._uU(16,"Order"),e.qZA(),e.TgZ(17,"div",33),e._UZ(18,"input",37),e.qZA()(),e.TgZ(19,"div",31)(20,"label",32),e._uU(21,"Timeout in minutes"),e.qZA(),e.TgZ(22,"div",33),e._UZ(23,"input",38),e.qZA()(),e.TgZ(24,"div",31),e._UZ(25,"label",32),e.TgZ(26,"div",33),e._UZ(27,"i",39),e.TgZ(28,"label",40),e._UZ(29,"p-checkbox",41),e.qZA()()()()()}if(2&n){const a=e.oxw();e.xp6(1),e.Q6J("formGroup",a.form),e.xp6(6),e.Q6J("ngIf",a.data.mode===a.EFormMode.ADD),e.xp6(6),e.Q6J("ngIf",a.data.mode===a.EFormMode.ADD),e.xp6(16),e.Q6J("binary",!0)}}function z(n,d){if(1&n){const a=e.EpF();e.TgZ(0,"div",43)(1,"app-monaco-editor",44),e.NdJ("editorGenerated",function(t){e.CHM(a);const r=e.oxw();return e.KtG(r.editorGenerated(t))}),e.qZA()()}if(2&n){const a=e.oxw();e.xp6(1),e.Q6J("isSchemaEditor",!0)("editorOptions",a.editorOptionsDBMigration)}}function q(n,d){if(1&n){const a=e.EpF();e.TgZ(0,"a",45),e.NdJ("click",function(){e.CHM(a);const t=e.oxw();return e.KtG(t.viewError())}),e._uU(1,"View error"),e.qZA()}}function ee(n,d){1&n&&(e.TgZ(0,"span"),e._uU(1,"Save"),e.qZA())}function ae(n,d){1&n&&(e.TgZ(0,"span"),e._uU(1,"Update"),e.qZA())}function te(n,d){if(1&n){const a=e.EpF();e.TgZ(0,"button",46),e.NdJ("click",function(){e.CHM(a);const t=e.oxw();return e.KtG(t.save())}),e._UZ(1,"i",47),e.YNc(2,ee,2,0,"span",4),e.YNc(3,ae,2,0,"span",4),e.qZA()}if(2&n){const a=e.oxw();e.Q6J("disabled",a.form.invalid),e.xp6(2),e.Q6J("ngIf",a.data.mode===a.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",a.data.mode===a.EFormMode.EDIT)}}function oe(n,d){1&n&&e._UZ(0,"p-progressSpinner",48)}let ie=(()=>{class n{fb;ns;generalS;constantsS;dbMigrationS;authCS;monacoS;instanceS;eventCenterS;generalCS;userS;cd;data;loading={form:!1};EFormMode=l.D;form;subscriptions=[];formData;IEventData=m.F;id;BE_HOST_PORT=f.N.BE_HOST_PORT;DOCS_HOST_PORT=f.N.DOCS_HOST_PORT;instances=[];editorDbM;editorOptionsDBMigration={readOnly:!1,language:"typescript",contextmenu:!0};lastError;editorOptionsMonacoEditorModal={readOnly:!0,language:"json",contextmenu:!0};insertCodeModalC;viewDockerfileModelC;shouldLoadMonacoEditor=!1;monacoDecorations=[];tab;constructor(a,i,t,r,M,c,_,ne,re,se,de,_e){this.fb=a,this.ns=i,this.generalS=t,this.constantsS=r,this.dbMigrationS=M,this.authCS=c,this.monacoS=_,this.instanceS=ne,this.eventCenterS=re,this.generalCS=se,this.userS=de,this.cd=_e}ngOnInit(){var a=this;return(0,p.Z)(function*(){a.createForm(),a.subscriptions.push(a.data.eventChannel.subscribe(function(){var i=(0,p.Z)(function*(t){if(t)if(a.form.enable(),t.action===m.F.OPEN_FORM_IN_EDIT_MODE)yield a.editViewLoadData(),a.form.get("name").disable(),a.cd.detectChanges();else if(t.action===m.F.OPEN_FORM_IN_VIEW_MODE)yield a.editViewLoadData(),a.form.disable(),a.cd.detectChanges();else if(t.action===m.F.OPEN_FORM_IN_ADD_MODE){a.form.reset(),a.form.patchValue(t.data||{});const r=yield a.instanceS.getDefaultContent(a.BE_HOST_PORT,O.R.MIGRATION_SCRIPT).toPromise();a.editorOptionsDBMigration={readOnly:!1},a.generalCS.setValueInEditor(a,"editorDbM",r.data),a.cd.detectChanges()}});return function(t){return i.apply(this,arguments)}}()))})()}editViewLoadData(){var a=this;return(0,p.Z)(function*(){const i=yield a.dbMigrationS.queryOne({find:{guid:a.data.formData.guid,user:a.authCS.gUser._id}});a.form.reset(),a.form.patchValue(i),a.form.get("isScriptExecutedCalculated").setValue(a.data.formData.isScriptExecutedCalculated),a.generalCS.setValueInEditor(a,"editorDbM",i?.dbMigrationScriptCode||"")})()}createForm(){this.form=this.fb.group({name:[null,[s.kI.required]],order:[null,[s.kI.required]],label:[null,[s.kI.required]],dbMigrationTimeoutInMinutes:[null,[]],isScriptExecutedCalculated:[!1,[]],executedMigrationScripts:[!1,[]]})}showModal(){this.lastError=void 0,this.shouldLoadMonacoEditor=!0,setTimeout(()=>{$("#idDbMigrationForm").modal("show")},100)}hideModal(){$("#idDbMigrationForm").modal("hide")}save(){var a=this;return(0,p.Z)(function*(){const i=a.form.getRawValue();let t;t=a.data.formData&&a.data.formData._id?yield a.dbMigrationS.queryOne({find:{guid:a.data.formData.guid,user:a.authCS.gUser._id}}):{};const r=Object.assign({},t,i);r.user=a.authCS.getUserId(),r.dbMigrationScriptCode=a.editorDbM.getValue();const M=(yield a.userS.getById(a.authCS.gUser._id).toPromise()).data,c={};c._id=M._id,c.executedMigrationScripts=M.executedMigrationScripts,c.executedMigrationScripts=c.executedMigrationScripts||{},c.executedMigrationScripts[r.name]=!!i.isScriptExecutedCalculated,yield a.userS.put(a.authCS.gUser._id,c,{select:g.iH._id}).toPromise();try{let _;a.loading.form=!0,a.lastError=void 0,a.monacoS.clearEditorDecorations(a.editorDbM,a.monacoDecorations),a.data.mode===l.D.ADD?_=yield a.dbMigrationS.post(r).toPromise():a.data.mode===l.D.EDIT&&(_=yield a.dbMigrationS.put(r._id,r,{select:g.iH._id}).toPromise()),a.ns.showSuccess(a.data.mode===l.D.ADD?a.constantsS.dbMigration.addSuccess:a.constantsS.dbMigration.editSuccess),a.data.eventChannel.emit({action:a.data.mode===l.D.ADD?m.F.SAVED:m.F.UPDATED,data:_}),a.eventCenterS.dbMigrationSavedAndUpdate.next(!0),a.loading.form=!1}catch(_){a.loading.form=!1,a.ns.showErrorFromResponse(_.error||_,"Unable to save database migration."),a.lastError=_.error,a.tab=a.tab||{},a.tab.axiosResponse={data:_.error},a.monacoS.highlightErrorInMonacoEditor(a.editorDbM,a.tab,"MainSandbox.ts",a.monacoDecorations)}a.cd.detectChanges()})()}resetForm(){this.formData=void 0,this.editorDbM&&this.editorDbM.getValue()&&this.editorDbM.setValue(""),this.monacoS.clearEditorDecorations(this.editorDbM,this.monacoDecorations),this.eventCenterS.dbMigration.detectChangesForm.next(Math.random())}showInsertCodeModel(){this.generalCS.messageReceivedFor=D.H.All,this.insertCodeModalC.showModal(u.b.CodeFinderResultC)}editorGenerated(a){var i=this;return(0,p.Z)(function*(){i.editorDbM=a,yield i.monacoS.loadSchemaEditorSettings(i.BE_HOST_PORT,i.authCS.getUserId(),null),i.monacoS.addSaveCodeKeyBinding(a,t=>{i.form.valid&&i.save()}),i.monacoS.addInsertCodeKeyBinding(a,t=>{i.generalCS.messageReceivedFor=D.H.All,i.data.mode!==l.D.VIEW&&i.insertCodeModalC.showModal(u.b.DatabasesMigrationFormC)}),i.subscriptions.push(i.generalS.messageReceived.subscribe(t=>{t.type&&t.type===T.g.TEXT_COPIED&&t.componentName===u.b.DatabasesMigrationFormC&&(i.monacoS.insertAtCursor(a,t.selectedText),i.insertCodeModalC.hideModal())}))})()}viewError(){this.viewDockerfileModelC.showModal(this.generalS.stringify(this.lastError),C.d.json)}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions),this.eventCenterS.dbMigrationSavedAndUpdate.next(!1)}static \u0275fac=function(i){return new(i||n)(e.Y36(s.qu),e.Y36(I.W),e.Y36(h.b),e.Y36(P.L),e.Y36(S.j),e.Y36(A.D),e.Y36(Z.b),e.Y36(U.E),e.Y36(x.u),e.Y36(h.b),e.Y36(F.K),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:n,selectors:[["app-databases-migration-form"]],viewQuery:function(i,t){if(1&i&&(e.Gf(V,5),e.Gf(w,5)),2&i){let r;e.iGM(r=e.CRH())&&(t.insertCodeModalC=r.first),e.iGM(r=e.CRH())&&(t.viewDockerfileModelC=r.first)}},inputs:{data:"data"},decls:33,vars:17,consts:[["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idDbMigrationForm","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal"],["role","document",1,"modal-dialog","modal-full"],[1,"modal-content"],[1,"modal-header"],[4,"ngIf"],[1,"float-right"],["aria-label","Close","data-dismiss","modal","type","button",1,"close",3,"click"],["aria-hidden","true"],[1,"fas","fa-window-close"],["pTooltip","Insert Code","sava-no-dbl-click","",1,"cursor-pointer","mr-1",2,"font-size","1.4em",3,"click"],[1,"fas","fa-info-circle","text-info","fa-fw"],["href","https://docs.apimaker.dev/v1/docs/features/database-migration.html","target","_blank"],[1,"fa-fw","ml-3","mr-1","mt-n2",2,"font-size","25px",3,"src"],[1,"modal-body","overflow-auto"],["header","Basic Info"],["header","Code"],["class","overflow-hidden","style","height: calc(100vh - 206px);",4,"ngIf"],[1,"modal-footer"],["href","javascript:;","class","text-danger",3,"click",4,"ngIf"],["data-dismiss","modal","type","button",1,"btn","btn-sm","btn-secondary",3,"click"],[1,"fas","fa-times","text-danger","fa-fw"],["class","btn btn-primary btn-sm","sava-no-dbl-click","","type","button",3,"disabled","click",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"frameId","modalId","docsHostPort"],["insertCodeModalC",""],[3,"modalId","editorOptionsMonacoEditorModal","modalTitle"],["monacoEditorModalC",""],[1,"fas","fa-plus","text-success","fa-fw","mr-1"],[1,"far","fa-eye","text-info","fa-fw","mr-1"],[1,"fas","fa-pencil-alt","text-light","fa-fw","mr-1"],[1,"container","pt-3",3,"formGroup"],[1,"form-group","row"],[1,"col-3","col-form-label","col-form-label-sm","text-right"],[1,"col-7"],["formControlName","name","name","name","spellcheck","false","type","text","placeholder","Please provide name",1,"form-control","form-control-sm",3,"keyup"],["class","mt-1px small",4,"ngIf"],["formControlName","label","name","label","spellcheck","false","type","text","placeholder","Please provide label",1,"form-control","form-control-sm"],["formControlName","order","name","order","spellcheck","false","type","number","placeholder","Please provide order",1,"form-control","form-control-sm"],["formControlName","dbMigrationTimeoutInMinutes","name","dbMigrationTimeoutInMinutes","spellcheck","false","type","number","placeholder","10",1,"form-control","form-control-sm"],[1,"fas","fa-lock","fa-fw","align-middle","text-warning","d-inline-block","mr-1","mt-1"],[1,"align-middle","mb-0","mt-1","ml-2"],["formControlName","isScriptExecutedCalculated","label","Script Executed",3,"binary"],[1,"mt-1px","small"],[1,"overflow-hidden",2,"height","calc(100vh - 206px)"],[3,"isSchemaEditor","editorOptions","editorGenerated"],["href","javascript:;",1,"text-danger",3,"click"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"disabled","click"],[1,"fas","fa-save","text-success","fa-fw","mr-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(i,t){1&i&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.YNc(4,Q,3,0,"span",4),e.YNc(5,H,3,0,"span",4),e.YNc(6,G,3,0,"span",4),e.TgZ(7,"div",5)(8,"button",6),e.NdJ("click",function(){return t.hideModal()}),e.TgZ(9,"span",7),e._UZ(10,"i",8),e.qZA()(),e.TgZ(11,"span",9),e.NdJ("click",function(){return t.showInsertCodeModel()}),e._UZ(12,"i",10),e.qZA(),e.TgZ(13,"a",11),e._UZ(14,"img",12),e.ALo(15,"themeIcon"),e.qZA()()(),e.TgZ(16,"div",13)(17,"p-tabView")(18,"p-tabPanel",14),e.YNc(19,X,30,4,"div",4),e.qZA(),e.TgZ(20,"p-tabPanel",15),e.YNc(21,z,2,2,"div",16),e.qZA()()(),e.TgZ(22,"div",17),e.YNc(23,q,2,0,"a",18),e.TgZ(24,"button",19),e.NdJ("click",function(){return t.hideModal()}),e._UZ(25,"i",20),e._uU(26," Close"),e.qZA(),e.YNc(27,te,4,3,"button",21),e.qZA(),e.YNc(28,oe,1,0,"p-progressSpinner",22),e.qZA()()(),e._UZ(29,"app-insert-code-modal",23,24)(31,"app-monaco-editor-modal",25,26)),2&i&&(e.xp6(4),e.Q6J("ngIf",t.data.mode===t.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",t.data.mode===t.EFormMode.VIEW),e.xp6(1),e.Q6J("ngIf",t.data.mode===t.EFormMode.EDIT),e.xp6(8),e.Q6J("src",e.lcZ(15,15,"/assets/images/logo/logo_docs.svg"),e.LSH),e.xp6(5),e.Q6J("ngIf",t.shouldLoadMonacoEditor),e.xp6(2),e.Q6J("ngIf",t.shouldLoadMonacoEditor),e.xp6(2),e.Q6J("ngIf",t.lastError),e.xp6(4),e.Q6J("ngIf",t.data.mode!==t.EFormMode.VIEW),e.xp6(1),e.Q6J("ngIf",t.loading.form),e.xp6(1),e.Q6J("frameId","idInsertCodeDbMig")("modalId","idInsertCodeDbMigForm")("docsHostPort",t.DOCS_HOST_PORT),e.xp6(2),e.Q6J("modalId","idMonacoEditorModalInSysMigration")("editorOptionsMonacoEditorModal",t.editorOptionsMonacoEditorModal)("modalTitle","Error info"))},dependencies:[s._Y,s.Fj,s.wV,s.JJ,s.JL,s.sg,s.u,y.O5,R.y,L.P,B.O,K.G,b.xf,b.x4,W.u,N.XZ,J.A,Y.w],encapsulation:2,changeDetection:0})}return n})()},97975:(v,E,o)=>{o.d(E,{d:()=>g});var p=o(17017),m=(o(96522),o(44950)),l=o(94946);let g=(()=>{class f{static \u0275fac=function(u){return new(u||f)};static \u0275mod=l.oAB({type:f});static \u0275inj=l.cJS({imports:[p.u,m.A]})}return f})()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[7977],{77977:(U,e,a)=>{a.r(e),a.d(e,{DashSummaryM:()=>P});var d=a(77664),c=a(17017),l=a(63726),m=a(1678),h=a(15861),t=a(94946),g=a(99961),v=a(53429),p=a(97276),f=a(67031),S=a(95852),u=a(27414),C=a(32915),r=a(77240),x=a(9006),y=a(44879);let b=(()=>{class n{ns;instanceS;adminDashboardsS;logProfileS;authCS;constantsS;eventCenterS;generalCS;cd;generalS;loading={grid:!1};subscriptions=[];constructor(o,s,i,Y,M,O,T,A,z,L){this.ns=o,this.instanceS=s,this.adminDashboardsS=i,this.logProfileS=Y,this.authCS=M,this.constantsS=O,this.eventCenterS=T,this.generalCS=A,this.cd=z,this.generalS=L}ngOnInit(){var o=this;return(0,h.Z)(function*(){o.generalS.setNewTitle("Server Nodes Dashboard")})()}ngOnDestroy(){this.generalCS.unsubscribe(this.subscriptions)}static \u0275fac=function(s){return new(s||n)(t.Y36(g.W),t.Y36(v.E),t.Y36(p.i),t.Y36(f.T),t.Y36(S.D),t.Y36(u.L),t.Y36(C.u),t.Y36(r.b),t.Y36(t.sBO),t.Y36(r.b))};static \u0275cmp=t.Xpm({type:n,selectors:[["app-dash-summary"]],decls:14,vars:3,consts:[[1,"pt-1","main-container",2,"overflow","inherit"],[1,"row","ml-0","mr-0","mb-3"],[1,"col-12","pl-1","pr-1"],[1,"card"],[1,"card-header"],[1,"fas","fa-info-circle","text-info","mr-1"],[1,"float-right"],["href","https://docs.apimaker.dev/v1/docs/dashboard/node-dashboard.html","target","_blank"],[1,"fa-fw","ml-2","mr-1","mt-n1",2,"font-size","25px",3,"src"],[1,"card-body","p-0","h-100","overflow-hidden","pt-2"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"span"),t._UZ(6,"i",5),t._uU(7," List of all connected nodes"),t.qZA(),t.TgZ(8,"div",6)(9,"a",7),t._UZ(10,"img",8),t.ALo(11,"themeIcon"),t.qZA()()(),t.TgZ(12,"div",9),t._UZ(13,"app-dash-root-nodes"),t.qZA()()()()()),2&s&&(t.xp6(10),t.Q6J("src",t.lcZ(11,1,"/assets/images/logo/logo_docs.svg"),t.LSH))},dependencies:[x.G,y.w],styles:['.main-container[_ngcontent-%COMP%]{height:calc(100vh - 48px);overflow:auto}.summary-bg[_ngcontent-%COMP%]{position:relative}.summary-bg[_ngcontent-%COMP%]:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;background-image:linear-gradient(to right,rgba(97,175,239,.1) 1px,transparent 1px),linear-gradient(to bottom,rgba(97,175,239,.1) 1px,transparent 1px);background-size:56px 56px;-webkit-mask-image:radial-gradient(ellipse at center,black 30%,transparent 78%);mask-image:radial-gradient(ellipse at center,black 30%,transparent 78%)}.summary-bg[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{position:relative;z-index:1}#chart[_ngcontent-%COMP%]{max-width:650px;margin:35px auto}']})}return n})();var Z=a(69575);const D=[{path:"",component:b,canActivate:[l.P]}];let P=(()=>{class n{static \u0275fac=function(s){return new(s||n)};static \u0275mod=t.oAB({type:n});static \u0275inj=t.cJS({imports:[d.Bz.forChild(D),c.u,m.DashboardM,Z.Q]})}return n})()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[7987],{21137:(v,g,a)=>{a.d(g,{u:()=>se});var m=a(15861),l=a(33157),_=a(90328),p=a(6990),M=a(59361),u=a(51162),S=a(27672),O=a(20553),C=a(45085),P=a(91601),f=a(3531),T=a(39989),e=a(94946),F=a(99961),A=a(67629),h=a(77240),b=a(53429),U=a(27414),R=a(95852),B=a(45809),y=a(32915),x=a(96814),Z=a(32660),L=a(48917),W=a(5860),K=a(756),N=a(97680),D=a(14844),H=a(33259),J=a(25025),Q=a(44879);const V=["QuillEditorC"],G=["insertCodeModalC"],w=["monacoEditorModalC"];function Y(s,c){if(1&s&&e._UZ(0,"span",31),2&s){const t=e.oxw();e.Q6J("innerHTML",t.userNoteHtml,e.oJD)}}function j(s,c){1&s&&(e.TgZ(0,"span"),e._UZ(1,"i",32),e._uU(2," Add Custom API"),e.qZA())}function k(s,c){1&s&&(e.TgZ(0,"span"),e._UZ(1,"i",33),e._uU(2," View Custom API"),e.qZA())}function X(s,c){if(1&s&&(e.TgZ(0,"span"),e._UZ(1,"i",34),e._uU(2," Edit Custom API "),e.TgZ(3,"span",35),e._uU(4),e.qZA()()),2&s){const t=e.oxw();e.xp6(4),e.Oqu((null==t.updateObj?null:t.updateObj.name)||"")}}function z(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",36)(1,"app-monaco-editor",37),e.NdJ("editorGenerated",function(o){e.CHM(t);const i=e.oxw();return e.KtG(i.editorGeneratedBasicInfo(o))}),e.qZA()()}if(2&s){const t=e.oxw();e.xp6(1),e.Q6J("isSchemaEditor",!0)("editorOptions",t.editorOptionsSchema)}}function q(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",36)(1,"app-monaco-editor",37),e.NdJ("editorGenerated",function(o){e.CHM(t);const i=e.oxw();return e.KtG(i.editorGenerated(o))}),e.qZA()()}if(2&s){const t=e.oxw();e.xp6(1),e.Q6J("isSchemaEditor",!0)("editorOptions",t.editorOptionsSchema)}}function ee(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"a",38),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.viewError())}),e._uU(1,"View error"),e.qZA()}}function te(s,c){1&s&&(e.TgZ(0,"span"),e._uU(1,"Save"),e.qZA())}function oe(s,c){1&s&&(e.TgZ(0,"span"),e._uU(1,"Update"),e.qZA())}function ne(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"button",39),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.save())}),e._UZ(1,"i",40),e.YNc(2,te,2,0,"span",5),e.YNc(3,oe,2,0,"span",5),e.qZA()}if(2&s){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.data.mode===t.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",t.data.mode===t.EFormMode.EDIT)}}function ae(s,c){1&s&&e._UZ(0,"p-progressSpinner",41)}let se=(()=>{class s{ns;functionS;generalS;instanceS;constantsS;authCS;monacoS;eventCenterS;generalCS;data;loading={form:!1};EFormMode=_.D;subscriptions=[];EAPIAccessType=S.di;editorFunctions;editorFunctionsBasicInfo;editorOptionsSchema={readOnly:!1,language:"typescript",contextmenu:!0};lastError;editorOptionsMonacoEditorModal={readOnly:!0,language:"json",contextmenu:!0};updateObj;QuillEditorC;userNoteHtml='\n <span class="font-weight-bold text-success">Note:</span><br/>\n <span>Name might be used in code,<br/> so consider changing in code also.</span>\n ';BE_HOST_PORT=O.N.BE_HOST_PORT;DOCS_HOST_PORT=O.N.DOCS_HOST_PORT;shouldLoadMonacoEditor=!1;insertCodeModalC;viewDockerfileModelC;constructor(t,n,o,i,r,d,E,ie,re){this.ns=t,this.functionS=n,this.generalS=o,this.instanceS=i,this.constantsS=r,this.authCS=d,this.monacoS=E,this.eventCenterS=ie,this.generalCS=re}ngOnInit(){var t=this;this.subscriptions.push(this.data.eventChannel.subscribe(function(){var n=(0,m.Z)(function*(o){if(o)if(o.action===l.F.OPEN_FORM_IN_EDIT_MODE||o.action===l.F.OPEN_FORM_IN_VIEW_MODE){const r=`${t.data.formData.guid}:${t.authCS.gUser._id}`,d=yield t.functionS.getById(r).toPromise();t.updateObj=d.data,t.generalCS.setValueInEditor(t,"editorFunctionsBasicInfo",d.data?.functionBasicInfo||""),t.generalCS.setValueInEditor(t,"editorFunctions",d.data?.functionCode||""),t.generalCS.setValueInEditor(t,"QuillEditorC",d.data?.apiDocs||"");const E={};t.updateObj.separateSandboxSettings?.enableSeparateSandboxForThis&&(E.enableSeparateSandboxForThis=t.updateObj.separateSandboxSettings.enableSeparateSandboxForThis,E.allowAllPackagesOfAdmin=t.updateObj.separateSandboxSettings?.packages?.allowAllPackagesOfAdmin??!1),yield t.monacoS.loadTypesInMonaco(t.BE_HOST_PORT,t.authCS.getUserId(),E)}else if(o.action===l.F.OPEN_FORM_IN_ADD_MODE){const i=yield t.instanceS.getDefaultContent(t.BE_HOST_PORT,C.R.CUSTOM_API_JSON).toPromise(),r=yield t.instanceS.getDefaultContent(t.BE_HOST_PORT,C.R.CUSTOM_APIS).toPromise();t.generalCS.setValueInEditor(t,"editorFunctionsBasicInfo",i.data),t.generalCS.setValueInEditor(t,"editorFunctions",r.data),setTimeout(()=>{t.QuillEditorC.quill.setContents([{insert:"### API "},{insert:"Documentation",attributes:{bold:!0}},{insert:"\n"}])},1e3),t.updateObj={}}});return function(o){return n.apply(this,arguments)}}()))}showModal(){this.lastError=void 0,this.shouldLoadMonacoEditor=!0,setTimeout(()=>{$("#idFunctionForm").modal("show")},100)}hideModal(){$("#idFunctionForm").modal("hide")}save(){var t=this;return(0,m.Z)(function*(){let o;o=t.data.formData&&t.data.formData._id?yield t.functionS.queryOne({find:{guid:t.data.formData.guid,user:t.authCS.gUser._id}}):{};const i=p.find(o.versions||[],{isActive:!0});i&&(i.apiCodeStr=t.editorFunctions.getValue());let r=Object.assign({},o,{});r.user=t.authCS.getUserId(),r.functionCode=t.editorFunctions.getValue(),r.functionBasicInfo=t.editorFunctionsBasicInfo.getValue(),r.apiDocs=t.QuillEditorC.getValue();for(const d of r?.versions||[])d.version=d.version.toString();r=Object.assign({},t.updateObj||{},r);try{let d;t.loading.form=!0,t.lastError=void 0,t.data.mode===_.D.ADD?d=yield t.functionS.post(r).toPromise():t.data.mode===_.D.EDIT&&(d=yield t.functionS.replace(r._id,r,{select:u.iH._id}).toPromise()),t.ns.showSuccess(t.data.mode===_.D.ADD?t.constantsS.functions.addSuccess:t.constantsS.functions.editSuccess),t.data.eventChannel.emit({action:t.data.mode===_.D.ADD?l.F.SAVED:l.F.UPDATED}),t.eventCenterS.customApiSavedAndUpdate.next(!0),t.loading.form=!1}catch(d){t.ns.showErrorMessageFromErrorObject(d),t.loading.form=!1,t.lastError=d.error}})()}selectedTabTitle;tabSelected(t){this.selectedTabTitle=(t.originalEvent.originalTarget||t.originalEvent.currentTarget).text}setMessageReceiver(){this.generalCS.messageReceivedFor=void 0===this.selectedTabTitle||"Basic Info"===this.selectedTabTitle?M.H.Settings:M.H.All}showInsertCodeModel(){this.setMessageReceiver(),this.insertCodeModalC.showModal(f.b.FunManFormC)}editorGenerated(t){var n=this;return(0,m.Z)(function*(){n.editorFunctions=t,yield n.monacoS.loadSchemaEditorSettings(n.BE_HOST_PORT,n.authCS.getUserId(),null),n.monacoS.addSaveCodeKeyBinding(t,o=>{n.data.mode!==_.D.VIEW&&n.save()}),n.monacoS.addInsertCodeKeyBinding(t,o=>{n.data.mode!==_.D.VIEW&&(n.setMessageReceiver(),n.insertCodeModalC.showModal(f.b.FunManFormC))}),n.subscriptions.push(n.generalS.messageReceived.subscribe(o=>{o.type&&o.type===T.g.TEXT_COPIED&&"Code"===n.selectedTabTitle&&o.componentName===f.b.FunManFormC&&(n.monacoS.insertAtCursor(t,o.selectedText),n.insertCodeModalC.hideModal())}))})()}editorGeneratedBasicInfo(t){var n=this;return(0,m.Z)(function*(){n.editorFunctionsBasicInfo=t,yield n.monacoS.loadSchemaEditorSettings(n.BE_HOST_PORT,n.authCS.getUserId(),null),n.monacoS.addSaveCodeKeyBinding(t,o=>{n.data.mode!==_.D.VIEW&&n.save()}),n.monacoS.addInsertCodeKeyBinding(t,o=>{n.data.mode!==_.D.VIEW&&(n.setMessageReceiver(),n.insertCodeModalC.showModal(f.b.FunManFormC))}),n.subscriptions.push(n.generalS.messageReceived.subscribe(o=>{o.type&&o.type===T.g.TEXT_COPIED&&o.componentName===f.b.FunManFormC&&(void 0===n.selectedTabTitle||"Basic Info"===n.selectedTabTitle)&&(n.monacoS.insertAtCursor(t,o.selectedText),n.insertCodeModalC.hideModal())}))})()}viewError(){this.viewDockerfileModelC.showModal(this.generalS.stringify(this.lastError),P.d.json)}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions),this.eventCenterS.customApiSavedAndUpdate.next(!1)}static \u0275fac=function(n){return new(n||s)(e.Y36(F.W),e.Y36(A.d),e.Y36(h.b),e.Y36(b.E),e.Y36(U.L),e.Y36(R.D),e.Y36(B.b),e.Y36(y.u),e.Y36(h.b))};static \u0275cmp=e.Xpm({type:s,selectors:[["app-w-fun-man-form"]],viewQuery:function(n,o){if(1&n&&(e.Gf(V,5),e.Gf(G,5),e.Gf(w,5)),2&n){let i;e.iGM(i=e.CRH())&&(o.QuillEditorC=i.first),e.iGM(i=e.CRH())&&(o.insertCodeModalC=i.first),e.iGM(i=e.CRH())&&(o.viewDockerfileModelC=i.first)}},inputs:{data:"data"},decls:38,vars:17,consts:[["template",""],["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idFunctionForm","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/custom-apis/user-created-custom-api.html","target","_blank"],[1,"fa-fw","ml-2","mr-1","mt-n2",2,"font-size","25px",3,"src"],[1,"modal-body","overflow-auto"],[3,"onChange"],["header","Basic Info"],["class","overflow-hidden","style","height: calc(100vh - 188px);",4,"ngIf"],["header","Code"],["header","Docs"],["QuillEditorC",""],[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,"click",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"frameId","modalId","docsHostPort"],["insertCodeModalC",""],[3,"modalId","editorOptionsMonacoEditorModal","modalTitle"],["monacoEditorModalC",""],[3,"innerHTML"],[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,"overflow-hidden",2,"height","calc(100vh - 188px)"],[3,"isSchemaEditor","editorOptions","editorGenerated"],["href","javascript:;",1,"text-danger",3,"click"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"click"],[1,"fas","fa-save","text-success","fa-fw","mr-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(n,o){1&n&&(e.YNc(0,Y,1,1,"ng-template",null,0,e.W1O),e.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4),e.YNc(6,j,3,0,"span",5),e.YNc(7,k,3,0,"span",5),e.YNc(8,X,5,1,"span",5),e.TgZ(9,"div",6)(10,"button",7),e.NdJ("click",function(){return o.hideModal()}),e.TgZ(11,"span",8),e._UZ(12,"i",9),e.qZA()(),e.TgZ(13,"span",10),e.NdJ("click",function(){return o.showInsertCodeModel()}),e._UZ(14,"i",11),e.qZA(),e.TgZ(15,"a",12),e._UZ(16,"img",13),e.ALo(17,"themeIcon"),e.qZA()()(),e.TgZ(18,"div",14)(19,"p-tabView",15),e.NdJ("onChange",function(r){return o.tabSelected(r)}),e.TgZ(20,"p-tabPanel",16),e.YNc(21,z,2,2,"div",17),e.qZA(),e.TgZ(22,"p-tabPanel",18),e.YNc(23,q,2,2,"div",17),e.qZA(),e.TgZ(24,"p-tabPanel",19),e._UZ(25,"app-quill-editor",null,20),e.qZA()()(),e.TgZ(27,"div",21),e.YNc(28,ee,2,0,"a",22),e.TgZ(29,"button",23),e.NdJ("click",function(){return o.hideModal()}),e._UZ(30,"i",24),e._uU(31," Close"),e.qZA(),e.YNc(32,ne,4,2,"button",25),e.qZA(),e.YNc(33,ae,1,0,"p-progressSpinner",26),e.qZA()()(),e._UZ(34,"app-insert-code-modal",27,28)(36,"app-monaco-editor-modal",29,30)),2&n&&(e.xp6(6),e.Q6J("ngIf",o.data.mode===o.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",o.data.mode===o.EFormMode.VIEW),e.xp6(1),e.Q6J("ngIf",o.data.mode===o.EFormMode.EDIT),e.xp6(8),e.Q6J("src",e.lcZ(17,15,"/assets/images/logo/logo_docs.svg"),e.LSH),e.xp6(5),e.Q6J("ngIf",o.shouldLoadMonacoEditor),e.xp6(2),e.Q6J("ngIf",o.shouldLoadMonacoEditor),e.xp6(5),e.Q6J("ngIf",o.lastError),e.xp6(4),e.Q6J("ngIf",o.data.mode!==o.EFormMode.VIEW),e.xp6(1),e.Q6J("ngIf",o.loading.form),e.xp6(1),e.Q6J("frameId","idInsertCodeCusApi")("modalId","idInsertCodeCusApiForm")("docsHostPort",o.DOCS_HOST_PORT),e.xp6(2),e.Q6J("modalId","idMonacoEditorModalInCustomApi")("editorOptionsMonacoEditorModal",o.editorOptionsMonacoEditorModal)("modalTitle","Error info"))},dependencies:[x.O5,Z.y,L.l,W.P,K.O,N.G,D.xf,D.x4,H.u,J.A,Q.w],encapsulation:2})}return s})()},67987:(v,g,a)=>{a.d(g,{X:()=>M});var m=a(17017),l=a(44950),p=(a(21137),a(94946));let M=(()=>{class u{static \u0275fac=function(C){return new(C||u)};static \u0275mod=p.oAB({type:u});static \u0275inj=p.cJS({imports:[m.u,l.A]})}return u})()}}]);
|