aiware-js 1.0.0-master.92 → 1.0.0-master.921
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/aiware-ui.esm.js +46 -0
- package/files/dosis-all-200-normal.woff +0 -0
- package/files/dosis-all-300-normal.woff +0 -0
- package/files/dosis-all-400-normal.woff +0 -0
- package/files/dosis-all-500-normal.woff +0 -0
- package/files/dosis-all-600-normal.woff +0 -0
- package/files/dosis-all-700-normal.woff +0 -0
- package/files/dosis-all-800-normal.woff +0 -0
- package/files/dosis-latin-200-normal.woff +0 -0
- package/files/dosis-latin-200-normal.woff2 +0 -0
- package/files/dosis-latin-300-normal.woff +0 -0
- package/files/dosis-latin-300-normal.woff2 +0 -0
- package/files/dosis-latin-400-normal.woff +0 -0
- package/files/dosis-latin-400-normal.woff2 +0 -0
- package/files/dosis-latin-500-normal.woff +0 -0
- package/files/dosis-latin-500-normal.woff2 +0 -0
- package/files/dosis-latin-600-normal.woff +0 -0
- package/files/dosis-latin-600-normal.woff2 +0 -0
- package/files/dosis-latin-700-normal.woff +0 -0
- package/files/dosis-latin-700-normal.woff2 +0 -0
- package/files/dosis-latin-800-normal.woff +0 -0
- package/files/dosis-latin-800-normal.woff2 +0 -0
- package/files/dosis-latin-ext-200-normal.woff +0 -0
- package/files/dosis-latin-ext-200-normal.woff2 +0 -0
- package/files/dosis-latin-ext-300-normal.woff +0 -0
- package/files/dosis-latin-ext-300-normal.woff2 +0 -0
- package/files/dosis-latin-ext-400-normal.woff +0 -0
- package/files/dosis-latin-ext-400-normal.woff2 +0 -0
- package/files/dosis-latin-ext-500-normal.woff +0 -0
- package/files/dosis-latin-ext-500-normal.woff2 +0 -0
- package/files/dosis-latin-ext-600-normal.woff +0 -0
- package/files/dosis-latin-ext-600-normal.woff2 +0 -0
- package/files/dosis-latin-ext-700-normal.woff +0 -0
- package/files/dosis-latin-ext-700-normal.woff2 +0 -0
- package/files/dosis-latin-ext-800-normal.woff +0 -0
- package/files/dosis-latin-ext-800-normal.woff2 +0 -0
- package/files/dosis-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/files/dosis-latin-variable-wghtOnly-normal.woff2 +0 -0
- package/files/dosis-vietnamese-200-normal.woff +0 -0
- package/files/dosis-vietnamese-200-normal.woff2 +0 -0
- package/files/dosis-vietnamese-300-normal.woff +0 -0
- package/files/dosis-vietnamese-300-normal.woff2 +0 -0
- package/files/dosis-vietnamese-400-normal.woff +0 -0
- package/files/dosis-vietnamese-400-normal.woff2 +0 -0
- package/files/dosis-vietnamese-500-normal.woff +0 -0
- package/files/dosis-vietnamese-500-normal.woff2 +0 -0
- package/files/dosis-vietnamese-600-normal.woff +0 -0
- package/files/dosis-vietnamese-600-normal.woff2 +0 -0
- package/files/dosis-vietnamese-700-normal.woff +0 -0
- package/files/dosis-vietnamese-700-normal.woff2 +0 -0
- package/files/dosis-vietnamese-800-normal.woff +0 -0
- package/files/dosis-vietnamese-800-normal.woff2 +0 -0
- package/files/dosis-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
- package/files/nunito-all-200-italic.woff +0 -0
- package/files/nunito-all-200-normal.woff +0 -0
- package/files/nunito-all-300-italic.woff +0 -0
- package/files/nunito-all-300-normal.woff +0 -0
- package/files/nunito-all-400-italic.woff +0 -0
- package/files/nunito-all-400-normal.woff +0 -0
- package/files/nunito-all-500-italic.woff +0 -0
- package/files/nunito-all-500-normal.woff +0 -0
- package/files/nunito-all-600-italic.woff +0 -0
- package/files/nunito-all-600-normal.woff +0 -0
- package/files/nunito-all-700-italic.woff +0 -0
- package/files/nunito-all-700-normal.woff +0 -0
- package/files/nunito-all-800-italic.woff +0 -0
- package/files/nunito-all-800-normal.woff +0 -0
- package/files/nunito-all-900-italic.woff +0 -0
- package/files/nunito-all-900-normal.woff +0 -0
- package/files/nunito-cyrillic-200-italic.woff +0 -0
- package/files/nunito-cyrillic-200-italic.woff2 +0 -0
- package/files/nunito-cyrillic-200-normal.woff +0 -0
- package/files/nunito-cyrillic-200-normal.woff2 +0 -0
- package/files/nunito-cyrillic-300-italic.woff +0 -0
- package/files/nunito-cyrillic-300-italic.woff2 +0 -0
- package/files/nunito-cyrillic-300-normal.woff +0 -0
- package/files/nunito-cyrillic-300-normal.woff2 +0 -0
- package/files/nunito-cyrillic-400-italic.woff +0 -0
- package/files/nunito-cyrillic-400-italic.woff2 +0 -0
- package/files/nunito-cyrillic-400-normal.woff +0 -0
- package/files/nunito-cyrillic-400-normal.woff2 +0 -0
- package/files/nunito-cyrillic-500-italic.woff +0 -0
- package/files/nunito-cyrillic-500-italic.woff2 +0 -0
- package/files/nunito-cyrillic-500-normal.woff +0 -0
- package/files/nunito-cyrillic-500-normal.woff2 +0 -0
- package/files/nunito-cyrillic-600-italic.woff +0 -0
- package/files/nunito-cyrillic-600-italic.woff2 +0 -0
- package/files/nunito-cyrillic-600-normal.woff +0 -0
- package/files/nunito-cyrillic-600-normal.woff2 +0 -0
- package/files/nunito-cyrillic-700-italic.woff +0 -0
- package/files/nunito-cyrillic-700-italic.woff2 +0 -0
- package/files/nunito-cyrillic-700-normal.woff +0 -0
- package/files/nunito-cyrillic-700-normal.woff2 +0 -0
- package/files/nunito-cyrillic-800-italic.woff +0 -0
- package/files/nunito-cyrillic-800-italic.woff2 +0 -0
- package/files/nunito-cyrillic-800-normal.woff +0 -0
- package/files/nunito-cyrillic-800-normal.woff2 +0 -0
- package/files/nunito-cyrillic-900-italic.woff +0 -0
- package/files/nunito-cyrillic-900-italic.woff2 +0 -0
- package/files/nunito-cyrillic-900-normal.woff +0 -0
- package/files/nunito-cyrillic-900-normal.woff2 +0 -0
- package/files/nunito-cyrillic-ext-200-italic.woff +0 -0
- package/files/nunito-cyrillic-ext-200-italic.woff2 +0 -0
- package/files/nunito-cyrillic-ext-200-normal.woff +0 -0
- package/files/nunito-cyrillic-ext-200-normal.woff2 +0 -0
- package/files/nunito-cyrillic-ext-300-italic.woff +0 -0
- package/files/nunito-cyrillic-ext-300-italic.woff2 +0 -0
- package/files/nunito-cyrillic-ext-300-normal.woff +0 -0
- package/files/nunito-cyrillic-ext-300-normal.woff2 +0 -0
- package/files/nunito-cyrillic-ext-400-italic.woff +0 -0
- package/files/nunito-cyrillic-ext-400-italic.woff2 +0 -0
- package/files/nunito-cyrillic-ext-400-normal.woff +0 -0
- package/files/nunito-cyrillic-ext-400-normal.woff2 +0 -0
- package/files/nunito-cyrillic-ext-500-italic.woff +0 -0
- package/files/nunito-cyrillic-ext-500-italic.woff2 +0 -0
- package/files/nunito-cyrillic-ext-500-normal.woff +0 -0
- package/files/nunito-cyrillic-ext-500-normal.woff2 +0 -0
- package/files/nunito-cyrillic-ext-600-italic.woff +0 -0
- package/files/nunito-cyrillic-ext-600-italic.woff2 +0 -0
- package/files/nunito-cyrillic-ext-600-normal.woff +0 -0
- package/files/nunito-cyrillic-ext-600-normal.woff2 +0 -0
- package/files/nunito-cyrillic-ext-700-italic.woff +0 -0
- package/files/nunito-cyrillic-ext-700-italic.woff2 +0 -0
- package/files/nunito-cyrillic-ext-700-normal.woff +0 -0
- package/files/nunito-cyrillic-ext-700-normal.woff2 +0 -0
- package/files/nunito-cyrillic-ext-800-italic.woff +0 -0
- package/files/nunito-cyrillic-ext-800-italic.woff2 +0 -0
- package/files/nunito-cyrillic-ext-800-normal.woff +0 -0
- package/files/nunito-cyrillic-ext-800-normal.woff2 +0 -0
- package/files/nunito-cyrillic-ext-900-italic.woff +0 -0
- package/files/nunito-cyrillic-ext-900-italic.woff2 +0 -0
- package/files/nunito-cyrillic-ext-900-normal.woff +0 -0
- package/files/nunito-cyrillic-ext-900-normal.woff2 +0 -0
- package/files/nunito-cyrillic-ext-variable-wghtOnly-italic.woff2 +0 -0
- package/files/nunito-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/files/nunito-cyrillic-variable-wghtOnly-italic.woff2 +0 -0
- package/files/nunito-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
- package/files/nunito-latin-200-italic.woff +0 -0
- package/files/nunito-latin-200-italic.woff2 +0 -0
- package/files/nunito-latin-200-normal.woff +0 -0
- package/files/nunito-latin-200-normal.woff2 +0 -0
- package/files/nunito-latin-300-italic.woff +0 -0
- package/files/nunito-latin-300-italic.woff2 +0 -0
- package/files/nunito-latin-300-normal.woff +0 -0
- package/files/nunito-latin-300-normal.woff2 +0 -0
- package/files/nunito-latin-400-italic.woff +0 -0
- package/files/nunito-latin-400-italic.woff2 +0 -0
- package/files/nunito-latin-400-normal.woff +0 -0
- package/files/nunito-latin-400-normal.woff2 +0 -0
- package/files/nunito-latin-500-italic.woff +0 -0
- package/files/nunito-latin-500-italic.woff2 +0 -0
- package/files/nunito-latin-500-normal.woff +0 -0
- package/files/nunito-latin-500-normal.woff2 +0 -0
- package/files/nunito-latin-600-italic.woff +0 -0
- package/files/nunito-latin-600-italic.woff2 +0 -0
- package/files/nunito-latin-600-normal.woff +0 -0
- package/files/nunito-latin-600-normal.woff2 +0 -0
- package/files/nunito-latin-700-italic.woff +0 -0
- package/files/nunito-latin-700-italic.woff2 +0 -0
- package/files/nunito-latin-700-normal.woff +0 -0
- package/files/nunito-latin-700-normal.woff2 +0 -0
- package/files/nunito-latin-800-italic.woff +0 -0
- package/files/nunito-latin-800-italic.woff2 +0 -0
- package/files/nunito-latin-800-normal.woff +0 -0
- package/files/nunito-latin-800-normal.woff2 +0 -0
- package/files/nunito-latin-900-italic.woff +0 -0
- package/files/nunito-latin-900-italic.woff2 +0 -0
- package/files/nunito-latin-900-normal.woff +0 -0
- package/files/nunito-latin-900-normal.woff2 +0 -0
- package/files/nunito-latin-ext-200-italic.woff +0 -0
- package/files/nunito-latin-ext-200-italic.woff2 +0 -0
- package/files/nunito-latin-ext-200-normal.woff +0 -0
- package/files/nunito-latin-ext-200-normal.woff2 +0 -0
- package/files/nunito-latin-ext-300-italic.woff +0 -0
- package/files/nunito-latin-ext-300-italic.woff2 +0 -0
- package/files/nunito-latin-ext-300-normal.woff +0 -0
- package/files/nunito-latin-ext-300-normal.woff2 +0 -0
- package/files/nunito-latin-ext-400-italic.woff +0 -0
- package/files/nunito-latin-ext-400-italic.woff2 +0 -0
- package/files/nunito-latin-ext-400-normal.woff +0 -0
- package/files/nunito-latin-ext-400-normal.woff2 +0 -0
- package/files/nunito-latin-ext-500-italic.woff +0 -0
- package/files/nunito-latin-ext-500-italic.woff2 +0 -0
- package/files/nunito-latin-ext-500-normal.woff +0 -0
- package/files/nunito-latin-ext-500-normal.woff2 +0 -0
- package/files/nunito-latin-ext-600-italic.woff +0 -0
- package/files/nunito-latin-ext-600-italic.woff2 +0 -0
- package/files/nunito-latin-ext-600-normal.woff +0 -0
- package/files/nunito-latin-ext-600-normal.woff2 +0 -0
- package/files/nunito-latin-ext-700-italic.woff +0 -0
- package/files/nunito-latin-ext-700-italic.woff2 +0 -0
- package/files/nunito-latin-ext-700-normal.woff +0 -0
- package/files/nunito-latin-ext-700-normal.woff2 +0 -0
- package/files/nunito-latin-ext-800-italic.woff +0 -0
- package/files/nunito-latin-ext-800-italic.woff2 +0 -0
- package/files/nunito-latin-ext-800-normal.woff +0 -0
- package/files/nunito-latin-ext-800-normal.woff2 +0 -0
- package/files/nunito-latin-ext-900-italic.woff +0 -0
- package/files/nunito-latin-ext-900-italic.woff2 +0 -0
- package/files/nunito-latin-ext-900-normal.woff +0 -0
- package/files/nunito-latin-ext-900-normal.woff2 +0 -0
- package/files/nunito-latin-ext-variable-wghtOnly-italic.woff2 +0 -0
- package/files/nunito-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/files/nunito-latin-variable-wghtOnly-italic.woff2 +0 -0
- package/files/nunito-latin-variable-wghtOnly-normal.woff2 +0 -0
- package/files/nunito-vietnamese-200-italic.woff +0 -0
- package/files/nunito-vietnamese-200-italic.woff2 +0 -0
- package/files/nunito-vietnamese-200-normal.woff +0 -0
- package/files/nunito-vietnamese-200-normal.woff2 +0 -0
- package/files/nunito-vietnamese-300-italic.woff +0 -0
- package/files/nunito-vietnamese-300-italic.woff2 +0 -0
- package/files/nunito-vietnamese-300-normal.woff +0 -0
- package/files/nunito-vietnamese-300-normal.woff2 +0 -0
- package/files/nunito-vietnamese-400-italic.woff +0 -0
- package/files/nunito-vietnamese-400-italic.woff2 +0 -0
- package/files/nunito-vietnamese-400-normal.woff +0 -0
- package/files/nunito-vietnamese-400-normal.woff2 +0 -0
- package/files/nunito-vietnamese-500-italic.woff +0 -0
- package/files/nunito-vietnamese-500-italic.woff2 +0 -0
- package/files/nunito-vietnamese-500-normal.woff +0 -0
- package/files/nunito-vietnamese-500-normal.woff2 +0 -0
- package/files/nunito-vietnamese-600-italic.woff +0 -0
- package/files/nunito-vietnamese-600-italic.woff2 +0 -0
- package/files/nunito-vietnamese-600-normal.woff +0 -0
- package/files/nunito-vietnamese-600-normal.woff2 +0 -0
- package/files/nunito-vietnamese-700-italic.woff +0 -0
- package/files/nunito-vietnamese-700-italic.woff2 +0 -0
- package/files/nunito-vietnamese-700-normal.woff +0 -0
- package/files/nunito-vietnamese-700-normal.woff2 +0 -0
- package/files/nunito-vietnamese-800-italic.woff +0 -0
- package/files/nunito-vietnamese-800-italic.woff2 +0 -0
- package/files/nunito-vietnamese-800-normal.woff +0 -0
- package/files/nunito-vietnamese-800-normal.woff2 +0 -0
- package/files/nunito-vietnamese-900-italic.woff +0 -0
- package/files/nunito-vietnamese-900-italic.woff2 +0 -0
- package/files/nunito-vietnamese-900-normal.woff +0 -0
- package/files/nunito-vietnamese-900-normal.woff2 +0 -0
- package/files/nunito-vietnamese-variable-wghtOnly-italic.woff2 +0 -0
- package/files/nunito-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
- package/index.d.ts +1 -0
- package/index.esm.css +1537 -203
- package/index.esm.css.gz +0 -0
- package/index.esm.js +1 -1
- package/index.esm.js.gz +0 -0
- package/index.esm.min.css +1820 -0
- package/index.esm.min.css.gz +0 -0
- package/index.html +1 -2
- package/js-core.esm.js +637 -65
- package/js-core.esm.js.gz +0 -0
- package/js-core.esm10.js +1 -1
- package/js-core.esm10.js.gz +0 -0
- package/js-core.esm11.js +80 -1
- package/js-core.esm11.js.gz +0 -0
- package/js-core.esm12.js +1 -1
- package/js-core.esm12.js.gz +0 -0
- package/js-core.esm13.js +596 -1
- package/js-core.esm13.js.gz +0 -0
- package/js-core.esm14.js +1 -1
- package/js-core.esm14.js.gz +0 -0
- package/js-core.esm15.js +1 -22
- package/js-core.esm15.js.gz +0 -0
- package/js-core.esm16.js +1 -1
- package/js-core.esm16.js.gz +0 -0
- package/js-core.esm17.js +1 -595
- package/js-core.esm17.js.gz +0 -0
- package/js-core.esm18.js +1 -1
- package/js-core.esm18.js.gz +0 -0
- package/js-core.esm19.js +1 -1
- package/js-core.esm19.js.gz +0 -0
- package/js-core.esm2.js +1 -1
- package/js-core.esm2.js.gz +0 -0
- package/js-core.esm20.js +240 -1
- package/js-core.esm20.js.gz +0 -0
- package/js-core.esm21.js +20 -1
- package/js-core.esm21.js.gz +0 -0
- package/js-core.esm22.js +1 -1
- package/js-core.esm22.js.gz +0 -0
- package/js-core.esm23.js +1 -1
- package/js-core.esm23.js.gz +0 -0
- package/js-core.esm24.js +1 -1
- package/js-core.esm24.js.gz +0 -0
- package/js-core.esm25.js +1 -1
- package/js-core.esm25.js.gz +0 -0
- package/js-core.esm26.js +1 -1
- package/js-core.esm26.js.gz +0 -0
- package/js-core.esm27.js +1 -230
- package/js-core.esm27.js.gz +0 -0
- package/js-core.esm28.js +1 -60
- package/js-core.esm28.js.gz +0 -0
- package/js-core.esm29.js +2 -1
- package/js-core.esm29.js.gz +0 -0
- package/js-core.esm3.js +1 -1
- package/js-core.esm3.js.gz +0 -0
- package/js-core.esm30.js +1 -1
- package/js-core.esm30.js.gz +0 -0
- package/js-core.esm31.js +135 -1
- package/js-core.esm31.js.gz +0 -0
- package/js-core.esm32.js +214 -1
- package/js-core.esm32.js.gz +0 -0
- package/js-core.esm33.js +39 -1
- package/js-core.esm33.js.gz +0 -0
- package/js-core.esm34.js +1 -14
- package/js-core.esm34.js.gz +0 -0
- package/js-core.esm35.js +1 -12
- package/js-core.esm35.js.gz +0 -0
- package/js-core.esm36.js +37 -54
- package/js-core.esm36.js.gz +0 -0
- package/js-core.esm37.js +1 -1
- package/js-core.esm37.js.gz +0 -0
- package/js-core.esm38.js +1 -88
- package/js-core.esm38.js.gz +0 -0
- package/js-core.esm39.js +1 -226
- package/js-core.esm39.js.gz +0 -0
- package/js-core.esm4.js +13 -1
- package/js-core.esm4.js.gz +0 -0
- package/js-core.esm40.js +31 -35
- package/js-core.esm40.js.gz +0 -0
- package/js-core.esm41.js +1 -1
- package/js-core.esm41.js.gz +0 -0
- package/js-core.esm42.js +29 -1
- package/js-core.esm42.js.gz +0 -0
- package/js-core.esm43.js +98 -1
- package/js-core.esm43.js.gz +0 -0
- package/js-core.esm44.js +64 -1
- package/js-core.esm44.js.gz +0 -0
- package/js-core.esm45.js +13 -29
- package/js-core.esm45.js.gz +0 -0
- package/js-core.esm46.js +1 -1
- package/js-core.esm46.js.gz +0 -0
- package/js-core.esm47.js +1 -1
- package/js-core.esm47.js.gz +0 -0
- package/js-core.esm48.js +54 -1
- package/js-core.esm48.js.gz +0 -0
- package/js-core.esm49.js +111 -0
- package/js-core.esm49.js.gz +0 -0
- package/js-core.esm5.js +1 -1
- package/js-core.esm5.js.gz +0 -0
- package/js-core.esm50.js +164 -0
- package/js-core.esm50.js.gz +0 -0
- package/js-core.esm51.js +75 -0
- package/js-core.esm51.js.gz +0 -0
- package/js-core.esm52.js +15 -0
- package/js-core.esm52.js.gz +0 -0
- package/js-core.esm53.js +1 -0
- package/js-core.esm53.js.gz +0 -0
- package/js-core.esm54.js +93 -0
- package/js-core.esm54.js.gz +0 -0
- package/js-core.esm55.js +64 -0
- package/js-core.esm55.js.gz +0 -0
- package/js-core.esm56.js +35 -0
- package/js-core.esm56.js.gz +0 -0
- package/js-core.esm57.js +1 -0
- package/js-core.esm57.js.gz +0 -0
- package/js-core.esm58.js +14 -0
- package/js-core.esm58.js.gz +0 -0
- package/js-core.esm59.js +1 -0
- package/js-core.esm59.js.gz +0 -0
- package/js-core.esm6.js +1 -20
- package/js-core.esm6.js.gz +0 -0
- package/js-core.esm60.js +1 -0
- package/js-core.esm60.js.gz +0 -0
- package/js-core.esm61.js +132 -0
- package/js-core.esm61.js.gz +0 -0
- package/js-core.esm62.js +349 -0
- package/js-core.esm62.js.gz +0 -0
- package/js-core.esm63.js +38 -0
- package/js-core.esm63.js.gz +0 -0
- package/js-core.esm64.js +1 -0
- package/js-core.esm64.js.gz +0 -0
- package/js-core.esm65.js +1 -0
- package/js-core.esm65.js.gz +0 -0
- package/js-core.esm66.js +20 -0
- package/js-core.esm66.js.gz +0 -0
- package/js-core.esm67.js +16 -0
- package/js-core.esm67.js.gz +0 -0
- package/js-core.esm68.js +1 -0
- package/js-core.esm68.js.gz +0 -0
- package/js-core.esm69.js +1 -0
- package/js-core.esm69.js.gz +0 -0
- package/js-core.esm7.js +1 -136
- package/js-core.esm7.js.gz +0 -0
- package/js-core.esm70.js +1 -0
- package/js-core.esm70.js.gz +0 -0
- package/js-core.esm71.js +1 -0
- package/js-core.esm71.js.gz +0 -0
- package/js-core.esm72.js +1 -0
- package/js-core.esm72.js.gz +0 -0
- package/js-core.esm73.js +1 -0
- package/js-core.esm73.js.gz +0 -0
- package/js-core.esm74.js +1 -0
- package/js-core.esm74.js.gz +0 -0
- package/js-core.esm75.js +1 -0
- package/js-core.esm75.js.gz +0 -0
- package/js-core.esm76.js +1 -0
- package/js-core.esm76.js.gz +0 -0
- package/js-core.esm77.js +1 -0
- package/js-core.esm77.js.gz +0 -0
- package/js-core.esm78.js +1 -0
- package/js-core.esm78.js.gz +0 -0
- package/js-core.esm79.js +1 -0
- package/js-core.esm79.js.gz +0 -0
- package/js-core.esm8.js +1 -1
- package/js-core.esm8.js.gz +0 -0
- package/js-core.esm80.js +1 -0
- package/js-core.esm80.js.gz +0 -0
- package/js-core.esm81.js +1 -0
- package/js-core.esm81.js.gz +0 -0
- package/js-core.esm82.js +1 -0
- package/js-core.esm82.js.gz +0 -0
- package/js-core.esm83.js +1 -0
- package/js-core.esm83.js.gz +0 -0
- package/js-core.esm84.js +1 -0
- package/js-core.esm84.js.gz +0 -0
- package/js-core.esm85.js +1 -0
- package/js-core.esm85.js.gz +0 -0
- package/js-core.esm86.js +1 -0
- package/js-core.esm86.js.gz +0 -0
- package/js-core.esm87.js +1 -0
- package/js-core.esm87.js.gz +0 -0
- package/js-core.esm88.js +1 -0
- package/js-core.esm88.js.gz +0 -0
- package/js-core.esm89.js +1 -0
- package/js-core.esm89.js.gz +0 -0
- package/js-core.esm9.js +1 -1
- package/js-core.esm9.js.gz +0 -0
- package/js-core.esm90.js +1 -0
- package/js-core.esm90.js.gz +0 -0
- package/js-core.esm91.js +1 -0
- package/js-core.esm91.js.gz +0 -0
- package/js-core.umd.css +1545 -211
- package/js-core.umd.css.gz +0 -0
- package/js-core.umd.js +2124 -278
- package/js-core.umd.js.gz +0 -0
- package/js-core.umd.min.css +1377 -105
- package/js-core.umd.min.css.gz +0 -0
- package/lib/js.d.ts +6 -48
- package/locales/en.json +1 -1
- package/locales/es.json +1 -1
- package/locales/fr.json +1 -1
- package/package.json +76 -31
- package/files/dosis-latin-200.woff +0 -0
- package/files/dosis-latin-200.woff2 +0 -0
- package/files/dosis-latin-300.woff +0 -0
- package/files/dosis-latin-300.woff2 +0 -0
- package/files/dosis-latin-500.woff +0 -0
- package/files/dosis-latin-500.woff2 +0 -0
- package/files/dosis-latin-600.woff +0 -0
- package/files/dosis-latin-600.woff2 +0 -0
- package/files/dosis-latin-700.woff +0 -0
- package/files/dosis-latin-700.woff2 +0 -0
- package/files/dosis-latin-800.woff +0 -0
- package/files/dosis-latin-800.woff2 +0 -0
- package/files/nunito-latin-200.woff +0 -0
- package/files/nunito-latin-200.woff2 +0 -0
- package/files/nunito-latin-200italic.woff +0 -0
- package/files/nunito-latin-200italic.woff2 +0 -0
- package/files/nunito-latin-300.woff +0 -0
- package/files/nunito-latin-300.woff2 +0 -0
- package/files/nunito-latin-300italic.woff +0 -0
- package/files/nunito-latin-300italic.woff2 +0 -0
- package/files/nunito-latin-400.woff2 +0 -0
- package/files/nunito-latin-400italic.woff +0 -0
- package/files/nunito-latin-400italic.woff2 +0 -0
- package/files/nunito-latin-600.woff +0 -0
- package/files/nunito-latin-600.woff2 +0 -0
- package/files/nunito-latin-600italic.woff +0 -0
- package/files/nunito-latin-600italic.woff2 +0 -0
- package/files/nunito-latin-700.woff +0 -0
- package/files/nunito-latin-700.woff2 +0 -0
- package/files/nunito-latin-700italic.woff +0 -0
- package/files/nunito-latin-700italic.woff2 +0 -0
- package/files/nunito-latin-800.woff +0 -0
- package/files/nunito-latin-800.woff2 +0 -0
- package/files/nunito-latin-800italic.woff +0 -0
- package/files/nunito-latin-800italic.woff2 +0 -0
- package/files/nunito-latin-900.woff +0 -0
- package/files/nunito-latin-900.woff2 +0 -0
- package/files/nunito-latin-900italic.woff +0 -0
- package/files/nunito-latin-900italic.woff2 +0 -0
- package/lib/ApplicationDialog.d.ts +0 -2
- package/lib/components/SupportCenterPixel.d.ts +0 -2
- package/lib/data.redux.d.ts +0 -2
- package/lib/registry.d.ts +0 -13
- package/lib/snackbar.d.ts +0 -14
- package/lib/validateConfig.d.ts +0 -2
- package/lib/widgetHandler.d.ts +0 -17
|
Binary file
|
package/js-core.esm21.js
CHANGED
|
@@ -1 +1,20 @@
|
|
|
1
|
-
import{g as generateUtilityClass,a as generateUtilityClasses,b as styled,_ as _extends,r as react,u as useThemeProps,e as _objectWithoutPropertiesLoose,j as jsxRuntime,f as clsx,h as composeClasses}from"./js-core.esm.js";function getCardActionsUtilityClass(s){return generateUtilityClass("MuiCardActions",s)}generateUtilityClasses("MuiCardActions",["root","spacing"]);const _excluded=["disableSpacing","className"],useUtilityClasses=s=>{var{classes:s,disableSpacing:e}=s;return composeClasses({root:["root",!e&&"spacing"]},getCardActionsUtilityClass,s)},CardActionsRoot=styled("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(s,e)=>{s=s.ownerState;return[e.root,!s.disableSpacing&&e.spacing]}})(({ownerState:s})=>_extends({display:"flex",alignItems:"center",padding:8},!s.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),CardActions=react.exports.forwardRef(function(s,e){var s=useThemeProps({props:s,name:"MuiCardActions"}),{disableSpacing:t=!1,className:a}=s,i=_objectWithoutPropertiesLoose(s,_excluded),s=_extends({},s,{disableSpacing:t}),t=useUtilityClasses(s);return jsxRuntime.exports.jsx(CardActionsRoot,_extends({className:clsx(t.root,a),ownerState:s,ref:e},i))});var CardActions$1=CardActions;export{CardActions$1 as C};
|
|
1
|
+
import{ds as useTheme,dt as getThemeProps,r as react,du as useEnhancedEffect,dv as React,dw as _arrayPush,dx as isArray_1,dy as _castPath,dz as _isIndex,dA as isObject_1,dB as _toKey,dC as _baseIteratee,dD as _baseToString,dE as _baseTrim,dF as _castSlice,dG as _stringToArray,dH as toString_1,cL as _createCompounder,dI as upperFirst_1,dJ as _arrayMap,cv as keys_1,dK as isArrayLike_1,dL as isString_1,dM as toInteger_1,i as createSvgIcon,k as interopRequireDefault,j as jsxRuntime,cu as map_1,dN as _baseGet,dO as _baseSlice,l as createSlice,ct as get_1,cQ as combineReducers,cR as createSelector,aF as rootApiSelector,aH as graphEndpointSelector,aG as sessionTokenSelector,cS as fork,dP as channel,m as makeStyles,dQ as useFormContext,dR as useIntl,cB as Controller,Z as TextField,cp as isNil_1,O as FormControl,$ as Select,cC as FormHelperText$2,cI as has_1,b8 as FormControlLabel,b9 as Checkbox,cw as RadioGroup,T as Typography,F as FormattedMessage,ch as AIWareCacheProvider,cU as AIWareThemeProvider,D as DynamicModuleLoader,A as AIWareIntlProvider,B as Box,bb as Grid,cl as isEmpty_1,dS as useFieldArray,dT as VideoCamera,dU as Image,dV as Sound,dW as Description,o as useDispatch,p as useSelector,w as lodash,E as Button,bV as InputUnstyled,d0 as ReactMarkdown,dp as baseGraphQLApiWithError,aD as preferredLanguageSelector,cA as default_1$1,cr as UpDown,cs as Icon,bm as CircularProgress,dX as toNumber_1,cq as useForm,dY as FormProvider,aY as Tooltip,W as IconButton,cY as Close,d2 as unmountPanel,b0 as takeLatest$1,a9 as all,ae as showMessage,af as MessageSeverity,dk as Add,dZ as ProgressStepper,cJ as Radio,d_ as size_1,d$ as findIndex_1,K as classNames,b as styled,at as Popper,ab as select,ac as call,ad as put,dc as mountPanel,e0 as take,z as devErrorLogger,a1 as MenuItem,bP as AIWareFormatMessage,a2 as Divider,e1 as CurlyBraces,e2 as UnknownDocument,bS as useTheme$1,e3 as VariableSizeList,e4 as sdkEventManager,e5 as SdkEvents,e6 as SdkError,bF as default_1$6,e7 as distributionTypes,ca as Bookmark,e8 as EngineClassIcons,e9 as Mode2,ea as EngineModeIcons,eb as DeploymentModelIcons,ec as markdown,dg as img$1E,dn as Collapse,av as ListSubheader,ed as guid,cm as find_1,c6 as React5}from"./js-core.esm.js";import{_ as _baseFlatten,f as filter_1}from"./js-core.esm26.js";import{_ as _copyArray,a as _assignValue,b as _createAssigner,c as _baseMerge,d as _baseRest,i as isArrayLikeObject_1,l as last_1,e as _baseOrderBy,f as default_1$3,s as sortBy_1}from"./js-core.esm27.js";import{_ as _baseUniq,a as _baseIndexOf}from"./js-core.esm28.js";import{d as default_1$2}from"./js-core.esm14.js";import{k as kebabCase_1}from"./js-core.esm17.js";import{EntityTags,ListField}from"./js-core.esm22.js";import{d as default_1$4,a as default_1$5}from"./js-core.esm23.js";import{B as Box$2}from"./js-core.esm8.js";import{a as autocompleteClasses,A as Autocomplete}from"./js-core.esm10.js";function useMediaQueryOld(n,e,i,t,s){const[a,o]=react.exports.useState(()=>s&&i?i(n).matches:t?t(n).matches:e);return useEnhancedEffect(()=>{let e=!0;if(i){const t=i(n),s=()=>{e&&o(t.matches)};return s(),t.addListener(s),()=>{e=!1,t.removeListener(s)}}},[n,i]),a}const maybeReactUseSyncExternalStore=React.useSyncExternalStore;function useMediaQueryNew(s,e,n,t,i){const a=react.exports.useCallback(()=>e,[e]);var o=react.exports.useMemo(()=>{if(i&&n)return()=>n(s).matches;if(null===t)return a;{const e=t(s)["matches"];return()=>e}},[a,s,t,i,n]),[r,l]=react.exports.useMemo(()=>{if(null===n)return[a,()=>()=>{}];const t=n(s);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]},[a,n,s]);return maybeReactUseSyncExternalStore(l,r,o)}function useMediaQuery(e,t={}){var s=useTheme(),n="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:t=!1,matchMedia:n=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:a=!1}=getThemeProps({name:"MuiUseMediaQuery",props:t,theme:s});let o="function"==typeof e?e(s):e;return o=o.replace(/^@media( ?)/m,""),(void 0!==maybeReactUseSyncExternalStore?useMediaQueryNew:useMediaQueryOld)(o,t,n,i,a)}var arrayPush=_arrayPush,baseFlatten$2=_baseFlatten,copyArray=_copyArray,isArray$1=isArray_1;function concat(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),s=arguments[0],n=e;n--;)t[n-1]=arguments[n];return arrayPush(isArray$1(s)?copyArray(s):[s],baseFlatten$2(t,1))}var concat_1=concat,assignValue=_assignValue,castPath$1=_castPath,isIndex$1=_isIndex,isObject=isObject_1,toKey$1=_toKey;function baseSet$1(e,t,s,n){if(isObject(e))for(var i=-1,a=(t=castPath$1(t,e)).length,o=a-1,r=e;null!=r&&++i<a;){var l,d=toKey$1(t[i]),c=s;if("__proto__"===d||"constructor"===d||"prototype"===d)return e;i!=o&&(l=r[d],void 0===(c=n?n(l,d,r):void 0))&&(c=isObject(l)?l:isIndex$1(t[i+1])?[]:{}),assignValue(r,d,c),r=r[d]}return e}var _baseSet=baseSet$1,baseSet=baseSet$1;function set(e,t,s){return null==e?e:baseSet(e,t,s)}var set_1=set,baseMerge=_baseMerge,createAssigner=_createAssigner,merge=_createAssigner(function(e,t,s){baseMerge(e,t,s)}),merge_1=merge,baseFlatten$1=_baseFlatten,baseIteratee$1=_baseIteratee,baseRest=_baseRest,baseUniq=_baseUniq,isArrayLikeObject=isArrayLikeObject_1,last$1=last_1,unionBy=_baseRest(function(e){var t=last$1(e);return isArrayLikeObject(t)&&(t=void 0),baseUniq(baseFlatten$1(e,1,isArrayLikeObject,!0),baseIteratee$1(t))}),unionBy_1=unionBy,baseIndexOf$2=_baseIndexOf;function charsEndIndex$1(e,t){for(var s=e.length;s--&&-1<baseIndexOf$2(t,e[s],0););return s}var _charsEndIndex=charsEndIndex$1,baseIndexOf$1=_baseIndexOf;function charsStartIndex$1(e,t){for(var s=-1,n=e.length;++s<n&&-1<baseIndexOf$1(t,e[s],0););return s}var _charsStartIndex=charsStartIndex$1,baseToString=_baseToString,baseTrim=_baseTrim,castSlice=_castSlice,charsEndIndex=charsEndIndex$1,charsStartIndex=charsStartIndex$1,stringToArray=_stringToArray,toString$2=toString_1;function trim(e,t,s){var n;return(e=toString$2(e))&&(s||void 0===t)?baseTrim(e):e&&(t=baseToString(t))?(s=stringToArray(e),t=stringToArray(t),n=charsStartIndex(s,t),t=charsEndIndex(s,t)+1,castSlice(s,n,t).join("")):e}var trim_1=trim,createCompounder$1=_createCompounder,lowerCase=_createCompounder(function(e,t,s){return e+(s?" ":"")+t.toLowerCase()}),lowerCase_1=lowerCase,baseOrderBy=_baseOrderBy,isArray=isArray_1;function orderBy(e,t,s,n){return null==e?[]:(isArray(t)||(t=null==t?[]:[t]),isArray(s=n?void 0:s)||(s=null==s?[]:[s]),baseOrderBy(e,t,s))}var orderBy_1=orderBy,arrayProto$1=Array.prototype,nativeJoin=arrayProto$1.join;function join(e,t){return null==e?"":nativeJoin.call(e,t)}var join_1=join,toString$1=toString_1,upperFirst=upperFirst_1;function capitalize$1(e){return upperFirst(toString$1(e).toLowerCase())}var capitalize_1=capitalize$1,capitalize=capitalize_1,createCompounder=_createCompounder,camelCase=_createCompounder(function(e,t,s){return t=t.toLowerCase(),e+(s?capitalize(t):t)}),camelCase_1=camelCase,arrayMap=_arrayMap;function baseValues$1(t,e){return arrayMap(e,function(e){return t[e]})}var _baseValues=baseValues$1,baseValues=baseValues$1,keys=keys_1;function values$1(e){return null==e?[]:baseValues(e,keys(e))}var values_1=values$1,baseIndexOf=_baseIndexOf,isArrayLike=isArrayLike_1,isString=isString_1,toInteger=toInteger_1,values=values$1,nativeMax=Math.max;function includes(e,t,s,n){e=isArrayLike(e)?e:values(e),s=s&&!n?toInteger(s):0;n=e.length;return s<0&&(s=nativeMax(n+s,0)),isString(e)?s<=n&&-1<e.indexOf(t,s):!!n&&-1<baseIndexOf(e,t,s)}var includes_1=includes,toString=toString_1;function toUpper(e){return toString(e).toUpperCase()}var toUpper_1=toUpper,LibraryAddCheck={},_interopRequireDefault=interopRequireDefault.exports,default_1=(Object.defineProperty(LibraryAddCheck,"__esModule",{value:!0}),LibraryAddCheck.default=void 0),_createSvgIcon=_interopRequireDefault(createSvgIcon),_jsxRuntime=jsxRuntime.exports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7.53 12L9 10.5l1.4-1.41 2.07 2.08L17.6 6 19 7.41 12.47 14zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6z"}),"LibraryAddCheck"),default_1=LibraryAddCheck.default=_default,baseFlatten=_baseFlatten,map=map_1;function flatMap(e,t){return baseFlatten(map(e,t),1)}var flatMap_1=flatMap,baseGet=_baseGet,baseSlice=_baseSlice;function parent$1(e,t){return t.length<2?e:baseGet(e,baseSlice(t,0,-1))}var _parent=parent$1,castPath=_castPath,last=last_1,parent=parent$1,toKey=_toKey;function baseUnset$1(e,t){return t=castPath(t,e),null==(e=parent(e,t))||delete e[toKey(last(t))]}var _baseUnset=baseUnset$1,baseUnset=baseUnset$1,isIndex=_isIndex,arrayProto=Array.prototype,splice=arrayProto.splice;function basePullAt$1(e,t){for(var s=e?t.length:0,n=s-1;s--;){var i,a=t[s];s!=n&&a===i||(isIndex(i=a)?splice.call(e,a,1):baseUnset(e,a))}return e}var _basePullAt=basePullAt$1,baseIteratee=_baseIteratee,basePullAt=basePullAt$1;function remove(e,t){var s=[];if(e&&e.length){var n=-1,i=[],a=e.length;for(t=baseIteratee(t);++n<a;){var o=e[n];t(o,n,e)&&(s.push(o),i.push(n))}basePullAt(e,i)}return s}var SchemaIO,FormStatus,FormValidations,UiInfo,IconImportStatus,DistributionType,MimeType,FileItemTypeNames,EngineDeploymentModel,EngineFieldType,GPUSupported,remove_1=remove;const SLICE_NAME="engineCenterNew",DEFAULT_ACCEPTABLE_FILE_TYPES=(!function(e){e.Input="input",e.Output="output",e.Both="both"}(SchemaIO=SchemaIO||{}),!function(e){e.Pending="pending",e.Loading="loading",e.Submitting="submitting",e.Success="success",e.Error="error"}(FormStatus=FormStatus||{}),!function(e){e.Pending="pending",e.EmptyFieldError="This field should not be empty",e.SpecialCharError="This field cannot contain special characters"}(FormValidations=FormValidations||{}),!function(e){e.PanelClosed="closed",e.PanelOpen="open"}(UiInfo=UiInfo||{}),!function(e){e.Idle="idle",e.Uploading="uploading",e.Uploaded="uploaded",e.Failed="failed",e.Aborted="aborted"}(IconImportStatus=IconImportStatus||{}),!function(e){e.Private="private",e.OrgLocked="org_locked",e.Sharable="sharable",e.Public="public",e.Marketplace="marketplace",e.InstanceLocked="instance_locked"}(DistributionType=DistributionType||{}),!function(e){e.ApplicationJson="application/json",e.ApplicationMsWord="application/msword",e.ApplicationPdf="application/pdf",e.ApplicationRtf="application/rtf",e.ApplicationSmil="application/smil+xml",e.ApplicationTtml="application/ttml+xml",e.ApplicationVeritoneAion="application/vnd.veritone.aion+json",e.ApplicationMsOutlook="application/vnd.ms-outlook",e.ApplicationMsPowerpoint="application/vnd.ms-powerpoint",e.ApplicationDocument="application/vnd.openxmlformats-officedocument.wordprocessingml.document",e.ApplicationSpreadsheet="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",e.ApplicationPresentation="application/vnd.openxmlformats-officedocument.presentationml.presentation",e.ApplicationOasisDoc="application/vnd.oasis.opendocument.text",e.ApplicationOasisSpreadsheet="application/vnd.oasis.opendocument.spreadsheet",e.ApplicationXFlv="application/x-flv",e.ApplicationXml="application/xml",e.ApplicationFormUrlEncoded="application/x-www-form-urlencoded",e.ImageJpeg="image/jpeg",e.ImagePng="image/png",e.ImageTiff="image/tiff",e.ImageGig="image/gif",e.TextPlain="text/plain",e.TextHtml="text/html",e.TextCsv="text/csv",e.TextPlainCharset="text/plain; charset=utf-8",e.AudioAac="audio/aac",e.AudioFlac="audio/flac",e.AudioMidi="audio/midi",e.AudioMp4="audio/mp4",e.AudioMpeg="audio/mpeg",e.AudioWav="audio/wav",e.AudioXWav="audio/x-wav",e.AudioWebm="audio/webm",e.VideoMp4="video/mp4",e.VideoMpeg="video/mpeg",e.VideoOgg="video/ogg",e.VideoQuicktime="video/quicktime",e.VideoWebm="video/webm",e.VideoM4v="video/x-m4v",e.VideoMsWmv="video/x-ms-wmv",e.VideoMsvideo="video/x-msvideo",e.Message="message/rfc822"}(MimeType=MimeType||{}),!function(e){e.Image="image",e.Video="video",e.Audio="audio",e.Text="text"}(FileItemTypeNames=FileItemTypeNames||{}),[{name:"Image",type:FileItemTypeNames.Image,extensions:[MimeType.ImageJpeg,MimeType.ImagePng,MimeType.ImageTiff,MimeType.ImageGig]},{name:"Video",type:FileItemTypeNames.Video,extensions:[MimeType.VideoMp4,MimeType.VideoMpeg,MimeType.VideoOgg,MimeType.VideoQuicktime,MimeType.VideoWebm,MimeType.VideoM4v,MimeType.VideoMsWmv,MimeType.VideoMsvideo]},{name:"Audio",type:FileItemTypeNames.Audio,extensions:[MimeType.AudioAac,MimeType.AudioFlac,MimeType.AudioMidi,MimeType.AudioMp4,MimeType.AudioMpeg,MimeType.AudioWav,MimeType.AudioXWav,MimeType.AudioWebm]},{name:"Documents",type:FileItemTypeNames.Text,extensions:[MimeType.TextPlain,MimeType.TextHtml,MimeType.TextCsv,MimeType.TextPlainCharset,MimeType.ApplicationJson,MimeType.ApplicationMsWord,MimeType.ApplicationPdf,MimeType.ApplicationRtf,MimeType.ApplicationSmil,MimeType.ApplicationTtml,MimeType.ApplicationVeritoneAion,MimeType.ApplicationMsOutlook,MimeType.ApplicationMsPowerpoint,MimeType.ApplicationDocument,MimeType.ApplicationSpreadsheet,MimeType.ApplicationPresentation,MimeType.ApplicationOasisDoc,MimeType.ApplicationOasisSpreadsheet,MimeType.ApplicationXFlv,MimeType.ApplicationXml,MimeType.ApplicationFormUrlEncoded,MimeType.Message]}]);function isEngineDeploymentModel(e){return lodash.exports.includes(EngineDeploymentModel,e)}function fieldIsPicklist(e){return e.type===EngineFieldType.Picklist}function fieldIsMultiPicklist(e){return e.type===EngineFieldType.MultiPicklist}function fielIsPicklisty(e){return e.type===EngineFieldType.Picklist||e.type===EngineFieldType.MultiPicklist}!function(e){e.FullyNetworkIsolated="FullyNetworkIsolated",e.MostlyNetworkIsolated="MostlyNetworkIsolated",e.NonNetworkIsolated="NonNetworkIsolated",e.HumanReview="HumanReview"}(EngineDeploymentModel=EngineDeploymentModel||{}),function(e){e.Number="Number",e.Picklist="Picklist",e.MultiPicklist="MultiPicklist",e.Text="Text",e.SchemaSelection="SchemaSelection"}(EngineFieldType=EngineFieldType||{}),function(e){e.NONE="none",e.AWS_P2="aws_p2",e.AWS_P3="aws_p3"}(GPUSupported=GPUSupported||{});var index=Object.freeze({__proto__:null,SLICE_NAME:SLICE_NAME,get SchemaIO(){return SchemaIO},get FormStatus(){return FormStatus},get FormValidations(){return FormValidations},get UiInfo(){return UiInfo},get IconImportStatus(){return IconImportStatus},get DistributionType(){return DistributionType},get MimeType(){return MimeType},get FileItemTypeNames(){return FileItemTypeNames},DEFAULT_ACCEPTABLE_FILE_TYPES:DEFAULT_ACCEPTABLE_FILE_TYPES,isEngineDeploymentModel:isEngineDeploymentModel,get EngineDeploymentModel(){return EngineDeploymentModel},get EngineFieldType(){return EngineFieldType},get GPUSupported(){return GPUSupported},fieldIsPicklist:fieldIsPicklist,fieldIsMultiPicklist:fieldIsMultiPicklist,fielIsPicklisty:fielIsPicklisty});const namespace$4="uiState",initialState$3={status:"idle"},slice$3=createSlice({name:SLICE_NAME+"/"+namespace$4,initialState:initialState$3,reducers:{}}),actions$4=slice$3.actions;var uiState$1=slice$3.reducer;const namespace$3="engineFormState",initialState$2={engine:{id:"",name:"",description:"",website:"",iconPath:"",gpuSupported:GPUSupported.NONE,cpuResourceMcpu:1024,isPublic:!1,distributionType:DistributionType.Private,class:"",capability:{id:"",name:""},mode:"",deploymentModel:"",inputTypes:[],customFields:[],inputSchemas:[],outputSchemas:[],isTrainable:!1,supportedInputTypes:[],supportedLibraryTypes:[],includedLibraries:[],models:[],markdown:"",standaloneJobTemplatesSupportedInputTypes:[],standaloneJobTemplates:{upload:"",reprocess:""},entityTags:[]},step:[],isLoadingExistingEngineData:!1,isFetchingDataRegistries:!1,isEditForm:!1,isResumeSession:!1,formValidations:FormValidations.Pending,formStatus:FormStatus.Pending,uiInfo:UiInfo.PanelClosed,iconImportStatus:IconImportStatus.Idle,dataRegistries:[]},slice$2=createSlice({name:SLICE_NAME+"/"+namespace$3,initialState:initialState$2,reducers:{createEngineStart(e,t){e.formStatus=FormStatus.Submitting},updateEngineStart(e,t){e.formStatus=FormStatus.Submitting},createEngineSuccess(e,{payload:t}){e.formStatus=FormStatus.Success,set_1(e.engine,"id",t)},createEngineFailed(e,t){e.formStatus=FormStatus.Error},stepper(e,t){e.step=t.payload},updateEngineFormField(e,t){var{field:t,value:s}=t.payload;set_1(e.engine,t,s)},updateCapability(e,t){t=t.payload.payload;e.engine.capability.id=t.split(",")[0],e.engine.capability.name=t.split(",")[1]},addCustomField(e,t){e.engine.customFields=concat_1(e.engine.customFields,t.payload)},updateCustomField(e,t){var{customField:t,index:s}=t.payload;set_1(e,`engine.customFields[${s}]`,t)},removeCustomField(e,t){e.engine.customFields.splice(t.payload,1)},clearCustomFields(e){e.engine.customFields=[]},createNewEngine(e){e.isLoadingExistingEngineData=!1,e.isEditForm=!1},editEngine(e,t){e.isLoadingExistingEngineData=!0,e.isEditForm=!0},setEditEngineExistingData(e,t){e.isLoadingExistingEngineData=!1,merge_1(e.engine,t.payload)},fetchDataRegistries(e){e.isFetchingDataRegistries=!0},fetchDataRegistriesSucceeded(e,t){e.isFetchingDataRegistries=!1;t=t.payload.dataRegistries;set_1(e,"dataRegistries",t)},fetchDataRegistriesFailed(e){e.isFetchingDataRegistries=!1},addSchemas(e,t){var{schemas:t,schemaType:s}=t.payload;e.engine[s+"Schemas"]=unionBy_1(e.engine[s+"Schemas"],t,"id")},updateSchemas(e,t){const{updatedSchemas:s,schemaType:n,dataRegistryId:i}=t.payload;t=get_1(e,`engine.${n}Schemas`),t=filter_1(t,e=>e.dataRegistryId!==i);set_1(e,`engine.${n}Schemas`,[...t,...s])},removeSchema(e,t){var{schemaType:t,index:s}=t.payload;e.engine[t+"Schemas"].splice(s,1)},clearSchemas(e,t){t=t.payload.schemaType;e.engine[t+"Schemas"]=[]},resumeSession(e,{payload:t}){set_1(e,"engine",t),set_1(e,"isResumeSession",!0)},clearSession(e){localStorage.removeItem("engineOnboardingSession"),set_1(e,"engine",initialState$2.engine)}}}),actions$3=slice$2.actions;var engineFormState$1=slice$2.reducer;const namespace$2="iconUploadState",initialState$1={file:null,status:IconImportStatus.Idle},slice$1=createSlice({name:SLICE_NAME+"/"+namespace$2,initialState:initialState$1,reducers:{uploadIconStart(e,{payload:t}){e.file=t.file,e.status=IconImportStatus.Uploading},updateIcon(e,{payload:t}){e.file=Object.assign(Object.assign({},e.file),t)},uploadIconSuccess(e){e.status=IconImportStatus.Uploaded},uploadIconFailed(e,{payload:t}){e.file=null,e.error=t,e.status=IconImportStatus.Failed},deleteLocalIcon(e){e.file=null}}}),actions$2=slice$1.actions;var iconUploadState=slice$1.reducer;const namespace$1="engineClassesState",initialState={status:FormStatus.Pending,engineClasses:{}},slice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState,reducers:{getEngineClassesStart(e,t){e.status=FormStatus.Loading},getEngineClassesSuccess(e,{payload:t}){e.engineClasses=t,e.status=FormStatus.Success},getEngineClassesFailed(e,{payload:t}){e.error=t,e.status=FormStatus.Error}}}),actions$1=slice.actions;var engineClassesState=slice.reducer;const namespace=SLICE_NAME,actions={[namespace$4]:actions$4,[namespace$3]:actions$3,[namespace$2]:actions$2,[namespace$1]:actions$1},rootReducer=combineReducers({[namespace$4]:uiState$1,[namespace$3]:engineFormState$1,[namespace$2]:iconUploadState,[namespace$1]:engineClassesState});function __rest(e,t){var s={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]]);return s}function __awaiter(e,o,r,l){return new(r=r||Promise)(function(s,t){function n(e){try{a(l.next(e))}catch(e){t(e)}}function i(e){try{a(l.throw(e))}catch(e){t(e)}}function a(e){var t;e.done?s(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(n,i)}a((l=l.apply(e,o||[])).next())})}const getClasses=(e,t)=>__awaiter(void 0,void 0,void 0,function*(){return yield baseGraphQLApiWithError(Object.assign({query:`query($type: String) {
|
|
2
|
+
engineCategories(type: $type, limit: 999) {
|
|
3
|
+
records {
|
|
4
|
+
id
|
|
5
|
+
name
|
|
6
|
+
type {
|
|
7
|
+
name
|
|
8
|
+
description
|
|
9
|
+
}
|
|
10
|
+
iconClass
|
|
11
|
+
libraryEntityIdentifierTypeIds
|
|
12
|
+
description
|
|
13
|
+
class {
|
|
14
|
+
name
|
|
15
|
+
description
|
|
16
|
+
iconClass
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}`,variables:{type:t}},e))}),createEngine=(t,s)=>__awaiter(void 0,void 0,void 0,function*(){var e="createEngine";return(yield baseGraphQLApiWithError(Object.assign({query:"\n mutation createEngine ($input: CreateEngine!) {\n createEngine (input: $input) {\n id\n }\n }\n ",variables:{input:s},operationName:e},t)))[e]}),updateEngine$1=(t,s)=>__awaiter(void 0,void 0,void 0,function*(){var e="updateEngine";return(yield baseGraphQLApiWithError(Object.assign({query:"\n mutation updateEngine ($input: UpdateEngine!) {\n updateEngine (input: $input) {\n id\n }\n }\n ",variables:{input:s},operationName:e},t)))[e]}),getEngineDetails=(t,s)=>__awaiter(void 0,void 0,void 0,function*(){var e="getEngineDetails";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getEngineDetails ($id: ID!) {\n engine (id: $id){\n id,\n name,\n category {\n id,\n name,\n class {\n id,\n name\n }\n },\n deploymentModel,\n isPublic,\n description,\n price,\n edgeVersion,\n fields {\n max,\n min,\n step,\n type,\n info,\n name,\n label,\n options {\n key,\n value\n },\n defaultValue,\n defaultValues,\n required\n },\n inputSchemas {\n records {\n id\n dataRegistryId\n dataRegistry {\n name\n }\n majorVersion\n minorVersion\n }\n }\n outputSchemas {\n records {\n id\n dataRegistryId\n dataRegistry {\n name\n }\n majorVersion\n minorVersion\n }\n }\n iconPath,\n logoPath,\n libraryRequired,\n createsTDO,\n useCases,\n industries,\n manifest,\n testingDetails {\n email,\n mediaFileUri,\n customFields,\n isCertified,\n buildIdCertified,\n dataCertified\n },\n jwtRights,\n standaloneJobTemplates {\n type,\n template,\n }\n distributionType\n website\n gpuSupported\n cpuResourceMcpu\n entityTags {\n tagKey\n }\n }\n }\n ",variables:{id:s},operationName:e},t))).engine});function getSignedWritableUrl(t,s){return __awaiter(this,void 0,void 0,function*(){var e="getSignedWritableUrl";return(yield baseGraphQLApiWithError(Object.assign({query:"query getSignedWritableUrl($name: String!) {\n getSignedWritableUrl(key: $name) {\n bucket,\n expiresInSeconds,\n getUrl,\n key,\n unsignedUrl,\n url,\n }\n }",variables:{name:s},operationName:e},t)))[e]})}function uploadFileToS3(s,n,{onProgress:i,onError:a,onAbort:o,onUpload:r}){return __awaiter(this,void 0,void 0,function*(){const e=new XMLHttpRequest;e.upload.onload=()=>{r&&r(`The upload is completed: ${e.status} `+e.response)},e.upload.onerror=()=>{a&&a("Upload failed.")},e.upload.onabort=()=>{o&&o("Upload cancelled.")},e.upload.onprogress=e=>{i&&i(e.loaded/e.total*100)},e.open("PUT",s.url,!0),e.setRequestHeader("Content-Type",n.type);var t=yield(yield fetch(n.previewUrl)).blob();return e.send(t),e})}const getDataRegistries=(t,s)=>__awaiter(void 0,void 0,void 0,function*(){var e="getDataRegistries";return yield baseGraphQLApiWithError(Object.assign({query:"query getDataRegistries ($name: String) {\n dataRegistries(name: $name, limit: 9999) {\n records {\n id\n name\n schemas {\n records {\n id\n dataRegistryId\n majorVersion\n minorVersion\n }\n }\n }\n }\n }",variables:{name:s},operationName:e},t))}),selectUIStateStatus=e=>e[namespace].uiState.status;var uiState=Object.freeze({__proto__:null,selectUIStateStatus:selectUIStateStatus});const selectEngine=e=>e[namespace].engineFormState.engine,selectCustomFields=e=>e[namespace].engineFormState.engine.customFields,selectStep=e=>e[namespace].engineFormState.step,selectFormValidations=e=>e[namespace].engineFormState.formValidations,selectFormStatus=e=>e[namespace].engineFormState.formStatus,selectEngineCapability=e=>e[namespace].engineFormState.engine.capability,selectEngineClass=e=>e[namespace].engineFormState.engine.class,selectEngineMode=e=>e[namespace].engineFormState.engine.mode,selectEngineDistributionType=e=>e[namespace].engineFormState.engine.distributionType,selectDeploymentModel=e=>e[namespace].engineFormState.engine.deploymentModel,selectEntityTags=e=>e[namespace].engineFormState.engine.entityTags,selectUiInfo=e=>e[namespace].engineFormState.uiInfo,selectStandaloneJobTemplates=e=>e[namespace].engineFormState.engine.standaloneJobTemplates,selectIsLoadingExistingEngineData=e=>lodash.exports.pick(e[namespace].engineFormState,"isLoadingExistingEngineData"),selectIsEditForm=e=>lodash.exports.pick(e[namespace].engineFormState,"isEditForm"),selectIsResumeSession=e=>lodash.exports.get(e[namespace].engineFormState,"isResumeSession"),selectInputSchemas=e=>e[namespace].engineFormState.engine.inputSchemas,selectOutputSchemas=e=>e[namespace].engineFormState.engine.outputSchemas,selectDataRegistries=e=>e[namespace].engineFormState.dataRegistries,selectIsFetchingDataRegistries=e=>e[namespace].engineFormState.isFetchingDataRegistries;var engineFormState=Object.freeze({__proto__:null,selectEngine:selectEngine,selectCustomFields:selectCustomFields,selectStep:selectStep,selectFormValidations:selectFormValidations,selectFormStatus:selectFormStatus,selectEngineCapability:selectEngineCapability,selectEngineClass:selectEngineClass,selectEngineMode:selectEngineMode,selectEngineDistributionType:selectEngineDistributionType,selectDeploymentModel:selectDeploymentModel,selectEntityTags:selectEntityTags,selectUiInfo:selectUiInfo,selectStandaloneJobTemplates:selectStandaloneJobTemplates,selectIsLoadingExistingEngineData:selectIsLoadingExistingEngineData,selectIsEditForm:selectIsEditForm,selectIsResumeSession:selectIsResumeSession,selectInputSchemas:selectInputSchemas,selectOutputSchemas:selectOutputSchemas,selectDataRegistries:selectDataRegistries,selectIsFetchingDataRegistries:selectIsFetchingDataRegistries});const selectIcon=e=>e[namespace].iconUploadState.file;var icon=Object.freeze({__proto__:null,selectIcon:selectIcon});const selectEngineClasses=e=>e[namespace].engineClassesState.engineClasses;var classes=Object.freeze({__proto__:null,selectEngineClasses:selectEngineClasses});const selectApiConfigs$1=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,s)=>({apiRoot:e,graphQLEndpoint:t,token:s}));var TAB_CAPTURE_MODE,selectors=Object.freeze({__proto__:null,selectApiConfigs:selectApiConfigs$1,uiState:uiState,engineFormState:engineFormState,iconUploadState:icon,engineClassesState:classes});const supportedEngineFields=["id","name","categoryId","deploymentModel","isPublic","description","distributionType","price","edgeVersion","fields","iconPath","logoPath","libraryRequired","createsTDO","useCases","industries","manifest","testingDetails","jwtRights","standaloneJobTemplates","cpuResourceMcpu","gpuSupported","website"],formatEngine=t=>{var e;if(!isEngineDeploymentModel(t.deploymentModel))throw new Error("Empty deployment model not allowed!");const s={name:t.name,isPublic:t.isPublic,libraryRequired:t.libraryRequired||!1,createsTDO:t.createsTDO||!1,industries:t.industries||[],categoryId:t.capability.id,deploymentModel:t.deploymentModel,distributionType:t.distributionType,edgeVersion:t.edgeVersion||3,standaloneJobTemplates:[],manifest:{engineMode:t.mode,supportedInputTypes:lodash.exports.map(t.supportedInputTypes,e=>e.mimeType)},fields:[],useCases:[t.markdown],schemas:[],entityTags:t.entityTags||[]};supportedEngineFields.forEach(e=>{"standaloneJobTemplates"===e||lodash.exports.isNil(t[e])||(s[e]=t[e])}),t.customFields&&(s.fields=t.customFields),null!=(e=t.capability)&&e.id&&(s.categoryId=t.capability.id),t.standaloneJobTemplates.upload&&s.standaloneJobTemplates.push({type:"Upload",template:t.standaloneJobTemplates.upload,templateLanguage:"Handlebars",supportedInputTypes:lodash.exports.map(t.standaloneJobTemplatesSupportedInputTypes,e=>e.mimeType)}),t.standaloneJobTemplates.reprocess&&s.standaloneJobTemplates.push({type:"Reprocess",template:t.standaloneJobTemplates.reprocess,templateLanguage:"Handlebars",supportedInputTypes:lodash.exports.map(t.standaloneJobTemplatesSupportedInputTypes,e=>e.mimeType)});let n=[],i=[...t.outputSchemas];return lodash.exports.isEmpty(t.inputSchemas)||(n=lodash.exports.map(t.inputSchemas,e=>{var t=lodash.exports.findIndex(i,{id:e.id});return 0<=t?(lodash.exports.pullAt(i,t),{schemaId:e.id,ioType:SchemaIO.Both}):{schemaId:e.id,ioType:SchemaIO.Input}})),lodash.exports.isEmpty(i)||(i=lodash.exports.map(i,e=>({schemaId:e.id,ioType:SchemaIO.Output})),n=lodash.exports.concat(n,i)),s.schemas=n,s};function*createNewEngine(e){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t||"en"),{engine:e,openBuildPanel:s=!1}=e.payload,n=yield select(selectApiConfigs$1);try{var i=formatEngine(e),a=yield call(createEngine,n,i),o=(yield put(actions.engineFormState.createEngineSuccess(a.id)),localStorage.removeItem("engineOnboardingSession"),yield put(showMessage({content:t({id:"os-engine-center-new.snackbar.engineCreateSuccess",defaultMessage:[{type:0,value:"Engine successfully created"}]}),severity:MessageSeverity.Success})),s?"ENGINE_CENTER_NEW_BUILD":"ENGINE_CENTER_DETAILS"),r={name:o,config:{engineId:a.id}};yield put(mountPanel({panelId:o,microFrontend:r,panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:0,size:"xlarge"}})),yield put(unmountPanel("ENGINE_CENTER_NEW"))}catch(e){yield put(actions.engineFormState.createEngineFailed(e.message)),yield put(showMessage({content:t({id:"os-engine-center-new.snackbar.engineOnboardingFailed",defaultMessage:[{type:0,value:"Engine onboarding failed"}]}),severity:MessageSeverity.Error}))}}function*watchNewEngineCreateStart(){yield takeLatest$1(actions.engineFormState.createEngineStart.type,createNewEngine)}const newEngineSagas=[fork(watchNewEngineCreateStart)],root="undefined"!=typeof window?window:global,fileUploadChannel=(root.xhrInstances={},channel());function*uploadIcon(t){const s=t.payload.file;t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t);try{var e=yield call(getUrlBucket,s.name);const i=Object.assign(Object.assign({},s),{status:IconImportStatus.Uploading,percentComplete:0,expiresInSeconds:e.expiresInSeconds,getUrl:e.getUrl,key:e.key,unsignedUrl:e.unsignedUrl,url:e.url}),a=(yield put(actions.iconUploadState.updateIcon(i)),e=>{fileUploadChannel.put(actions.iconUploadState.updateIcon(Object.assign({id:s.id},e)))});var n=yield uploadFileToS3(e,s,{onProgress:e=>{a({percentComplete:e}),sdkEventManager.dispatch(SdkEvents.fileUploadProgress,null,e)},onAbort:e=>{a({status:IconImportStatus.Aborted}),sdkEventManager.dispatch(SdkEvents.fileUpload,new SdkError(e,"abort"),i)},onError:e=>{a({status:IconImportStatus.Failed}),sdkEventManager.dispatch(SdkEvents.fileUpload,new SdkError(e),i)},onUpload:e=>{a({status:IconImportStatus.Uploaded}),sdkEventManager.dispatch(SdkEvents.fileUpload,null,i)}});root.xhrInstances[s.id]=n,yield put(actions.iconUploadState.uploadIconSuccess()),yield put(actions.engineFormState.updateEngineFormField({field:"iconPath",value:i.getUrl}))}catch(e){yield put(actions.iconUploadState.uploadIconFailed(e.message)),yield put(showMessage({content:t({id:"os-engine-center-new.snackbar.iconUploadFail",defaultMessage:[{type:0,value:"Icon upload failed, please try again."}]}),severity:MessageSeverity.Error}))}}function*getUrlBucket(e){var t=yield select(selectApiConfigs$1);return yield call(getSignedWritableUrl,t,e)}function*watchUploadIconStart(){yield takeLatest$1(actions.iconUploadState.uploadIconStart.type,uploadIcon)}function*watchProgressChannel(){var e=yield take(fileUploadChannel);yield put(e)}const selectApiConfigs=selectors["selectApiConfigs"];function sortEngineClasses(e){const t=e.reduce((e,t)=>{var s;return!t.class&&"Cognition"===t.type.name||(null===t.class&&"Ingestion"===(null==(s=t.type)?void 0:s.name)&&(t.class={},t.class.name=t.name.toLowerCase(),t.class.description=t.description),e[t.class.name]?e[t.class.name].capabilities.push(t):e[t.class.name]=Object.assign(Object.assign({},t.class),{capabilities:[t]})),e},{}),s={};return Object.keys(t).sort().forEach(e=>{s[e]=t[e],t[e].formName="class",t[e].shortDescription=t[e].description.toString().split(".")[0]}),s}function*getEngineClassesSaga(e){const t=yield select(selectApiConfigs);var e=e.payload,s=yield select(preferredLanguageSelector),s=AIWareFormatMessage(s);try{var n=yield all(e.map(e=>call(getClasses,t,e))),i=sortEngineClasses(lodash.exports.concat(n[0].engineCategories.records,n[1].engineCategories.records));yield put(actions.engineClassesState.getEngineClassesSuccess(i))}catch(e){yield put(actions.engineClassesState.getEngineClassesFailed(e.message)),yield put(showMessage({content:s({id:"os-engine-center-new.engine-classes.getEnginesClassesFail",defaultMessage:[{type:0,value:"Getting engine classes failed."}]}),severity:MessageSeverity.Error}))}}function*watchGetEngineClasses(){yield takeLatest$1(actions.engineClassesState.getEngineClassesStart.type,getEngineClassesSaga)}const decodeEngine=e=>{var t;return{id:e.id,name:e.name,distributionType:e.distributionType,description:e.description,class:e.category.class?e.category.class.name:e.category.name.toLowerCase(),deploymentModel:e.deploymentModel,isPublic:e.isPublic,libraryRequired:e.libraryRequired,createsTDO:e.createsTDO,industries:e.industries,edgeVersion:e.edgeVersion,iconPath:e.iconPath,website:e.website,customFields:e.fields,inputTypes:[],isTrainable:!1,standaloneJobTemplatesSupportedInputTypes:lodash.exports.map(lodash.exports.uniq(lodash.exports.flatten(lodash.exports.map(e.standaloneJobTemplates,e=>e.template.supportedInputTypes))),t=>{var e=lodash.exports.find(DEFAULT_ACCEPTABLE_FILE_TYPES,e=>lodash.exports.includes(e.extensions,t));return{name:null==e?void 0:e.name,type:null==e?void 0:e.type,mimeType:t}}),standaloneJobTemplates:lodash.exports.fromPairs(lodash.exports.map(e.standaloneJobTemplates,e=>[e.type.toLowerCase(),e.template.template])),capability:{name:e.category.name,id:e.category.id},mode:null==(t=e.manifest)?void 0:t.engineMode,supportedInputTypes:lodash.exports.map(null==(t=e.manifest)?void 0:t.supportedInputTypes,t=>{var e=lodash.exports.find(DEFAULT_ACCEPTABLE_FILE_TYPES,e=>lodash.exports.includes(e.extensions,t));return{name:e.name,type:e.type,mimeType:t}}),markdown:lodash.exports.isEmpty(e.useCases)?"":e.useCases[0],inputSchemas:lodash.exports.map(lodash.exports.get(e.inputSchemas,"records"),e=>({id:e.id,dataRegistryId:e.dataRegistryId,dataRegistryName:lodash.exports.get(e,"dataRegistry.name"),majorVersion:e.majorVersion,minorVersion:e.minorVersion})),outputSchemas:lodash.exports.map(lodash.exports.get(e.outputSchemas,"records"),e=>({id:e.id,dataRegistryId:e.dataRegistryId,dataRegistryName:lodash.exports.get(e,"dataRegistry.name"),majorVersion:e.majorVersion,minorVersion:e.minorVersion})),cpuResourceMcpu:e.cpuResourceMcpu,gpuSupported:e.gpuSupported,entityTags:e.entityTags}};function*editEngine(e){e=yield queryEngineDetails(e.payload);yield put(actions.engineFormState.setEditEngineExistingData(decodeEngine(e)))}function*queryEngineDetails(e){var t=yield select(selectApiConfigs$1);return yield call(getEngineDetails,t,e)}function*updateEngine(e){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t||"en"),{engine:e,openBuildPanel:s=!1}=e.payload,n=yield select(selectApiConfigs$1);try{var i=lodash.exports.omit(formatEngine(e),"createsTDO"),a=yield call(updateEngine$1,n,i),o=(yield put(actions.engineFormState.createEngineSuccess(a.id)),localStorage.removeItem("engineOnboardingSession"),yield put(showMessage({content:t({id:"os-engine-center-new.snackbar.engineUpdateSuccess",defaultMessage:[{type:0,value:"Engine successfully updated"}]}),severity:MessageSeverity.Success})),s?"ENGINE_CENTER_NEW_BUILD":"ENGINE_CENTER_DETAILS"),r={name:o,config:{engineId:a.id}};yield put(mountPanel({panelId:o,microFrontend:r,panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:0,size:"xlarge"}})),yield put(unmountPanel("ENGINE_CENTER_NEW"))}catch(e){yield put(actions.engineFormState.createEngineFailed(e.message)),yield put(showMessage({content:t({id:"os-engine-center-new.snackbar.engineOnboardingFailed",defaultMessage:[{type:0,value:"Engine onboarding failed"}]}),severity:MessageSeverity.Error}))}}function*watchEditEngine(){yield takeLatest$1(actions.engineFormState.editEngine.type,editEngine)}function*watchUpdateEngineStart(){yield takeLatest$1(actions.engineFormState.updateEngineStart.type,updateEngine)}const editEngineSagas=[fork(watchEditEngine),fork(watchUpdateEngineStart)];function*updateLocalStorage(){var e=engineFormState["selectEngine"],e=yield select(e);window.localStorage.setItem("engineOnboardingSession",JSON.stringify(e))}function*watchEngineForm(){var e=actions["engineFormState"],e=[e.updateEngineFormField.type,e.updateCapability.type,e.addCustomField.type,e.updateCustomField.type,e.removeCustomField.type,e.clearCustomFields.type,e.addSchemas.type,e.removeSchema.type,e.updateSchemas.type,e.clearSchemas.type];yield takeLatest$1(e,updateLocalStorage)}const updateEngineFormSagas=[fork(watchEngineForm)];function*fetchDataRegistries(){var e=yield select(selectApiConfigs$1);try{var t=yield call(getDataRegistries,e),s=get_1(t,"dataRegistries.records",[]),n=map_1(s,e=>Object.assign(Object.assign({},e),{name:trim_1(e.name)})),i=sortBy_1(n,[e=>lowerCase_1(e.name)]);yield put(actions.engineFormState.fetchDataRegistriesSucceeded({dataRegistries:i}))}catch(e){console.log(e.message),yield put(showMessage({content:e.message,severity:MessageSeverity.Error})),yield put(actions.engineFormState.fetchDataRegistriesFailed())}}function*watchFetchDataRegistries(){yield takeLatest$1([actions.engineFormState.fetchDataRegistries],fetchDataRegistries)}const dataRegistriesSagas=[fork(watchFetchDataRegistries)];function*rootSaga(){yield all([watchUploadIconStart(),watchProgressChannel(),watchGetEngineClasses(),...editEngineSagas,...updateEngineFormSagas,...newEngineSagas,...dataRegistriesSagas])}function getEngineCenterNewModule(){return{id:SLICE_NAME,reducerMap:{[SLICE_NAME]:rootReducer},sagas:[rootSaga],initialActions:[]}}const useEngineDescriptionStyles=makeStyles()(e=>({container:{padding:e.spacing(6),justifyContent:"space-around","& input, textarea":{fontWeight:400},"& fieldset":{borderColor:"#D5DFE9"}},textInput:{padding:14.5},labelRow:{display:"flex",gap:e.spacing(2),alignItems:"flex-end"},optional:{fontSize:10,marginBottom:e.spacing(1)},select:{"& > div":{fontWeight:400,width:"280px"}}})),useIconImporterStyles=makeStyles()(e=>({iconBox:{display:"flex",justifyContent:"center",alignItems:"center",width:200,height:200,padding:e.spacing(3),border:"1px dashed #D5DFE9",borderRadius:5,transition:"all .2s ease","&:hover":{border:"1px solid #dde6ee"}},innerBox:{position:"relative",background:"#F5F5F5",width:"100%",height:"100%",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center",transition:"all .2s ease","&:hover":{background:"#dde6ee"}},fileInput:{display:"none"},addIcon:{color:"#555F7C",height:42,width:42,"&:hover":{color:"#555F7C"}},iconPreview:{objectFit:"cover",borderRadius:5,width:"100%",maxHeight:"100%"},removeIcon:{position:"absolute",top:10,right:10}})),useDragAndDrop=({acceptedFileTypes:a})=>{const t=react.exports.useRef(),e=react.exports.useRef(),o=useIntl(),r=useDispatch();var s=useSelector(preferredLanguageSelector);const l=AIWareFormatMessage(s),n=react.exports.useCallback(e=>{var t,s,n,i;e&&(a.includes(e.type)?5e6<=e.size?r(showMessage({content:o.formatMessage({id:"os-engine-center-new.snackbar.unsupportedFileSize",defaultMessage:[{type:0,value:"File file size must be less than 5 MB"}]}),severity:MessageSeverity.Warning})):({name:t,size:s,type:n}=e,i=URL.createObjectURL(e),i={id:guid(),previewUrl:i,name:t,size:s,type:n},r(actions.iconUploadState.uploadIconStart({file:i}))):r(showMessage({content:l({id:"os-engine-center-new.snackbar.unsupportedFileType",defaultMessage:[{type:1,value:"type"},{type:0,value:" is not a supported image type."}]},{type:e.type}),severity:MessageSeverity.Warning})))},[a,r]),i=react.exports.useCallback(e=>{e.preventDefault();e=e.dataTransfer.files[0];n(e)},[n]);const d=e=>{e.preventDefault()};return react.exports.useEffect(()=>{const e=t.current;return e.addEventListener("drop",i),()=>{e.removeEventListener("drop",i)}},[i]),react.exports.useEffect(()=>{const e=t.current;return e&&(e.addEventListener("dragover",d),e.addEventListener("dragleave",d)),()=>{e.removeEventListener("dragover",d),e.removeEventListener("dragleave",d)}},[]),{dropZoneRef:t,fileInputRef:e,handleRemoveFile:e=>{e.stopPropagation(),r(actions.iconUploadState.deleteLocalIcon()),r(actions.engineFormState.updateEngineFormField({field:"iconPath",value:""}))},handleOpenFilePicker:()=>{e.current.click()},handleIconSelect:e=>{e=e.target.files[0];n(e)}}},acceptedFileTypes=["image/jpeg","image/png","image/gif","image/svg+xml"],IconImporter=({iconPath:e})=>{var t=useSelector(selectIcon),s=useIconImporterStyles()["classes"],{dropZoneRef:n,fileInputRef:i,handleRemoveFile:a,handleIconSelect:o,handleOpenFilePicker:r}=useDragAndDrop({acceptedFileTypes:acceptedFileTypes});return jsxRuntime.exports.jsx("div",Object.assign({className:s.iconBox,ref:n,"data-test":"engine-description-icon-dropzone"},{children:e||null!=t&&t.previewUrl?jsxRuntime.exports.jsxs("div",Object.assign({className:s.innerBox,style:{backgroundColor:"transparent"}},{children:[jsxRuntime.exports.jsx(IconButton,Object.assign({"data-test":"engine-description-icon-remove",className:s.removeIcon,size:"small",onClick:a},{children:jsxRuntime.exports.jsx(default_1$6,{})})),jsxRuntime.exports.jsx("img",{src:(null==t?void 0:t.previewUrl)||e,alt:(null==t?void 0:t.name)||"Icon",className:s.iconPreview,"data-test":"engine-description-icon-preview"})]})):jsxRuntime.exports.jsxs(Button,Object.assign({className:s.innerBox,onClick:r},{children:[jsxRuntime.exports.jsx("input",{type:"file",ref:i,className:s.fileInput,onChange:o}),jsxRuntime.exports.jsx(default_1$2,{className:s.addIcon})]}))}))},renderErrorMessage=(e,{type:t,message:s})=>{let n="There is an error with this field";if(isEmpty_1(s))switch(t){case"required":n="This field is required";break;case"min":n="This field must be at least "+e.min;break;case"max":n="This field must be at most "+e.max;break;case"minLength":n=`This field must be at least ${e.minLength} characters`;break;case"maxLength":n=`This field must be at most ${e.maxLength} characters`;break;case"pattern":n="This field must match the pattern "+e.pattern}else n=s;return jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.errorMessage",defaultMessage:"{errorMessage}",description:"Error message",values:{errorMessage:n}})},InputText=react.exports.forwardRef((e,s)=>{var{name:t,label:n,placeholder:i,rules:a,callFieldOnChange:o=!0,onChange:r}=e,l=__rest(e,["name","label","placeholder","rules","callFieldOnChange","onChange"]),e=useFormContext()["control"];const d=useIntl();return jsxRuntime.exports.jsx(Controller,{name:t,control:e,rules:a,render:({field:t,fieldState:{error:e}})=>jsxRuntime.exports.jsx(TextField,Object.assign({},t,{inputRef:s,label:isNil_1(n)?"":d.formatMessage({id:"/runner/_work/aiware-apps/aiware-apps/libs/os/engine-center/new/src/helpers/FormComponents/.cDzoLl",defaultMessage:[{type:1,value:"label"}]},{label:n}),error:!isNil_1(e),helperText:e?renderErrorMessage(a,e):null,onChange:e=>{o&&t.onChange(e),null!=r&&r(e)},placeholder:isNil_1(i)?"":d.formatMessage({id:"/runner/_work/aiware-apps/aiware-apps/libs/os/engine-center/new/src/helpers/FormComponents/.BYW0j2",defaultMessage:[{type:1,value:"placeholder"}]},{placeholder:i})},l))})}),InputSelect=e=>{var{disabled:s,name:t,rules:n,variant:i="outlined",children:a,className:o,callFieldOnChange:r=!0,onChange:l,fullWidth:d=!1}=e,c=__rest(e,["disabled","name","rules","variant","children","className","callFieldOnChange","onChange","fullWidth"]),e=useFormContext()["control"];return jsxRuntime.exports.jsx(Controller,{control:e,name:t,rules:n,render:({field:t,fieldState:{error:e}})=>jsxRuntime.exports.jsxs(FormControl,Object.assign({disabled:s,className:o,variant:i,error:!isNil_1(e),fullWidth:d},{children:[jsxRuntime.exports.jsx(Select,Object.assign({},t,c,{onChange:e=>{r&&t.onChange(e),null!=l&&l(e)}},{children:a})),e&&n&&jsxRuntime.exports.jsx(FormHelperText$2,{children:renderErrorMessage(n,e)})]}))})},InputCheckbox=e=>{var{name:t,label:s,value:n,rules:i,callFieldOnChange:a=!0,onChange:o}=e,r=__rest(e,["name","label","value","rules","callFieldOnChange","onChange"]),{control:e,formState:{errors:l}}=useFormContext();return jsxRuntime.exports.jsxs(FormControl,Object.assign({error:has_1(l,t)},{children:[jsxRuntime.exports.jsx(FormControlLabel,{label:s,control:jsxRuntime.exports.jsx(Controller,{name:t,control:e,rules:i,render:({field:t})=>jsxRuntime.exports.jsx(Checkbox,Object.assign({},t,{value:n,onChange:e=>{a&&t.onChange(e),null!=o&&o(e)},checked:t.value},r))})}),has_1(l,t)&&i&&jsxRuntime.exports.jsx(FormHelperText$2,{children:renderErrorMessage(i,null==l?void 0:l[t])})]}))},InputRadioGroup=react.exports.forwardRef(e=>{var{name:t,rules:s,children:n,callFieldOnChange:i=!0,onChange:a}=e,o=__rest(e,["name","rules","children","callFieldOnChange","onChange"]),e=useFormContext()["control"];return jsxRuntime.exports.jsx(Controller,{name:t,control:e,rules:s,render:({field:t,fieldState:{error:e}})=>jsxRuntime.exports.jsxs(FormControl,Object.assign({error:!isNil_1(e)},{children:[jsxRuntime.exports.jsx(RadioGroup,Object.assign({},t,o,{onChange:e=>{i&&t.onChange(e),null!=a&&a(e)}},{children:n})),e&&s&&jsxRuntime.exports.jsx(FormHelperText$2,{children:renderErrorMessage(s,e)})]}))})}),urlRegex=/^https?:\/\/[(www\.)?a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/,{DistributionTypes}=distributionTypes["jsx"],EngineDescription=({onValidate:e})=>{var t=useEngineDescriptionStyles()["classes"];const s=useDispatch(),n=useSelector(selectEngine),i=useSelector(selectIsResumeSession);var a=useSelector(selectEngineDistributionType),o={name:n.name,description:n.description,website:n.website,cpuResourceMcpu:n.cpuResourceMcpu,gpuSupported:n.gpuSupported,distributionType:n.distributionType};const r=useForm({mode:"onChange",defaultValues:o});react.exports.useEffect(()=>{e(r.formState.isValid)},[r.formState.isValid]),react.exports.useEffect(()=>{__awaiter(void 0,void 0,void 0,function*(){i&&(r.reset(n),setTimeout(()=>__awaiter(void 0,void 0,void 0,function*(){yield r.trigger()}),500))}).catch(e=>{devErrorLogger("Error while validating: "+JSON.stringify(e))})},[i]);const l=(e,t)=>{s(actions.engineFormState.updateEngineFormField({field:e,value:t}))};var o=e=>{var{name:e,value:t}=e.target;l(e,t)},d=e=>{var{name:e,value:t}=e.target;r.setValue(e,t),r.trigger(e),l(e,t)};return jsxRuntime.exports.jsx(FormProvider,Object.assign({},r,{children:jsxRuntime.exports.jsxs(Grid,Object.assign({className:t.container,container:!0,rowSpacing:4,columnSpacing:10,"data-test":"engine-description"},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0,item:!0,xs:12,sm:8,rowSpacing:4,columnSpacing:6},{children:[jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12,sm:6},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",gutterBottom:!0},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.name-description-label",defaultMessage:"Name & Description",description:"Name & Description"})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12,sm:8},{children:jsxRuntime.exports.jsx(InputText,{inputProps:{className:t.textInput},"data-test":"engine-description-input-name",variant:"outlined",sx:{marginBottom:3},placeholder:"Engine Name",name:"name",value:n.name,onChange:o,fullWidth:!0,rules:{required:!0,maxLength:100}})})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12},{children:jsxRuntime.exports.jsx(InputText,{InputProps:{className:t.textInput},"data-test":"engine-description-input-description",variant:"outlined",placeholder:"Description",name:"description",fullWidth:!0,multiline:!0,rows:10,value:n.description,onChange:o,rules:{required:!0,maxLength:250}})})),jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,xs:12},{children:[jsxRuntime.exports.jsxs(Box,Object.assign({className:t.labelRow,mb:2},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",gutterBottom:!0},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.url-website-label",defaultMessage:"URL to Website",description:"URL to Website"})})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",className:t.optional},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.Uq235r",defaultMessage:" (optional)",description:" (optional)"})}))]})),jsxRuntime.exports.jsx(InputText,{inputProps:{className:t.textInput},"data-test":"engine-description-input-website",variant:"outlined",placeholder:"Website URL",name:"website",fullWidth:!0,value:n.website,onChange:o,type:"url",rules:{pattern:{value:urlRegex,message:"Must be a valid URL including protocol."},maxLength:1e3}})]}))]})),jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0,item:!0,xs:12,sm:4,rowSpacing:4,columnSpacing:6},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,xs:12},{children:[jsxRuntime.exports.jsxs(Box,Object.assign({className:t.labelRow},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",gutterBottom:!0},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.icon-image-label",defaultMessage:"Icon",description:"Icon"})})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",className:t.optional,component:"small"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.optional-image-label",defaultMessage:" (optional)",description:" (optional)"})}))]})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",paragraph:!0},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.image-recommended-label",defaultMessage:"Recommended image size:{br}300x300 .png or .jpg",description:"Recommended image size:{br} 300x300 .png or .jpg",values:{br:jsxRuntime.exports.jsx("br",{})}})})),jsxRuntime.exports.jsx(IconImporter,{iconPath:n.iconPath})]})),jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,xs:12},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.cpu-resource-label",defaultMessage:"CPU Requirements",description:"CPU Requirements"})})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",paragraph:!0},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.cpu-requirements-label",defaultMessage:"In milli-cpu's",description:"Explanation of cpu measurement"})})),jsxRuntime.exports.jsxs(InputSelect,Object.assign({inputProps:{className:t.textInput},"data-test":"engine-description-input-cpuResourceMcpu",className:t.select,variant:"outlined",value:n.cpuResourceMcpu,defaultValue:n.cpuResourceMcpu,onChange:d,onClick:()=>r.trigger("cpuResourceMcpu"),name:"cpuResourceMcpu",fullWidth:!0,rules:{required:!0}},{children:[jsxRuntime.exports.jsx(MenuItem,Object.assign({value:512},{children:"512"})),jsxRuntime.exports.jsx(MenuItem,Object.assign({value:1024},{children:"1024"})),jsxRuntime.exports.jsx(MenuItem,Object.assign({value:2048,"data-test":"2048"},{children:"2048"})),jsxRuntime.exports.jsx(MenuItem,Object.assign({value:4096},{children:"4096"})),jsxRuntime.exports.jsx(MenuItem,Object.assign({value:8192},{children:"8192"}))]}))]})),jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,xs:12},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",paragraph:!0},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.gpu-requirements-label",defaultMessage:"GPU Requirements",description:"GPU Requirements"})})),jsxRuntime.exports.jsxs(InputSelect,Object.assign({inputProps:{className:t.textInput},"data-test":"engine-description-input-gpuSupported",className:t.select,variant:"outlined",value:n.gpuSupported,onChange:d,onClick:()=>r.trigger("gpuSupported"),name:"gpuSupported",fullWidth:!0,displayEmpty:!0},{children:[jsxRuntime.exports.jsx(MenuItem,Object.assign({value:"none"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.input-gpu-none",defaultMessage:"None",description:"label for None"})})),jsxRuntime.exports.jsx(MenuItem,Object.assign({value:"aws_p2"},{children:"AWS P2"})),jsxRuntime.exports.jsx(MenuItem,Object.assign({value:"aws_p3"},{children:"AWS P3"}))]}))]}))]})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12},{children:jsxRuntime.exports.jsx(DistributionTypes,{selectedType:a,handleSelectType:({value:e})=>{s(actions.engineFormState.updateEngineFormField({field:"distributionType",value:e}))},idPrefix:"os-engine-center-new"})}))]}))}))},useStyles$a=makeStyles()(e=>({container:{padding:e.spacing(6),maxWidth:"100%"},divider:{width:"60rem",margin:e.spacing(5,5,1,6)},list:{width:"60rem",padding:e.spacing(6,0),marginLeft:e.spacing(6)}})),useStyles$9=makeStyles()(e=>({checked:{color:"#6098D1"},rootSelectedForm:{padding:"0px !important"},rootSelectForm:{padding:"10px !important","&:hover":{background:"#F7F7F7"}},iconStyle:{marginRight:"5px"},iconComponent:{top:"20px"},iconBackground:{display:"inline-block",height:"32px",borderRadius:"32px",width:"32px",background:"#F2F5F9",marginRight:"15px",paddingLeft:"8px",paddingTop:"6px",marginLeft:"5px"},itemIcons:{verticalAlign:"middle"},itemIconsRow:{position:"absolute",top:"0px"},iconBackgroundSelected:{display:"inline-block",height:"25px",borderRadius:"25px",width:"25px",minHeight:"25px",minWidth:"25px",background:e.palette.primary.main,marginRight:"15px",paddingLeft:"7px",paddingTop:"7px",marginLeft:"15px"},helperDescription:{fontSize:"14px",marginBottom:"20px"},menuItem:{width:"958px",padding:"10px",whiteSpace:"initial",height:"fit-content",borderBottom:"0.5px solid "+e.palette.divider,borderRadius:"0px"},optionName:{marginLeft:"0px",textAlign:"left",verticalAlign:"top"},optionNameRow:{marginLeft:"50px"},summary:{fontSize:11,textTransform:"none",width:"900px"},selectForm:{width:"250px",fontWeight:"bold",fontSize:"18px"},selectedForm:{background:"#FAFAFA",width:"960px !important",fontWeight:"bold",fontSize:"18px"},selectedName:{textTransform:"capitalize",background:"#EEF3F9",width:"auto",height:"56px",lineHeight:"56px",fontWeight:"bold"},ul:{listStyle:"none"},selectedDescription:{fontSize:"12px",marginBottom:"10px"},classSelectedBox:{padding:"20px 32px",textOverflow:"wrap",fontSize:"12px",whiteSpace:"initial",wordWrap:"break-word",border:"1px solid "+e.palette.divider,borderTop:"none",lineHeight:"16px"},inputSelectCaption:{fontSize:"12px",fontWeight:600,marginTop:"16px",marginBottom:"11px"},inputSelect:{width:"228px",fontWeight:400,fontSize:"14px"},textInput:{paddingLeft:"15px",paddingTop:"12px",paddingBottom:"12px",fontWeight:400,fontSize:"14px"},selectionName:{marginLeft:"20px"},selectionDescription:{paddingLeft:"60px",marginTop:"-10px",fontSize:"12px"},icon:{textAlign:"center",height:"1rem !important",margin:"0 3px"}})),HelpDocs=({className:e,helpLink:t,sx:s})=>{const n=useDispatch();var i=useSelector(preferredLanguageSelector);const a=AIWareFormatMessage(i);return jsxRuntime.exports.jsx(default_1$1,{className:e,onClick:()=>{has_1(window,"aiware.helpCenter.openDocsPanel")?(window.aiware.helpCenter.openDocsPanel(t,!1),setTimeout(()=>{window.aiware.helpCenter.openDocsPanel(t,!1)},0)):n(showMessage({content:a({id:"os-engine-center-new.snackbar.helpCenterUnavailable",defaultMessage:[{type:0,value:"Help Center is not currently available."}]}),severity:MessageSeverity.Warning}))},sx:s,style:{cursor:"pointer"},color:"secondary"})},Heading=({testName:e,title:t,description:s,helpLink:n})=>{var i=useStyles$9()["classes"];return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs(Typography,Object.assign({"data-test":e+"-title",style:{fontWeight:"bold"},variant:"h5"},{children:[t,!isNil_1(n)&&jsxRuntime.exports.jsx(HelpDocs,{className:i.icon,helpLink:n})]})),jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":e+"-description",className:i.helperDescription},{children:s}))]})},Dropdown=({disabled:e,optional:t=!1,menuItemRow:s,selectFormWidth:n,testName:i,handleSubSelectFormValue:a,handleSelectFormValue:o,selectionItems:r,iconMap:l,iconType:d,selectPlaceholder:c,selectIcon:p,selectedItem:u,selectedSubItem:m,selectFormName:g})=>{const x=useStyles$9()["classes"],h=useFormContext();return jsxRuntime.exports.jsx("div",Object.assign({style:{width:n},className:u?x.selectedForm:x.selectForm},{children:jsxRuntime.exports.jsxs(FormControl,Object.assign({disabled:e,fullWidth:!0,variant:"outlined"},{children:[jsxRuntime.exports.jsx(InputSelect,Object.assign({disabled:e,name:g,rules:{required:!t},displayEmpty:!0,"data-test":i+"-select-form",IconComponent:()=>jsxRuntime.exports.jsx(UpDown,{className:x.iconStyle}),classes:u?{select:x.rootSelectedForm,icon:x.iconComponent}:{select:x.rootSelectForm},defaultValue:(n=isEmpty_1(u)?"":u,h.setValue(g,n),n),onChange:e=>{var t,e=e.target["value"],e=r[e];isEmpty_1(get_1(e,"capabilities"))||(t=e.capabilities[0].id+","+e.capabilities[0].name,null!=a&&a(t)),h.setValue(g,e),h.trigger(g),null!=o&&o(e)},onClick:()=>h.trigger(g),renderValue:e=>e?jsxRuntime.exports.jsxs("div",Object.assign({className:x.selectedName},{children:[jsxRuntime.exports.jsx(Icon,{classes:{root:x.iconBackgroundSelected},className:x.itemIcons,component:get_1(u,"selectedIconName")?d[u.selectedIconName]:get_1(u,"name")?d[l[u.name]+"White"]:null}),get_1(u,"formattedName")||get_1(u,"name")]})):jsxRuntime.exports.jsxs(Typography,Object.assign({variant:"h6"},{children:[jsxRuntime.exports.jsx(Icon,{classes:{root:x.iconBackground},className:x.itemIcons,component:p}),c]}))},{children:r&&map_1(keys_1(r),e=>jsxRuntime.exports.jsxs(MenuItem,Object.assign({disabled:"marketplace"===e,className:x.menuItem,"data-test":r[e].value||e,value:r[e].value||e},{children:[jsxRuntime.exports.jsx(Icon,{classes:{root:x.iconBackground},className:s?x.itemIconsRow:x.itemIcons,component:r[e].iconName?d[r[e].iconName]:d[l[e]]}),jsxRuntime.exports.jsxs(Grid,Object.assign({className:s?x.optionNameRow:x.optionName,xs:2},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6"},{children:r[e].formattedName||r[e].name})),s&&jsxRuntime.exports.jsx(Typography,Object.assign({className:x.summary},{children:r[e].description}))]})),!s&&jsxRuntime.exports.jsx(Grid,Object.assign({xs:9},{children:jsxRuntime.exports.jsx(Typography,Object.assign({className:x.summary,style:{whiteSpace:"initial"}},{children:r[e].shortDescription}))}))]}),r[e].value||e))})),!isEmpty_1(u)&&!isEmpty_1(u.capabilities)&&jsxRuntime.exports.jsxs(Box$2,Object.assign({className:x.classSelectedBox},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({className:x.selectedDescription},{children:!isEmpty_1(u)&&u.description})),jsxRuntime.exports.jsx(Typography,Object.assign({className:x.inputSelectCaption},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"engine-center-new.custom-dropdown.engine-category",defaultMessage:"Engine Category",description:"Engine Category"})})),jsxRuntime.exports.jsx(InputSelect,Object.assign({inputProps:{maxLength:50,className:x.textInput},className:x.inputSelect,type:"text",name:"type",disabled:1==u.capabilities.length,value:m,onChange:e=>{e=e.target.value;null!=a&&a(e)},style:{minWidth:"100%"},"data-test":i+"-sub-select-form",rules:{required:!0}},{children:map_1(u.capabilities,({id:e,name:t})=>jsxRuntime.exports.jsx(MenuItem,Object.assign({value:e+","+t,color:"textSecondary","data-test":i+"-sub-select-form-"+kebabCase_1(t)},{children:t}),e))}))]}))]}))}))},GenericSelect=({disabled:e,optional:t=!1,title:s,description:n,selections:i,iconType:a,selectIcon:o,selectPlaceholder:r,testName:l,selectFormWidth:d,menuItemRow:c,iconMap:p,handleSubSelectFormValue:u,handleSelectFormValue:m,helpLink:g,selectedItem:x,selectedSubItem:h,selectFormName:j})=>jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Heading,{title:s,description:n,testName:l,helpLink:g}),jsxRuntime.exports.jsx(Dropdown,{disabled:e,optional:t,selectFormName:j,selectionItems:i,iconType:a,selectIcon:o,selectPlaceholder:r,testName:l,selectFormWidth:d,menuItemRow:c,iconMap:p,handleSubSelectFormValue:u,handleSelectFormValue:m,selectedItem:x,selectedSubItem:h})]}),engineClassHelpLink="https://docs.veritone.com/#/developer/engines/cognitive/classes/",engineModeHelpLink="https://docs.veritone.com/#/applications/aiware-applications/developer/processing-modes",deploymentModelHelpLink="https://docs.veritone.com/#/applications/aiware-applications/developer/deployment-models",iconMap={audio:"Audio",biometrics:"Biometrics",data:"Data",speech:"Speech",text:"Text",transformation:"Transformation",vision:"Vision",pull:"Pull",push:"Push",generator:"Generator"},EngineClass=({engineClasses:e,handleEngineClassType:t,handleEngineCategoryType:s})=>{const n=useSelector(selectEngineClass),i=useSelector(selectEngineCapability);var a=useSelector(selectIsEditForm)["isEditForm"];return jsxRuntime.exports.jsx(GenericSelect,{disabled:a,title:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.z3sfba",defaultMessage:"Engine Class",description:"Form label for engine class"}),description:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.xXLLoZ",defaultMessage:"Engines are categorized based on the type of data they analyze. The major classes are provided here.",description:"Form description for engine class"}),selectPlaceholder:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.IPwLZo",defaultMessage:"Select a Class",description:"Placeholder for engine class"}),selectIcon:Bookmark,iconType:EngineClassIcons,selections:e,handleSelectFormValue:t,handleSubSelectFormValue:s,iconMap:iconMap,testName:"os-engine-center-new.engine-class",helpLink:engineClassHelpLink,selectedItem:isEmpty_1(n)?null:find_1(e,{name:n}),selectedSubItem:isEmpty_1(i)?null:i.id+","+i.name,selectFormName:"engineClass"})},EngineMode=({engineModes:e,handleEngineModeType:t})=>{const s=useSelector(selectEngineMode);var n=useSelector(selectIsEditForm)["isEditForm"];return jsxRuntime.exports.jsx(GenericSelect,{disabled:n,optional:n,title:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.G52MSw",defaultMessage:"Engine Mode",description:"Form label for engine mode"}),description:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.qVtbCX",defaultMessage:"Engines will generally be designed to run in one of three modes on aiWARE: Segment, Stream, or Batch.",description:"Form description for engine mode"}),selectPlaceholder:n?jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.edit-engine-mode-placeholder",defaultMessage:"No Mode Selected",description:"Placeholder for engine mode in edit form"}):jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.VvyxXY",defaultMessage:"Choose a mode",description:"Placeholder for engine mode"}),selectIcon:Mode2,iconType:EngineModeIcons,selections:e,handleSelectFormValue:t,testName:"os-engine-center-new.engine-mode",helpLink:engineModeHelpLink,selectedItem:isEmpty_1(s)?null:find_1(e,{value:s}),selectFormName:"engineMode"})},DeploymentModel=({deploymentModels:e,handleDeploymentModelType:t})=>{const s=useSelector(selectDeploymentModel);var n=useSelector(selectIsEditForm)["isEditForm"];return jsxRuntime.exports.jsx(GenericSelect,{disabled:n,title:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.kpw4rJ",defaultMessage:"Deployment Model",description:"Form label for Deployment Model"}),description:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.NHOoQV",defaultMessage:"The engine deployment model tells what type of network access the engine requires. Some engines require access to resources outside the Docker runtime environment. Others do not (and thus are considered Network Isolated).",description:"Form description for Deployment Model"}),selectPlaceholder:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.Sr2aUm",defaultMessage:"Choose a Deployment Model",description:"Placeholder for Deployment Model"}),selectIcon:Mode2,iconType:DeploymentModelIcons,selections:e,handleSelectFormValue:t,testName:"os-engine-center-new.deployment-model",selectFormWidth:"320px",menuItemRow:!0,helpLink:deploymentModelHelpLink,selectedItem:isEmpty_1(s)?null:find_1(e,{value:s}),selectFormName:"deploymentModel"})},CustomFieldsList=()=>{const s=useDispatch(),t=useSelector(selectCustomFields),e=e=>e.map(e=>({name:e.name,type:e.type,default:!fieldIsMultiPicklist(e)||isEmpty_1(e.defaultValues)?e.defaultValue:join_1(e.defaultValues,", ")})),[n,i]=react.exports.useState(e(t));react.exports.useEffect(()=>{i(e(t))},[t]);const a=(e=!1,t=-1)=>{e={name:"ENGINE_CENTER_CUSTOM_FIELDS_FORM",config:{name:"Custom Fields",isEdit:e,editIndex:t}};s(mountPanel({panelId:"ENGINE_CENTER_CUSTOM_FIELDS_FORM",microFrontend:e,panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:0,zIndex:1011}}))};return jsxRuntime.exports.jsx(ListField,{idPrefix:"ecn.custom-fields",heading:"Custom Fields",description:"Does your engine require custom fields? If so, specify them here. Leave blank if not.",actionButtonLabel:"Custom Field",items:lodash.exports.map(n,e=>({data:e})),columnNames:["Name","Type","Default","",""],canEdit:!0,canDelete:!0,onActionClick:()=>{a()},onEditClick:e=>{e=n[e],e=findIndex_1(t,{name:e.name,type:e.type});0<=e&&a(!0,e)},onDeleteClick:e=>{e=n[e],e=findIndex_1(t,{name:e.name,type:e.type});0<=e&&s(actions.engineFormState.removeCustomField(e))},onRequestSort:(e,t)=>{i(orderBy_1(n,lowerCase_1(e),t))}})},InputTypeViewListControled=({supportedInputTypes:e,handleDeleteSupportedInputType:t,onAddInputType:s,heading:n,description:i})=>{const[a,o]=react.exports.useState("name"),[r,l]=react.exports.useState("asc"),d=React5.useMemo(()=>lodash.exports.orderBy(e,a,r),[e,a,r]);return jsxRuntime.exports.jsx(ListField,{canDelete:!0,idPrefix:"ecn.inputTypeViewList",heading:null!=n?n:"Supported Input Types",description:null!=i?i:"Please specify ALL input types your engine supports. You will be able to update this in the manifest later.",actionButtonLabel:"Input Type",items:lodash.exports.map(d,e=>Object.assign(Object.assign({},e),{data:lodash.exports.omit(e.data,"type")})),columnNames:["Name","Type",""],onActionClick:s,onDeleteClick:e=>t(lodash.exports.nth(d,e).data),onRequestSort:(e,t)=>{e=lodash.exports.lowerCase(e);o("type"===e?"mimeType":e),l(t)}})},InputTypeViewList$1=()=>{const e=useDispatch(),s=useSelector(selectEngine);return jsxRuntime.exports.jsx(InputTypeViewListControled,{supportedInputTypes:lodash.exports.map(s.supportedInputTypes,e=>({data:e})),handleDeleteSupportedInputType:t=>{e(actions.engineFormState.updateEngineFormField({field:"supportedInputTypes",value:lodash.exports.reject(s.supportedInputTypes,e=>e===t)}))},onAddInputType:()=>{e(mountPanel({panelId:"ENGINE_CENTER_INPUT_TYPE_FLYOUT",microFrontend:{name:"ENGINE_CENTER_INPUT_TYPE_FLYOUT",config:{name:"Supported Input Types"}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:0,zIndex:1011}}))}})},engineModes={chunk:{formName:"mode",name:"Chunk",formattedName:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.uJB1gu",defaultMessage:"Chunk",description:"label for Chunk"}),iconName:"Chunk",selectedIconName:"ChunkWhite",shortDescription:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.AHskfr",defaultMessage:"In Segment mode, an engine will process data in small, discrete chunks, which arise from segmentation of the input data into messages.",description:"short desc for Chunk"}),description:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.5qrKxx",defaultMessage:"In Segment mode, an engine will process data in small, discrete chunks, which arise from segmentation of the input data into messages. The engine pulls chunks from a stateless queue, which means the engine can process each discrete bit of content without having any knowledge of the content that came before or after the current chunk.",description:"desc for Chunk"}),value:"chunk",link:"https://docs.veritone.com/#/developer/engines/processing-modes/segment-processing/"},stream:{formName:"mode",name:"Stream",formattedName:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.+hPNys",defaultMessage:"Stream",description:"label for Stream"}),iconName:"Stream",selectedIconName:"StreamWhite",shortDescription:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.t9JU60",defaultMessage:"Stream-based engines process data in streams, using a stateful queue, where the order of the data does matter.",description:"short desc for stream"}),description:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.dzszV5",defaultMessage:"Stream-based engines process data in streams, using a stateful queue, where the order of the data does matter. Because they store state, stream engines can use results from earlier cognition to inform later stages of processing. Generally, the engine needs to take care of decoding the raw input itself.",description:"desc for stream"}),value:"stream",link:"https://docs.veritone.com/#/developer/engines/processing-modes/stream-processing/"},batch:{formName:"mode",name:"Batch",formattedName:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.JldfAk",defaultMessage:"Batch",description:"label for Batch"}),iconName:"Batch",selectedIconName:"BatchWhite",shortDescription:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.VBCYgQ",defaultMessage:"Batch engines are designed to process an entire file in one task (process) invocation and communicate directly with the Veritone aiWARE GraphQL API.",description:"short desc for batch"}),description:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.etiD+m",defaultMessage:"Batch engines are designed to process an entire file in one task (process) invocation and communicate directly with the Veritone aiWARE GraphQL API. Because Batch engines simply execute all of the logic defined in the engine this engine mode is ideal for handling business logic like app integrations and other utility use-cases.",description:"desc for batch"}),value:"batch",link:""}},networkIsolatedModelHelpLink="https://docs.veritone.com/#/developer/engines/deployment-model/?id=network-isolated",externalAccessModelHelpLink=" https://docs.veritone.com/#/developer/engines/deployment-model/?id=external-access",externalProcessingModelHelpLink="https://docs.veritone.com/#/developer/engines/deployment-model/?id=external-processing",humanReviewModelHelpLink="https://docs.veritone.com/#/developer/engines/deployment-model/?id=human-review",deploymentModels={MostlyNetworkIsolated:{formName:"deploymentModel",name:"External Access",formattedName:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.52BnJK",defaultMessage:"External Access",description:"label for External Access"}),iconName:"MostlyNetworkIsolated",selectedIconName:"MostlyNetworkIsolatedWhite",shortDescription:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.2YbY12",defaultMessage:"The engine requires internet access for tasks like license checks to an external server, or downloading reference data, but does not send user data outside the container.",description:"short desc for External Access"}),description:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.6dfPvn",defaultMessage:"The engine requires internet access for tasks like license checks to an external server, or downloading reference data, but does not send user data outside the container.",description:"desc for External Access"}),value:"MostlyNetworkIsolated",link:externalAccessModelHelpLink},FullyNetworkIsolated:{formName:"deploymentModel",name:"Network Isolated",formattedName:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.0cXuDd",defaultMessage:"Network Isolated",description:"label for Network Isolated"}),iconName:"FullyNetworkIsolated",selectedIconName:"FullyNetworkIsolatedWhite",shortDescription:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.kjYyU2",defaultMessage:"The engine does all processing entirely within its container (ie. itself), running solely within Veritone's infrastructure.",description:"short desc for Network Isolated"}),description:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.iFKCNO",defaultMessage:"The engine does all processing entirely within its container (ie. itself), running solely within Veritone's infrastructure. There is no internet access, and no external calls are made to the outside world ever. This is the most secure deployment model, which makes 'network-isolated deployment' a requirement for most Government agencies and Legal & Compliance customers. This deployment is also highly requested by Media & Entertainment customers, since network-isolated engines may be deployed on-premises.",description:"desc for Network Isolated"}),value:"FullyNetworkIsolated",link:networkIsolatedModelHelpLink},NonNetworkIsolated:{formName:"deploymentModel",name:"External Processing",formattedName:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.IBPpVI",defaultMessage:"External Processing",description:"label for External Processing"}),iconName:"NonNetworkIsolated",selectedIconName:"NonNetworkIsolatedWhite",shortDescription:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.vMyLbx",defaultMessage:"The engine does some or all of its processing outside its container and therefore requires internet access.",description:"short desc for External Processing"}),description:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.qMDz39",defaultMessage:"The engine does some or all of its processing outside its container and therefore requires internet access. For example, user data may need to be sent to external services (such as a cloud API) for processing.",description:"desc for External Processing"}),value:"NonNetworkIsolated",link:externalProcessingModelHelpLink},HumanReview:{formName:"deploymentModel",name:"Human Review",formattedName:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.NpSCxi",defaultMessage:"Human Review",description:"label for Human Review"}),iconName:"HumanReview",selectedIconName:"HumanReviewWhite",shortDescription:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.1GxLEU",defaultMessage:"The engine requires human intervention to complete its processing, and therefore needs network access.",description:"short desc for Human Review"}),description:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.MoW0r5",defaultMessage:"The engine requires human intervention to complete its processing, and therefore needs network access.",description:"desc for Human Review"}),value:"HumanReview",link:humanReviewModelHelpLink}},FunctionalityStep=({onValidate:e})=>{var t=useStyles$a()["classes"];const s=useDispatch(),{apiRoot:n,graphQLEndpoint:i,token:a}=useSelector(selectApiConfigs$1);var o=useSelector(selectEngineClasses);const r=useSelector(selectEngineClass),l=useSelector(selectEngineMode),d=useSelector(selectDeploymentModel);var c=useSelector(selectEntityTags);const p=useSelector(selectIsEditForm)["isEditForm"];var u={engineMode:l,engineClass:r,deploymentModel:d,entityTags:c};const m=useForm({mode:"onChange",defaultValues:u});react.exports.useEffect(()=>{lodash.exports.isEmpty(r)||lodash.exports.isEmpty(d)||(p?lodash.exports.isEmpty(l)&&"generator"!==r&&"push"!==r&&"pull"!==r:lodash.exports.isEmpty(l))||e(!0)}),react.exports.useEffect(()=>{n&&i&&a&&s(actions.engineClassesState.getEngineClassesStart(["Cognition","Ingestion"]))},[n,i,a,s]),react.exports.useEffect(()=>{null!=e&&e(m.formState.isValid)},[m.formState.isValid]);u=e=>{s(actions.engineFormState.updateEngineFormField({field:e.formName,value:e.value||e.name}))};return jsxRuntime.exports.jsx(FormProvider,Object.assign({},m,{children:jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0,rowSpacing:5,columnSpacing:6,className:t.container,"data-test":"engine-new-functionality-step-container"},{children:[jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,"data-test":"engine-new-functionality-step-engine-class"},{children:jsxRuntime.exports.jsx(EngineClass,{engineClasses:o,handleEngineClassType:u,handleEngineCategoryType:e=>{s(actions.engineFormState.updateCapability({payload:e}))}})})),jsxRuntime.exports.jsx(Divider,{className:t.divider}),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,"data-test":"engine-new-functionality-step-engine-mode"},{children:jsxRuntime.exports.jsx(EngineMode,{engineModes:engineModes,handleEngineModeType:u})})),jsxRuntime.exports.jsx(Divider,{className:t.divider}),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,"data-test":"engine-new-functionality-step-engine-tags"},{children:jsxRuntime.exports.jsx(EntityTags,{setSelectedTags:e=>{s(actions.engineFormState.updateEngineFormField({field:"entityTags",value:e}))},selectedTags:c})})),jsxRuntime.exports.jsx(Divider,{className:t.divider}),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,"data-test":"engine-new-functionality-step-engine-deployment-model"},{children:jsxRuntime.exports.jsx(DeploymentModel,{deploymentModels:deploymentModels,handleDeploymentModelType:u})})),jsxRuntime.exports.jsx(Divider,{className:t.divider}),jsxRuntime.exports.jsx(Box,Object.assign({className:t.list,"data-test":"engine-new-functionality-step-engine-input-view-list"},{children:jsxRuntime.exports.jsx(InputTypeViewList$1,{})})),jsxRuntime.exports.jsx(Box,Object.assign({className:t.list,"data-test":"engine-new-functionality-step-engine-custom-field-list"},{children:jsxRuntime.exports.jsx(CustomFieldsList,{})}))]}))}))},{Markdown}=markdown["jsx"],UseCasesStep=({onValidate:e})=>{var t=useSelector(selectEngine);const s=useDispatch();return jsxRuntime.exports.jsx(Markdown,{data:t.markdown,handleChange:e=>{s(actions.engineFormState.updateEngineFormField({field:"markdown",value:e.target.value}))},onValidate:e,idPrefix:"os-engine-center-new",title:"Use Case Creator",description:"Give examples of typical scenarios in which your engine would be used."})},SchemaList=({schemaType:s})=>{const t=useSelector(s===SchemaIO.Input?selectInputSchemas:selectOutputSchemas),n=(useSelector(selectDataRegistries),useDispatch()),i=(e=!1,t="")=>{e={name:"ENGINE_CENTER_SCHEMAS_FORM_PANEL",config:{name:`${e?"Edit":"Add"} ${capitalize_1(s)} Schemas`,isEdit:e,editId:t,schemaType:s}};n(mountPanel({panelId:"ENGINE_CENTER_SCHEMAS_FORM_PANEL",microFrontend:e,panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:0,zIndex:1011}}))},e=()=>{var e=map_1(t,e=>({dataRegistry:e.dataRegistryName,schemaVersion:`Version ${e.majorVersion}.`+e.minorVersion,schemaId:e.id}));return orderBy_1(e,[e=>lowerCase_1(e.dataRegistry)],"asc")},[a,o]=react.exports.useState(e());react.exports.useEffect(()=>{o(e())},[t]);return jsxRuntime.exports.jsx(ListField,{idPrefix:"ecn.schema-list."+s,heading:capitalize_1(s)+" Schemas",description:`Add or remove existing ${s} schemas from your engine, if necessary.`,actionButtonLabel:capitalize_1(s)+" Schemas",items:map_1(a,e=>({data:e})),columnNames:["Data Registry","Schema Version","Schema ID","",""],canEdit:!0,canDelete:!0,onActionClick:()=>i(),onRequestSort:(t,e)=>{o(orderBy_1(a,[e=>lowerCase_1(e[camelCase_1(t)])],e))},onEditClick:e=>{e=a[e],e=findIndex_1(t,{id:e.schemaId}),e=t[e].dataRegistryId;i(!0,e)},onDeleteClick:e=>{e=a[e],e=findIndex_1(t,{id:e.schemaId});0<=e&&n(actions.engineFormState.removeSchema({schemaType:s,index:e}))}})};function useTabCapturing({inputRef:a,onChange:o}){const[r,l]=react.exports.useState(TAB_CAPTURE_MODE.NON_CAPTURE_MODE);return[e=>{var t=e["key"];if(!lodash.exports.isNil(a.current)){var{value:s,selectionStart:n,selectionEnd:i}=a.current;switch(t){case"Tab":return void(r===TAB_CAPTURE_MODE.CAPTURING_MODE&&(e.preventDefault(),a.current.value=s.slice(0,n)+"\t"+s.slice(i),a.current.setSelectionRange(n+1,n+1),o(e)));case"Escape":return void l(TAB_CAPTURE_MODE.NON_CAPTURE_MODE);case"m":return void(e.ctrlKey&&l(r===TAB_CAPTURE_MODE.CAPTURING_MODE?TAB_CAPTURE_MODE.NON_CAPTURE_MODE:TAB_CAPTURE_MODE.CAPTURING_MODE));case"Shift":return;default:l(TAB_CAPTURE_MODE.CAPTURING_MODE)}}},e=>{l(TAB_CAPTURE_MODE.CAPTURING_MODE)}]}!function(e){e[e.CAPTURING_MODE=0]="CAPTURING_MODE",e[e.NON_CAPTURE_MODE=1]="NON_CAPTURE_MODE"}(TAB_CAPTURE_MODE=TAB_CAPTURE_MODE||{});const InputTypeViewList=()=>{const e=useDispatch(),s=useSelector(selectEngine),t=react.exports.useRef(!1);react.exports.useEffect(()=>{lodash.exports.isEmpty(s.standaloneJobTemplatesSupportedInputTypes)&&!t.current&&(e(actions.engineFormState.updateEngineFormField({field:"standaloneJobTemplatesSupportedInputTypes",value:s.supportedInputTypes})),t.current=!0)},[e,s.standaloneJobTemplatesSupportedInputTypes,s.supportedInputTypes]);return jsxRuntime.exports.jsx(InputTypeViewListControled,{heading:"Engine Template Supported Input Types",description:"Please specify ALL the input types that your engine can support when using the engine template you have defined. You will be able to update this later.",supportedInputTypes:lodash.exports.map(s.standaloneJobTemplatesSupportedInputTypes,e=>({data:e})),handleDeleteSupportedInputType:t=>{e(actions.engineFormState.updateEngineFormField({field:"standaloneJobTemplatesSupportedInputTypes",value:lodash.exports.reject(s.standaloneJobTemplatesSupportedInputTypes,e=>e===t)}))},onAddInputType:()=>{e(mountPanel({panelId:"ENGINE_CENTER_INPUT_TYPE_FLYOUT",microFrontend:{name:"ENGINE_CENTER_INPUT_TYPE_FLYOUT",config:{name:"Supported Input Types",engineStatePropertyName:"standaloneJobTemplatesSupportedInputTypes"}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:0,zIndex:1011}}))}})},errorMessageProps={sx:{position:"absolute",right:0,bottom:-20}},useStyles$8=makeStyles()(e=>({curlyBracesIconContainer:{"& path":{stroke:e.palette.text.primary,strokeWidth:2}}})),IntegrationStep=({onValidate:i})=>{var e=useStyles$8()["classes"],t=useForm();const{getValues:a,setValue:o,setError:r,clearErrors:l}=t,d=useDispatch();var s=react.exports.useRef(null),n=react.exports.useRef(null);const c=e=>{if(e)try{JSON.parse(e)}catch(e){return!1}return!0};var p,u=e=>{var t,{name:e,value:s}=e.target,n=(o(e,s),l(e),t=a("newJobTemplate"),n=a("reprocessingJobTemplate"),t=c(t)&&c(n),i(t),"newJobTemplate"===e?"upload":"reprocess");d(actions.engineFormState.updateEngineFormField({field:"standaloneJobTemplates."+n,value:s}))},[m,g]=useTabCapturing({inputRef:s,onChange:u}),[x,h]=useTabCapturing({inputRef:n,onChange:u}),{upload:j,reprocess:y}=useSelector(selectStandaloneJobTemplates);let f;(p=f=f||{}).New="newJobTemplate",p.Reprocessing="reprocessingJobTemplate";const b=t=>{var e=a(t);if(e)try{var s=JSON.stringify(JSON.parse(e),null,8),n=(o(t,s),l(t),"newJobTemplate"===t?"upload":"reprocess");d(actions.engineFormState.updateEngineFormField({field:"standaloneJobTemplates."+n,value:s}))}catch(e){r(t,{type:"custom",message:"Invalid JSON syntax."})}};return jsxRuntime.exports.jsx(FormProvider,Object.assign({},t,{children:jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0,spacing:6,padding:6,"data-test":"engine-new-integration-step"},{children:[jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12},{children:jsxRuntime.exports.jsx(SchemaList,{schemaType:SchemaIO.Input})})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12,"data-test":"engine-new-input-schemas"},{children:jsxRuntime.exports.jsx(Divider,{sx:{width:"60rem",margin:"5, 5, 1, 5"}})})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12,"data-test":"engine-new-output-schemas"},{children:jsxRuntime.exports.jsx(SchemaList,{schemaType:SchemaIO.Output})})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12},{children:jsxRuntime.exports.jsx(Divider,{sx:{width:"60rem",margin:"5, 5, 1, 5"}})})),jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,xs:12},{children:[jsxRuntime.exports.jsxs(Typography,Object.assign({variant:"h6",gutterBottom:!0,"data-test":"engine-new-integration-title"},{children:[jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.integration-title",defaultMessage:"Engine Processing Flow",description:"Integration step title"}),jsxRuntime.exports.jsx(HelpDocs,{helpLink:"https://docs.veritone.com/#/aiware/aiWARE-in-depth/single-engine-jobs?id=creating-your-own-single-engine-job-template",sx:{fontSize:15,marginLeft:2}})]})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption","data-test":"engine-new-integration-description"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.integration-description",defaultMessage:"Provide the job mutations to run your engine for both new Temporal Data Object (TDO) and reprocessing jobs.",description:"Integration step description"})}))]})),jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0,item:!0,spacing:5},{children:[jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12,sm:12},{children:jsxRuntime.exports.jsx(InputTypeViewList,{})})),jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,xs:12,sm:6},{children:[jsxRuntime.exports.jsxs("label",{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",gutterBottom:!0,"data-test":"engine-new-new-tdo-job-mutation-title"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.new-tdo-job-mutation-title",defaultMessage:"New TDO Job Mutation",description:"New TDO Job Mutation input field title"})})),jsxRuntime.exports.jsx(InputText,{ref:s,type:"textarea",name:"newJobTemplate",value:j,onChange:u,inputProps:{onKeyDown:m},onClick:g,"data-test":"engine-new-new-tdo-job-mutation",multiline:!0,spellCheck:!1,rows:20,style:{width:"100%"},FormHelperTextProps:errorMessageProps,InputProps:{endAdornment:jsxRuntime.exports.jsx(Tooltip,Object.assign({title:"Format JSON"},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({className:e.curlyBracesIconContainer,onClick:()=>b(f.New),style:{alignSelf:"end"},"data-test":"engine-new-new-tdo-job-mutation-format-json"},{children:jsxRuntime.exports.jsx(CurlyBraces,{})}))}))}})]}),jsxRuntime.exports.jsxs(Typography,Object.assign({variant:"caption"},{children:[jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.new-tdo-job-mutation-language",defaultMessage:"Template Language: ",description:"New TDO Job Mutation language"}),jsxRuntime.exports.jsx("a",Object.assign({href:"https://handlebarsjs.com/",target:"_blank",rel:"noreferrer",style:{textDecoration:"none"}},{children:"Handlebars"}))]}))]})),jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,xs:12,sm:6},{children:[jsxRuntime.exports.jsxs("label",{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",gutterBottom:!0,"data-test":"engine-new-reprocessing-tdo-job-mutation-title"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.reprocessing-tdo-job-mutation-title",defaultMessage:"Reprocessing Job Mutation",description:"Reprocessing Job Mutation input field title"})})),jsxRuntime.exports.jsx(InputText,{ref:n,type:"textarea",name:"reprocessingJobTemplate",value:y,onChange:u,inputProps:{onKeyDown:x},onClick:h,"data-test":"engine-new-reprocessing-tdo-job-mutation",multiline:!0,spellCheck:!1,rows:20,style:{width:"100%"},FormHelperTextProps:errorMessageProps,InputProps:{endAdornment:jsxRuntime.exports.jsx(Tooltip,Object.assign({title:"Format JSON"},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({className:e.curlyBracesIconContainer,onClick:()=>b(f.Reprocessing),style:{alignSelf:"end"},"data-test":"engine-new-reprocessing-tdo-job-mutation-format-json"},{children:jsxRuntime.exports.jsx(CurlyBraces,{})}))}))}})]}),jsxRuntime.exports.jsxs(Typography,Object.assign({variant:"caption"},{children:[jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.new-tdo-job-mutation-language",defaultMessage:"Template Language: ",description:"New TDO Job Mutation language"}),jsxRuntime.exports.jsx("a",Object.assign({href:"https://handlebarsjs.com/",target:"_blank",rel:"noreferrer",style:{textDecoration:"none"}},{children:"Handlebars"}))]}))]}))]}))]}))}))},useStyles$7=makeStyles()(e=>({container:{width:"100%",padding:"25px 30px"},subheading:{minWidth:"48.75rem",padding:"30px 0"},text:{width:"39.5rem",padding:"14px 0",borderBottom:"0.5px solid #D5DFE9",fontWeight:400},textCollapsible:{width:"39.5rem",padding:"8px 0",borderBottom:"0.5px solid #D5DFE9",cursor:"pointer"},collapse:{width:"39.5rem"},collapseContent:{maxHeight:200,overflow:"auto"},pre:{whiteSpace:"pre-line"},asterisk:{color:"#D43060",margin:"0 2px"}})),useStyles$6=makeStyles()(e=>({root:{borderRadius:"50%",border:"1px solid #D5DFE9",display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",width:e.spacing(8),height:e.spacing(8)},logo:{maxWidth:"100%",maxHeight:"100%"},veritoneLogo:{maxWidth:"75%",maxHeight:"75%"}})),EngineLogo=({path:e})=>{var t=useStyles$6()["classes"];return jsxRuntime.exports.jsx("div",Object.assign({className:t.root},{children:jsxRuntime.exports.jsx("img",{className:t.logo+" "+(!e&&t.veritoneLogo),src:e||img$1E,alt:"engine logo"})}))},Row=({label:e,value:t,style:s,testName:n,icon:i,asterisk:a,handleOpenCollapse:o})=>jsxRuntime.exports.jsxs(Box,Object.assign({display:"flex",justifyContent:"space-between",alignItems:"center",textTransform:"capitalize","data-test":n+"-container"},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6","data-test":"label-"+n},{children:e})),jsxRuntime.exports.jsxs(Box,Object.assign({className:s,display:"flex",justifyContent:"space-between",alignItems:"center",onClick:o},{children:[jsxRuntime.exports.jsxs(Typography,Object.assign({variant:"h6",sx:{fontWeight:400}},{children:[t,a]})),jsxRuntime.exports.jsx(IconButton,Object.assign({"aria-label":"expand row",size:"small",onClick:o,"data-test":n+"-expand-action-trigger"},{children:i}))]}))]})),CollapseComponent=({open:e,content:t,testName:s,dataType:n})=>{var i=useStyles$7()["classes"];return jsxRuntime.exports.jsx(Box,Object.assign({display:"flex",justifyContent:"end","data-test":s},{children:jsxRuntime.exports.jsx(Collapse,Object.assign({className:i.collapse,in:e,timeout:"auto",unmountOnExit:!0},{children:jsxRuntime.exports.jsx(Box,Object.assign({className:i.collapseContent},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",sx:{fontWeight:400,lineHeight:1.5}},{children:jsxRuntime.exports.jsx("pre",Object.assign({className:"markdown"===n?i.pre:""},{children:t}))}))}))}))}))},ENGINE_CENTER_NEW_TEXT={markdownValue:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.confirmation-step-use-cases-value",defaultMessage:"Markdown",description:"Markdown"}),tdoValue:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.confirmation-step-new-tdo-value",defaultMessage:"New TDO",description:"New TDO"}),reprocessingValue:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.confirmation-step-job-mutation-value",defaultMessage:"Reprocessing",description:"Reprocessing"})},ConfirmationStep=()=>{var e=useStyles$7()["classes"];const[t,s]=react.exports.useState(!1),[n,i]=react.exports.useState(!1),[a,o]=react.exports.useState(!1),[r,l]=react.exports.useState(!1),[d,c]=react.exports.useState(!1),p=useSelector(selectEngine);var u=useSelector(selectIsEditForm)["isEditForm"],m=e=>{e=lodash.exports.sortBy(e,[e=>lodash.exports.toLower(e.dataRegistryName)]),e=lodash.exports.map(e,e=>`• ${e.dataRegistryName}: Version ${e.majorVersion}.`+e.minorVersion);return lodash.exports.join(e,"\n")};return jsxRuntime.exports.jsxs(Box,Object.assign({className:e.container,"data-test":"engine-new-confirmation-step"},{children:[jsxRuntime.exports.jsxs(Grid,{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h2",gutterBottom:!0,color:"#000000"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.confirmation-step-title",defaultMessage:"Engine Summary",description:"Engine Summary"})})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",fontSize:"14px","data-test":"engine-new-confirmation-step-header-description"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.confirmation-step-header-description-{idSuffix}",defaultMessage:"Review the summary of your engines attributes before {verb} its profile",description:"Review the summary of your engines attributes before {verb} its profile.",values:{idSuffix:u?"edit":"new",verb:u?"updating":"creating"}})}))]}),jsxRuntime.exports.jsxs(Grid,Object.assign({className:e.subheading},{children:[jsxRuntime.exports.jsxs(Box,Object.assign({display:"flex",alignItems:"center",textTransform:"capitalize","data-test":"engine-new-confirmation-step-engine-name"},{children:[jsxRuntime.exports.jsx(EngineLogo,{path:p.iconPath}),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h2",ml:3},{children:lodash.exports.isEmpty(p.name)?"-":p.name}))]})),jsxRuntime.exports.jsx(Box,Object.assign({ml:11,"data-test":"engine-new-confirmation-step-engine-description"},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",color:"#2A323C"},{children:lodash.exports.isEmpty(p.description)?"-":p.description}))}))]})),jsxRuntime.exports.jsxs(Box,Object.assign({sx:{width:"100%",pl:11},"data-test":"engine-new-confirmation-step-row-container"},{children:[jsxRuntime.exports.jsx(Row,{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.confirmation-step-deployment-model",defaultMessage:"Deployment Model:",description:"Deployment model"}),value:lodash.exports.isEmpty(p.deploymentModel)?"-":lodash.exports.startCase(p.deploymentModel),style:e.text,asterisk:jsxRuntime.exports.jsx("span",Object.assign({className:e.asterisk},{children:"*"})),testName:"engine-new-confirmation-step-row-deployment-model"}),jsxRuntime.exports.jsx(Row,{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.confirmation-step-engine-class",defaultMessage:"Engine Class:",description:"Engine Class"}),value:lodash.exports.isEmpty(p.class)?"-":lodash.exports.startCase(p.class),style:e.text,asterisk:jsxRuntime.exports.jsx("span",Object.assign({className:e.asterisk},{children:"*"})),testName:"engine-new-confirmation-step-row-engine-class"}),jsxRuntime.exports.jsx(Row,{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.confirmation-step-engine-capability",defaultMessage:"Engine Capability:",description:"Engine Capability"}),value:lodash.exports.isEmpty(p.capability.name)?"-":lodash.exports.startCase(p.capability.name),style:e.text,asterisk:jsxRuntime.exports.jsx("span",Object.assign({className:e.asterisk},{children:"*"})),testName:"engine-new-confirmation-step-row-engine-capability"}),jsxRuntime.exports.jsx(Row,{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.confirmation-step-engine-mode",defaultMessage:"Engine Mode:",description:"Engine Mode"}),value:lodash.exports.isEmpty(p.mode)?"-":lodash.exports.startCase(p.mode),style:e.text,asterisk:jsxRuntime.exports.jsx("span",Object.assign({className:e.asterisk},{children:"*"})),testName:"engine-new-confirmation-step-row-engine-mode"}),jsxRuntime.exports.jsx(Row,{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.confirmation-step-use-cases",defaultMessage:"Use Cases:",description:"Use Cases"}),value:lodash.exports.isEmpty(p.markdown)?"-":ENGINE_CENTER_NEW_TEXT.markdownValue(),handleOpenCollapse:()=>s(!t),icon:t?jsxRuntime.exports.jsx(default_1$4,{}):jsxRuntime.exports.jsx(default_1$5,{}),style:e.textCollapsible,testName:"engine-new-confirmation-step-row-use-cases"}),jsxRuntime.exports.jsx(CollapseComponent,{open:t,content:lodash.exports.isEmpty(p.markdown)?"-":p.markdown,testName:"engine-new-use-cases-collapse-container",dataType:"markdown"}),jsxRuntime.exports.jsx(Row,{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.confirmation-step-custom-fields",defaultMessage:"Custom Fields:",description:"Custom Fields"}),value:lodash.exports.isEmpty(p.customFields)?"-":lodash.exports.join(lodash.exports.map(p.customFields,e=>e.name),", "),style:e.text,testName:"engine-new-confirmation-step-row-custom-fields"}),jsxRuntime.exports.jsx(Row,{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.confirmation-step-input-schemas-label",defaultMessage:"Input Schemas:",description:"Input Schemas"}),style:e.textCollapsible,value:lodash.exports.isEmpty(p.inputSchemas)?"-":jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.confirmation-step-input-schemas-value",defaultMessage:"Selected schemas...",description:"Input Schemas dropdown label"}),handleOpenCollapse:()=>l(!r),icon:r?jsxRuntime.exports.jsx(default_1$4,{}):jsxRuntime.exports.jsx(default_1$5,{}),testName:"engine-new-confirmation-step-row-input-schemas"}),jsxRuntime.exports.jsx(CollapseComponent,{open:r,content:lodash.exports.isEmpty(p.inputSchemas)?"-":m(p.inputSchemas),testName:"engine-new-input-schemas-collapse-container"}),jsxRuntime.exports.jsx(Row,{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.confirmation-step-output-schemas-label",defaultMessage:"Output Schemas:",description:"Output Schemas"}),style:e.textCollapsible,value:lodash.exports.isEmpty(p.outputSchemas)?"-":jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.confirmation-step-output-schemas-value",defaultMessage:"Selected schemas...",description:"Output Schemas dropdown label"}),handleOpenCollapse:()=>c(!d),icon:d?jsxRuntime.exports.jsx(default_1$4,{}):jsxRuntime.exports.jsx(default_1$5,{}),testName:"engine-new-confirmation-step-row-output-schemas"}),jsxRuntime.exports.jsx(CollapseComponent,{open:d,content:lodash.exports.isEmpty(p.outputSchemas)?"-":m(p.outputSchemas),testName:"engine-new-output-schemas-collapse-container"}),jsxRuntime.exports.jsx(Row,{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.confirmation-step-new-tdo",defaultMessage:"New TDO Mutation:",description:"New TDO mutation"}),style:e.textCollapsible,value:lodash.exports.isEmpty(p.standaloneJobTemplates.upload)?"-":ENGINE_CENTER_NEW_TEXT.tdoValue(),handleOpenCollapse:()=>i(!n),icon:n?jsxRuntime.exports.jsx(default_1$4,{}):jsxRuntime.exports.jsx(default_1$5,{}),testName:"engine-new-confirmation-step-row-new-tdo"}),jsxRuntime.exports.jsx(CollapseComponent,{open:n,content:p.standaloneJobTemplates.upload?(()=>{try{return JSON.stringify(JSON.parse(p.standaloneJobTemplates.upload),null,2)}catch(e){return p.standaloneJobTemplates.upload}})():"-",testName:"engine-new-new-tdo-collapse-container"}),jsxRuntime.exports.jsx(Row,{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.confirmation-step-job-mutation",defaultMessage:"Reprocessing Job Mutation:",description:"Reprocessing Job mutation"}),style:e.textCollapsible,value:lodash.exports.isEmpty(p.standaloneJobTemplates.reprocess)?"-":ENGINE_CENTER_NEW_TEXT.reprocessingValue(),handleOpenCollapse:()=>o(!a),icon:a?jsxRuntime.exports.jsx(default_1$4,{}):jsxRuntime.exports.jsx(default_1$5,{}),testName:"engine-new-confirmation-step-row-job-mutation"}),jsxRuntime.exports.jsx(CollapseComponent,{open:a,content:p.standaloneJobTemplates.reprocess?(()=>{try{return JSON.stringify(JSON.parse(p.standaloneJobTemplates.reprocess),null,2)}catch(e){return p.standaloneJobTemplates.reprocess}})():"-",testName:"engine-new-job-mutation-collapse-container"}),jsxRuntime.exports.jsx(Box,Object.assign({mt:5},{children:jsxRuntime.exports.jsxs(Typography,Object.assign({variant:"caption",color:"#2A323C"},{children:[jsxRuntime.exports.jsx("span",Object.assign({className:e.asterisk},{children:"*"})),jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.confirmation-step-bottom-caption",defaultMessage:"Cannot be changed once the engine profile is created.",description:"Cannot be changed once the engine profile is created."})]}))}))]}))]}))},EngineOnboardingFlow=()=>{const t=useDispatch(),s=useSelector(selectEngine),n=useSelector(selectIsEditForm)["isEditForm"],[e,i]=react.exports.useState(!1);var a=e=>i(e);const o=(e=!1)=>{n?t(actions.engineFormState.updateEngineStart({engine:s,openBuildPanel:e})):t(actions.engineFormState.createEngineStart({engine:s,openBuildPanel:e}))};var a=[jsxRuntime.exports.jsx(EngineDescription,{onValidate:a}),jsxRuntime.exports.jsx(FunctionalityStep,{onValidate:a}),jsxRuntime.exports.jsx(UseCasesStep,{onValidate:a}),jsxRuntime.exports.jsx(IntegrationStep,{onValidate:a}),jsxRuntime.exports.jsx(ConfirmationStep,{})],r=[jsxRuntime.exports.jsx(Button,Object.assign({"data-test":"engine-new-docker-image-button",variant:"text",color:"secondary",onClick:()=>o(!0),startIcon:jsxRuntime.exports.jsx(Add,{})},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.docker-image-button",defaultMessage:"Docker Image",description:"Docker Image button text"})}),"docker-image-button"),jsxRuntime.exports.jsx(Button,Object.assign({"data-test":"engine-new-create-engine-button",variant:"contained",color:"primary",onClick:()=>o()},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.{idPrefix}-engine-button",defaultMessage:"{verb}",description:"{verb} engine button text",values:{idPrefix:n?"update":"create",verb:n?"Update":"Create"}})}),"create-engine-button")];return jsxRuntime.exports.jsx(ProgressStepper,{panelName:"ENGINE_CENTER_NEW",sessionKey:"engineOnboardingSession",entityId:s.id,onResumeSession:e=>{t(actions.engineFormState.resumeSession(e))},steps:["General","Functionality","Use Cases","Integration","Confirmation"],stepContent:a,customFinalStepButtons:r,nextButtonDisabled:!e,idPrefix:"engine-center-new-eob"})},appBarHeight$2=55,headerHeight=64,borderBottom$2=5,useStyles$5=makeStyles()(e=>({ecnPanel:{height:`calc(100vh - ${appBarHeight$2}px - ${headerHeight}px - ${borderBottom$2}px)`}})),MainLayout=({engineId:e})=>{var t=useStyles$5()["classes"];const s=useDispatch();var n=useSelector(selectIsLoadingExistingEngineData)["isLoadingExistingEngineData"];return react.exports.useEffect(()=>{e?s(actions.engineFormState.editEngine(e)):s(actions.engineFormState.createNewEngine())},[]),jsxRuntime.exports.jsx("div",Object.assign({role:"presentation","data-test":"engine-center-new-widget",className:t.ecnPanel},{children:n?jsxRuntime.exports.jsx(Box,Object.assign({sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},{children:jsxRuntime.exports.jsx(CircularProgress,{})})):jsxRuntime.exports.jsx(EngineOnboardingFlow,{})}))},EngineCenterNew=e=>jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getEngineCenterNewModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(MainLayout,Object.assign({},e))})}))})}),appBarHeight$1=55,borderBottom$1=5,mainHeight=`calc(100vh - ${appBarHeight$1+borderBottom$1}px)`,useStyles$4=makeStyles()(e=>({root:{display:"flex",flexFlow:"column",height:mainHeight},container:{padding:e.spacing(5),"& input, textarea":{fontWeight:400},"& fieldset":{borderColor:"#D5DFE9"}},"& fieldset":{borderColor:"#D5DFE9"},textInput:{padding:14.5},header:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",marginBottom:20},addButtonWrapper:{flexGrow:1,display:"flex",justifyContent:"flex-end",alignItems:"flex-end",padding:"0px 20px 20px 20px"},inputSelect:{width:"100%"},optional:{fontSize:12,marginBottom:e.spacing(1),marginLeft:e.spacing(1),color:"#9CA8B4"}})),SchemaOrText=()=>{var e=useStyles$4()["classes"];return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs(Box,Object.assign({display:"flex"},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",gutterBottom:!0},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"engine-center-new.text-schema.default",defaultMessage:"Default Value",description:"You can set a default value for either text or schema selection"})})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",gutterBottom:!0,className:e.optional,id:"engine-center-new.text-schema.default.optional"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"engine-center-new.text-schema.default.optional",defaultMessage:"(Optional)",description:"Set the optional default value for the number field"})}))]})),jsxRuntime.exports.jsx(InputText,{inputProps:{className:e.textInput},"data-test":"engine-new-custom-text-schema-default",variant:"outlined",type:"text",name:"defaultValue",fullWidth:!0,rules:{maxLength:2048}})]})},Num=()=>{var e=useStyles$4()["classes"];const{getValues:s,trigger:t}=useFormContext();return jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,container:!0,xs:12,spacing:2,"data-test":"engine-new-custom-number-container"},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,xs:3},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",gutterBottom:!0,"data-test":"engine-new-custom-number-label-min"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"engine-center-new.number-field.min",defaultMessage:"Min",description:"Set the minimum value for the number field"})})),jsxRuntime.exports.jsx(InputText,{inputProps:{className:e.textInput},"data-test":"engine-new-custom-number-min",variant:"outlined",type:"number",name:"min",fullWidth:!0,onChange:()=>{isEmpty_1(s("max"))||t("max"),isEmpty_1(s("defaultValue"))||t("defaultValue")},rules:{required:!0,min:-99999,max:99999,validate:{lessThanMax:e=>{return t="Should be less than or equal to Max",e<=toNumber_1(s("max"))||!!isEmpty_1(s("max"))||t;var t}}}})]})),jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,xs:3},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",gutterBottom:!0,"data-test":"engine-new-custom-number-label-max"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"engine-center-new.number-field.max",defaultMessage:"Max",description:"Set the maximum value for the number field"})})),jsxRuntime.exports.jsx(InputText,{inputProps:{className:e.textInput},"data-test":"engine-new-custom-number-max",variant:"outlined",type:"number",name:"max",fullWidth:!0,onChange:()=>{isEmpty_1(s("min"))||t("min"),isEmpty_1(s("defaultValue"))||t("defaultValue")},rules:{required:!0,min:-99999,max:99999,validate:{greaterThanMin:e=>{return t="Should be greater than or equal to Min",e>=toNumber_1(s("min"))||!!isEmpty_1(s("min"))||t;var t}}}})]})),jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,xs:3},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",gutterBottom:!0,"data-test":"engine-new-custom-number-label-step"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"engine-center-new.number-field.step",defaultMessage:"Step",description:"Set the incrementing step value for the number field"})})),jsxRuntime.exports.jsx(InputText,{inputProps:{className:e.textInput},"data-test":"engine-new-custom-number-step",variant:"outlined",type:"number",name:"step",fullWidth:!0,rules:{required:!0,min:-99999,max:99999}})]})),jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,xs:3},{children:[jsxRuntime.exports.jsxs(Box,Object.assign({display:"flex"},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",gutterBottom:!0,"data-test":"engine-new-custom-number-label-default"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"engine-center-new.number-field.default",defaultMessage:"Default",description:"Set the default value for the number field"})})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",gutterBottom:!0,className:e.optional,"data-test":"engine-new-custom-number-label-optional"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"engine-center-new.number-field.optional",defaultMessage:"(Optional)",description:"Set the optional default value for the number field"})}))]})),jsxRuntime.exports.jsx(InputText,{inputProps:{className:e.textInput},"data-test":"engine-new-custom-number-default",variant:"outlined",type:"number",name:"defaultValue",fullWidth:!0,rules:{min:-99999,max:99999,validate:{betweenMinAndMax:e=>{return t="Should be between Min and Max",!!isEmpty_1(e=e)||toNumber_1(s("min"))<=e&&e<=toNumber_1(s("max"))||!(!isEmpty_1(s("min"))||!isEmpty_1(s("max")))||!!(isEmpty_1(s("min"))&&e<=toNumber_1(s("max")))||!!(isEmpty_1(s("max"))&&e>=toNumber_1(s("min")))||t;var t}}}})]}))]}))},useStyles$3=makeStyles()(e=>({input:{marginBottom:"10px"},radio:{"&:checked":{color:"red"}}})),PicklistInput=({handleRemoveItem:e,isMulti:t,handleAddItem:s,index:n})=>{const i=useFormContext()["getValues"];var a=useStyles$3()["classes"];const o=(t,s,e)=>{var n=i("options");return!(1<filter_1(n,e=>e[t]===s).length)||e};return jsxRuntime.exports.jsxs(Grid,Object.assign({className:a.input,container:!0,spacing:4},{children:[jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:2},{children:jsxRuntime.exports.jsx(Box,Object.assign({display:"flex",justifyContent:"center",alignItems:"center"},{children:t?jsxRuntime.exports.jsx(InputCheckbox,{label:"",name:`options.${n}.checked`,"data-test":"os-engine-center-new-picklist.checkbox-"+n}):jsxRuntime.exports.jsx(FormControlLabel,{label:"",control:jsxRuntime.exports.jsx(Radio,{classes:{root:a.radio}}),"data-test":"os-engine-center-new-picklist.radio-"+n,value:""+n})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:4},{children:jsxRuntime.exports.jsx(InputText,{"data-test":"os-engine-center-new-picklist.textfield-key-"+n,variant:"outlined",type:"text",name:`options.${n}.key`,fullWidth:!0,rules:{required:!0,validate:{unique:e=>o("key",e,"This key already exists")}}})})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:4},{children:jsxRuntime.exports.jsx(InputText,{"data-test":"os-engine-center-new-picklist.textfield-value-"+n,variant:"outlined",type:"text",name:`options.${n}.value`,fullWidth:!0,rules:{required:!0,validate:{unique:e=>o("value",e,"This value already exists")}}})})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:2},{children:size_1(i("options"))-1===n?jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:s,"data-test":"os-engine-center-new-picklist.add-button-"+n,size:"large"},{children:jsxRuntime.exports.jsx(default_1$2,{})})):jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:()=>e(n),"data-test":"os-engine-center-new-picklist.remove-button-"+n,size:"large"},{children:jsxRuntime.exports.jsx(default_1$3,{})}))}))]}))},Picklist=({isMulti:s})=>{const{control:e,getValues:t,setValue:n}=useFormContext(),{fields:i,append:a,remove:o}=useFieldArray({control:e,name:"options"}),r={key:"",value:""},l={key:"",value:"",checked:!1},d=()=>{a(s?l:r)},c=e=>{0<=e&&(e===toNumber_1(t("defaultValue"))&&n("defaultValue",""),o(e))};var p=()=>(0===i.length&&a(s?l:r),i.map((e,t)=>jsxRuntime.exports.jsx(Box,{children:jsxRuntime.exports.jsx(PicklistInput,{handleAddItem:d,handleRemoveItem:c,isMulti:s,index:t})},e.id)));return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0,spacing:4},{children:[jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:2},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6","data-test":"os-engine-center-new-picklist.default-header",gutterBottom:!0},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new-picklist.default-label",defaultMessage:"Default",description:"label for default column"})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:4},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6","data-test":"os-engine-center-new-picklist.key-header",gutterBottom:!0},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new-picklist.key-label",defaultMessage:"Key",description:"label for key column"})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:4},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6","data-test":"os-engine-center-new-picklist.value-header",gutterBottom:!0},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new-picklist.value-label",defaultMessage:"Value",description:"label for value column"})}))})),jsxRuntime.exports.jsx(Grid,{item:!0,xs:2})]})),!s&&jsxRuntime.exports.jsx(InputRadioGroup,Object.assign({name:"defaultValue"},{children:p()})),s&&p()]})},CustomFieldsForm=({hidePanel:i,isEdit:a=!1,editIndex:o=-1})=>{var e=useStyles$4()["classes"];const r=useDispatch(),n=useSelector(selectCustomFields);var t=()=>{if(a&&0<=o){var e;if(n[o].type===EngineFieldType.Picklist)return e=get_1(n,`[${o}].options`),t=get_1(n,`[${o}].defaultValue`),e=findIndex_1(e,{value:t}),Object.assign(Object.assign({},n[o]),{defaultValue:-1===e?"":toString_1(e)});if(n[o].type!==EngineFieldType.MultiPicklist)return n[o];{var t=get_1(n,`[${o}].options`);const s=get_1(n,`[${o}].defaultValues`);return Object.assign(Object.assign({},n[o]),{options:map_1(t,e=>({key:e.key,value:e.value,checked:includes_1(s,e.value)}))})}}return{name:"",type:EngineFieldType.Text,required:!1,defaultValue:""}},s=t();const l=useForm({mode:"onChange",defaultValues:s}),[d,c]=react.exports.useState(t().type);t=e=>{let t;var s,n;t=e.type===EngineFieldType.Picklist?Object.assign(Object.assign({},e),{defaultValue:get_1(e,`options[${e.defaultValue}].value`,"")}):e.type===EngineFieldType.MultiPicklist?(s=map_1(filter_1(e.options,{checked:!0}),e=>e.value),n=map_1(e.options,e=>({key:e.key,value:e.value})),Object.assign(Object.assign({},e),{options:n,defaultValues:s})):e.type===EngineFieldType.Number?Object.assign(Object.assign({},e),{min:toNumber_1(e.min),max:toNumber_1(e.max),step:toNumber_1(e.step)}):e,a?r(actions.engineFormState.updateCustomField({customField:t,index:o})):r(actions.engineFormState.addCustomField(t)),i()};return jsxRuntime.exports.jsx(FormProvider,Object.assign({},l,{children:jsxRuntime.exports.jsxs("form",Object.assign({className:e.root,onSubmit:l.handleSubmit(t)},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({className:e.container,container:!0,spacing:5,"data-test":"engine-new-custom-fields-form-container"},{children:[jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12},{children:jsxRuntime.exports.jsxs(Box,Object.assign({className:e.header},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h1",color:"secondary","data-test":"engine-new-custom-fields-header-title"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"engine-center-new.custom-fields.form-title",defaultMessage:"{label} Custom Fields",description:"Form label for supported file types",values:{label:a?"Edit":"Add"}})})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage,{id:"engine-center-new.custom-fields.form-title-close",defaultMessage:"Close",description:"Form label for close tooltip label"})},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:i,"aria-labelledby":"engine-center-new-close-panel","data-test":"engine-description-input-icon"},{children:jsxRuntime.exports.jsx(Close,{})}))}))]}))})),jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,xs:12},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",gutterBottom:!0,"data-test":"engine-new-custom-fields-header-name"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"engine-center-new.custom-fields.field-name",defaultMessage:"Field Name",description:"You can set a field name"})})),jsxRuntime.exports.jsx(InputText,{inputProps:{maxLength:50,className:e.textInput},variant:"outlined",type:"text",name:"name",fullWidth:!0,"data-test":"engine-new-custom-fields-name-content",rules:{required:!0,maxLength:50}})]})),jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,xs:12},{children:[jsxRuntime.exports.jsx(Box,Object.assign({display:"flex"},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",gutterBottom:!0,"data-test":"engine-new-custom-fields-header-label"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"engine-center-new.custom-fields.field-label",defaultMessage:"Field Label",description:"You can set a field label"})}))})),jsxRuntime.exports.jsx(InputText,{variant:"outlined",type:"text",name:"label",fullWidth:!0,"data-test":"engine-new-custom-fields-label-content",inputProps:{maxLength:50,className:e.textInput},rules:{required:!0,maxLength:50}})]})),jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,xs:12},{children:[jsxRuntime.exports.jsxs(Box,Object.assign({display:"flex"},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",gutterBottom:!0,"data-test":"engine-new-custom-fields-header-information"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"engine-center-new.custom-fields.field-information",defaultMessage:"Field Information",description:"You can set a field information"})})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",gutterBottom:!0,className:e.optional,"data-test":"engine-new-custom-fields-header-information-optional"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"engine-center-new.information.optional",defaultMessage:"(Optional)",description:"Set the optional default value for the number field"})}))]})),jsxRuntime.exports.jsx(InputText,{variant:"outlined",name:"info",fullWidth:!0,multiline:!0,rows:5,"data-test":"engine-new-custom-fields-information-content",inputProps:{maxLength:250},InputProps:{className:e.textInput},rules:{maxLength:250}})]})),jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,xs:12},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",gutterBottom:!0,"data-test":"engine-new-custom-fields-header-type"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"engine-center-new.custom-fields.field-type",defaultMessage:"Field Type",description:"You can set a field type"})})),jsxRuntime.exports.jsx(InputSelect,Object.assign({inputProps:{maxLength:50,className:e.textInput},className:e.inputSelect,type:"text",name:"type",value:d,onChange:e=>{l.resetField("defaultValue"),l.unregister("defaultValues"),l.unregister("min"),l.unregister("max"),l.unregister("step"),l.resetField("options"),l.unregister("options"),l.setValue("type",e.target.value),c(e.target.value)},style:{minWidth:"100%"},"data-test":"engine-new-custom-fields-type-content",rules:{required:!0}},{children:map_1(keys_1(EngineFieldType),(e,t)=>jsxRuntime.exports.jsx(MenuItem,Object.assign({value:EngineFieldType[e]},{children:EngineFieldType[e]}),t))}))]})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12,style:{padding:"5px 0 0 25px"}},{children:jsxRuntime.exports.jsx(Box,Object.assign({display:"flex",justifyContent:"start",alignItems:"center"},{children:jsxRuntime.exports.jsx(InputCheckbox,{name:"required",defaultChecked:s.required,label:jsxRuntime.exports.jsx(FormattedMessage,{id:"engine-center-new.custom-fields.required-checkbox",defaultMessage:"Required Field",description:"Required field checkbox"})})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12},{children:(()=>{switch(d){case EngineFieldType.Text:case EngineFieldType.SchemaSelection:return jsxRuntime.exports.jsx(SchemaOrText,{});case EngineFieldType.Number:return jsxRuntime.exports.jsx(Num,{});case EngineFieldType.Picklist:return jsxRuntime.exports.jsx(Picklist,{isMulti:!1});case EngineFieldType.MultiPicklist:return jsxRuntime.exports.jsx(Picklist,{isMulti:!0});default:return null}})()}))]})),jsxRuntime.exports.jsx(Box,Object.assign({className:e.addButtonWrapper},{children:jsxRuntime.exports.jsx(Button,Object.assign({type:"submit",disabled:!get_1(l,"formState.isValid"),onSubmit:t,variant:"contained",color:"primary","data-test":"engine-new-custom-fields-button-submit"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new-custom-fields.submit-button-label",defaultMessage:"{label}",description:"{label} Custom Fields",values:{label:a?"Update":"Add"}})}))}))]}))}))},EngineCenterCustomFieldsForm=e=>jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(CustomFieldsForm,{hidePanel:e.hidePanel,isEdit:e.isEdit,editIndex:e.editIndex})})})}),useStyles$2=makeStyles()(e=>({applyButtonWrapper:{padding:"0px 20px 20px 20px"},supportedFilesTypeHeader:{display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"space-between",padding:"0px 10px",marginBottom:20},supportedFilesTypeWrapper:{padding:"8px 20px 20px 20px"},fileTypeItem:{border:"1px solid #D5DFE9",borderRadius:5,marginBottom:20,overflow:"hidden"},fileTypeItemHeader:{padding:18,borderBottom:"1px solid #D5DFE9",background:"#FAFAFA",display:"flex",alignItems:"center"},fileTypeItemHeaderRow:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},fileTypeHeaderRowItem:{display:"flex",alignItems:"center"},fileTypeItemBody:{display:"flex",alignItems:"center",padding:"26px 0",flexWrap:"wrap"},fileTypeItemExtension:{width:"50%",padding:"4px 0 4px 54px"},fileTypeItemExtensionFullWidth:{width:"100%"},fileItemTypeName:{marginLeft:12}})),icons={video:jsxRuntime.exports.jsx(VideoCamera,{}),image:jsxRuntime.exports.jsx(Image,{}),audio:jsxRuntime.exports.jsx(Sound,{}),text:jsxRuntime.exports.jsx(Description,{}),application:jsxRuntime.exports.jsx(Description,{})},FileItemIcon=({filetype:e})=>{var[e]=e.split("/");return e&&icons[e]?icons[e]:jsxRuntime.exports.jsx(UnknownDocument,{})},InputType=({fileItemType:n,currentTypes:e,handleInputTypes:i,handleSelectAll:t})=>{var s;const a=useStyles$2()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:a.fileTypeItem,"data-test":"engine-center-new-supported-file-item","data-testtype":"engine-center-new-input-type-container."+n.name},{children:[jsxRuntime.exports.jsx("header",Object.assign({className:a.fileTypeItemHeader},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:a.fileTypeItemHeaderRow},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:a.fileTypeHeaderRowItem},{children:[jsxRuntime.exports.jsx("span",Object.assign({"data-test":"engine-center-new-file-item-icon"},{children:jsxRuntime.exports.jsx(FileItemIcon,{filetype:n.type})})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h2",className:a.fileItemTypeName,"data-test":"engine-center-new-file-type-name"},{children:n.name}))]})),jsxRuntime.exports.jsxs("div",Object.assign({className:a.fileTypeHeaderRowItem,"data-test":"engine-center-new-input-type-name-checkbox.select-all-container."+n.name},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1","data-test":"engine-center-new-file-type-select-all"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new-input-type-flyout.select-all-label",defaultMessage:"Select All",description:"Select all mimetypes of a file type"})})),jsxRuntime.exports.jsx(Checkbox,{"data-test":"engine-center-new-input-type-name-checkbox.select-all."+n.name,checked:n.extensions.every(t=>lodash.exports.some(e,e=>e.mimeType===t)),onChange:e=>t(e.target.checked,n.name)})]}))]}))})),jsxRuntime.exports.jsx("div",Object.assign({className:a.fileTypeItemBody,"data-test":"engine-center-new-extension-list"},{children:null==(s=null==n?void 0:n.extensions)?void 0:s.map(t=>{return jsxRuntime.exports.jsxs(Typography,Object.assign({variant:"body2","data-test":"engine-center-new-input-type-name",color:"textPrimary",className:classNames(a.fileTypeItemExtension,{[a.fileTypeItemExtensionFullWidth]:n.type===FileItemTypeNames.Text})},{children:[jsxRuntime.exports.jsx(Checkbox,{"data-test":"engine-center-new-input-type-name-checkbox."+t,checked:lodash.exports.some(e,e=>e.mimeType===t),value:t,onChange:(s={name:n.name,type:n.type,mimeType:t},e=>{var{value:e,checked:t}=e.target;i&&i({inputType:s,value:e,checked:t})})}),".",t]}),t);var s})}))]}))},InputTypeFlyout$1=({fileTypes:e,hidePanel:t,savedInputTypes:s=[],handleInput:n,handleSelectAll:i})=>{var a=useStyles$2()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:a.supportedFilesTypeWrapper},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:a.supportedFilesTypeHeader},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h1",color:"secondary","data-test":"engine-center-new-supported-files-title"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new-input-type-flyout.panel-header",defaultMessage:"Supported File Types",description:"Form label for supported file types"})})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new-input-type-flyout.close-button-tooltip",defaultMessage:"Close",description:"Close panel"})},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:t,"aria-labelledby":"engine-center-new-close-panel","data-test":"engine-center-new-close-panel",size:"large"},{children:jsxRuntime.exports.jsx(Close,{})}))}))]})),e.map(t=>jsxRuntime.exports.jsx(InputType,{currentTypes:lodash.exports.filter(s,e=>e.type===t.type),handleInputTypes:n,fileItemType:t,handleSelectAll:i},t.name))]}))},InputTypeFlyout=({engineStatePropertyName:e="supportedInputTypes"})=>{const t=useDispatch(),s=useSelector(selectEngine);const n=()=>{t(unmountPanel("ENGINE_CENTER_INPUT_TYPE_FLYOUT"))},[i,a]=react.exports.useState(s[e]),o=react.exports.useRef(s[e]);react.exports.useEffect(()=>{lodash.exports.isEqual(o,s[e])||(o.current=s[e],a(s[e]))},[s,e]);var r=useStyles$2()["classes"];return jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsxs(AIWareCacheProvider,{children:[jsxRuntime.exports.jsx(InputTypeFlyout$1,{fileTypes:DEFAULT_ACCEPTABLE_FILE_TYPES,handleInput:({inputType:t,checked:e})=>{a(e?lodash.exports.unionBy(i,[t],"mimeType"):lodash.exports.reject(i,e=>e.mimeType===t.mimeType))},hidePanel:n,savedInputTypes:i,handleSelectAll:(e,t)=>{if(e){const s=DEFAULT_ACCEPTABLE_FILE_TYPES.find(e=>e.name===t);e=s.extensions,e=lodash.exports.map(e,e=>({name:t,mimeType:e,type:s.type}));a(lodash.exports.unionBy(i,e,"mimeType"))}else a(lodash.exports.reject(i,e=>e.name===t))}}),jsxRuntime.exports.jsx(Box,Object.assign({className:r.applyButtonWrapper,display:"flex",justifyContent:"flex-end"},{children:jsxRuntime.exports.jsx(Button,Object.assign({onClick:()=>{t(actions.engineFormState.updateEngineFormField({field:e,value:i})),n()},variant:"contained",color:"primary"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new-input-type-flyout.apply-button-label",defaultMessage:"Apply",description:"Save changes"})}))}))]})})})};function useLineNumbers(t){return react.exports.useMemo(()=>{var e=lodash.exports.size(lodash.exports.split(t,"\n"));return lodash.exports.map(new Array(e),(e,t)=>t+1).join("\n")},[t])}const editorStyles={margin:"0",padding:"10px 0",borderRadius:"0",resize:"none",fontSize:"1em",fontFamily:"Nunito, lucida console, courier new, courier, monospace",lineHeight:"1.6em",outline:"none",boxSizing:"border-box",whiteSpace:"nowrap","&:focus-visible":{outline:"none"},"& textarea":{lineHeight:"2em",whiteSpace:"pre"}},useStyles$1=makeStyles()(e=>({codeEditor:lodash.exports.merge(lodash.exports.cloneDeep(editorStyles),{paddingLeft:"calc(3rem + 10px)",width:"100%",backgroundColor:"#303841",borderColor:"#303841",color:"#ffffff",caretColor:"#FFBB0A"}),lineCounter:lodash.exports.merge(lodash.exports.cloneDeep(editorStyles),{display:"block",borderColor:"#4F565E",overflowY:"hidden",boxShadow:"none",color:"#9CA8B4",backgroundColor:"#4F565E",position:"absolute",width:"3rem",paddingRight:".625rem",top:0,left:0,bottom:0,minHeight:"100%",pointerEvents:"none","& textarea":{textAlign:"right",fontWeight:"600"}})})),InputTypeMarkdown=({value:e,name:t,onChange:s})=>{const n=react.exports.useRef();var i=react.exports.useRef(),a=react.exports.useRef(),o=useStyles$1()["classes"],r=useLineNumbers(e),[l,d]=useTabCapturing({inputRef:a,onChange:s});return jsxRuntime.exports.jsxs(Box,Object.assign({position:"relative",padding:0,margin:0,width:"100%"},{children:[jsxRuntime.exports.jsx(InputUnstyled,{"data-test":"input-type-markdown-code-editor",name:t,ref:i,inputRef:a,className:o.codeEditor,onScroll:e=>{lodash.exports.isNil(n.current)||(n.current.scrollTop=e.currentTarget.scrollTop,n.current.scrollLeft=e.currentTarget.scrollLeft)},onKeyDown:l,onChange:e=>{s(e)},onClick:d,spellCheck:!1,value:e,multiline:!0}),jsxRuntime.exports.jsx(InputUnstyled,{"data-test":"input-type-markdown-line-numbers",ref:n,className:o.lineCounter,spellCheck:!1,value:r,multiline:!0,readOnly:!0})]}))},LISTBOX_PADDING=8;function renderRow(e){var{data:e,index:t,style:s}=e,e=e[t],t=Object.assign(Object.assign({},s),{top:s.top+LISTBOX_PADDING});return has_1(e,"group")?jsxRuntime.exports.jsx(ListSubheader,Object.assign({sx:{backgroundColor:"#F2F5F9"},component:"div",style:t},{children:e.group}),e.key):jsxRuntime.exports.jsx(Typography,Object.assign({component:"li"},e[0],{noWrap:!0,style:t},{children:e[1]}))}const OuterElementContext=react.exports.createContext({}),OuterElementType=react.exports.forwardRef((e,t)=>{var s=react.exports.useContext(OuterElementContext);return jsxRuntime.exports.jsx("div",Object.assign({ref:t},e,s))});function useResetCache(e){const t=react.exports.useRef(null);return react.exports.useEffect(()=>{null!=t.current&&t.current.resetAfterIndex(0,!0)},[e]),t}const ListboxAdapter=react.exports.forwardRef(function(e,t){var s=e["children"],e=__rest(e,["children"]);const n=[];s.forEach(e=>{n.push(e),n.push(...e.children||[])});s=useMediaQuery(useTheme$1().breakpoints.up("sm"),{noSsr:!0});const i=n.length,a=s?36:48,o=e=>has_1(e,"group")?48:a;s=useResetCache(i);return jsxRuntime.exports.jsx("div",Object.assign({ref:t},{children:jsxRuntime.exports.jsx(OuterElementContext.Provider,Object.assign({value:e},{children:jsxRuntime.exports.jsx(VariableSizeList,Object.assign({itemData:n,height:(8<i?8*a:n.map(o).reduce((e,t)=>e+t,0))+2*LISTBOX_PADDING,width:"100%",ref:s,outerElementType:OuterElementType,innerElementType:"ul",itemSize:e=>o(n[e]),overscanCount:5,itemCount:i},{children:renderRow}))}))}))}),SchemaAutocomplete=({ref:e,disabled:t,options:s,value:n,inputValue:i,onChange:a,onInputChange:o})=>{const r=useSelector(selectIsFetchingDataRegistries);var l=styled(Popper)({["& ."+autocompleteClasses.listbox]:{boxSizing:"border-box","& ul":{padding:0,margin:0}}});return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Box,Object.assign({display:"flex"},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",gutterBottom:!0,"data-test":"engine-center-new-schemas-select-schema"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"engine-center-new.schemas.select-schema",defaultMessage:"Schema",description:"Select schema dropdown label"})}))})),jsxRuntime.exports.jsx(Autocomplete,{"data-test":"engine-center-new-schemas-select-schema-autocomplete",ref:e,disabled:t,options:s,disableListWrap:!0,value:n,inputValue:i,PopperComponent:l,ListboxComponent:ListboxAdapter,loading:r,loadingText:jsxRuntime.exports.jsx(FormattedMessage,{id:"engine-center-new.schemas.loading-text",defaultMessage:"Loading...",description:"Loading text for fetching data registries"}),renderInput:e=>jsxRuntime.exports.jsx(TextField,Object.assign({},e,{variant:"outlined",fullWidth:!0,InputProps:Object.assign(Object.assign({},e.InputProps),{placeholder:"Select a Schema...",endAdornment:jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[r?jsxRuntime.exports.jsx(CircularProgress,{color:"inherit",size:20}):null,e.InputProps.endAdornment]})})})),renderOption:(e,t)=>[e,t.label],groupBy:e=>toUpper_1(get_1(e,"label[0]")),renderGroup:e=>e,onChange:a,onInputChange:o})]})},styles={container:{border:"1px solid #D5DFE9",borderRadius:"5px",marginBottom:"20px",overflow:"hidden"},header:{padding:"18px",borderBottom:"1px solid #D5DFE9",background:"#FAFAFA",display:"flex",alignItems:"center",verticalAlign:"middle !important"},headerText:{marginLeft:"12px"},body:{display:"flex",alignItems:"center",padding:"26px 0",flexWrap:"wrap"}},GroupBox=({heading:e,headingIcon:t,children:s})=>jsxRuntime.exports.jsxs(Box,Object.assign({sx:styles.container},{children:[jsxRuntime.exports.jsxs(Box,Object.assign({sx:styles.header},{children:[t,jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h2",sx:styles.headerText},{children:e}))]})),jsxRuntime.exports.jsx(Box,Object.assign({sx:styles.body},{children:s}))]})),SchemaVersions=({schemaVersions:e,selectedVersionIndexes:s,onCheck:n})=>jsxRuntime.exports.jsx(GroupBox,Object.assign({heading:"Versions",headingIcon:jsxRuntime.exports.jsx(default_1,{sx:{verticalAlign:"middle",paddingBottom:"3px"}})},{children:map_1(e,(e,t)=>jsxRuntime.exports.jsx(FormControlLabel,{"data-test":"engine-center-new.schemas.version-option-label-"+t,sx:{width:"100%",padding:"4px 0 4px 54px",alignItems:"center"},control:jsxRuntime.exports.jsx(Checkbox,{"data-test":"engine-center-new.schemas.version-option-checkbox-"+t,checked:includes_1(s,t),name:e.id,value:t,onChange:n}),label:jsxRuntime.exports.jsx(FormattedMessage,{id:"engine-center-new.schemas.version-label.{idPostfix}",defaultMessage:"{label}",description:"Version option label",values:{label:`Version ${e.majorVersion}.`+e.minorVersion,idPostfix:e.majorVersion+"."+e.minorVersion}})},e.id))})),headerStyles={display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},SchemaFormHeader=({name:e,hidePanel:t})=>jsxRuntime.exports.jsxs(Box,Object.assign({sx:headerStyles},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h1",color:"secondary","data-test":"engine-center-new-schemas-header-title"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"engine-center-new.schemas.form-title",defaultMessage:"{label}",description:"Label for title of the form",values:{label:e}})})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage,{id:"engine-center-new.schemas.form-title-close",defaultMessage:"Close",description:"Form label for close tooltip label"})},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:t,"aria-labelledby":"engine-center-new-close-panel","data-test":"engine-description-input-icon"},{children:jsxRuntime.exports.jsx(Close,{})}))}))]})),appBarHeight=55,borderBottom=5,containerStyles={justifyContent:"space-between",flexDirection:"column",height:`calc(100vh - ${appBarHeight}px - ${borderBottom}px)`,display:"flex"},addButtonStyles={flexGrow:1,display:"flex",justifyContent:"flex-end",alignItems:"flex-end",padding:"0px 20px 20px 20px"},SchemasForm=({hidePanel:t,name:e,isEdit:n,editId:s,schemaType:i})=>{const a=useDispatch();var o=react.exports.useRef(null),r=useSelector(preferredLanguageSelector);const l=AIWareFormatMessage(r),d=useSelector(selectIsFetchingDataRegistries),c=useSelector(selectDataRegistries),p=useSelector(i===SchemaIO.Input?selectInputSchemas:selectOutputSchemas),[u,m]=react.exports.useState([]),[g,x]=react.exports.useState(null),[h,j]=react.exports.useState([]),[y,f]=react.exports.useState([]),[b,S]=react.exports.useState(-1),[R,v]=react.exports.useState(""),[E,I]=react.exports.useState(null),T=(react.exports.useEffect(()=>{!d&&isEmpty_1(c)&&a(actions.engineFormState.fetchDataRegistries())},[]),react.exports.useEffect(()=>{var e=map_1(c,(e,t)=>{t={label:get_1(e,"name",""),index:t};return e.id===s&&x(t),t});m(e)},[c]),react.exports.useEffect(()=>{isEmpty_1(g)||(v(g.label),I(g),S(g.index))},[u]),()=>{f([]),j([]),f([]),S(-1),I(null)});react.exports.useEffect(()=>{if(0<=b){var e=get_1(c,`[${b}].schemas.records`,[]);if(j(e),n){let t=0;const s=map_1(p,e=>e.id);e=flatMap_1(e,e=>includes_1(s,e.id)?[t++]:(t++,[]));f(e)}else f([0])}else T()},[b]);return jsxRuntime.exports.jsxs(Box,Object.assign({sx:containerStyles},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0,padding:5,spacing:5,justifyContent:"flex-start",alignItems:"flex-start","data-test":"engine-center-new-schemas-form-container"},{children:[jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12},{children:jsxRuntime.exports.jsx(SchemaFormHeader,{name:e,hidePanel:t})})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12},{children:jsxRuntime.exports.jsx(SchemaAutocomplete,{ref:o,disabled:n,options:u,value:E,inputValue:R,onChange:(e,t)=>{var s=get_1(t,"index",-1);S(s),I(t)},onInputChange:(e,t)=>{v(t)}})})),0<=b&&jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12,"data-test":"engine-center-new-schema-versions"},{children:jsxRuntime.exports.jsx(SchemaVersions,{schemaVersions:h,selectedVersionIndexes:y,onCheck:e=>{const t=toNumber_1(e.target.value);includes_1(y,t)?(e=y,remove_1(e,e=>e===t),f([...e])):(e=[...y,t],f(e))}})}))]})),jsxRuntime.exports.jsx(Box,Object.assign({sx:addButtonStyles},{children:jsxRuntime.exports.jsx(Button,Object.assign({disabled:isEmpty_1(y)||b<0,variant:"contained",color:"primary","data-test":"engine-center-new-schemas-button-submit",onClick:()=>{var e=map_1(y,e=>{e=get_1(c,`[${b}].schemas.records[${e}]`);return{id:e.id,dataRegistryId:e.dataRegistryId,dataRegistryName:c[b].name,majorVersion:e.majorVersion,minorVersion:e.minorVersion}});a(actions.engineFormState.addSchemas({schemas:e,schemaType:i})),(n?(a(actions.engineFormState.updateSchemas({updatedSchemas:e,schemaType:i,dataRegistryId:c[b].id})),t):(a(showMessage({content:l({id:"engine-center-new.snackbar.addSchemaSuccess",defaultMessage:[{type:0,value:"Added schema to engine successfully."}]}),severity:MessageSeverity.Info})),T))()}},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new-schemas.submit-button-label",defaultMessage:"{label}",description:"Submit Schemas",values:{label:n?"Update":"Add"}})}))}))]}))},SchemasFormPanel=e=>jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(SchemasForm,{name:e.name,hidePanel:e.hidePanel,isEdit:e.isEdit,editId:e.editId,schemaType:e.schemaType})})})}),useStyles=makeStyles()(e=>({backButton:{background:"none",color:"black",marginRight:"20px",":hover":{background:"#D3D3D3"}},root:{width:1020,position:"relative"},panel:{backgroundColor:e.palette.background.paper,boxShadow:"0px 0px 12px rgba(0, 0, 0, 0.25)",height:"100%"},container:{display:"flex",flexDirection:"column",minHeight:"100%"},markdownHeaderbar:{top:0,position:"sticky",zIndex:100,backgroundColor:"white"},expand:{marginTop:"-20px"},fullScreen:{position:"fixed",width:"100%",height:"100vh",overflow:"auto",top:0,left:0,right:0,bottom:0,zIndex:1004},fullScreenButton:{marginTop:"-50px"},tabs:{"& .Sdk-MuiTabs-indicator":{backgroundColor:"black",color:"black"},"& .Sdk-Mui-selected":{color:"black"}},bottomButtons:{marginTop:"20px"},markdown:{height:"100%",background:"#303841"},previewMarkdown:{height:"100%",position:"relative",padding:"20px",background:"#303841"},previewMarkdownContent:{background:"white",padding:"15px",borderRadius:"3px"}})),PreviewMarkdown=()=>{var e=useSelector(selectEngine);return jsxRuntime.exports.jsx(ReactMarkdown,{children:e.markdown})};var index_esm=Object.freeze({__proto__:null,EngineCenterCustomFieldsForm:EngineCenterCustomFieldsForm,EngineCenterNew:EngineCenterNew,GenericSelect:GenericSelect,Heading:Heading,InputCheckbox:InputCheckbox,InputRadioGroup:InputRadioGroup,InputSelect:InputSelect,InputText:InputText,InputTypeFlyout:InputTypeFlyout,InputTypeMarkdown:InputTypeMarkdown,InputTypeMarkdownControlled:InputTypeMarkdown,Number:Num,Picklist:Picklist,PreviewMarkdown:PreviewMarkdown,SchemaOrText:SchemaOrText,SchemasFormPanel:SchemasFormPanel,actions:actions,getSignedWritableUrl:getSignedWritableUrl,types:index,uploadFileToS3:uploadFileToS3,useUseCaseStyles:useStyles,ListField:ListField});export{Heading as H,InputTypeMarkdown as I,SchemaOrText as S,actions as a,InputText as b,InputSelect as c,InputCheckbox as d,InputRadioGroup as e,uploadFileToS3 as f,getSignedWritableUrl as g,index_esm as h,index as i,join_1 as j,lowerCase_1 as l,orderBy_1 as o,set_1 as s,useStyles as u};
|
|
Binary file
|
package/js-core.esm22.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aW as createSvgIcon,j as jsxRuntime}from"./js-core.esm.js";var Search=createSvgIcon(jsxRuntime.exports.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");export{Search as S};
|
|
1
|
+
import{dC as _baseIteratee,ee as _arrayReduce,dx as isArray_1,ef as _baseEach,m as makeStyles,j as jsxRuntime,bb as Grid,E as Button,dk as Add,l as createSlice,cQ as combineReducers,cR as createSelector,aF as rootApiSelector,aH as graphEndpointSelector,aG as sessionTokenSelector,cS as fork,T as Typography,cp as isNil_1,o as useDispatch,p as useSelector,D as DynamicModuleLoader,F as FormattedMessage,ay as Chip,Z as TextField,cU as AIWareThemeProvider,A as AIWareIntlProvider,ch as AIWareCacheProvider,r as react,dr as DynamicTable,a9 as all,aD as preferredLanguageSelector,cA as default_1,B as Box,eg as Engines,aP as List,aQ as ListItem,eh as ListItemAvatar,cx as Avatar,aS as ListItemText,ei as ApplicationTabIcon,bq as TableRow,br as TableCell,K as classNames,ej as EditList,da as Delete,cm as find_1,b0 as takeLatest$1,cI as has_1,ae as showMessage,af as MessageSeverity,bc as Card,a$ as Skeleton,bd as CardContent,W as IconButton,de as delay,ab as select,ac as call$8,ad as put,w as lodash,bP as AIWareFormatMessage,dp as baseGraphQLApiWithError}from"./js-core.esm.js";import{A as Autocomplete}from"./js-core.esm10.js";import{C as Container}from"./js-core.esm9.js";function baseReduce$1(e,n,o,i,t){return t(e,function(e,t,r){o=i?(i=!1,e):n(o,e,t,r)}),o}var _baseReduce=baseReduce$1,arrayReduce=_arrayReduce,baseEach=_baseEach,baseIteratee=_baseIteratee,baseReduce=baseReduce$1,isArray=isArray_1;function reduce(e,t,r){var n=isArray(e)?arrayReduce:baseReduce,o=arguments.length<3;return n(e,baseIteratee(t),r,o,baseEach)}var match,version,set,get,store,STATE,EmptyStringDescriptionStore,SymbolWrapper,NATIVE_SYMBOL,thisSymbolValue,symbolDescriptiveString,regexp,replace$1,stringSlice$1,reduce_1=reduce,commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check=function(e){return e&&e.Math==Math&&e},global$f=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$f=function(e){try{return!!e()}catch(e){return!0}},fails$e=fails$f,descriptors=!fails$f(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$d=fails$f,functionBindNative=!fails$f(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$1=functionBindNative,call$7=Function.prototype.call,functionCall=NATIVE_BIND$1?call$7.bind(call$7):function(){return call$7.apply(call$7,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$1&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$3=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$1(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND=functionBindNative,FunctionPrototype$1=Function.prototype,call$6=FunctionPrototype$1.call,uncurryThisWithBind=NATIVE_BIND&&FunctionPrototype$1.bind.bind(call$6,call$6),functionUncurryThis=NATIVE_BIND?uncurryThisWithBind:function(e){return function(){return call$6.apply(e,arguments)}},uncurryThis$c=functionUncurryThis,toString$4=uncurryThis$c({}.toString),stringSlice$3=uncurryThis$c("".slice),classofRaw$1=function(e){return stringSlice$3(toString$4(e),8,-1)},uncurryThis$b=functionUncurryThis,fails$c=fails$f,classof$2=classofRaw$1,$Object$4=Object,split=functionUncurryThis("".split),indexedObject=fails$c(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$2(e)?split(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$2=function(e){return null==e},isNullOrUndefined$1=isNullOrUndefined$2,$TypeError$6=TypeError,requireObjectCoercible$2=function(e){if(isNullOrUndefined$1(e))throw $TypeError$6("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$1=requireObjectCoercible$2,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$1(e))},documentAll$2="object"==typeof document&&document.all,IS_HTMLDDA=void 0===documentAll$2&&void 0!==documentAll$2,documentAll_1={all:documentAll$2,IS_HTMLDDA:IS_HTMLDDA},$documentAll$1=documentAll_1,documentAll$1=$documentAll$1.all,isCallable$g=$documentAll$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1}:function(e){return"function"==typeof e},isCallable$f=isCallable$g,$documentAll=documentAll_1,documentAll=$documentAll.all,isObject$6=$documentAll.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$f(e)||e===documentAll}:function(e){return"object"==typeof e?null!==e:isCallable$f(e)},global$e=global$f,isCallable$e=isCallable$g,aFunction=function(e){return isCallable$e(e)?e:void 0},getBuiltIn$3=function(e,t){return arguments.length<2?aFunction(global$e[e]):global$e[e]&&global$e[e][t]},uncurryThis$a=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),engineUserAgent="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$d=global$f,userAgent=engineUserAgent,process=global$d.process,Deno=global$d.Deno,versions=process&&process.versions||Deno&&Deno.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent&&(!(match=userAgent.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION=version,fails$b=fails$f,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$b(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION&&V8_VERSION<41}),NATIVE_SYMBOL$2=symbolConstructorDetection,useSymbolAsUid=symbolConstructorDetection&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$2=getBuiltIn$3,isCallable$d=isCallable$g,isPrototypeOf$1=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$2("Symbol");return isCallable$d(t)&&isPrototypeOf$1(t.prototype,$Object$3(e))},$String$4=String,tryToString$1=function(e){try{return $String$4(e)}catch(e){return"Object"}},isCallable$c=isCallable$g,tryToString=tryToString$1,$TypeError$5=TypeError,aCallable$2=function(e){if(isCallable$c(e))return e;throw $TypeError$5(tryToString(e)+" is not a function")},aCallable$1=aCallable$2,isNullOrUndefined=isNullOrUndefined$2,getMethod$1=function(e,t){e=e[t];return isNullOrUndefined(e)?void 0:aCallable$1(e)},call$5=functionCall,isCallable$b=isCallable$g,isObject$5=isObject$6,$TypeError$4=TypeError,ordinaryToPrimitive$1=function(e,t){var r,n;if("string"===t&&isCallable$b(r=e.toString)&&!isObject$5(n=call$5(r,e)))return n;if(isCallable$b(r=e.valueOf)&&!isObject$5(n=call$5(r,e)))return n;if("string"!==t&&isCallable$b(r=e.toString)&&!isObject$5(n=call$5(r,e)))return n;throw $TypeError$4("Can't convert object to primitive value")},shared$4={exports:{}},global$c=global$f,defineProperty$6=Object.defineProperty,defineGlobalProperty$3=function(t,r){try{defineProperty$6(global$c,t,{value:r,configurable:!0,writable:!0})}catch(e){global$c[t]=r}return r},global$b=global$f,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$f[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible=((shared$4.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$2),$Object$2=Object,toObject$3=function(e){return $Object$2(requireObjectCoercible(e))},uncurryThis$9=functionUncurryThis,toObject$2=toObject$3,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$2(e),t)},uncurryThis$8=functionUncurryThis,id=0,postfix=Math.random(),toString$3=uncurryThis$8(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$3(++id+postfix,36)},global$a=global$f,shared$3=shared$4.exports,hasOwn$9=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL$1=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$1=global$a.Symbol,WellKnownSymbolsStore=shared$3("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1.for||Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$8=function(e){return hasOwn$9(WellKnownSymbolsStore,e)||(WellKnownSymbolsStore[e]=NATIVE_SYMBOL$1&&hasOwn$9(Symbol$1,e)?Symbol$1[e]:createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore[e]},call$4=functionCall,isObject$4=isObject$6,isSymbol$1=isSymbol$2,getMethod=getMethod$1,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$7=wellKnownSymbol$8,$TypeError$3=TypeError,TO_PRIMITIVE=wellKnownSymbol$8("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$4(e)||isSymbol$1(e))return e;var r=getMethod(e,TO_PRIMITIVE);if(r){if(r=call$4(r,e,t=void 0===t?"default":t),!isObject$4(r)||isSymbol$1(r))return r;throw $TypeError$3("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$2=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$9=global$f,isObject$3=isObject$6,document$1=global$f.document,EXISTS$1=isObject$3(document$1)&&isObject$3(document$1.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$1.createElement(e):{}},DESCRIPTORS$a=descriptors,fails$a=fails$f,createElement=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$f(function(){return 7!=Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$9=descriptors,call$3=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$2=createPropertyDescriptor$3,toIndexedObject$4=toIndexedObject$5,toPropertyKey$1=toPropertyKey$2,hasOwn$8=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$9?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$1(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$8(e,t))return createPropertyDescriptor$2(!call$3(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$8=descriptors,fails$9=fails$f,v8PrototypeDefineBug=descriptors&&fails$f(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$2=isObject$6,$String$3=String,$TypeError$2=TypeError,anObject$6=function(e){if(isObject$2(e))return e;throw $TypeError$2($String$3(e)+" is not an object")},DESCRIPTORS$7=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$5=anObject$6,toPropertyKey=toPropertyKey$2,$TypeError$1=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$6=(objectDefineProperty.f=DESCRIPTORS$7?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){var n;return anObject$5(e),t=toPropertyKey(t),anObject$5(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]&&(n=$getOwnPropertyDescriptor(e,t))&&n[WRITABLE]&&(e[t]=r.value,r={configurable:(CONFIGURABLE$1 in r?r:n)[CONFIGURABLE$1],enumerable:(ENUMERABLE in r?r:n)[ENUMERABLE],writable:!1}),$defineProperty(e,t,r)}:$defineProperty:function(e,t,r){if(anObject$5(e),t=toPropertyKey(t),anObject$5(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$1("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$3,createNonEnumerableProperty$4=DESCRIPTORS$6?function(e,t,r){return definePropertyModule$3.f(e,t,createPropertyDescriptor$1(1,r))}:function(e,t,r){return e[t]=r,e},makeBuiltIn$3={exports:{}},DESCRIPTORS$5=descriptors,hasOwn$7=hasOwnProperty_1,FunctionPrototype=Function.prototype,getDescriptor=DESCRIPTORS$5&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$7(FunctionPrototype,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$5||getDescriptor(FunctionPrototype,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$7=functionUncurryThis,isCallable$a=isCallable$g,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$1=(isCallable$a(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$8=global$f,isCallable$9=isCallable$g,WeakMap$1=global$f.WeakMap,weakMapBasicDetection=isCallable$9(WeakMap$1)&&/native code/.test(String(WeakMap$1)),shared$2=shared$4.exports,uid=uid$2,keys=shared$2("keys"),sharedKey$3=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=weakMapBasicDetection,global$7=global$f,isObject$1=isObject$6,createNonEnumerableProperty$3=createNonEnumerableProperty$4,hasOwn$6=hasOwnProperty_1,shared$1=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$1=global$7.TypeError,WeakMap=global$7.WeakMap,enforce=function(e){return has(e)?get(e):set(e,{})},getterFor=function(t){return function(e){if(isObject$1(e)&&(e=get(e)).type===t)return e;throw TypeError$1("Incompatible receiver, "+t+" required")}},has=NATIVE_WEAK_MAP||shared$1.state?((store=shared$1.state||(shared$1.state=new WeakMap)).get=store.get,store.has=store.has,store.set=store.set,set=function(e,t){if(store.has(e))throw TypeError$1(OBJECT_ALREADY_INITIALIZED);return t.facade=e,store.set(e,t),t},get=function(e){return store.get(e)||{}},function(e){return store.has(e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set=function(e,t){if(hasOwn$6(e,STATE))throw TypeError$1(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$3(e,STATE,t),t},get=function(e){return hasOwn$6(e,STATE)?e[STATE]:{}},function(e){return hasOwn$6(e,STATE)}),internalState={set:set,get:get,has:has,enforce:enforce,getterFor:getterFor},uncurryThis$6=functionUncurryThis,fails$8=fails$f,isCallable$8=isCallable$g,hasOwn$5=hasOwnProperty_1,DESCRIPTORS$4=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource=inspectSource$1,InternalStateModule$1=internalState,enforceInternalState=InternalStateModule$1.enforce,getInternalState$2=InternalStateModule$1.get,$String$2=String,defineProperty$5=Object.defineProperty,stringSlice$2=uncurryThis$6("".slice),replace$2=uncurryThis$6("".replace),join=uncurryThis$6([].join),CONFIGURABLE_LENGTH=DESCRIPTORS$4&&!fails$8(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(e,t,r){"Symbol("===stringSlice$2($String$2(t),0,7)&&(t="["+replace$2($String$2(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$5(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$4?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$5(r,"arity")&&e.length!==r.arity&&defineProperty$5(e,"length",{value:r.arity});try{r&&hasOwn$5(r,"constructor")&&r.constructor?DESCRIPTORS$4&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState(e);return hasOwn$5(r,"source")||(r.source=join(TEMPLATE,"string"==typeof t?t:"")),e},isCallable$7=(Function.prototype.toString=makeBuiltIn$2(function(){return isCallable$8(this)&&getInternalState$2(this).source||inspectSource(this)},"toString"),isCallable$g),definePropertyModule$2=objectDefineProperty,makeBuiltIn$1=makeBuiltIn$3.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$3=function(e,t,r,n){var o=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(isCallable$7(r)&&makeBuiltIn$1(r,i,n),n.global)o?e[t]=r:defineGlobalProperty$1(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:definePropertyModule$2.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$2=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$1=toIntegerOrInfinity$2,max=Math.max,min$1=Math.min,toAbsoluteIndex$1=function(e,t){e=toIntegerOrInfinity$1(e);return e<0?max(e+t,0):min$1(e,t)},toIntegerOrInfinity=toIntegerOrInfinity$2,min=Math.min,toLength$1=function(e){return 0<e?min(toIntegerOrInfinity(e),9007199254740991):0},toLength=toLength$1,lengthOfArrayLike$1=function(e){return toLength(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex=toAbsoluteIndex$1,lengthOfArrayLike=lengthOfArrayLike$1,createMethod=function(a){return function(e,t,r){var n,o=toIndexedObject$3(e),i=lengthOfArrayLike(o),s=toAbsoluteIndex(r,i);if(a&&t!=t){for(;s<i;)if((n=o[s++])!=n)return!0}else for(;s<i;s++)if((a||s in o)&&o[s]===t)return a||s||0;return!a&&-1}},arrayIncludes={includes:createMethod(!0),indexOf:createMethod(!1)},uncurryThis$5=functionUncurryThis,hasOwn$4=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push=uncurryThis$5([].push),objectKeysInternal=function(e,t){var r,n=toIndexedObject$2(e),o=0,i=[];for(r in n)!hasOwn$4(hiddenKeys$2,r)&&hasOwn$4(n,r)&&push(i,r);for(;t.length>o;)!hasOwn$4(n,r=t[o++])||~indexOf$1(i,r)||push(i,r);return i},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$1=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$3),uncurryThis$4=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$4=anObject$6,concat$1=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$1("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$4(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$1(t,r(e)):t},hasOwn$3=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,copyConstructorProperties$2=function(e,t,r){for(var n=ownKeys(t),o=definePropertyModule$1.f,i=getOwnPropertyDescriptorModule.f,s=0;s<n.length;s++){var a=n[s];hasOwn$3(e,a)||r&&hasOwn$3(r,a)||o(e,a,i(t,a))}},fails$7=fails$f,isCallable$6=isCallable$g,replacement=/#|\.prototype\./,isForced$1=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$6(t)?fails$7(t):!!t)},normalize=isForced$1.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$1.data={},NATIVE=isForced$1.NATIVE="N",POLYFILL=isForced$1.POLYFILL="P",isForced_1=isForced$1,global$6=global$f,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$2=createNonEnumerableProperty$4,defineBuiltIn$2=defineBuiltIn$3,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$1=copyConstructorProperties$2,isForced=isForced_1,_export=function(e,t){var r,n,o,i=e.target,s=e.global,a=e.stat,l=s?global$6:a?global$6[i]||defineGlobalProperty(i,{}):(global$6[i]||{}).prototype;if(l)for(r in t){if(n=t[r],o=e.dontCallGetSet?(o=getOwnPropertyDescriptor(l,r))&&o.value:l[r],!isForced(s?r:i+(a?".":"#")+r,e.forced)&&void 0!==o){if(typeof n==typeof o)continue;copyConstructorProperties$1(n,o)}(e.sham||o&&o.sham)&&createNonEnumerableProperty$2(n,"sham",!0),defineBuiltIn$2(l,r,n,e)}},wellKnownSymbol$6=wellKnownSymbol$8,TO_STRING_TAG$3=wellKnownSymbol$8("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$3]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$5=isCallable$g,classofRaw=classofRaw$1,wellKnownSymbol$5=wellKnownSymbol$8,TO_STRING_TAG$2=wellKnownSymbol$8("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$1=TO_STRING_TAG_SUPPORT?classofRaw:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object$1(e),TO_STRING_TAG$2))?t:CORRECT_ARGUMENTS?classofRaw(e):"Object"==(t=classofRaw(e))&&isCallable$5(e.callee)?"Arguments":t},classof=classof$1,$String$1=String,toString$2=function(e){if("Symbol"===classof(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$1(e)},makeBuiltIn=makeBuiltIn$3.exports,defineProperty$4=objectDefineProperty,defineBuiltInAccessor$1=function(e,t,r){return r.get&&makeBuiltIn(r.get,t,{getter:!0}),r.set&&makeBuiltIn(r.set,t,{setter:!0}),defineProperty$4.f(e,t,r)},$$4=_export,DESCRIPTORS$3=descriptors,global$5=global$f,uncurryThis$3=functionUncurryThis,hasOwn$2=hasOwnProperty_1,isCallable$4=isCallable$g,isPrototypeOf=objectIsPrototypeOf,toString$1=toString$2,defineBuiltInAccessor=defineBuiltInAccessor$1,copyConstructorProperties=copyConstructorProperties$2,NativeSymbol=global$f.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype,internalObjectKeys=(!DESCRIPTORS$3||!isCallable$4(NativeSymbol)||"description"in SymbolPrototype&&void 0===NativeSymbol().description||(EmptyStringDescriptionStore={},copyConstructorProperties(SymbolWrapper=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:toString$1(arguments[0]),t=isPrototypeOf(SymbolPrototype,this)?new NativeSymbol(e):void 0===e?NativeSymbol():NativeSymbol(e);return""===e&&(EmptyStringDescriptionStore[t]=!0),t},NativeSymbol),(SymbolWrapper.prototype=SymbolPrototype).constructor=SymbolWrapper,NATIVE_SYMBOL="Symbol(test)"==String(NativeSymbol("test")),thisSymbolValue=uncurryThis$3(SymbolPrototype.valueOf),symbolDescriptiveString=uncurryThis$3(SymbolPrototype.toString),regexp=/^Symbol\((.*)\)[^)]+$/,replace$1=uncurryThis$3("".replace),stringSlice$1=uncurryThis$3("".slice),defineBuiltInAccessor(SymbolPrototype,"description",{configurable:!0,get:function(){var e=thisSymbolValue(this);return hasOwn$2(EmptyStringDescriptionStore,e)?"":(e=symbolDescriptiveString(e),""===(e=NATIVE_SYMBOL?stringSlice$1(e,7,-1):replace$1(e,regexp,"$1"))?void 0:e)}}),$$4({global:!0,constructor:!0,forced:!0},{Symbol:SymbolWrapper})),objectKeysInternal),enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$2=descriptors,uncurryThis$2=functionUncurryThis,call$2=functionCall,fails$6=fails$f,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$1=toObject$3,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$3=Object.defineProperty,concat=uncurryThis$2([].concat),objectAssign=!$assign||fails$6(function(){var e,t,r,n;return!(!DESCRIPTORS$2||1===$assign({b:1},$assign(defineProperty$3({},"a",{enumerable:!0,get:function(){defineProperty$3(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},n="abcdefghijklmnopqrst",(e={})[r=Symbol()]=7,n.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[r])||objectKeys$1($assign({},t)).join("")!=n})?function(e,t){for(var r=toObject$1(e),n=arguments.length,o=1,i=getOwnPropertySymbolsModule.f,s=propertyIsEnumerableModule.f;o<n;)for(var a,l=IndexedObject(arguments[o++]),c=i?concat(objectKeys$1(l),i(l)):objectKeys$1(l),u=c.length,p=0;p<u;)a=c[p++],DESCRIPTORS$2&&!call$2(s,l,a)||(r[a]=l[a]);return r}:$assign,$$3=_export,assign=objectAssign;_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign});const useListFieldStyles=makeStyles()(e=>({heading:{fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:"-1.30385e-09px",color:"#2A323C"},description:{fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#5C6269"},button:{display:"flex",height:"35px",justifyContent:"center",alignItems:"center",padding:"8px 10px",background:"#FFFFFF",border:"1px solid #1871E8",boxSizing:"border-box",borderRadius:"4px",fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"19px",letterSpacing:"-1.30385e-09px",color:"#1871E8","& span > span":{marginRight:e.spacing(1)},"& svg":{color:"#1871E8"}}})),useListTableStyles=makeStyles()((e,t,r)=>({tableRow:{background:"#FFFFFF",height:"50px",["& ."+r.iconButton]:{visibility:"hidden"},["&:hover ."+r.iconButton]:{visibility:"visible"}},tableCell:{padding:e.spacing(2),maxWidth:300},iconTableCell:{padding:e.spacing(1)},rowText:{fontFamily:"Nunito",fontStyle:"normal",fontWeight:400,fontSize:"14px!important",lineHeight:"20px!important",letterSpacing:"-1.30385e-09px!important",color:"#2A323C!important"},iconButton:{height:"30px",width:"30px"},disabled:{opacity:.4}})),ListFieldHeading=({idPrefix:e,heading:t,description:r})=>{var n=useListFieldStyles()["classes"];return jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12},{children:jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":e+"-list-field-heading",className:n.heading},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"${idPrefix}-list-field-heading",defaultMessage:"{heading}",description:"{heading}",values:{prefix:e,heading:t}})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12},{children:jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":e+"-list-field-description",className:n.description},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"${idPrefix}-list-field-description",defaultMessage:"{description}",description:"{description}",values:{prefix:e,description:r}})}))}))]})},ActionTableCell=({dataTest:e,icon:t,onClick:r,disabled:n})=>{var o=useListTableStyles()["classes"];return jsxRuntime.exports.jsx(TableCell,Object.assign({className:o.iconTableCell},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({disabled:n,"data-test":e,className:o.iconButton,onClick:r,size:"large"},{children:t}))}))},useRows=({items:e,canEdit:t,canDelete:r,onEditClick:i,onDeleteClick:s})=>{const a=useListTableStyles()["classes"];return e.map((n,o)=>{var e;return jsxRuntime.exports.jsxs(TableRow,Object.assign({"data-test":"ecn.list-table-row."+o,className:a.tableRow,hover:!(null!=(e=n.options)&&e.disabled)},{children:[Object.keys(n.data).map((e,t)=>{var r;return jsxRuntime.exports.jsx(TableCell,Object.assign({className:classNames(a.tableCell,{[a.disabled]:null==(r=n.options)?void 0:r.disabled})},{children:jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":`ecn.table-cell-${e}.`+o,className:a.rowText,noWrap:!0},{children:jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:"string"==typeof n.data[e]||n.data[e]instanceof String?jsxRuntime.exports.jsx(FormattedMessage,{id:"ecn.table-cell.{key}.{rowIndex}",defaultMessage:"{value}",description:"{value}",values:{key:e,rowIndex:o,value:n.data[e]}}):n.data[e]})}))}),e+" "+t)}),t&&jsxRuntime.exports.jsx(ActionTableCell,{dataTest:"ecn.list-table-row-edit-button."+o,onClick:()=>i(o),icon:jsxRuntime.exports.jsx(EditList,{fontSize:"small"}),disabled:null==(e=n.options)?void 0:e.disabled}),r&&jsxRuntime.exports.jsx(ActionTableCell,{dataTest:"ecn.list-table-row-delete-button."+o,onClick:()=>s(o),icon:jsxRuntime.exports.jsx(Delete,{fontSize:"small"}),disabled:null==(e=n.options)?void 0:e.disabled})]}),find_1(n)+" "+o)})},ListTable=({idPrefix:e,columnNames:t,items:r,canEdit:n=!1,canDelete:o=!1,onEditClick:i,onDeleteClick:s,onRequestSort:a})=>jsxRuntime.exports.jsx(DynamicTable,{idPrefix:e,columnNames:t,rows:useRows({items:r,canEdit:n,canDelete:o,onEditClick:i,onDeleteClick:s}),onRequestSort:a}),ListField=({idPrefix:e,heading:t,description:r,actionButtonLabel:n,items:o,columnNames:i,canEdit:s=!1,canDelete:a=!1,onActionClick:l,onEditClick:c,onDeleteClick:u,onRequestSort:p})=>{var d=useListFieldStyles()["classes"];return jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0,spacing:2},{children:[t||r?jsxRuntime.exports.jsx(Grid,Object.assign({container:!0,item:!0,direction:"row",xs:6,justifyContent:"flex-start"},{children:jsxRuntime.exports.jsx(ListFieldHeading,{idPrefix:e,heading:t,description:r})})):null,jsxRuntime.exports.jsx(Grid,Object.assign({container:!0,item:!0,xs:6,justifyContent:"flex-end"},{children:n?jsxRuntime.exports.jsx(Button,Object.assign({"data-test":e+"-list-field-action-button",className:d.button,startIcon:jsxRuntime.exports.jsx(Add,{}),onClick:l},{children:n})):null})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12},{children:jsxRuntime.exports.jsx(ListTable,{idPrefix:e,columnNames:i,items:o,canEdit:s,canDelete:a,onEditClick:c,onDeleteClick:u,onRequestSort:p})}))]}))};function __rest(e,t){var r={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r}function __awaiter(e,s,a,l){return new(a=a||Promise)(function(r,t){function n(e){try{i(l.next(e))}catch(e){t(e)}}function o(e){try{i(l.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}i((l=l.apply(e,s||[])).next())})}const SLICE_NAME="developerShared",namespace$3="uiState",initialState$2={status:"idle"},slice$2=createSlice({name:SLICE_NAME+"/"+namespace$3,initialState:initialState$2,reducers:{}}),actions$3=slice$2.actions;var uiState$1=slice$2.reducer;const namespace$2="matchedEntityTagsState",initialState$1={userTagInput:"",matchedEntityTags:[],status:"idle"},slice$1=createSlice({name:SLICE_NAME+"/"+namespace$2,initialState:initialState$1,reducers:{setUserTagInput:(e,{payload:t})=>{e.userTagInput=t},matchEntityTagsStart(e,t){e.matchedEntityTags=[]},matchEntityTagsSuccess(e,{payload:t}){e.matchedEntityTags=t},matchEntityTagsFailed(e){e.status="failure"},clearUserTagInput(e){e.userTagInput=""}}}),actions$2=slice$1.actions;var entityTagsState=slice$1.reducer;const namespace$1="developerOverview",initialState={status:"idle",engineOverview:{active:0,disabled:0,pending:0,ready:0},recentBuilds:[],applicationsOverview:[]},slice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState,reducers:{fetchDeveloperOverviewStart(e){e.status="loading"},fetchDeveloperOverviewSuccess(e,t){e.status="idle",e.engineOverview=t.payload.engineOverview,e.recentBuilds=t.payload.recentBuilds,e.applicationsOverview=t.payload.applicationsOverview},fetchDeveloperOverviewError(e){e.status="failure"}}}),actions$1=slice.actions;var developerOverviewState$1=slice.reducer;const namespace=SLICE_NAME,actions={[namespace$3]:actions$3,[namespace$2]:actions$2,[namespace$1]:actions$1},rootReducer=combineReducers({[namespace$3]:uiState$1,[namespace$2]:entityTagsState,[namespace$1]:developerOverviewState$1});var activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,objectDefineProperties={},DESCRIPTORS$1=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule=objectDefineProperty,anObject$3=anObject$6,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn=(objectDefineProperties.f=DESCRIPTORS$1&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$3(e);for(var r,n=toIndexedObject$1(t),o=objectKeys(t),i=o.length,s=0;s<i;)definePropertyModule.f(e,r=o[s++],n[r]);return e},getBuiltIn$3),html$1=getBuiltIn$3("document","documentElement"),anObject$2=anObject$6,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html=html$1,documentCreateElement$1=documentCreateElement$2,sharedKey$1=sharedKey$3,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=documentCreateElement$1("iframe"),t="java"+SCRIPT+":";return e.style.display="none",html.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[e]];return NullProtoObject()},objectCreate=(hiddenKeys[IE_PROTO$1]=!0,Object.create||function(e,t){var r;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$2(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule.f(r,t)}),wellKnownSymbol$4=wellKnownSymbol$8,create$2=objectCreate,defineProperty$2=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$4("unscopables"),ArrayPrototype=Array.prototype,addToUnscopables$2=(null==ArrayPrototype[UNSCOPABLES]&&defineProperty$2(ArrayPrototype,UNSCOPABLES,{configurable:!0,value:create$2(null)}),function(e){ArrayPrototype[UNSCOPABLES][e]=!0}),iterators={},fails$5=fails$f,correctPrototypeGetter=!fails$f(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$1=hasOwnProperty_1,isCallable$3=isCallable$g,toObject=toObject$3,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object=Object,ObjectPrototype=$Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object.getPrototypeOf:function(e){var t,e=toObject(e);return hasOwn$1(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$3(t)&&e instanceof t?t.prototype:e instanceof $Object?ObjectPrototype:null)},fails$4=fails$f,isCallable$2=isCallable$g,isObject=isObject$6,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$1=defineBuiltIn$3,wellKnownSymbol$3=wellKnownSymbol$8,ITERATOR$2=wellKnownSymbol$8("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,NEW_ITERATOR_PROTOTYPE=([].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$1(getPrototypeOf$1(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0),!isObject(IteratorPrototype$2)||fails$4(function(){var e={};return IteratorPrototype$2[ITERATOR$2].call(e)!==e})),iteratorsCore=(isCallable$2((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$2])||defineBuiltIn$1(IteratorPrototype$2,ITERATOR$2,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$1=objectDefineProperty.f,hasOwn=hasOwnProperty_1,wellKnownSymbol$2=wellKnownSymbol$8,TO_STRING_TAG$1=wellKnownSymbol$8("toStringTag"),setToStringTag$2=function(e,t,r){(e=e&&!r?e.prototype:e)&&!hasOwn(e,TO_STRING_TAG$1)&&defineProperty$1(e,TO_STRING_TAG$1,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$1=objectCreate,createPropertyDescriptor=createPropertyDescriptor$3,setToStringTag$1=setToStringTag$2,Iterators$2=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,r,n){t+=" Iterator";return e.prototype=create$1(IteratorPrototype$1,{next:createPropertyDescriptor(+!n,r)}),setToStringTag$1(e,t,!1),Iterators$2[t]=returnThis$1,e},uncurryThis$1=functionUncurryThis,aCallable=aCallable$2,functionUncurryThisAccessor=function(e,t,r){try{return uncurryThis$1(aCallable(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},isCallable$1=isCallable$g,$String=String,$TypeError=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$1(e))return e;throw $TypeError("Can't set "+$String(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,anObject$1=anObject$6,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=uncurryThisAccessor(Object.prototype,"__proto__","set"))(e,[]),n=e instanceof Array}catch(e){}return function(e,t){return anObject$1(e),aPossiblePrototype(t),n?r(e,t):e.__proto__=t,e}}():void 0),$$2=_export,call$1=functionCall,FunctionName=functionName,isCallable=isCallable$g,createIteratorConstructor=iteratorCreateConstructor,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$2,createNonEnumerableProperty$1=createNonEnumerableProperty$4,defineBuiltIn=defineBuiltIn$3,wellKnownSymbol$1=wellKnownSymbol$8,Iterators$1=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$1=wellKnownSymbol$1("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,r,n,o,i,s){createIteratorConstructor(r,t,n);function a(e){if(e===o&&$)return $;if(!BUGGY_SAFARI_ITERATORS&&e in p)return p[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}}var l,c,n=t+" Iterator",u=!1,p=e.prototype,d=p[ITERATOR$1]||p["@@iterator"]||o&&p[o],$=!BUGGY_SAFARI_ITERATORS&&d||a(o),y="Array"==t&&p.entries||d;if(y&&(y=getPrototypeOf(y.call(new e)))!==Object.prototype&&y.next&&(getPrototypeOf(y)!==IteratorPrototype&&(setPrototypeOf?setPrototypeOf(y,IteratorPrototype):isCallable(y[ITERATOR$1])||defineBuiltIn(y,ITERATOR$1,returnThis)),setToStringTag(y,n,!0)),PROPER_FUNCTION_NAME&&o==VALUES&&d&&d.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1(p,"name",VALUES):(u=!0,$=function(){return call$1(d,this)})),o)if(l={values:a(VALUES),keys:i?$:a(KEYS),entries:a(ENTRIES)},s)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in p||defineBuiltIn(p,c,l[c]);else $$2({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return p[ITERATOR$1]!==$&&defineBuiltIn(p,ITERATOR$1,$,{name:o}),Iterators$1[t]=$,l},createIterResultObject$1=function(e,t){return{value:e,done:t}},toIndexedObject=toIndexedObject$5,addToUnscopables$1=addToUnscopables$2,Iterators=iterators,InternalStateModule=internalState,defineProperty=objectDefineProperty.f,defineIterator=iteratorDefine,createIterResultObject=createIterResultObject$1,DESCRIPTORS=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState=InternalStateModule.set,getInternalState$1=InternalStateModule.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState$1(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,createIterResultObject(void 0,!0)):createIterResultObject("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)},"values"),values=Iterators.Arguments=Iterators.Array;if(addToUnscopables$1("keys"),addToUnscopables$1("values"),addToUnscopables$1("entries"),DESCRIPTORS&&"values"!==values.name)try{defineProperty(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement=documentCreateElement$2,classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global$4=global$f,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$4,wellKnownSymbol=wellKnownSymbol$8,ITERATOR=wellKnownSymbol("iterator"),TO_STRING_TAG=wellKnownSymbol("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR]!==ArrayValues)try{createNonEnumerableProperty(t,ITERATOR,ArrayValues)}catch(e){t[ITERATOR]=ArrayValues}if(t[TO_STRING_TAG]||createNonEnumerableProperty(t,TO_STRING_TAG,e),DOMIterables[e])for(var r in ArrayIteratorMethods)if(t[r]!==ArrayIteratorMethods[r])try{createNonEnumerableProperty(t,r,ArrayIteratorMethods[r])}catch(e){t[r]=ArrayIteratorMethods[r]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$4[COLLECTION_NAME]&&global$4[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");const matchEntityTags$1=(o,i={page:1,limit:30,input:{}})=>__awaiter(void 0,void 0,void 0,function*(){var{page:e,limit:t,input:r}=i,n="getMatchedEntityTags";return yield baseGraphQLApiWithError(Object.assign({query:"\n query getMatchedEntityTags ($offset: Int, $limit: Int, $input: MatchEntityTagInput!) {\n matchEntityTags(offset: $offset, limit: $limit, input: $input) {\n records {\n tagKey\n }\n }\n }\n ",variables:{offset:(e-1)*t,limit:t,input:r},operationName:n},o))}),getDeveloperOverview=(t,r={offset:0,engineLimit:5,applicationsLimit:9999,orderBy:[]})=>__awaiter(void 0,void 0,void 0,function*(){var e="getEngineOverview";return yield baseGraphQLApiWithError(Object.assign({query:"\n query getEngineOverview ($engineLimit: Int, $applicationsLimit: Int, $offset: Int, $orderBy: [EngineBuildOrderBy!]) {\n recentBuilds: recentBuilds(offset: $offset, limit: $engineLimit, orderBy: $orderBy) {\n records {\n id\n name\n version\n status\n engine {\n id\n name\n iconPath\n logoPath\n signedIconPath\n signedLogoPath\n }\n }\n }\n engineOverview: engineOverview {\n active\n ready\n pending\n disabled\n }\n applicationsOverview: applications(limit: $applicationsLimit, offset: $offset, owned: true) {\n records {\n id\n signedIconUrl\n name\n status\n iconSvg\n iconUrl\n modifiedDateTime\n }\n }\n\n }",variables:r,operationName:e},t))}),selectUIStateStatus=e=>e[namespace].uiState.status;var uiState=Object.freeze({__proto__:null,selectUIStateStatus:selectUIStateStatus});const selectMatchedEntityTags=e=>e[namespace]?e[namespace].matchedEntityTagsState.matchedEntityTags:[],selectUserTagInput=e=>e[namespace]?e[namespace].matchedEntityTagsState.userTagInput:"";var entityTags=Object.freeze({__proto__:null,selectMatchedEntityTags:selectMatchedEntityTags,selectUserTagInput:selectUserTagInput});const selectDeveloperOverviewStatus=e=>e[namespace].developerOverview.status,selectDeveloperOverview=e=>e[namespace].developerOverview;var developerOverviewState=Object.freeze({__proto__:null,selectDeveloperOverviewStatus:selectDeveloperOverviewStatus,selectDeveloperOverview:selectDeveloperOverview});const selectApiConfigs$1=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,r)=>({apiRoot:e,graphQLEndpoint:t,token:r}));var selectors=Object.freeze({__proto__:null,selectApiConfigs:selectApiConfigs$1,uiState:uiState,entityTagsState:entityTags,developerOverviewState:developerOverviewState});const selectApiConfigs=selectors["selectApiConfigs"];function*matchEntityTags({payload:e}){yield delay(350);var e={page:1,limit:15,input:{tagKey:e}},t=yield select(selectApiConfigs);try{var r=yield call$8(matchEntityTags$1,t,e);yield put(actions.matchedEntityTagsState.matchEntityTagsSuccess(lodash.exports.get(r,"matchEntityTags.records",[])))}catch(e){console.log(e.message),yield put(showMessage({content:e.message,severity:MessageSeverity.Error})),yield put(actions.matchedEntityTagsState.matchEntityTagsFailed())}}function*watchMatchEntityTags(){yield takeLatest$1([actions.matchedEntityTagsState.setUserTagInput],matchEntityTags)}const entityTagsSagas=[fork(watchMatchEntityTags)];function*fetchDeveloperOverview(){var e=yield select(selectApiConfigs$1),t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t);if(e)try{var r=yield call$8(getDeveloperOverview,e);if(!r||r instanceof Error)throw new Error("Failed to fetch developer overview");var{recentBuilds:n,engineOverview:o,applicationsOverview:i}=r;yield put(actions.developerOverview.fetchDeveloperOverviewSuccess({recentBuilds:null==n?void 0:n.records,engineOverview:o,applicationsOverview:null==i?void 0:i.records}))}catch(e){console.error("error",e),yield put(showMessage({content:t({id:"developer.overview.fetch.error",defaultMessage:[{type:0,value:"Failed to fetch developer overview"}]}),severity:MessageSeverity.Error})),yield put(actions.developerOverview.fetchDeveloperOverviewError())}}function*watchFetchDeveloperOverview(){yield takeLatest$1(actions.developerOverview.fetchDeveloperOverviewStart.type,fetchDeveloperOverview)}const developerOverviewSagas=[fork(watchFetchDeveloperOverview)];function*rootSaga(){yield all([...entityTagsSagas,...developerOverviewSagas])}function getDeveloperCenterSharedModule(){return{id:SLICE_NAME,reducerMap:{[SLICE_NAME]:rootReducer},sagas:[rootSaga],initialActions:[]}}const useStyles$1=makeStyles()(e=>({helperDescription:{fontSize:"14px",marginBottom:"20px"},icon:{textAlign:"center",height:"1rem !important",margin:"0 3px"}})),HelpDocs=({className:e,helpLink:t,sx:r})=>{const n=useDispatch();var o=useSelector(preferredLanguageSelector);const i=AIWareFormatMessage(o);return jsxRuntime.exports.jsx(default_1,{className:e,onClick:()=>{has_1(window,"aiware.helpCenter.openDocsPanel")?window.aiware.helpCenter.openDocsPanel(t,!1):n(showMessage({content:i({id:"os-developer-new.snackbar.helpCenterUnavailable",defaultMessage:[{type:0,value:"Help Center is not currently available."}]}),severity:MessageSeverity.Warning}))},sx:r,style:{cursor:"pointer"},color:"secondary"})},Heading=({testName:e,title:t,description:r,helpLink:n})=>{var o=useStyles$1()["classes"];return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs(Typography,Object.assign({"data-test":e+"-title",style:{fontWeight:"bold"},variant:"h5"},{children:[t,!isNil_1(n)&&jsxRuntime.exports.jsx(HelpDocs,{className:o.icon,helpLink:n})]})),jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":e+"-description",className:o.helperDescription},{children:r}))]})},EntityTags=e=>{var{setSelectedTags:r,selectedTags:t,showHeader:n=!0,helpLink:o=null}=e,e=__rest(e,["setSelectedTags","selectedTags","showHeader","helpLink"]);const i=useDispatch();var s=useSelector(selectMatchedEntityTags),a=useSelector(selectUserTagInput);return jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getDeveloperCenterSharedModule()]},{children:jsxRuntime.exports.jsxs("div",{children:[n&&jsxRuntime.exports.jsx(Heading,{testName:"os-engine-center-new.engine-keyword-tags",title:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.engine-keyword-tags",defaultMessage:"Tags",description:"Form name for keyword tags"}),description:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-new.engine-keyword-tags-description",defaultMessage:"Provide a tag for grouping of applications.",description:"Description for keyword tags"}),helpLink:o}),jsxRuntime.exports.jsx(Autocomplete,Object.assign({},e,{"data-test":"developer-shared-entity-tags-autocomplete",multiple:!0,options:s,disabled:10<=(null==t?void 0:t.length),value:t,inputValue:a,onChange:(e,t)=>{t=t.map(e=>"string"==typeof e?{tagKey:e.toLowerCase()}:e);r(t)},onInputChange:(e,t)=>{i(actions$2.setUserTagInput(t))},freeSolo:!0,filterSelectedOptions:!0,isOptionEqualToValue:(e,t)=>"string"==typeof e?e.toLowerCase()===t.tagKey.toLowerCase():e.tagKey.toLowerCase()===t.tagKey.toLowerCase(),getOptionLabel:e=>e.tagKey.toLowerCase(),renderTags:(e,r)=>e.map((e,t)=>jsxRuntime.exports.jsx(Chip,Object.assign({variant:"filled",label:e.tagKey},r({index:t}),{disabled:!1}))),renderInput:e=>jsxRuntime.exports.jsx(TextField,Object.assign({},e,{variant:"outlined",placeholder:(null==t?void 0:t.length)<10&&"Add Tags (maximum of 10)"}))}))]})}))};var $$1=_export,$includes=arrayIncludes.includes,fails$3=fails$f,addToUnscopables=addToUnscopables$2,BROKEN_ON_SPARSE=fails$f(function(){return!Array(1).includes()});$$1({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,1<arguments.length?arguments[1]:void 0)}}),addToUnscopables("includes");const COLOR_MAP={active:"#16A121",ready:"#287DE0",approved:"#287DE0",pending:"#05598A",disabled:"#BE0E0E"},StatusCard=({count:e,status:t,isLoading:r})=>jsxRuntime.exports.jsx(Card,Object.assign({sx:{display:"flex",justifyContent:"center",alignItems:"center",minWidth:50,minHeight:50,textAlign:"center",borderBottom:"5px solid "+COLOR_MAP[t]},"data-test":`os-developer-shared.DeveloperOverview.${t}-status`},{children:r?jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:112,animation:"wave"}):jsxRuntime.exports.jsxs(CardContent,Object.assign({sx:{p:"24px"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h2",sx:{fontSize:28,fontWeight:700,mb:3}},{children:e})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2",sx:{textTransform:"capitalize"}},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-app-center-browse.app-list-row.delete-confirmation-message",defaultMessage:"{status}",description:"The status label",values:{status:t}})}))]}))})),SkeletonTable=({isApplication:e})=>jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:6,md:3},{children:jsxRuntime.exports.jsx(StatusCard,{isLoading:!0,count:0,status:"active"})})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:6,md:3},{children:jsxRuntime.exports.jsx(StatusCard,{isLoading:!0,count:0,status:e?"approved":"ready"})})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:6,md:3},{children:jsxRuntime.exports.jsx(StatusCard,{isLoading:!0,count:0,status:"pending"})})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:6,md:3},{children:jsxRuntime.exports.jsx(StatusCard,{isLoading:!0,count:0,status:"disabled"})})),jsxRuntime.exports.jsx(List,Object.assign({sx:{my:4,width:1}},{children:[...Array(5).keys()].map(()=>jsxRuntime.exports.jsxs(ListItem,Object.assign({divider:!0,sx:{width:1}},{children:[jsxRuntime.exports.jsx(ListItemAvatar,{children:jsxRuntime.exports.jsx(Avatar,{children:jsxRuntime.exports.jsx(Skeleton,{variant:"circular",width:40,height:40,animation:"wave"})})}),jsxRuntime.exports.jsx(ListItemText,Object.assign({sx:{width:1}},{children:jsxRuntime.exports.jsx(Skeleton,{variant:"text",width:350,height:20,animation:"wave",sx:{maxWidth:1}})}))]})))}))]});var anObject=anObject$6,regexpFlags$1=function(){var e=anObject(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},fails$2=fails$f,global$3=global$f,$RegExp$2=global$f.RegExp,UNSUPPORTED_Y$1=fails$2(function(){var e=$RegExp$2("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),MISSED_STICKY=UNSUPPORTED_Y$1||fails$2(function(){return!$RegExp$2("a","y").sticky}),BROKEN_CARET=UNSUPPORTED_Y$1||fails$2(function(){var e=$RegExp$2("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),regexpStickyHelpers={BROKEN_CARET:BROKEN_CARET,MISSED_STICKY:MISSED_STICKY,UNSUPPORTED_Y:UNSUPPORTED_Y$1},fails$1=fails$f,global$2=global$f,$RegExp$1=global$f.RegExp,regexpUnsupportedDotAll=fails$1(function(){var e=$RegExp$1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),fails=fails$f,global$1=global$f,$RegExp=global$f.RegExp,regexpUnsupportedNcg=fails(function(){var e=$RegExp("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),call=functionCall,uncurryThis=functionUncurryThis,toString=toString$2,regexpFlags=regexpFlags$1,stickyHelpers=regexpStickyHelpers,shared=shared$4.exports,create=objectCreate,getInternalState=internalState.get,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,nativeReplace=shared("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt=uncurryThis("".charAt),indexOf=uncurryThis("".indexOf),replace=uncurryThis("".replace),stringSlice=uncurryThis("".slice),UPDATES_LAST_INDEX_WRONG=function(){var e=/a/,t=/b*/g;return call(nativeExec,e,"a"),call(nativeExec,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),UNSUPPORTED_Y=stickyHelpers.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1],PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG,regexpExec=patchedExec=PATCH?function(e){var t,r,n,o,i,s,a=this,l=getInternalState(a),e=toString(e),c=l.raw;if(c)return c.lastIndex=a.lastIndex,p=call(patchedExec,c,e),a.lastIndex=c.lastIndex,p;var u=l.groups,c=UNSUPPORTED_Y&&a.sticky,p=call(regexpFlags,a),l=a.source,d=0,$=e;if(c&&(p=replace(p,"y",""),-1===indexOf(p,"g")&&(p+="g"),$=stringSlice(e,a.lastIndex),0<a.lastIndex&&(!a.multiline||a.multiline&&"\n"!==charAt(e,a.lastIndex-1))&&(l="(?: "+l+")",$=" "+$,d++),t=new RegExp("^(?:"+l+")",p)),NPCG_INCLUDED&&(t=new RegExp("^"+l+"$(?!\\s)",p)),UPDATES_LAST_INDEX_WRONG&&(r=a.lastIndex),n=call(nativeExec,c?t:a,$),c?n?(n.input=stringSlice(n.input,d),n[0]=stringSlice(n[0],d),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&n&&(a.lastIndex=a.global?n.index+n[0].length:r),NPCG_INCLUDED&&n&&1<n.length&&call(nativeReplace,n[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)}),n&&u)for(n.groups=i=create(null),o=0;o<u.length;o++)i[(s=u[o])[0]]=n[s[1]];return n}:patchedExec,$=_export,exec=patchedExec;function isDeveloperDomain(){return/^(developer\.(((dev|prod)\.)?([a-zA-Z0-9-]*\.)?)?veritone\.com|localhost|local\.veritone)/.test(window.location.hostname)}_export({target:"RegExp",proto:!0,forced:/./.exec!==exec},{exec:exec});const overviewStatuses=["active","approved","pending","disabled","draft"],useStyles=makeStyles()(e=>({headerRow:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:e.spacing(3)+" 0"},iconTitleWrapper:{display:"flex",alignItems:"center","& svg":{marginRight:e.spacing(2),fill:e.palette.text.primary}},viewAllLink:{color:e.palette.primary.main,textDecoration:"none"}})),DeveloperOverview=()=>{var e;const t=useDispatch();var r=useStyles()["classes"];const{apiRoot:n,graphQLEndpoint:o,token:i}=useSelector(selectApiConfigs$1),s=useSelector(selectDeveloperOverview);if(react.exports.useEffect(()=>{n&&o&&i&&t(actions.developerOverview.fetchDeveloperOverviewStart())},[n,o,i,t]),!n||!o||!i)return null;const a=reduce_1(null===s||void 0===s?void 0:s.applicationsOverview,(t,r,e)=>{if(overviewStatuses.includes(r.status)){let e=r.status;t[e="draft"===e?"pending":e]+=1}return t},{active:0,approved:0,pending:0,disabled:0});return jsxRuntime.exports.jsxs(Container,Object.assign({maxWidth:"md",sx:{py:4}},{children:[jsxRuntime.exports.jsxs(Box,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:r.headerRow},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:r.iconTitleWrapper},{children:[jsxRuntime.exports.jsx(Engines,{}),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h4",component:"h2","data-test":"os-developer-shared.DeveloperOverview.engine-overview-title"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-developer-shared.DeveloperOverview.engine-overview-title",defaultMessage:"Engine Overview",description:"The overview title"})}))]})),jsxRuntime.exports.jsx("a",Object.assign({href:isDeveloperDomain()?"/engines":"#",className:r.viewAllLink},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-developer-shared.DeveloperOverview.view-all-engines",defaultMessage:"View all engine activity",description:"The view all engines link"})}))}))]})),jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0,spacing:3,"data-test":"os-developer-shared.DeveloperOverview.engine-status-cards"},{children:["loading"===(null===s||void 0===s?void 0:s.status)&&jsxRuntime.exports.jsx(SkeletonTable,{}),"loading"!==(null===s||void 0===s?void 0:s.status)&&(null===s||void 0===s?void 0:s.engineOverview)&&Object.keys(s.engineOverview).map(e=>{return jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:6,md:3},{children:jsxRuntime.exports.jsx(StatusCard,{count:s.engineOverview[e],status:e})}))})]})),0<(null==(e=null===s||void 0===s?void 0:s.recentBuilds)?void 0:e.length)&&jsxRuntime.exports.jsx(List,Object.assign({sx:{my:4}},{children:s.recentBuilds.map((e,t)=>jsxRuntime.exports.jsxs(ListItem,Object.assign({divider:!0,"data-test":"os-developer-shared.DeveloperOverview.recent-build"},{children:[jsxRuntime.exports.jsx(ListItemAvatar,{children:jsxRuntime.exports.jsx(Avatar,{src:e.engine.iconPath||e.engine.logoPath})}),jsxRuntime.exports.jsx(ListItemText,{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-developer-shared.DeveloperOverview.recent-engine-build-information",defaultMessage:"Engine build {name} status is {status}",description:"The recent build information",values:{name:e.name,status:e.status}})}))})]})))}))]}),jsxRuntime.exports.jsxs(Box,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:r.headerRow},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:r.iconTitleWrapper},{children:[jsxRuntime.exports.jsx(ApplicationTabIcon,{style:{marginRight:0,marginBottom:-10}}),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h4",component:"h2","data-test":"os-developer-shared.DeveloperOverview.applications-overview-title"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-developer-shared.DeveloperOverview.applications-overview-title",defaultMessage:"Application Overview",description:"The overview title"})}))]})),jsxRuntime.exports.jsx("a",Object.assign({href:isDeveloperDomain()?"/applications":"#",className:r.viewAllLink},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-developer-shared.DeveloperOverview.view-all-applications",defaultMessage:"View all application activity",description:"The view all link"})}))}))]})),jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0,spacing:3,"data-test":"os-developer-shared.DeveloperOverview.application-status-cards"},{children:["loading"===(null===s||void 0===s?void 0:s.status)&&jsxRuntime.exports.jsx(SkeletonTable,{isApplication:!0}),"loading"!==(null===s||void 0===s?void 0:s.status)&&a&&Object.keys(a).map(e=>{return jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:6,md:3},{children:jsxRuntime.exports.jsx(StatusCard,{count:a[e],status:e})}))})]})),0<(null==(e=null===s||void 0===s?void 0:s.applicationsOverview)?void 0:e.length)&&jsxRuntime.exports.jsx(List,Object.assign({sx:{my:4}},{children:s.applicationsOverview.slice(0,5).map((e,t)=>jsxRuntime.exports.jsxs(ListItem,Object.assign({divider:!0,"data-test":"os-developer-shared.DeveloperOverview.recent-application"},{children:[jsxRuntime.exports.jsx(ListItemAvatar,{children:jsxRuntime.exports.jsx(Avatar,{src:e.iconUrl||e.iconSvg})}),jsxRuntime.exports.jsx(ListItemText,{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-developer-shared.DeveloperOverview.recent-application-information",defaultMessage:"Application {name} status is {status}",description:"The recent application information",values:{name:e.name,status:e.status}})}))})]})))}))]})]}))},DeveloperOverviewWidget=()=>jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getDeveloperCenterSharedModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsx(DeveloperOverview,{})})})}))});export{DeveloperOverviewWidget as DeveloperOverview,DeveloperOverviewWidget,EntityTags,Heading as FormHeading,ListField,getDeveloperCenterSharedModule};
|
|
Binary file
|