aiware-js 1.0.0-master.82 → 1.0.0-master.821
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 +1500 -166
- 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 +634 -63
- 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 +1 -1
- package/js-core.esm20.js.gz +0 -0
- package/js-core.esm21.js +1 -1
- package/js-core.esm21.js.gz +0 -0
- package/js-core.esm22.js +240 -1
- package/js-core.esm22.js.gz +0 -0
- package/js-core.esm23.js +20 -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 -230
- package/js-core.esm26.js.gz +0 -0
- package/js-core.esm27.js +1 -60
- package/js-core.esm27.js.gz +0 -0
- package/js-core.esm28.js +1 -1
- package/js-core.esm28.js.gz +0 -0
- package/js-core.esm29.js +1 -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 +1 -1
- package/js-core.esm31.js.gz +0 -0
- package/js-core.esm32.js +1 -14
- package/js-core.esm32.js.gz +0 -0
- package/js-core.esm33.js +1 -12
- package/js-core.esm33.js.gz +0 -0
- package/js-core.esm34.js +101 -54
- package/js-core.esm34.js.gz +0 -0
- package/js-core.esm35.js +214 -1
- package/js-core.esm35.js.gz +0 -0
- package/js-core.esm36.js +1 -88
- package/js-core.esm36.js.gz +0 -0
- package/js-core.esm37.js +1 -226
- package/js-core.esm37.js.gz +0 -0
- package/js-core.esm38.js +6 -4
- package/js-core.esm38.js.gz +0 -0
- package/js-core.esm39.js +1 -1
- 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 +1 -1
- package/js-core.esm40.js.gz +0 -0
- package/js-core.esm41.js +31 -1
- package/js-core.esm41.js.gz +0 -0
- package/js-core.esm42.js +1 -1
- package/js-core.esm42.js.gz +0 -0
- package/js-core.esm43.js +29 -31
- package/js-core.esm43.js.gz +0 -0
- package/js-core.esm44.js +98 -1
- package/js-core.esm44.js.gz +0 -0
- package/js-core.esm45.js +64 -1
- package/js-core.esm45.js.gz +0 -0
- package/js-core.esm46.js +8 -1
- package/js-core.esm46.js.gz +0 -0
- package/js-core.esm47.js +54 -0
- package/js-core.esm47.js.gz +0 -0
- package/js-core.esm48.js +111 -0
- package/js-core.esm48.js.gz +0 -0
- package/js-core.esm49.js +156 -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 +75 -0
- package/js-core.esm50.js.gz +0 -0
- package/js-core.esm51.js +15 -0
- package/js-core.esm51.js.gz +0 -0
- package/js-core.esm52.js +1 -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 +123 -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 +61 -0
- package/js-core.esm61.js.gz +0 -0
- package/js-core.esm62.js +210 -0
- package/js-core.esm62.js.gz +0 -0
- package/js-core.esm63.js +51 -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 +35 -0
- package/js-core.esm66.js.gz +0 -0
- package/js-core.esm67.js +1 -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.esm9.js +1 -1
- package/js-core.esm9.js.gz +0 -0
- package/js-core.umd.css +1545 -211
- package/js-core.umd.css.gz +0 -0
- package/js-core.umd.js +1902 -268
- 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/ApplicationDialog.d.ts +1 -0
- package/lib/components/SupportCenterPixel.d.ts +1 -0
- package/lib/js.d.ts +12 -4
- package/lib/rate-limiter.d.ts +6 -0
- package/lib/registry.d.ts +2 -1
- package/lib/snackbar.d.ts +1 -0
- package/lib/validateConfig.d.ts +1 -1
- package/lib/widgetHandler.d.ts +18 -3
- package/locales/en.json +1 -1
- package/locales/es.json +1 -1
- package/locales/fr.json +1 -1
- package/package.json +63 -22
- 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/js-core.esm4.js
CHANGED
|
@@ -1 +1,13 @@
|
|
|
1
|
-
import{a as generateUtilityClasses,g as generateUtilityClass,b as styled,d as capitalize,_ as _extends,i as alpha,l as lighten,k as darken,r as react,u as useThemeProps,e as _objectWithoutPropertiesLoose,j as jsxRuntime,f as clsx,h as composeClasses}from"./js-core.esm.js";import{S as SwitchBase}from"./js-core.esm5.js";function getSwitchUtilityClass(e){return generateUtilityClass("MuiSwitch",e)}const switchClasses=generateUtilityClasses("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var switchClasses$1=switchClasses;const _excluded=["className","color","edge","size","sx"],useUtilityClasses=e=>{var{classes:e,edge:t,size:s,color:a,checked:i,disabled:o}=e,t={root:["root",t&&"edge"+capitalize(t),"size"+capitalize(s)],switchBase:["switchBase","color"+capitalize(a),i&&"checked",o&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},s=composeClasses(t,getSwitchUtilityClass,e);return _extends({},e,s)},SwitchRoot=styled("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{e=e.ownerState;return[t.root,e.edge&&t["edge"+capitalize(e.edge)],t["size"+capitalize(e.size)]]}})(({ownerState:e})=>_extends({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===e.edge&&{marginLeft:-8},"end"===e.edge&&{marginRight:-8},"small"===e.size&&{width:40,height:24,padding:7,["& ."+switchClasses$1.thumb]:{width:16,height:16},["& ."+switchClasses$1.switchBase]:{padding:4,["&."+switchClasses$1.checked]:{transform:"translateX(16px)"}}})),SwitchSwitchBase=styled(SwitchBase,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{e=e.ownerState;return[t.switchBase,{["& ."+switchClasses$1.input]:t.input},"default"!==e.color&&t["color"+capitalize(e.color)]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),["&."+switchClasses$1.checked]:{transform:"translateX(20px)"},["&."+switchClasses$1.disabled]:{color:"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]},[`&.${switchClasses$1.checked} + .`+switchClasses$1.track]:{opacity:.5},[`&.${switchClasses$1.disabled} + .`+switchClasses$1.track]:{opacity:"light"===e.palette.mode?.12:.2},["& ."+switchClasses$1.input]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>_extends({"&:hover":{backgroundColor:alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{["&."+switchClasses$1.checked]:{color:e.palette[t.color].main,"&:hover":{backgroundColor:alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&."+switchClasses$1.disabled]:{color:"light"===e.palette.mode?lighten(e.palette[t.color].main,.62):darken(e.palette[t.color].main,.55)}},[`&.${switchClasses$1.checked} + .`+switchClasses$1.track]:{backgroundColor:e.palette[t.color].main}})),SwitchTrack=styled("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.mode?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.mode?.38:.3})),SwitchThumb=styled("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Switch=react.exports.forwardRef(function(e,t){var e=useThemeProps({props:e,name:"MuiSwitch"}),{className:s,color:a="primary",edge:i=!1,size:o="medium",sx:r}=e,c=_objectWithoutPropertiesLoose(e,_excluded),e=_extends({},e,{color:a,edge:i,size:o}),a=useUtilityClasses(e),i=jsxRuntime.exports.jsx(SwitchThumb,{className:a.thumb,ownerState:e});return jsxRuntime.exports.jsxs(SwitchRoot,{className:clsx(a.root,s),sx:r,ownerState:e,children:[jsxRuntime.exports.jsx(SwitchSwitchBase,_extends({type:"checkbox",icon:i,checkedIcon:i,ref:t,ownerState:e},c,{classes:_extends({},a,{root:a.switchBase})})),jsxRuntime.exports.jsx(SwitchTrack,{className:a.track,ownerState:e})]})});var Switch$1=Switch;export{Switch$1 as S};
|
|
1
|
+
import{i as createSvgIcon,k as interopRequireDefault,j as jsxRuntime,F as FormattedMessage,m as makeStyles,A as AIWareIntlProvider,l as createSlice,R as Routes,n as Route,o as useDispatch,p as useSelector,q as authStatusSelector,t as authContextSelector,r as react,v as AuthContext,w as lodash,B as Box,T as Typography,x as Alert,y as betaFeaturesSelector,z as useNavigate,C as devErrorLogger,D as useLocation,E as DynamicModuleLoader,G as Button,H as useSearchParams,I as img,J as StyledEngineProvider,L as LinearProgress,K as LoadingButton,M as authErrorMessage,N as Grid,O as FormControl,Q as TextField,U as classNames,V as resetPasswordRequest,W as InputLabel,X as OutlinedInput,Y as InputAdornment,Z as IconButton,$ as Select,a0 as Location,a1 as MenuItem,a2 as Divider,a3 as enableBetaFeatures,a4 as Popover,a5 as all,a6 as CheckmarkFilled,a7 as Bullet,a8 as debounce_1,a9 as takeEvery$1,aa as select,ab as call$m,ac as put,ad as showMessage,ae as MessageSeverity}from"./js-core.esm.js";import{d as default_1$2}from"./js-core.esm5.js";import{d as default_1$4}from"./js-core.esm6.js";import{d as default_1$3}from"./js-core.esm7.js";import{C as Container}from"./js-core.esm8.js";import{A as Autocomplete}from"./js-core.esm9.js";import{B as Box$1}from"./js-core.esm10.js";var match,version,store,wmget,wmhas,wmset,set$1,get,has,STATE,activeXDocument,Visibility={},_interopRequireDefault$1=interopRequireDefault.exports,default_1$1=(Object.defineProperty(Visibility,"__esModule",{value:!0}),Visibility.default=void 0),_createSvgIcon$1=_interopRequireDefault$1(createSvgIcon),_jsxRuntime$1=jsxRuntime.exports,_default$1=(0,_createSvgIcon$1.default)((0,_jsxRuntime$1.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility"),default_1$1=Visibility.default=_default$1,ArrowBack={},_interopRequireDefault=interopRequireDefault.exports,default_1=(Object.defineProperty(ArrowBack,"__esModule",{value:!0}),ArrowBack.default=void 0),_createSvgIcon=_interopRequireDefault(createSvgIcon),_jsxRuntime=jsxRuntime.exports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack"),default_1=ArrowBack.default=_default,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$p=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$n=function(e){try{return!!e()}catch(e){return!0}},fails$m=fails$n,descriptors=!fails$n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$l=fails$n,functionBindNative=!fails$n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$l=Function.prototype.call,functionCall=NATIVE_BIND$3?call$l.bind(call$l):function(){return call$l.apply(call$l,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$3=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$3&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$5=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$3(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,bind$6=FunctionPrototype$2.bind,call$k=FunctionPrototype$2.call,uncurryThis$o=NATIVE_BIND$2&&bind$6.bind(call$k,call$k),functionUncurryThis=NATIVE_BIND$2?function(e){return e&&uncurryThis$o(e)}:function(e){return e&&function(){return call$k.apply(e,arguments)}},uncurryThis$n=functionUncurryThis,toString$b=uncurryThis$n({}.toString),stringSlice$7=uncurryThis$n("".slice),classofRaw$1=function(e){return stringSlice$7(toString$b(e),8,-1)},uncurryThis$m=functionUncurryThis,fails$k=fails$n,classof$8=classofRaw$1,$Object$4=Object,split$1=functionUncurryThis("".split),indexedObject=fails$k(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$8(e)?split$1(e,""):$Object$4(e)}:$Object$4,$TypeError$d=TypeError,requireObjectCoercible$8=function(e){if(null==e)throw $TypeError$d("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$7=requireObjectCoercible$8,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$7(e))},isCallable$p=function(e){return"function"==typeof e},isCallable$o=isCallable$p,isObject$a=function(e){return"object"==typeof e?null!==e:isCallable$o(e)},global$o=global$p,isCallable$n=isCallable$p,aFunction=function(e){return isCallable$n(e)?e:void 0},getBuiltIn$8=function(e,t){return arguments.length<2?aFunction(global$o[e]):global$o[e]&&global$o[e][t]},uncurryThis$l=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),getBuiltIn$7=getBuiltIn$8,engineUserAgent=getBuiltIn$8("navigator","userAgent")||"",global$n=global$p,userAgent$3=engineUserAgent,process$3=global$n.process,Deno$1=global$n.Deno,versions=process$3&&process$3.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent$3&&(!(match=userAgent$3.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent$3.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION$1=engineV8Version,fails$j=fails$n,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails$j(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$2=nativeSymbol,useSymbolAsUid=nativeSymbol&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$8,isCallable$m=isCallable$p,isPrototypeOf$5=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6("Symbol");return isCallable$m(t)&&isPrototypeOf$5(t.prototype,$Object$3(e))},$String$3=String,tryToString$4=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$l=isCallable$p,tryToString$3=tryToString$4,$TypeError$c=TypeError,aCallable$7=function(e){if(isCallable$l(e))return e;throw $TypeError$c(tryToString$3(e)+" is not a function")},aCallable$6=aCallable$7,getMethod$6=function(e,t){e=e[t];return null==e?void 0:aCallable$6(e)},call$j=functionCall,isCallable$k=isCallable$p,isObject$9=isObject$a,$TypeError$b=TypeError,ordinaryToPrimitive$1=function(e,t){var r,o;if("string"===t&&isCallable$k(r=e.toString)&&!isObject$9(o=call$j(r,e)))return o;if(isCallable$k(r=e.valueOf)&&!isObject$9(o=call$j(r,e)))return o;if("string"!==t&&isCallable$k(r=e.toString)&&!isObject$9(o=call$j(r,e)))return o;throw $TypeError$b("Can't convert object to primitive value")},shared$4={exports:{}},isPure=!1,global$m=global$p,defineProperty$7=Object.defineProperty,defineGlobalProperty$3=function(t,r){try{defineProperty$7(global$m,t,{value:r,configurable:!0,writable:!0})}catch(e){global$m[t]=r}return r},global$l=global$p,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$p[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$6=((shared$4.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$8),$Object$2=Object,toObject$4=function(e){return $Object$2(requireObjectCoercible$6(e))},uncurryThis$k=functionUncurryThis,toObject$3=toObject$4,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$3(e),t)},uncurryThis$j=functionUncurryThis,id=0,postfix=Math.random(),toString$a=uncurryThis$j(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$a(++id+postfix,36)},global$k=global$p,shared$3=shared$4.exports,hasOwn$d=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL$1=nativeSymbol,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$3("wks"),Symbol$1=global$k.Symbol,symbolFor=Symbol$1&&Symbol$1.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$l=function(e){var t;return hasOwn$d(WellKnownSymbolsStore,e)&&(NATIVE_SYMBOL$1||"string"==typeof WellKnownSymbolsStore[e])||(t="Symbol."+e,NATIVE_SYMBOL$1&&hasOwn$d(Symbol$1,e)?WellKnownSymbolsStore[e]=Symbol$1[e]:WellKnownSymbolsStore[e]=(USE_SYMBOL_AS_UID&&symbolFor?symbolFor:createWellKnownSymbol)(t)),WellKnownSymbolsStore[e]},call$i=functionCall,isObject$8=isObject$a,isSymbol$1=isSymbol$2,getMethod$5=getMethod$6,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$k=wellKnownSymbol$l,$TypeError$a=TypeError,TO_PRIMITIVE=wellKnownSymbol$l("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$8(e)||isSymbol$1(e))return e;var r=getMethod$5(e,TO_PRIMITIVE);if(r){if(r=call$i(r,e,t=void 0===t?"default":t),!isObject$8(r)||isSymbol$1(r))return r;throw $TypeError$a("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$3=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$j=global$p,isObject$7=isObject$a,document$3=global$p.document,EXISTS$1=isObject$7(document$3)&&isObject$7(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$d=descriptors,fails$i=fails$n,createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$n(function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$c=descriptors,call$h=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$4=createPropertyDescriptor$5,toIndexedObject$4=toIndexedObject$5,toPropertyKey$2=toPropertyKey$3,hasOwn$c=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$c?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$2(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$c(e,t))return createPropertyDescriptor$4(!call$h(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$b=descriptors,fails$h=fails$n,v8PrototypeDefineBug=descriptors&&fails$n(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$6=isObject$a,$String$2=String,$TypeError$9=TypeError,anObject$h=function(e){if(isObject$6(e))return e;throw $TypeError$9($String$2(e)+" is not an object")},DESCRIPTORS$a=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$g=anObject$h,toPropertyKey$1=toPropertyKey$3,$TypeError$8=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$9=(objectDefineProperty.f=DESCRIPTORS$a?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){var o;return anObject$g(e),t=toPropertyKey$1(t),anObject$g(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]&&(o=$getOwnPropertyDescriptor(e,t))&&o[WRITABLE]&&(e[t]=r.value,r={configurable:(CONFIGURABLE$1 in r?r:o)[CONFIGURABLE$1],enumerable:(ENUMERABLE in r?r:o)[ENUMERABLE],writable:!1}),$defineProperty(e,t,r)}:$defineProperty:function(e,t,r){if(anObject$g(e),t=toPropertyKey$1(t),anObject$g(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$8("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$5=objectDefineProperty,createPropertyDescriptor$3=createPropertyDescriptor$5,createNonEnumerableProperty$6=DESCRIPTORS$9?function(e,t,r){return definePropertyModule$5.f(e,t,createPropertyDescriptor$3(1,r))}:function(e,t,r){return e[t]=r,e},makeBuiltIn$2={exports:{}},DESCRIPTORS$8=descriptors,hasOwn$b=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$8&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$b(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$8||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$i=functionUncurryThis,isCallable$j=isCallable$p,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$4=(isCallable$j(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$i=global$p,isCallable$i=isCallable$p,inspectSource$3=inspectSource$4,WeakMap$1=global$p.WeakMap,nativeWeakMap=isCallable$i(WeakMap$1)&&/native code/.test(inspectSource$3(WeakMap$1)),shared$2=shared$4.exports,uid=uid$2,keys$1=shared$2("keys"),sharedKey$3=function(e){return keys$1[e]||(keys$1[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=nativeWeakMap,global$h=global$p,uncurryThis$h=functionUncurryThis,isObject$5=isObject$a,createNonEnumerableProperty$5=createNonEnumerableProperty$6,hasOwn$a=hasOwnProperty_1,shared$1=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$3=global$h.TypeError,WeakMap=global$h.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$5(e)&&(e=get(e)).type===t)return e;throw TypeError$3("Incompatible receiver, "+t+" required")}},internalState=(has=NATIVE_WEAK_MAP||shared$1.state?(store=shared$1.state||(shared$1.state=new WeakMap),wmget=uncurryThis$h(store.get),wmhas=uncurryThis$h(store.has),wmset=uncurryThis$h(store.set),set$1=function(e,t){if(wmhas(store,e))throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);return t.facade=e,wmset(store,e,t),t},get=function(e){return wmget(store,e)||{}},function(e){return wmhas(store,e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set$1=function(e,t){if(hasOwn$a(e,STATE))throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$5(e,STATE,t),t},get=function(e){return hasOwn$a(e,STATE)?e[STATE]:{}},function(e){return hasOwn$a(e,STATE)}),{set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor}),fails$g=fails$n,isCallable$h=isCallable$p,hasOwn$9=hasOwnProperty_1,DESCRIPTORS$7=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$4,InternalStateModule$3=internalState,enforceInternalState$1=InternalStateModule$3.enforce,getInternalState$2=InternalStateModule$3.get,defineProperty$6=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$7&&!fails$g(function(){return 8!==defineProperty$6(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$1=makeBuiltIn$2.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$9(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$7?defineProperty$6(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$9(r,"arity")&&e.length!==r.arity&&defineProperty$6(e,"length",{value:r.arity});try{r&&hasOwn$9(r,"constructor")&&r.constructor?DESCRIPTORS$7&&defineProperty$6(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState$1(e);return hasOwn$9(r,"source")||(r.source=TEMPLATE.join("string"==typeof t?t:"")),e},isCallable$g=(Function.prototype.toString=makeBuiltIn$1(function(){return isCallable$h(this)&&getInternalState$2(this).source||inspectSource$2(this)},"toString"),isCallable$p),definePropertyModule$4=objectDefineProperty,makeBuiltIn=makeBuiltIn$2.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$a=function(e,t,r,o){var n=(o=o||{}).enumerable,a=void 0!==o.name?o.name:t;if(isCallable$g(r)&&makeBuiltIn(r,a,o),o.global)n?e[t]=r:defineGlobalProperty$1(t,r);else{try{o.unsafe?e[t]&&(n=!0):delete e[t]}catch(e){}n?e[t]=r:definePropertyModule$4.f(e,t,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor$2=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor$2:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$4=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$3=toIntegerOrInfinity$4,max$2=Math.max,min$2=Math.min,toAbsoluteIndex$2=function(e,t){e=toIntegerOrInfinity$3(e);return e<0?max$2(e+t,0):min$2(e,t)},toIntegerOrInfinity$2=toIntegerOrInfinity$4,min$1=Math.min,toLength$3=function(e){return 0<e?min$1(toIntegerOrInfinity$2(e),9007199254740991):0},toLength$2=toLength$3,lengthOfArrayLike$3=function(e){return toLength$2(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex$1=toAbsoluteIndex$2,lengthOfArrayLike$2=lengthOfArrayLike$3,createMethod$2=function(s){return function(e,t,r){var o,n=toIndexedObject$3(e),a=lengthOfArrayLike$2(n),i=toAbsoluteIndex$1(r,a);if(s&&t!=t){for(;i<a;)if((o=n[i++])!=o)return!0}else for(;i<a;i++)if((s||i in n)&&n[i]===t)return s||i||0;return!s&&-1}},arrayIncludes={includes:createMethod$2(!0),indexOf:createMethod$2(!1)},uncurryThis$g=functionUncurryThis,hasOwn$8=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$2=uncurryThis$g([].push),objectKeysInternal=function(e,t){var r,o=toIndexedObject$2(e),n=0,a=[];for(r in o)!hasOwn$8(hiddenKeys$2,r)&&hasOwn$8(o,r)&&push$2(a,r);for(;t.length>n;)!hasOwn$8(o,r=t[n++])||~indexOf$1(a,r)||push$2(a,r);return a},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$5=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$8),uncurryThis$f=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$f=anObject$h,concat$2=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$f(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$2(t,r(e)):t},hasOwn$7=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$3=objectDefineProperty,copyConstructorProperties$2=function(e,t,r){for(var o=ownKeys(t),n=definePropertyModule$3.f,a=getOwnPropertyDescriptorModule.f,i=0;i<o.length;i++){var s=o[i];hasOwn$7(e,s)||r&&hasOwn$7(r,s)||n(e,s,a(t,s))}},fails$f=fails$n,isCallable$f=isCallable$p,replacement=/#|\.prototype\./,isForced$3=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$f(t)?fails$f(t):!!t)},normalize=isForced$3.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$3.data={},NATIVE=isForced$3.NATIVE="N",POLYFILL=isForced$3.POLYFILL="P",isForced_1=isForced$3,global$g=global$p,getOwnPropertyDescriptor$2=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$4=createNonEnumerableProperty$6,defineBuiltIn$9=defineBuiltIn$a,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$1=copyConstructorProperties$2,isForced$2=isForced_1,_export=function(e,t){var r,o,n,a=e.target,i=e.global,s=e.stat,l=i?global$g:s?global$g[a]||defineGlobalProperty(a,{}):(global$g[a]||{}).prototype;if(l)for(r in t){if(o=t[r],n=e.dontCallGetSet?(n=getOwnPropertyDescriptor$2(l,r))&&n.value:l[r],!isForced$2(i?r:a+(s?".":"#")+r,e.forced)&&void 0!==n){if(typeof o==typeof n)continue;copyConstructorProperties$1(o,n)}(e.sham||n&&n.sham)&&createNonEnumerableProperty$4(o,"sham",!0),defineBuiltIn$9(l,r,o,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$6=descriptors,uncurryThis$e=functionUncurryThis,call$g=functionCall,fails$e=fails$n,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$2=toObject$4,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$5=Object.defineProperty,concat$1=uncurryThis$e([].concat),objectAssign=!$assign||fails$e(function(){var e,t,r,o;return!(!DESCRIPTORS$6||1===$assign({b:1},$assign(defineProperty$5({},"a",{enumerable:!0,get:function(){defineProperty$5(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},o="abcdefghijklmnopqrst",(e={})[r=Symbol()]=7,o.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[r])||objectKeys$1($assign({},t)).join("")!=o})?function(e,t){for(var r=toObject$2(e),o=arguments.length,n=1,a=getOwnPropertySymbolsModule.f,i=propertyIsEnumerableModule.f;n<o;)for(var s,l=IndexedObject(arguments[n++]),c=a?concat$1(objectKeys$1(l),a(l)):objectKeys$1(l),u=c.length,p=0;p<u;)s=c[p++],DESCRIPTORS$6&&!call$g(i,l,s)||(r[s]=l[s]);return r}:$assign,$$d=_export,assign=objectAssign,objectDefineProperties=(_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign}),{}),DESCRIPTORS$5=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$2=objectDefineProperty,anObject$e=anObject$h,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn$4=(objectDefineProperties.f=DESCRIPTORS$5&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$e(e);for(var r,o=toIndexedObject$1(t),n=objectKeys(t),a=n.length,i=0;i<a;)definePropertyModule$2.f(e,r=n[i++],o[r]);return e},getBuiltIn$8),html$2=getBuiltIn$8("document","documentElement"),anObject$d=anObject$h,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html$1=html$2,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$1.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$d(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule.f(r,t)}),wellKnownSymbol$j=wellKnownSymbol$l,create$3=objectCreate,defineProperty$4=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$j("unscopables"),ArrayPrototype$1=Array.prototype,addToUnscopables$2=(null==ArrayPrototype$1[UNSCOPABLES]&&defineProperty$4(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$3(null)}),function(e){ArrayPrototype$1[UNSCOPABLES][e]=!0}),$$c=_export,$includes=arrayIncludes.includes,fails$d=fails$n,addToUnscopables$1=addToUnscopables$2,BROKEN_ON_SPARSE=fails$n(function(){return!Array(1).includes()}),isObject$4=($$c({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,1<arguments.length?arguments[1]:void 0)}}),addToUnscopables$1("includes"),isObject$a),classof$7=classofRaw$1,wellKnownSymbol$i=wellKnownSymbol$l,MATCH$2=wellKnownSymbol$l("match"),isRegexp=function(e){var t;return isObject$4(e)&&(void 0!==(t=e[MATCH$2])?!!t:"RegExp"==classof$7(e))},isRegExp$1=isRegexp,$TypeError$7=TypeError,notARegexp=function(e){if(isRegExp$1(e))throw $TypeError$7("The method doesn't accept regular expressions");return e},wellKnownSymbol$h=wellKnownSymbol$l,TO_STRING_TAG$3=wellKnownSymbol$l("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$3]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$e=isCallable$p,classofRaw=classofRaw$1,wellKnownSymbol$g=wellKnownSymbol$l,TO_STRING_TAG$2=wellKnownSymbol$l("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$6=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$e(e.callee)?"Arguments":t},classof$5=classof$6,$String$1=String,toString$9=function(e){if("Symbol"===classof$5(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$1(e)},wellKnownSymbol$f=wellKnownSymbol$l,MATCH$1=wellKnownSymbol$l("match"),correctIsRegexpLogic=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[MATCH$1]=!1,"/./"[t](r)}catch(e){}}return!1},$$b=_export,uncurryThis$d=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible$5=requireObjectCoercible$8,toString$8=toString$9,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf$2=functionUncurryThis("".indexOf),anObject$c=($$b({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf$2(toString$8(requireObjectCoercible$5(this)),toString$8(notARegExp(e)),1<arguments.length?arguments[1]:void 0)}}),anObject$h),regexpFlags$1=function(){var e=anObject$c(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$c=fails$n,global$f=global$p,$RegExp$2=global$p.RegExp,UNSUPPORTED_Y$2=fails$c(function(){var e=$RegExp$2("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),MISSED_STICKY$1=UNSUPPORTED_Y$2||fails$c(function(){return!$RegExp$2("a","y").sticky}),BROKEN_CARET=UNSUPPORTED_Y$2||fails$c(function(){var e=$RegExp$2("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),regexpStickyHelpers={BROKEN_CARET:BROKEN_CARET,MISSED_STICKY:MISSED_STICKY$1,UNSUPPORTED_Y:UNSUPPORTED_Y$2},fails$b=fails$n,global$e=global$p,$RegExp$1=global$p.RegExp,regexpUnsupportedDotAll=fails$b(function(){var e=$RegExp$1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),fails$a=fails$n,global$d=global$p,$RegExp=global$p.RegExp,regexpUnsupportedNcg=fails$a(function(){var e=$RegExp("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),call$f=functionCall,uncurryThis$c=functionUncurryThis,toString$7=toString$9,regexpFlags=regexpFlags$1,stickyHelpers$1=regexpStickyHelpers,shared=shared$4.exports,create$2=objectCreate,getInternalState$1=internalState.get,UNSUPPORTED_DOT_ALL$1=regexpUnsupportedDotAll,UNSUPPORTED_NCG$1=regexpUnsupportedNcg,nativeReplace=shared("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt$5=uncurryThis$c("".charAt),indexOf=uncurryThis$c("".indexOf),replace$5=uncurryThis$c("".replace),stringSlice$6=uncurryThis$c("".slice),UPDATES_LAST_INDEX_WRONG=function(){var e=/a/,t=/b*/g;return call$f(nativeExec,e,"a"),call$f(nativeExec,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),UNSUPPORTED_Y$1=stickyHelpers$1.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1],PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y$1||UNSUPPORTED_DOT_ALL$1||UNSUPPORTED_NCG$1,regexpExec$2=patchedExec=PATCH?function(e){var t,r,o,n,a,i,s=this,l=getInternalState$1(s),e=toString$7(e),c=l.raw;if(c)return c.lastIndex=s.lastIndex,p=call$f(patchedExec,c,e),s.lastIndex=c.lastIndex,p;var u=l.groups,c=UNSUPPORTED_Y$1&&s.sticky,p=call$f(regexpFlags,s),l=s.source,d=0,g=e;if(c&&(p=replace$5(p,"y",""),-1===indexOf(p,"g")&&(p+="g"),g=stringSlice$6(e,s.lastIndex),0<s.lastIndex&&(!s.multiline||s.multiline&&"\n"!==charAt$5(e,s.lastIndex-1))&&(l="(?: "+l+")",g=" "+g,d++),t=new RegExp("^(?:"+l+")",p)),NPCG_INCLUDED&&(t=new RegExp("^"+l+"$(?!\\s)",p)),UPDATES_LAST_INDEX_WRONG&&(r=s.lastIndex),o=call$f(nativeExec,c?t:s,g),c?o?(o.input=stringSlice$6(o.input,d),o[0]=stringSlice$6(o[0],d),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),NPCG_INCLUDED&&o&&1<o.length&&call$f(nativeReplace,o[0],t,function(){for(n=1;n<arguments.length-2;n++)void 0===arguments[n]&&(o[n]=void 0)}),o&&u)for(o.groups=a=create$2(null),n=0;n<u.length;n++)a[(i=u[n])[0]]=o[i[1]];return o}:patchedExec,$$a=_export,exec$2=regexpExec$2,NATIVE_BIND$1=(_export({target:"RegExp",proto:!0,forced:/./.exec!==exec$2},{exec:exec$2}),functionBindNative),FunctionPrototype=Function.prototype,apply$2=FunctionPrototype.apply,call$e=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1?call$e.bind(apply$2):function(){return call$e.apply(apply$2,arguments)}),uncurryThis$b=functionUncurryThis,defineBuiltIn$8=defineBuiltIn$a,regexpExec$1=regexpExec$2,fails$9=fails$n,wellKnownSymbol$e=wellKnownSymbol$l,createNonEnumerableProperty$3=createNonEnumerableProperty$6,SPECIES$3=wellKnownSymbol$e("species"),RegExpPrototype$3=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(r,e,t,o){var i,n=wellKnownSymbol$e(r),s=!fails$9(function(){var e={};return e[n]=function(){return 7},7!=""[r](e)}),a=s&&!fails$9(function(){var e=!1,t=/a/;return"split"===r&&((t={constructor:{}}).constructor[SPECIES$3]=function(){return t},t.flags="",t[n]=/./[n]),t.exec=function(){return e=!0,null},t[n](""),!e});s&&a&&!t||(i=uncurryThis$b(/./[n]),a=e(n,""[r],function(e,t,r,o,n){var e=uncurryThis$b(e),a=t.exec;return a===regexpExec$1||a===RegExpPrototype$3.exec?s&&!n?{done:!0,value:i(t,r,o)}:{done:!0,value:e(r,t,o)}:{done:!1}}),defineBuiltIn$8(String.prototype,r,a[0]),defineBuiltIn$8(RegExpPrototype$3,n,a[1])),o&&createNonEnumerableProperty$3(RegExpPrototype$3[n],"sham",!0)},uncurryThis$a=functionUncurryThis,toIntegerOrInfinity$1=toIntegerOrInfinity$4,toString$6=toString$9,requireObjectCoercible$4=requireObjectCoercible$8,charAt$4=uncurryThis$a("".charAt),charCodeAt=uncurryThis$a("".charCodeAt),stringSlice$5=uncurryThis$a("".slice),createMethod$1=function(n){return function(e,t){var r,e=toString$6(requireObjectCoercible$4(e)),t=toIntegerOrInfinity$1(t),o=e.length;return t<0||o<=t?n?"":void 0:(r=charCodeAt(e,t))<55296||56319<r||t+1===o||(o=charCodeAt(e,t+1))<56320||57343<o?n?charAt$4(e,t):r:n?stringSlice$5(e,t,t+2):o-56320+(r-55296<<10)+65536}},stringMultibyte={codeAt:createMethod$1(!1),charAt:createMethod$1(!0)},charAt$3=stringMultibyte.charAt,advanceStringIndex$2=function(e,t,r){return t+(r?charAt$3(e,t).length:1)},uncurryThis$9=functionUncurryThis,toObject$1=toObject$4,floor$1=Math.floor,charAt$2=uncurryThis$9("".charAt),replace$4=uncurryThis$9("".replace),stringSlice$4=uncurryThis$9("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,getSubstitution$1=function(a,i,s,l,c,e){var u=s+a.length,p=l.length,t=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==c&&(c=toObject$1(c),t=SUBSTITUTION_SYMBOLS),replace$4(e,t,function(e,t){var r;switch(charAt$2(t,0)){case"$":return"$";case"&":return a;case"`":return stringSlice$4(i,0,s);case"'":return stringSlice$4(i,u);case"<":r=c[stringSlice$4(t,1,-1)];break;default:var o,n=+t;if(0==n)return e;if(p<n)return 0!==(o=floor$1(n/10))&&o<=p?void 0===l[o-1]?charAt$2(t,1):l[o-1]+charAt$2(t,1):e;r=l[n-1]}return void 0===r?"":r})},call$d=functionCall,anObject$b=anObject$h,isCallable$d=isCallable$p,classof$4=classofRaw$1,regexpExec=regexpExec$2,$TypeError$6=TypeError,regexpExecAbstract=function(e,t){var r=e.exec;if(isCallable$d(r))return null!==(r=call$d(r,e,t))&&anObject$b(r),r;if("RegExp"===classof$4(e))return call$d(regexpExec,e,t);throw $TypeError$6("RegExp#exec called on incompatible receiver")},apply$1=functionApply,call$c=functionCall,uncurryThis$8=functionUncurryThis,fixRegExpWellKnownSymbolLogic$2=fixRegexpWellKnownSymbolLogic,fails$8=fails$n,anObject$a=anObject$h,isCallable$c=isCallable$p,toIntegerOrInfinity=toIntegerOrInfinity$4,toLength$1=toLength$3,toString$5=toString$9,requireObjectCoercible$3=requireObjectCoercible$8,advanceStringIndex$1=advanceStringIndex$2,getMethod$4=getMethod$6,getSubstitution=getSubstitution$1,regExpExec$2=regexpExecAbstract,wellKnownSymbol$d=wellKnownSymbol$l,REPLACE=wellKnownSymbol$l("replace"),max$1=Math.max,min=Math.min,concat=uncurryThis$8([].concat),push$1=uncurryThis$8([].push),stringIndexOf$1=uncurryThis$8("".indexOf),stringSlice$3=uncurryThis$8("".slice),maybeToString=function(e){return void 0===e?e:String(e)},REPLACE_KEEPS_$0="$0"==="a".replace(/./,"$0"),REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=!!/./[REPLACE]&&""===/./[REPLACE]("a","$0"),REPLACE_SUPPORTS_NAMED_GROUPS=!fails$8(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),call$b=(fixRegExpWellKnownSymbolLogic$2("replace",function(e,x,y){var f=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(e,t){var r=requireObjectCoercible$3(this),o=null==e?void 0:getMethod$4(e,REPLACE);return o?call$c(o,e,r,t):call$c(x,toString$5(r),e,t)},function(e,t){var r=anObject$a(this),o=toString$5(e);if("string"==typeof t&&-1===stringIndexOf$1(t,f)&&-1===stringIndexOf$1(t,"$<")){e=y(x,r,o,t);if(e.done)return e.value}for(var n,a=isCallable$c(t),i=(a||(t=toString$5(t)),r.global),s=(i&&(n=r.unicode,r.lastIndex=0),[]);null!==(p=regExpExec$2(r,o))&&(push$1(s,p),i);)""===toString$5(p[0])&&(r.lastIndex=advanceStringIndex$1(o,toLength$1(r.lastIndex),n));for(var l="",c=0,u=0;u<s.length;u++){for(var p,d=toString$5((p=s[u])[0]),g=max$1(min(toIntegerOrInfinity(p.index),o.length),0),$=[],m=1;m<p.length;m++)push$1($,maybeToString(p[m]));var b=p.groups,h=a?(h=concat([d],$,g,o),void 0!==b&&push$1(h,b),toString$5(apply$1(t,void 0,h))):getSubstitution(d,o,g,$,b,t);c<=g&&(l+=stringSlice$3(o,c,g)+h,c=g+d.length)}return l+stringSlice$3(o,c)}]},!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE),functionCall),hasOwn$6=hasOwnProperty_1,isPrototypeOf$4=objectIsPrototypeOf,regExpFlags=regexpFlags$1,RegExpPrototype$2=RegExp.prototype,regexpGetFlags=function(e){var t=e.flags;return void 0!==t||"flags"in RegExpPrototype$2||hasOwn$6(e,"flags")||!isPrototypeOf$4(RegExpPrototype$2,e)?t:call$b(regExpFlags,e)},PROPER_FUNCTION_NAME$2=functionName.PROPER,defineBuiltIn$7=defineBuiltIn$a,anObject$9=anObject$h,$toString$1=toString$9,fails$7=fails$n,getRegExpFlags$1=regexpGetFlags,TO_STRING="toString",RegExpPrototype$1=RegExp.prototype,n$ToString=RegExpPrototype$1[TO_STRING],NOT_GENERIC=fails$7(function(){return"/a/b"!=n$ToString.call({source:"a",flags:"b"})}),INCORRECT_NAME=PROPER_FUNCTION_NAME$2&&n$ToString.name!=TO_STRING;(NOT_GENERIC||INCORRECT_NAME)&&defineBuiltIn$7(RegExp.prototype,TO_STRING,function(){var e=anObject$9(this);return"/"+$toString$1(e.source)+"/"+$toString$1(getRegExpFlags$1(e))},{unsafe:!0});const SHARED_TEXT={resetPasswordTitle:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.title",defaultMessage:"New password required",description:"Title of the reset password widget"}),resetPasswordSubHeader:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.subHeader",defaultMessage:"A strong password contains a mix of numbers, letters and symbols. It is hard to guess, does not resemble a real word and is only used for this account.",description:"Description of the reset password widget"}),passwordRequirements:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordRequirements",defaultMessage:"Password requirements",description:"Heading of password requirements"}),resetPasswordSubmitButton:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.submitButton",defaultMessage:"Change Password",description:"Text of submit button for reset password"}),lengthCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.lengthCheck",defaultMessage:"8 Character minimum",description:"The error message for the lengthCheck."}),pastPasswordCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.pastPasswordCheck",defaultMessage:"Not identical to last 10 passwords",description:"The error message for the pastPasswordCheck."}),userNameCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.userNameCheck",defaultMessage:"Not the same as account email",description:"The error message for the userNameCheck."}),dictionaryCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.dictionaryCheck",defaultMessage:"No dictionary passwords",description:"The error message for the dictionaryCheck."}),passwordsNotMatching:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordsNotMatching",defaultMessage:"Passwords not matching",description:"The error message for the passwords not matching."}),invalidTokenOrUsername:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.invalidTokenOrUsername",defaultMessage:"Error! Missing token or username.",description:"The error message for the missing token or username."}),passwordComplexityCheckSymbols:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordComplexityCheckSymbols",defaultMessage:"Requires 1 lowercase, 1 uppercase, 1 number, and 1 symbol.",description:"The error message for the check symbols error."}),passwordComplexityCheckDays:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordComplexityCheckDays",defaultMessage:"Cannot be changed twice within 10 days.",description:"The error message for the days error."})},generateApiUrlFromHost=(e=!1)=>{var t=window.location.host;if(t.includes("local"))return e?"https://api.stage.us-1.veritone.com/v3/graphql":"https://api.stage.us-1.veritone.com";var t=t.split("."),r=t.findIndex(e=>"dev"===e||"stage"===e);let o="";return o=-1!==r?"veritone"!==t[r+1]?t[r]+"."+t[r+1]:t[r]+".us-1":(r=t.findIndex(e=>"veritone"===e),"aiware2"!==t[r-1]?t[r-1]:"us-1"),e?`https://api.${o}.veritone.com/v3/graphql`:`https://api.${o}.veritone.com`};function parseToken(e=""){try{var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(atob(t).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(r)}catch(e){return console.log(e),null}}const Header=({text:e,subText:t,type:r})=>jsxRuntime.exports.jsxs(Box,Object.assign({sx:{marginBottom:"30px",textAlign:"center"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({sx:{fontFamily:"Nunito",fontSize:"22px",lineHeight:"18px",letterSpacing:"-1.30385e-09px",color:"#2A323C"},"data-testid":"os-auth-header-text-"+r},{children:e})),t&&jsxRuntime.exports.jsx(Typography,Object.assign({sx:{fontFamily:"Nunito",fontSize:"16px",lineHeight:"22px",textAlign:"center",letterSpacing:"-1.30385e-09px",color:"#5C6269",marginTop:"10px",width:"368px"},"data-testid":"os-auth-subheader-text-"+r},{children:t}))]})),useStyles$7=makeStyles()(e=>({title:{textTransform:"initial",fontSize:22,marginBottom:e.spacing(4)},subHeader:{color:"#9CA8B4"},h6:{color:"#27292B"},requirements:{listStyle:"disc",padding:0,marginLeft:e.spacing(5),"& li":{marginBottom:e.spacing(1),color:"#27292B",fontSize:14,fontWeight:400,"&.requirementError":{color:"#D50000"}}},submitButton:{height:55,background:"#214167",fontSize:18,width:"100%",maxWidth:380,textTransform:"uppercase"},text:{fontFamily:"Nunito",fontWeight:400,fontSize:"22px",lineHeight:"18px",letterSpacing:"-1.30385e-09px",color:"#2A323C"},subText:{fontFamily:"'Nunito Sans'",fontWeight:400,fontSize:"16px",lineHeight:"22px",textAlign:"center",letterSpacing:"-1.30385e-09px",color:"#5C6269"}}));var IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,iterators={},fails$6=fails$n,correctPrototypeGetter=!fails$n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$5=hasOwnProperty_1,isCallable$b=isCallable$p,toObject=toObject$4,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$5(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$b(t)&&e instanceof t?t.prototype:e instanceof $Object?ObjectPrototype:null)},fails$5=fails$n,isCallable$a=isCallable$p,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$6=defineBuiltIn$a,wellKnownSymbol$c=wellKnownSymbol$l,ITERATOR$7=wellKnownSymbol$l("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),null==IteratorPrototype$2||fails$5(function(){var e={};return IteratorPrototype$2[ITERATOR$7].call(e)!==e})),iteratorsCore=(isCallable$a((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$7])||defineBuiltIn$6(IteratorPrototype$2,ITERATOR$7,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$3=objectDefineProperty.f,hasOwn$4=hasOwnProperty_1,wellKnownSymbol$b=wellKnownSymbol$l,TO_STRING_TAG$1=wellKnownSymbol$l("toStringTag"),setToStringTag$4=function(e,t,r){(e=e&&!r?e.prototype:e)&&!hasOwn$4(e,TO_STRING_TAG$1)&&defineProperty$3(e,TO_STRING_TAG$1,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$1=objectCreate,createPropertyDescriptor$2=createPropertyDescriptor$5,setToStringTag$3=setToStringTag$4,Iterators$4=iterators,returnThis$1=function(){return this},createIteratorConstructor$2=function(e,t,r,o){t+=" Iterator";return e.prototype=create$1(IteratorPrototype$1,{next:createPropertyDescriptor$2(+!o,r)}),setToStringTag$3(e,t,!1),Iterators$4[t]=returnThis$1,e},isCallable$9=isCallable$p,$String=String,$TypeError$5=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$9(e))return e;throw $TypeError$5("Can't set "+$String(e)+" as a prototype")},uncurryThis$7=functionUncurryThis,anObject$8=anObject$h,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var r,o=!1,e={};try{(r=uncurryThis$7(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),o=e instanceof Array}catch(e){}return function(e,t){return anObject$8(e),aPossiblePrototype(t),o?r(e,t):e.__proto__=t,e}}():void 0),$$9=_export,call$a=functionCall,FunctionName=functionName,isCallable$8=isCallable$p,createIteratorConstructor$1=createIteratorConstructor$2,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$2=objectSetPrototypeOf,setToStringTag$2=setToStringTag$4,createNonEnumerableProperty$2=createNonEnumerableProperty$6,defineBuiltIn$5=defineBuiltIn$a,wellKnownSymbol$a=wellKnownSymbol$l,Iterators$3=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME$1=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$6=wellKnownSymbol$a("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},defineIterator$1=function(e,t,r,o,n,a,i){createIteratorConstructor$1(r,t,o);function s(e){if(e===n&&g)return g;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,o=t+" Iterator",u=!1,p=e.prototype,d=p[ITERATOR$6]||p["@@iterator"]||n&&p[n],g=!BUGGY_SAFARI_ITERATORS&&d||s(n),$="Array"==t&&p.entries||d;if($&&($=getPrototypeOf($.call(new e)))!==Object.prototype&&$.next&&(getPrototypeOf($)!==IteratorPrototype&&(setPrototypeOf$2?setPrototypeOf$2($,IteratorPrototype):isCallable$8($[ITERATOR$6])||defineBuiltIn$5($,ITERATOR$6,returnThis)),setToStringTag$2($,o,!0)),PROPER_FUNCTION_NAME$1&&n==VALUES&&d&&d.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$2(p,"name",VALUES):(u=!0,g=function(){return call$a(d,this)})),n)if(l={values:s(VALUES),keys:a?g:s(KEYS),entries:s(ENTRIES)},i)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in p||defineBuiltIn$5(p,c,l[c]);else $$9({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return p[ITERATOR$6]!==g&&defineBuiltIn$5(p,ITERATOR$6,g,{name:n}),Iterators$3[t]=g,l},toIndexedObject=toIndexedObject$5,addToUnscopables=addToUnscopables$2,Iterators$2=iterators,InternalStateModule$2=internalState,defineProperty$2=objectDefineProperty.f,defineIterator=defineIterator$1,DESCRIPTORS$4=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState$2=InternalStateModule$2.set,getInternalState=InternalStateModule$2.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState$2(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState(this),t=e.target,r=e.kind,o=e.index++;return!t||o>=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:o,done:!1}:"values"==r?{value:t[o],done:!1}:{value:[o,t[o]],done:!1}},"values"),values=Iterators$2.Arguments=Iterators$2.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),DESCRIPTORS$4&&"values"!==values.name)try{defineProperty$2(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$c=global$p,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty$1=createNonEnumerableProperty$6,wellKnownSymbol$9=wellKnownSymbol$l,ITERATOR$5=wellKnownSymbol$9("iterator"),TO_STRING_TAG=wellKnownSymbol$9("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR$5]!==ArrayValues)try{createNonEnumerableProperty$1(t,ITERATOR$5,ArrayValues)}catch(e){t[ITERATOR$5]=ArrayValues}if(t[TO_STRING_TAG]||createNonEnumerableProperty$1(t,TO_STRING_TAG,e),DOMIterables[e])for(var r in ArrayIteratorMethods)if(t[r]!==ArrayIteratorMethods[r])try{createNonEnumerableProperty$1(t,r,ArrayIteratorMethods[r])}catch(e){t[r]=ArrayIteratorMethods[r]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$c[COLLECTION_NAME]&&global$c[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");var EmptyStringDescriptionStore,SymbolWrapper,NATIVE_SYMBOL,symbolToString,symbolValueOf,regexp,replace$3,stringSlice$2,PwdRequirements,$$8=_export,DESCRIPTORS$3=descriptors,global$b=global$p,uncurryThis$6=functionUncurryThis,hasOwn$3=hasOwnProperty_1,isCallable$7=isCallable$p,isPrototypeOf$3=objectIsPrototypeOf,toString$4=toString$9,defineProperty$1=objectDefineProperty.f,copyConstructorProperties=copyConstructorProperties$2,NativeSymbol=global$b.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype;function __rest(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function __awaiter(e,i,s,l){return new(s=s||Promise)(function(r,t){function o(e){try{a(l.next(e))}catch(e){t(e)}}function n(e){try{a(l.throw(e))}catch(e){t(e)}}function a(e){var t;e.done?r(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(o,n)}a((l=l.apply(e,i||[])).next())})}!DESCRIPTORS$3||!isCallable$7(NativeSymbol)||"description"in SymbolPrototype&&void 0===NativeSymbol().description||(EmptyStringDescriptionStore={},copyConstructorProperties(SymbolWrapper=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:toString$4(arguments[0]),t=isPrototypeOf$3(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")),symbolToString=uncurryThis$6(SymbolPrototype.toString),symbolValueOf=uncurryThis$6(SymbolPrototype.valueOf),regexp=/^Symbol\((.*)\)[^)]+$/,replace$3=uncurryThis$6("".replace),stringSlice$2=uncurryThis$6("".slice),defineProperty$1(SymbolPrototype,"description",{configurable:!0,get:function(){var e=symbolValueOf(this),t=symbolToString(e);return hasOwn$3(EmptyStringDescriptionStore,e)?"":""===(e=NATIVE_SYMBOL?stringSlice$2(t,7,-1):replace$3(t,regexp,"$1"))?void 0:e}}),$$8({global:!0,constructor:!0,forced:!0},{Symbol:SymbolWrapper}));const BlueButton=({onClick:e,text:t,type:r,loading:o,disableButton:n,sx:a={},ref:i,className:s})=>jsxRuntime.exports.jsx(LoadingButton,Object.assign({color:"primary",variant:"contained",onClick:e,loading:o,ref:i,sx:Object.assign({textTransform:"none",fontSize:"18px",lineHeight:"24px",fontFamily:"Nunito",fontWeight:600,width:"368px",height:"56px",backgroundColor:"#2C78D4"},a),className:s||void 0,"data-testid":`os-auth--${r}-btn`,disabled:n},{children:t}));function ResetPasswordForm({onBtnClick:e,requiresRestriction:t,disableForm:r=!1,columnView:o=!1,isNewPage:n=!1}){var a=useStyles$7()["classes"],i=useSelector(authStatusSelector);const s=useSelector(authErrorMessage);var l=useSelector(authContextSelector);const[c,u]=react.exports.useState(""),[p,d]=react.exports.useState(""),[g,$]=react.exports.useState({[PwdRequirements.lengthCheck]:null,[PwdRequirements.userNameCheck]:null,[PwdRequirements.dictionaryCheck]:null,[PwdRequirements.pastPasswordCheck]:null,[PwdRequirements.passwordComplexityCheck]:null,[PwdRequirements.passwordChangeFrequencyCheck]:null}),[m,b]=react.exports.useState(null);i="loading"===i&&l===AuthContext.ResetPassword;const h=lodash.exports.isEqual(c,p);l=Object.values(g).includes(!1);var x=()=>{lodash.exports.isEmpty(c)||lodash.exports.isEmpty(p)||!h||e(c)},y=(react.exports.useEffect(()=>{try{if(s){var e=JSON.parse(s);const t=e["description"],o=__rest(e,["description"]);Object.keys(o).forEach(e=>{var t,r;t=e,r=o[e],$(e=>Object.assign(Object.assign({},e),{[t]:r}))}),b(t)}else b(null)}catch(e){b(s)}finally{d("")}},[s]),[{label:SHARED_TEXT.lengthCheck,error:g[PwdRequirements.lengthCheck]},{label:SHARED_TEXT.pastPasswordCheck,error:g[PwdRequirements.pastPasswordCheck]},{label:SHARED_TEXT.userNameCheck,error:g[PwdRequirements.userNameCheck]},{label:SHARED_TEXT.dictionaryCheck,error:g[PwdRequirements.dictionaryCheck]},...g[PwdRequirements.passwordComplexityCheck]?[{label:SHARED_TEXT.passwordComplexityCheckSymbols,error:!0},{label:SHARED_TEXT.passwordComplexityCheckDays,error:!0}]:[]]),f={fontFamily:"Nunito",lineHeight:"22px"};return jsxRuntime.exports.jsx("form",Object.assign({onSubmit:e=>{e.preventDefault()}},{children:jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0,spacing:n?3:6,mt:n?0:3},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,sm:o?12:7,xs:12},{children:[jsxRuntime.exports.jsx(FormControl,Object.assign({fullWidth:!0,sx:{mb:6}},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"rp-password-field",required:!0,type:"password",id:"password",label:"Password",variant:"outlined",autoFocus:!0,value:c,onChange:e=>u(e.target.value),error:l,autoComplete:"off",disabled:r,InputLabelProps:{style:f}})})),jsxRuntime.exports.jsx(FormControl,Object.assign({sx:{fontFamily:"Nunito"},fullWidth:!0},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"rp-password-confirm-field",required:!0,type:"password",id:"confirm-password",label:"Confirm Password",variant:"outlined",value:p,onChange:e=>d(e.target.value),autoComplete:"off",error:!h&&!!p,helperText:!h&&p&&SHARED_TEXT.passwordsNotMatching,disabled:r,InputLabelProps:{style:f}})})),m&&jsxRuntime.exports.jsx(Alert,Object.assign({sx:{mt:4},variant:"outlined",severity:"error"},{children:m}))]})),t&&jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,sm:o?12:5,xs:12},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",className:a.h6},{children:SHARED_TEXT.passwordRequirements})),jsxRuntime.exports.jsx("ul",Object.assign({className:a.requirements,"data-testid":"rp-requirements-list"},{children:y.map((e,t)=>jsxRuntime.exports.jsx("li",Object.assign({className:classNames({requirementError:!0===e.error})},{children:e.label}),"pwd-requirement-"+t))}))]})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12,justifyContent:"center",display:"flex"},{children:n?jsxRuntime.exports.jsx(BlueButton,{onClick:x,loading:i,text:SHARED_TEXT.resetPasswordSubmitButton,type:"reset-pw"}):jsxRuntime.exports.jsx(LoadingButton,Object.assign({"data-testid":"rp-password-submit-button",variant:"contained",disableElevation:!0,size:"large",className:a.submitButton,onClick:x,loading:i,disabled:r},{children:SHARED_TEXT.resetPasswordSubmitButton}))}))]}))}))}!function(e){e.lengthCheck="lengthCheck",e.userNameCheck="userNameCheck",e.dictionaryCheck="dictionaryCheck",e.pastPasswordCheck="pastPasswordCheck",e.passwordComplexityCheck="passwordComplexityCheck",e.passwordChangeFrequencyCheck="passwordChangeFrequencyCheck"}(PwdRequirements=PwdRequirements||{});const DEFAULT_CONTAINER_WIDTH=740,CONTAINER_WIDTH_BREAKPOINT=400;function ResetPasswordWidget({resetToken:t,username:r,requiresPasswordRestriction:e=!1,onSuccess:o,organizationInviteId:n,containerWidth:a=DEFAULT_CONTAINER_WIDTH,isNewPage:i=!1}){useStyles$7();const s=useDispatch(),l=useSelector(authStatusSelector),c=useSelector(authContextSelector);react.exports.useEffect(()=>{"success"===l&&c===AuthContext.ResetPassword&&null!=o&&o()},[l,c]);var u=lodash.exports.isEmpty(t)||lodash.exports.isEmpty(r),p=a<=CONTAINER_WIDTH_BREAKPOINT||!e;return jsxRuntime.exports.jsxs(Box,Object.assign({p:i?0:4,id:"reset-password-widget",width:a},{children:[i?jsxRuntime.exports.jsx(Header,{text:SHARED_TEXT.resetPasswordTitle,subText:SHARED_TEXT.resetPasswordSubHeader,type:"reset-pw"}):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h1",sx:{textTransform:"initial",fontSize:22,marginBottom:"20px"}},{children:SHARED_TEXT.resetPasswordTitle})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2"},{children:SHARED_TEXT.resetPasswordSubHeader}))]}),u&&jsxRuntime.exports.jsx(Alert,Object.assign({sx:{mt:4},variant:"outlined",severity:"error"},{children:SHARED_TEXT.invalidTokenOrUsername})),jsxRuntime.exports.jsx(ResetPasswordForm,{onBtnClick:e=>{i?s(resetPasswordRequest({resetToken:t,username:r,password:e,organizationInviteId:n,apiUrl:generateApiUrlFromHost()})):s(resetPasswordRequest({resetToken:t,username:r,password:e,organizationInviteId:n}))},requiresRestriction:e,disableForm:u,columnView:p,isNewPage:i})]}))}const ResetPassword=e=>jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(ResetPasswordWidget,Object.assign({},e))});var headersHas,headersSet,wrapRequestOptions,RequestConstructor,_g,_defs,fails$4=fails$n,wellKnownSymbol$8=wellKnownSymbol$l,IS_PURE=isPure,ITERATOR$4=wellKnownSymbol$l("iterator"),nativeUrl=!fails$4(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),r=e.searchParams,o="";return e.pathname="c%20d",r.forEach(function(e,t){r.delete("b"),o+=t+e}),IS_PURE&&!e.toJSON||!r.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==r.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!r[ITERATOR$4]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==o||"x"!==new URL("http://x",void 0).host}),defineBuiltIn$4=defineBuiltIn$a,defineBuiltIns$1=function(e,t,r){for(var o in t)defineBuiltIn$4(e,o,t[o],r);return e},isPrototypeOf$2=objectIsPrototypeOf,$TypeError$4=TypeError,anInstance$2=function(e,t){if(isPrototypeOf$2(t,e))return e;throw $TypeError$4("Incorrect invocation")},uncurryThis$5=functionUncurryThis,aCallable$5=aCallable$7,NATIVE_BIND=functionBindNative,bind$5=functionUncurryThis(functionUncurryThis.bind),functionBindContext=function(e,t){return aCallable$5(e),void 0===t?e:NATIVE_BIND?bind$5(e,t):function(){return e.apply(t,arguments)}},classof$3=classof$6,getMethod$3=getMethod$6,Iterators$1=iterators,wellKnownSymbol$7=wellKnownSymbol$l,ITERATOR$3=wellKnownSymbol$l("iterator"),getIteratorMethod$3=function(e){if(null!=e)return getMethod$3(e,ITERATOR$3)||getMethod$3(e,"@@iterator")||Iterators$1[classof$3(e)]},call$9=functionCall,aCallable$4=aCallable$7,anObject$7=anObject$h,tryToString$2=tryToString$4,getIteratorMethod$2=getIteratorMethod$3,$TypeError$3=TypeError,getIterator$2=function(e,t){var r=arguments.length<2?getIteratorMethod$2(e):t;if(aCallable$4(r))return anObject$7(call$9(r,e));throw $TypeError$3(tryToString$2(e)+" is not iterable")},$TypeError$2=TypeError,validateArgumentsLength$2=function(e,t){if(e<t)throw $TypeError$2("Not enough arguments");return e},toPropertyKey=toPropertyKey$3,definePropertyModule$1=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$5,createProperty$1=function(e,t,r){t=toPropertyKey(t);t in e?definePropertyModule$1.f(e,t,createPropertyDescriptor$1(0,r)):e[t]=r},toAbsoluteIndex=toAbsoluteIndex$2,lengthOfArrayLike$1=lengthOfArrayLike$3,createProperty=createProperty$1,$Array=Array,max=Math.max,arraySliceSimple=function(e,t,r){for(var o=lengthOfArrayLike$1(e),n=toAbsoluteIndex(t,o),a=toAbsoluteIndex(void 0===r?o:r,o),i=$Array(max(a-n,0)),s=0;n<a;n++,s++)createProperty(i,s,e[n]);return i.length=s,i},arraySlice$2=arraySliceSimple,floor=Math.floor,mergeSort=function(e,t){var r=e.length,o=floor(r/2);return r<8?insertionSort(e,t):merge(e,mergeSort(arraySlice$2(e,0,o),t),mergeSort(arraySlice$2(e,o),t),t)},insertionSort=function(e,t){for(var r,o,n=e.length,a=1;a<n;){for(r=e[o=a];o&&0<t(e[o-1],r);)e[o]=e[--o];o!==a++&&(e[o]=r)}return e},merge=function(e,t,r,o){for(var n=t.length,a=r.length,i=0,s=0;i<n||s<a;)e[i+s]=i<n&&s<a?o(t[i],r[s])<=0?t[i++]:r[s++]:i<n?t[i++]:r[s++];return e},arraySort$1=mergeSort,$$7=_export,global$a=global$p,call$8=functionCall,uncurryThis$4=functionUncurryThis,DESCRIPTORS$2=descriptors,USE_NATIVE_URL=nativeUrl,defineBuiltIn$3=defineBuiltIn$a,defineBuiltIns=defineBuiltIns$1,setToStringTag$1=setToStringTag$4,createIteratorConstructor=createIteratorConstructor$2,InternalStateModule$1=internalState,anInstance$1=anInstance$2,isCallable$6=isCallable$p,hasOwn$2=hasOwnProperty_1,bind$4=functionBindContext,classof$2=classof$6,anObject$6=anObject$h,isObject$3=isObject$a,$toString=toString$9,create=objectCreate,createPropertyDescriptor=createPropertyDescriptor$5,getIterator$1=getIterator$2,getIteratorMethod$1=getIteratorMethod$3,validateArgumentsLength$1=validateArgumentsLength$2,wellKnownSymbol$6=wellKnownSymbol$l,arraySort=mergeSort,ITERATOR$2=wellKnownSymbol$l("iterator"),URL_SEARCH_PARAMS="URLSearchParams",URL_SEARCH_PARAMS_ITERATOR=URL_SEARCH_PARAMS+"Iterator",setInternalState$1=InternalStateModule$1.set,getInternalParamsState=InternalStateModule$1.getterFor(URL_SEARCH_PARAMS),getInternalIteratorState=InternalStateModule$1.getterFor(URL_SEARCH_PARAMS_ITERATOR),getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,safeGetBuiltIn=function(e){var t;return DESCRIPTORS$2?(t=getOwnPropertyDescriptor$1(global$a,e))&&t.value:global$a[e]},nativeFetch=safeGetBuiltIn("fetch"),NativeRequest=safeGetBuiltIn("Request"),Headers=safeGetBuiltIn("Headers"),RequestPrototype=NativeRequest&&NativeRequest.prototype,HeadersPrototype=Headers&&Headers.prototype,RegExp$1=global$a.RegExp,TypeError$2=global$a.TypeError,decodeURIComponent$1=global$a.decodeURIComponent,encodeURIComponent=global$a.encodeURIComponent,charAt$1=uncurryThis$4("".charAt),join=uncurryThis$4([].join),push=uncurryThis$4([].push),replace$2=uncurryThis$4("".replace),shift=uncurryThis$4([].shift),splice=uncurryThis$4([].splice),split=uncurryThis$4("".split),stringSlice$1=uncurryThis$4("".slice),plus=/\+/g,sequences=Array(4),percentSequence=function(e){return sequences[e-1]||(sequences[e-1]=RegExp$1("((?:%[\\da-f]{2}){"+e+"})","gi"))},percentDecode=function(t){try{return decodeURIComponent$1(t)}catch(e){return t}},deserialize=function(e){var t=replace$2(e,plus," "),r=4;try{return decodeURIComponent$1(t)}catch(e){for(;r;)t=replace$2(t,percentSequence(r--),percentDecode);return t}},find=/[!'()~]|%20/g,replacements={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(e){return replacements[e]},serialize=function(e){return replace$2(encodeURIComponent(e),find,replacer)},URLSearchParamsIterator=createIteratorConstructor(function(e,t){setInternalState$1(this,{type:URL_SEARCH_PARAMS_ITERATOR,iterator:getIterator$1(getInternalParamsState(e).entries),kind:t})},"Iterator",function(){var e=getInternalIteratorState(this),t=e.kind,e=e.iterator.next(),r=e.value;return e.done||(e.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),e},!0),URLSearchParamsState=function(e){this.entries=[],this.url=null,void 0!==e&&(isObject$3(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===charAt$1(e,0)?stringSlice$1(e,1):e:$toString(e)))},URLSearchParamsConstructor=(URLSearchParamsState.prototype={type:URL_SEARCH_PARAMS,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,o,n,a,i,s=getIteratorMethod$1(e);if(s)for(r=(t=getIterator$1(e,s)).next;!(o=call$8(r,t)).done;){if(n=(o=getIterator$1(anObject$6(o.value))).next,(a=call$8(n,o)).done||(i=call$8(n,o)).done||!call$8(n,o).done)throw TypeError$2("Expected sequence with length 2");push(this.entries,{key:$toString(a.value),value:$toString(i.value)})}else for(var l in e)hasOwn$2(e,l)&&push(this.entries,{key:l,value:$toString(e[l])})},parseQuery:function(e){if(e)for(var t,r=split(e,"&"),o=0;o<r.length;)(t=r[o++]).length&&(t=split(t,"="),push(this.entries,{key:deserialize(shift(t)),value:deserialize(join(t,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],o=0;o<t.length;)e=t[o++],push(r,serialize(e.key)+"="+serialize(e.value));return join(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}},function(){anInstance$1(this,URLSearchParamsPrototype),setInternalState$1(this,new URLSearchParamsState(0<arguments.length?arguments[0]:void 0))}),URLSearchParamsPrototype=URLSearchParamsConstructor.prototype,sameValue$1=(defineBuiltIns(URLSearchParamsPrototype,{append:function(e,t){validateArgumentsLength$1(arguments.length,2);var r=getInternalParamsState(this);push(r.entries,{key:$toString(e),value:$toString(t)}),r.updateURL()},delete:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this),r=t.entries,o=$toString(e),n=0;n<r.length;)r[n].key===o?splice(r,n,1):n++;t.updateURL()},get:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString(e),o=0;o<t.length;o++)if(t[o].key===r)return t[o].value;return null},getAll:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString(e),o=[],n=0;n<t.length;n++)t[n].key===r&&push(o,t[n].value);return o},has:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString(e),o=0;o<t.length;)if(t[o++].key===r)return!0;return!1},set:function(e,t){validateArgumentsLength$1(arguments.length,1);for(var r,o=getInternalParamsState(this),n=o.entries,a=!1,i=$toString(e),s=$toString(t),l=0;l<n.length;l++)(r=n[l]).key===i&&(a?splice(n,l--,1):(a=!0,r.value=s));a||push(n,{key:i,value:s}),o.updateURL()},sort:function(){var e=getInternalParamsState(this);arraySort(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=getInternalParamsState(this).entries,o=bind$4(e,1<arguments.length?arguments[1]:void 0),n=0;n<r.length;)o((t=r[n++]).value,t.key,this)},keys:function(){return new URLSearchParamsIterator(this,"keys")},values:function(){return new URLSearchParamsIterator(this,"values")},entries:function(){return new URLSearchParamsIterator(this,"entries")}},{enumerable:!0}),defineBuiltIn$3(URLSearchParamsPrototype,ITERATOR$2,URLSearchParamsPrototype.entries,{name:"entries"}),defineBuiltIn$3(URLSearchParamsPrototype,"toString",function(){return getInternalParamsState(this).serialize()},{enumerable:!0}),setToStringTag$1(URLSearchParamsConstructor,URL_SEARCH_PARAMS),$$7({global:!0,constructor:!0,forced:!USE_NATIVE_URL},{URLSearchParams:URLSearchParamsConstructor}),!USE_NATIVE_URL&&isCallable$6(Headers)&&(headersHas=uncurryThis$4(HeadersPrototype.has),headersSet=uncurryThis$4(HeadersPrototype.set),wrapRequestOptions=function(e){if(isObject$3(e)){var t,r=e.body;if(classof$2(r)===URL_SEARCH_PARAMS)return t=e.headers?new Headers(e.headers):new Headers,headersHas(t,"content-type")||headersSet(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),create(e,{body:createPropertyDescriptor(0,$toString(r)),headers:createPropertyDescriptor(0,t)})}return e},isCallable$6(nativeFetch)&&$$7({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return nativeFetch(e,1<arguments.length?wrapRequestOptions(arguments[1]):{})}}),isCallable$6(NativeRequest))&&((RequestPrototype.constructor=RequestConstructor=function(e){return anInstance$1(this,RequestPrototype),new NativeRequest(e,1<arguments.length?wrapRequestOptions(arguments[1]):{})}).prototype=RequestPrototype,$$7({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:RequestConstructor})),Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}),call$7=functionCall,fixRegExpWellKnownSymbolLogic$1=fixRegexpWellKnownSymbolLogic,anObject$5=anObject$h,requireObjectCoercible$2=requireObjectCoercible$8,sameValue=sameValue$1,toString$3=toString$9,getMethod$2=getMethod$6,regExpExec$1=regexpExecAbstract,call$6=(fixRegexpWellKnownSymbolLogic("search",function(o,n,a){return[function(e){var t=requireObjectCoercible$2(this),r=null==e?void 0:getMethod$2(e,o);return r?call$7(r,e,t):new RegExp(e)[o](toString$3(t))},function(e){var t=anObject$5(this),e=toString$3(e),r=a(n,t,e);return r.done?r.value:(r=t.lastIndex,sameValue(r,0)||(t.lastIndex=0),e=regExpExec$1(t,e),sameValue(t.lastIndex,r)||(t.lastIndex=r),null===e?-1:e.index)}]}),functionCall),fixRegExpWellKnownSymbolLogic=fixRegexpWellKnownSymbolLogic,anObject$4=anObject$h,toLength=toLength$3,toString$2=toString$9,requireObjectCoercible$1=requireObjectCoercible$8,getMethod$1=getMethod$6,advanceStringIndex=advanceStringIndex$2,regExpExec=regexpExecAbstract;fixRegexpWellKnownSymbolLogic("match",function(o,s,l){return[function(e){var t=requireObjectCoercible$1(this),r=null==e?void 0:getMethod$1(e,o);return r?call$6(r,e,t):new RegExp(e)[o](toString$2(t))},function(e){var t=anObject$4(this),r=toString$2(e),e=l(s,t,r);if(e.done)return e.value;if(!t.global)return regExpExec(t,r);for(var o=t.unicode,n=[],a=t.lastIndex=0;null!==(i=regExpExec(t,r));){var i=toString$2(i[0]);""===(n[a]=i)&&(t.lastIndex=advanceStringIndex(r,toLength(t.lastIndex),o)),a++}return 0===a?null:n}]});const EmailSharedText={emailLabel:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth-email-input-label",defaultMessage:"Email",description:"Label Email"}),continueLabel:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth-email-continue-button",defaultMessage:"Continue",description:"Continue Button"}),emailErrorState:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth-email-input-field-error-state-label",defaultMessage:"This is an invalid email",description:"Email error state label"}),emptyEmailErrorMsg:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth-empty-email-input-field-error-state-label",defaultMessage:"Email is required",description:"Empty email error state label"})},validateEmail$1=e=>e.match(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/),useStyles$6=makeStyles()(()=>({emailWrapper:{display:"flex",flexDirection:"column",alignItems:"center",fontFamily:"Nunito","& button":{textTransform:"none",marginTop:"20px",fontSize:"18px",lineHeight:"24px",fontFamily:"Nunito",fontWeight:"600"},"& input":{fontFamily:"Nunito",lineHeight:"22px",color:"#2A323C"},"& .Sdk-MuiOutlinedInput-root":{"&:hover fieldset":{border:"1px solid #DADFE8"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8"},"&.Mui-error.Mui-focused fieldset":{borderColor:"#d32f2f"}},"& .Sdk-MuiFormControl-root .MuiInputLabel-root.Mui-focused":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiInputLabel-outlined":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiFormLabel-root .MuiInputLabel-root":{color:"#9CA8B4"},"& .Sdk-Mui-focused .MuiInputLabel-outlined":{color:"#9CA8B4"},"& .Sdk-Mui-error":{color:"#d32f2f !important"}},emailField:{width:"368px",height:"52px"},continueBtn:{width:"368px",height:"56px"}})),EmailInput=({onNextStep:e,email:t,setEmail:r,isLoading:o,buttonText:n,disableButton:a})=>{var i=useStyles$6()["classes"];const[s,l]=react.exports.useState(!1);var{emailLabel:c,emailErrorState:u,emptyEmailErrorMsg:p}=EmailSharedText,u=s?t?u:p:c;const d=()=>{validateEmail$1(t)&&e?(l(!1),e()):l(!0)};return jsxRuntime.exports.jsxs(Box,Object.assign({className:i.emailWrapper},{children:[jsxRuntime.exports.jsx(TextField,{id:"username","data-testid":"os-auth-email-input-field",label:u,InputProps:{type:"email"},variant:"outlined",value:t,autoComplete:"username",autoFocus:!0,className:i.emailField,error:s,onChange:e=>{e=e.target.value;s&&l(!1),r(e)},onKeyDown:e=>{"Enter"===e.key&&d()}}),n&&jsxRuntime.exports.jsx(LoadingButton,Object.assign({color:"primary",variant:"contained",onClick:d,className:i.continueBtn,"data-testid":"os-auth-email-continue-btn",loading:o,disabled:a},{children:n}))]}))},useStyles$5=makeStyles()(()=>({passwordWrapper:{fontFamily:"Nunito","& input":{fontFamily:"Nunito",lineHeight:"22px",color:"#2A323C"},"& .Sdk-MuiOutlinedInput-root":{"&:hover fieldset":{border:"1px solid #DADFE8"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8"}},"& .Sdk-MuiFormControl-root .MuiInputLabel-root.Mui-focused":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiInputLabel-outlined":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiFormLabel-root .MuiInputLabel-rootd":{color:"#9CA8B4"}}})),PasswordInput=({password:e,onPasswordChange:t,errorMessage:r,onPressEnter:o,autoFocus:n=!0})=>{var a=useStyles$5()["classes"];const[i,s]=react.exports.useState(!1),[l,c]=react.exports.useState("Password");react.exports.useEffect(()=>{r?c(r):c("Password")},[r]);return jsxRuntime.exports.jsx(Box,Object.assign({className:a.passwordWrapper},{children:jsxRuntime.exports.jsxs(FormControl,Object.assign({sx:{width:"100%"},variant:"outlined"},{children:[jsxRuntime.exports.jsx(InputLabel,Object.assign({htmlFor:"outlined-adornment-password",style:{color:r?"#d32f2f":"#9CA8B4"}},{children:l})),jsxRuntime.exports.jsx(OutlinedInput,{id:"outlined-adornment-password","data-testid":"os-auth-password-input-field",type:i?"text":"password",onChange:e=>{e=e.target.value;t(e)},value:e,autoFocus:n,autoComplete:"password",endAdornment:jsxRuntime.exports.jsx(InputAdornment,Object.assign({position:"end"},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({"aria-label":"toggle password visibility",onClick:()=>s(e=>!e),onMouseDown:e=>{e.preventDefault()},edge:"end"},{children:i?jsxRuntime.exports.jsx(default_1$2,{}):jsxRuntime.exports.jsx(default_1$1,{})}))})),error:!!r,label:l,onKeyDown:e=>{"Enter"===e.key&&o()}})]}))}))},useStyles$4=makeStyles()(e=>({selectWrapper:{position:"absolute",right:"40px",top:"26px"},selectMenu:{marginTop:e.spacing(1),width:"164px",borderRadius:"10px !important",ul:{padding:"5px"},li:{padding:"10px 8px",borderRadius:"4px"}}})),destination=[{label:"aiWARE - US",value:"https://aiware2.us-1.veritone.com/ui/auth/login"},{label:"aiWARE - CA",value:"https://aiware2.ca-1.veritone.com/ui/auth/login"},{label:"aiWARE - UK",value:"https://aiware2.uk-1.veritone.com/ui/auth/login"},{label:"aiWARE - US Gov 1",value:"https://aiware2.us-gov-1.veritone.com/ui/auth/login"},{label:"aiWARE - US Gov 2",value:"https://aiware2.us-gov-2.veritone.com/ui/auth/login"},{label:"aiWARE - Deloitte",value:"https://aiware2.us-2.veritone.com/ui/auth/login"}],DestinationDropdown=({handleDestination:t})=>{var e=useStyles$4()["classes"];const[r,o]=react.exports.useState(destination[0].value);return jsxRuntime.exports.jsx(Box,Object.assign({className:e.selectWrapper},{children:jsxRuntime.exports.jsx(Select,Object.assign({name:"destination-dropdown",value:r,onChange:e=>{e=e.target.value;o(e),t(e)},renderValue:e=>{return jsxRuntime.exports.jsxs(Box,Object.assign({sx:{display:"flex",alignItems:"center",gap:.2}},{children:[jsxRuntime.exports.jsx(Location,{sx:{width:"18px",height:"18px",color:"#555F7C"}}),jsxRuntime.exports.jsx("span",{children:(t=e,null==(e=destination.find(e=>e.value===t))?void 0:e.label)})]}));var t},sx:{color:"#2A323C",fontFamily:"Nunito",fontSize:"12px",lineHeight:"16px",fontWeight:"400",width:"164px",height:"36px","& .Sdk-MuiSelect-select":{paddingLeft:"8px"},"&.MuiOutlinedInput-root":{"& fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"},"&:hover fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"}}},MenuProps:{classes:{paper:e.selectMenu}}},{children:destination.map(e=>jsxRuntime.exports.jsx(MenuItem,Object.assign({value:e.value,sx:{color:"#2A323C",fontFamily:"Nunito",fontSize:"12px",lineHeight:"16px",fontWeight:"400",letterSpacing:"-1.30385e-09px"}},{children:e.label}),e.label))}))}))};function _extends$1(){return(_extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,o=arguments[t];for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}var _path,_path2,_path3,SvgAiwareLogo=function(e){return react.exports.createElement("svg",_extends$1({width:270,height:48,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),_g=_g||react.exports.createElement("g",{clipPath:"url(#aiware_logo_svg__a)"},react.exports.createElement("path",{d:"M0 30.967c0-.99.173-1.906.52-2.751a7.888 7.888 0 0 1 1.453-2.28 6.677 6.677 0 0 1 2.18-1.521 6.167 6.167 0 0 1 2.63-.58h17.583v-7.457H6.897V9.247H27.591l1.126 2.238 1.267 2.356 1.2 2.537V47.8h-6.818V40.67l-.857 1.883-1.267 2.798-1.126 2.45H6.784c-.923 0-1.8-.18-2.63-.543a7.49 7.49 0 0 1-2.181-1.52 7.888 7.888 0 0 1-1.454-2.28A7.463 7.463 0 0 1 0 40.669v-9.702Zm6.784 9.702h17.582v-9.702H6.784v9.702ZM49.735 11.603V47.8h-6.818V11.603h6.818ZM42.57 0h7.51v7.421h-7.51V0Z",fill:"#307FE2"}),react.exports.createElement("path",{d:"M0 30.967c0-.99.173-1.906.52-2.751a7.888 7.888 0 0 1 1.453-2.28 6.677 6.677 0 0 1 2.18-1.521 6.167 6.167 0 0 1 2.63-.58h17.583v-7.457H6.897V9.247H27.591l1.126 2.238 1.267 2.356 1.2 2.537V47.8h-6.818V40.67l-.857 1.883-1.267 2.798-1.126 2.45H6.784c-.923 0-1.8-.18-2.63-.543a7.49 7.49 0 0 1-2.181-1.52 7.888 7.888 0 0 1-1.454-2.28A7.463 7.463 0 0 1 0 40.669v-9.702Zm6.784 9.702h17.582v-9.702H6.784v9.702ZM49.735 11.603V47.8h-6.818V11.603h6.818ZM42.57 0h7.51v7.421h-7.51V0Z",fill:"#307FE2"}),react.exports.createElement("path",{d:"M74.734 47.837 61.658 0h6.538l10.142 38.063L88.448 0h6.539l10.11 38.063L115.239 0h6.538l-13.076 47.837h-7.176l-9.791-35.861-9.823 35.86h-7.177ZM147.26 0l17.637 47.837h-6.538l-2.025-5.505-2.025-5.504-2.52-6.838-2.54 6.838h-15.575l-4.051 11.009h-6.538L140.722 0h6.538Zm-11.099 29.99h15.628l-7.782-21.083-7.846 21.083ZM208.879 17.08c0 6.672-2.722 10.474-8.165 11.409l8.611 19.348h-7.24l-8.483-19.115h-14.321v19.115h-6.538V0h25.037c7.399 0 11.099 3.88 11.099 11.642v5.438Zm-29.598 4.803h18.148c1.743 0 2.998-.4 3.763-1.2.766-.801 1.149-2.113 1.149-3.937v-4.77c0-1.824-.383-3.136-1.149-3.937-.765-.8-2.02-1.2-3.763-1.2h-18.148v15.044ZM219.818 0h33.329v6.839h-26.791v13.677h22.868v6.838h-22.868v13.644h26.791v6.839h-33.329V0ZM257.019 41.225h4.73v.884h-1.942v5.302h-.845v-5.302h-1.943v-.884Zm8.797 6.186-2.206-4.534v4.534h-.846v-6.186h.924l2.252 4.659 2.256-4.659h.919v6.186h-.841v-4.534l-2.207 4.534h-.251Z",fill:"#333F48"})),_defs=_defs||react.exports.createElement("defs",null,react.exports.createElement("clipPath",{id:"aiware_logo_svg__a"},react.exports.createElement("path",{fill:"#fff",d:"M0 0h270v48H0z"}))))};function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,o=arguments[t];for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}var SvgVLogo=function(e){return react.exports.createElement("svg",_extends({width:180,height:34,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),_path=_path||react.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.626 0 0 13.076 12.175 34h13.319L5.626 0ZM21.703 0l5.164 8.86L32.044 0h-10.34Z",fill:"#728FBE"}),_path2=_path2||react.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.044 0 12.176 34h13.318L37.67 13.076 32.044 0Z",fill:"#325491"}),_path3=_path3||react.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M161.768 10.063v6.02h9.982v1.979h-9.982v6.046h11.175v1.952h-13.21V8.111h13.21v1.952h-11.175Zm-5.114-1.952V26.06h-2.36L143.2 10.904V26.06h-2.034V8.111h2.36l11.094 15.102V8.111h2.034Zm-27.569 16.187c2.133 0 3.86-.696 5.181-2.088 1.265-1.338 1.898-3.046 1.898-5.124 0-2.08-.633-3.787-1.898-5.125-1.321-1.392-3.048-2.088-5.181-2.088-2.134 0-3.861.696-5.181 2.088-1.266 1.338-1.899 3.046-1.899 5.125s.633 3.786 1.899 5.124c1.32 1.392 3.047 2.088 5.181 2.088Zm0-16.404c2.676 0 4.873.895 6.591 2.684 1.682 1.736 2.523 3.905 2.523 6.508 0 2.602-.841 4.772-2.523 6.507-1.718 1.79-3.915 2.684-6.591 2.684-2.677 0-4.874-.895-6.592-2.684-1.681-1.735-2.522-3.905-2.522-6.507 0-2.603.841-4.772 2.522-6.508 1.718-1.79 3.915-2.684 6.592-2.684Zm-9.676 2.17h-6.266V26.06h-2.034V10.063h-6.266V8.111h14.566v1.952ZM99.663 26.06h2.035V8.11h-2.035v17.95ZM84.701 16.97V9.955h4.963c2.743 0 4.134 1.18 4.134 3.507 0 2.326-1.39 3.506-4.135 3.506h-4.962Zm6.956 1.647.193-.05c1.255-.334 2.256-.95 2.974-1.833.717-.882 1.08-1.983 1.08-3.271 0-1.638-.568-2.954-1.688-3.91-1.127-.959-2.65-1.445-4.525-1.445H82.71v17.95H84.7v-7.24h4.726l5.13 7.24h2.364l-5.264-7.44ZM68.577 10.063v6.02h9.982v1.979h-9.982v6.046h11.175v1.952h-13.21V8.111h13.21v1.952H68.577ZM63.942 8.111l-7.687 17.95h-2.333L46.236 8.11h2.224l6.629 15.645L61.717 8.11h2.225ZM176.505 24.727h.236c.276 0 .499-.092.499-.315 0-.197-.144-.328-.459-.328-.132 0-.224.013-.276.026v.617Zm-.013 1.207h-.499v-2.152c.197-.026.472-.066.827-.066.407 0 .591.066.735.171a.54.54 0 0 1 .224.46c0 .262-.197.432-.447.511v.026c.21.066.315.237.381.526.066.328.118.446.157.524h-.525c-.065-.078-.105-.262-.171-.524-.039-.224-.17-.329-.446-.329h-.236v.854Zm-1.327-1.115c0 .958.723 1.72 1.681 1.72.933.012 1.641-.762 1.641-1.707 0-.958-.708-1.732-1.667-1.732-.932 0-1.655.774-1.655 1.719Zm3.874 0c0 1.207-.972 2.165-2.206 2.165s-2.219-.958-2.219-2.165.985-2.152 2.232-2.152c1.221 0 2.193.944 2.193 2.152Z",fill:"#142E44"}))};const Footer=({showLogoInFooter:e})=>jsxRuntime.exports.jsxs(Box,Object.assign({sx:{textAlign:"center",marginTop:"20px"},"data-testid":"aiware-auth-footer"},{children:[e&&jsxRuntime.exports.jsx(SvgVLogo,{}),jsxRuntime.exports.jsxs(Typography,Object.assign({sx:{marginBottom:"18px",marginTop:"50px",fontFamily:"Nunito",fontSize:"10px",lineHeight:"16px",color:"#5C6269"}},{children:["© ",(new Date).getFullYear()," AiWARE, All Rights Reserved."," ",jsxRuntime.exports.jsxs("a",Object.assign({href:"https://www.veritone.com/terms",style:{color:"#0C53B0",textDecoration:"none"}},{children:["Terms of Service"," "]}))]}))]})),PageContainer=({children:e,showLogoInFooter:t=!0})=>jsxRuntime.exports.jsx(Container,{children:jsxRuntime.exports.jsxs(Box,Object.assign({sx:{display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"space-between",height:"100vh"}},{children:[jsxRuntime.exports.jsxs(Box,{children:[jsxRuntime.exports.jsx(Box,Object.assign({sx:{marginTop:"178px",marginBottom:"50px",textAlign:"center"}},{children:jsxRuntime.exports.jsx(SvgAiwareLogo,{})})),e]}),jsxRuntime.exports.jsx(Footer,{showLogoInFooter:t})]}))}),useStyles$3=makeStyles()(()=>({btnWrapper:{display:"flex",alignItems:"center",width:"100%",justifyContent:"center",flexDirection:"column"},openIdLogo:{width:"24px",height:"24px",marginRight:"8px"},openIdBtn:{"&.MuiButton-root":{width:"368px",marginTop:"20px",height:"56px",border:"1px solid #DADFE8",borderRadius:"4px",fontFamily:"Nunito",fontStyle:"normal",fontWeight:"600",fontSize:"18px",lineHeight:"24px",letterSpacing:"-1.30385e-09px",textTransform:"none","&:hover, &:focus":{border:"1px solid #DADFE8",color:"#2A323C"}}}})),OpenID=({openIdItems:e})=>{const r=useStyles$3()["classes"];return jsxRuntime.exports.jsx(Box,Object.assign({className:r.btnWrapper},{children:jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:e&&e.map((t,e)=>{return jsxRuntime.exports.jsxs(Button,Object.assign({variant:"outlined","data-testid":"os-auth-openId-button-"+e,className:r.openIdBtn,onClick:()=>{var e;e=t.loginUrl,window.location.href=e},sx:{backgroundColor:t.loginButtonStyle&&t.loginButtonStyle.btnColor?t.loginButtonStyle.btnColor:"#FFFFFF","&:hover, &:focus":{backgroundColor:t.loginButtonStyle&&t.loginButtonStyle.btnColor?t.loginButtonStyle.btnColor:"#FFFFFF"}}},{children:[t.loginButtonStyle&&t.loginButtonStyle.btnLogo&&jsxRuntime.exports.jsx("img",{className:r.openIdLogo,alt:"icon",src:t.loginButtonStyle.btnLogo,"data-testid":"os-auth-openId-image-"+e}),jsxRuntime.exports.jsx("span",Object.assign({"data-testid":"os-auth-openId-name-"+e,style:{marginTop:"3px",color:t.loginButtonStyle&&t.loginButtonStyle.btnTextColor?t.loginButtonStyle.btnTextColor:"#2A323C"}},{children:(null==t?void 0:t.name)&&"Login with "+(20<(e=t.name).length?e.substring(0,20)+"...":e)}))]}),t.connectId)})})}))};var location,defer,channel,port,classof$1=classofRaw$1,global$9=global$p,engineIsNode="process"==classofRaw$1(global$p.process),getBuiltIn$3=getBuiltIn$8,definePropertyModule=objectDefineProperty,wellKnownSymbol$5=wellKnownSymbol$l,DESCRIPTORS$1=descriptors,SPECIES$2=wellKnownSymbol$l("species"),setSpecies$2=function(e){var e=getBuiltIn$3(e),t=definePropertyModule.f;DESCRIPTORS$1&&e&&!e[SPECIES$2]&&t(e,SPECIES$2,{configurable:!0,get:function(){return this}})},uncurryThis$3=functionUncurryThis,fails$3=fails$n,isCallable$5=isCallable$p,classof=classof$6,getBuiltIn$2=getBuiltIn$8,inspectSource$1=inspectSource$4,noop=function(){},empty=[],construct=getBuiltIn$8("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec$1=uncurryThis$3(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$5(e))return!1;try{return construct(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$5(e))return!1;switch(classof(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec$1(constructorRegExp,inspectSource$1(e))}catch(e){return!0}},isConstructor$1=(isConstructorLegacy.sham=!0,!construct||fails$3(function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){e=!0})||e})?isConstructorLegacy:isConstructorModern),isConstructor=isConstructor$1,tryToString$1=tryToString$4,$TypeError$1=TypeError,aConstructor$1=function(e){if(isConstructor(e))return e;throw $TypeError$1(tryToString$1(e)+" is not a constructor")},anObject$3=anObject$h,aConstructor=aConstructor$1,wellKnownSymbol$4=wellKnownSymbol$l,SPECIES$1=wellKnownSymbol$l("species"),speciesConstructor$1=function(e,t){var e=anObject$3(e).constructor;return void 0===e||null==(e=anObject$3(e)[SPECIES$1])?t:aConstructor(e)},uncurryThis$2=functionUncurryThis,arraySlice$1=functionUncurryThis([].slice),userAgent$2=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),global$8=global$p,apply=functionApply,bind$3=functionBindContext,isCallable$4=isCallable$p,hasOwn$1=hasOwnProperty_1,fails$2=fails$n,html=html$2,arraySlice=arraySlice$1,createElement=documentCreateElement$2,validateArgumentsLength=validateArgumentsLength$2,IS_IOS$1=engineIsIos,IS_NODE$3=engineIsNode,set=global$8.setImmediate,clear=global$8.clearImmediate,process$2=global$8.process,Dispatch=global$8.Dispatch,Function$1=global$8.Function,MessageChannel=global$8.MessageChannel,String$1=global$8.String,counter=0,queue$1={},ONREADYSTATECHANGE="onreadystatechange";try{location=global$8.location}catch(e){}var flush,head,last,notify$1,toggle,node,promise,then,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,run=function(e){var t;hasOwn$1(queue$1,e)&&(t=queue$1[e],delete queue$1[e],t())},runner=function(e){return function(){run(e)}},listener=function(e){run(e.data)},post=function(e){global$8.postMessage(String$1(e),location.protocol+"//"+location.host)},task$1=(set&&clear||(set=function(e){validateArgumentsLength(arguments.length,1);var t=isCallable$4(e)?e:Function$1(e),r=arraySlice(arguments,1);return queue$1[++counter]=function(){apply(t,void 0,r)},defer(counter),counter},clear=function(e){delete queue$1[e]},IS_NODE$3?defer=function(e){process$2.nextTick(runner(e))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(runner(e))}:MessageChannel&&!IS_IOS$1?(port=(channel=new MessageChannel).port2,channel.port1.onmessage=listener,defer=bind$3(port.postMessage,port)):global$8.addEventListener&&isCallable$4(global$8.postMessage)&&!global$8.importScripts&&location&&"file:"!==location.protocol&&!fails$2(post)?(defer=post,global$8.addEventListener("message",listener,!1)):defer=ONREADYSTATECHANGE in createElement("script")?function(e){html.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)}),{set:set,clear:clear}),userAgent$1=engineUserAgent,global$7=global$p,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$1)&&void 0!==global$7.Pebble,userAgent=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent),global$6=global$p,bind$2=functionBindContext,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,macrotask=task$1.set,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$2=engineIsNode,MutationObserver=global$6.MutationObserver||global$6.WebKitMutationObserver,document$2=global$6.document,process$1=global$6.process,Promise$1=global$6.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor(global$6,"queueMicrotask"),queueMicrotask=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value,microtask$1=(queueMicrotask||(flush=function(){var e,t;for(IS_NODE$2&&(e=process$1.domain)&&e.exit();head;){t=head.fn,head=head.next;try{t()}catch(e){throw head?notify$1():last=void 0,e}}last=void 0,e&&e.enter()},notify$1=IS_IOS||IS_NODE$2||IS_WEBOS_WEBKIT||!MutationObserver||!document$2?!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?((promise=Promise$1.resolve(void 0)).constructor=Promise$1,then=bind$2(promise.then,promise),function(){then(flush)}):IS_NODE$2?function(){process$1.nextTick(flush)}:(macrotask=bind$2(macrotask,global$6),function(){macrotask(flush)}):(toggle=!0,node=document$2.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),function(){node.data=toggle=!toggle})),queueMicrotask||function(e){e={fn:e,next:void 0};last&&(last.next=e),head||(head=e,notify$1()),last=e}),global$5=global$p,hostReportErrors$1=function(e,t){var r=global$5.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))},perform$3=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Queue$1=function(){this.head=null,this.tail=null},queue=(Queue$1.prototype={add:function(e){e={item:e,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},Queue$1),global$4=global$p,promiseNativeConstructor=global$p.Promise,engineIsDeno="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,IS_DENO$1=engineIsDeno,IS_NODE$1=engineIsNode,engineIsBrowser=!engineIsDeno&&!engineIsNode&&"object"==typeof window&&"object"==typeof document,global$3=global$p,NativePromiseConstructor$3=promiseNativeConstructor,isCallable$3=isCallable$p,isForced$1=isForced_1,inspectSource=inspectSource$4,wellKnownSymbol$3=wellKnownSymbol$l,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION=engineV8Version,SPECIES=(NativePromiseConstructor$3&&NativePromiseConstructor$3.prototype,wellKnownSymbol$3("species")),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$3(global$3.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced$1("Promise",function(){var e=inspectSource(NativePromiseConstructor$3),t=e!==String(NativePromiseConstructor$3);if(!t&&66===V8_VERSION)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(e)){function r(e){e(function(){},function(){})}e=new NativePromiseConstructor$3(function(e){e(1)});if((e.constructor={})[SPECIES]=r,!(SUBCLASSING=e.then(function(){})instanceof r))return!0}return!t&&(IS_BROWSER||IS_DENO)&&!NATIVE_PROMISE_REJECTION_EVENT$1}),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING:SUBCLASSING},newPromiseCapability$2={},aCallable$3=aCallable$7,PromiseCapability=function(e){var r,o;this.promise=new e(function(e,t){if(void 0!==r||void 0!==o)throw TypeError("Bad Promise constructor");r=e,o=t}),this.resolve=aCallable$3(r),this.reject=aCallable$3(o)},$$6=(newPromiseCapability$2.f=function(e){return new PromiseCapability(e)},_export),IS_NODE=engineIsNode,global$2=global$p,call$5=functionCall,defineBuiltIn$2=defineBuiltIn$a,setPrototypeOf$1=objectSetPrototypeOf,setToStringTag=setToStringTag$4,setSpecies$1=setSpecies$2,aCallable$2=aCallable$7,isCallable$2=isCallable$p,isObject$2=isObject$a,anInstance=anInstance$2,speciesConstructor=speciesConstructor$1,task=task$1.set,microtask=microtask$1,hostReportErrors=hostReportErrors$1,perform$2=perform$3,Queue=queue,InternalStateModule=internalState,NativePromiseConstructor$2=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$3=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING=PromiseConstructorDetection.SUBCLASSING,getInternalPromiseState=InternalStateModule.getterFor(PROMISE),setInternalState=InternalStateModule.set,NativePromisePrototype$1=NativePromiseConstructor$2&&NativePromiseConstructor$2.prototype,PromiseConstructor=NativePromiseConstructor$2,PromisePrototype=NativePromisePrototype$1,TypeError$1=global$2.TypeError,document$1=global$2.document,process=global$2.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$2.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$2(e)||!isCallable$2(t=e.then))&&t},callReaction=function(e,t){var r,o,n,a=t.value,i=t.state==FULFILLED,s=i?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(i||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===s?r=a:(u&&u.enter(),r=s(a),u&&(u.exit(),n=!0)),r===e.promise?c(TypeError$1("Promise-chain cycle")):(o=isThenable(r))?call$5(o,r,l,c):l(r)):c(a)}catch(e){u&&!n&&u.exit(),c(e)}},notify=function(r,o){r.notified||(r.notified=!0,microtask(function(){for(var e,t=r.reactions;e=t.get();)callReaction(e,r);r.notified=!1,o&&!r.rejection&&onUnhandled(r)}))},dispatchEvent=function(e,t,r){var o;DISPATCH_EVENT?((o=document$1.createEvent("Event")).promise=t,o.reason=r,o.initEvent(e,!1,!0),global$2.dispatchEvent(o)):o={promise:t,reason:r},!NATIVE_PROMISE_REJECTION_EVENT&&(t=global$2["on"+e])?t(o):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",r)},onUnhandled=function(o){call$5(task,global$2,function(){var e=o.facade,t=o.value,r=isUnhandled(o);if(r&&(r=perform$2(function(){IS_NODE?process.emit("unhandledRejection",t,e):dispatchEvent(UNHANDLED_REJECTION,e,t)}),o.rejection=IS_NODE||isUnhandled(o)?UNHANDLED:HANDLED,r.error))throw r.value})},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(t){call$5(task,global$2,function(){var e=t.facade;IS_NODE?process.emit("rejectionHandled",e):dispatchEvent(REJECTION_HANDLED,e,t.value)})},bind$1=function(t,r,o){return function(e){t(r,e,o)}},internalReject=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=REJECTED,notify(e,!0))},internalResolve=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw TypeError$1("Promise can't be resolved itself");var o=isThenable(e);o?microtask(function(){var t={done:!1};try{call$5(o,e,bind$1(internalResolve,t,r),bind$1(internalReject,t,r))}catch(e){internalReject(t,e,r)}}):(r.value=e,r.state=FULFILLED,notify(r,!1))}catch(e){internalReject({done:!1},e,r)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function(e){anInstance(this,PromisePrototype),aCallable$2(e),call$5(Internal,this);var t=getInternalPromiseState(this);try{e(bind$1(internalResolve,t),bind$1(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$2(PromisePrototype,"then",function(e,t){var r=getInternalPromiseState(this),o=newPromiseCapability$1(speciesConstructor(this,PromiseConstructor));return r.parent=!0,o.ok=!isCallable$2(e)||e,o.fail=isCallable$2(t)&&t,o.domain=IS_NODE?process.domain:void 0,r.state==PENDING?r.reactions.add(o):microtask(function(){callReaction(o,r)}),o.promise}),OwnPromiseCapability=function(){var e=new Internal,t=getInternalPromiseState(e);this.promise=e,this.resolve=bind$1(internalResolve,t),this.reject=bind$1(internalReject,t)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)},isCallable$2(NativePromiseConstructor$2))&&NativePromisePrototype$1!==Object.prototype){nativeThen=NativePromisePrototype$1.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$2(NativePromisePrototype$1,"then",function(e,t){var r=this;return new PromiseConstructor(function(e,t){call$5(nativeThen,r,e,t)}).then(e,t)},{unsafe:!0});try{delete NativePromisePrototype$1.constructor}catch(e){}setPrototypeOf$1&&setPrototypeOf$1(NativePromisePrototype$1,PromisePrototype)}$$6({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag(PromiseConstructor,PROMISE,!1),setSpecies$1(PROMISE);var wellKnownSymbol$2=wellKnownSymbol$l,Iterators=iterators,ITERATOR$1=wellKnownSymbol$l("iterator"),ArrayPrototype=Array.prototype,isArrayIteratorMethod$1=function(e){return void 0!==e&&(Iterators.Array===e||ArrayPrototype[ITERATOR$1]===e)},call$4=functionCall,anObject$2=anObject$h,getMethod=getMethod$6,iteratorClose$1=function(e,t,r){var o,n;anObject$2(e);try{if(!(o=getMethod(e,"return"))){if("throw"===t)throw r;return r}o=call$4(o,e)}catch(e){n=!0,o=e}if("throw"===t)throw r;if(n)throw o;return anObject$2(o),r},bind=functionBindContext,call$3=functionCall,anObject$1=anObject$h,tryToString=tryToString$4,isArrayIteratorMethod=isArrayIteratorMethod$1,lengthOfArrayLike=lengthOfArrayLike$3,isPrototypeOf$1=objectIsPrototypeOf,getIterator=getIterator$2,getIteratorMethod=getIteratorMethod$3,iteratorClose=iteratorClose$1,$TypeError=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$2=function(e,t,r){function o(e){return a&&iteratorClose(a,"normal",e),new Result(!0,e)}function n(e){return d?(anObject$1(e),m?b(e[0],e[1],o):b(e[0],e[1])):m?b(e,o):b(e)}var a,i,s,l,c,u,p=r&&r.that,d=!(!r||!r.AS_ENTRIES),g=!(!r||!r.IS_RECORD),$=!(!r||!r.IS_ITERATOR),m=!(!r||!r.INTERRUPTED),b=bind(t,p);if(g)a=e.iterator;else if($)a=e;else{if(!(r=getIteratorMethod(e)))throw $TypeError(tryToString(e)+" is not iterable");if(isArrayIteratorMethod(r)){for(i=0,s=lengthOfArrayLike(e);i<s;i++)if((l=n(e[i]))&&isPrototypeOf$1(ResultPrototype,l))return l;return new Result(!1)}a=getIterator(e,r)}for(c=(g?e:a).next;!(u=call$3(c,a)).done;){try{l=n(u.value)}catch(e){iteratorClose(a,"throw",e)}if("object"==typeof l&&l&&isPrototypeOf$1(ResultPrototype,l))return l}return new Result(!1)},wellKnownSymbol$1=wellKnownSymbol$l,ITERATOR=wellKnownSymbol$l("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR]=function(){return this},Array.from(iteratorWithReturn,function(){throw 2})}catch(e){}var method,checkCorrectnessOfIteration$1=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var r=!1;try{var o={};o[ITERATOR]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(e){}return r},NativePromiseConstructor$1=promiseNativeConstructor,checkCorrectnessOfIteration=checkCorrectnessOfIteration$1,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration(function(e){NativePromiseConstructor$1.all(e).then(void 0,function(){})}),$$5=_export,call$2=functionCall,aCallable$1=aCallable$7,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$1=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration,$$4=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{all:function(e){var s=this,t=newPromiseCapabilityModule$2.f(s),l=t.resolve,c=t.reject,r=perform$1(function(){var o=aCallable$1(s.resolve),n=[],a=0,i=1;iterate$1(e,function(e){var t=a++,r=!1;i++,call$2(o,s,e).then(function(e){r||(r=!0,n[t]=e,--i)||l(n)},c)}),--i||l(n)});return r.error&&c(r.value),t.promise}}),_export),FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor=promiseNativeConstructor,getBuiltIn$1=getBuiltIn$8,isCallable$1=isCallable$p,defineBuiltIn$1=defineBuiltIn$a,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,$$3=($$4({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable$1(NativePromiseConstructor)&&(method=getBuiltIn$1("Promise").prototype.catch,NativePromisePrototype.catch!==method)&&defineBuiltIn$1(NativePromisePrototype,"catch",method,{unsafe:!0}),_export),call$1=functionCall,aCallable=aCallable$7,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration,$$2=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{race:function(e){var r=this,o=newPromiseCapabilityModule$1.f(r),n=o.reject,t=perform(function(){var t=aCallable(r.resolve);iterate(e,function(e){call$1(t,r,e).then(o.resolve,n)})});return t.error&&n(t.value),o.promise}}),_export),call=functionCall,newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR,anObject=($$2({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule.f(this);return call(t.reject,void 0,e),t.promise}}),anObject$h),isObject$1=isObject$a,newPromiseCapability=newPromiseCapability$2,promiseResolve$1=function(e,t){return anObject(e),isObject$1(t)&&t.constructor===e?t:((0,(e=newPromiseCapability.f(e)).resolve)(t),e.promise)},$$1=_export,getBuiltIn=getBuiltIn$8,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve=promiseResolve$1;getBuiltIn("Promise"),$$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function(e){return promiseResolve(this,e)}});const getGlobalProviders=()=>__awaiter(void 0,void 0,void 0,function*(){let t=[];try{var e=yield fetch(generateApiUrlFromHost()+"/api/admin/openid");t=200===e.status?(yield e.json()).results:(window.DEBUG&&console.error("was not able to retrieve global open id providers",e),[])}catch(e){window.DEBUG&&console.error("was not able to retrieve global open id providers",e),t=[]}return t}),getOrgOpenIdProviders=r=>__awaiter(void 0,void 0,void 0,function*(){let t=[];try{var e=yield fetch(generateApiUrlFromHost()+"/api/admin/openid/org/"+r);t=200===e.status?(yield e.json()).results:(window.DEBUG&&console.error("was not able to retrieve global open id providers",e),[])}catch(e){window.DEBUG&&console.error("was not able to retrieve global open id providers",e),t=[]}return t}),linkUserToOidAndLogin=(e,t,r)=>fetch(generateApiUrlFromHost()+"/api/admin/openid/linkUserToOid",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({userName:e,password:t,sessionKey:r})}),userLoginMutation=(r,o)=>__awaiter(void 0,void 0,void 0,function*(){var e=generateApiUrlFromHost(!0),t={query:`
|
|
2
|
+
mutation UserLogin($input: UserLogin!) {
|
|
3
|
+
userLogin(input: $input) {
|
|
4
|
+
token
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
`,variables:{input:{userName:r,password:o}}};try{return yield fetch(e,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(t)})}catch(e){return devErrorLogger(e),null}}),createPasswordResetRequestMutation=r=>__awaiter(void 0,void 0,void 0,function*(){var e=generateApiUrlFromHost(!0),t={query:`
|
|
8
|
+
mutation createPasswordResetRequest($input: CreatePasswordResetRequest!) {
|
|
9
|
+
createPasswordResetRequest(input: $input) {
|
|
10
|
+
message
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
`,variables:{input:{userName:r}}};try{return yield fetch(e,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(t)})}catch(e){return devErrorLogger(e),null}}),createUserInHub=(e,t)=>__awaiter(void 0,void 0,void 0,function*(){try{return!!(yield(yield fetch(e+"/hub/v1/admin/users",{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Origin:"https://hub.veritone.com"},body:JSON.stringify(Object.assign(Object.assign({},t),{userUrl:e+"/auth/confirm-email?token=%token%&username=%username%"}))})).json()).success}catch(e){return devErrorLogger(e),!1}}),setPassword=(e,t,r)=>__awaiter(void 0,void 0,void 0,function*(){}),activateUser=()=>__awaiter(void 0,void 0,void 0,function*(){}),updateUserOrg=()=>__awaiter(void 0,void 0,void 0,function*(){}),BlueLinkText=({onClick:e,text:t,type:r})=>jsxRuntime.exports.jsx(Typography,Object.assign({sx:{fontFamily:"Nunito",fontSize:"14px",lineHeight:"20px",letterSpacing:"-1.30385e-09px",color:"#0C53B0",cursor:"pointer"},onClick:e,"data-testid":`os-auth-${r}-link-button`},{children:t})),OrDivider=()=>jsxRuntime.exports.jsxs(Box,Object.assign({sx:{marginTop:"20px",position:"relative"}},{children:[jsxRuntime.exports.jsx(Divider,{sx:{margin:"0 14px",color:"#D5DFE9"}}),jsxRuntime.exports.jsx(Typography,Object.assign({sx:{color:"#D5DFE9",fontSize:"14px",margin:0,top:"-12px",padding:"0 10px",position:"absolute",left:"calc(50% - 15px)",background:"#FFFFFF",fontFamily:"Roboto",letterSpacing:"- 1.30385e-09px",fontStyle:"normal",fontWeight:"normal"}},{children:"or"}))]})),SLICE_NAME="signUp",namespace="initStep",initialState={env:"",status:"idle",activeStep:1,1:{email:"",firstName:"",lastName:""},2:{orgName:"",teamSize:"",country:"",industry:""},errors:{1:{email:!1,firstName:!1,lastName:!1},2:{orgName:!1,country:!1}},userUUID:"",userEmail:"",organizationUUID:""};function isKeyOfObject(e,t){return e in t}function validateEmail(e){return e.match(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)}const signUpSlice=createSlice({name:SLICE_NAME+"/"+namespace,initialState:initialState,reducers:{setStep(e,t){e.activeStep=t.payload},setValue(e,t){var{key:t,value:r}=t.payload;isKeyOfObject(t,e[e.activeStep])&&(e[e.activeStep][t]=r,isKeyOfObject(t,e.errors[e.activeStep]))&&(e.errors[e.activeStep][t]=!1)},validate(e){for(var[t,r]of Object.entries(e[e.activeStep]))isKeyOfObject(t,e.errors[e.activeStep])&&!r&&(e.errors[e.activeStep][t]=!0);1!==e.activeStep||validateEmail(e[1].email)||(e.errors[1].email=!0)},createUserStart(e){e.status="loading"},createUserSuccess(e){e.status="success"},createUserFailure(e){e.status="failure"},setEnv(e,t){t=t.payload;e.env=`https://hub${"prod"===t?"":"."+t}.aiware.com`},resetState:()=>initialState,setPasswordStart(e,t){e.status="loading"},setPasswordSuccess(e){e.status="success"},setPasswordFailure(e){e.status="failure"},activateUserStart(e,t){e.status="loading"},activateUserSuccess(e,t){e.status="success",e.organizationUUID=t.payload.organizationUUID,e.userEmail=t.payload.userEmail},activateUserFailure(e){e.status="failure"},updateUserOrgStart(e,t){e.status="loading"},updateUserOrgSuccess(e){e.status="success"},updateUserOrgFailure(e){e.status="failure"}}}),actions=signUpSlice.actions;var signUpSlice$1=signUpSlice.reducer,whitespaces$2="\t\n\v\f\r \u2028\u2029\ufeff",uncurryThis$1=functionUncurryThis,requireObjectCoercible=requireObjectCoercible$8,toString$1=toString$9,whitespaces$1=whitespaces$2,replace$1=functionUncurryThis("".replace),whitespace="["+whitespaces$1+"]",ltrim=RegExp("^"+whitespace+whitespace+"*"),rtrim=RegExp(whitespace+whitespace+"*$"),createMethod=function(t){return function(e){e=toString$1(requireObjectCoercible(e));return 1&t&&(e=replace$1(e,ltrim,"")),e=2&t?replace$1(e,rtrim,""):e}},stringTrim={start:createMethod(1),end:createMethod(2),trim:createMethod(3)},PROPER_FUNCTION_NAME=functionName.PROPER,fails$1=fails$n,whitespaces=whitespaces$2,non="
",stringTrimForced=function(e){return fails$1(function(){return!!whitespaces[e]()||non[e]()!==non||PROPER_FUNCTION_NAME&&whitespaces[e].name!==e})},$=_export,$trim=stringTrim.trim,forcedStringTrimMethod=stringTrimForced;$({target:"String",proto:!0,forced:stringTrimForced("trim")},{trim:function(){return $trim(this)}});const selectStatus=e=>{return null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e.status},selectActiveStep=e=>{return null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e.activeStep},selectFormValues=e=>{var t;return null==(t=null==e?void 0:e[SLICE_NAME])?void 0:t[null==(t=null==e?void 0:e[SLICE_NAME])?void 0:t.activeStep]},selectErrors=e=>{var t;return null==(t=null==(t=null==e?void 0:e[SLICE_NAME])?void 0:t.errors)?void 0:t[null==(t=null==e?void 0:e[SLICE_NAME])?void 0:t.activeStep]},selectEnv=e=>{return null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e.env},selectCreateUserPayload=e=>{var{1:{email:e,firstName:t,lastName:r},2:{orgName:o,teamSize:n,country:a,industry:i}}=(null==e?void 0:e[SLICE_NAME])||{1:{},2:{}};return{userFirstName:t.trim(),userLastName:r.trim(),userEmail:e,userPhoneNumber:"",userOccupation:"",userCompany:"",organizationName:o.trim(),salesforceAttributes:JSON.stringify({teamSize:n,country:a,industry:i})}};function*createUserSaga(e){try{var t=yield select(selectEnv),r=yield select(selectCreateUserPayload);(yield call$m(createUserInHub,t,r))?yield put(actions.createUserSuccess()):(yield put(actions.createUserFailure()),yield put(showMessage({content:"Cannot create user at this time. Please try again later or use a different email address",severity:MessageSeverity.Error})))}catch(e){yield put(actions.createUserFailure()),yield put(showMessage({content:"Cannot create user at this time. Please try again later or use a different email address",severity:MessageSeverity.Error})),devErrorLogger(e)}}function*setPasswordSaga(e){var{password:e,userId:t,token:r}=e.payload;try{yield call$m(setPassword,e,t,r),yield put(actions.setPasswordSuccess())}catch(e){yield put(actions.setPasswordFailure()),console.log(e)}}function*activateUserSaga(e){try{var{userInviteToken:t,userPassword:r}=e.payload,{organizationUUID:o,userEmail:n}=yield call$m(activateUser,t,r);o&&n&&(yield put(actions.activateUserSuccess({organizationUUID:o,userEmail:n})))}catch(e){yield put(actions.activateUserFailure()),console.log(e)}}function*updateUserOrgSaga(e){try{var{organizationUUID:t,paid:r}=e.payload;yield call$m(updateUserOrg,t,r),yield put(actions.updateUserOrgSuccess())}catch(e){yield put(actions.updateUserOrgFailure()),console.log(e)}}function*createUserWatcher(){yield takeEvery$1(actions.createUserStart.type,createUserSaga)}function*setPasswordWatcher(){yield takeEvery$1(actions.setPasswordStart.type,setPasswordSaga)}function*activateUserWatcher(){yield takeEvery$1(actions.activateUserStart.type,activateUserSaga)}function*updateUserOrgWatcher(){yield takeEvery$1(actions.updateUserOrgStart.type,updateUserOrgSaga)}function*rootSaga(){yield all([createUserWatcher(),setPasswordWatcher(),activateUserWatcher(),updateUserOrgWatcher()])}function getSignUpModule(){return{id:SLICE_NAME,reducerMap:{[SLICE_NAME]:signUpSlice$1},sagas:[rootSaga],initialActions:[]}}const useStyles$2=makeStyles()((e,{label:t})=>{t="Sign Up"===t;return{button:{position:"absolute",right:t?"220px":"40px",top:"30px",background:t?"#388E3C":"none",border:t?"none":"1px solid #5C6269",color:t?"white":"#5C6269",borderRadius:"4px",paddingLeft:"14px",paddingRight:"14px",fontWeight:400,"&:hover":{background:t?"#42a647":"none"}}}}),SignUpButton=({label:e="Sign Up",navigateTo:t="sign-up"})=>{const r=useNavigate();var o=useSelector(selectStatus),n=useStyles$2({label:e})["classes"];return jsxRuntime.exports.jsx(Button,Object.assign({className:n.button,onClick:()=>{r("/ui/auth/"+t)},disabled:"sign-up"!==t&&"loading"===o},{children:e}))},LoginPage=()=>{const[e,r]=react.exports.useState(1),[t,o]=react.exports.useState(""),[n,a]=react.exports.useState([]),[i,s]=react.exports.useState([]),[l,c]=react.exports.useState(""),[u,p]=react.exports.useState(""),[d,g]=react.exports.useState(""),[$,m]=react.exports.useState(!1),[b,h]=react.exports.useState(!1),[x,y]=react.exports.useState(!1);var f=useSelector(betaFeaturesSelector);const S=useDispatch(),R=(react.exports.useEffect(()=>{"giveMeBeta"===l&&(S(enableBetaFeatures()),c(""))},[l]),useNavigate());let E=!1;react.exports.useEffect(()=>{var e=new URLSearchParams(window.location.search).get("redirect");e&&o(e),E||(E=!0,__awaiter(void 0,void 0,void 0,function*(){var e=yield getGlobalProviders();a(e)}))},[]);const O=()=>__awaiter(void 0,void 0,void 0,function*(){if(u){m(!0);var e=yield userLoginMutation(l,u);if(m(!1),e&&e.ok){e=yield e.json();if(e.errors&&e.errors.length)return"not_found"===e.errors[0].name?void g("Email or Password is incorrect"):void g("Something went wrong with login. Please try again");t?window.location.href=t:window.location.href=generateApiUrlFromHost().replace("api","aiware")+"/switch-app/default"}else g("Something went wrong with login. Please try again")}else g("Password is required")});return jsxRuntime.exports.jsxs(PageContainer,{children:[f&&jsxRuntime.exports.jsx(SignUpButton,{}),jsxRuntime.exports.jsx(DestinationDropdown,{handleDestination:e=>{window.location.href=e}}),jsxRuntime.exports.jsxs("div",Object.assign({style:{display:1===e?"block":"none"}},{children:[jsxRuntime.exports.jsx(Header,{text:"Welcome back"}),jsxRuntime.exports.jsx(EmailInput,{email:l,setEmail:c,onNextStep:()=>{__awaiter(void 0,void 0,void 0,function*(){h(!0),y(!1);var e=yield getOrgOpenIdProviders(l),t=e.find(e=>e.required),e=e.filter(e=>!e.isGlobal);t&&y(!0),s(e),h(!1),r(2)}).catch(e=>{devErrorLogger("Error: "+JSON.stringify(e))})},isLoading:b,buttonText:"Continue"}),n&&0<n.length&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(OrDivider,{})," ",jsxRuntime.exports.jsx(OpenID,{openIdItems:n})]})]})),jsxRuntime.exports.jsx("div",Object.assign({style:{display:2===e?"block":"none"}},{children:x?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Header,{text:"Choose Authentication Option for",subText:l})," ",i&&0<i.length&&jsxRuntime.exports.jsx(OpenID,{openIdItems:i}),jsxRuntime.exports.jsx(Box,Object.assign({sx:{mt:"20px"}},{children:jsxRuntime.exports.jsx(BlueLinkText,{onClick:()=>r(1),text:"Back to Login",type:"login"})}))]}):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Header,{text:"Enter Password for",subText:l})," ",jsxRuntime.exports.jsx(PasswordInput,{password:u,errorMessage:d,onPasswordChange:e=>{d&&g(""),p(e)},onPressEnter:()=>{O().catch(e=>{devErrorLogger("Error: "+JSON.stringify(e))})}}),jsxRuntime.exports.jsx(Box,Object.assign({sx:{mt:"14px"}},{children:jsxRuntime.exports.jsx(BlueLinkText,{onClick:()=>{R("/ui/auth/forgot",{state:{emailFromLogin:l}})},text:"Forgot Password?",type:"forgot"})})),jsxRuntime.exports.jsx(Box,Object.assign({sx:{mt:"25px"}},{children:jsxRuntime.exports.jsx(BlueButton,{onClick:()=>{O().catch(e=>{devErrorLogger("Error: "+JSON.stringify(e))})},text:"Login",type:"login",loading:$})})),i&&0<i.length&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(OrDivider,{})," ",jsxRuntime.exports.jsx(OpenID,{openIdItems:i})]}),jsxRuntime.exports.jsx(Box,Object.assign({sx:{mt:"20px"}},{children:jsxRuntime.exports.jsx(BlueLinkText,{onClick:()=>r(1),text:"Back to Login",type:"login"})}))]})}))]})},Forgot=()=>{const[r,e]=react.exports.useState(""),[t,o]=react.exports.useState(!1),[n,a]=react.exports.useState(1),i=useNavigate(),s=useLocation()["state"],l=(react.exports.useEffect(()=>{s&&s.emailFromLogin&&e(s.emailFromLogin)},[s]),()=>__awaiter(void 0,void 0,void 0,function*(){o(!0);try{var e=yield createPasswordResetRequestMutation(r),t=yield null==e?void 0:e.json();t.errors&&t.errors.length?(alert("Something went wrong. Please try again."),o(!1)):(o(!1),a(2))}catch(e){alert("Something went wrong. Please try again."),o(!1)}}));return jsxRuntime.exports.jsxs(PageContainer,{children:[1===n?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Header,{text:"Forgot Password",subText:"Enter your registered email to reset your password."}),jsxRuntime.exports.jsx(EmailInput,{email:r,setEmail:e,onNextStep:()=>{l().catch(e=>{devErrorLogger("Error: "+JSON.stringify(e))})},isLoading:t,buttonText:"Send"})]}):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Header,{text:"Password reset requested",subText:"Your password reset will be sent to the email provided if it matches our records."}),jsxRuntime.exports.jsx(Box,Object.assign({sx:{mt:"25px"}},{children:jsxRuntime.exports.jsx(BlueButton,{onClick:()=>{l().catch(e=>{devErrorLogger("Error: "+JSON.stringify(e))})},text:"Request Password Again",type:"reset-pw",loading:t})}))]}),jsxRuntime.exports.jsx(Box,Object.assign({sx:{mt:"20px"}},{children:jsxRuntime.exports.jsx(BlueLinkText,{onClick:()=>i("/ui/auth/login"),text:"Back to Login",type:"login"})}))]})},RestrictedProvider=()=>{const e=useNavigate();return jsxRuntime.exports.jsxs(PageContainer,{children:[jsxRuntime.exports.jsx(Header,{text:"Authentication Restriction",subText:"Authenticating with this OpenID provider has been restricted by an admin of your account. We are sorry for the inconvenience. Please return to the login screen and choose another authentication provider.",type:"restricted-provider"}),jsxRuntime.exports.jsx(BlueButton,{onClick:()=>e("/ui/auth/login"),text:"Back to Login",type:"back-to-login",loading:!1})]})},AccountLinking=()=>{const[e,t]=react.exports.useState(1),[r,o]=react.exports.useState(""),[n,a]=react.exports.useState(""),i=useNavigate(),[s,l]=react.exports.useState(!1),[c,u]=react.exports.useState(""),[p,d]=react.exports.useState(""),g=(react.exports.useEffect(()=>{var e=new URLSearchParams(window.location.search).get("session");e&&u(e)},[]),react.exports.useEffect(()=>{d("")},[r,n]),()=>__awaiter(void 0,void 0,void 0,function*(){if(!s){l(!0);try{var e=yield linkUserToOidAndLogin(r,n,c);200===e.status?window.location.href=generateApiUrlFromHost().replace("api","aiware")+"/switch-app/default":404===e.status?d("Email or Password is incorrect."):d("Something went wrong. Please try again.")}catch(e){d("Something went wrong. Please try again.")}finally{l(!1)}}}));return jsxRuntime.exports.jsx(PageContainer,{children:1===e?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Header,{text:"Account Does Not Exist",subText:"This AiWARE account does not exist. Are you sure you’re using the correct Authentication Provider?",type:"link-oid"}),jsxRuntime.exports.jsx(BlueButton,{onClick:()=>t(2),text:"Link to Existing Account",type:"oid-linking",loading:!1}),jsxRuntime.exports.jsx(Box,Object.assign({sx:{mt:"14px"}},{children:jsxRuntime.exports.jsx(BlueLinkText,{onClick:()=>i("/ui/auth/login"),text:"Back to Login",type:"login"})}))]}):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Header,{text:"Link Account",subText:"Provide the email and password to your aiWARE account."}),jsxRuntime.exports.jsx(EmailInput,{email:r,setEmail:o}),jsxRuntime.exports.jsx(Box,Object.assign({sx:{mt:"20px"}},{children:jsxRuntime.exports.jsx(PasswordInput,{password:n,onPasswordChange:a,onPressEnter:()=>{g().catch(e=>{devErrorLogger("Error: "+JSON.stringify(e))})},errorMessage:p,autoFocus:!1})})),jsxRuntime.exports.jsx(Box,Object.assign({sx:{mt:"14px"}},{children:jsxRuntime.exports.jsx(BlueLinkText,{onClick:()=>i("/ui/auth/forgot"),text:"Forgot Password?",type:"forgot"})})),jsxRuntime.exports.jsx(Box,Object.assign({sx:{mt:"25px"}},{children:jsxRuntime.exports.jsx(BlueButton,{onClick:()=>{g().catch(e=>{devErrorLogger("Error: "+JSON.stringify(e))})},text:"Link Account & Login",type:"link-oid",loading:s})})),jsxRuntime.exports.jsx(Box,Object.assign({sx:{mt:"20px"}},{children:jsxRuntime.exports.jsx(BlueLinkText,{onClick:()=>i("/ui/auth/login"),text:"Back to Login",type:"login"})}))]})})},ResetPasswordPage=()=>{const e=useNavigate();var t=new URLSearchParams(window.location.search),r=t.get("username")||"",o=t.get("resettoken")||"",n=t.get("organizationinviteid")||"";const a=t.get("redirect");t=parseToken(o),t=!!t&&t.enablePasswordRestriction;return jsxRuntime.exports.jsx(PageContainer,{children:jsxRuntime.exports.jsx(Box,Object.assign({sx:{width:"368px"}},{children:jsxRuntime.exports.jsx(ResetPasswordWidget,{resetToken:o,username:r,organizationInviteId:n,onSuccess:()=>{a?window.location.href=a:e("/ui/auth/login")},requiresPasswordRestriction:t,isNewPage:!0,containerWidth:"100%"})}))})},useStyles$1=makeStyles()(()=>({button:{position:"absolute",left:"40px",top:"30px",border:"none",color:"#5C6269",borderRadius:"4px",paddingLeft:"14px",paddingRight:"14px",fontWeight:400},select:{height:"52px",width:"542px",marginTop:"20px",textAlign:"left"},menu:{"& > .Sdk-MuiPopover-paper":{padding:"0"},"& > .Sdk-MuiPaper-root > ul":{padding:"5px"}},stepOneFullWidthInput:{height:"52px",width:"368px"},stepOneHalfWidthInputContainer:{display:"flex",justifyContent:"space-between",width:"368px",marginTop:"20px"},stepOneHalfWidthInput:{height:"52px",width:"calc(50% - 10px)"},stepTwoContainer:{width:"542px",textAlign:"center"},stepTwoTextField:{height:"52px",width:"542px"},menuItem:{width:"532px"},autoCompleteContainer:{width:"542px",display:"flex",justifyContent:"center"},autoComplete:{width:"542px",marginTop:"20px",height:"52px"},formInputTopMargin:{marginTop:"20px"},formInputTopDoubleMargin:{marginTop:"40px"},previewBox:{width:"164px",height:"164px",borderRadius:"5px",border:"2px dashed #D5DFE9",padding:"10px",boxSizing:"border-box",cursor:"pointer"},logoLanding:{width:"140px",height:"140px",background:"rgba(247, 247, 247, 0.80)",display:"flex",alignItems:"center",justifyContent:"center"},addIcon:{fill:"#555F7C"},logoDescriptionText:{textAlign:"left"},logoUploadBtn:{borderRadius:"4px",border:"1px solid #5C6269",color:"#5C6269",fontWeight:"400",padding:"8px 15px"},orgLogoPreview:{width:"164px",height:"164px"},errorMessage:{color:"red"},confirmationText:{fontSize:"22px",color:"#2A323C",lineHeight:"28px"}}));var countries=[{label:"Afghanistan",id:"AF"},{label:"Åland Islands",id:"AX"},{label:"Albania",id:"AL"},{label:"Algeria",id:"DZ"},{label:"American Samoa",id:"AS"},{label:"AndorrA",id:"AD"},{label:"Angola",id:"AO"},{label:"Anguilla",id:"AI"},{label:"Antarctica",id:"AQ"},{label:"Antigua and Barbuda",id:"AG"},{label:"Argentina",id:"AR"},{label:"Armenia",id:"AM"},{label:"Aruba",id:"AW"},{label:"Australia",id:"AU"},{label:"Austria",id:"AT"},{label:"Azerbaijan",id:"AZ"},{label:"Bahamas",id:"BS"},{label:"Bahrain",id:"BH"},{label:"Bangladesh",id:"BD"},{label:"Barbados",id:"BB"},{label:"Belarus",id:"BY"},{label:"Belgium",id:"BE"},{label:"Belize",id:"BZ"},{label:"Benin",id:"BJ"},{label:"Bermuda",id:"BM"},{label:"Bhutan",id:"BT"},{label:"Bolivia",id:"BO"},{label:"Bosnia and Herzegovina",id:"BA"},{label:"Botswana",id:"BW"},{label:"Bouvet Island",id:"BV"},{label:"Brazil",id:"BR"},{label:"British Indian Ocean Territory",id:"IO"},{label:"Brunei Darussalam",id:"BN"},{label:"Bulgaria",id:"BG"},{label:"Burkina Faso",id:"BF"},{label:"Burundi",id:"BI"},{label:"Cambodia",id:"KH"},{label:"Cameroon",id:"CM"},{label:"Canada",id:"CA"},{label:"Cape Verde",id:"CV"},{label:"Cayman Islands",id:"KY"},{label:"Central African Republic",id:"CF"},{label:"Chad",id:"TD"},{label:"Chile",id:"CL"},{label:"China",id:"CN"},{label:"Christmas Island",id:"CX"},{label:"Cocos (Keeling) Islands",id:"CC"},{label:"Colombia",id:"CO"},{label:"Comoros",id:"KM"},{label:"Congo",id:"CG"},{label:"Congo, The Democratic Republic of the",id:"CD"},{label:"Cook Islands",id:"CK"},{label:"Costa Rica",id:"CR"},{label:"Cote D'Ivoire",id:"CI"},{label:"Croatia",id:"HR"},{label:"Cuba",id:"CU"},{label:"Cyprus",id:"CY"},{label:"Czech Republic",id:"CZ"},{label:"Denmark",id:"DK"},{label:"Djibouti",id:"DJ"},{label:"Dominica",id:"DM"},{label:"Dominican Republic",id:"DO"},{label:"Ecuador",id:"EC"},{label:"Egypt",id:"EG"},{label:"El Salvador",id:"SV"},{label:"Equatorial Guinea",id:"GQ"},{label:"Eritrea",id:"ER"},{label:"Estonia",id:"EE"},{label:"Ethiopia",id:"ET"},{label:"Falkland Islands (Malvinas)",id:"FK"},{label:"Faroe Islands",id:"FO"},{label:"Fiji",id:"FJ"},{label:"Finland",id:"FI"},{label:"France",id:"FR"},{label:"French Guiana",id:"GF"},{label:"French Polynesia",id:"PF"},{label:"French Southern Territories",id:"TF"},{label:"Gabon",id:"GA"},{label:"Gambia",id:"GM"},{label:"Georgia",id:"GE"},{label:"Germany",id:"DE"},{label:"Ghana",id:"GH"},{label:"Gibraltar",id:"GI"},{label:"Greece",id:"GR"},{label:"Greenland",id:"GL"},{label:"Grenada",id:"GD"},{label:"Guadeloupe",id:"GP"},{label:"Guam",id:"GU"},{label:"Guatemala",id:"GT"},{label:"Guernsey",id:"GG"},{label:"Guinea",id:"GN"},{label:"Guinea-Bissau",id:"GW"},{label:"Guyana",id:"GY"},{label:"Haiti",id:"HT"},{label:"Heard Island and Mcdonald Islands",id:"HM"},{label:"Holy See (Vatican City State)",id:"VA"},{label:"Honduras",id:"HN"},{label:"Hong Kong",id:"HK"},{label:"Hungary",id:"HU"},{label:"Iceland",id:"IS"},{label:"India",id:"IN"},{label:"Indonesia",id:"ID"},{label:"Iran, Islamic Republic Of",id:"IR"},{label:"Iraq",id:"IQ"},{label:"Ireland",id:"IE"},{label:"Isle of Man",id:"IM"},{label:"Israel",id:"IL"},{label:"Italy",id:"IT"},{label:"Jamaica",id:"JM"},{label:"Japan",id:"JP"},{label:"Jersey",id:"JE"},{label:"Jordan",id:"JO"},{label:"Kazakhstan",id:"KZ"},{label:"Kenya",id:"KE"},{label:"Kiribati",id:"KI"},{label:"Korea, Democratic People'S Republic of",id:"KP"},{label:"Korea, Republic of",id:"KR"},{label:"Kuwait",id:"KW"},{label:"Kyrgyzstan",id:"KG"},{label:"Lao People'S Democratic Republic",id:"LA"},{label:"Latvia",id:"LV"},{label:"Lebanon",id:"LB"},{label:"Lesotho",id:"LS"},{label:"Liberia",id:"LR"},{label:"Libyan Arab Jamahiriya",id:"LY"},{label:"Liechtenstein",id:"LI"},{label:"Lithuania",id:"LT"},{label:"Luxembourg",id:"LU"},{label:"Macao",id:"MO"},{label:"Macedonia, The Former Yugoslav Republic of",id:"MK"},{label:"Madagascar",id:"MG"},{label:"Malawi",id:"MW"},{label:"Malaysia",id:"MY"},{label:"Maldives",id:"MV"},{label:"Mali",id:"ML"},{label:"Malta",id:"MT"},{label:"Marshall Islands",id:"MH"},{label:"Martinique",id:"MQ"},{label:"Mauritania",id:"MR"},{label:"Mauritius",id:"MU"},{label:"Mayotte",id:"YT"},{label:"Mexico",id:"MX"},{label:"Micronesia, Federated States of",id:"FM"},{label:"Moldova, Republic of",id:"MD"},{label:"Monaco",id:"MC"},{label:"Mongolia",id:"MN"},{label:"Montserrat",id:"MS"},{label:"Morocco",id:"MA"},{label:"Mozambique",id:"MZ"},{label:"Myanmar",id:"MM"},{label:"Namibia",id:"NA"},{label:"Nauru",id:"NR"},{label:"Nepal",id:"NP"},{label:"Netherlands",id:"NL"},{label:"Netherlands Antilles",id:"AN"},{label:"New Caledonia",id:"NC"},{label:"New Zealand",id:"NZ"},{label:"Nicaragua",id:"NI"},{label:"Niger",id:"NE"},{label:"Nigeria",id:"NG"},{label:"Niue",id:"NU"},{label:"Norfolk Island",id:"NF"},{label:"Northern Mariana Islands",id:"MP"},{label:"Norway",id:"NO"},{label:"Oman",id:"OM"},{label:"Pakistan",id:"PK"},{label:"Palau",id:"PW"},{label:"Palestinian Territory, Occupied",id:"PS"},{label:"Panama",id:"PA"},{label:"Papua New Guinea",id:"PG"},{label:"Paraguay",id:"PY"},{label:"Peru",id:"PE"},{label:"Philippines",id:"PH"},{label:"Pitcairn",id:"PN"},{label:"Poland",id:"PL"},{label:"Portugal",id:"PT"},{label:"Puerto Rico",id:"PR"},{label:"Qatar",id:"QA"},{label:"Reunion",id:"RE"},{label:"Romania",id:"RO"},{label:"Russian Federation",id:"RU"},{label:"RWANDA",id:"RW"},{label:"Saint Helena",id:"SH"},{label:"Saint Kitts and Nevis",id:"KN"},{label:"Saint Lucia",id:"LC"},{label:"Saint Pierre and Miquelon",id:"PM"},{label:"Saint Vincent and the Grenadines",id:"VC"},{label:"Samoa",id:"WS"},{label:"San Marino",id:"SM"},{label:"Sao Tome and Principe",id:"ST"},{label:"Saudi Arabia",id:"SA"},{label:"Senegal",id:"SN"},{label:"Serbia and Montenegro",id:"CS"},{label:"Seychelles",id:"SC"},{label:"Sierra Leone",id:"SL"},{label:"Singapore",id:"SG"},{label:"Slovakia",id:"SK"},{label:"Slovenia",id:"SI"},{label:"Solomon Islands",id:"SB"},{label:"Somalia",id:"SO"},{label:"South Africa",id:"ZA"},{label:"South Georgia and the South Sandwich Islands",id:"GS"},{label:"Spain",id:"ES"},{label:"Sri Lanka",id:"LK"},{label:"Sudan",id:"SD"},{label:"Surilabel",id:"SR"},{label:"Svalbard and Jan Mayen",id:"SJ"},{label:"Swaziland",id:"SZ"},{label:"Sweden",id:"SE"},{label:"Switzerland",id:"CH"},{label:"Syrian Arab Republic",id:"SY"},{label:"Taiwan, Province of China",id:"TW"},{label:"Tajikistan",id:"TJ"},{label:"Tanzania, United Republic of",id:"TZ"},{label:"Thailand",id:"TH"},{label:"Timor-Leste",id:"TL"},{label:"Togo",id:"TG"},{label:"Tokelau",id:"TK"},{label:"Tonga",id:"TO"},{label:"Trinidad and Tobago",id:"TT"},{label:"Tunisia",id:"TN"},{label:"Turkey",id:"TR"},{label:"Turkmenistan",id:"TM"},{label:"Turks and Caicos Islands",id:"TC"},{label:"Tuvalu",id:"TV"},{label:"Uganda",id:"UG"},{label:"Ukraine",id:"UA"},{label:"United Arab Emirates",id:"AE"},{label:"United Kingdom",id:"GB"},{label:"United States",id:"US"},{label:"United States Minor Outlying Islands",id:"UM"},{label:"Uruguay",id:"UY"},{label:"Uzbekistan",id:"UZ"},{label:"Vanuatu",id:"VU"},{label:"Venezuela",id:"VE"},{label:"Viet Nam",id:"VN"},{label:"Virgin Islands, British",id:"VG"},{label:"Virgin Islands, U.S.",id:"VI"},{label:"Wallis and Futuna",id:"WF"},{label:"Western Sahara",id:"EH"},{label:"Yemen",id:"YE"},{label:"Zambia",id:"ZM"},{label:"Zimbabwe",id:"ZW"}],industries=["Accounting","Airlines/Aviation","Alternative Dispute Resolution","Alternative Medicine","Animation","Apparel & Fashion","Architecture & Planning","Arts & Crafts","Automotive","Aviation & Aerospace","Banking","Biotechnology","Broadcast Media","Building Materials","Business Supplies & Equipment","Capital Markets","Chemicals","Civic & Social Organization","Civil Engineering","Commercial Real Estate","Computer & Network Security","Computer Games","Computer Hardware","Computer Networking","Computer Software","Construction","Consumer Electronics","Consumer Goods","Consumer Services","Cosmetics","Dairy","Defense & Space","Design","Education Management","E-learning","Electrical & Electronic Manufacturing","Entertainment","Environmental Services","Events Services","Executive Office","Facilities Services","Farming","Financial Services","Fine Art","Fishery","Food & Beverages","Food Production","Fundraising","Furniture","Gambling & Casinos","Glass, Ceramics & Concrete","Government Administration","Government Relations","Graphic Design","Health, Wellness & Fitness","Higher Education","Hospital & Health Care","Hospitality","Human Resources","Import & Export","Individual & Family Services","Industrial Automation","Information Services","Information Technology & Services","Insurance","International Affairs","International Trade & Development","Internet","Investment Banking/Venture","Investment Management","Judiciary","Law Enforcement","Law Practice","Legal Services","Legislative Office","Leisure & Travel","Libraries","Logistics & Supply Chain","Luxury Goods & Jewelry","Machinery","Management Consulting","Maritime","Marketing & Advertising","Market Research","Mechanical or Industrial Engineering","Media Production","Medical Device","Medical Practice","Mental Health Care","Military","Mining & Metals","Motion Pictures & Film","Museums & Institutions","Music","Nanotechnology","Newspapers","Nonprofit Organization Management","Oil & Energy","Online Publishing","Outsourcing/Offshoring","Package/Freight Delivery","Packaging & Containers","Paper & Forest Products","Performing Arts","Pharmaceuticals","Philanthropy","Photography","Plastics","Political Organization","Primary/Secondary","Printing","Professional Training","Program Development","Public Policy","Public Relations","Public Safety","Publishing","Railroad Manufacture","Ranching","Real Estate","Recreational","Facilities & Services","Religious Institutions","Renewables & Environment","Research","Restaurants","Retail","Security & Investigations","Semiconductors","Shipbuilding","Sporting Goods","Sports","Staffing & Recruiting","Supermarkets","Telecommunications","Textiles","Think Tanks","Tobacco","Translation & Localization","Transportation/Trucking/Railroad","Utilities","Venture Capital","Veterinary","Warehousing","Wholesale","Wine & Spirits","Wireless","Writing & Editing"];const teamSizeOptions=["1-10","10-50","50-100","100-500","500-1000","> 1000"],industryOptions=industries.map(e=>({id:e,label:e})),SignUpStep_2=()=>{var e=react.exports.useRef();const r=useDispatch(),t=useSelector(selectFormValues),o=useSelector(selectErrors),n=useSelector(selectStatus),a=!!Object.keys(o).find(e=>o[e])||!!Object.keys(o).find(e=>!t[e])||"loading"===n,i=useStyles$1()["classes"],s=useNavigate(),l=()=>{r(actions.createUserStart())},c=e=>{"Enter"===e.key&&(r(actions.validate()),a||l())};return jsxRuntime.exports.jsxs(Box,Object.assign({className:i.stepTwoContainer},{children:[jsxRuntime.exports.jsx(Header,{text:"success"!==n?"Let's set up your Organization":""}),"success"!==n?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(TextField,{id:"orgName","data-testid":"os-auth-orgName-input-field",label:"Organization Name",variant:"outlined",value:"orgName"in t&&(null===t||void 0===t?void 0:t.orgName),autoComplete:"company",autoFocus:!0,className:i.stepTwoTextField,error:"orgName"in o&&o.orgName,onChange:e=>r(actions.setValue({key:"orgName",value:e.target.value})),onKeyDown:c,disabled:"loading"===n}),jsxRuntime.exports.jsxs(FormControl,{children:[jsxRuntime.exports.jsx(InputLabel,Object.assign({id:"os-auth.sign-up.teamSize",className:i.formInputTopMargin},{children:"Team Size"})),jsxRuntime.exports.jsx(Select,Object.assign({labelId:"os-auth.sign-up.teamSize",id:"os-auth.sign-up.teamSize",value:"teamSize"in t&&(null===t||void 0===t?void 0:t.teamSize),className:i.select,MenuProps:{className:i.menu},label:"Team Size",onChange:e=>r(actions.setValue({key:"teamSize",value:e.target.value||""})),disabled:"loading"===n},{children:teamSizeOptions.map(e=>jsxRuntime.exports.jsx(MenuItem,Object.assign({value:e,className:i.menuItem},{children:e})))}))]}),jsxRuntime.exports.jsx(Box,Object.assign({className:i.autoCompleteContainer},{children:jsxRuntime.exports.jsx(Autocomplete,{disablePortal:!0,id:"os-auth.sign-up.country-autocomplete",options:countries,value:"country"in t&&countries.find(e=>e.id===t.country),onChange:(e,t)=>r(actions.setValue({key:"country",value:(t||{}).id||""})),className:i.autoComplete,renderInput:e=>jsxRuntime.exports.jsx(TextField,Object.assign({},e,{label:"Country",onKeyDown:c,disabled:"loading"===n}))})})),jsxRuntime.exports.jsx(Box,Object.assign({className:i.autoCompleteContainer},{children:jsxRuntime.exports.jsx(Autocomplete,{disablePortal:!0,id:"os-auth.sign-up.industry-autocomplete",options:industryOptions,value:"industry"in t&&industryOptions.find(e=>e.id===t.industry),onChange:(e,t)=>r(actions.setValue({key:"country",value:(t||{}).id||""})),className:i.autoComplete,renderInput:e=>jsxRuntime.exports.jsx(TextField,Object.assign({},e,{label:"Industry",onKeyDown:c,disabled:"loading"===n}))})})),jsxRuntime.exports.jsx(BlueButton,{onClick:l,text:"Create Account",type:"Continue",disableButton:a,className:i.formInputTopDoubleMargin,ref:null!=e&&e.current?e:void 0,loading:"loading"===n})]}):jsxRuntime.exports.jsxs(Box,{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1",className:i.confirmationText},{children:"Thank you for registering! A confirmation email has been sent with an activation link for your new aiWARE account."})),jsxRuntime.exports.jsx(BlueButton,{onClick:()=>s("/ui/auth/login"),text:"Return To Homepage",className:i.formInputTopDoubleMargin,type:"Continue"})]})]}))},SignUpStep_1=()=>{var e=react.exports.useRef();const t=useDispatch(),r=useSelector(selectFormValues);var o=useSelector(selectErrors);const n=!!Object.entries(o).find(([,e])=>e)||!!Object.keys(o).find(e=>!r[e])||!validateEmail$1("email"in r&&(null===r||void 0===r?void 0:r.email)||"");var a=useStyles$1()["classes"],i=e=>{"Enter"===e.key&&(t(actions.validate()),n||s())};const s=()=>{t(actions.setStep(2))};return jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Header,{text:"Sign Up for your aiWARE account"}),jsxRuntime.exports.jsx(TextField,{id:"email","data-testid":"os-auth-email-input-field",label:"email"in o&&o.email?"Please provide a valid email":"Email",InputProps:{type:"email"},variant:"outlined",value:"email"in r&&(null===r||void 0===r?void 0:r.email),autoComplete:"email",autoFocus:!0,className:a.stepOneFullWidthInput,error:"email"in o&&o.email,onChange:e=>t(actions.setValue({key:"email",value:e.target.value.trim()})),onKeyDown:i}),jsxRuntime.exports.jsxs(Box,Object.assign({className:a.stepOneHalfWidthInputContainer},{children:[jsxRuntime.exports.jsx(TextField,{id:"firstName","data-testid":"os-auth-firstName-input-field",label:"First Name",variant:"outlined",value:"firstName"in r&&(null===r||void 0===r?void 0:r.firstName),autoComplete:"first name",className:a.stepOneHalfWidthInput,error:"firstName"in o&&o.firstName,onChange:e=>t(actions.setValue({key:"firstName",value:e.target.value})),onKeyDown:i}),jsxRuntime.exports.jsx(TextField,{id:"lastName","data-testid":"os-auth-lastName-input-field",label:"Last Name",variant:"outlined",value:"lastName"in r&&(null===r||void 0===r?void 0:r.lastName),autoComplete:"last name",className:a.stepOneHalfWidthInput,error:"lastName"in o&&o.lastName,onChange:e=>t(actions.setValue({key:"lastName",value:e.target.value})),onKeyDown:i})]})),jsxRuntime.exports.jsx(BlueButton,{onClick:s,text:"Continue",type:"Continue",disableButton:n,className:a.formInputTopMargin,ref:null!=e&&e.current?e:void 0})]})},SignUp=()=>{var e=useSelector(selectActiveStep);const t=useDispatch();var r=useStyles$1()["classes"],o=useSelector(selectStatus);const n=t=>window.location.href.split("://")[1].split(".").find(e=>e===t);return react.exports.useEffect(()=>{t(actions.resetState()),n("local")||n("dev")?t(actions.setEnv("dev")):n("stage")?t(actions.setEnv("stage")):t(actions.setEnv("prod"))},[]),jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getSignUpModule()]},{children:jsxRuntime.exports.jsxs(PageContainer,Object.assign({showLogoInFooter:!1},{children:[jsxRuntime.exports.jsx(SignUpButton,{label:"Login",navigateTo:"login"}),2===e&&"success"!==o&&jsxRuntime.exports.jsxs(Button,Object.assign({className:r.button,onClick:()=>t(actions.setStep(1)),disabled:"loading"===o},{children:[jsxRuntime.exports.jsx(default_1,{fontSize:"small",sx:{marginRight:"5px"}})," Back"]})),jsxRuntime.exports.jsx("div",{children:1===e?jsxRuntime.exports.jsx(SignUpStep_1,{}):jsxRuntime.exports.jsx(SignUpStep_2,{})})]}))}))},useStyles=makeStyles()((e,{error:t,passwordRequirementsMet:r})=>{let o="auto";return t?o="red":r||(o="rgba(0, 0, 0, 0.26)"),{passwordLabel:{background:"white",padding:"0 3px"},passwordFormMarginTop:{marginTop:"20px"},passwordInput:{width:"368px"},confirmPasswordLabel:{color:o,"&.Mui-focused":{color:o}}}}),usePasswordRequirementStyles=makeStyles()(()=>({container:{width:"357px",height:"256px",display:"flex",alignItems:"center",justifyContent:"center"},popover:{boxSizing:"border-box",padding:"25px 20px",width:"327px",height:"236px",marginTop:"10px",borderRadius:"5px",boxShadow:"0px 2px 10px 0px rgba(0, 0, 0, 0.20)","&::before":{backgroundColor:"white",content:'""',display:"block",position:"absolute",width:12,height:12,top:"calc(50% - 6px)",transform:"rotate(45deg)",left:"calc(100% - 20px)"}},barContainer:{display:"flex",width:"286px",justifyContent:"space-between",padding:"15px 0px"},bar:{width:"70px",height:"4px",borderRadius:"20px"},metRequirement:{color:"#9CA8B4",textDecorationLine:"line-through"},unmetRequirement:{color:"#5C6269"},requirement:{padding:"10px 0",display:"flex",alignItems:"center"},bullet:{transform:"translateY(8px)",marginLeft:"5px"},checkMark:{fill:"#0E6EEC",marginRight:"8px",marginLeft:"-3px"}}));var isCallable=isCallable$p,isObject=isObject$a,setPrototypeOf=objectSetPrototypeOf,inheritIfRequired$1=function(e,t,r){return setPrototypeOf&&isCallable(t=t.constructor)&&t!==r&&isObject(t=t.prototype)&&t!==r.prototype&&setPrototypeOf(e,t),e},defineProperty=objectDefineProperty.f,proxyAccessor$1=function(e,t,r){r in e||defineProperty(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},DESCRIPTORS=descriptors,global$1=global$p,uncurryThis=functionUncurryThis,isForced=isForced_1,inheritIfRequired=inheritIfRequired$1,createNonEnumerableProperty=createNonEnumerableProperty$6,getOwnPropertyNames=objectGetOwnPropertyNames.f,isPrototypeOf=objectIsPrototypeOf,isRegExp=isRegexp,toString=toString$9,getRegExpFlags=regexpGetFlags,stickyHelpers=regexpStickyHelpers,proxyAccessor=proxyAccessor$1,defineBuiltIn=defineBuiltIn$a,fails=fails$n,hasOwn=hasOwnProperty_1,enforceInternalState=internalState.enforce,setSpecies=setSpecies$2,wellKnownSymbol=wellKnownSymbol$l,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,MATCH=wellKnownSymbol$l("match"),NativeRegExp=global$1.RegExp,RegExpPrototype=NativeRegExp.prototype,SyntaxError=global$1.SyntaxError,exec=uncurryThis(RegExpPrototype.exec),charAt=uncurryThis("".charAt),replace=uncurryThis("".replace),stringIndexOf=uncurryThis("".indexOf),stringSlice=uncurryThis("".slice),IS_NCG=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,re1=/a/g,re2=/a/g,CORRECT_NEW=new NativeRegExp(re1)!==re1,MISSED_STICKY=stickyHelpers.MISSED_STICKY,UNSUPPORTED_Y=stickyHelpers.UNSUPPORTED_Y,BASE_FORCED=DESCRIPTORS&&(!CORRECT_NEW||MISSED_STICKY||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG||fails(function(){return re2[MATCH]=!1,NativeRegExp(re1)!=re1||NativeRegExp(re2)==re2||"/a/i"!=NativeRegExp(re1,"i")})),handleDotAll=function(e){for(var t,r=e.length,o=0,n="",a=!1;o<=r;o++)"\\"===(t=charAt(e,o))?n+=t+charAt(e,++o):a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),n+=t):n+="[\\s\\S]";return n},handleNCG=function(e){for(var t,r=e.length,o=0,n="",a=[],i={},s=!1,l=!1,c=0,u="";o<=r;o++){if("\\"===(t=charAt(e,o)))t+=charAt(e,++o);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:exec(IS_NCG,stringSlice(e,o+1))&&(o+=2,l=!0),n+=t,c++;continue;case">"===t&&l:if(""===u||hasOwn(i,u))throw new SyntaxError("Invalid capture group name");i[u]=!0,l=!(a[a.length]=[u,c]),u="";continue}l?u+=t:n+=t}return[n,a]};if(isForced("RegExp",BASE_FORCED)){for(var RegExpWrapper=function(e,t){var r,o,n=isPrototypeOf(RegExpPrototype,this),a=isRegExp(e),i=void 0===t,s=[],l=e;if(!n&&a&&i&&e.constructor===RegExpWrapper)return e;if((a||isPrototypeOf(RegExpPrototype,e))&&(e=e.source,i)&&(t=getRegExpFlags(l)),e=void 0===e?"":toString(e),t=void 0===t?"":toString(t),l=e,a=t=UNSUPPORTED_DOT_ALL&&"dotAll"in re1&&(r=!!t&&-1<stringIndexOf(t,"s"))?replace(t,/s/g,""):t,MISSED_STICKY&&"sticky"in re1&&(o=!!t&&-1<stringIndexOf(t,"y"))&&UNSUPPORTED_Y&&(t=replace(t,/y/g,"")),UNSUPPORTED_NCG&&(e=(i=handleNCG(e))[0],s=i[1]),i=inheritIfRequired(NativeRegExp(e,t),n?this:RegExpPrototype,RegExpWrapper),(r||o||s.length)&&(t=enforceInternalState(i),r&&(t.dotAll=!0,t.raw=RegExpWrapper(handleDotAll(e),a)),o&&(t.sticky=!0),s.length)&&(t.groups=s),e!==l)try{createNonEnumerableProperty(i,"source",""===l?"(?:)":l)}catch(e){}return i},keys=getOwnPropertyNames(NativeRegExp),index=0;keys.length>index;)proxyAccessor(RegExpWrapper,NativeRegExp,keys[index++]);(RegExpPrototype.constructor=RegExpWrapper).prototype=RegExpPrototype,defineBuiltIn(global$1,"RegExp",RegExpWrapper,{constructor:!0})}setSpecies("RegExp");const PasswordRequirements=({password:r,setPasswordRequirementsMet:o})=>{const n=usePasswordRequirementStyles()["classes"];const a=[{id:"upperLower",label:"Upper & lower case letters",regex:new RegExp("(?=.*[a-z])(?=.*[A-Z])","g"),met:!1},{id:"length",label:"At least 8 characters",regex:new RegExp(".{8}$"),met:!1},{id:"specialCharacter",label:"A symbol (#$&!)",regex:new RegExp("[!#$&()]"),met:!1}],[i,s]=react.exports.useState(a),l={0:"#FF5722",1:"#FFC107",2:"#00BCD4",3:"#4CAF50"};return react.exports.useEffect(()=>{var e=[...a];for(const t of e)t.regex.test(r)&&(t.met=!0);e.find(e=>!e.met)?o(!1):o(!0),s(e)},[r]),jsxRuntime.exports.jsx(Box$1,Object.assign({className:n.container},{children:jsxRuntime.exports.jsxs(Box$1,Object.assign({className:n.popover},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1"},{children:r?{0:"Weak Password",1:"Average Password",2:"Good Password",3:"Strong Password 💪"}[i.filter(e=>e.met).length]:"Please set a strong password"})),jsxRuntime.exports.jsx(Box$1,Object.assign({className:n.barContainer},{children:Array.from(Array(4).keys()).map(e=>{var t=i.filter(e=>e.met).length;return jsxRuntime.exports.jsx(Box$1,{className:n.bar,sx:{background:e<=t&&r?l[t]:"#9CA8B4"}},e)})})),jsxRuntime.exports.jsx(Box$1,{children:i.map(e=>jsxRuntime.exports.jsxs(Box$1,Object.assign({className:classNames(n.requirement,e.met?n.metRequirement:n.unmetRequirement)},{children:[e.met?jsxRuntime.exports.jsx(CheckmarkFilled,{className:n.checkMark}):jsxRuntime.exports.jsx(Bullet,{className:n.bullet}),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2"},{children:e.label}))]}),e.id))})]}))}))},SignUpPassword=({userId:e,token:t})=>{const[r,o]=react.exports.useState(!1),[n,a]=react.exports.useState(!1),[i,s]=react.exports.useState(""),[l,c]=react.exports.useState(""),[u,p]=react.exports.useState(!1),[d,g]=react.exports.useState(!1),[$,m]=react.exports.useState(!1),[b,h]=react.exports.useState(null);var x=useStyles({error:$,passwordRequirementsMet:d})["classes"];const y=useDispatch();var f=react.exports.useRef();react.exports.useEffect(()=>{i&&l&&i===l&&d&&p(!0)},[i,l]);const S=e=>{e(e=>!e)};var R=e=>{e.preventDefault()},E=e=>{"Enter"===e.key&&u&&C()};const O={password:i,confirmPassword:l},I={password:s,confirmPassword:c},P=(e,r)=>{e.target.id===v&&e.target.value&&h(e.currentTarget),m(!1);const o=e.target.value;I[r](o),debounce_1(()=>{var e,t;({password:e,confirmPassword:t}=Object.assign(Object.assign({},O),{[r]:o})),e&&t&&e!==t?m(!0):$&&m(!1)},1e3)()};var j=Boolean(b),T=j?"simple-popover":void 0;const v="sign-up.password";const C=()=>{y(actions.setPasswordStart({password:i,userId:e,token:t}))};return jsxRuntime.exports.jsxs(Box$1,Object.assign({className:x.passwordInput},{children:[jsxRuntime.exports.jsx(Header,{text:"Set a password for your account"}),jsxRuntime.exports.jsxs(FormControl,Object.assign({variant:"outlined",className:x.passwordInput},{children:[jsxRuntime.exports.jsx(InputLabel,Object.assign({htmlFor:v,className:x.passwordLabel},{children:"Password"})),jsxRuntime.exports.jsx(OutlinedInput,{id:v,"data-testid":v,ref:f,type:r?"text":"password",onChange:e=>P(e,"password"),value:i,autoFocus:!0,endAdornment:jsxRuntime.exports.jsx(InputAdornment,Object.assign({position:"end"},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({"aria-label":"toggle password visibility",onClick:()=>S(o),onMouseDown:R,edge:"end"},{children:r?jsxRuntime.exports.jsx(default_1$3,{}):jsxRuntime.exports.jsx(default_1$4,{})}))})),onKeyDown:E,onClick:e=>{h(e.currentTarget)}}),jsxRuntime.exports.jsx(Popover,Object.assign({id:T,open:j,anchorEl:b,onClose:()=>{h(null)},disableAutoFocus:!0,disableEnforceFocus:!0,anchorReference:b,transformOrigin:{vertical:"center",horizontal:"right"},anchorOrigin:{vertical:"center",horizontal:"left"},PaperProps:{style:{backgroundColor:"transparent",boxShadow:"none",borderRadius:0}}},{children:jsxRuntime.exports.jsx(PasswordRequirements,{password:i,setPasswordRequirementsMet:g})}))]})),jsxRuntime.exports.jsxs(FormControl,Object.assign({className:classNames(x.passwordInput,x.passwordFormMarginTop),variant:"outlined"},{children:[jsxRuntime.exports.jsx(InputLabel,Object.assign({htmlFor:"sign-up.confirm-password",className:classNames(x.passwordLabel,x.confirmPasswordLabel)},{children:$?"Passwords must match":"Confirm Password"})),jsxRuntime.exports.jsx(OutlinedInput,{id:"sign-up.confirm-password","data-testid":"sign-up.confirm-password",type:n?"text":"password",onChange:e=>P(e,"confirmPassword"),value:l,endAdornment:jsxRuntime.exports.jsx(InputAdornment,Object.assign({position:"end"},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({"aria-label":"toggle password visibility",onClick:d?()=>S(a):()=>({}),onMouseDown:R,edge:"end",disabled:!d},{children:n?jsxRuntime.exports.jsx(default_1$3,{}):jsxRuntime.exports.jsx(default_1$4,{})}))})),error:$,onKeyDown:E,disabled:!d})]})),jsxRuntime.exports.jsx(BlueButton,{className:x.passwordFormMarginTop,onClick:C,text:"Create Account",type:"sign-up",disableButton:!u})]}))},SetPassword=()=>{const[r]=useSearchParams(),[e,o]=react.exports.useState(""),[t,n]=react.exports.useState(""),a=useNavigate(),i=useSelector(selectStatus);return react.exports.useEffect(()=>{var e=r.get("useruuid")||"",t=r.get("token")||"";e&&t?(o(e),n(t)):a("/ui/auth/login")},[]),react.exports.useEffect(()=>{"success"===i&&a("/ui/tiers")},[i]),jsxRuntime.exports.jsx(PageContainer,Object.assign({showLogoInFooter:!1},{children:jsxRuntime.exports.jsx(SignUpPassword,{userId:e,token:t})}))},Plans=()=>{var e=useLocation();return new URLSearchParams(e.search).get("giveMeBeta")?(e=window&&(null==(e=window.config)?void 0:e.stripePublishableKey)||"pk_test_51NNcicInolL392yPuFClPywpUYp0ppNltcHBEdkPNkpMgmagbymPCeal9Dl3dDYn63IOfIafuobscqZhCJQfp3KN00Th3bxbLx",jsxRuntime.exports.jsx("stripe-pricing-table",{"pricing-table-id":"prctbl_1NkvOrInolL392yPOejCV1RT","publishable-key":e})):null},PaymentResult=()=>jsxRuntime.exports.jsxs(Box,Object.assign({sx:{position:"fixed",width:"100%",height:"100vh",top:"0",left:"0",backgroundColor:"#ffffff",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",textAlign:"center",fontSize:"14px",zIndex:99999}},{children:[jsxRuntime.exports.jsx(Box,Object.assign({sx:{height:"200px",width:"405px",mb:6},id:"loaderAnimation"},{children:jsxRuntime.exports.jsx("img",{src:img,alt:"aiware-logo",style:{height:"200px",width:"200px"}})})),jsxRuntime.exports.jsxs(Box,Object.assign({sx:{height:"200px",width:"405px"}},{children:[jsxRuntime.exports.jsx(StyledEngineProvider,Object.assign({injectFirst:!0},{children:jsxRuntime.exports.jsx(LinearProgress,{color:"primary",sx:{height:"7px",backgroundColor:"#D9D9D9",mt:2,borderRadius:"20px"}})})),jsxRuntime.exports.jsx(Typography,Object.assign({sx:{color:"#2A323C",textTransform:"none",mt:4,fontFamily:"Nunito Sans",fontSize:"18px",fontWeight:600,lineHeight:"24px",letterSpacing:"-1.3038520263464193e-9px",textAlign:"center"}},{children:"Creating your custom experience..."}))]}))]})),AuthRoutes=()=>jsxRuntime.exports.jsxs(Routes,{children:[jsxRuntime.exports.jsx(Route,{path:"/login",element:jsxRuntime.exports.jsx(LoginPage,{})}),jsxRuntime.exports.jsx(Route,{path:"sign-up",element:jsxRuntime.exports.jsx(SignUp,{})}),jsxRuntime.exports.jsx(Route,{path:"/plans",element:jsxRuntime.exports.jsx(Plans,{})}),jsxRuntime.exports.jsx(Route,{path:"/payment-result",element:jsxRuntime.exports.jsx(PaymentResult,{})}),jsxRuntime.exports.jsx(Route,{path:"/forgot",element:jsxRuntime.exports.jsx(Forgot,{})}),jsxRuntime.exports.jsx(Route,{path:"/restricted-provider",element:jsxRuntime.exports.jsx(RestrictedProvider,{})}),jsxRuntime.exports.jsx(Route,{path:"/link-oid",element:jsxRuntime.exports.jsx(AccountLinking,{})}),jsxRuntime.exports.jsx(Route,{path:"/reset-password",element:jsxRuntime.exports.jsx(ResetPasswordPage,{})}),jsxRuntime.exports.jsx(Route,{path:"/activate",element:jsxRuntime.exports.jsx(SetPassword,{})})]});export{AuthRoutes,ResetPassword,generateApiUrlFromHost};
|
|
Binary file
|