@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[443],{443:(k,T,c)=>{c.d(T,{p:()=>st,O:()=>at});var r=c(96814),o=c(69862),e=c(94946),g=c(85219),h=c(40707),x=c(82076),b=c(3983),v=c(77778),p=c(84713),m=c(2332);let d=(()=>{class i extends p.s{pathId;ngOnInit(){this.pathId="url(#"+(0,m.Th)()+")"}static \u0275fac=function(){let t;return function(s){return(t||(t=e.n5z(i)))(s||i)}}();static \u0275cmp=e.Xpm({type:i,selectors:[["UploadIcon"]],standalone:!0,features:[e.qOj,e.jDz],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.58942 9.82197C6.70165 9.93405 6.85328 9.99793 7.012 10C7.17071 9.99793 7.32234 9.93405 7.43458 9.82197C7.54681 9.7099 7.61079 9.55849 7.61286 9.4V2.04798L9.79204 4.22402C9.84752 4.28011 9.91365 4.32457 9.98657 4.35479C10.0595 4.38502 10.1377 4.40039 10.2167 4.40002C10.2956 4.40039 10.3738 4.38502 10.4467 4.35479C10.5197 4.32457 10.5858 4.28011 10.6413 4.22402C10.7538 4.11152 10.817 3.95902 10.817 3.80002C10.817 3.64102 10.7538 3.48852 10.6413 3.37602L7.45127 0.190618C7.44656 0.185584 7.44176 0.180622 7.43687 0.175736C7.32419 0.063214 7.17136 0 7.012 0C6.85264 0 6.69981 0.063214 6.58712 0.175736C6.58181 0.181045 6.5766 0.186443 6.5715 0.191927L3.38282 3.37602C3.27669 3.48976 3.2189 3.6402 3.22165 3.79564C3.2244 3.95108 3.28746 4.09939 3.39755 4.20932C3.50764 4.31925 3.65616 4.38222 3.81182 4.38496C3.96749 4.3877 4.11814 4.33001 4.23204 4.22402L6.41113 2.04807V9.4C6.41321 9.55849 6.47718 9.7099 6.58942 9.82197ZM11.9952 14H2.02883C1.751 13.9887 1.47813 13.9228 1.22584 13.8061C0.973545 13.6894 0.746779 13.5241 0.558517 13.3197C0.370254 13.1154 0.22419 12.876 0.128681 12.6152C0.0331723 12.3545 -0.00990605 12.0775 0.0019109 11.8V9.40005C0.0019109 9.24092 0.065216 9.08831 0.1779 8.97579C0.290584 8.86326 0.443416 8.80005 0.602775 8.80005C0.762134 8.80005 0.914966 8.86326 1.02765 8.97579C1.14033 9.08831 1.20364 9.24092 1.20364 9.40005V11.8C1.18295 12.0376 1.25463 12.274 1.40379 12.4602C1.55296 12.6463 1.76817 12.7681 2.00479 12.8H11.9952C12.2318 12.7681 12.447 12.6463 12.5962 12.4602C12.7453 12.274 12.817 12.0376 12.7963 11.8V9.40005C12.7963 9.24092 12.8596 9.08831 12.9723 8.97579C13.085 8.86326 13.2378 8.80005 13.3972 8.80005C13.5565 8.80005 13.7094 8.86326 13.8221 8.97579C13.9347 9.08831 13.998 9.24092 13.998 9.40005V11.8C14.022 12.3563 13.8251 12.8996 13.45 13.3116C13.0749 13.7236 12.552 13.971 11.9952 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,s){1&n&&(e.O4$(),e.TgZ(0,"svg",0)(1,"g"),e._UZ(2,"path",1),e.qZA(),e.TgZ(3,"defs")(4,"clipPath",2),e._UZ(5,"rect",3),e.qZA()()()),2&n&&(e.Tol(s.getClassNames()),e.uIk("aria-label",s.ariaLabel)("aria-hidden",s.ariaHidden)("role",s.role),e.xp6(1),e.uIk("clip-path",s.pathId),e.xp6(3),e.Q6J("id",s.pathId))},encapsulation:2})}return i})();var _=c(86825),f=c(12591);let F=(()=>{class i extends p.s{pathId;ngOnInit(){this.pathId="url(#"+(0,m.Th)()+")"}static \u0275fac=function(){let t;return function(s){return(t||(t=e.n5z(i)))(s||i)}}();static \u0275cmp=e.Xpm({type:i,selectors:[["ExclamationTriangleIcon"]],standalone:!0,features:[e.qOj,e.jDz],decls:8,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z","fill","currentColor"],["d","M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z","fill","currentColor"],["d","M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,s){1&n&&(e.O4$(),e.TgZ(0,"svg",0)(1,"g"),e._UZ(2,"path",1)(3,"path",2)(4,"path",3),e.qZA(),e.TgZ(5,"defs")(6,"clipPath",4),e._UZ(7,"rect",5),e.qZA()()()),2&n&&(e.Tol(s.getClassNames()),e.uIk("aria-label",s.ariaLabel)("aria-hidden",s.ariaHidden)("role",s.role),e.xp6(1),e.uIk("clip-path",s.pathId),e.xp6(5),e.Q6J("id",s.pathId))},encapsulation:2})}return i})(),w=(()=>{class i extends p.s{pathId;ngOnInit(){this.pathId="url(#"+(0,m.Th)()+")"}static \u0275fac=function(){let t;return function(s){return(t||(t=e.n5z(i)))(s||i)}}();static \u0275cmp=e.Xpm({type:i,selectors:[["InfoCircleIcon"]],standalone:!0,features:[e.qOj,e.jDz],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,s){1&n&&(e.O4$(),e.TgZ(0,"svg",0)(1,"g"),e._UZ(2,"path",1),e.qZA(),e.TgZ(3,"defs")(4,"clipPath",2),e._UZ(5,"rect",3),e.qZA()()()),2&n&&(e.Tol(s.getClassNames()),e.uIk("aria-label",s.ariaLabel)("aria-hidden",s.ariaHidden)("role",s.role),e.xp6(1),e.uIk("clip-path",s.pathId),e.xp6(3),e.Q6J("id",s.pathId))},encapsulation:2})}return i})();var U=c(88468),I=c(44480),Z=c(65592),S=c(64352),J=c(50671);function E(i,a){if(1&i&&e._UZ(0,"span"),2&i){const t=e.oxw().$implicit;e.Tol("p-message-icon pi "+t.icon),e.uIk("data-pc-section","icon")}}function N(i,a){1&i&&e._UZ(0,"CheckIcon"),2&i&&e.uIk("data-pc-section","icon")}function Y(i,a){1&i&&e._UZ(0,"InfoCircleIcon"),2&i&&e.uIk("data-pc-section","icon")}function O(i,a){1&i&&e._UZ(0,"TimesCircleIcon"),2&i&&e.uIk("data-pc-section","icon")}function B(i,a){1&i&&e._UZ(0,"ExclamationTriangleIcon"),2&i&&e.uIk("data-pc-section","icon")}function D(i,a){if(1&i&&(e.TgZ(0,"span",10),e.ynx(1),e.YNc(2,N,1,1,"CheckIcon",11),e.YNc(3,Y,1,1,"InfoCircleIcon",11),e.YNc(4,O,1,1,"TimesCircleIcon",11),e.YNc(5,B,1,1,"ExclamationTriangleIcon",11),e.BQk(),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(2),e.Q6J("ngIf","success"===t.severity),e.xp6(1),e.Q6J("ngIf","info"===t.severity),e.xp6(1),e.Q6J("ngIf","error"===t.severity),e.xp6(1),e.Q6J("ngIf","warn"===t.severity)}}function A(i,a){if(1&i&&e._UZ(0,"span",14),2&i){const t=e.oxw(2).$implicit;e.Q6J("innerHTML",t.summary,e.oJD),e.uIk("data-pc-section","summary")}}function H(i,a){if(1&i&&e._UZ(0,"span",15),2&i){const t=e.oxw(2).$implicit;e.Q6J("innerHTML",t.detail,e.oJD),e.uIk("data-pc-section","detail")}}function z(i,a){if(1&i&&(e.ynx(0),e.YNc(1,A,1,2,"span",12),e.YNc(2,H,1,2,"span",13),e.BQk()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",t.summary),e.xp6(1),e.Q6J("ngIf",t.detail)}}function P(i,a){if(1&i&&(e.TgZ(0,"span",18),e._uU(1),e.qZA()),2&i){const t=e.oxw(2).$implicit;e.uIk("data-pc-section","summary"),e.xp6(1),e.Oqu(t.summary)}}function q(i,a){if(1&i&&(e.TgZ(0,"span",19),e._uU(1),e.qZA()),2&i){const t=e.oxw(2).$implicit;e.uIk("data-pc-section","detail"),e.xp6(1),e.Oqu(t.detail)}}function G(i,a){if(1&i&&(e.YNc(0,P,2,2,"span",16),e.YNc(1,q,2,2,"span",17)),2&i){const t=e.oxw().$implicit;e.Q6J("ngIf",t.summary),e.xp6(1),e.Q6J("ngIf",t.detail)}}function R(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"button",20),e.NdJ("click",function(){e.CHM(t);const s=e.oxw().index,l=e.oxw(2);return e.KtG(l.removeMessage(s))}),e._UZ(1,"TimesIcon",21),e.qZA()}2&i&&(e.uIk("aria-label","Close")("data-pc-section","closebutton"),e.xp6(1),e.Q6J("styleClass","p-message-close-icon"),e.uIk("data-pc-section","closeicon"))}const V=function(i,a){return{showTransitionParams:i,hideTransitionParams:a}},K=function(i){return{value:"visible",params:i}};function j(i,a){if(1&i&&(e.TgZ(0,"div",4)(1,"div",5),e.YNc(2,E,1,3,"span",6),e.YNc(3,D,6,4,"span",7),e.YNc(4,z,3,2,"ng-container",1),e.YNc(5,G,2,2,"ng-template",null,8,e.W1O),e.YNc(7,R,2,4,"button",9),e.qZA()()),2&i){const t=a.$implicit,n=e.MAs(6),s=e.oxw(2);e.Tol("p-message p-message-"+t.severity),e.Q6J("@messageAnimation",e.VKq(12,K,e.WLB(9,V,s.showTransitionOptions,s.hideTransitionOptions))),e.xp6(1),e.uIk("data-pc-section","wrapper"),e.xp6(1),e.Q6J("ngIf",t.icon),e.xp6(1),e.Q6J("ngIf",!t.icon),e.xp6(1),e.Q6J("ngIf",!s.escape)("ngIfElse",n),e.xp6(3),e.Q6J("ngIf",s.closable)}}function $(i,a){if(1&i&&(e.ynx(0),e.YNc(1,j,8,14,"div",3),e.BQk()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.messages)}}function W(i,a){1&i&&e.GkF(0)}function X(i,a){if(1&i&&(e.TgZ(0,"div",22)(1,"div",5),e.YNc(2,W,1,0,"ng-container",23),e.qZA()()),2&i){const t=e.oxw();e.Q6J("ngClass","p-message p-message-"+t.severity),e.xp6(2),e.Q6J("ngTemplateOutlet",t.contentTemplate)}}let ee=(()=>{class i{messageService;el;cd;set value(t){this.messages=t,this.startMessageLifes(this.messages)}closable=!0;style;styleClass;enableService=!0;key;escape=!0;severity;showTransitionOptions="300ms ease-out";hideTransitionOptions="200ms cubic-bezier(0.86, 0, 0.07, 1)";valueChange=new e.vpe;templates;messages;messageSubscription;clearSubscription;timerSubscriptions=[];contentTemplate;constructor(t,n,s){this.messageService=t,this.el=n,this.cd=s}ngAfterContentInit(){this.templates?.forEach(t=>{t.getType(),this.contentTemplate=t.template}),this.messageService&&this.enableService&&!this.contentTemplate&&(this.messageSubscription=this.messageService.messageObserver.subscribe(t=>{if(t){Array.isArray(t)||(t=[t]);const n=t.filter(s=>this.key===s.key);this.messages=this.messages?[...this.messages,...n]:[...n],this.startMessageLifes(n),this.cd.markForCheck()}}),this.clearSubscription=this.messageService.clearObserver.subscribe(t=>{t?this.key===t&&(this.messages=null):this.messages=null,this.cd.markForCheck()}))}hasMessages(){let t=this.el.nativeElement.parentElement;return!(!t||!t.offsetParent)&&(null!=this.contentTemplate||this.messages&&this.messages.length>0)}clear(){this.messages=[],this.valueChange.emit(this.messages)}removeMessage(t){this.messages=this.messages?.filter((n,s)=>s!==t),this.valueChange.emit(this.messages)}get icon(){const t=this.severity||(this.hasMessages()?this.messages[0].severity:null);if(this.hasMessages())switch(t){case"success":return"pi-check";case"info":default:return"pi-info-circle";case"error":return"pi-times";case"warn":return"pi-exclamation-triangle"}return null}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.timerSubscriptions?.forEach(t=>t.unsubscribe())}startMessageLifes(t){t?.forEach(n=>n.life&&this.startMessageLife(n))}startMessageLife(t){const n=function L(i=0,a,t=S.P){let n=-1;return null!=a&&((0,J.K)(a)?t=a:n=a),new Z.y(s=>{let l=function Q(i){return i instanceof Date&&!isNaN(i)}(i)?+i-t.now():i;l<0&&(l=0);let u=0;return t.schedule(function(){s.closed||(s.next(u++),0<=n?this.schedule(void 0,n):s.complete())},l)})}(t.life).subscribe(()=>{this.messages=this.messages?.filter(s=>s!==t),this.timerSubscriptions=this.timerSubscriptions?.filter(s=>s!==n),this.valueChange.emit(this.messages),this.cd.markForCheck()});this.timerSubscriptions.push(n)}static \u0275fac=function(n){return new(n||i)(e.Y36(g.ez,8),e.Y36(e.SBq),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:i,selectors:[["p-messages"]],contentQueries:function(n,s,l){if(1&n&&e.Suo(l,g.jx,4),2&n){let u;e.iGM(u=e.CRH())&&(s.templates=u)}},hostAttrs:[1,"p-element"],inputs:{value:"value",closable:"closable",style:"style",styleClass:"styleClass",enableService:"enableService",key:"key",escape:"escape",severity:"severity",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{valueChange:"valueChange"},decls:4,vars:8,consts:[["role","alert",1,"p-messages","p-component",3,"ngStyle"],[4,"ngIf","ngIfElse"],["staticMessage",""],["role","alert",3,"class",4,"ngFor","ngForOf"],["role","alert"],[1,"p-message-wrapper"],[3,"class",4,"ngIf"],["class","p-message-icon",4,"ngIf"],["escapeOut",""],["class","p-message-close p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-message-icon"],[4,"ngIf"],["class","p-message-summary",3,"innerHTML",4,"ngIf"],["class","p-message-detail",3,"innerHTML",4,"ngIf"],[1,"p-message-summary",3,"innerHTML"],[1,"p-message-detail",3,"innerHTML"],["class","p-message-summary",4,"ngIf"],["class","p-message-detail",4,"ngIf"],[1,"p-message-summary"],[1,"p-message-detail"],["type","button","pRipple","",1,"p-message-close","p-link",3,"click"],[3,"styleClass"],["role","alert",3,"ngClass"],[4,"ngTemplateOutlet"]],template:function(n,s){if(1&n&&(e.TgZ(0,"div",0),e.YNc(1,$,2,1,"ng-container",1),e.YNc(2,X,3,2,"ng-template",null,2,e.W1O),e.qZA()),2&n){const l=e.MAs(3);e.Tol(s.styleClass),e.Q6J("ngStyle",s.style),e.uIk("aria-atomic",!0)("aria-live","assertive")("data-pc-name","message"),e.xp6(1),e.Q6J("ngIf",!s.contentTemplate)("ngIfElse",l)}},dependencies:function(){return[r.mk,r.sg,r.O5,r.tP,r.PC,I.H,f.n,w,U.x,F,v.q]},styles:["@layer primeng{.p-message-wrapper{display:flex;align-items:center}.p-message-close{display:flex;align-items:center;justify-content:center}.p-message-close.p-link{margin-left:auto;overflow:hidden;position:relative}.p-messages .p-message.ng-animating{overflow:hidden}}\n"],encapsulation:2,data:{animation:[(0,_.X$)("messageAnimation",[(0,_.eR)(":enter",[(0,_.oB)({opacity:0,transform:"translateY(-25%)"}),(0,_.jt)("{{showTransitionParams}}")]),(0,_.eR)(":leave",[(0,_.jt)("{{hideTransitionParams}}",(0,_.oB)({height:0,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,opacity:0}))])])]},changeDetection:0})}return i})(),M=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=e.oAB({type:i});static \u0275inj=e.cJS({imports:[r.ez,I.T,f.n,w,U.x,F,v.q]})}return i})();var y=c(66651),te=c(6593);const ie=["advancedfileinput"],ne=["basicfileinput"],se=["content"];function ae(i,a){if(1&i&&e._UZ(0,"span",18),2&i){const t=e.oxw(2);e.Tol(t.chooseIcon),e.Q6J("ngClass","p-button-icon p-button-icon-left"),e.uIk("aria-label",!0)("data-pc-section","chooseicon")}}function oe(i,a){1&i&&e._UZ(0,"PlusIcon",21),2&i&&(e.Q6J("styleClass","p-button-icon p-button-icon-left"),e.uIk("aria-label",!0)("data-pc-section","chooseicon"))}function le(i,a){}function ce(i,a){1&i&&e.YNc(0,le,0,0,"ng-template")}function pe(i,a){if(1&i&&(e.TgZ(0,"span",22),e.YNc(1,ce,1,0,null,11),e.qZA()),2&i){const t=e.oxw(3);e.uIk("aria-label",!0)("data-pc-section","chooseicon"),e.xp6(1),e.Q6J("ngTemplateOutlet",t.chooseIconTemplate)}}function re(i,a){if(1&i&&(e.ynx(0),e.YNc(1,oe,1,3,"PlusIcon",19),e.YNc(2,pe,2,3,"span",20),e.BQk()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!t.chooseIconTemplate),e.xp6(1),e.Q6J("ngIf",t.chooseIconTemplate)}}function de(i,a){if(1&i&&e._UZ(0,"span",25),2&i){const t=e.oxw(3);e.Q6J("ngClass",t.uploadIcon),e.uIk("aria-hidden",!0)}}function _e(i,a){1&i&&e._UZ(0,"UploadIcon",21),2&i&&e.Q6J("styleClass","p-button-icon p-button-icon-left")}function ue(i,a){}function ge(i,a){1&i&&e.YNc(0,ue,0,0,"ng-template")}function fe(i,a){if(1&i&&(e.TgZ(0,"span",22),e.YNc(1,ge,1,0,null,11),e.qZA()),2&i){const t=e.oxw(4);e.uIk("aria-hidden",!0),e.xp6(1),e.Q6J("ngTemplateOutlet",t.uploadIconTemplate)}}function me(i,a){if(1&i&&(e.ynx(0),e.YNc(1,_e,1,1,"UploadIcon",19),e.YNc(2,fe,2,2,"span",20),e.BQk()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",!t.uploadIconTemplate),e.xp6(1),e.Q6J("ngIf",t.uploadIconTemplate)}}function he(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"p-button",23),e.NdJ("onClick",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.upload())}),e.YNc(1,de,1,2,"span",24),e.YNc(2,me,3,2,"ng-container",8),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("label",t.uploadButtonLabel)("disabled",!t.hasFiles()||t.isFileLimitExceeded())("styleClass",t.uploadStyleClass),e.xp6(1),e.Q6J("ngIf",t.uploadIcon),e.xp6(1),e.Q6J("ngIf",!t.uploadIcon)}}function ve(i,a){if(1&i&&e._UZ(0,"span",25),2&i){const t=e.oxw(3);e.Q6J("ngClass",t.cancelIcon)}}function xe(i,a){1&i&&e._UZ(0,"TimesIcon",21),2&i&&(e.Q6J("styleClass","p-button-icon p-button-icon-left"),e.uIk("aria-hidden",!0))}function be(i,a){}function Ie(i,a){1&i&&e.YNc(0,be,0,0,"ng-template")}function Ce(i,a){if(1&i&&(e.TgZ(0,"span",22),e.YNc(1,Ie,1,0,null,11),e.qZA()),2&i){const t=e.oxw(4);e.uIk("aria-hidden",!0),e.xp6(1),e.Q6J("ngTemplateOutlet",t.cancelIconTemplate)}}function Te(i,a){if(1&i&&(e.ynx(0),e.YNc(1,xe,1,2,"TimesIcon",19),e.YNc(2,Ce,2,2,"span",20),e.BQk()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",!t.cancelIconTemplate),e.xp6(1),e.Q6J("ngIf",t.cancelIconTemplate)}}function ye(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"p-button",23),e.NdJ("onClick",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.clear())}),e.YNc(1,ve,1,1,"span",24),e.YNc(2,Te,3,2,"ng-container",8),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("label",t.cancelButtonLabel)("disabled",!t.hasFiles()||t.uploading)("styleClass",t.cancelStyleClass),e.xp6(1),e.Q6J("ngIf",t.cancelIcon),e.xp6(1),e.Q6J("ngIf",!t.cancelIcon)}}function Fe(i,a){1&i&&e.GkF(0)}function we(i,a){if(1&i&&e._UZ(0,"p-progressBar",26),2&i){const t=e.oxw(2);e.Q6J("value",t.progress)("showValue",!1)}}function Ue(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"img",33),e.NdJ("error",function(s){e.CHM(t);const l=e.oxw(5);return e.KtG(l.imageError(s))}),e.qZA()}if(2&i){const t=e.oxw().$implicit,n=e.oxw(4);e.Q6J("src",t.objectURL,e.LSH)("width",n.previewWidth)}}function Me(i,a){1&i&&e._UZ(0,"TimesIcon")}function ke(i,a){}function Ze(i,a){1&i&&e.YNc(0,ke,0,0,"ng-template")}function Se(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",29)(1,"div"),e.YNc(2,Ue,1,2,"img",30),e.qZA(),e.TgZ(3,"div",31),e._uU(4),e.qZA(),e.TgZ(5,"div"),e._uU(6),e.qZA(),e.TgZ(7,"div")(8,"button",32),e.NdJ("click",function(s){const u=e.CHM(t).index,C=e.oxw(4);return e.KtG(C.remove(s,u))}),e.YNc(9,Me,1,0,"TimesIcon",8),e.YNc(10,Ze,1,0,null,11),e.qZA()()()}if(2&i){const t=a.$implicit,n=e.oxw(4);e.xp6(2),e.Q6J("ngIf",n.isImage(t)),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Oqu(n.formatSize(t.size)),e.xp6(2),e.Tol(n.removeStyleClass),e.Q6J("disabled",n.uploading),e.xp6(1),e.Q6J("ngIf",!n.cancelIconTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",n.cancelIconTemplate)}}function Je(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,Se,11,8,"div",28),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.files)}}function Qe(i,a){}function Le(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,Qe,0,0,"ng-template",34),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.files)("ngForTemplate",t.fileTemplate)}}function Ee(i,a){if(1&i&&(e.TgZ(0,"div",27),e.YNc(1,Je,2,1,"div",8),e.YNc(2,Le,2,2,"div",8),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!t.fileTemplate),e.xp6(1),e.Q6J("ngIf",t.fileTemplate)}}function Ne(i,a){1&i&&e.GkF(0)}const Ye=function(i,a){return{"p-focus":i,"p-disabled":a}},Oe=function(i){return{$implicit:i}};function Be(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",2)(1,"div",3)(2,"span",4),e.NdJ("focus",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.onFocus())})("blur",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.onBlur())})("click",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.choose())})("keydown.enter",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.choose())}),e.TgZ(3,"input",5,6),e.NdJ("change",function(s){e.CHM(t);const l=e.oxw();return e.KtG(l.onFileSelect(s))}),e.qZA(),e.YNc(5,ae,1,5,"span",7),e.YNc(6,re,3,2,"ng-container",8),e.TgZ(7,"span",9),e._uU(8),e.qZA()(),e.YNc(9,he,3,5,"p-button",10),e.YNc(10,ye,3,5,"p-button",10),e.YNc(11,Fe,1,0,"ng-container",11),e.qZA(),e.TgZ(12,"div",12,13),e.NdJ("dragenter",function(s){e.CHM(t);const l=e.oxw();return e.KtG(l.onDragEnter(s))})("dragleave",function(s){e.CHM(t);const l=e.oxw();return e.KtG(l.onDragLeave(s))})("drop",function(s){e.CHM(t);const l=e.oxw();return e.KtG(l.onDrop(s))}),e.YNc(14,we,1,2,"p-progressBar",14),e._UZ(15,"p-messages",15),e.YNc(16,Ee,3,2,"div",16),e.YNc(17,Ne,1,0,"ng-container",17),e.qZA()()}if(2&i){const t=e.oxw();e.Tol(t.styleClass),e.Q6J("ngClass","p-fileupload p-fileupload-advanced p-component")("ngStyle",t.style),e.uIk("data-pc-name","fileupload")("data-pc-section","root"),e.xp6(1),e.uIk("data-pc-section","buttonbar"),e.xp6(1),e.Tol(t.chooseStyleClass),e.Q6J("ngClass",e.WLB(30,Ye,t.focus,t.disabled||t.isChooseDisabled())),e.uIk("data-pc-section","choosebutton"),e.xp6(1),e.Q6J("multiple",t.multiple)("accept",t.accept)("disabled",t.disabled||t.isChooseDisabled()),e.uIk("title","")("data-pc-section","input"),e.xp6(2),e.Q6J("ngIf",t.chooseIcon),e.xp6(1),e.Q6J("ngIf",!t.chooseIcon),e.xp6(1),e.uIk("data-pc-section","choosebuttonlabel"),e.xp6(1),e.Oqu(t.chooseButtonLabel),e.xp6(1),e.Q6J("ngIf",!t.auto&&t.showUploadButton),e.xp6(1),e.Q6J("ngIf",!t.auto&&t.showCancelButton),e.xp6(1),e.Q6J("ngTemplateOutlet",t.toolbarTemplate),e.xp6(1),e.uIk("data-pc-section","content"),e.xp6(2),e.Q6J("ngIf",t.hasFiles()),e.xp6(1),e.Q6J("value",t.msgs)("enableService",!1),e.xp6(1),e.Q6J("ngIf",t.hasFiles()),e.xp6(1),e.Q6J("ngTemplateOutlet",t.contentTemplate)("ngTemplateOutletContext",e.VKq(33,Oe,t.files))}}function De(i,a){if(1&i&&e._UZ(0,"span",25),2&i){const t=e.oxw(3);e.Q6J("ngClass",t.uploadIcon)}}function Ae(i,a){1&i&&e._UZ(0,"UploadIcon",21),2&i&&e.Q6J("styleClass","p-button-icon p-button-icon-left")}function He(i,a){}function ze(i,a){1&i&&e.YNc(0,He,0,0,"ng-template")}function Pe(i,a){if(1&i&&(e.TgZ(0,"span",22),e.YNc(1,ze,1,0,null,11),e.qZA()),2&i){const t=e.oxw(4);e.xp6(1),e.Q6J("ngTemplateOutlet",t.uploadIconTemplate)}}function qe(i,a){if(1&i&&(e.ynx(0),e.YNc(1,Ae,1,1,"UploadIcon",19),e.YNc(2,Pe,2,1,"span",20),e.BQk()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",!t.uploadIconTemplate),e.xp6(1),e.Q6J("ngIf",t.uploadIconTemplate)}}function Ge(i,a){if(1&i&&(e.ynx(0),e.YNc(1,De,1,1,"span",24),e.YNc(2,qe,3,2,"ng-container",8),e.BQk()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.uploadIcon),e.xp6(1),e.Q6J("ngIf",!t.uploadIcon)}}function Re(i,a){if(1&i&&e._UZ(0,"span",42),2&i){const t=e.oxw(3);e.Q6J("ngClass",t.chooseIcon)}}function Ve(i,a){1&i&&e._UZ(0,"PlusIcon",21),2&i&&(e.Q6J("styleClass","p-button-icon p-button-icon-left pi"),e.uIk("aria-hidden",!0)("data-pc-section","uploadicon"))}function Ke(i,a){}function je(i,a){1&i&&e.YNc(0,Ke,0,0,"ng-template")}function $e(i,a){if(1&i&&(e.TgZ(0,"span",44),e.YNc(1,je,1,0,null,11),e.qZA()),2&i){const t=e.oxw(4);e.uIk("aria-hidden",!0)("data-pc-section","uploadicon"),e.xp6(1),e.Q6J("ngTemplateOutlet",t.chooseIconTemplate)}}function We(i,a){if(1&i&&(e.ynx(0),e.YNc(1,Ve,1,3,"PlusIcon",19),e.YNc(2,$e,2,3,"span",43),e.BQk()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",!t.chooseIconTemplate),e.xp6(1),e.Q6J("ngIf",t.chooseIconTemplate)}}function Xe(i,a){if(1&i&&(e.YNc(0,Re,1,1,"span",41),e.YNc(1,We,3,2,"ng-container",8)),2&i){const t=e.oxw(2);e.Q6J("ngIf",t.chooseIcon),e.xp6(1),e.Q6J("ngIf",!t.chooseIcon)}}function et(i,a){if(1&i&&(e.TgZ(0,"span",9),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.uIk("data-pc-section","label"),e.xp6(1),e.Oqu(t.basicButtonLabel)}}function tt(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"input",45,46),e.NdJ("change",function(s){e.CHM(t);const l=e.oxw(2);return e.KtG(l.onFileSelect(s))})("focus",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.onFocus())})("blur",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.onBlur())}),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("accept",t.accept)("multiple",t.multiple)("disabled",t.disabled),e.uIk("data-pc-section","input")}}const it=function(i,a,t,n){return{"p-button p-component p-fileupload-choose":!0,"p-button-icon-only":i,"p-fileupload-choose-selected":a,"p-focus":t,"p-disabled":n}};function nt(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",35),e._UZ(1,"p-messages",15),e.TgZ(2,"span",36),e.NdJ("mouseup",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.onBasicUploaderClick())})("keydown",function(s){e.CHM(t);const l=e.oxw();return e.KtG(l.onBasicKeydown(s))}),e.YNc(3,Ge,3,2,"ng-container",37),e.YNc(4,Xe,2,2,"ng-template",null,38,e.W1O),e.YNc(6,et,2,2,"span",39),e.YNc(7,tt,2,4,"input",40),e.qZA()()}if(2&i){const t=e.MAs(5),n=e.oxw();e.uIk("data-pc-name","fileupload"),e.xp6(1),e.Q6J("value",n.msgs)("enableService",!1),e.xp6(1),e.Tol(n.styleClass),e.Q6J("ngClass",e.l5B(12,it,!n.basicButtonLabel,n.hasFiles(),n.focus,n.disabled))("ngStyle",n.style),e.uIk("data-pc-section","choosebutton"),e.xp6(1),e.Q6J("ngIf",n.hasFiles()&&!n.auto)("ngIfElse",t),e.xp6(3),e.Q6J("ngIf",n.basicButtonLabel),e.xp6(1),e.Q6J("ngIf",!n.hasFiles())}}let st=(()=>{class i{document;platformId;renderer;el;sanitizer;zone;http;cd;config;name;url;method="post";multiple;accept;disabled;auto;withCredentials;maxFileSize;invalidFileSizeMessageSummary="{0}: Invalid file size, ";invalidFileSizeMessageDetail="maximum upload size is {0}.";invalidFileTypeMessageSummary="{0}: Invalid file type, ";invalidFileTypeMessageDetail="allowed file types: {0}.";invalidFileLimitMessageDetail="limit is {0} at most.";invalidFileLimitMessageSummary="Maximum number of files exceeded, ";style;styleClass;previewWidth=50;chooseLabel;uploadLabel;cancelLabel;chooseIcon;uploadIcon;cancelIcon;showUploadButton=!0;showCancelButton=!0;mode="advanced";headers;customUpload;fileLimit;uploadStyleClass;cancelStyleClass;removeStyleClass;chooseStyleClass;onBeforeUpload=new e.vpe;onSend=new e.vpe;onUpload=new e.vpe;onError=new e.vpe;onClear=new e.vpe;onRemove=new e.vpe;onSelect=new e.vpe;onProgress=new e.vpe;uploadHandler=new e.vpe;onImageError=new e.vpe;templates;advancedFileInput;basicFileInput;content;set files(t){this._files=[];for(let n=0;n<t.length;n++){let s=t[n];this.validate(s)&&(this.isImage(s)&&(s.objectURL=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(t[n]))),this._files.push(t[n]))}}get files(){return this._files}get basicButtonLabel(){return this.auto||!this.hasFiles()?this.chooseLabel:this.uploadLabel??this.files[0].name}_files=[];progress=0;dragHighlight;msgs;fileTemplate;contentTemplate;toolbarTemplate;chooseIconTemplate;uploadIconTemplate;cancelIconTemplate;uploadedFileCount=0;focus;uploading;duplicateIEEvent;translationSubscription;dragOverListener;constructor(t,n,s,l,u,C,ot,lt,ct){this.document=t,this.platformId=n,this.renderer=s,this.el=l,this.sanitizer=u,this.zone=C,this.http=ot,this.cd=lt,this.config=ct}ngAfterContentInit(){this.templates?.forEach(t=>{switch(t.getType()){case"file":default:this.fileTemplate=t.template;break;case"content":this.contentTemplate=t.template;break;case"toolbar":this.toolbarTemplate=t.template;break;case"chooseicon":this.chooseIconTemplate=t.template;break;case"uploadicon":this.uploadIconTemplate=t.template;break;case"cancelicon":this.cancelIconTemplate=t.template}})}ngOnInit(){this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()})}ngAfterViewInit(){(0,r.NF)(this.platformId)&&"advanced"===this.mode&&this.zone.runOutsideAngular(()=>{this.content&&(this.dragOverListener=this.renderer.listen(this.content.nativeElement,"dragover",this.onDragOver.bind(this)))})}getTranslation(t){return this.config.getTranslation(t)}choose(){this.advancedFileInput?.nativeElement.click()}onFileSelect(t){if("drop"!==t.type&&this.isIE11()&&this.duplicateIEEvent)return void(this.duplicateIEEvent=!1);this.msgs=[],this.multiple||(this.files=[]);let n=t.dataTransfer?t.dataTransfer.files:t.target.files;for(let s=0;s<n.length;s++){let l=n[s];this.isFileSelected(l)||this.validate(l)&&(this.isImage(l)&&(l.objectURL=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(n[s]))),this.files.push(n[s]))}this.onSelect.emit({originalEvent:t,files:n,currentFiles:this.files}),this.fileLimit&&this.checkFileLimit(),this.hasFiles()&&this.auto&&("advanced"!==this.mode||!this.isFileLimitExceeded())&&this.upload(),"drop"!==t.type&&this.isIE11()?this.clearIEInput():this.clearInputElement()}isFileSelected(t){for(let n of this.files)if(n.name+n.type+n.size===t.name+t.type+t.size)return!0;return!1}isIE11(){if((0,r.NF)(this.platformId))return!!this.document.defaultView.MSInputMethodContext&&!!this.document.documentMode}validate(t){return this.msgs=this.msgs||[],this.accept&&!this.isFileTypeValid(t)?(this.msgs.push({severity:"error",summary:this.invalidFileTypeMessageSummary.replace("{0}",t.name),detail:this.invalidFileTypeMessageDetail.replace("{0}",this.accept)}),!1):!(this.maxFileSize&&t.size>this.maxFileSize&&(this.msgs.push({severity:"error",summary:this.invalidFileSizeMessageSummary.replace("{0}",t.name),detail:this.invalidFileSizeMessageDetail.replace("{0}",this.formatSize(this.maxFileSize))}),1))}isFileTypeValid(t){let n=this.accept?.split(",").map(s=>s.trim());for(let s of n)if(this.isWildcard(s)?this.getTypeClass(t.type)===this.getTypeClass(s):t.type==s||this.getFileExtension(t).toLowerCase()===s.toLowerCase())return!0;return!1}getTypeClass(t){return t.substring(0,t.indexOf("/"))}isWildcard(t){return-1!==t.indexOf("*")}getFileExtension(t){return"."+t.name.split(".").pop()}isImage(t){return/^image\//.test(t.type)}onImageLoad(t){window.URL.revokeObjectURL(t.src)}upload(){if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.uploadHandler.emit({files:this.files}),this.cd.markForCheck();else{this.uploading=!0,this.msgs=[];let t=new FormData;this.onBeforeUpload.emit({formData:t});for(let n=0;n<this.files.length;n++)t.append(this.name,this.files[n],this.files[n].name);this.http.request(this.method,this.url,{body:t,headers:this.headers,reportProgress:!0,observe:"events",withCredentials:this.withCredentials}).subscribe(n=>{switch(n.type){case o.dt.Sent:this.onSend.emit({originalEvent:n,formData:t});break;case o.dt.Response:this.uploading=!1,this.progress=0,n.status>=200&&n.status<300?(this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.onUpload.emit({originalEvent:n,files:this.files})):this.onError.emit({files:this.files}),this.clear();break;case o.dt.UploadProgress:n.loaded&&(this.progress=Math.round(100*n.loaded/n.total)),this.onProgress.emit({originalEvent:n,progress:this.progress})}this.cd.markForCheck()},n=>{this.uploading=!1,this.onError.emit({files:this.files,error:n})})}}clear(){this.files=[],this.uploadedFileCount=0,this.onClear.emit(),this.clearInputElement(),this.cd.markForCheck()}remove(t,n){this.clearInputElement(),this.onRemove.emit({originalEvent:t,file:this.files[n]}),this.files.splice(n,1),this.checkFileLimit()}isFileLimitExceeded(){return this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount&&this.focus&&(this.focus=!1),this.fileLimit&&this.fileLimit<this.files.length+this.uploadedFileCount}isChooseDisabled(){return this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount}checkFileLimit(){this.msgs??=[],this.isFileLimitExceeded()&&this.msgs.push({severity:"error",summary:this.invalidFileLimitMessageSummary.replace("{0}",this.fileLimit.toString()),detail:this.invalidFileLimitMessageDetail.replace("{0}",this.fileLimit.toString())})}clearInputElement(){this.advancedFileInput&&this.advancedFileInput.nativeElement&&(this.advancedFileInput.nativeElement.value=""),this.basicFileInput&&this.basicFileInput.nativeElement&&(this.basicFileInput.nativeElement.value="")}clearIEInput(){this.advancedFileInput&&this.advancedFileInput.nativeElement&&(this.duplicateIEEvent=!0,this.advancedFileInput.nativeElement.value="")}hasFiles(){return this.files&&this.files.length>0}onDragEnter(t){this.disabled||(t.stopPropagation(),t.preventDefault())}onDragOver(t){this.disabled||(x.p.addClass(this.content?.nativeElement,"p-fileupload-highlight"),this.dragHighlight=!0,t.stopPropagation(),t.preventDefault())}onDragLeave(t){this.disabled||x.p.removeClass(this.content?.nativeElement,"p-fileupload-highlight")}onDrop(t){if(!this.disabled){x.p.removeClass(this.content?.nativeElement,"p-fileupload-highlight"),t.stopPropagation(),t.preventDefault();let n=t.dataTransfer?t.dataTransfer.files:t.target.files;(this.multiple||n&&1===n.length)&&this.onFileSelect(t)}}onFocus(){this.focus=!0}onBlur(){this.focus=!1}formatSize(t){const l=this.getTranslation(g.ws.FILE_SIZE_TYPES);if(0===t)return`0 ${l[0]}`;const u=Math.floor(Math.log(t)/Math.log(1024));return`${(t/Math.pow(1024,u)).toFixed(3)} ${l[u]}`}onBasicUploaderClick(){this.hasFiles()?this.upload():this.basicFileInput?.nativeElement.click()}onBasicKeydown(t){switch(t.code){case"Space":case"Enter":this.onBasicUploaderClick(),t.preventDefault()}}imageError(t){this.onImageError.emit(t)}getBlockableElement(){return this.el.nativeElement.children[0]}get chooseButtonLabel(){return this.chooseLabel||this.config.getTranslation(g.ws.CHOOSE)}get uploadButtonLabel(){return this.uploadLabel||this.config.getTranslation(g.ws.UPLOAD)}get cancelButtonLabel(){return this.cancelLabel||this.config.getTranslation(g.ws.CANCEL)}ngOnDestroy(){this.content&&this.content.nativeElement&&this.dragOverListener&&(this.dragOverListener(),this.dragOverListener=null),this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||i)(e.Y36(r.K0),e.Y36(e.Lbi),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(te.H7),e.Y36(e.R0b),e.Y36(o.eN),e.Y36(e.sBO),e.Y36(g.b4))};static \u0275cmp=e.Xpm({type:i,selectors:[["p-fileUpload"]],contentQueries:function(n,s,l){if(1&n&&e.Suo(l,g.jx,4),2&n){let u;e.iGM(u=e.CRH())&&(s.templates=u)}},viewQuery:function(n,s){if(1&n&&(e.Gf(ie,5),e.Gf(ne,5),e.Gf(se,5)),2&n){let l;e.iGM(l=e.CRH())&&(s.advancedFileInput=l.first),e.iGM(l=e.CRH())&&(s.basicFileInput=l.first),e.iGM(l=e.CRH())&&(s.content=l.first)}},hostAttrs:[1,"p-element"],inputs:{name:"name",url:"url",method:"method",multiple:"multiple",accept:"accept",disabled:"disabled",auto:"auto",withCredentials:"withCredentials",maxFileSize:"maxFileSize",invalidFileSizeMessageSummary:"invalidFileSizeMessageSummary",invalidFileSizeMessageDetail:"invalidFileSizeMessageDetail",invalidFileTypeMessageSummary:"invalidFileTypeMessageSummary",invalidFileTypeMessageDetail:"invalidFileTypeMessageDetail",invalidFileLimitMessageDetail:"invalidFileLimitMessageDetail",invalidFileLimitMessageSummary:"invalidFileLimitMessageSummary",style:"style",styleClass:"styleClass",previewWidth:"previewWidth",chooseLabel:"chooseLabel",uploadLabel:"uploadLabel",cancelLabel:"cancelLabel",chooseIcon:"chooseIcon",uploadIcon:"uploadIcon",cancelIcon:"cancelIcon",showUploadButton:"showUploadButton",showCancelButton:"showCancelButton",mode:"mode",headers:"headers",customUpload:"customUpload",fileLimit:"fileLimit",uploadStyleClass:"uploadStyleClass",cancelStyleClass:"cancelStyleClass",removeStyleClass:"removeStyleClass",chooseStyleClass:"chooseStyleClass",files:"files"},outputs:{onBeforeUpload:"onBeforeUpload",onSend:"onSend",onUpload:"onUpload",onError:"onError",onClear:"onClear",onRemove:"onRemove",onSelect:"onSelect",onProgress:"onProgress",uploadHandler:"uploadHandler",onImageError:"onImageError"},decls:2,vars:2,consts:[[3,"ngClass","ngStyle","class",4,"ngIf"],["class","p-fileupload p-fileupload-basic p-component",4,"ngIf"],[3,"ngClass","ngStyle"],[1,"p-fileupload-buttonbar"],["pRipple","","tabindex","0",1,"p-button","p-component","p-fileupload-choose",3,"ngClass","focus","blur","click","keydown.enter"],["type","file",3,"multiple","accept","disabled","change"],["advancedfileinput",""],[3,"ngClass","class",4,"ngIf"],[4,"ngIf"],[1,"p-button-label"],["type","button",3,"label","disabled","styleClass","onClick",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"p-fileupload-content",3,"dragenter","dragleave","drop"],["content",""],[3,"value","showValue",4,"ngIf"],[3,"value","enableService"],["class","p-fileupload-files",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-button-icon p-button-icon-left",4,"ngIf"],[3,"styleClass"],[1,"p-button-icon","p-button-icon-left"],["type","button",3,"label","disabled","styleClass","onClick"],["class","p-button-icon p-button-icon-left",3,"ngClass",4,"ngIf"],[1,"p-button-icon","p-button-icon-left",3,"ngClass"],[3,"value","showValue"],[1,"p-fileupload-files"],["class","p-fileupload-row",4,"ngFor","ngForOf"],[1,"p-fileupload-row"],[3,"src","width","error",4,"ngIf"],[1,"p-fileupload-filename"],["type","button","pButton","",1,"p-button-icon-only",3,"disabled","click"],[3,"src","width","error"],["ngFor","",3,"ngForOf","ngForTemplate"],[1,"p-fileupload","p-fileupload-basic","p-component"],["tabindex","0","pRipple","",3,"ngClass","ngStyle","mouseup","keydown"],[4,"ngIf","ngIfElse"],["chooseSection",""],["class","p-button-label",4,"ngIf"],["type","file",3,"accept","multiple","disabled","change","focus","blur",4,"ngIf"],["class","p-button-icon p-button-icon-left pi",3,"ngClass",4,"ngIf"],[1,"p-button-icon","p-button-icon-left","pi",3,"ngClass"],["class","p-button-icon p-button-icon-left pi",4,"ngIf"],[1,"p-button-icon","p-button-icon-left","pi"],["type","file",3,"accept","multiple","disabled","change","focus","blur"],["basicfileinput",""]],template:function(n,s){1&n&&(e.YNc(0,Be,18,35,"div",0),e.YNc(1,nt,8,17,"div",1)),2&n&&(e.Q6J("ngIf","advanced"===s.mode),e.xp6(1),e.Q6J("ngIf","basic"===s.mode))},dependencies:function(){return[r.mk,r.sg,r.O5,r.tP,r.PC,h.Hq,h.zx,y.k,ee,I.H,b.p,d,v.q]},styles:["@layer primeng{.p-fileupload-content{position:relative}.p-fileupload-row{display:flex;align-items:center}.p-fileupload-row>div{flex:1 1 auto;width:25%}.p-fileupload-row>div:last-child{text-align:right}.p-fileupload-content .p-progressbar{width:100%;position:absolute;top:0;left:0}.p-button.p-fileupload-choose{position:relative;overflow:hidden}.p-button.p-fileupload-choose input[type=file],.p-fileupload-choose.p-fileupload-choose-selected input[type=file]{display:none}.p-fluid .p-fileupload .p-button{width:auto}.p-fileupload-filename{word-break:break-all}}\n"],encapsulation:2,changeDetection:0})}return i})(),at=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=e.oAB({type:i});static \u0275inj=e.cJS({imports:[r.ez,o.JF,g.m8,h.hJ,y.q,M,I.T,b.p,d,v.q,g.m8,h.hJ,y.q,M]})}return i})()},66651:(k,T,c)=>{c.d(T,{k:()=>b,q:()=>v});var r=c(96814),o=c(94946);function e(p,m){if(1&p&&(o.TgZ(0,"div",5),o._uU(1),o.qZA()),2&p){const d=o.oxw(2);o.Udp("display",null!=d.value&&0!==d.value?"flex":"none"),o.uIk("data-pc-section","label"),o.xp6(1),o.AsE("",d.value,"",d.unit,"")}}function g(p,m){if(1&p&&(o.TgZ(0,"div",3),o.YNc(1,e,2,5,"div",4),o.qZA()),2&p){const d=o.oxw();o.Udp("width",d.value+"%")("background",d.color),o.uIk("data-pc-section","value"),o.xp6(1),o.Q6J("ngIf",d.showValue)}}function h(p,m){if(1&p&&(o.TgZ(0,"div",6),o._UZ(1,"div",7),o.qZA()),2&p){const d=o.oxw();o.uIk("data-pc-section","container"),o.xp6(1),o.Udp("background",d.color),o.uIk("data-pc-section","value")}}const x=function(p,m){return{"p-progressbar p-component":!0,"p-progressbar-determinate":p,"p-progressbar-indeterminate":m}};let b=(()=>{class p{value;showValue=!0;styleClass;style;unit="%";mode="determinate";color;static \u0275fac=function(_){return new(_||p)};static \u0275cmp=o.Xpm({type:p,selectors:[["p-progressBar"]],hostAttrs:[1,"p-element"],inputs:{value:"value",showValue:"showValue",styleClass:"styleClass",style:"style",unit:"unit",mode:"mode",color:"color"},decls:3,vars:14,consts:[["role","progressbar",3,"ngStyle","ngClass"],["class","p-progressbar-value p-progressbar-value-animate","style","display:flex",3,"width","background",4,"ngIf"],["class","p-progressbar-indeterminate-container",4,"ngIf"],[1,"p-progressbar-value","p-progressbar-value-animate",2,"display","flex"],["class","p-progressbar-label",3,"display",4,"ngIf"],[1,"p-progressbar-label"],[1,"p-progressbar-indeterminate-container"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(_,f){1&_&&(o.TgZ(0,"div",0),o.YNc(1,g,2,6,"div",1),o.YNc(2,h,2,4,"div",2),o.qZA()),2&_&&(o.Tol(f.styleClass),o.Q6J("ngStyle",f.style)("ngClass",o.WLB(11,x,"determinate"===f.mode,"indeterminate"===f.mode)),o.uIk("aria-valuemin",0)("aria-valuenow",f.value)("aria-valuemax",100)("data-pc-name","progressbar")("data-pc-section","root"),o.xp6(1),o.Q6J("ngIf","determinate"===f.mode),o.xp6(1),o.Q6J("ngIf","indeterminate"===f.mode))},dependencies:[r.mk,r.O5,r.PC],styles:['@layer primeng{.p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate .p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0 none;display:flex;align-items:center;justify-content:center;overflow:hidden}.p-progressbar-determinate .p-progressbar-label{display:inline-flex}.p-progressbar-determinate .p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-indeterminate .p-progressbar-value:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate .p-progressbar-value:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}}@keyframes p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}\n'],encapsulation:2,changeDetection:0})}return p})(),v=(()=>{class p{static \u0275fac=function(_){return new(_||p)};static \u0275mod=o.oAB({type:p});static \u0275inj=o.cJS({imports:[r.ez]})}return p})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[4575],{24575:(ut,m,i)=>{i.r(m),i.d(m,{DeploymentSettingsM:()=>rt});var C=i(77664),S=i(17017),h=i(81490),p=i(15861),r=i(60095),l=i(20553),t=i(94946),T=i(45809),f=i(95852),Z=i(19394),U=i(46178),x=i(69862);let y=(()=>{class a extends U.g{http;authCS;constructor(e,o){super(e,Z.k4.ROOT_USER_SETTINGS),this.http=e,this.authCS=o}saveRootUserSettings(e){return this.http.put(l.N.BE_HOST_PORT_SITES+`${this.modelPath}/set-root-user-settings`,e).toPromise()}getRootUserSettings(){return this.http.get(l.N.BE_HOST_PORT_SITES+`${this.modelPath}/get-root-user-settings`)}verifyRootUserSettings(e){return this.http.post(l.N.BE_HOST_PORT_SITES+`${this.modelPath}/verify-root-user-settings`,e).toPromise()}static \u0275fac=function(o){return new(o||a)(t.LFG(x.eN),t.LFG(f.D))};static \u0275prov=t.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var A=i(77240),b=i(53429),_=i(99961),R=i(96814),D=i(32660),J=i(756),k=i(33259),w=i(38057),L=i(96218),I=i(54323);function N(a,s){1&a&&t._UZ(0,"i",64)}function F(a,s){if(1&a&&t._UZ(0,"i",65),2&a){const e=t.oxw();t.Q6J("pTooltip",null==e.validationResp?null:e.validationResp.logDatabaseConnectionMessage)}}function q(a,s){if(1&a){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",66)(2,"span",67),t._uU(3,"\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf"),t.qZA(),t.TgZ(4,"a",68),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.showLogDbConnection=!0)}),t._UZ(5,"i",69),t._uU(6," Show "),t.qZA()(),t.BQk()}}function O(a,s){if(1&a){const e=t.EpF();t.TgZ(0,"a",71),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.showLogDbConnection=!1)}),t._UZ(1,"i",72),t._uU(2," Hide "),t.qZA()}}function E(a,s){if(1&a&&(t._UZ(0,"textarea",70),t.YNc(1,O,3,0,"a",36)),2&a){const e=t.oxw();t.Q6J("autoResize",!0),t.xp6(1),t.Q6J("ngIf",e.showLogDbConnection)}}function P(a,s){1&a&&t._UZ(0,"i",64)}function M(a,s){if(1&a&&t._UZ(0,"i",65),2&a){const e=t.oxw();t.Q6J("pTooltip",null==e.validationResp?null:e.validationResp.externalRedisSettingsJsonMessage)}}function Y(a,s){if(1&a){const e=t.EpF();t.TgZ(0,"div",66)(1,"span",67),t._uU(2,"\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf"),t.qZA(),t.TgZ(3,"a",68),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.showRedisJson=!0)}),t._UZ(4,"i",69),t._uU(5," Show "),t.qZA()()}}function Q(a,s){if(1&a){const e=t.EpF();t.TgZ(0,"a",71),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.showRedisJson=!1)}),t._UZ(1,"i",72),t._uU(2," Hide "),t.qZA()}}function V(a,s){if(1&a){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",66)(2,"span",67),t._uU(3,"\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf"),t.qZA(),t.TgZ(4,"a",68),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.showJwtPassword=!0)}),t._UZ(5,"i",69),t._uU(6," Show "),t.qZA()(),t.BQk()}}function G(a,s){if(1&a){const e=t.EpF();t.TgZ(0,"a",71),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.showJwtPassword=!1)}),t._UZ(1,"i",72),t._uU(2," Hide "),t.qZA()}}function H(a,s){if(1&a&&(t._UZ(0,"input",73),t.YNc(1,G,3,0,"a",36)),2&a){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.showJwtPassword)}}function W(a,s){if(1&a){const e=t.EpF();t.TgZ(0,"div",24)(1,"label",11),t._uU(2,"API URL"),t.qZA(),t.TgZ(3,"div",80)(4,"code",81),t._uU(5),t.qZA(),t.TgZ(6,"i",82),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.copyToClipboard(n.BE_HOST_PORT+"/api/sites/root-user-settings/operate-api-maker-using-api"))}),t.qZA()()()}if(2&a){const e=t.oxw(2);t.xp6(5),t.hij("",e.BE_HOST_PORT,"/api/sites/root-user-settings/operate-api-maker-using-api")}}function j(a,s){if(1&a){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",66)(2,"span",67),t._uU(3,"\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf\u25cf"),t.qZA(),t.TgZ(4,"a",68),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(3);return t.KtG(n.showCommunicationToken=!0)}),t._UZ(5,"i",69),t._uU(6," Show "),t.qZA()(),t.BQk()}}function B(a,s){if(1&a){const e=t.EpF();t.TgZ(0,"a",71),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(4);return t.KtG(n.showCommunicationToken=!1)}),t._UZ(1,"i",72),t._uU(2," Hide "),t.qZA()}}function K(a,s){if(1&a&&(t._UZ(0,"input",85),t.YNc(1,B,3,0,"a",36)),2&a){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.showCommunicationToken)}}function $(a,s){1&a&&(t.TgZ(0,"div",86),t._uU(1," Communication Token is required. "),t.qZA())}function z(a,s){if(1&a&&(t.TgZ(0,"div",86),t._uU(1),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.hij(" Minimum 48 characters required (current: ",(null==e.form.get("rootUserCommunicationToken").value?null:e.form.get("rootUserCommunicationToken").value.length)||0,"). ")}}function X(a,s){if(1&a){const e=t.EpF();t.TgZ(0,"div",24)(1,"label",11),t._uU(2,"Communication Token"),t.qZA(),t.TgZ(3,"div",14),t.YNc(4,j,7,0,"ng-container",15),t.YNc(5,K,2,1,"ng-template",null,83,t.W1O),t.YNc(7,$,2,0,"div",84),t.YNc(8,z,2,1,"div",84),t.qZA(),t.TgZ(9,"div",26)(10,"div")(11,"a",46),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.generateRootUserCommunicationToken())}),t._UZ(12,"i",47),t._uU(13," Generate "),t.qZA(),t.TgZ(14,"span",48),t._uU(15,"Used to authenticate API Maker API calls. Min 48 characters."),t.qZA()()()()}if(2&a){const e=t.MAs(6),o=t.oxw(2);t.xp6(4),t.Q6J("ngIf",o.form.get("rootUserCommunicationToken").value&&!o.showCommunicationToken)("ngIfElse",e),t.xp6(3),t.Q6J("ngIf",null==o.form.get("rootUserCommunicationToken").errors?null:o.form.get("rootUserCommunicationToken").errors.required),t.xp6(1),t.Q6J("ngIf",null==o.form.get("rootUserCommunicationToken").errors?null:o.form.get("rootUserCommunicationToken").errors.minlength)}}function tt(a,s){if(1&a&&(t.TgZ(0,"div",5)(1,"div",6)(2,"span"),t._UZ(3,"i",74),t._uU(4," API Access"),t.qZA()(),t.TgZ(5,"div",8)(6,"div",9)(7,"div",10)(8,"label",11),t._uU(9,"Operate API Maker Using API"),t.qZA(),t.TgZ(10,"div",75),t._UZ(11,"p-checkbox",76),t.qZA(),t.TgZ(12,"div",26)(13,"a",77),t._UZ(14,"i",78),t._uU(15," Documentation "),t.qZA()()(),t.YNc(16,W,7,1,"div",79),t.YNc(17,X,16,4,"div",79),t.qZA()()()),2&a){const e=t.oxw();t.xp6(11),t.Q6J("binary",!0),t.xp6(5),t.Q6J("ngIf",e.form.get("operateUsingApi").value),t.xp6(1),t.Q6J("ngIf",e.form.get("operateUsingApi").value)}}function et(a,s){1&a&&t._UZ(0,"i",64)}function nt(a,s){if(1&a&&t._UZ(0,"i",65),2&a){const e=t.oxw();t.Q6J("pTooltip",null==e.validationResp?null:e.validationResp.d2DiagramLibPathMessage)}}function ot(a,s){if(1&a&&(t.TgZ(0,"span",87),t._uU(1),t.qZA()),2&a){const e=t.oxw();t.xp6(1),t.Oqu(e.validationResp.d2DiagramLibVersion)}}function at(a,s){if(1&a&&(t._UZ(0,"div",88),t.ALo(1,"safeHtml")),2&a){const e=t.oxw();t.Q6J("innerHTML",t.lcZ(1,1,e.d2InstallError),t.oJD)}}function it(a,s){if(1&a){const e=t.EpF();t.TgZ(0,"a",89),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.installAndDetectD2Lib())}),t._UZ(1,"i",90),t._uU(2," Auto Install "),t.qZA()}}const st=[{path:"",component:(()=>{class a{fb;monacoS;authCS;rootUserSettings;generalS;instanceS;ns;cd;notificationS;form;formData;loading={form:!1};BE_HOST_PORT=l.N.BE_HOST_PORT;sampleConnectionString="mongodb://username:password@127.0.0.1:27017/databaseName?authSource=admin&replicaSet=rs0&directConnection=true";sampleJson='{\n "nodes": [\n {\n "port": 6390,\n "host": "127.0.0.1",\n "pass": ""\n }\n ],\n "otherRedisClusterOptions": null,\n "redisValueExpireInSeconds": 7200,\n "maxCharsResToCache": 1000000\n}';editorRedisConnectionJSON;editorOptionsRedisConnectionJSON={readOnly:!1,language:"json",contextmenu:!0};pendingRedisJSON;editorStartupScript;editorOptionsStartupScript={readOnly:!1,language:"bash",contextmenu:!0};pendingStartupScript;d2InstallError;validationResp;showLogDbConnection=!1;showRedisJson=!1;showJwtPassword=!1;showCommunicationToken=!1;hasRedisJsonValue=!1;showApiAccessSection=!0;constructor(e,o,n,c,u,d,g,lt,ct){this.fb=e,this.monacoS=o,this.authCS=n,this.rootUserSettings=c,this.generalS=u,this.instanceS=d,this.ns=g,this.cd=lt,this.notificationS=ct}ngOnInit(){var e=this;return(0,p.Z)(function*(){e.createForm(),yield e.loadData(),e.form.get("operateUsingApi").valueChanges.subscribe(o=>{const n=e.form.get("rootUserCommunicationToken");n.setValidators(o?[r.kI.required,r.kI.minLength(48)]:[r.kI.minLength(48)]),n.updateValueAndValidity()})})()}createForm(){this.form=this.fb.group({logDatabaseConnectionString:["",[]],externalRedisSettingsJsonString:["",[]],serverStartupScript:["",[]],universalLoginCaptcha:["",[]],logRemoveSchedulerInterval:["0 0 0 * * *",[]],passJWTOfAPIUsers:["",[]],jwtTokenExpiresInSeconds:[259200,[r.kI.min(60),r.kI.max(10368e4)]],maxLogsCount:[1e4,[]],d2DiagramLibPath:[1e4,[]],operateUsingApi:[!1,[]],rootUserCommunicationToken:["",[r.kI.minLength(48)]]})}loadData(){var e=this;return(0,p.Z)(function*(){try{e.loading.form=!0;const o=(yield e.rootUserSettings.getRootUserSettings().toPromise()).data;if(e.form.reset(),e.form.patchValue(o),o?.logDatabaseConnectionString){const n=e.generalS.getDecryptedString(o.logDatabaseConnectionString,l.N.crypto.passCommunication);e.form.get("logDatabaseConnectionString").setValue(n)}if(o?.passJWTOfAPIUsers){const n=e.generalS.getDecryptedString(o.passJWTOfAPIUsers,l.N.crypto.passCommunication);e.form.get("passJWTOfAPIUsers").setValue(n)}if(o?.externalRedisSettingsJsonString){const n=e.generalS.getDecryptedString(o.externalRedisSettingsJsonString,l.N.crypto.passCommunication);e.editorRedisConnectionJSON?e.editorRedisConnectionJSON.setValue(n):e.pendingRedisJSON=n,e.hasRedisJsonValue=!0}if(o?.serverStartupScript&&(e.editorStartupScript?e.editorStartupScript.setValue(o.serverStartupScript):e.pendingStartupScript=o.serverStartupScript),o?.universalLoginCaptcha){const n=e.generalS.getDecryptedString(o.universalLoginCaptcha,l.N.crypto.passCommunication);e.form.get("universalLoginCaptcha").setValue(n)}if(o?.rootUserCommunicationToken){const n=e.generalS.getDecryptedString(o.rootUserCommunicationToken,l.N.crypto.passCommunication);e.form.get("rootUserCommunicationToken").setValue(n)}e.loading.form=!1}catch(o){e.loading.form=!1,e.ns.showErrorFromResponse(o.error||o,"Unable to load data.")}})()}update(){var e=this;return(0,p.Z)(function*(){try{if(e.loading.form=!0,e.formData=e.form.getRawValue(),e.form.get("operateUsingApi").value&&e.form.get("rootUserCommunicationToken").invalid)return e.ns.showError("Communication Token is required and must be at least 48 characters."),void(e.loading.form=!1);e.form.get("logDatabaseConnectionString").value&&(e.formData.logDatabaseConnectionString=e.generalS.getEncryptedString(e.form.get("logDatabaseConnectionString").value,l.N.crypto.passCommunication)),e.form.get("passJWTOfAPIUsers").value&&(e.formData.passJWTOfAPIUsers=e.generalS.getEncryptedString(e.form.get("passJWTOfAPIUsers").value,l.N.crypto.passCommunication)),e.editorRedisConnectionJSON.getValue()&&(e.formData.externalRedisSettingsJsonString=e.generalS.getEncryptedString(e.editorRedisConnectionJSON.getValue(),l.N.crypto.passCommunication)),e.editorStartupScript.getValue()&&(e.formData.serverStartupScript=e.editorStartupScript.getValue()),e.form.get("universalLoginCaptcha").value&&(e.formData.universalLoginCaptcha=e.generalS.getEncryptedString(e.form.get("universalLoginCaptcha").value,l.N.crypto.passCommunication)),e.form.get("rootUserCommunicationToken").value&&(e.formData.rootUserCommunicationToken=e.generalS.getEncryptedString(e.form.get("rootUserCommunicationToken").value,l.N.crypto.passCommunication)),yield e.verifyRootUser(e.formData),!e.validationResp.logDatabaseConnectionMessage&&!e.validationResp.externalRedisSettingsJsonMessage&&(yield e.rootUserSettings.saveRootUserSettings(e.formData),e.loading.form=!1,e.ns.showSuccess("Settings verified and saved successfully.")),e.loading.form=!1}catch(o){e.loading.form=!1,e.ns.showErrorFromResponse(o.error||o,"Unable to update.")}})()}verifyRootUser(e){var o=this;return(0,p.Z)(function*(){const n=yield o.rootUserSettings.verifyRootUserSettings(e);o.validationResp=n.data,setTimeout(()=>{o.cd.detectChanges()},1e3)})()}copyToClipboard(e){var o=this;return(0,p.Z)(function*(){"json"===e?yield navigator.clipboard.writeText(o.sampleJson):e?yield navigator.clipboard.writeText(e):yield navigator.clipboard.writeText(o.sampleConnectionString),o.notificationS.showSuccess("Copied to clipboard.")})()}editorGenerated(e){var o=this;return(0,p.Z)(function*(){o.loading.form=!0,o.editorRedisConnectionJSON=e,o.pendingRedisJSON&&(o.editorRedisConnectionJSON.setValue(o.pendingRedisJSON),o.pendingRedisJSON=null),yield o.monacoS.loadSchemaEditorSettings(o.BE_HOST_PORT,o.authCS.getUserId(),null),o.monacoS.addSaveCodeKeyBinding(e,n=>{o.form.valid&&o.update()}),o.loading.form=!1})()}editorGeneratedStartupScript(e){var o=this;return(0,p.Z)(function*(){o.loading.form=!0,o.editorStartupScript=e,o.pendingStartupScript&&(o.editorStartupScript.setValue(o.pendingStartupScript),o.pendingStartupScript=null),o.monacoS.addSaveCodeKeyBinding(e,n=>{o.form.valid&&o.update()}),o.loading.form=!1})()}installAndDetectD2Lib(){var e=this;return(0,p.Z)(function*(){e.loading.form=!0;try{const n=(yield e.instanceS.installAndDetectD2Lib()).data,c=n[0].d2InstallOutput?.data?.d2LibPath;if(c)e.form.patchValue({d2DiagramLibPath:c}),e.ns.showSuccess("D2 library installed successfully.");else{const u=n[0].d2InstallOutput?.errors?.[0]?.message;e.ns.showError(u),e.d2InstallError=u}}catch(o){e.ns.showErrorFromResponse(o.error||o,"Unable to install d2 diagram library.")}e.loading.form=!1,e.cd.detectChanges()})()}generateRandomValue(e){const o=this.generalS.getRandomStringWithCapitals(5),n=this.generalS.getRandomStringWithCapitals(5),c=this.generalS.getRandomStringWithCapitals(5),u=this.generalS.getRandomStringWithCapitals(5),d=this.generalS.getRandomStringWithCapitals(5),g=this.generalS.getRandomStringWithCapitals(5);this.form.get(e).setValue(`${o}_${n}_${c}_${u}_${d}_${g}`)}generateRootUserCommunicationToken(){const e=Array.from({length:10},()=>this.generalS.getRandomStringWithCapitals(5));this.form.get("rootUserCommunicationToken").setValue(e.join("_"))}static \u0275fac=function(o){return new(o||a)(t.Y36(r.qu),t.Y36(T.b),t.Y36(f.D),t.Y36(y),t.Y36(A.b),t.Y36(b.E),t.Y36(_.W),t.Y36(t.sBO),t.Y36(_.W))};static \u0275cmp=t.Xpm({type:a,selectors:[["app-dep-set-layout"]],decls:204,vars:30,consts:[[1,"pt-1","pl-3","pr-3","full-body","overflow-auto"],[1,"text-right",2,"position","sticky","top","0","z-index","100","padding","6px 5px"],["sava-no-dbl-click","","type","button",1,"btn","btn-success","btn-sm",3,"click"],[1,"fas","fa-save","fa-fw","mr-1"],[3,"formGroup"],[1,"card","shadow-sm","mr-1","mb-3"],[1,"card-header"],[1,"fas","fa-database","text-info","fa-fw","mr-1"],[1,"card-body","p-3"],[1,"container"],[1,"row"],[1,"col-2","col-form-label","col-form-label-sm","text-right"],["class","fas fa-check-circle text-success ml-1",4,"ngIf"],["class","fas fa-times-circle text-danger ml-1",3,"pTooltip",4,"ngIf"],[1,"col-6"],[4,"ngIf","ngIfElse"],["logDbInput",""],[1,"text-danger","small"],[1,"col-4","pl-2"],[1,"border","rounded","p-2","h-100","d-flex","flex-column","justify-content-between",2,"background","rgba(255,255,255,.03)"],[1,"d-flex","justify-content-between","mb-1"],[1,"text-muted"],["pTooltip","Copy example",1,"fas","fa-copy","text-warning","fa-fw","cursor-pointer",3,"click"],[1,"font-monospaced","text-secondary",2,"word-break","break-all","line-height","1.5"],[1,"row","mt-3"],["formControlName","logRemoveSchedulerInterval","spellcheck","false","type","text","placeholder","0 0 0 * * *",1,"form-control","form-control-sm","font-monospaced"],[1,"col-4","pl-2","d-flex","align-items-center"],[1,"small","text-info"],[1,"col-3"],["formControlName","maxLogsCount","spellcheck","false","type","number","placeholder","10000",1,"form-control","form-control-sm","font-monospaced"],[1,"col-7","pl-2","d-flex","align-items-center"],[1,"fas","fa-bolt","text-warning","fa-fw","mr-1"],["class","d-flex align-items-center","style","padding-top: calc(.25rem + 1px); padding-bottom: calc(.25rem + 1px);",4,"ngIf"],[3,"hidden"],[2,"height","220px"],[3,"isSchemaEditor","editorOptions","editorGenerated"],["href","javascript:","class","small text-muted d-inline-block mt-1",3,"click",4,"ngIf"],[1,"border","rounded","p-2","h-100","d-flex","flex-column",2,"background","rgba(255,255,255,.03)"],[1,"d-flex","justify-content-between","mb-2"],[1,"mb-0","small","font-monospaced",2,"white-space","pre-wrap","line-height","1.6"],[1,"text-info"],[1,"text-warning"],[1,"text-success"],[1,"fas","fa-shield-alt","text-success","fa-fw","mr-1"],["formControlName","universalLoginCaptcha","spellcheck","false","type","text","placeholder","Captcha key",1,"form-control","form-control-sm","font-monospaced"],["jwtInput",""],["href","javascript:",1,"small","text-info","d-block",3,"click"],[1,"fas","fa-random","fa-fw"],[1,"small","text-muted"],["formControlName","jwtTokenExpiresInSeconds","spellcheck","false","type","number",1,"form-control","form-control-sm","font-monospaced"],["class","card shadow-sm mr-1 mb-3",4,"ngIf"],[1,"fas","fa-tools","text-light","fa-fw","mr-1"],["formControlName","d2DiagramLibPath","spellcheck","false","type","text","placeholder","/usr/local/bin/d2",1,"form-control","form-control-sm","font-monospaced"],["class","small text-success",4,"ngIf"],["class","text-danger small mt-1",3,"innerHTML",4,"ngIf"],["class","small text-info d-block mb-1","href","javascript:",3,"click",4,"ngIf"],["href","https://docs.apimaker.dev/v1/docs/blog/install-d2.html","target","_blank",1,"small","text-warning"],[1,"fas","fa-link","fa-fw"],[1,"card","shadow-sm","mr-1","mb-5"],[1,"fas","fa-terminal","text-secondary","fa-fw","mr-1"],[1,"border","rounded","p-2",2,"background","rgba(255,255,255,.03)"],[1,"text-muted","d-block","mb-2"],[1,"small","text-secondary","pl-3","mb-2"],[1,"mb-0","mt-1","small","font-monospaced","text-warning"],[1,"fas","fa-check-circle","text-success","ml-1"],[1,"fas","fa-times-circle","text-danger","ml-1",3,"pTooltip"],[1,"d-flex","align-items-center",2,"padding-top","calc(.25rem + 1px)","padding-bottom","calc(.25rem + 1px)"],[1,"text-muted","font-monospaced"],["href","javascript:",1,"small","text-info","ml-2",3,"click"],[1,"fas","fa-eye","fa-fw"],["rows","3","formControlName","logDatabaseConnectionString","spellcheck","false","placeholder","mongodb://username:password@host:port/db","pInputTextarea","",1,"form-control","form-control-sm","font-monospaced",3,"autoResize"],["href","javascript:",1,"small","text-muted","d-inline-block","mt-1",3,"click"],[1,"fas","fa-eye-slash","fa-fw"],["maxlength","32","formControlName","passJWTOfAPIUsers","spellcheck","false","type","text",1,"form-control","form-control-sm","font-monospaced"],[1,"fas","fa-plug","text-primary","fa-fw","mr-1"],[1,"col-6","d-flex","align-items-center"],["formControlName","operateUsingApi","inputId","operateUsingApi",3,"binary"],["href","https://docs.apimaker.dev/v1/docs/am-resources/operate-api-maker-using-api.html","target","_blank",1,"small","text-info"],[1,"fas","fa-book","fa-fw"],["class","row mt-3",4,"ngIf"],[1,"col-10","d-flex","align-items-center"],[1,"small","text-warning","font-monospaced"],["pTooltip","Copy URL",1,"fas","fa-copy","text-muted","ml-2","cursor-pointer",3,"click"],["commTokenInput",""],["class","text-danger small mt-1",4,"ngIf"],["formControlName","rootUserCommunicationToken","spellcheck","false","type","text","placeholder","Minimum 48 characters",1,"form-control","form-control-sm","font-monospaced"],[1,"text-danger","small","mt-1"],[1,"small","text-success"],[1,"text-danger","small","mt-1",3,"innerHTML"],["href","javascript:",1,"small","text-info","d-block","mb-1",3,"click"],[1,"fas","fa-cloud-download-alt","fa-fw"]],template:function(o,n){if(1&o&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return n.update()}),t._UZ(3,"i",3),t._uU(4," Save "),t.qZA()(),t.TgZ(5,"form",4)(6,"div",5)(7,"div",6)(8,"span"),t._UZ(9,"i",7),t._uU(10," Logging"),t.qZA()(),t.TgZ(11,"div",8)(12,"div",9)(13,"div",10)(14,"label",11),t._uU(15," Log DB Connection String "),t.YNc(16,N,1,0,"i",12),t.YNc(17,F,1,1,"i",13),t.qZA(),t.TgZ(18,"div",14),t.YNc(19,q,7,0,"ng-container",15),t.YNc(20,E,2,2,"ng-template",null,16,t.W1O),t.TgZ(22,"div",17),t._uU(23),t.qZA()(),t.TgZ(24,"div",18)(25,"div",19)(26,"div",20)(27,"small",21),t._uU(28,"Example"),t.qZA(),t.TgZ(29,"i",22),t.NdJ("click",function(){return n.copyToClipboard()}),t.qZA()(),t.TgZ(30,"small",23),t._uU(31),t.qZA()()()(),t.TgZ(32,"div",24)(33,"label",11),t._uU(34,"Log Remove CRON"),t.qZA(),t.TgZ(35,"div",14),t._UZ(36,"input",25),t.TgZ(37,"div",17),t._uU(38),t.qZA()(),t.TgZ(39,"div",26)(40,"span",27),t._uU(41,"Clean logs daily. Ex: "),t.TgZ(42,"code"),t._uU(43,"0 0 0 * * *"),t.qZA()()()(),t.TgZ(44,"div",24)(45,"label",11),t._uU(46,"Max Logs Count"),t.qZA(),t.TgZ(47,"div",28),t._UZ(48,"input",29),t.qZA(),t.TgZ(49,"div",30)(50,"span",27),t._uU(51,"Keeps the most recent N log entries."),t.qZA()()()()()(),t.TgZ(52,"div",5)(53,"div",6)(54,"span"),t._UZ(55,"i",31),t._uU(56," Cache (Redis)"),t.qZA()(),t.TgZ(57,"div",8)(58,"div",9)(59,"div",10)(60,"label",11),t._uU(61," Redis Connection JSON "),t.YNc(62,P,1,0,"i",12),t.YNc(63,M,1,1,"i",13),t.qZA(),t.TgZ(64,"div",14),t.YNc(65,Y,6,0,"div",32),t.TgZ(66,"div",33)(67,"div",34)(68,"app-monaco-editor",35),t.NdJ("editorGenerated",function(u){return n.editorGenerated(u)}),t.qZA()(),t.YNc(69,Q,3,0,"a",36),t.qZA(),t.TgZ(70,"div",17),t._uU(71),t.qZA()(),t.TgZ(72,"div",18)(73,"div",37)(74,"div",38)(75,"small",21),t._uU(76,"Example"),t.qZA(),t.TgZ(77,"i",22),t.NdJ("click",function(){return n.copyToClipboard("json")}),t.qZA()(),t.TgZ(78,"pre",39),t._uU(79),t.TgZ(80,"span",40),t._uU(81,'"nodes"'),t.qZA(),t._uU(82),t.TgZ(83,"span",40),t._uU(84,'"port"'),t.qZA(),t._uU(85,": "),t.TgZ(86,"span",41),t._uU(87,"6390"),t.qZA(),t._uU(88,",\n "),t.TgZ(89,"span",40),t._uU(90,'"host"'),t.qZA(),t._uU(91,": "),t.TgZ(92,"span",42),t._uU(93,'"127.0.0.1"'),t.qZA(),t._uU(94,",\n "),t.TgZ(95,"span",40),t._uU(96,'"pass"'),t.qZA(),t._uU(97,": "),t.TgZ(98,"span",42),t._uU(99,'""'),t.qZA(),t._uU(100),t.TgZ(101,"span",40),t._uU(102,'"otherRedisClusterOptions"'),t.qZA(),t._uU(103,": "),t.TgZ(104,"span",21),t._uU(105,"null"),t.qZA(),t._uU(106,",\n "),t.TgZ(107,"span",40),t._uU(108,'"redisValueExpireInSeconds"'),t.qZA(),t._uU(109,": "),t.TgZ(110,"span",41),t._uU(111,"7200"),t.qZA(),t._uU(112,",\n "),t.TgZ(113,"span",40),t._uU(114,'"maxCharsResToCache"'),t.qZA(),t._uU(115,": "),t.TgZ(116,"span",41),t._uU(117,"1000000"),t.qZA(),t._uU(118),t.qZA()()()()()()(),t.TgZ(119,"div",5)(120,"div",6)(121,"span"),t._UZ(122,"i",43),t._uU(123," Security"),t.qZA()(),t.TgZ(124,"div",8)(125,"div",9)(126,"div",10)(127,"label",11),t._uU(128,"Universal Login Captcha"),t.qZA(),t.TgZ(129,"div",14),t._UZ(130,"input",44),t.qZA()(),t.TgZ(131,"div",24)(132,"label",11),t._uU(133,"JWT Password"),t.qZA(),t.TgZ(134,"div",14),t.YNc(135,V,7,0,"ng-container",15),t.YNc(136,H,2,1,"ng-template",null,45,t.W1O),t.qZA(),t.TgZ(138,"div",26)(139,"div")(140,"a",46),t.NdJ("click",function(){return n.generateRandomValue("passJWTOfAPIUsers")}),t._UZ(141,"i",47),t._uU(142," Generate "),t.qZA(),t.TgZ(143,"span",48),t._uU(144,"Used to sign JWT tokens. Changing this logs out all app users."),t.qZA()()()(),t.TgZ(145,"div",24)(146,"label",11),t._uU(147,"JWT Expires (seconds)"),t.qZA(),t.TgZ(148,"div",28),t._UZ(149,"input",49),t.qZA(),t.TgZ(150,"div",30)(151,"span",27),t._uU(152,"259200 = 3 days \xa0|\xa0 86400 = 1 day"),t.qZA()()()()()(),t.YNc(153,tt,18,3,"div",50),t.TgZ(154,"div",5)(155,"div",6)(156,"span"),t._UZ(157,"i",51),t._uU(158," Tools"),t.qZA()(),t.TgZ(159,"div",8)(160,"div",9)(161,"div",10)(162,"label",11),t._uU(163," D2 Diagram Library "),t.YNc(164,et,1,0,"i",12),t.YNc(165,nt,1,1,"i",13),t.qZA(),t.TgZ(166,"div",14),t._UZ(167,"input",52),t.YNc(168,ot,2,1,"span",53),t.YNc(169,at,2,3,"div",54),t.qZA(),t.TgZ(170,"div",26)(171,"div"),t.YNc(172,it,3,0,"a",55),t.TgZ(173,"a",56),t._UZ(174,"i",57),t._uU(175," Install Guide "),t.qZA()()()()()()(),t.TgZ(176,"div",58)(177,"div",6)(178,"span"),t._UZ(179,"i",59),t._uU(180," Scripts"),t.qZA()(),t.TgZ(181,"div",8)(182,"div",9)(183,"div",10)(184,"label",11),t._uU(185,"Server Startup Script"),t.qZA(),t.TgZ(186,"div",14)(187,"div",34)(188,"app-monaco-editor",35),t.NdJ("editorGenerated",function(u){return n.editorGeneratedStartupScript(u)}),t.qZA()()(),t.TgZ(189,"div",18)(190,"div",60)(191,"small",61),t._uU(192,"Notes"),t.qZA(),t.TgZ(193,"ul",62)(194,"li"),t._uU(195,"Direct bash script, runs once on process/worker start."),t.qZA(),t.TgZ(196,"li"),t._uU(197,"All environment variables are available."),t.qZA(),t.TgZ(198,"li"),t._uU(199,"Useful for installing NPM packages for native APIs."),t.qZA()(),t.TgZ(200,"small",21),t._uU(201,"Example:"),t.qZA(),t.TgZ(202,"pre",63),t._uU(203,"npm install is-even"),t.qZA()()()()()()()()()),2&o){const c=t.MAs(21),u=t.MAs(137);t.xp6(5),t.Q6J("formGroup",n.form),t.xp6(11),t.Q6J("ngIf",n.validationResp&&(null==n.formData?null:n.formData.logDatabaseConnectionString)&&!(null!=n.validationResp&&n.validationResp.logDatabaseConnectionMessage)),t.xp6(1),t.Q6J("ngIf",null==n.validationResp?null:n.validationResp.logDatabaseConnectionMessage),t.xp6(2),t.Q6J("ngIf",n.form.get("logDatabaseConnectionString").value&&!n.showLogDbConnection)("ngIfElse",c),t.xp6(4),t.Oqu(null==n.validationResp?null:n.validationResp.logDatabaseConnectionMessage),t.xp6(8),t.Oqu(n.sampleConnectionString),t.xp6(7),t.Oqu(null==n.validationResp?null:n.validationResp.logRemoveSchedulerIntervalMessage),t.xp6(24),t.Q6J("ngIf",n.validationResp&&(null==n.formData?null:n.formData.externalRedisSettingsJsonString)&&!(null!=n.validationResp&&n.validationResp.externalRedisSettingsJsonMessage)),t.xp6(1),t.Q6J("ngIf",null==n.validationResp?null:n.validationResp.externalRedisSettingsJsonMessage),t.xp6(2),t.Q6J("ngIf",n.hasRedisJsonValue&&!n.showRedisJson),t.xp6(1),t.Q6J("hidden",n.hasRedisJsonValue&&!n.showRedisJson),t.xp6(2),t.Q6J("isSchemaEditor",!1)("editorOptions",n.editorOptionsRedisConnectionJSON),t.xp6(1),t.Q6J("ngIf",n.showRedisJson),t.xp6(2),t.Oqu(null==n.validationResp?null:n.validationResp.externalRedisSettingsJsonMessage),t.xp6(8),t.hij("","{","\n "),t.xp6(3),t.hij(": [","{","\n "),t.xp6(18),t.hij("\n ","}","],\n "),t.xp6(18),t.hij("\n","}",""),t.xp6(17),t.Q6J("ngIf",n.form.get("passJWTOfAPIUsers").value&&!n.showJwtPassword)("ngIfElse",u),t.xp6(18),t.Q6J("ngIf",n.showApiAccessSection),t.xp6(11),t.Q6J("ngIf",null==n.validationResp?null:n.validationResp.d2DiagramLibVersion),t.xp6(1),t.Q6J("ngIf",null==n.validationResp?null:n.validationResp.d2DiagramLibPathMessage),t.xp6(3),t.Q6J("ngIf",null==n.validationResp?null:n.validationResp.d2DiagramLibVersion),t.xp6(1),t.Q6J("ngIf",n.d2InstallError),t.xp6(3),t.Q6J("ngIf","Linux"===n.authCS.backendSettings.osType),t.xp6(16),t.Q6J("isSchemaEditor",!1)("editorOptions",n.editorOptionsStartupScript)}},dependencies:[r._Y,r.Fj,r.wV,r.JJ,r.JL,r.nD,r.sg,r.u,R.O5,D.y,J.O,k.u,w.XZ,L.g,I.z],encapsulation:2})}return a})(),canActivate:[h.g]}];let rt=(()=>{class a{static \u0275fac=function(o){return new(o||a)};static \u0275mod=t.oAB({type:a});static \u0275inj=t.cJS({imports:[C.Bz.forChild(st),S.u]})}return a})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[4842],{24842:(z,p,i)=>{i.r(p),i.d(p,{AuthM:()=>M});var d=i(77664),c=i(15861),a=i(60095),f=i(60921),g=i(20553),e=i(94946),v=i(33835),Z=i(77240),T=i(99961),I=i(95852),C=i(15561),_=i(24977),S=i(25405),y=i(96814),L=i(32660),A=i(97680);function x(n,s){1&n&&(e.TgZ(0,"span"),e._UZ(1,"i",21),e._uU(2," Login"),e.qZA())}function O(n,s){1&n&&(e.TgZ(0,"span"),e._UZ(1,"i",22),e._uU(2," Register"),e.qZA())}function N(n,s){1&n&&(e.TgZ(0,"span"),e._UZ(1,"i",23),e._uU(2," Forgot Password"),e.qZA())}const u=function(){return{mode:"LOGIN"}};function k(n,s){1&n&&(e.TgZ(0,"a",24),e._UZ(1,"i",25),e._uU(2," Login"),e.qZA()),2&n&&e.Q6J("routerLink","/login")("state",e.DdM(2,u))}function R(n,s){1&n&&(e.TgZ(0,"a",24),e._UZ(1,"i",25),e._uU(2," Login"),e.qZA()),2&n&&e.Q6J("routerLink","/login")("state",e.DdM(2,u))}function U(n,s){1&n&&(e.TgZ(0,"div",14)(1,"label",26),e._uU(2,"Name"),e.qZA(),e.TgZ(3,"div",16),e._UZ(4,"input",27),e.qZA()())}function w(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",14)(1,"label",28),e._uU(2,"Password"),e.qZA(),e.TgZ(3,"div",16)(4,"input",29),e.NdJ("keyup.enter",function(){e.CHM(t);const o=e.oxw();return e.KtG("LOGIN"===o.mode?o.save():"")}),e.qZA()()()}}function G(n,s){1&n&&(e.TgZ(0,"div",14)(1,"label",28),e._uU(2,"API Path"),e.qZA(),e.TgZ(3,"div",16),e._UZ(4,"input",30),e.qZA()())}function P(n,s){1&n&&(e.TgZ(0,"div",14),e._UZ(1,"label",28),e.TgZ(2,"div",16),e._UZ(3,"div",31),e.qZA()())}function b(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",14)(1,"label",28),e._uU(2,"Captcha"),e.qZA(),e.TgZ(3,"div",16)(4,"div",32)(5,"input",33),e.NdJ("keyup.enter",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.save())}),e.qZA(),e.TgZ(6,"span",34),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.loadCaptcha())}),e._UZ(7,"i",35),e.qZA()()()()}}function E(n,s){1&n&&(e.TgZ(0,"span"),e._UZ(1,"i",36),e._uU(2," Login"),e.qZA())}function J(n,s){1&n&&(e.TgZ(0,"span"),e._UZ(1,"i",37),e._uU(2," Register"),e.qZA())}function Y(n,s){1&n&&(e.TgZ(0,"span"),e._UZ(1,"i",38),e._uU(2," Recover"),e.qZA())}function F(n,s){1&n&&e._UZ(0,"p-progressSpinner",39)}let m=(()=>{class n{fb;userS;generalS;ns;route;router;authCS;navigationS;tpStoreApiVersionS;eventCenterCS;form;subscriptions=[];mode="LOGIN";loading={form:!1};version="";constructor(t,r,o,l,q,V,K,W,H,j){this.fb=t,this.userS=r,this.generalS=o,this.ns=l,this.route=q,this.router=V,this.authCS=K,this.navigationS=W,this.tpStoreApiVersionS=H,this.eventCenterCS=j,this.version=g.N.VERSION,this.version.length>13&&(this.version="")}ngOnInit(){this.createForm(),this.subscriptions.push(this.route.data.subscribe(t=>{this.mode=t.mode,this.loadCaptcha(),"REGISTER"===this.mode?(this.form.get("name").setValidators([a.kI.required,a.kI.minLength(3)]),this.form.get("apiPath").setValidators([a.kI.required,a.kI.minLength(3),a.kI.maxLength(25),a.kI.pattern("[a-zA-Z0-9_]*$")]),this.form.get("password").setValidators([a.kI.required,a.kI.minLength(4),a.kI.maxLength(40)])):"LOGIN"===this.mode&&this.form.get("password").setValidators([a.kI.required,a.kI.minLength(4),a.kI.maxLength(40)])}))}latestCaptchaKey;loadCaptcha(){var t=this;return(0,c.Z)(function*(){try{const r=yield t.userS.getCaptcha();$("#idSvg").html(r.data),setTimeout(()=>{$("#idSvg svg").attr("height","50px").removeAttr("width")},100),t.latestCaptchaKey=r.key}catch(r){t.ns.showErrorFromResponse(r.error||r,"Unable to load captcha.")}})()}createForm(){this.form=this.fb.group({name:["",[]],email:["",[a.kI.required,a.kI.email]],password:["",[]],apiPath:["",[]],captcha:["",[a.kI.required]],captchaKey:["",[]]})}save(){var t=this;return(0,c.Z)(function*(){"LOGIN"===t.mode?yield t.login():"REGISTER"===t.mode?yield t.register():"FORGOT_PASSWORD"===t.mode&&(yield t.forgotPassword())})()}login(){var t=this;return(0,c.Z)(function*(){const r=t.form.getRawValue();if(r.captcha){if(t.form.invalid)return t.ns.showError("Please fill all required fields");try{t.loading.form=!0;const o=yield t.userS.login(r.email,r.password,t.latestCaptchaKey,r.captcha);if(o){if(o.hasOwnProperty("message"))return t.loading.form=!1,t.ns.showError("You have entered an invalid Captcha.");t.ns.showSuccess("Login Success."),t.authCS.setAccessToken(o.accessToken),t.authCS.setRefreshToken(o.refreshToken);const l=yield t.userS.getUserInfo(o._id);l.userType===f.d.DEVELOPER&&(l.user=yield t.userS.getUserInfo(l.user)),t.authCS.setUserToLocalStorage(l,g.N.crypto.passCommunication),yield t.userS.loadSettings(t.tpStoreApiVersionS,t.eventCenterCS),t.navigationS.gotoDashboard()}else t.ns.showError("Invalid Credentials.");t.loading.form=!1}catch(o){t.loading.form=!1,t.ns.showErrorFromResponse(o.error||o,"Unable to login."),yield t.loadCaptcha()}}})()}register(){var t=this;return(0,c.Z)(function*(){const r=t.form.getRawValue();try{t.loading.form=!0,r.userType=f.d.ADMIN,(yield t.userS.register(r))&&(t.ns.showSuccess("Registration Success."),yield t.login()),t.loading.form=!1,t.form.reset()}catch(o){t.loading.form=!1,t.ns.showErrorFromResponse(o.error||o,"Unable to register.")}})()}forgotPassword(){return(0,c.Z)(function*(){console.log("Forgot Password.")})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}static \u0275fac=function(r){return new(r||n)(e.Y36(a.qu),e.Y36(v.K),e.Y36(Z.b),e.Y36(T.W),e.Y36(d.gz),e.Y36(d.F0),e.Y36(I.D),e.Y36(C.X),e.Y36(_.f),e.Y36(S.M))};static \u0275cmp=e.Xpm({type:n,selectors:[["app-login"]],decls:33,vars:17,consts:[[1,"login-form"],[1,"row","justify-content-center","mt-4","row"],[1,"col-12","col-lg-5","col-sm-10","shadow-lg","p-0","rounded"],[1,"card",2,"background-color","#14141478"],[1,"card-header"],[4,"ngIf"],["class","float-right",3,"routerLink","state",4,"ngIf"],[1,"float-right"],[1,"card-body"],[1,"row"],[1,"col-12","text-center"],["src","assets/images/logo/logo.svg","alt","API maker logo",1,"m-4","mt-3",2,"padding-bottom","10px"],[3,"formGroup"],["class","form-group row",4,"ngIf"],[1,"form-group","row"],["for","email",1,"col-4","col-form-label","col-form-label-sm","text-right"],[1,"col-6","pr-0"],["formControlName","email","id","email","name","email_address","spellcheck","false","type","email","placeholder","Please provide email",1,"form-control","form-control-sm",3,"keyup.enter"],[1,"col-8","offset-4",2,"padding-bottom","25px"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"disabled","click"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[1,"fas","fa-user-lock","text-info","fa-fw"],[1,"fas","fa-plus","text-success"],[1,"fas","fa-lock","text-warning","fa-fw"],[1,"float-right",3,"routerLink","state"],[1,"fas","fa-user-lock","text-info"],["for","name",1,"col-4","col-form-label","col-form-label-sm","text-right"],["formControlName","name","id","name","name","name","spellcheck","false","type","text","placeholder","Please provide name",1,"form-control","form-control-sm"],[1,"col-4","col-form-label","col-form-label-sm","text-right"],["formControlName","password","name","password","type","password","placeholder","Please provide password",1,"form-control","form-control-sm",3,"keyup.enter"],["formControlName","apiPath","name","apiPath","spellcheck","false","type","text","placeholder","Please provide API Path",1,"form-control","text-lowercase","form-control-sm"],["id","idSvg",2,"border-radius","5px","background","white","text-align","center"],[1,"input-group","input-group-sm","mb-3"],["formControlName","captcha","name","captcha","type","text","placeholder","Please provide captcha",1,"form-control","form-control-sm",3,"keyup.enter"],[1,"input-group-text","pl-3","pr-3","pt-0","pb-0","bg-dark","text-white","cursor-pointer",2,"border","1px solid #555555",3,"click"],[1,"fas","fa-redo","fa-fw","text-success"],[1,"fas","fa-sign-in-alt","text-success","fa-fw"],[1,"fas","fa-plus","text-success","fa-fw"],[1,"fas","fa-retweet","text-danger","fa-fw"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(r,o){1&r&&(e.TgZ(0,"main",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),e.YNc(5,x,3,0,"span",5),e.YNc(6,O,3,0,"span",5),e.YNc(7,N,3,0,"span",5),e.YNc(8,k,3,3,"a",6),e.YNc(9,R,3,3,"a",6),e.TgZ(10,"span",7),e._uU(11),e.qZA()(),e.TgZ(12,"div",8)(13,"div",9)(14,"div",10),e._UZ(15,"img",11),e.qZA()(),e.TgZ(16,"form",12),e.YNc(17,U,5,0,"div",13),e.TgZ(18,"div",14)(19,"label",15),e._uU(20,"E-Mail Address"),e.qZA(),e.TgZ(21,"div",16)(22,"input",17),e.NdJ("keyup.enter",function(){return"LOGIN"===o.mode?o.save():""}),e.qZA()()(),e.YNc(23,w,5,0,"div",13),e.YNc(24,G,5,0,"div",13),e.YNc(25,P,4,0,"div",13),e.YNc(26,b,8,0,"div",13),e.TgZ(27,"div",18)(28,"button",19),e.NdJ("click",function(){return o.save()}),e.YNc(29,E,3,0,"span",5),e.YNc(30,J,3,0,"span",5),e.YNc(31,Y,3,0,"span",5),e.qZA()()(),e.YNc(32,F,1,0,"p-progressSpinner",20),e.qZA()()()()()),2&r&&(e.xp6(5),e.Q6J("ngIf","LOGIN"===o.mode),e.xp6(1),e.Q6J("ngIf","REGISTER"===o.mode),e.xp6(1),e.Q6J("ngIf","FORGOT_PASSWORD"===o.mode),e.xp6(1),e.Q6J("ngIf","REGISTER"===o.mode),e.xp6(1),e.Q6J("ngIf","FORGOT_PASSWORD"===o.mode),e.xp6(2),e.Oqu(o.version),e.xp6(5),e.Q6J("formGroup",o.form),e.xp6(1),e.Q6J("ngIf","REGISTER"===o.mode),e.xp6(6),e.Q6J("ngIf","LOGIN"===o.mode||"REGISTER"===o.mode),e.xp6(1),e.Q6J("ngIf","REGISTER"===o.mode),e.xp6(1),e.Q6J("ngIf","LOGIN"===o.mode),e.xp6(1),e.Q6J("ngIf","LOGIN"===o.mode),e.xp6(2),e.Q6J("disabled",o.form.invalid),e.xp6(1),e.Q6J("ngIf","LOGIN"===o.mode),e.xp6(1),e.Q6J("ngIf","REGISTER"===o.mode),e.xp6(1),e.Q6J("ngIf","FORGOT_PASSWORD"===o.mode),e.xp6(1),e.Q6J("ngIf",o.loading.form))},dependencies:[d.rH,a._Y,a.Fj,a.JJ,a.JL,a.sg,a.u,y.O5,L.y,A.G],styles:[".my-form[_ngcontent-%COMP%]{padding-top:1.5rem;padding-bottom:1.5rem}.my-form[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.login-form[_ngcontent-%COMP%]{padding-top:1.5rem;padding-bottom:1.5rem}.login-form[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}"]})}return n})();var Q=i(17017),h=i(27501);const D=[{path:"",component:m,canActivate:[h.O],data:{mode:"LOGIN"}},{path:"login",component:m,canActivate:[h.O],data:{mode:"LOGIN"}},{path:"forgot-password",component:m,canActivate:[],data:{mode:"FORGOT_PASSWORD"}},{path:"register",component:m,canActivate:[],data:{mode:"REGISTER"}}];let M=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275mod=e.oAB({type:n});static \u0275inj=e.cJS({imports:[d.Bz.forChild(D),Q.u]})}return n})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[485],{60485:(U,c,n)=>{n.r(c),n.d(c,{TsGenInterfacesM:()=>N});var g=n(77664),u=n(17017),h=n(63726),l=n(15861),v=n(51162),p=n(20553),e=n(94946),T=n(53429),y=n(45809),S=n(69862),G=n(77240),I=n(96814),C=n(756),f=n(95431),Z=n(85219),O=n(97680),w=n(33259);function R(a,d){1&a&&(e.TgZ(0,"tr")(1,"th"),e._uU(2,"Name"),e.qZA()())}function A(a,d){if(1&a&&(e.TgZ(0,"tr",19)(1,"td"),e._uU(2),e.qZA()()),2&a){const t=d.$implicit;e.Q6J("pSelectableRow",t),e.xp6(2),e.Oqu(t.name)}}function L(a,d){1&a&&e._UZ(0,"p-progressSpinner",20)}const P=[{path:"main",component:(()=>{class a{cd;instanceS;monacoS;http;generalS;projectType="AM";BE_HOST_PORT=p.N.BE_HOST_PORT;DOCS_HOST_PORT=p.N.DOCS_HOST_PORT;loading={grid:!1};editorGeneratedInterfaces;editorOptions={readOnly:!1,language:"typescript",contextmenu:!0};gridKey=v.iH._id;rows=[];selectedRow=null;constructor(t,s,i,o,r){this.cd=t,this.instanceS=s,this.monacoS=i,this.http=o,this.generalS=r}ngOnInit(){this.rows.push({_id:"db-interfaces.ts",name:"db-interfaces.ts"},{_id:"types.ts",name:"types.ts"}),setTimeout(()=>{this.selectedRow=this.rows[0],this.itemSelected().then()},100)}itemSelected(){var t=this;return(0,l.Z)(function*(){if(!t.editorGeneratedInterfaces)return;if(!t.selectedRow)return void t.editorGeneratedInterfaces.setValue("");let s;t.loading.grid=!0,"db-interfaces.ts"===t.selectedRow._id?s=(yield t.instanceS.getGeneratedInterfaceCode(t.selectedRow)).data["file:///node_modules/@types/db-interfaces.d.ts"]:"types.ts"===t.selectedRow._id&&(s=yield t.getP("/assets/schema-types/types.ts"),s=t.cleanTagLines(s)),t.editorGeneratedInterfaces.setValue(s),t.monacoS.formatDocument(t.editorGeneratedInterfaces),setTimeout(()=>{t.loading.grid=!1},500)})()}cleanTagLines(t){const s=t.split("\n"),i=[];for(const o of s)o.endsWith(" : start")||o.endsWith(" : end")||i.push(o);return i.join("\n")}editorGenerated(t){var s=this;return(0,l.Z)(function*(){s.editorGeneratedInterfaces=t,yield s.itemSelected()})()}getP(t){return this.http.get(t,{responseType:"text"}).toPromise()}downloadTSGeneratedInterfaces(){var t=this;return(0,l.Z)(function*(){t.generalS.downloadFile(t.editorGeneratedInterfaces.getValue(),t.selectedRow.name)})()}static \u0275fac=function(s){return new(s||a)(e.Y36(e.sBO),e.Y36(T.E),e.Y36(y.b),e.Y36(S.eN),e.Y36(G.b))};static \u0275cmp=e.Xpm({type:a,selectors:[["app-ts-gen-interfaces-layout"]],decls:26,vars:9,consts:[["id","idUtilityClassesFormPanel",1,"pt-1","pl-1","pr-1","overflow-auto"],[1,"row","m-0","full-body"],[1,"p-0","col-3"],[1,"card","shadow-sm","h-100"],[1,"card-header"],["src","/assets/images/icons/typescript.svg","alt","System Generated Interfaces",1,"fa-fw","mr-1",2,"vertical-align","text-bottom"],[1,"float-right"],["href","https://docs.apimaker.dev/v1/docs/features/ts-generated-interfaces.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"fa-fw","ml-3","mr-1","mt-n1",2,"font-size","25px"],[1,"card-body","p-0","h-100","overflow-hidden"],["styleClass","p-datatable-striped utility-classes-grid-height","scrollHeight","flex",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange"],["pTemplate","header"],["pTemplate","body"],[1,"p-0","col-9"],["src","/assets/images/icons/typescript.svg",1,"fa-fw","mr-1",2,"vertical-align","text-bottom"],["tooltipPosition","left","pTooltip","Download",1,"fas","fa-file-download","text-success","fa-fw","float-right","cursor-pointer","line-height-1-3","mr-2",3,"click"],[1,"overflow-hidden",2,"height","calc(100vh - 90px)"],[3,"isSchemaEditor","editorOptions","editorGenerated"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"pSelectableRow"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(s,i){1&s&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"span"),e._UZ(6,"img",5),e._uU(7," Interfaces"),e.qZA(),e.TgZ(8,"div",6)(9,"a",7),e._UZ(10,"img",8),e.qZA()()(),e.TgZ(11,"div",9)(12,"p-table",10),e.NdJ("selectionChange",function(r){return i.selectedRow=r})("selectionChange",function(){return i.itemSelected()}),e.YNc(13,R,3,0,"ng-template",11),e.YNc(14,A,3,2,"ng-template",12),e.qZA()()()(),e.TgZ(15,"div",13)(16,"div",3)(17,"div",4)(18,"span"),e._UZ(19,"img",14),e._uU(20," Code"),e.qZA(),e.TgZ(21,"i",15),e.NdJ("click",function(){return i.downloadTSGeneratedInterfaces()}),e.qZA()(),e.TgZ(22,"div",9)(23,"div",16)(24,"app-monaco-editor",17),e.NdJ("editorGenerated",function(r){return i.editorGenerated(r)}),e.qZA()()()(),e.YNc(25,L,1,0,"p-progressSpinner",18),e.qZA()()()),2&s&&(e.xp6(12),e.Q6J("selectionMode","single")("metaKeySelection",!0)("selection",i.selectedRow)("dataKey",i.gridKey)("scrollable",!0)("value",i.rows),e.xp6(12),e.Q6J("isSchemaEditor",!0)("editorOptions",i.editorOptions),e.xp6(1),e.Q6J("ngIf",i.loading.grid))},dependencies:[I.O5,C.O,f.iA,Z.jx,f.Ei,O.G,w.u]})}return a})(),canActivate:[h.P]}];let N=(()=>{class a{static \u0275fac=function(s){return new(s||a)};static \u0275mod=e.oAB({type:a});static \u0275inj=e.cJS({imports:[g.Bz.forChild(P),u.u]})}return a})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[5334],{35334:(_,r,s)=>{s.r(r),s.d(r,{AmWelcomeM:()=>T});var g=s(77664),c=s(17017),m=s(63726),d=s(60921),e=s(94946),p=s(95852),u=s(84795),Z=s(77240),v=s(96814);function l(t,o){1&t&&(e.TgZ(0,"a",89)(1,"div",11),e._UZ(2,"img",90),e.TgZ(3,"h1"),e._UZ(4,"i",91),e._uU(5," Licenses"),e.qZA()()())}function h(t,o){1&t&&(e.TgZ(0,"a",92)(1,"div",11),e._UZ(2,"img",93),e.TgZ(3,"h1"),e._UZ(4,"i",91),e._uU(5," UI Maker"),e.qZA()()())}function f(t,o){1&t&&(e.TgZ(0,"a",94)(1,"div",11),e._UZ(2,"img",95),e.TgZ(3,"h1"),e._UZ(4,"i",91),e._uU(5," Index Maker"),e.qZA()()())}function x(t,o){1&t&&(e.TgZ(0,"a",96)(1,"div",11),e._UZ(2,"img",97),e.TgZ(3,"h1"),e._uU(4,"Dev Account"),e.qZA()()())}const U=[{path:"",component:(()=>{class t{authCS;authS;generalCS;EUserType=d.d;constructor(n,a,i){this.authCS=n,this.authS=a,this.generalCS=i}ngOnInit(){this.generalCS.setNewTitle("AM - Dashboard")}static \u0275fac=function(a){return new(a||t)(e.Y36(p.D),e.Y36(u.e),e.Y36(Z.b))};static \u0275cmp=e.Xpm({type:t,selectors:[["app-am-welcome"]],decls:215,vars:4,consts:[[1,"p-5",2,"height","calc(100vh - 44px)","overflow","auto"],[1,"row","h4","bold"],[1,"col-6"],[1,"fas","fa-tachometer-alt","fa-fw","text-success"],["src","/assets/images/logo/store_logo.svg",2,"height","25px"],[1,"row","mt-3","h4","bold"],[1,"icon-row","mt-lg-n2","ml-0"],["href","javascript:","routerLink","/dashboard/summary-dashboard",2,"text-decoration","none"],[1,"icon-box","ml-0"],["src","/assets/images/icons/nodes.svg",1,"mt-2"],["href","javascript:","routerLink","/dashboard/redis-dashboard",2,"text-decoration","none"],[1,"icon-box"],["src","/assets/images/icons/redis.svg",1,"mt-2"],["href","javascript:","routerLink","/diagram/main",2,"text-decoration","none"],["src","/assets/images/icons/diagram.svg",1,"mt-3"],["href","javascript:","routerLink","/dashboard/ext-licenses","style","text-decoration: none",4,"ngIf"],[1,"icon-row","mt-lg-n2"],["href","javascript:","routerLink","/utility/app-store/main",2,"text-decoration","none"],["src","/assets/images/logo/logo_store.svg",1,"mt-4","p-1"],["href","https://docs.apimaker.dev/","target","_blank",2,"text-decoration","none"],["src","/assets/images/logo/logo_docs.svg",1,"mt-4","p-1"],["href","https://www.youtube.com/playlist?list=PLfJ8NnUMaDUYNNZUX5M_KcIzn9qGCNj43","target","_blank",2,"text-decoration","none"],["src","/assets/images/icons/film-movies-icon.svg",1,"mt-2","p-1"],[1,"row","mt-5","bold"],[1,"col-12"],[1,"bold","m-0"],[1,"fas","fa-code","fa-fw","text-info"],[1,"row","h4","bold","mt-3"],["href","javascript:","routerLink","/api-info/db-cell/layout",2,"text-decoration","none"],["src","/assets/images/icons/database.svg",1,"mt-2"],["href","javascript:","routerLink","/api-info/custom-api/functions-tree",2,"text-decoration","none"],["src","/assets/images/icons/custom.svg",1,"mt-2"],["href","javascript:","routerLink","/api-info/system-api/layout",2,"text-decoration","none"],["src","/assets/images/icons/systems.svg",1,"mt-2"],["href","javascript:","routerLink","/api-info/third-party-api/tp-layout",2,"text-decoration","none"],["src","/assets/images/icons/third-party.svg",1,"mt-2"],["href","javascript:","routerLink","/api-info/am-events/layout-tree",2,"text-decoration","none"],["src","/assets/images/icons/event.svg",1,"mt-2"],["href","javascript:","routerLink","/api-info/schedulers/scheduler-layout",2,"text-decoration","none"],["src","/assets/images/icons/schedulers.svg",1,"mt-2"],["href","javascript:","routerLink","/api-info/web-socket-events/layout-tree",2,"text-decoration","none"],["src","/assets/images/icons/web.svg",1,"mt-2"],["href","javascript:","routerLink","/api-info/process-initializers/main",2,"text-decoration","none"],["src","/assets/images/icons/process_initializers.svg",1,"mt-2"],["href","javascript:","routerLink","/api-info/api-testing/testing",2,"text-decoration","none"],["src","/assets/images/icons/testing.svg",1,"mt-2"],["href","javascript:","routerLink","/api-info/db-masters/main","style","text-decoration: none",4,"ngIf"],["href","javascript:","routerLink","/api-info/index-maker/scanning-periods","style","text-decoration: none",4,"ngIf"],[1,"fas","fa-lock","fa-fw","text-warning"],["href","javascript:","routerLink","/permissions/group/group-layout",2,"text-decoration","none"],["src","/assets/images/icons/api-group.svg",1,"mt-2"],["href","javascript:","routerLink","/permissions/api-user/layout",2,"text-decoration","none"],["src","/assets/images/icons/api-user.svg",1,"mt-2"],["href","javascript:","routerLink","/permissions/vulnerabilities/layout",2,"text-decoration","none"],["src","/assets/images/icons/vulnerability.svg",1,"mt-2"],[1,"fas","fa-tools","fa-fw","text-yellow"],["href","javascript:","routerLink","/accounts/secret-management",2,"text-decoration","none"],["src","/assets/images/icons/secret.svg",1,"mt-2"],["href","javascript:","routerLink","/accounts/dev-accounts","style","text-decoration: none",4,"ngIf"],["href","javascript:","routerLink","/utility/internationalization/main",2,"text-decoration","none"],["src","/assets/images/icons/i18n.svg",1,"mt-2"],["href","javascript:","routerLink","/utility/log-profile/main",2,"text-decoration","none"],["src","/assets/images/icons/log-profile.svg",1,"mt-2"],["href","javascript:","routerLink","/utility/log-table/main",2,"text-decoration","none"],["src","/assets/images/icons/log.svg",1,"mt-2"],["href","javascript:","routerLink","/utility/native-process-logs",2,"text-decoration","none"],["src","/assets/images/icons/native-process-logs.svg",1,"mt-2"],["href","javascript:","routerLink","/utility/sandbox-settings/main",2,"text-decoration","none"],["src","/assets/images/icons/sandbox.svg",1,"mt-2"],["href","javascript:","routerLink","/utility/notes/main",2,"text-decoration","none"],["src","/assets/images/icons/notes.svg",1,"mt-2"],["href","javascript:","routerLink","/utility/utility-classes/utility-classes-internal/main",2,"text-decoration","none"],["src","/assets/images/icons/utility.svg",1,"mt-2"],["href","javascript:","routerLink","/utility/system-migration/main",2,"text-decoration","none"],["src","/assets/images/icons/db-m.svg",1,"mt-2","p-1"],["href","javascript:","routerLink","/utility/code-finder/finder",2,"text-decoration","none"],["src","/assets/images/icons/finder.svg",1,"mt-2"],["href","javascript:","routerLink","/utility/code-comparator-model",2,"text-decoration","none"],["src","/assets/images/icons/comparator.svg",1,"mt-2"],["href","javascript:","routerLink","/utility/auto-increment/main",2,"text-decoration","none"],["src","/assets/images/icons/increment.svg",1,"mt-2"],["href","javascript:","routerLink","/utility/ts-gen-interfaces/main",2,"text-decoration","none"],["src","/assets/images/icons/typescript.svg",1,"mt-2"],["href","/assets/swagger/index.html","target","_blank",2,"text-decoration","none"],["src","/assets/images/icons/swagger-logo.svg",1,"mt-2",2,"height","55px","margin-top","3px !important"],["href","javascript:","routerLink","/utility/encrypt-strings",2,"text-decoration","none"],["src","/assets/images/icons/rsa_encryption.svg",1,"mt-2"],["href","javascript:","routerLink","/utility/deploy-api-maker",2,"text-decoration","none"],["src","/assets/images/icons/api-maker-deployment.svg",1,"mt-2"],["href","javascript:","routerLink","/dashboard/ext-licenses",2,"text-decoration","none"],["src","/assets/images/icons/license.svg",1,"mt-3"],[1,"fas","fa-plus"],["href","javascript:","routerLink","/api-info/db-masters/main",2,"text-decoration","none"],["src","/assets/images/icons/ui-maker.svg",1,"mt-2"],["href","javascript:","routerLink","/api-info/index-maker/scanning-periods",2,"text-decoration","none"],["src","/assets/images/icons/scanning-period.svg",1,"mt-2"],["href","javascript:","routerLink","/accounts/dev-accounts",2,"text-decoration","none"],["src","/assets/images/icons/dev.svg",1,"mt-2"]],template:function(a,i){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"span"),e._UZ(4,"i",3),e.TgZ(5,"span"),e._uU(6," Dashboard"),e.qZA()()(),e.TgZ(7,"div",2)(8,"span"),e._UZ(9,"img",4),e.TgZ(10,"span"),e._uU(11," API Maker Family"),e.qZA()()()(),e.TgZ(12,"div",5)(13,"div",2)(14,"div",6)(15,"a",7)(16,"div",8),e._UZ(17,"img",9),e.TgZ(18,"h1"),e._uU(19,"Nodes Summary"),e.qZA()()(),e.TgZ(20,"a",10)(21,"div",11),e._UZ(22,"img",12),e.TgZ(23,"h1"),e._uU(24,"Redis Dashboard"),e.qZA()()(),e.TgZ(25,"a",13)(26,"div",11),e._UZ(27,"img",14),e.TgZ(28,"h1"),e._uU(29,"ER Diagram"),e.qZA()()(),e.YNc(30,l,6,0,"a",15),e.qZA()(),e.TgZ(31,"div",2)(32,"div",16)(33,"a",17)(34,"div",8),e._UZ(35,"img",18),e.qZA()(),e.TgZ(36,"a",19)(37,"div",11),e._UZ(38,"img",20),e.qZA()(),e.TgZ(39,"a",21)(40,"div",11),e._UZ(41,"img",22),e.TgZ(42,"h1"),e._uU(43,"Learn API Maker"),e.qZA()()()()()(),e.TgZ(44,"div",23)(45,"div",24)(46,"h4",25),e._UZ(47,"i",26),e._uU(48," API Info "),e.qZA()()(),e.TgZ(49,"div",27)(50,"div",24)(51,"div",16)(52,"a",28)(53,"div",11),e._UZ(54,"img",29),e.TgZ(55,"h1"),e._uU(56,"Instance API (DB API)"),e.qZA()()(),e.TgZ(57,"a",30)(58,"div",11),e._UZ(59,"img",31),e.TgZ(60,"h1"),e._uU(61,"Custom API"),e.qZA()()(),e.TgZ(62,"a",32)(63,"div",11),e._UZ(64,"img",33),e.TgZ(65,"h1"),e._uU(66,"System API"),e.qZA()()(),e.TgZ(67,"a",34)(68,"div",11),e._UZ(69,"img",35),e.TgZ(70,"h1"),e._uU(71,"Third Party API"),e.qZA()()(),e.TgZ(72,"a",36)(73,"div",11),e._UZ(74,"img",37),e.TgZ(75,"h1"),e._uU(76,"Events"),e.qZA()()(),e.TgZ(77,"a",38)(78,"div",11),e._UZ(79,"img",39),e.TgZ(80,"h1"),e._uU(81,"Schedulers"),e.qZA()()(),e.TgZ(82,"a",40)(83,"div",11),e._UZ(84,"img",41),e.TgZ(85,"h1"),e._uU(86,"WebSocket Events"),e.qZA()()(),e.TgZ(87,"a",42)(88,"div",11),e._UZ(89,"img",43),e.TgZ(90,"h1"),e._uU(91," Process Initializers"),e.qZA()()(),e.TgZ(92,"a",44)(93,"div",11),e._UZ(94,"img",45),e.TgZ(95,"h1"),e._uU(96,"API Testing"),e.qZA()()(),e.YNc(97,h,6,0,"a",46),e.YNc(98,f,6,0,"a",47),e.qZA()()(),e.TgZ(99,"div",23)(100,"div",24)(101,"h4",25),e._UZ(102,"i",48),e._uU(103," API Security "),e.qZA()()(),e.TgZ(104,"div",27)(105,"div",24)(106,"div",16)(107,"a",49)(108,"div",11),e._UZ(109,"img",50),e.TgZ(110,"h1"),e._uU(111,"API Group Permissions"),e.qZA()()(),e.TgZ(112,"a",51)(113,"div",11),e._UZ(114,"img",52),e.TgZ(115,"h1"),e._uU(116,"API User Permissions"),e.qZA()()(),e.TgZ(117,"a",53)(118,"div",11),e._UZ(119,"img",54),e.TgZ(120,"h1"),e._uU(121,"Vulnerabilities"),e.qZA()()()()()(),e.TgZ(122,"div",23)(123,"div",24)(124,"h4",25),e._UZ(125,"i",55),e._uU(126," Utility "),e.qZA()()(),e.TgZ(127,"div",27)(128,"div",24)(129,"div",16)(130,"a",56)(131,"div",11),e._UZ(132,"img",57),e.TgZ(133,"h1"),e._uU(134,"Secret Management"),e.qZA()()(),e.YNc(135,x,5,0,"a",58),e.TgZ(136,"a",59)(137,"div",11),e._UZ(138,"img",60),e.TgZ(139,"h1"),e._uU(140,"i18N Management"),e.qZA()()(),e.TgZ(141,"a",61)(142,"div",11),e._UZ(143,"img",62),e.TgZ(144,"h1"),e._uU(145,"Log Profile"),e.qZA()()(),e.TgZ(146,"a",63)(147,"div",11),e._UZ(148,"img",64),e.TgZ(149,"h1"),e._uU(150,"Log Table"),e.qZA()()(),e.TgZ(151,"a",65)(152,"div",11),e._UZ(153,"img",66),e.TgZ(154,"h1"),e._uU(155,"Native Process Logs"),e.qZA()()(),e.TgZ(156,"a",67)(157,"div",11),e._UZ(158,"img",68),e.TgZ(159,"h1"),e._uU(160,"Sandbox Settings"),e.qZA()()(),e.TgZ(161,"a",69)(162,"div",11),e._UZ(163,"img",70),e.TgZ(164,"h1"),e._uU(165,"Notes"),e.qZA()()(),e.TgZ(166,"a",71)(167,"div",11),e._UZ(168,"img",72),e.TgZ(169,"h1"),e._uU(170,"Utility Classes"),e.qZA()()(),e.TgZ(171,"a",73)(172,"div",11),e._UZ(173,"img",74),e.TgZ(174,"h1"),e._uU(175,"Database Migration"),e.qZA()()(),e.TgZ(176,"a",75)(177,"div",11),e._UZ(178,"img",76),e.TgZ(179,"h1"),e._uU(180,"Code Finder"),e.qZA()()(),e.TgZ(181,"a",77)(182,"div",11),e._UZ(183,"img",78),e.TgZ(184,"h1"),e._uU(185,"Code Comparator"),e.qZA()()(),e.TgZ(186,"a",79)(187,"div",11),e._UZ(188,"img",80),e.TgZ(189,"h1"),e._uU(190," Auto Increments"),e.qZA()()(),e.TgZ(191,"a",81)(192,"div",11),e._UZ(193,"img",82),e.TgZ(194,"h1"),e._uU(195," Generated Interfaces"),e.qZA()()(),e.TgZ(196,"a",83)(197,"div",11),e._UZ(198,"img",84),e.TgZ(199,"h1"),e._uU(200," Swagger "),e._UZ(201,"br"),e._uU(202,"Docs"),e.qZA()()(),e.TgZ(203,"a",85)(204,"div",11),e._UZ(205,"img",86),e.TgZ(206,"h1"),e._uU(207," Encrypt Strings"),e.qZA()()(),e.TgZ(208,"a",87)(209,"div",11),e._UZ(210,"img",88),e.TgZ(211,"h1"),e._uU(212," Deploy "),e._UZ(213,"br"),e._uU(214,"API Maker"),e.qZA()()()()()()()),2&a&&(e.xp6(30),e.Q6J("ngIf",(null==i.authS.backendSettings?null:i.authS.backendSettings.extensions)&&(null==i.authCS.gUser?null:i.authCS.gUser.userType)===i.EUserType.ADMIN),e.xp6(67),e.Q6J("ngIf",null==i.authS.backendSettings?null:i.authS.backendSettings.extensions),e.xp6(1),e.Q6J("ngIf",null==i.authS.backendSettings?null:i.authS.backendSettings.extensions),e.xp6(37),e.Q6J("ngIf",(null==i.authCS.gUser?null:i.authCS.gUser.userType)===i.EUserType.ADMIN))},dependencies:[g.rH,v.O5],styles:[".icon-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}h1[_ngcontent-%COMP%]{font-size:15px;margin-top:10px}img[_ngcontent-%COMP%]{height:50px}.icon-box[_ngcontent-%COMP%]{font-size:15px;text-align:center;width:120px;min-width:120px;height:120px;background:transparent;border:1px solid #515151;margin:0 20px 20px 0;padding:5px;transition:all .1s;border-radius:10px;box-shadow:#00000040 0 54px 55px,#0000001f 0 -12px 30px,#0000001f 0 4px 6px,#0000002b 0 12px 13px,#00000017 0 -3px 5px}.icon-box[_ngcontent-%COMP%]:hover{background:#292929;box-shadow:#b8b8b840 0 54px 55px,#a5a5a51f 0 -12px 30px,#ffffff1f 0 4px 6px,#0b88982b 0 12px 13px,#ab151517 0 -3px 5px;--darkreader-inline-boxshadow: rgba(0, 0, 0, .25) 0px 54px 55px, rgba(0, 0, 0, .12) 0px -12px 30px, rgba(0, 0, 0, .12) 0px 4px 6px, rgba(0, 0, 0, .17) 0px 12px 13px, rgba(0, 0, 0, .09) 0px -3px 5px}"]})}return t})(),canActivate:[m.P]}];let T=(()=>{class t{static \u0275fac=function(a){return new(a||t)};static \u0275mod=e.oAB({type:t});static \u0275inj=e.cJS({imports:[g.Bz.forChild(U),c.u]})}return t})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[5421],{45421:(le,g,a)=>{a.r(g),a.d(g,{ProcessInitializersM:()=>V});var m=a(77664),Z=a(17017),T=a(63726),e=a(94946),l=a(15861),c=a(6990),p=a(33157),h=a(90328),d=a(56212),I=a(51162),y=a(45085),w=a(60921),x=a(62694),_=a(77240),v=a(99961),D=a(92189),A=a(95852),C=a(27414),E=a(32915),R=a(33835),U=a(53429),z=a(85219),M=a(96814),f=a(95431),L=a(97680),Y=a(33259),F=a(34491);const N=["processInitializersFormC"];function J(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"span",17),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.edit())}),e._UZ(1,"i",18),e.qZA()}}function Q(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"span",19),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.clone())}),e._UZ(1,"i",20),e.qZA()}}function k(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"span",21),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.removePermanent())}),e._UZ(1,"i",22),e.qZA()}}function b(n,o){1&n&&(e.TgZ(0,"th",26),e._UZ(1,"p-tableHeaderCheckbox"),e.qZA())}function O(n,o){if(1&n&&(e.TgZ(0,"tr"),e.YNc(1,b,2,0,"th",23),e._UZ(2,"th",24),e.TgZ(3,"th",25),e._uU(4,"Order"),e.qZA(),e.TgZ(5,"th"),e._uU(6,"Name"),e.qZA(),e._UZ(7,"th",25),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.showCheckbox)}}function G(n,o){if(1&n&&(e.TgZ(0,"td"),e._UZ(1,"p-tableCheckbox",33),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("value",t)("pSelectableRow",t)}}function K(n,o){1&n&&e._UZ(0,"i",34)}const H=function(){return["/api-info/api-testing/testing"]},B=function(n,o,t){return{at_category:n,at_user:o,at_api:t}};function W(n,o){if(1&n&&(e.TgZ(0,"tr",27),e.YNc(1,G,2,2,"td",28),e.TgZ(2,"td"),e.YNc(3,K,1,0,"i",29),e.qZA(),e.TgZ(4,"td"),e._uU(5),e.qZA(),e.TgZ(6,"td"),e._uU(7),e.qZA(),e.TgZ(8,"td")(9,"div",30)(10,"a",31),e.NdJ("click",function(s){return s.stopPropagation()}),e._UZ(11,"i",32),e.qZA()()()()),2&n){const t=o.$implicit,s=e.oxw();e.Q6J("pSelectableRow",t),e.xp6(1),e.Q6J("ngIf",s.showCheckbox),e.xp6(2),e.Q6J("ngIf",t.isScriptExecutedCalculated),e.xp6(2),e.Oqu(t.order),e.xp6(2),e.Oqu(t.name),e.xp6(3),e.Q6J("routerLink",e.DdM(7,H))("queryParams",e.kEZ(8,B,s.EAPICategory.PROCESS_INITIALIZER,s.authCS.getUserId(),t._id))}}function j(n,o){1&n&&e._UZ(0,"p-progressSpinner",35)}let S=(()=>{class n{processInitializersS;generalS;notificationS;navigationCS;authCS;constantsS;eventCenterS;router;userS;instanceS;ns;cs;confirmationService;cd;showCheckbox=!0;loading={grid:!1};subscriptions=[];data={mode:h.D.ADD,eventChannel:new e.vpe,formData:void 0};rows=[];rowsMap={};showAll=!1;EUserType=w.d;gridKey=I.iH._id;EAPICategory=y.R;selectedRows=[];processInitializersFormC;constructor(t,s,i,r,u,q,ee,te,ie,se,ne,ae,re,oe){this.processInitializersS=t,this.generalS=s,this.notificationS=i,this.navigationCS=r,this.authCS=u,this.constantsS=q,this.eventCenterS=ee,this.router=te,this.userS=ie,this.instanceS=se,this.ns=ne,this.cs=ae,this.confirmationService=re,this.cd=oe}ngOnInit(){var t=this;return(0,l.Z)(function*(){t.eventCenterS.processInitializers.selectedInitializer.next(void 0),yield t.loadGridData(),t.subscriptions.push(t.data.eventChannel.subscribe(function(){var s=(0,l.Z)(function*(i){(i.action===p.F.SAVED||i.action===p.F.UPDATED)&&(t.processInitializersFormC.hideModal(),yield t.loadGridData())});return function(i){return s.apply(this,arguments)}}())),t.generalS.setNewTitle("API Maker - Process Initializers")})()}loadGridData(){var t=this;return(0,l.Z)(function*(){t.loading.grid=!0;const s={find:{user:t.authCS.getUserId(),active:!0},select:{name:1,label:1,active:1,user:1,order:1},sort:{order:1}};t.showAll&&delete s.find.active;const i=yield t.processInitializersS.query(s).toPromise();i&&(t.selectedRows=[],t.rows=i.data,t.rowsMap=c.keyBy(t.rows,I.iH._id));let r=t.navigationCS.getQueryParam(d.p.am_process_initializer);r&&!t.rowsMap[r]&&t.rows.length&&(r=t.rows[0]._id),t.rowsMap[r]?(t.selectedRows=[t.rowsMap[r]],yield t.fillData()):t.eventCenterS.processInitializers.selectedInitializer.next(void 0),t.loading.grid=!1,t.cd.detectChanges()})()}add(){this.data.formData={order:(c.max(c.map(this.rows,"order"))||0)+1},this.data.mode=h.D.ADD,this.data.eventChannel.emit({action:p.F.OPEN_FORM_IN_ADD_MODE,data:this.data.formData}),this.processInitializersFormC.showModal()}edit(){this.data.formData=this.rowsMap[c.map(this.selectedRows,"_id")[0]],this.data.mode=h.D.EDIT,this.data.eventChannel.emit({action:p.F.OPEN_FORM_IN_EDIT_MODE}),this.processInitializersFormC.showModal()}clone(){var t=this;return(0,l.Z)(function*(){try{if(!t.selectedRows[0]||!t.rowsMap[c.map(t.selectedRows,"_id")[0]])return;const s=t.rowsMap[c.map(t.selectedRows,"_id")[0]]._id,i=(yield t.processInitializersS.getById(s).toPromise()).data;delete i._id,delete i.guid,i.name=`${i.name}-clone`,i.order=(c.max(c.map(t.rows,"order"))||0)+1,(yield t.processInitializersS.post(i).toPromise()).success?(t.notificationS.showSuccess(t.constantsS.processInitializer.cloneSuccess),t.loadGridData()):t.notificationS.showSuccess(t.constantsS.processInitializer.cloneSuccess)}catch{t.notificationS.showError(t.constantsS.processInitializer.cloneError)}})()}removePermanent(){var t=this;return(0,l.Z)(function*(){var s;t.confirmationService.confirm({message:t.cs.processInitializer.removePermanentConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(s=(0,l.Z)(function*(){for(const i of t.selectedRows)yield t.hardDelete(i._id);t.ns.showSuccess(t.cs.processInitializer.removePermanent),yield t.loadGridData()}),function(){return s.apply(this,arguments)})})})()}hardDelete(t){var s=this;return(0,l.Z)(function*(){yield s.processInitializersS.permanentDelete(t).toPromise()})()}resetSelectedRows(){this.selectedRows.length=0,this.eventCenterS.processInitializers.selectedInitializer.next(void 0)}resetThisUrl(){var t=this;return(0,l.Z)(function*(){t.eventCenterS.processInitializers.selectedInitializer.next(void 0),yield t.navigationCS.setQueryParam(d.p.am_process_initializer,null)})()}itemSelected(){var t=this;return(0,l.Z)(function*(){yield t.resetThisUrl(),setTimeout(t.fillData.bind(t))})()}fillData(){var t=this;return(0,l.Z)(function*(){if(!t.selectedRows.length)return yield t.navigationCS.setQueryParam(d.p.am_process_initializer,""),void t.eventCenterS.processInitializers.selectedInitializer.next(null);const s=t.selectedRows[0];s?(yield t.navigationCS.setQueryParam(d.p.am_process_initializer,s._id),t.eventCenterS.processInitializers.selectedInitializer.next(s)):yield t.resetThisUrl()})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}dblClickProcessInitializer(){this.selectedRows.length&&this.edit()}static \u0275fac=function(s){return new(s||n)(e.Y36(x.e),e.Y36(_.b),e.Y36(v.W),e.Y36(D.S),e.Y36(A.D),e.Y36(C.L),e.Y36(E.u),e.Y36(m.F0),e.Y36(R.K),e.Y36(U.E),e.Y36(v.W),e.Y36(C.L),e.Y36(z.YP),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:n,selectors:[["app-process-initializers-list"]],viewQuery:function(s,i){if(1&s&&e.Gf(N,5),2&s){let r;e.iGM(r=e.CRH())&&(i.processInitializersFormC=r.first)}},inputs:{showCheckbox:"showCheckbox"},decls:19,vars:11,consts:[[1,"card","shadow-sm","h-100"],["pTooltip","",1,"card-header"],["src","/assets/images/icons/process_initializers.svg","alt","Process Initializer",1,"fa-fw","mr-1",2,"width","27px"],["href","https://docs.apimaker.dev/v1/docs/features/process-initializers.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"float-right","fa-fw","ml-3","mr-1",2,"font-size","25px"],["tooltipPosition","left","pTooltip","Add New",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-plus","text-success","fa-fw"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Edit",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Clone",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Permanent Delete",3,"click",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],["styleClass","p-datatable-striped","scrollHeight","calc(100vh - 82px)",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange","dblclick"],["pTemplate","header"],["pTemplate","body"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"data"],["processInitializersFormC",""],["tooltipPosition","left","pTooltip","Edit",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw"],["tooltipPosition","left","pTooltip","Clone",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-copy","text-warning","fa-fw"],["tooltipPosition","left","pTooltip","Permanent Delete",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"far","fa-trash-alt","fa-fw","text-danger"],["style","width: 45px;",4,"ngIf"],[2,"width","30px"],[2,"width","70px"],[2,"width","45px"],[3,"pSelectableRow"],[4,"ngIf"],["pTooltip","Script Executed","class","fas fa-solid fa-check fa-fw align-middle text-success text-v-small pr-1",4,"ngIf"],[1,"text-center"],["href","javascript:","pTooltip","Test API","tooltipPosition","left",1,"btn","btn-xsm-custom","mr-3",3,"routerLink","queryParams","click"],[1,"fas","fa-vial","text-info","fa-fw","test-tube","pt-1"],[3,"value","pSelectableRow"],["pTooltip","Script Executed",1,"fas","fa-solid","fa-check","fa-fw","align-middle","text-success","text-v-small","pr-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(s,i){1&s&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span"),e._UZ(3,"img",2),e._uU(4," Process Initializer"),e.qZA(),e.TgZ(5,"a",3),e._UZ(6,"img",4),e.qZA(),e.TgZ(7,"span",5),e.NdJ("click",function(){return i.add()}),e._UZ(8,"i",6),e.qZA(),e.YNc(9,J,2,0,"span",7),e.YNc(10,Q,2,0,"span",8),e.YNc(11,k,2,0,"span",9),e.qZA(),e.TgZ(12,"div",10)(13,"p-table",11),e.NdJ("selectionChange",function(u){return i.selectedRows=u})("selectionChange",function(){return i.itemSelected()})("dblclick",function(){return i.dblClickProcessInitializer()}),e.YNc(14,O,8,1,"ng-template",12),e.YNc(15,W,12,12,"ng-template",13),e.qZA(),e.YNc(16,j,1,0,"p-progressSpinner",14),e.qZA()(),e._UZ(17,"app-process-initializers-form",15,16)),2&s&&(e.xp6(9),e.Q6J("ngIf",i.selectedRows.length&&i.selectedRows.length<2),e.xp6(1),e.Q6J("ngIf",i.selectedRows.length&&i.selectedRows.length<2),e.xp6(1),e.Q6J("ngIf",i.selectedRows.length),e.xp6(2),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("selection",i.selectedRows)("dataKey",i.gridKey)("scrollable",!0)("value",i.rows),e.xp6(3),e.Q6J("ngIf",i.loading.grid),e.xp6(1),e.Q6J("data",i.data))},dependencies:[m.rH,M.O5,f.iA,z.jx,f.Ei,f.UA,f.Mo,L.G,Y.u,F.g],encapsulation:2,changeDetection:0})}return n})(),P=(()=>{class n{constructor(){}ngOnInit(){}static \u0275fac=function(s){return new(s||n)};static \u0275cmp=e.Xpm({type:n,selectors:[["app-process-initializers-layout"]],decls:2,vars:0,consts:[[1,"pt-1","pl-1","pr-1","overflow-auto"]],template:function(s,i){1&s&&(e.TgZ(0,"div",0),e._UZ(1,"app-process-initializers-list"),e.qZA())},dependencies:[S],encapsulation:2})}return n})();var $=a(56236);const X=[{path:"main",component:P,canActivate:[T.P]}];let V=(()=>{class n{static \u0275fac=function(s){return new(s||n)};static \u0275mod=e.oAB({type:n});static \u0275inj=e.cJS({imports:[m.Bz.forChild(X),Z.u,$.e]})}return n})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[5679],{75679:($,m,a)=>{a.r(m),a.d(m,{SecretManagementM:()=>b});var M=a(77664),Z=a(63726),y=a(17017),T=a(44950),e=a(94946),o=a(15861),l=a(33157),p=a(90328),h=a(56212),D=a(6990),f=a(51162),w=a(60115),S=a(77240),P=a(99961),g=a(85219),F=a(92189),A=a(95852),I=a(90204),E=a(25405),R=a(32915),x=a(27414),_=a(96814),u=a(95431),N=a(97680),W=a(33259);function Y(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"span",15),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.edit())}),e._UZ(1,"i",16),e.qZA()}}function O(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"span",17),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.clone())}),e._UZ(1,"i",18),e.qZA()}}function U(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"span",19),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.removePermanentDialog())}),e._UZ(1,"i",20),e.qZA()}}function J(s,c){1&s&&(e.TgZ(0,"tr")(1,"th"),e._uU(2,"ID"),e.qZA(),e.TgZ(3,"th"),e._uU(4,"Name"),e.qZA(),e._UZ(5,"th",21),e.qZA())}function Q(s,c){1&s&&e._UZ(0,"i",24)}function G(s,c){if(1&s&&(e.TgZ(0,"tr",22)(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._uU(4),e.qZA(),e.TgZ(5,"td"),e.YNc(6,Q,1,0,"i",23),e.qZA()()),2&s){const t=c.$implicit;e.Q6J("pSelectableRow",t),e.xp6(2),e.Oqu(t._id),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Q6J("ngIf",t.isDefault)}}function k(s,c){1&s&&e._UZ(0,"p-progressSpinner",25)}let C=(()=>{class s{secretS;generalCS;notificationS;confirmationService;navigationCS;authCS;constantsCS;eventCenterCS;eventCenterS;constantsS;cd;generalS;loading={grid:!1};subscriptions=[];rows=[];rowsMap={};showAll=!1;selectedRows=[];gridKey=f.iH._id;constructor(t,n,i,r,d,H,B,j,L,V,z,X){this.secretS=t,this.generalCS=n,this.notificationS=i,this.confirmationService=r,this.navigationCS=d,this.authCS=H,this.constantsCS=B,this.eventCenterCS=j,this.eventCenterS=L,this.constantsS=V,this.cd=z,this.generalS=X}ngOnInit(){this.loadGridData(),this.subscriptions.push(this.eventCenterS.headerC.dataSecretForm.eventChannel.subscribe(t=>{(t.action===l.F.SAVED||t.action===l.F.UPDATED)&&(this.eventCenterS.headerC.secManFormC.hideModal(),this.loadGridData())})),this.generalS.setNewTitle("API Maker - Secrets")}loadGridData(){var t=this;this.loading.grid=!0;const n={find:{user:this.authCS.getUserId(),active:!0},select:{name:1,active:1,isDefault:1},sort:{name:1}};this.showAll&&delete n.find.active,this.subscriptions.push(this.secretS.query(n).subscribe(function(){var i=(0,o.Z)(function*(r){r.success&&(t.selectedRows=[],t.rows=r.data,t.rowsMap=D.keyBy(t.rows,f.iH._id));const d=t.navigationCS.getQueryParam(h.p.secret);t.rowsMap[d]&&(yield t.fillData()),t.generalS.setNewTitle("API Maker - Secrets"),t.loading.grid=!1,t.cd.detectChanges()});return function(r){return i.apply(this,arguments)}}()))}add(){this.eventCenterS.headerC.dataSecretForm.formData=void 0,this.eventCenterS.headerC.dataSecretForm.mode=p.D.ADD,this.eventCenterS.headerC.dataSecretForm.eventChannel.emit({action:l.F.OPEN_FORM_IN_ADD_MODE}),this.eventCenterS.headerC.secManFormC.showModal()}view(){this.eventCenterS.headerC.dataSecretForm.formData=this.selectedRows[0],this.eventCenterS.headerC.dataSecretForm.mode=p.D.VIEW,this.eventCenterS.headerC.dataSecretForm.eventChannel.emit({action:l.F.OPEN_FORM_IN_VIEW_MODE}),this.eventCenterS.headerC.secManFormC.showModal()}edit(){this.eventCenterS.headerC.dataSecretForm.formData=this.selectedRows[0],this.eventCenterS.headerC.dataSecretForm.mode=p.D.EDIT,this.eventCenterS.headerC.dataSecretForm.eventChannel.emit({action:l.F.OPEN_FORM_IN_EDIT_MODE}),this.eventCenterS.headerC.secManFormC.showModal()}clone(){var t=this;return(0,o.Z)(function*(){try{if(!t.selectedRows[0])return;const n=(yield t.secretS.getById(t.selectedRows[0]._id).toPromise()).data;delete n._id,delete n.guid,delete n.isDefault,n.name=`${n.name}-clone`,(yield t.secretS.post(n).toPromise()).success?(t.notificationS.showSuccess(t.constantsS.secrets.cloneSuccess),t.loadGridData()):t.notificationS.showSuccess(t.constantsS.secrets.cloneSuccess)}catch{t.notificationS.showError(t.constantsS.secrets.cloneError)}})()}removePermanentDialog(){var t=this;return(0,o.Z)(function*(){var n;t.confirmationService.confirm({message:t.constantsCS.secret.removePermanentConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(n=(0,o.Z)(function*(){yield t.removePermanent()}),function(){return n.apply(this,arguments)})})})()}removePermanent(){var t=this;return(0,o.Z)(function*(){t.loading.grid=!0;try{(yield t.secretS.permanentDelete(t.selectedRows[0]._id).toPromise()).success&&(t.notificationS.showSuccess(t.constantsCS.secret.removePermanent),t.resetSelectedRows(),t.loadGridData())}catch(n){t.notificationS.showErrorFromResponse(n.error,t.constantsCS.secret.removePermanentError)}t.loading.grid=!1})()}resetSelectedRows(){this.selectedRows.length=0}resetDependents(){var t=this;return(0,o.Z)(function*(){yield t.navigationCS.setQueryParam(h.p.secret,null)})()}secretSelected(){var t=this;return(0,o.Z)(function*(){t.resetDependents(),t.fillData()})()}fillData(){var t=this;return(0,o.Z)(function*(){t.selectedRows.length?yield t.navigationCS.setQueryParam(h.p.secret,t.selectedRows[0]._id):yield t.navigationCS.setQueryParam(h.p.secret,"")})()}ngOnDestroy(){this.generalCS.unsubscribe(this.subscriptions)}dblClickSecrets(){this.selectedRows.length&&this.edit()}static \u0275fac=function(n){return new(n||s)(e.Y36(w.e),e.Y36(S.b),e.Y36(P.W),e.Y36(g.YP),e.Y36(F.S),e.Y36(A.D),e.Y36(I.s),e.Y36(E.M),e.Y36(R.u),e.Y36(x.L),e.Y36(e.sBO),e.Y36(S.b))};static \u0275cmp=e.Xpm({type:s,selectors:[["app-secret-man-w"]],decls:17,vars:10,consts:[[1,"card","shadow-sm",2,"height","calc(100vh - 50px)"],[1,"card-header"],["src","/assets/images/icons/secret.svg","alt","Secret Management",1,"fa-fw","mr-1"],["href","https://docs.apimaker.dev/v1/docs/secrets/secrets.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"float-right","fa-fw","ml-3","mr-1",2,"font-size","25px"],["tooltipPosition","left","pTooltip","Add New",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-plus","text-success","fa-fw"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Edit",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Clone",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Permanent Delete",3,"click",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],["styleClass","p-datatable-striped","scrollHeight","calc(100vh - 100px)",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange","dblclick"],["pTemplate","header"],["pTemplate","body"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],["tooltipPosition","left","pTooltip","Edit",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw"],["tooltipPosition","left","pTooltip","Clone",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-copy","text-warning","fa-fw"],["tooltipPosition","left","pTooltip","Permanent Delete",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"far","fa-trash-alt","fa-fw","text-danger"],[2,"width","40px"],[3,"pSelectableRow"],["class","fas fa-check fa-fw text-success",4,"ngIf"],[1,"fas","fa-check","fa-fw","text-success"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(n,i){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span"),e._UZ(3,"img",2),e._uU(4," Secrets"),e.qZA(),e.TgZ(5,"a",3),e._UZ(6,"img",4),e.qZA(),e.TgZ(7,"span",5),e.NdJ("click",function(){return i.add()}),e._UZ(8,"i",6),e.qZA(),e.YNc(9,Y,2,0,"span",7),e.YNc(10,O,2,0,"span",8),e.YNc(11,U,2,0,"span",9),e.qZA(),e.TgZ(12,"div",10)(13,"p-table",11),e.NdJ("selectionChange",function(d){return i.selectedRows=d})("selectionChange",function(){return i.secretSelected()})("dblclick",function(){return i.dblClickSecrets()}),e.YNc(14,J,6,0,"ng-template",12),e.YNc(15,G,7,4,"ng-template",13),e.qZA(),e.YNc(16,k,1,0,"p-progressSpinner",14),e.qZA()()),2&n&&(e.xp6(9),e.Q6J("ngIf",i.selectedRows.length),e.xp6(1),e.Q6J("ngIf",i.selectedRows.length),e.xp6(1),e.Q6J("ngIf",i.selectedRows.length),e.xp6(2),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("selection",i.selectedRows)("dataKey",i.gridKey)("scrollable",!0)("value",i.rows),e.xp6(3),e.Q6J("ngIf",i.loading.grid))},dependencies:[_.O5,u.iA,g.jx,u.Ei,N.G,W.u],encapsulation:2})}return s})();const K=[{path:"",component:(()=>{class s{constructor(){}ngOnInit(){}static \u0275fac=function(n){return new(n||s)};static \u0275cmp=e.Xpm({type:s,selectors:[["app-sec-man-layout"]],decls:2,vars:0,consts:[[1,"pt-1","pl-1","pr-1"]],template:function(n,i){1&n&&(e.TgZ(0,"div",0),e._UZ(1,"app-secret-man-w"),e.qZA())},dependencies:[C],encapsulation:2})}return s})(),canActivate:[Z.P]}];let b=(()=>{class s{static \u0275fac=function(n){return new(n||s)};static \u0275mod=e.oAB({type:s});static \u0275inj=e.cJS({imports:[M.Bz.forChild(K),y.u,T.A]})}return s})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[5761],{5761:(E,m,o)=>{o.r(m),o.d(m,{AutoIncrementM:()=>M});var f=o(77664),h=o(17017),v=o(63726),i=o(15861),Z=o(51162),A=o(6990),e=o(94946),T=o(99961),u=o(85219),I=o(27414),b=o(53429),y=o(77240),l=o(60095),C=o(96814),U=o(32660),p=o(95431),_=o(97680),w=o(33259);function S(a,r){if(1&a){const t=e.EpF();e.TgZ(0,"span",36),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.edit())}),e._UZ(1,"i",37),e.qZA()}}function x(a,r){if(1&a){const t=e.EpF();e.TgZ(0,"span",38),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.removePermanentDialog())}),e._UZ(1,"i",39),e.qZA()}}function P(a,r){1&a&&(e.TgZ(0,"tr")(1,"th"),e._uU(2,"Instance"),e.qZA(),e.TgZ(3,"th"),e._uU(4,"Database"),e.qZA(),e.TgZ(5,"th"),e._uU(6,"Collection"),e.qZA(),e.TgZ(7,"th"),e._uU(8,"Field Path"),e.qZA(),e.TgZ(9,"th"),e._uU(10,"Last Generated Value"),e.qZA()())}function D(a,r){if(1&a&&(e.TgZ(0,"tr",40)(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._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA()()),2&a){const t=r.$implicit;e.Q6J("pSelectableRow",t),e.xp6(2),e.Oqu(t.instance),e.xp6(2),e.Oqu(t.database),e.xp6(2),e.Oqu(t.collection),e.xp6(2),e.Oqu(t.field),e.xp6(2),e.Oqu(t.value)}}function q(a,r){1&a&&e._UZ(0,"p-progressSpinner",41)}function L(a,r){1&a&&e._UZ(0,"p-progressSpinner",41)}const J=[{path:"main",component:(()=>{class a{ns;confirmationService;constantsS;instanceS;cd;generalS;loading={grid:!1,form:!1};rows=[];rowsMap={};gridKey=Z.GR.id;idCounter=0;val;selectedRows=[];constructor(t,s,n,c,d,R){this.ns=t,this.confirmationService=s,this.constantsS=n,this.instanceS=c,this.cd=d,this.generalS=R}ngOnInit(){this.loadGridData(),this.generalS.setNewTitle("API Maker - Auto Increments")}loadGridData(){var t=this;return(0,i.Z)(function*(){t.loading.grid=!0,t.selectedRows=[];const s=yield t.instanceS.getAllAutoIncrement().toPromise();t.rows=s.data,t.idCounter=0;for(const n of t.rows)n.id=t.idCounter++;t.rowsMap=A.keyBy(t.rows,t.gridKey),t.loading.grid=!1,t.cd.detectChanges()})()}edit(){var t=this;return(0,i.Z)(function*(){t.selectedRows.length&&($("#idEditIncrement").modal("show"),t.val=t.selectedRows[0].value)})()}removePermanentDialog(){var t=this;return(0,i.Z)(function*(){var s;t.confirmationService.confirm({message:t.constantsS.autoIncrement.removePermanentConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(s=(0,i.Z)(function*(){yield t.removePermanent()}),function(){return s.apply(this,arguments)})})})()}removePermanent(){var t=this;return(0,i.Z)(function*(){t.loading.grid=!0;const s=t.selectedRows[0],n=yield t.instanceS.deleteAutoIncrement(s).toPromise();t.loading.grid=!1,n.success?(t.ns.showSuccess(t.constantsS.autoIncrement.removePermanent),yield t.loadGridData()):t.ns.showErrorFromResponse(n,t.constantsS.autoIncrement.removePermanentError)})()}update(){var t=this;return(0,i.Z)(function*(){if(!t.val)return t.ns.showWarning("Please Provide Value");if(t.val<1)return t.ns.showWarning("Please Provide Positive Value");const s=t.selectedRows[0];s.value=t.val;try{t.loading.grid=!0,(yield t.instanceS.updateAutoIncrementKey(s).toPromise())&&(t.ns.showSuccess(t.constantsS.autoIncrement.editSuccess),yield t.loadGridData(),$("#idEditIncrement").modal("hide"),t.val=null),t.loading.grid=!1}catch(n){t.loading.grid=!1,t.ns.showErrorFromResponse(n.error||n,"Unable to update.")}t.cd.detectChanges()})()}static \u0275fac=function(s){return new(s||a)(e.Y36(T.W),e.Y36(u.YP),e.Y36(I.L),e.Y36(b.E),e.Y36(e.sBO),e.Y36(y.b))};static \u0275cmp=e.Xpm({type:a,selectors:[["app-auto-increment-list"]],decls:59,vars:13,consts:[[1,"pt-1","pl-1","pr-1"],[1,"card","shadow-sm",2,"height","calc(100vh - 50px)"],[1,"card-header"],["src","/assets/images/icons/increment.svg","alt","Auto Increments",1,"fa-fw","mr-1"],["href","https://docs.apimaker.dev/v1/docs/features/auto-increment.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"float-right","fa-fw","ml-3","mr-1",2,"font-size","25px"],["class","float-right cursor-pointer ml-3","pTooltip","Edit",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","pTooltip","Permanent Delete",3,"click",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],["styleClass","p-datatable-striped","scrollHeight","calc(100vh - 94px)",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange","dblclick"],["pTemplate","header"],["pTemplate","body"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idEditIncrement","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-pencil-alt","text-light","fa-fw","mr-1"],[1,"float-right"],["aria-label","Close","data-dismiss","modal","type","button",1,"close"],["aria-hidden","true"],[1,"fas","fa-window-close"],[1,"modal-body"],[1,"form-group","row","pt-4"],[1,"col-4","col-form-label","col-form-label-sm","text-right"],[1,"col-6"],["min","1","name","val","spellcheck","false","type","number","placeholder","Value",1,"form-control","form-control-sm",3,"ngModel","ngModelChange"],[1,"mt-2",2,"line-height","1"],[1,"text-info","small","font-monospaced"],[1,"text-warning","small","font-monospaced"],[1,"small","font-monospaced"],[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,"disabled","click"],[1,"fas","fa-save","text-success","fa-fw","mr-1"],["pTooltip","Edit",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw","align-middle"],["pTooltip","Permanent Delete",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"far","fa-trash-alt","fa-fw","text-danger"],[3,"pSelectableRow"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(s,n){1&s&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"span"),e._UZ(4,"img",3),e._uU(5," Auto Increments"),e.qZA(),e.TgZ(6,"a",4),e._UZ(7,"img",5),e.qZA(),e.YNc(8,S,2,0,"span",6),e.YNc(9,x,2,0,"span",7),e.qZA(),e.TgZ(10,"div",8)(11,"p-table",9),e.NdJ("selectionChange",function(d){return n.selectedRows=d})("dblclick",function(){return n.edit()}),e.YNc(12,P,11,0,"ng-template",10),e.YNc(13,D,11,6,"ng-template",11),e.qZA(),e.YNc(14,q,1,0,"p-progressSpinner",12),e.qZA()()(),e.TgZ(15,"div",13)(16,"div",14)(17,"div",15)(18,"div",16)(19,"span"),e._UZ(20,"i",17),e._uU(21," Edit Auto Increment"),e.qZA(),e.TgZ(22,"div",18)(23,"button",19)(24,"span",20),e._UZ(25,"i",21),e.qZA()(),e.TgZ(26,"a",4),e._UZ(27,"img",5),e.qZA()()(),e.TgZ(28,"div",22)(29,"div",23)(30,"label",24),e._uU(31,"Value"),e.qZA(),e.TgZ(32,"div",25)(33,"input",26),e.NdJ("ngModelChange",function(d){return n.val=d}),e.qZA(),e.TgZ(34,"div",27)(35,"span",28),e._uU(36,"Next value will be maximum from below"),e.qZA(),e._UZ(37,"br"),e.TgZ(38,"span",29),e._uU(39),e.qZA(),e._UZ(40,"br"),e.TgZ(41,"span",30),e._uU(42,"or"),e.qZA(),e._UZ(43,"br"),e.TgZ(44,"span",29),e._uU(45,"\u{1f449} Max DB value + (step from schema || 1)"),e.qZA(),e._UZ(46,"br"),e.TgZ(47,"span",30),e._uU(48,"System will get max db value, when there is no entry available in this table."),e.qZA(),e._UZ(49,"br"),e.qZA()()()(),e.TgZ(50,"div",31)(51,"button",32),e._UZ(52,"i",33),e._uU(53," Close"),e.qZA(),e.TgZ(54,"button",34),e.NdJ("click",function(){return n.update()}),e._UZ(55,"i",35),e.TgZ(56,"span"),e._uU(57,"Update"),e.qZA()()(),e.YNc(58,L,1,0,"p-progressSpinner",12),e.qZA()()()),2&s&&(e.xp6(8),e.Q6J("ngIf",n.selectedRows.length),e.xp6(1),e.Q6J("ngIf",n.selectedRows.length),e.xp6(2),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("selection",n.selectedRows)("dataKey",n.gridKey)("scrollable",!0)("value",n.rows),e.xp6(3),e.Q6J("ngIf",n.loading.grid),e.xp6(19),e.Q6J("ngModel",n.val),e.xp6(6),e.hij("\u{1f449} ",n.val," + (step from schema || 1)"),e.xp6(15),e.Q6J("disabled",!n.val),e.xp6(4),e.Q6J("ngIf",n.loading.form))},dependencies:[l.Fj,l.wV,l.JJ,l.qQ,l.On,C.O5,U.y,p.iA,u.jx,p.Ei,_.G,w.u],encapsulation:2,changeDetection:0})}return a})(),canActivate:[v.P]}];let M=(()=>{class a{static \u0275fac=function(s){return new(s||a)};static \u0275mod=e.oAB({type:a});static \u0275inj=e.cJS({imports:[f.Bz.forChild(J),h.u]})}return a})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[5765],{37595:(Et,P,l)=>{l.d(P,{G:()=>c});var d=l(15861),t=l(94946),n=l(33157),f=l(90328),C=l(56212),h=l(6990),I=l(45085),S=l(51162),Zt=l(96925),wt=l(20553),F=l(19394),Z=l(60921),L=l(67629),w=l(77240),u=l(99961),y=l(92189),M=l(95852),T=l(27414),E=l(32915),D=l(77664),Q=l(69862),O=l(85219),R=l(60095),G=l(96814),J=l(87797),v=l(95431),Y=l(97680),q=l(33259),k=l(38057),K=l(21137);const B=["funManFormC"],W=["cloneApiModalC"];function H(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"span",20),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(2);return t.KtG(r.edit())}),t._UZ(1,"i",21),t.qZA()}}function j(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"span",22),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(2);return t.KtG(r.clone())}),t._UZ(1,"i",23),t.qZA()}}function $(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"span",24),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(2);return t.KtG(r.removePermanentDialog())}),t._UZ(1,"i",25),t.qZA()}}function z(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"span")(1,"span",13),t.NdJ("click",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.navigateToTreeView())}),t._UZ(2,"i",14),t.qZA(),t.TgZ(3,"span",15),t.NdJ("click",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.add())}),t._UZ(4,"i",16),t.qZA(),t.YNc(5,H,2,0,"span",17),t.YNc(6,j,2,0,"span",18),t.YNc(7,$,2,0,"span",19),t.qZA()}if(2&i){const e=t.oxw();t.xp6(5),t.Q6J("ngIf",1===e.selectedRows.length),t.xp6(1),t.Q6J("ngIf",1===e.selectedRows.length),t.xp6(1),t.Q6J("ngIf",1===e.selectedRows.length)}}function V(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"span",26)(1,"p-checkbox",27),t.NdJ("ngModelChange",function(r){t.CHM(e);const p=t.oxw();return t.KtG(p.eventCenterS.group.apisRegex.allCustomApis=r)}),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngModel",e.eventCenterS.group.apisRegex.allCustomApis)("binary",!0)}}function X(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"span",26)(1,"p-checkbox",27),t.NdJ("ngModelChange",function(r){t.CHM(e);const p=t.oxw();return t.KtG(p.eventCenterS.filterInLog.apisRegex.allCustomApis=r)}),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngModel",e.eventCenterS.filterInLog.apisRegex.allCustomApis)("binary",!0)}}function tt(i,s){if(1&i&&(t.TgZ(0,"div")(1,"div",28),t._uU(2),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(e.constantsS.group.allCustomApisPermitted)}}function et(i,s){1&i&&(t.TgZ(0,"th",38),t._UZ(1,"p-tableHeaderCheckbox"),t.qZA())}function nt(i,s){1&i&&t._UZ(0,"th",36)}function it(i,s){1&i&&(t.TgZ(0,"th"),t._uU(1,"Authorization"),t.qZA())}function ot(i,s){1&i&&t._UZ(0,"th")}function st(i,s){1&i&&t._UZ(0,"th",39)}function at(i,s){if(1&i&&(t.TgZ(0,"tr"),t.YNc(1,et,2,0,"th",34),t.YNc(2,nt,1,0,"th",35),t._UZ(3,"th",36),t.TgZ(4,"th"),t._uU(5,"Name"),t.qZA(),t.TgZ(6,"th"),t._uU(7,"Path"),t.qZA(),t.YNc(8,it,2,0,"th",5),t.YNc(9,ot,1,0,"th",5),t.YNc(10,st,1,0,"th",37),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.showCheckbox),t.xp6(1),t.Q6J("ngIf",!e.isDependentOnGroup&&!e.isLPM&&!e.isFilterLogTable),t.xp6(6),t.Q6J("ngIf",!e.isDependentOnGroup&&!e.isLPM&&!e.isFilterLogTable),t.xp6(1),t.Q6J("ngIf",e.isLPM),t.xp6(1),t.Q6J("ngIf",!e.isDependentOnGroup&&!e.isLPM&&!e.isFilterLogTable)}}function rt(i,s){if(1&i&&(t.TgZ(0,"td"),t._UZ(1,"p-tableCheckbox",48),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("value",e)("pSelectableRow",e)}}function lt(i,s){if(1&i&&(t.TgZ(0,"td",49)(1,"span"),t._uU(2),t.qZA()()),2&i){const e=t.oxw().rowIndex;t.xp6(2),t.Oqu(e+1)}}function ct(i,s){1&i&&(t.TgZ(0,"span",50),t._uU(1,"Native"),t.qZA())}function pt(i,s){1&i&&(t.TgZ(0,"span",51),t._uU(1,"Caching"),t.qZA())}function dt(i,s){1&i&&(t.TgZ(0,"span",52),t._uU(1,"B. Schema"),t.qZA())}function _t(i,s){1&i&&(t.TgZ(0,"span",53),t._uU(1,"Q. Schema"),t.qZA())}function ut(i,s){if(1&i&&(t.TgZ(0,"span",54),t._UZ(1,"i",55),t._uU(2),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(2),t.hij(" Sandbox : ",e.hasSeparateSandboxSettings,"")}}function mt(i,s){1&i&&(t.TgZ(0,"span",59),t._uU(1,"AM-User"),t.qZA())}function ft(i,s){1&i&&(t.TgZ(0,"span",60),t._uU(1,"No-Access"),t.qZA())}function gt(i,s){1&i&&(t.TgZ(0,"span",61),t._uU(1,"Public"),t.qZA())}function ht(i,s){1&i&&(t.TgZ(0,"span",60),t._uU(1,"DB-User"),t.qZA())}function Ct(i,s){1&i&&(t.TgZ(0,"span",60),t._uU(1,"AWS"),t.qZA())}function Tt(i,s){1&i&&(t.TgZ(0,"span",60),t._uU(1,"Azure"),t.qZA())}function vt(i,s){1&i&&(t.TgZ(0,"span",60),t._uU(1,"Google"),t.qZA())}function At(i,s){if(1&i&&(t.TgZ(0,"td"),t.YNc(1,mt,2,0,"span",56),t.YNc(2,ft,2,0,"span",57),t.YNc(3,gt,2,0,"span",58),t.YNc(4,ht,2,0,"span",57),t.YNc(5,Ct,2,0,"span",57),t.YNc(6,Tt,2,0,"span",57),t.YNc(7,vt,2,0,"span",57),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",e.hasAmAuth),t.xp6(1),t.Q6J("ngIf",e.noAccess),t.xp6(1),t.Q6J("ngIf",e.isPublic),t.xp6(1),t.Q6J("ngIf",e.hasAmDBAuth),t.xp6(1),t.Q6J("ngIf",e.hasAwsAuth),t.xp6(1),t.Q6J("ngIf",e.hasAzureAuth),t.xp6(1),t.Q6J("ngIf",e.hasGoogleAuth)}}function xt(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"label",62)(2,"p-checkbox",63),t.NdJ("ngModelChange",function(r){t.CHM(e);const p=t.oxw(2).$implicit;return t.KtG(p.saveResponseInLog=r)})("ngModelChange",function(){t.CHM(e);const r=t.oxw(4);return t.KtG(r.saveResponseInLogCheckData())})("click",function(r){t.CHM(e);const p=t.oxw(4);return t.KtG(p.generalS.stopPropagation(r))}),t.qZA()()()}if(2&i){const e=t.oxw(2).$implicit;t.xp6(2),t.Q6J("ngModel",e.saveResponseInLog)("binary",!0)}}function b(i,s){if(1&i&&(t.TgZ(0,"td"),t.YNc(1,xt,3,2,"div",5),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(null==o.selectedRows?null:o.selectedRows.indexOf(e))>=0)}}const Mt=function(){return["/api-info/api-testing/testing"]},U=function(i,s,e){return{at_category:i,at_user:s,at_api:e}};function N(i,s){if(1&i&&(t.TgZ(0,"td")(1,"div",49)(2,"a",64),t.NdJ("click",function(o){return o.stopPropagation()}),t._UZ(3,"i",65),t.qZA()()()),2&i){const e=t.oxw().$implicit,o=t.oxw(2);t.xp6(2),t.Q6J("routerLink",t.DdM(2,Mt))("queryParams",t.kEZ(3,U,o.EAPICategory.CUSTOM_APIS,o.authCS.getUserId(),e._id))}}const Pt=function(i,s,e,o){return{get:i,put:s,post:e,delete:o}};function yt(i,s){if(1&i&&(t.TgZ(0,"tr",40),t.YNc(1,rt,2,2,"td",5),t.YNc(2,lt,3,1,"td",41),t.TgZ(3,"td")(4,"span",42),t._uU(5),t.qZA()(),t.TgZ(6,"td")(7,"span"),t._uU(8),t.qZA(),t.YNc(9,ct,2,0,"span",43),t.YNc(10,pt,2,0,"span",44),t.YNc(11,dt,2,0,"span",45),t.YNc(12,_t,2,0,"span",46),t.YNc(13,ut,3,1,"span",47),t.qZA(),t.TgZ(14,"td"),t._uU(15),t.qZA(),t.YNc(16,At,8,7,"td",5),t.YNc(17,b,2,1,"td",5),t.YNc(18,N,4,7,"td",5),t.qZA()),2&i){const e=s.$implicit,o=t.oxw(2);t.Q6J("pSelectableRow",e),t.xp6(1),t.Q6J("ngIf",o.showCheckbox),t.xp6(1),t.Q6J("ngIf",!o.isDependentOnGroup&&!o.isLPM&&!o.isFilterLogTable),t.xp6(2),t.Q6J("ngClass",t.l5B(15,Pt,e.requestMethod===o.ERequestMethod.GET,e.requestMethod===o.ERequestMethod.PUT,e.requestMethod===o.ERequestMethod.POST,e.requestMethod===o.ERequestMethod.DELETE)),t.xp6(1),t.Oqu(e.requestMethod),t.xp6(3),t.Oqu(e.name),t.xp6(1),t.Q6J("ngIf",e.runOnNativeProcess),t.xp6(1),t.Q6J("ngIf",e.enableCaching),t.xp6(1),t.Q6J("ngIf",e.hasReqBodySchema),t.xp6(1),t.Q6J("ngIf",e.hasReqQueryParametersSchema),t.xp6(1),t.Q6J("ngIf",e.hasSeparateSandboxSettings),t.xp6(2),t.Oqu(e.path),t.xp6(1),t.Q6J("ngIf",!o.isDependentOnGroup&&!o.isLPM&&!o.isFilterLogTable),t.xp6(1),t.Q6J("ngIf",o.isLPM),t.xp6(1),t.Q6J("ngIf",!o.isDependentOnGroup&&!o.isLPM&&!o.isFilterLogTable)}}function It(i,s){1&i&&t._UZ(0,"p-progressSpinner",66)}function a(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"div",29)(1,"p-table",30),t.NdJ("selectionChange",function(r){t.CHM(e);const p=t.oxw();return t.KtG(p.selectedRows=r)})("selectionChange",function(r){t.CHM(e);const p=t.oxw();return t.KtG(p.functionSelected(r))})("dblclick",function(r){t.CHM(e);const p=t.oxw();return t.KtG(p.dblClickCustomAPIsGrid(r))}),t.YNc(2,at,11,5,"ng-template",31),t.YNc(3,yt,19,20,"ng-template",32),t.qZA(),t.YNc(4,It,1,0,"p-progressSpinner",33),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("selectionMode","multiple")("metaKeySelection",e.metaKeySelection)("selection",e.selectedRows)("dataKey",e.gridKey)("scrollable",!0)("value",e.rows),t.xp6(3),t.Q6J("ngIf",e.loading.grid)}}let c=(()=>{class i{functionS;generalS;notificationS;navigationCS;authCS;constantsS;eventCenterS;cd;router;http;confirmationService;showCheckbox=!0;isReadOnly=!1;isDependentOnGroup=!1;isLPM=!1;isFilterLogTable=!1;metaKeySelection=!0;loading={grid:!1};subscriptions=[];data={mode:f.D.ADD,eventChannel:new t.vpe,formData:void 0};rows=[];rowsMap={};rowsMapName={};showAll=!1;selectedRows=[];gridKey=S.iH._id;EUserType=Z.d;BE_HOST_PORT=wt.N.BE_HOST_PORT;EAPICategory=I.R;ERequestMethod=Zt.Yp;FunManFormC;cloneApiModalC;constructor(e,o,r,p,_,m,A,x,g,Dt,Ot){this.functionS=e,this.generalS=o,this.notificationS=r,this.navigationCS=p,this.authCS=_,this.constantsS=m,this.eventCenterS=A,this.cd=x,this.router=g,this.http=Dt,this.confirmationService=Ot}ngOnInit(){var e=this;this.eventCenterS.functions.selectedFunctions.next([]),this.loadGridData(),this.subscriptions.push(this.data.eventChannel.subscribe(o=>{this.FunManFormC.hideModal(),this.loadGridData()})),this.isDependentOnGroup&&this.subscriptions.push(this.eventCenterS.group.selectedGroups.subscribe(function(){var o=(0,d.Z)(function*(r){r.length&&(yield e.loadGridData())});return function(r){return o.apply(this,arguments)}}())),(this.isFilterLogTable||this.isLPM)&&this.subscriptions.push(this.eventCenterS.filterInLog.refreshGrid.subscribe(o=>{o&&this.loadGridData()})),this.isLPM&&this.subscriptions.push(this.eventCenterS.filterInLog.functionIds.subscribe((0,d.Z)(function*(){e.loadGridData()}))),this.generalS.setNewTitle("API Maker - Custom APIs")}navigateToTreeView(){var e=this;return(0,d.Z)(function*(){yield e.router.navigate(["api-info","custom-api","functions-tree"])})()}loadGridData(){var e=this;this.isDependentOnGroup&&0===this.eventCenterS.group.selectedGroups.value.length?this.resetGridAndUrl():(this.loading.grid=!0,this.subscriptions.push(this.functionS.getFunctionsAsAPI().subscribe(function(){var o=(0,d.Z)(function*(r){r.success?(e.selectedRows=[],e.rows=r.data||[],e.rowsMap=h.keyBy(e.rows,S.iH._id),e.rowsMapName=h.keyBy(e.rows,S.eb.name)):e.resetGridAndUrl();const p=e.navigationCS.getQueryParam(C.p.custom_api)||(e.isFilterLogTable?e.eventCenterS.filterInLog.functionIds.value.join(","):e.eventCenterS.group.customApiIds.value.join(","))||(e.isDependentOnGroup&&e.eventCenterS.group.selectedGroups.value[0].queryParams.customApiNames?e.eventCenterS.group.selectedGroups.value[0].queryParams.customApiNames.join(","):"");if(p){const _=p.split(","),m=h.intersection(h.keys(e.rowsMap),_),A=[];for(const g of m)e.rowsMap[g]&&A.push(e.rowsMap[g]);const x=[];for(const g of m)e.rowsMap[g]&&x.push(e.rowsMap[g]);e.selectedRows=x,e.eventCenterS.functions.selectedFunctions.next(A)}if(e.isLPM&&e.eventCenterS.group.selectedGroups.value[0]?.queryParams?.customApiNames?.length){const _=e.eventCenterS.group.selectedGroups.value[0];for(const m of _?.queryParams?.customApiNames)e.rowsMapName[m]&&(e.rowsMapName[m].saveResponseInLog=_.functionsLog?.[m]?.saveResponseInLog||!1);e.setResDataInEventCenter()}if(e.isDependentOnGroup){e.selectedRows=[];for(const _ of e.eventCenterS.group.customApiIds.value)e.rowsMap[_]&&e.selectedRows.push(e.rowsMap[_])}if(e.isFilterLogTable){e.selectedRows=[];for(const _ of e.eventCenterS.filterInLog.functionIds.value)e.rowsMap[_]&&e.selectedRows.push(e.rowsMap[_])}e.loading.grid=!1,e.cd.detectChanges()});return function(r){return o.apply(this,arguments)}}())))}add(){this.data.formData=void 0,this.data.mode=f.D.ADD,this.data.eventChannel.emit({action:n.F.OPEN_FORM_IN_ADD_MODE}),this.FunManFormC.showModal()}view(){this.data.formData=this.rowsMap[this.getSelectedRowId()],this.data.mode=f.D.VIEW,this.data.eventChannel.emit({action:n.F.OPEN_FORM_IN_VIEW_MODE}),this.FunManFormC.showModal()}edit(){this.data.formData=this.rowsMap[this.getSelectedRowId()],this.data.mode=f.D.EDIT,this.data.eventChannel.emit({action:n.F.OPEN_FORM_IN_EDIT_MODE}),this.FunManFormC.showModal()}removePermanentDialog(){var o,e=this;this.confirmationService.confirm({message:this.constantsS.functions.removePermanentConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(o=(0,d.Z)(function*(){yield e.removePermanent()}),function(){return o.apply(this,arguments)})})}removePermanent(){var e=this;return(0,d.Z)(function*(){if(e.getSelectedRowId()){e.loading.grid=!0;try{const o=`${e.getSelectedRowGuid()}:${e.authCS.gUser._id}`,r=yield e.functionS.permanentDelete(o).toPromise();r.success?(e.notificationS.showSuccess(e.constantsS.functions.removePermanent),e.resetGridAndUrl(),e.loadGridData()):e.notificationS.showErrorFromResponse(r,e.constantsS.functions.removePermanentError)}catch{e.notificationS.showError(e.constantsS.functions.removePermanentError)}e.loading.grid=!1}})()}resetDependents(){var e=this;return(0,d.Z)(function*(){e.eventCenterS.functions.selectedFunctions.next([]),yield e.navigationCS.setQueryParam(C.p.custom_api,null)})()}functionSelected(e){var o=this;return(0,d.Z)(function*(){o.selectedRows=e,o.resetDependents().then();for(const r of o.rows)-1===o.selectedRows.indexOf(r)&&(r.saveResponseInLog=!1);o.fillData().then(),o.getSelectedRowId()?o.generalS.setNewTitle(o.rowsMap[o.getSelectedRowId()].name,I.R.CUSTOM_APIS):o.generalS.setNewTitle("API Maker - Custom APIs")})()}resetGridAndUrl(){this.rows=[],this.selectedRows=[],this.rowsMap={},this.eventCenterS.functions.selectedFunctions.next([])}fillData(){var e=this;return(0,d.Z)(function*(){if(!e.selectedRows||Array.isArray(e.selectedRows)&&!e.selectedRows.length)return yield e.navigationCS.setQueryParam(C.p.custom_api,""),e.eventCenterS.group.customApis.next([]),e.eventCenterS.functions.selectedFunctions.next([]),e.eventCenterS.group.customApiIds.next([]),void e.eventCenterS.group.customApis.next([]);if(e.isDependentOnGroup||e.isFilterLogTable){const o=h.map(e.selectedRows,"_id");e.eventCenterS.group.customApiIds.next(o),e.eventCenterS.group.customApis.next(e.selectedRows),e.isFilterLogTable&&(e.eventCenterS.filterInLog.functionIds.next(o),e.eventCenterS.filterInLog.functions.next(e.selectedRows))}else{const o=e.getSelectedRowId(),r=(yield e.functionS.getById(o).toPromise()).data;r._id?(yield e.navigationCS.setQueryParam(C.p.custom_api,r._id),e.eventCenterS.functions.selectedFunctions.next([r])):e.resetDependents().then()}})()}getSelectedRowId(){return this.selectedRows[0]?._id}getSelectedRowGuid(){return this.selectedRows[0]?.guid}dblClickCustomAPIsGrid(e){setTimeout(()=>{this.edit()},10)}setResDataInEventCenter(){this.isDependentOnGroup&&(this.eventCenterS.group.customApis.next(this.selectedRows),this.eventCenterS.group.selectedFunctions.next(this.selectedRows)),this.isFilterLogTable&&this.eventCenterS.filterInLog.functions.next(this.selectedRows)}saveResponseInLogCheckData(){this.setResDataInEventCenter()}clone(){var e=this;return(0,d.Z)(function*(){yield e.cloneApiModalC.showModal(e.getSelectedRowId(),null,function(){var o=(0,d.Z)(function*(r){r&&(yield e.loadGridData()),e.cd.detectChanges()});return function(r){return o.apply(this,arguments)}}())})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}EModelApiPaths=F.k4;static \u0275fac=function(o){return new(o||i)(t.Y36(L.d),t.Y36(w.b),t.Y36(u.W),t.Y36(y.S),t.Y36(M.D),t.Y36(T.L),t.Y36(E.u),t.Y36(t.sBO),t.Y36(D.F0),t.Y36(Q.eN),t.Y36(O.YP))};static \u0275cmp=t.Xpm({type:i,selectors:[["app-custom-api-grid"]],viewQuery:function(o,r){if(1&o&&(t.Gf(B,5),t.Gf(W,5)),2&o){let p;t.iGM(p=t.CRH())&&(r.FunManFormC=p.first),t.iGM(p=t.CRH())&&(r.cloneApiModalC=p.first)}},inputs:{showCheckbox:"showCheckbox",isReadOnly:["IsReadOnly","isReadOnly"],isDependentOnGroup:["IsDependentOnGroup","isDependentOnGroup"],isLPM:"isLPM",isFilterLogTable:"isFilterLogTable",metaKeySelection:"metaKeySelection"},decls:17,vars:9,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header"],["src","/assets/images/icons/custom.svg","alt","Custom API",1,"fa-fw","mr-1"],["href","https://docs.apimaker.dev/v1/docs/apis-all/custom-apis/user-created-custom-api.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"float-right","fa-fw","ml-3","mr-1",2,"font-size","25px"],[4,"ngIf"],["class","float-right cursor-pointer","tooltipPosition","left","pTooltip","All Custom APIs",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],["class","h-100",4,"ngIf"],[3,"data"],["funManFormC",""],[3,"modalId","hostAndPort","modelApiPaths"],["cloneApiModalC",""],[1,"float-right","cursor-pointer","ml-3",3,"click"],["tooltipPosition","left","pTooltip","Tree View","tooltipPosition","left",1,"fas","fa-sitemap","text-yellow","fa-fw","fa-rotate-270"],["tooltipPosition","left","pTooltip","Add New","tooltipPosition","left",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-plus","text-success","fa-fw"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Edit",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Clone",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Permanent Delete",3,"click",4,"ngIf"],["tooltipPosition","left","pTooltip","Edit",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw"],["tooltipPosition","left","pTooltip","Clone",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-copy","text-light","fa-fw"],["tooltipPosition","left","pTooltip","Permanent Delete",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"far","fa-trash-alt","fa-fw","text-danger"],["tooltipPosition","left","pTooltip","All Custom APIs",1,"float-right","cursor-pointer"],[3,"ngModel","binary","ngModelChange"],[1,"p-2","text-center","text-success"],[1,"h-100"],["styleClass","p-datatable-striped custom-api-grid-height","scrollHeight","flex",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange","dblclick"],["pTemplate","header"],["pTemplate","body"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],["style","width: 45px;",4,"ngIf"],["style","width: 80px;",4,"ngIf"],[2,"width","80px"],["style","width: 60px;",4,"ngIf"],[2,"width","45px"],[2,"width","60px"],[3,"pSelectableRow"],["class","text-center",4,"ngIf"],[1,"small","font-weight-bold","d-inline-block","mr-2",3,"ngClass"],["tooltipPosition","left","pTooltip","Running on native process","class","ml-2 grid-pill-custom-api text-danger border",4,"ngIf"],["tooltipPosition","left","pTooltip","Caching enabled","class","ml-2 grid-pill-custom-api text-warning border",4,"ngIf"],["tooltipPosition","left","pTooltip","It has request body schema","class","ml-2 grid-pill-custom-api text-muted border",4,"ngIf"],["tooltipPosition","left","pTooltip","It has request query parameters schema","class","ml-2 grid-pill-custom-api text-muted border",4,"ngIf"],["tooltipPosition","left","pTooltip","It has separate sandbox","class","ml-2 grid-pill-custom-api text-muted border",4,"ngIf"],[3,"value","pSelectableRow"],[1,"text-center"],["tooltipPosition","left","pTooltip","Running on native process",1,"ml-2","grid-pill-custom-api","text-danger","border"],["tooltipPosition","left","pTooltip","Caching enabled",1,"ml-2","grid-pill-custom-api","text-warning","border"],["tooltipPosition","left","pTooltip","It has request body schema",1,"ml-2","grid-pill-custom-api","text-muted","border"],["tooltipPosition","left","pTooltip","It has request query parameters schema",1,"ml-2","grid-pill-custom-api","text-muted","border"],["tooltipPosition","left","pTooltip","It has separate sandbox",1,"ml-2","grid-pill-custom-api","text-muted","border"],[1,"fas","fa-box"],["class","d-inline-block small font-weight-bold font-monospaced ml-2",4,"ngIf"],["class","d-inline-block small font-weight-bold font-monospaced text-success ml-2",4,"ngIf"],["class","d-inline-block small font-weight-bold font-monospaced text-warning ml-2",4,"ngIf"],[1,"d-inline-block","small","font-weight-bold","font-monospaced","ml-2"],[1,"d-inline-block","small","font-weight-bold","font-monospaced","text-success","ml-2"],[1,"d-inline-block","small","font-weight-bold","font-monospaced","text-warning","ml-2"],[1,"m-0","vertical-align-sub"],["label","Save Response In Log",3,"ngModel","binary","ngModelChange","click"],["href","javascript:",1,"btn","btn-xsm-custom","mr-3",3,"routerLink","queryParams","click"],[1,"fas","fa-vial","text-info","fa-fw","test-tube","pt-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(o,r){1&o&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span"),t._UZ(3,"img",2),t._uU(4," Custom APIs"),t.qZA(),t.TgZ(5,"a",3),t._UZ(6,"img",4),t.qZA(),t.YNc(7,z,8,3,"span",5),t.YNc(8,V,2,2,"span",6),t.YNc(9,X,2,2,"span",6),t.qZA(),t.TgZ(10,"div",7),t.YNc(11,tt,3,1,"div",5),t.YNc(12,a,5,7,"div",8),t.qZA()(),t._UZ(13,"app-w-fun-man-form",9,10)(15,"app-clone-api-modal",11,12)),2&o&&(t.xp6(7),t.Q6J("ngIf",!r.isReadOnly),t.xp6(1),t.Q6J("ngIf",r.isDependentOnGroup),t.xp6(1),t.Q6J("ngIf",r.isFilterLogTable),t.xp6(2),t.Q6J("ngIf",r.eventCenterS.group.apisRegex.allCustomApis||r.eventCenterS.filterInLog.apisRegex.allCustomApis),t.xp6(1),t.Q6J("ngIf",!(r.eventCenterS.group.apisRegex.allCustomApis||r.eventCenterS.filterInLog.apisRegex.allCustomApis)),t.xp6(1),t.Q6J("data",r.data),t.xp6(2),t.Q6J("modalId","idCloneCustomAPIGrid")("hostAndPort",r.BE_HOST_PORT)("modelApiPaths",r.EModelApiPaths.CUSTOM_APIS))},dependencies:[D.rH,R.JJ,R.On,G.mk,G.O5,J.s,v.iA,O.jx,v.Ei,v.UA,v.Mo,Y.G,q.u,k.XZ,K.u],styles:[".custom-tab-title[_ngcontent-%COMP%]{padding:.5rem}.min-width[_ngcontent-%COMP%], .none[_ngcontent-%COMP%], .delete[_ngcontent-%COMP%], .post[_ngcontent-%COMP%], .put[_ngcontent-%COMP%], .get[_ngcontent-%COMP%]{width:45px;display:inline-block}.get[_ngcontent-%COMP%]{color:var(--accent-success)}.put[_ngcontent-%COMP%]{color:var(--brand-secondary)}.post[_ngcontent-%COMP%]{color:var(--accent-warning)}.delete[_ngcontent-%COMP%]{color:var(--accent-error)}.none[_ngcontent-%COMP%]{color:var(--accent-success--shade--three)}.width-160[_ngcontent-%COMP%]{width:160px}"]})}return i})()},95765:(Et,P,l)=>{l.r(P),l.d(P,{FunctionManM:()=>It});var d=l(77664),t=l(96814),n=l(94946),f=l(85219);let F=(()=>{class a{static \u0275fac=function(s){return new(s||a)};static \u0275mod=n.oAB({type:a});static \u0275inj=n.cJS({imports:[t.ez,f.m8,f.m8]})}return a})();var Z=l(63726),L=l(17017),w=l(37595),u=l(15861),y=l(33157),M=l(90328),T=l(56212),E=l(45085),D=l(51162),Q=l(96925),O=l(20553),R=l(19394),G=l(60921),J=l(67629),v=l(77240),Y=l(99961),q=l(92189),k=l(95852),K=l(27414),B=l(32915),W=l(69862),H=l(87797),j=l(91396),$=l(97680),z=l(33259),V=l(21137);const X=["funManFormC"],tt=["cloneApiModalC"];function et(a,c){if(1&a){const i=n.EpF();n.TgZ(0,"span",21),n.NdJ("click",function(){n.CHM(i);const e=n.oxw();return n.KtG(e.edit())}),n._UZ(1,"i",22),n.qZA()}}function nt(a,c){if(1&a){const i=n.EpF();n.TgZ(0,"span",23),n.NdJ("click",function(){n.CHM(i);const e=n.oxw();return n.KtG(e.clone())}),n._UZ(1,"i",24),n.qZA()}}function it(a,c){if(1&a){const i=n.EpF();n.TgZ(0,"span",25),n.NdJ("click",function(){n.CHM(i);const e=n.oxw();return n.KtG(e.removePermanentDialog())}),n._UZ(1,"i",26),n.qZA()}}function ot(a,c){if(1&a&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&a){const i=n.oxw().$implicit;n.xp6(1),n.Oqu(i.label)}}function st(a,c){1&a&&(n.TgZ(0,"span",43),n._uU(1,"Native"),n.qZA())}function at(a,c){1&a&&(n.TgZ(0,"span",44),n._uU(1,"Caching"),n.qZA())}function rt(a,c){1&a&&(n.TgZ(0,"span",45),n._uU(1,"B. Schema"),n.qZA())}function lt(a,c){1&a&&(n.TgZ(0,"span",46),n._uU(1,"Q. Schema"),n.qZA())}function ct(a,c){if(1&a&&(n.TgZ(0,"span",47),n._UZ(1,"i",48),n._uU(2),n.qZA()),2&a){const i=n.oxw(2).$implicit;n.xp6(2),n.hij(" Sandbox : ",i.data.hasSeparateSandboxSettings,"")}}function pt(a,c){1&a&&(n.TgZ(0,"span",49),n._uU(1,"AM-User"),n.qZA())}function dt(a,c){1&a&&(n.TgZ(0,"span",50),n._uU(1,"No-Access"),n.qZA())}function _t(a,c){1&a&&(n.TgZ(0,"span",51),n._uU(1,"Public"),n.qZA())}function ut(a,c){1&a&&(n.TgZ(0,"span",50),n._uU(1,"DB-User"),n.qZA())}function mt(a,c){1&a&&(n.TgZ(0,"span",50),n._uU(1,"AWS"),n.qZA())}function ft(a,c){1&a&&(n.TgZ(0,"span",50),n._uU(1,"Azure"),n.qZA())}function gt(a,c){1&a&&(n.TgZ(0,"span",50),n._uU(1,"Google"),n.qZA())}const ht=function(a,c,i,s){return{get:a,put:c,post:i,delete:s}},Ct=function(){return["/api-info/api-testing/testing"]},Tt=function(a,c,i){return{at_category:a,at_user:c,at_api:i}};function vt(a,c){if(1&a&&(n.TgZ(0,"div")(1,"div")(2,"table",29)(3,"tr")(4,"td",30)(5,"span",31),n._uU(6),n.qZA(),n.TgZ(7,"span")(8,"span"),n._uU(9),n.qZA(),n.YNc(10,st,2,0,"span",32),n.YNc(11,at,2,0,"span",33),n.YNc(12,rt,2,0,"span",34),n.YNc(13,lt,2,0,"span",35),n.YNc(14,ct,3,1,"span",36),n.qZA()(),n.TgZ(15,"td",30),n._uU(16),n.qZA(),n.TgZ(17,"td"),n.YNc(18,pt,2,0,"span",37),n.YNc(19,dt,2,0,"span",38),n.YNc(20,_t,2,0,"span",39),n.YNc(21,ut,2,0,"span",38),n.YNc(22,mt,2,0,"span",38),n.YNc(23,ft,2,0,"span",38),n.YNc(24,gt,2,0,"span",38),n.qZA(),n.TgZ(25,"td",40)(26,"a",41),n.NdJ("click",function(s){return s.stopPropagation()}),n._UZ(27,"i",42),n.qZA()()()()()()),2&a){const i=n.oxw().$implicit,s=n.oxw();n.xp6(5),n.Q6J("ngClass",n.l5B(18,ht,i.data.requestMethod===s.ERequestMethod.GET,i.data.requestMethod===s.ERequestMethod.PUT,i.data.requestMethod===s.ERequestMethod.POST,i.data.requestMethod===s.ERequestMethod.DELETE)),n.xp6(1),n.Oqu(i.data.requestMethod),n.xp6(3),n.Oqu(i.data.name),n.xp6(1),n.Q6J("ngIf",i.data.runOnNativeProcess),n.xp6(1),n.Q6J("ngIf",i.data.enableCaching),n.xp6(1),n.Q6J("ngIf",i.data.hasReqBodySchema),n.xp6(1),n.Q6J("ngIf",i.data.hasReqQueryParametersSchema),n.xp6(1),n.Q6J("ngIf",i.data.hasSeparateSandboxSettings),n.xp6(2),n.Oqu(i.data.path),n.xp6(2),n.Q6J("ngIf",i.data.hasAmAuth),n.xp6(1),n.Q6J("ngIf",i.data.noAccess),n.xp6(1),n.Q6J("ngIf",i.data.isPublic),n.xp6(1),n.Q6J("ngIf",i.data.hasAmDBAuth),n.xp6(1),n.Q6J("ngIf",i.data.hasAwsAuth),n.xp6(1),n.Q6J("ngIf",i.data.hasAzureAuth),n.xp6(1),n.Q6J("ngIf",i.data.hasGoogleAuth),n.xp6(2),n.Q6J("routerLink",n.DdM(23,Ct))("queryParams",n.kEZ(24,Tt,s.EAPICategory.CUSTOM_APIS,s.authCS.getUserId(),i.data._id))}}function At(a,c){if(1&a&&(n.TgZ(0,"div",27),n.YNc(1,ot,2,1,"div",28),n.YNc(2,vt,28,28,"div",28),n.qZA()),2&a){const i=c.$implicit;n.xp6(1),n.Q6J("ngIf",null==i.children?null:i.children.length),n.xp6(1),n.Q6J("ngIf",!(null!=i.children&&i.children.length))}}function xt(a,c){1&a&&n._UZ(0,"p-progressSpinner",52)}let b=(()=>{class a{functionS;generalS;notificationS;navigationCS;authCS;constantsS;eventCenterS;cd;router;http;confirmationService;loading={grid:!1};subscriptions=[];data={mode:M.D.ADD,eventChannel:new n.vpe,formData:void 0};gridKey=D.iH._id;EUserType=G.d;BE_HOST_PORT=O.N.BE_HOST_PORT;EAPICategory=E.R;EQueryParam=T.p;leafSelected=!1;selectedRows=void 0;treeNodes=[];allTreeItemsMap={};FunManFormC;cloneApiModalC;constructor(i,s,e,o,r,p,_,m,A,x,g){this.functionS=i,this.generalS=s,this.notificationS=e,this.navigationCS=o,this.authCS=r,this.constantsS=p,this.eventCenterS=_,this.cd=m,this.router=A,this.http=x,this.confirmationService=g}ngOnInit(){this.loadTreeData(),this.subscriptions.push(this.data.eventChannel.subscribe(i=>{this.FunManFormC.hideModal(),this.loadTreeData()})),this.generalS.setNewTitle("API Maker - Custom APIs")}navigateToGridView(){var i=this;return(0,u.Z)(function*(){yield i.router.navigate(["api-info","custom-api","functions"])})()}loadTreeData(){var i=this;return(0,u.Z)(function*(){const s=(yield i.functionS.getCustomAPITree().toPromise()).data;for(const o of s)i.generalS.convertKTreeItemToPrimeNGTreeItem(o);const e={};i.generalS.getMapOfAllItems(e,s);for(const o of Object.keys(e)){const r=i.allTreeItemsMap[o];r&&(e[o].expanded=r.expanded)}i.treeNodes=s,i.allTreeItemsMap=e,i.loading.grid=!1,i.cd.detectChanges()})()}add(){this.data.formData=void 0,this.data.mode=M.D.ADD,this.data.eventChannel.emit({action:y.F.OPEN_FORM_IN_ADD_MODE}),this.FunManFormC.showModal()}edit(){this.leafSelected&&(this.data.formData=this.selectedRows[0].data,this.data.mode=M.D.EDIT,this.data.eventChannel.emit({action:y.F.OPEN_FORM_IN_EDIT_MODE}),this.FunManFormC.showModal())}removePermanentDialog(){var s,i=this;this.leafSelected&&this.confirmationService.confirm({message:this.constantsS.functions.removePermanentConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(s=(0,u.Z)(function*(){yield i.removePermanent()}),function(){return s.apply(this,arguments)})})}removePermanent(){var i=this;return(0,u.Z)(function*(){if(i.getSelectedRowId()){i.loading.grid=!0;try{const s=`${i.getSelectedRowGuid()}:${i.authCS.gUser._id}`,e=yield i.functionS.permanentDelete(s).toPromise();e.success?(i.notificationS.showSuccess(i.constantsS.functions.removePermanent),i.resetGridAndUrl(),yield i.loadTreeData(),i.leafSelected=!1):i.notificationS.showErrorFromResponse(e,i.constantsS.functions.removePermanentError)}catch{i.notificationS.showError(i.constantsS.functions.removePermanentError)}i.loading.grid=!1}})()}resetDependents(){var i=this;return(0,u.Z)(function*(){yield i.navigationCS.setQueryParam(T.p.custom_api,null)})()}functionSelected(){var i=this;return(0,u.Z)(function*(){i.resetDependents(),i.fillData(),i.getSelectedRowId()?i.generalS.setNewTitle(i.selectedRows[0].data.name,E.R.CUSTOM_APIS):i.generalS.setNewTitle("API Maker - Custom APIs"),i.leafSelected=!(!i.getSelectedRowId()||i.selectedRows[0].children?.length)})()}resetGridAndUrl(){this.selectedRows=void 0}fillData(){var i=this;return(0,u.Z)(function*(){if(!i.selectedRows)return void(yield i.navigationCS.setQueryParam(T.p.custom_api,""));const s=i.getSelectedRowId();s?yield i.navigationCS.setQueryParam(T.p.custom_api,s):i.resetDependents()})()}getSelectedRowId(){return this.selectedRows?.[0]?.data?._id}getSelectedRowGuid(){return this.selectedRows?.[0]?.data?.guid}dblClickCustomAPIsGrid(){setTimeout(()=>{this.edit()},10)}clone(){var i=this;return(0,u.Z)(function*(){yield i.cloneApiModalC.showModal(i.getSelectedRowId(),null,function(){var s=(0,u.Z)(function*(e){e&&(yield i.loadTreeData()),i.cd.detectChanges()});return function(e){return s.apply(this,arguments)}}())})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}ERequestMethod=Q.Yp;EModelApiPaths=R.k4;static \u0275fac=function(s){return new(s||a)(n.Y36(J.d),n.Y36(v.b),n.Y36(Y.W),n.Y36(q.S),n.Y36(k.D),n.Y36(K.L),n.Y36(B.u),n.Y36(n.sBO),n.Y36(d.F0),n.Y36(W.eN),n.Y36(f.YP))};static \u0275cmp=n.Xpm({type:a,selectors:[["app-custom-api-tree"]],viewQuery:function(s,e){if(1&s&&(n.Gf(X,5),n.Gf(tt,5)),2&s){let o;n.iGM(o=n.CRH())&&(e.FunManFormC=o.first),n.iGM(o=n.CRH())&&(e.cloneApiModalC=o.first)}},decls:24,vars:10,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header"],["src","/assets/images/icons/custom.svg","alt","Custom API",1,"fa-fw","mr-1"],["href","https://docs.apimaker.dev/v1/docs/apis-all/custom-apis/user-created-custom-api.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"float-right","fa-fw","ml-3","mr-1",2,"font-size","25px"],[1,"float-right","cursor-pointer","ml-3",3,"click"],["pTooltip","Grid View",1,"fas","fa-table","text-yellow","fa-fw"],["pTooltip","Add New",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-plus","text-success","fa-fw"],["class","float-right cursor-pointer ml-3","pTooltip","Edit",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","pTooltip","Clone",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","pTooltip","Permanent Delete",3,"click",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],[1,"h-100"],["scrollHeight","calc(100vh - 82px)","selectionMode","multiple",1,"w-full",3,"value","selection","selectionChange","dblclick"],["pTemplate","default"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"data"],["funManFormC",""],[3,"modalId","hostAndPort","modelApiPaths"],["cloneApiModalC",""],["pTooltip","Edit",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw"],["pTooltip","Clone",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-copy","text-light","fa-fw"],["pTooltip","Permanent Delete",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"far","fa-trash-alt","fa-fw","text-danger"],[1,"w-100","prevent-text-selection","cursor-pointer"],[4,"ngIf"],[1,"w-100"],[2,"width","40%"],[1,"small","font-weight-bold","d-inline-block","mr-2",3,"ngClass"],["tooltipPosition","left","pTooltip","Running on native process","class","ml-2 grid-pill-custom-api text-danger border",4,"ngIf"],["tooltipPosition","left","pTooltip","Caching enabled","class","ml-2 grid-pill-custom-api text-warning border",4,"ngIf"],["tooltipPosition","left","pTooltip","It has request body schema","class","ml-2 grid-pill-custom-api text-muted border",4,"ngIf"],["tooltipPosition","left","pTooltip","It has request query parameters schema","class","ml-2 grid-pill-custom-api text-muted border",4,"ngIf"],["tooltipPosition","left","pTooltip","It has separate sandbox","class","ml-2 grid-pill-custom-api text-muted border",4,"ngIf"],["class","d-inline-block small font-weight-bold font-monospaced ml-2",4,"ngIf"],["class","d-inline-block small font-weight-bold font-monospaced text-success ml-2",4,"ngIf"],["class","d-inline-block small font-weight-bold font-monospaced text-warning ml-2",4,"ngIf"],[2,"text-align","right"],["href","javascript:",1,"btn","btn-xsm-custom","mr-3",3,"routerLink","queryParams","click"],[1,"fas","fa-vial","text-info","fa-fw","test-tube","pt-1"],["tooltipPosition","left","pTooltip","Running on native process",1,"ml-2","grid-pill-custom-api","text-danger","border"],["tooltipPosition","left","pTooltip","Caching enabled",1,"ml-2","grid-pill-custom-api","text-warning","border"],["tooltipPosition","left","pTooltip","It has request body schema",1,"ml-2","grid-pill-custom-api","text-muted","border"],["tooltipPosition","left","pTooltip","It has request query parameters schema",1,"ml-2","grid-pill-custom-api","text-muted","border"],["tooltipPosition","left","pTooltip","It has separate sandbox",1,"ml-2","grid-pill-custom-api","text-muted","border"],[1,"fas","fa-box"],[1,"d-inline-block","small","font-weight-bold","font-monospaced","ml-2"],[1,"d-inline-block","small","font-weight-bold","font-monospaced","text-success","ml-2"],[1,"d-inline-block","small","font-weight-bold","font-monospaced","text-warning","ml-2"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(s,e){1&s&&(n.TgZ(0,"div",0)(1,"div",1)(2,"span"),n._UZ(3,"img",2),n._uU(4," Custom APIs"),n.qZA(),n.TgZ(5,"a",3),n._UZ(6,"img",4),n.qZA(),n.TgZ(7,"span")(8,"span",5),n.NdJ("click",function(){return e.navigateToGridView()}),n._UZ(9,"i",6),n.qZA(),n.TgZ(10,"span",7),n.NdJ("click",function(){return e.add()}),n._UZ(11,"i",8),n.qZA(),n.YNc(12,et,2,0,"span",9),n.YNc(13,nt,2,0,"span",10),n.YNc(14,it,2,0,"span",11),n.qZA()(),n.TgZ(15,"div",12)(16,"div",13)(17,"p-tree",14),n.NdJ("selectionChange",function(r){return e.selectedRows=r})("dblclick",function(){return e.dblClickCustomAPIsGrid()})("selectionChange",function(){return e.functionSelected()}),n.YNc(18,At,3,2,"ng-template",15),n.qZA(),n.YNc(19,xt,1,0,"p-progressSpinner",16),n.qZA()()(),n._UZ(20,"app-w-fun-man-form",17,18)(22,"app-clone-api-modal",19,20)),2&s&&(n.xp6(12),n.Q6J("ngIf",e.leafSelected),n.xp6(1),n.Q6J("ngIf",e.leafSelected),n.xp6(1),n.Q6J("ngIf",e.leafSelected),n.xp6(3),n.Q6J("value",e.treeNodes)("selection",e.selectedRows),n.xp6(2),n.Q6J("ngIf",e.loading.grid),n.xp6(1),n.Q6J("data",e.data),n.xp6(2),n.Q6J("modalId","idCloneCustomAPITree")("hostAndPort",e.BE_HOST_PORT)("modelApiPaths",e.EModelApiPaths.CUSTOM_APIS))},dependencies:[d.rH,t.mk,t.O5,H.s,f.jx,j.mp,$.G,z.u,V.u],styles:[".custom-tab-title[_ngcontent-%COMP%]{padding:.5rem}.min-width[_ngcontent-%COMP%], .none[_ngcontent-%COMP%], .delete[_ngcontent-%COMP%], .post[_ngcontent-%COMP%], .put[_ngcontent-%COMP%], .get[_ngcontent-%COMP%]{width:45px;display:inline-block}.get[_ngcontent-%COMP%]{color:var(--accent-success)}.put[_ngcontent-%COMP%]{color:var(--brand-secondary)}.post[_ngcontent-%COMP%]{color:var(--accent-warning)}.delete[_ngcontent-%COMP%]{color:var(--accent-error)}.none[_ngcontent-%COMP%]{color:var(--accent-success--shade--three)}.width-160[_ngcontent-%COMP%]{width:160px}"]})}return a})();var Mt=l(67987);const Pt=[{path:"",redirectTo:"functions-tree",pathMatch:"full"},{path:"functions-tree",component:(()=>{class a{route;constructor(i){this.route=i}ngOnInit(){}static \u0275fac=function(s){return new(s||a)(n.Y36(d.gz))};static \u0275cmp=n.Xpm({type:a,selectors:[["app-fun-man-layout-tree"]],decls:2,vars:0,consts:[[1,"pt-1","pl-1","pr-1"]],template:function(s,e){1&s&&(n.TgZ(0,"div",0),n._UZ(1,"app-custom-api-tree"),n.qZA())},dependencies:[b],encapsulation:2})}return a})(),canActivate:[Z.P]},{path:"functions",component:(()=>{class a{route;mode="tree";constructor(i){this.route=i}ngOnInit(){this.route.queryParams.subscribe(i=>{i.mode&&(this.mode=i.mode)})}static \u0275fac=function(s){return new(s||a)(n.Y36(d.gz))};static \u0275cmp=n.Xpm({type:a,selectors:[["app-fun-man-layout"]],decls:2,vars:1,consts:[[1,"pt-1","pl-1","pr-1"],[3,"showCheckbox"]],template:function(s,e){1&s&&(n.TgZ(0,"div",0),n._UZ(1,"app-custom-api-grid",1),n.qZA()),2&s&&(n.xp6(1),n.Q6J("showCheckbox",!1))},dependencies:[w.G],encapsulation:2})}return a})(),canActivate:[Z.P]}];let It=(()=>{class a{static \u0275fac=function(s){return new(s||a)};static \u0275mod=n.oAB({type:a});static \u0275inj=n.cJS({imports:[d.Bz.forChild(Pt),L.u,Mt.X,F]})}return a})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[6236],{34491:(C,u,s)=>{s.d(u,{g:()=>q});var m=s(15861),r=s(60095),c=s(33157),l=s(90328),E=s(59361),I=s(51162),p=s(20553),D=s(45085),g=s(91601),f=s(3531),h=s(39989),e=s(94946),v=s(99961),M=s(77240),O=s(27414),T=s(62694),A=s(95852),S=s(45809),U=s(53429),Z=s(32915),F=s(33835),z=s(96814),b=s(32660),R=s(5860),y=s(756),x=s(97680),P=s(14844),L=s(33259),B=s(25025);const W=["insertCodeModalC"],K=["monacoEditorModalC"];function N(i,_){1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",27),e._uU(2," Add Process Initializer"),e.qZA())}function J(i,_){1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",28),e._uU(2," View Process Initializer"),e.qZA())}function Y(i,_){if(1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",29),e._uU(2," Edit Process Initializer "),e.TgZ(3,"span",30),e._uU(4),e.qZA()()),2&i){const o=e.oxw();e.xp6(4),e.Oqu(o.form.get("name").value)}}function w(i,_){1&i&&(e.TgZ(0,"span",39),e._uU(1,"You can not change name later, it can be used in script."),e.qZA())}function V(i,_){if(1&i&&(e.TgZ(0,"div")(1,"form",31)(2,"div",32)(3,"label",33),e._uU(4,"Name"),e.qZA(),e.TgZ(5,"div",34),e._UZ(6,"input",35),e.YNc(7,w,2,0,"span",36),e.qZA()(),e.TgZ(8,"div",32)(9,"label",33),e._uU(10,"Order"),e.qZA(),e.TgZ(11,"div",34),e._UZ(12,"input",37),e.qZA()(),e.TgZ(13,"div",32)(14,"label",33),e._uU(15,"Timeout in minutes"),e.qZA(),e.TgZ(16,"div",34),e._UZ(17,"input",38),e.qZA()()()()),2&i){const o=e.oxw();e.xp6(1),e.Q6J("formGroup",o.form),e.xp6(6),e.Q6J("ngIf",o.data.mode===o.EFormMode.ADD)}}function Q(i,_){if(1&i){const o=e.EpF();e.TgZ(0,"div",40)(1,"app-monaco-editor",41),e.NdJ("editorGenerated",function(t){e.CHM(o);const n=e.oxw();return e.KtG(n.editorGenerated(t))}),e.qZA()()}if(2&i){const o=e.oxw();e.xp6(1),e.Q6J("isSchemaEditor",!0)("editorOptions",o.editorOptionsProcessInitializer)}}function G(i,_){if(1&i){const o=e.EpF();e.TgZ(0,"a",42),e.NdJ("click",function(){e.CHM(o);const t=e.oxw();return e.KtG(t.viewError())}),e._uU(1,"View error"),e.qZA()}}function H(i,_){1&i&&(e.TgZ(0,"span"),e._uU(1,"Save"),e.qZA())}function k(i,_){1&i&&(e.TgZ(0,"span"),e._uU(1,"Update"),e.qZA())}function j(i,_){if(1&i){const o=e.EpF();e.TgZ(0,"button",43),e.NdJ("click",function(){e.CHM(o);const t=e.oxw();return e.KtG(t.save())}),e._UZ(1,"i",44),e.YNc(2,H,2,0,"span",4),e.YNc(3,k,2,0,"span",4),e.qZA()}if(2&i){const o=e.oxw();e.Q6J("disabled",o.form.invalid),e.xp6(2),e.Q6J("ngIf",o.data.mode===o.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",o.data.mode===o.EFormMode.EDIT)}}function X(i,_){1&i&&e._UZ(0,"p-progressSpinner",45)}let q=(()=>{class i{fb;ns;generalS;constantsS;processInitializersS;authCS;monacoS;instanceS;eventCenterS;generalCS;userS;cd;data;loading={form:!1};EFormMode=l.D;form;subscriptions=[];formData;IEventData=c.F;id;BE_HOST_PORT=p.N.BE_HOST_PORT;DOCS_HOST_PORT=p.N.DOCS_HOST_PORT;instances=[];editorPI;editorOptionsProcessInitializer={readOnly:!1,language:"typescript",contextmenu:!0};lastError;editorOptionsMonacoEditorModal={readOnly:!0,language:"json",contextmenu:!0};insertCodeModalC;viewDockerfileModelC;shouldLoadMonacoEditor=!1;monacoDecorations=[];tab;constructor(o,a,t,n,d,ee,oe,te,se,ae,ie,ne){this.fb=o,this.ns=a,this.generalS=t,this.constantsS=n,this.processInitializersS=d,this.authCS=ee,this.monacoS=oe,this.instanceS=te,this.eventCenterS=se,this.generalCS=ae,this.userS=ie,this.cd=ne}ngOnInit(){var o=this;return(0,m.Z)(function*(){o.createForm(),o.subscriptions.push(o.data.eventChannel.subscribe(function(){var a=(0,m.Z)(function*(t){if(t)if(o.form.enable(),t.action===c.F.OPEN_FORM_IN_EDIT_MODE)yield o.editViewLoadData(),o.form.get("name").disable(),o.cd.detectChanges();else if(t.action===c.F.OPEN_FORM_IN_VIEW_MODE)yield o.editViewLoadData(),o.form.disable(),o.cd.detectChanges();else if(t.action===c.F.OPEN_FORM_IN_ADD_MODE){o.form.reset(),o.form.patchValue(t.data||{});const n=yield o.instanceS.getDefaultContent(o.BE_HOST_PORT,D.R.PROCESS_INITIALIZER).toPromise();o.editorOptionsProcessInitializer={readOnly:!1},o.generalCS.setValueInEditor(o,"editorPI",n.data),o.cd.detectChanges()}});return function(t){return a.apply(this,arguments)}}()))})()}editViewLoadData(){var o=this;return(0,m.Z)(function*(){const a=yield o.processInitializersS.queryOne({find:{guid:o.data.formData.guid,user:o.authCS.gUser._id}});o.form.reset(),o.form.patchValue(a),o.generalCS.setValueInEditor(o,"editorPI",a?.processInitializerCode||"")})()}createForm(){this.form=this.fb.group({name:[null,[r.kI.required]],order:[null,[r.kI.required]],processInitializerTimeoutInMinutes:[null,[]]})}showModal(){this.lastError=void 0,this.shouldLoadMonacoEditor=!0,setTimeout(()=>{$("#idProcessInitializerForm").modal("show")},100)}hideModal(){$("#idProcessInitializerForm").modal("hide")}save(){var o=this;return(0,m.Z)(function*(){const a=o.form.getRawValue();let t;t=o.data.formData&&o.data.formData._id?yield o.processInitializersS.queryOne({find:{guid:o.data.formData.guid,user:o.authCS.gUser._id}}):{};const n=Object.assign({},t,a);n.user=o.authCS.getUserId(),n.processInitializerCode=o.editorPI.getValue();try{let d;o.loading.form=!0,o.lastError=void 0,o.monacoS.clearEditorDecorations(o.editorPI,o.monacoDecorations),o.data.mode===l.D.ADD?d=yield o.processInitializersS.post(n).toPromise():o.data.mode===l.D.EDIT&&(d=yield o.processInitializersS.put(n._id,n,{select:I.iH._id}).toPromise()),o.ns.showSuccess(o.data.mode===l.D.ADD?o.constantsS.processInitializer.addSuccess:o.constantsS.processInitializer.editSuccess),o.data.eventChannel.emit({action:o.data.mode===l.D.ADD?c.F.SAVED:c.F.UPDATED,data:d}),o.eventCenterS.processInitializersSavedAndUpdate.next(!0),o.loading.form=!1}catch(d){o.loading.form=!1,o.ns.showErrorFromResponse(d.error||d,"Unable to save process initializer."),o.lastError=d.error,o.tab=o.tab||{},o.tab.axiosResponse={data:d.error},o.monacoS.highlightErrorInMonacoEditor(o.editorPI,o.tab,"MainSandbox.ts",o.monacoDecorations)}o.cd.detectChanges()})()}showInsertCodeModel(){this.generalCS.messageReceivedFor=E.H.All,this.insertCodeModalC.showModal(f.b.ProcessInitializersFormC).then()}editorGenerated(o){var a=this;return(0,m.Z)(function*(){a.editorPI=o,yield a.monacoS.loadSchemaEditorSettings(a.BE_HOST_PORT,a.authCS.getUserId(),null),a.monacoS.addSaveCodeKeyBinding(o,t=>{a.form.valid&&a.save()}),a.monacoS.addInsertCodeKeyBinding(o,t=>{a.generalCS.messageReceivedFor=E.H.All,a.data.mode!==l.D.VIEW&&a.insertCodeModalC.showModal(f.b.ProcessInitializersFormC)}),a.subscriptions.push(a.generalS.messageReceived.subscribe(t=>{t.type&&t.type===h.g.TEXT_COPIED&&t.componentName===f.b.ProcessInitializersFormC&&(a.monacoS.insertAtCursor(o,t.selectedText),a.insertCodeModalC.hideModal())}))})()}viewError(){this.viewDockerfileModelC.showModal(this.generalS.stringify(this.lastError),g.d.json)}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions),this.eventCenterS.processInitializersSavedAndUpdate.next(!1)}static \u0275fac=function(a){return new(a||i)(e.Y36(r.qu),e.Y36(v.W),e.Y36(M.b),e.Y36(O.L),e.Y36(T.e),e.Y36(A.D),e.Y36(S.b),e.Y36(U.E),e.Y36(Z.u),e.Y36(M.b),e.Y36(F.K),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:i,selectors:[["app-process-initializers-form"]],viewQuery:function(a,t){if(1&a&&(e.Gf(W,5),e.Gf(K,5)),2&a){let n;e.iGM(n=e.CRH())&&(t.insertCodeModalC=n.first),e.iGM(n=e.CRH())&&(t.viewDockerfileModelC=n.first)}},inputs:{data:"data"},decls:32,vars:14,consts:[["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idProcessInitializerForm","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/process-initializers.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"fa-fw","ml-3","mr-1","mt-n2",2,"font-size","25px"],[1,"modal-body","overflow-auto"],["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,"ml-2","font-weight-normal","small","text-muted"],[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"],["class","mt-1px small",4,"ngIf"],["formControlName","order","name","order","spellcheck","false","type","number","placeholder","Please provide order",1,"form-control","form-control-sm"],["formControlName","processInitializerTimeoutInMinutes","name","processInitializerTimeoutInMinutes","spellcheck","false","type","number","placeholder","10",1,"form-control","form-control-sm"],[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(a,t){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.YNc(4,N,3,0,"span",4),e.YNc(5,J,3,0,"span",4),e.YNc(6,Y,5,1,"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.qZA()()(),e.TgZ(15,"div",13)(16,"p-tabView")(17,"p-tabPanel",14),e.YNc(18,V,18,2,"div",4),e.qZA(),e.TgZ(19,"p-tabPanel",15),e.YNc(20,Q,2,2,"div",16),e.qZA()()(),e.TgZ(21,"div",17),e.YNc(22,G,2,0,"a",18),e.TgZ(23,"button",19),e.NdJ("click",function(){return t.hideModal()}),e._UZ(24,"i",20),e._uU(25," Close"),e.qZA(),e.YNc(26,j,4,3,"button",21),e.qZA(),e.YNc(27,X,1,0,"p-progressSpinner",22),e.qZA()()(),e._UZ(28,"app-insert-code-modal",23,24)(30,"app-monaco-editor-modal",25,26)),2&a&&(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(12),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","idMonacoEditorModalInSysProcessInitializer")("editorOptionsMonacoEditorModal",t.editorOptionsMonacoEditorModal)("modalTitle","Error info"))},dependencies:[r._Y,r.Fj,r.wV,r.JJ,r.JL,r.sg,r.u,z.O5,b.y,R.P,y.O,x.G,P.xf,P.x4,L.u,B.A],encapsulation:2,changeDetection:0})}return i})()},56236:(C,u,s)=>{s.d(u,{e:()=>I});var m=s(17017),c=(s(34491),s(44950)),l=s(94946);let I=(()=>{class p{static \u0275fac=function(f){return new(f||p)};static \u0275mod=l.oAB({type:p});static \u0275inj=l.cJS({imports:[m.u,c.A]})}return p})()}}]);
|