@prosopo/procaptcha-bundle 3.2.2 → 3.2.3
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/CHANGELOG.md +21 -0
- package/package.json +11 -11
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts +0 -5
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/components.js +0 -5
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/components.js.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts +0 -16
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.js +0 -144
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.js.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.d.ts +0 -2
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.d.ts.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.js +0 -32
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.js.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.d.ts +0 -2
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.d.ts.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.js +0 -36
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.js.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.d.ts +0 -2
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.d.ts.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.js +0 -69
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.js.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.d.ts +0 -2
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.d.ts.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js +0 -136
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts +0 -8
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.js +0 -15
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.js.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts +0 -6
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.js +0 -11
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.js.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.d.ts +0 -10
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.d.ts.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.js +0 -2
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.js.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts +0 -24
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js +0 -49
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.d.ts +0 -3
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.d.ts.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.js +0 -8
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.js.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts +0 -4
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.js +0 -14
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.js.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.d.ts +0 -4
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.d.ts.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.js +0 -9
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.js.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.d.ts +0 -4
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.d.ts.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.js +0 -9
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.js.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts +0 -6
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js +0 -13
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts +0 -5
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js +0 -23
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/language.d.ts +0 -3
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/language.d.ts.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/language.js +0 -17
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/language.js.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.d.ts +0 -3
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.d.ts.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.js +0 -9
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.js.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts +0 -18
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js +0 -66
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.d.ts +0 -9
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.d.ts.map +0 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js +0 -19
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js.map +0 -1
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/clover.xml +0 -599
- package/coverage/coverage-final.json +0 -17
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +0 -161
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -210
- package/coverage/src/components.ts.html +0 -139
- package/coverage/src/index.html +0 -131
- package/coverage/src/index.ts.html +0 -844
- package/coverage/src/util/captcha/captchaComponentProvider.tsx.html +0 -214
- package/coverage/src/util/captcha/captchaComponentsList.ts.html +0 -178
- package/coverage/src/util/captcha/captchaProps.ts.html +0 -166
- package/coverage/src/util/captcha/captchaRenderer.tsx.html +0 -481
- package/coverage/src/util/captcha/captchaType.ts.html +0 -181
- package/coverage/src/util/captcha/components/frictionlessCaptcha.tsx.html +0 -205
- package/coverage/src/util/captcha/components/imageCaptcha.tsx.html +0 -178
- package/coverage/src/util/captcha/components/index.html +0 -146
- package/coverage/src/util/captcha/components/powCaptcha.tsx.html +0 -178
- package/coverage/src/util/captcha/index.html +0 -176
- package/coverage/src/util/config.ts.html +0 -172
- package/coverage/src/util/configCreator.ts.html +0 -241
- package/coverage/src/util/index.html +0 -191
- package/coverage/src/util/language.ts.html +0 -244
- package/coverage/src/util/timeout.ts.html +0 -214
- package/coverage/src/util/widgetFactory.ts.html +0 -532
- package/coverage/src/util/widgetThemeResolver.ts.html +0 -205
- package/dist/bundle/ProcaptchaWidget-CuMH13Bh.js +0 -1012
- package/dist/bundle/ProcaptchaWidget-DsflBBn_.js +0 -187
- package/dist/bundle/Signer-DP9drQ55.js +0 -23
- package/dist/bundle/bnChunk-DRlDxTFg.js +0 -1137
- package/dist/bundle/browser-ponyfill-DXriyH6D.js +0 -339
- package/dist/bundle/builder-ByZ5z580.js +0 -46
- package/dist/bundle/captchaComponentProvider-D02Su4nd.js +0 -1013
- package/dist/bundle/captchaRenderer-BV-WgbEA.js +0 -70
- package/dist/bundle/commonChunk-PB26mndo.js +0 -183
- package/dist/bundle/components.d.ts.map +0 -1
- package/dist/bundle/emotion-element-c39617d8.browser.esm-DG1XhEZ1.js +0 -916
- package/dist/bundle/fp.esm-DYWeNGcH.js +0 -1654
- package/dist/bundle/index-B9KeZfID.js +0 -5416
- package/dist/bundle/index-Calnfnac.js +0 -609
- package/dist/bundle/index-DU371vQ0.js +0 -1634
- package/dist/bundle/index.d.ts.map +0 -1
- package/dist/bundle/locales/ar/translation.json +0 -57
- package/dist/bundle/locales/az/translation.json +0 -57
- package/dist/bundle/locales/cs/translation.json +0 -57
- package/dist/bundle/locales/de/translation.json +0 -57
- package/dist/bundle/locales/el/translation.json +0 -57
- package/dist/bundle/locales/en/translation.json +0 -57
- package/dist/bundle/locales/es/translation.json +0 -57
- package/dist/bundle/locales/fi/translation.json +0 -57
- package/dist/bundle/locales/fr/translation.json +0 -57
- package/dist/bundle/locales/hi/translation.json +0 -57
- package/dist/bundle/locales/hu/translation.json +0 -57
- package/dist/bundle/locales/id/translation.json +0 -57
- package/dist/bundle/locales/it/translation.json +0 -57
- package/dist/bundle/locales/ja/translation.json +0 -57
- package/dist/bundle/locales/jv/translation.json +0 -57
- package/dist/bundle/locales/ko/translation.json +0 -57
- package/dist/bundle/locales/ml/translation.json +0 -57
- package/dist/bundle/locales/ms/translation.json +0 -57
- package/dist/bundle/locales/nl/translation.json +0 -57
- package/dist/bundle/locales/no/translation.json +0 -57
- package/dist/bundle/locales/pl/translation.json +0 -57
- package/dist/bundle/locales/pt/translation.json +0 -57
- package/dist/bundle/locales/pt-BR/translation.json +0 -57
- package/dist/bundle/locales/ro/translation.json +0 -57
- package/dist/bundle/locales/ru/translation.json +0 -57
- package/dist/bundle/locales/sr/translation.json +0 -57
- package/dist/bundle/locales/sv/translation.json +0 -57
- package/dist/bundle/locales/th/translation.json +0 -57
- package/dist/bundle/locales/tr/translation.json +0 -57
- package/dist/bundle/locales/uk/translation.json +0 -57
- package/dist/bundle/locales/vi/translation.json +0 -57
- package/dist/bundle/locales/zh-CN/translation.json +0 -57
- package/dist/bundle/nobleChunk-Bbltwf44.js +0 -2728
- package/dist/bundle/procaptcha.bundle.js +0 -8
- package/dist/bundle/tests/procaptchaReady.unit.test.d.ts.map +0 -1
- package/dist/bundle/tests/util/captchaType.test.d.ts.map +0 -1
- package/dist/bundle/tests/util/config.test.d.ts.map +0 -1
- package/dist/bundle/tests/util/renderLogic.test.d.ts.map +0 -1
- package/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +0 -1
- package/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +0 -1
- package/dist/bundle/util/captcha/captchaProps.d.ts.map +0 -1
- package/dist/bundle/util/captcha/captchaRenderer.d.ts.map +0 -1
- package/dist/bundle/util/captcha/captchaType.d.ts.map +0 -1
- package/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts.map +0 -1
- package/dist/bundle/util/captcha/components/imageCaptcha.d.ts.map +0 -1
- package/dist/bundle/util/captcha/components/powCaptcha.d.ts.map +0 -1
- package/dist/bundle/util/config.d.ts.map +0 -1
- package/dist/bundle/util/configCreator.d.ts.map +0 -1
- package/dist/bundle/util/language.d.ts.map +0 -1
- package/dist/bundle/util/timeout.d.ts.map +0 -1
- package/dist/bundle/util/widgetFactory.d.ts.map +0 -1
- package/dist/bundle/util/widgetThemeResolver.d.ts.map +0 -1
- package/dist/bundle/utilChunk-WRTGKXbU.js +0 -324
- package/dist/bundle/utilCryptoChunk-B4ZdOwus.js +0 -1236
- package/dist/bundle/web2Chunk-BGN6Hv-C.js +0 -3972
- package/dist/bundle/web3Chunk-BIX2T9Eo.js +0 -525
- package/dist/bundle/zodChunk-CaINhWMQ.js +0 -2882
- package/dist/components.d.ts +0 -5
- package/dist/components.d.ts.map +0 -1
- package/dist/components.js +0 -5
- package/dist/components.js.map +0 -1
- package/dist/index.d.ts +0 -16
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/tests/procaptchaReady.unit.test.d.ts +0 -2
- package/dist/tests/procaptchaReady.unit.test.d.ts.map +0 -1
- package/dist/tests/procaptchaReady.unit.test.js +0 -32
- package/dist/tests/procaptchaReady.unit.test.js.map +0 -1
- package/dist/tests/util/captchaType.test.d.ts +0 -2
- package/dist/tests/util/captchaType.test.d.ts.map +0 -1
- package/dist/tests/util/captchaType.test.js +0 -36
- package/dist/tests/util/captchaType.test.js.map +0 -1
- package/dist/tests/util/config.test.d.ts +0 -2
- package/dist/tests/util/config.test.d.ts.map +0 -1
- package/dist/tests/util/config.test.js +0 -69
- package/dist/tests/util/config.test.js.map +0 -1
- package/dist/tests/util/renderLogic.test.d.ts +0 -2
- package/dist/tests/util/renderLogic.test.d.ts.map +0 -1
- package/dist/tests/util/renderLogic.test.js +0 -136
- package/dist/tests/util/renderLogic.test.js.map +0 -1
- package/dist/util/captcha/captchaComponentProvider.d.ts +0 -8
- package/dist/util/captcha/captchaComponentProvider.d.ts.map +0 -1
- package/dist/util/captcha/captchaComponentProvider.js.map +0 -1
- package/dist/util/captcha/captchaComponentsList.d.ts +0 -6
- package/dist/util/captcha/captchaComponentsList.d.ts.map +0 -1
- package/dist/util/captcha/captchaComponentsList.js.map +0 -1
- package/dist/util/captcha/captchaProps.d.ts +0 -10
- package/dist/util/captcha/captchaProps.d.ts.map +0 -1
- package/dist/util/captcha/captchaProps.js +0 -2
- package/dist/util/captcha/captchaProps.js.map +0 -1
- package/dist/util/captcha/captchaRenderer.d.ts +0 -24
- package/dist/util/captcha/captchaRenderer.d.ts.map +0 -1
- package/dist/util/captcha/captchaRenderer.js.map +0 -1
- package/dist/util/captcha/captchaType.d.ts +0 -3
- package/dist/util/captcha/captchaType.d.ts.map +0 -1
- package/dist/util/captcha/captchaType.js.map +0 -1
- package/dist/util/captcha/components/frictionlessCaptcha.d.ts +0 -4
- package/dist/util/captcha/components/frictionlessCaptcha.d.ts.map +0 -1
- package/dist/util/captcha/components/frictionlessCaptcha.js.map +0 -1
- package/dist/util/captcha/components/imageCaptcha.d.ts +0 -4
- package/dist/util/captcha/components/imageCaptcha.d.ts.map +0 -1
- package/dist/util/captcha/components/imageCaptcha.js.map +0 -1
- package/dist/util/captcha/components/powCaptcha.d.ts +0 -4
- package/dist/util/captcha/components/powCaptcha.d.ts.map +0 -1
- package/dist/util/captcha/components/powCaptcha.js.map +0 -1
- package/dist/util/config.d.ts +0 -6
- package/dist/util/config.d.ts.map +0 -1
- package/dist/util/config.js.map +0 -1
- package/dist/util/configCreator.d.ts +0 -5
- package/dist/util/configCreator.d.ts.map +0 -1
- package/dist/util/configCreator.js.map +0 -1
- package/dist/util/language.d.ts +0 -3
- package/dist/util/language.d.ts.map +0 -1
- package/dist/util/language.js.map +0 -1
- package/dist/util/timeout.d.ts +0 -3
- package/dist/util/timeout.d.ts.map +0 -1
- package/dist/util/timeout.js.map +0 -1
- package/dist/util/widgetFactory.d.ts +0 -18
- package/dist/util/widgetFactory.d.ts.map +0 -1
- package/dist/util/widgetFactory.js.map +0 -1
- package/dist/util/widgetThemeResolver.d.ts +0 -9
- package/dist/util/widgetThemeResolver.d.ts.map +0 -1
- package/dist/util/widgetThemeResolver.js.map +0 -1
- package/stats.html +0 -4949
|
@@ -1,1013 +0,0 @@
|
|
|
1
|
-
import { h as ie, j as C, E as ce, a as le, s as ue, w as be, T as Se, u as kt, i as Pe, r as we, b as xe, g as Ce } from "./emotion-element-c39617d8.browser.esm-DG1XhEZ1.js";
|
|
2
|
-
import { r as h, c as w, A as i, S as Te, d as Ee, e as N, U as ke, R as Ae, T as Ie, l as Oe, P as Re, C as M } from "./web2Chunk-BGN6Hv-C.js";
|
|
3
|
-
import { g as je, W as Ne, l as Me, d as _e } from "./index-Calnfnac.js";
|
|
4
|
-
import { g as Rt } from "./bnChunk-DRlDxTFg.js";
|
|
5
|
-
import { a as Y } from "./commonChunk-PB26mndo.js";
|
|
6
|
-
import { z as I } from "./zodChunk-CaINhWMQ.js";
|
|
7
|
-
const Fe = I.object({
|
|
8
|
-
address: I.string(),
|
|
9
|
-
url: I.string(),
|
|
10
|
-
datasetId: I.string(),
|
|
11
|
-
weight: I.number().optional().default(1).transform((e) => {
|
|
12
|
-
const t = Math.round(e);
|
|
13
|
-
return Math.max(1, Math.min(100, t));
|
|
14
|
-
})
|
|
15
|
-
}), $e = (e) => Object.values(e).map(
|
|
16
|
-
(r) => Fe.parse(r)
|
|
17
|
-
).sort((r, o) => r.url.localeCompare(o.url)), De = (e) => {
|
|
18
|
-
if (e === "production")
|
|
19
|
-
return "https://provider-list.prosopo.io/";
|
|
20
|
-
if (e === "staging")
|
|
21
|
-
return "https://provider-list.prosopo.io/staging.json";
|
|
22
|
-
throw new Y("CONFIG.UNKNOWN_ENVIRONMENT", {
|
|
23
|
-
context: { environment: e }
|
|
24
|
-
});
|
|
25
|
-
}, He = async (e) => {
|
|
26
|
-
if (e === "development")
|
|
27
|
-
return [
|
|
28
|
-
{
|
|
29
|
-
address: "5EjTA28bKSbFPPyMbUjNtArxyqjwq38r1BapVmLZShaqEedV",
|
|
30
|
-
url: "http://localhost:9229",
|
|
31
|
-
datasetId: "0x9f460e81ac9c71b486f796a21bb36e2263694756a6621134d110da217fd3ef25",
|
|
32
|
-
weight: 1
|
|
33
|
-
}
|
|
34
|
-
];
|
|
35
|
-
const t = await fetch(
|
|
36
|
-
De(e),
|
|
37
|
-
{
|
|
38
|
-
method: "GET",
|
|
39
|
-
mode: "cors"
|
|
40
|
-
}
|
|
41
|
-
).then((r) => r.json());
|
|
42
|
-
return $e(t);
|
|
43
|
-
};
|
|
44
|
-
let B = [];
|
|
45
|
-
function Le(e, t) {
|
|
46
|
-
if (e.length === 0)
|
|
47
|
-
throw new Error("No providers available");
|
|
48
|
-
const r = e.reduce((n, d) => n + d.weight, 0), o = t % r;
|
|
49
|
-
let a = 0;
|
|
50
|
-
for (const n of e)
|
|
51
|
-
if (a += n.weight, o < a)
|
|
52
|
-
return n;
|
|
53
|
-
const s = e[e.length - 1];
|
|
54
|
-
if (!s)
|
|
55
|
-
throw new Error("No providers available");
|
|
56
|
-
return s;
|
|
57
|
-
}
|
|
58
|
-
const de = async (e, t) => {
|
|
59
|
-
B.length === 0 && (B = await He(e));
|
|
60
|
-
const r = Le(B, t);
|
|
61
|
-
return {
|
|
62
|
-
providerAccount: r.address,
|
|
63
|
-
provider: {
|
|
64
|
-
url: r.url,
|
|
65
|
-
datasetId: r.datasetId
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
}, Mt = async (e) => {
|
|
69
|
-
const r = window.crypto.getRandomValues(new Uint8Array(10)).reduce((o, a) => o + a, 0);
|
|
70
|
-
return await de(e, r);
|
|
71
|
-
}, Ue = async (e, t, r, o, a) => {
|
|
72
|
-
try {
|
|
73
|
-
await e();
|
|
74
|
-
} catch (s) {
|
|
75
|
-
if (o >= a)
|
|
76
|
-
return console.error(s), console.error(
|
|
77
|
-
`Max retries (${o} of ${a}) reached, aborting`
|
|
78
|
-
), r();
|
|
79
|
-
console.error(s), r(), await t();
|
|
80
|
-
}
|
|
81
|
-
}, _ = (e) => ({
|
|
82
|
-
...je(void 0),
|
|
83
|
-
...e
|
|
84
|
-
}), ze = async (e) => e ? (await import("./web2Chunk-BGN6Hv-C.js").then((t) => t.m)).default : (await import("./web3Chunk-BIX2T9Eo.js")).default;
|
|
85
|
-
function G() {
|
|
86
|
-
return G = Object.assign ? Object.assign.bind() : function(e) {
|
|
87
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
88
|
-
var r = arguments[t];
|
|
89
|
-
for (var o in r) ({}).hasOwnProperty.call(r, o) && (e[o] = r[o]);
|
|
90
|
-
}
|
|
91
|
-
return e;
|
|
92
|
-
}, G.apply(null, arguments);
|
|
93
|
-
}
|
|
94
|
-
var pe = { exports: {} }, c = {};
|
|
95
|
-
var p = typeof Symbol == "function" && Symbol.for, J = p ? Symbol.for("react.element") : 60103, Z = p ? Symbol.for("react.portal") : 60106, F = p ? Symbol.for("react.fragment") : 60107, $ = p ? Symbol.for("react.strict_mode") : 60108, D = p ? Symbol.for("react.profiler") : 60114, H = p ? Symbol.for("react.provider") : 60109, L = p ? Symbol.for("react.context") : 60110, Q = p ? Symbol.for("react.async_mode") : 60111, U = p ? Symbol.for("react.concurrent_mode") : 60111, z = p ? Symbol.for("react.forward_ref") : 60112, K = p ? Symbol.for("react.suspense") : 60113, Ke = p ? Symbol.for("react.suspense_list") : 60120, W = p ? Symbol.for("react.memo") : 60115, q = p ? Symbol.for("react.lazy") : 60116, We = p ? Symbol.for("react.block") : 60121, qe = p ? Symbol.for("react.fundamental") : 60117, Be = p ? Symbol.for("react.responder") : 60118, Ve = p ? Symbol.for("react.scope") : 60119;
|
|
96
|
-
function v(e) {
|
|
97
|
-
if (typeof e == "object" && e !== null) {
|
|
98
|
-
var t = e.$$typeof;
|
|
99
|
-
switch (t) {
|
|
100
|
-
case J:
|
|
101
|
-
switch (e = e.type, e) {
|
|
102
|
-
case Q:
|
|
103
|
-
case U:
|
|
104
|
-
case F:
|
|
105
|
-
case D:
|
|
106
|
-
case $:
|
|
107
|
-
case K:
|
|
108
|
-
return e;
|
|
109
|
-
default:
|
|
110
|
-
switch (e = e && e.$$typeof, e) {
|
|
111
|
-
case L:
|
|
112
|
-
case z:
|
|
113
|
-
case q:
|
|
114
|
-
case W:
|
|
115
|
-
case H:
|
|
116
|
-
return e;
|
|
117
|
-
default:
|
|
118
|
-
return t;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
case Z:
|
|
122
|
-
return t;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
function fe(e) {
|
|
127
|
-
return v(e) === U;
|
|
128
|
-
}
|
|
129
|
-
c.AsyncMode = Q;
|
|
130
|
-
c.ConcurrentMode = U;
|
|
131
|
-
c.ContextConsumer = L;
|
|
132
|
-
c.ContextProvider = H;
|
|
133
|
-
c.Element = J;
|
|
134
|
-
c.ForwardRef = z;
|
|
135
|
-
c.Fragment = F;
|
|
136
|
-
c.Lazy = q;
|
|
137
|
-
c.Memo = W;
|
|
138
|
-
c.Portal = Z;
|
|
139
|
-
c.Profiler = D;
|
|
140
|
-
c.StrictMode = $;
|
|
141
|
-
c.Suspense = K;
|
|
142
|
-
c.isAsyncMode = function(e) {
|
|
143
|
-
return fe(e) || v(e) === Q;
|
|
144
|
-
};
|
|
145
|
-
c.isConcurrentMode = fe;
|
|
146
|
-
c.isContextConsumer = function(e) {
|
|
147
|
-
return v(e) === L;
|
|
148
|
-
};
|
|
149
|
-
c.isContextProvider = function(e) {
|
|
150
|
-
return v(e) === H;
|
|
151
|
-
};
|
|
152
|
-
c.isElement = function(e) {
|
|
153
|
-
return typeof e == "object" && e !== null && e.$$typeof === J;
|
|
154
|
-
};
|
|
155
|
-
c.isForwardRef = function(e) {
|
|
156
|
-
return v(e) === z;
|
|
157
|
-
};
|
|
158
|
-
c.isFragment = function(e) {
|
|
159
|
-
return v(e) === F;
|
|
160
|
-
};
|
|
161
|
-
c.isLazy = function(e) {
|
|
162
|
-
return v(e) === q;
|
|
163
|
-
};
|
|
164
|
-
c.isMemo = function(e) {
|
|
165
|
-
return v(e) === W;
|
|
166
|
-
};
|
|
167
|
-
c.isPortal = function(e) {
|
|
168
|
-
return v(e) === Z;
|
|
169
|
-
};
|
|
170
|
-
c.isProfiler = function(e) {
|
|
171
|
-
return v(e) === D;
|
|
172
|
-
};
|
|
173
|
-
c.isStrictMode = function(e) {
|
|
174
|
-
return v(e) === $;
|
|
175
|
-
};
|
|
176
|
-
c.isSuspense = function(e) {
|
|
177
|
-
return v(e) === K;
|
|
178
|
-
};
|
|
179
|
-
c.isValidElementType = function(e) {
|
|
180
|
-
return typeof e == "string" || typeof e == "function" || e === F || e === U || e === D || e === $ || e === K || e === Ke || typeof e == "object" && e !== null && (e.$$typeof === q || e.$$typeof === W || e.$$typeof === H || e.$$typeof === L || e.$$typeof === z || e.$$typeof === qe || e.$$typeof === Be || e.$$typeof === Ve || e.$$typeof === We);
|
|
181
|
-
};
|
|
182
|
-
c.typeOf = v;
|
|
183
|
-
pe.exports = c;
|
|
184
|
-
var Ge = pe.exports, he = Ge;
|
|
185
|
-
var Xe = {
|
|
186
|
-
$$typeof: !0,
|
|
187
|
-
render: !0,
|
|
188
|
-
defaultProps: !0,
|
|
189
|
-
displayName: !0,
|
|
190
|
-
propTypes: !0
|
|
191
|
-
}, Ye = {
|
|
192
|
-
$$typeof: !0,
|
|
193
|
-
compare: !0,
|
|
194
|
-
defaultProps: !0,
|
|
195
|
-
displayName: !0,
|
|
196
|
-
propTypes: !0,
|
|
197
|
-
type: !0
|
|
198
|
-
}, me = {};
|
|
199
|
-
me[he.ForwardRef] = Xe;
|
|
200
|
-
me[he.Memo] = Ye;
|
|
201
|
-
var _t = Object.prototype;
|
|
202
|
-
function S(e, t, r) {
|
|
203
|
-
return ie.call(t, "css") ? C.jsx(ce, le(e, t), r) : C.jsx(e, t, r);
|
|
204
|
-
}
|
|
205
|
-
function Je(e, t, r) {
|
|
206
|
-
return ie.call(t, "css") ? C.jsxs(ce, le(e, t), r) : C.jsxs(e, t, r);
|
|
207
|
-
}
|
|
208
|
-
function Ze() {
|
|
209
|
-
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
210
|
-
t[r] = arguments[r];
|
|
211
|
-
return ue(t);
|
|
212
|
-
}
|
|
213
|
-
function Qe(e) {
|
|
214
|
-
var t = /* @__PURE__ */ Object.create(null);
|
|
215
|
-
return function(r) {
|
|
216
|
-
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
var et = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, tt = /* @__PURE__ */ Qe(
|
|
220
|
-
function(e) {
|
|
221
|
-
return et.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
222
|
-
}
|
|
223
|
-
/* Z+1 */
|
|
224
|
-
), rt = tt, ot = function(t) {
|
|
225
|
-
return t !== "theme";
|
|
226
|
-
}, re = function(t) {
|
|
227
|
-
return typeof t == "string" && // 96 is one less than the char code
|
|
228
|
-
// for "a" so this is checking that
|
|
229
|
-
// it's a lowercase character
|
|
230
|
-
t.charCodeAt(0) > 96 ? rt : ot;
|
|
231
|
-
}, oe = function(t, r, o) {
|
|
232
|
-
var a;
|
|
233
|
-
if (r) {
|
|
234
|
-
var s = r.shouldForwardProp;
|
|
235
|
-
a = t.__emotion_forwardProp && s ? function(n) {
|
|
236
|
-
return t.__emotion_forwardProp(n) && s(n);
|
|
237
|
-
} : s;
|
|
238
|
-
}
|
|
239
|
-
return typeof a != "function" && o && (a = t.__emotion_forwardProp), a;
|
|
240
|
-
}, at = function(t) {
|
|
241
|
-
var r = t.cache, o = t.serialized, a = t.isStringTag;
|
|
242
|
-
return we(r, o, a), xe(function() {
|
|
243
|
-
return Pe(r, o, a);
|
|
244
|
-
}), null;
|
|
245
|
-
}, nt = function e(t, r) {
|
|
246
|
-
var o = t.__emotion_real === t, a = o && t.__emotion_base || t, s, n;
|
|
247
|
-
r !== void 0 && (s = r.label, n = r.target);
|
|
248
|
-
var d = oe(t, r, o), y = d || re(a), m = !y("as");
|
|
249
|
-
return function() {
|
|
250
|
-
var b = arguments, f = o && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
|
|
251
|
-
if (s !== void 0 && f.push("label:" + s + ";"), b[0] == null || b[0].raw === void 0)
|
|
252
|
-
f.push.apply(f, b);
|
|
253
|
-
else {
|
|
254
|
-
f.push(b[0][0]);
|
|
255
|
-
for (var g = b.length, T = 1; T < g; T++)
|
|
256
|
-
f.push(b[T], b[0][T]);
|
|
257
|
-
}
|
|
258
|
-
var u = be(function(l, P, O) {
|
|
259
|
-
var k = m && l.as || a, x = "", A = [], E = l;
|
|
260
|
-
if (l.theme == null) {
|
|
261
|
-
E = {};
|
|
262
|
-
for (var ee in l)
|
|
263
|
-
E[ee] = l[ee];
|
|
264
|
-
E.theme = h.useContext(Se);
|
|
265
|
-
}
|
|
266
|
-
typeof l.className == "string" ? x = Ce(P.registered, A, l.className) : l.className != null && (x = l.className + " ");
|
|
267
|
-
var te = ue(f.concat(A), P.registered, E);
|
|
268
|
-
x += P.key + "-" + te.name, n !== void 0 && (x += " " + n);
|
|
269
|
-
var ve = m && d === void 0 ? re(k) : y, R = {};
|
|
270
|
-
for (var j in l)
|
|
271
|
-
m && j === "as" || // $FlowFixMe
|
|
272
|
-
ve(j) && (R[j] = l[j]);
|
|
273
|
-
return R.className = x, R.ref = O, /* @__PURE__ */ h.createElement(h.Fragment, null, /* @__PURE__ */ h.createElement(at, {
|
|
274
|
-
cache: P,
|
|
275
|
-
serialized: te,
|
|
276
|
-
isStringTag: typeof k == "string"
|
|
277
|
-
}), /* @__PURE__ */ h.createElement(k, R));
|
|
278
|
-
});
|
|
279
|
-
return u.displayName = s !== void 0 ? s : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", u.defaultProps = t.defaultProps, u.__emotion_real = u, u.__emotion_base = a, u.__emotion_styles = f, u.__emotion_forwardProp = d, Object.defineProperty(u, "toString", {
|
|
280
|
-
value: function() {
|
|
281
|
-
return "." + n;
|
|
282
|
-
}
|
|
283
|
-
}), u.withComponent = function(l, P) {
|
|
284
|
-
return e(l, G({}, r, P, {
|
|
285
|
-
shouldForwardProp: oe(u, P, !0)
|
|
286
|
-
})).apply(void 0, f);
|
|
287
|
-
}, u;
|
|
288
|
-
};
|
|
289
|
-
}, st = [
|
|
290
|
-
"a",
|
|
291
|
-
"abbr",
|
|
292
|
-
"address",
|
|
293
|
-
"area",
|
|
294
|
-
"article",
|
|
295
|
-
"aside",
|
|
296
|
-
"audio",
|
|
297
|
-
"b",
|
|
298
|
-
"base",
|
|
299
|
-
"bdi",
|
|
300
|
-
"bdo",
|
|
301
|
-
"big",
|
|
302
|
-
"blockquote",
|
|
303
|
-
"body",
|
|
304
|
-
"br",
|
|
305
|
-
"button",
|
|
306
|
-
"canvas",
|
|
307
|
-
"caption",
|
|
308
|
-
"cite",
|
|
309
|
-
"code",
|
|
310
|
-
"col",
|
|
311
|
-
"colgroup",
|
|
312
|
-
"data",
|
|
313
|
-
"datalist",
|
|
314
|
-
"dd",
|
|
315
|
-
"del",
|
|
316
|
-
"details",
|
|
317
|
-
"dfn",
|
|
318
|
-
"dialog",
|
|
319
|
-
"div",
|
|
320
|
-
"dl",
|
|
321
|
-
"dt",
|
|
322
|
-
"em",
|
|
323
|
-
"embed",
|
|
324
|
-
"fieldset",
|
|
325
|
-
"figcaption",
|
|
326
|
-
"figure",
|
|
327
|
-
"footer",
|
|
328
|
-
"form",
|
|
329
|
-
"h1",
|
|
330
|
-
"h2",
|
|
331
|
-
"h3",
|
|
332
|
-
"h4",
|
|
333
|
-
"h5",
|
|
334
|
-
"h6",
|
|
335
|
-
"head",
|
|
336
|
-
"header",
|
|
337
|
-
"hgroup",
|
|
338
|
-
"hr",
|
|
339
|
-
"html",
|
|
340
|
-
"i",
|
|
341
|
-
"iframe",
|
|
342
|
-
"img",
|
|
343
|
-
"input",
|
|
344
|
-
"ins",
|
|
345
|
-
"kbd",
|
|
346
|
-
"keygen",
|
|
347
|
-
"label",
|
|
348
|
-
"legend",
|
|
349
|
-
"li",
|
|
350
|
-
"link",
|
|
351
|
-
"main",
|
|
352
|
-
"map",
|
|
353
|
-
"mark",
|
|
354
|
-
"marquee",
|
|
355
|
-
"menu",
|
|
356
|
-
"menuitem",
|
|
357
|
-
"meta",
|
|
358
|
-
"meter",
|
|
359
|
-
"nav",
|
|
360
|
-
"noscript",
|
|
361
|
-
"object",
|
|
362
|
-
"ol",
|
|
363
|
-
"optgroup",
|
|
364
|
-
"option",
|
|
365
|
-
"output",
|
|
366
|
-
"p",
|
|
367
|
-
"param",
|
|
368
|
-
"picture",
|
|
369
|
-
"pre",
|
|
370
|
-
"progress",
|
|
371
|
-
"q",
|
|
372
|
-
"rp",
|
|
373
|
-
"rt",
|
|
374
|
-
"ruby",
|
|
375
|
-
"s",
|
|
376
|
-
"samp",
|
|
377
|
-
"script",
|
|
378
|
-
"section",
|
|
379
|
-
"select",
|
|
380
|
-
"small",
|
|
381
|
-
"source",
|
|
382
|
-
"span",
|
|
383
|
-
"strong",
|
|
384
|
-
"style",
|
|
385
|
-
"sub",
|
|
386
|
-
"summary",
|
|
387
|
-
"sup",
|
|
388
|
-
"table",
|
|
389
|
-
"tbody",
|
|
390
|
-
"td",
|
|
391
|
-
"textarea",
|
|
392
|
-
"tfoot",
|
|
393
|
-
"th",
|
|
394
|
-
"thead",
|
|
395
|
-
"time",
|
|
396
|
-
"title",
|
|
397
|
-
"tr",
|
|
398
|
-
"track",
|
|
399
|
-
"u",
|
|
400
|
-
"ul",
|
|
401
|
-
"var",
|
|
402
|
-
"video",
|
|
403
|
-
"wbr",
|
|
404
|
-
// SVG
|
|
405
|
-
"circle",
|
|
406
|
-
"clipPath",
|
|
407
|
-
"defs",
|
|
408
|
-
"ellipse",
|
|
409
|
-
"foreignObject",
|
|
410
|
-
"g",
|
|
411
|
-
"image",
|
|
412
|
-
"line",
|
|
413
|
-
"linearGradient",
|
|
414
|
-
"mask",
|
|
415
|
-
"path",
|
|
416
|
-
"pattern",
|
|
417
|
-
"polygon",
|
|
418
|
-
"polyline",
|
|
419
|
-
"radialGradient",
|
|
420
|
-
"rect",
|
|
421
|
-
"stop",
|
|
422
|
-
"svg",
|
|
423
|
-
"text",
|
|
424
|
-
"tspan"
|
|
425
|
-
], X = nt.bind();
|
|
426
|
-
st.forEach(function(e) {
|
|
427
|
-
X[e] = X(e);
|
|
428
|
-
});
|
|
429
|
-
const it = Ze`{
|
|
430
|
-
&:before {
|
|
431
|
-
content: '""';
|
|
432
|
-
position: absolute;
|
|
433
|
-
height: 100%;
|
|
434
|
-
width: 100%;
|
|
435
|
-
}
|
|
436
|
-
}`, ct = {
|
|
437
|
-
width: "28px",
|
|
438
|
-
height: "28px",
|
|
439
|
-
minWidth: "14px",
|
|
440
|
-
minHeight: "14px",
|
|
441
|
-
top: "auto",
|
|
442
|
-
left: "auto",
|
|
443
|
-
opacity: "1",
|
|
444
|
-
borderRadius: "12.5%",
|
|
445
|
-
appearance: "none",
|
|
446
|
-
cursor: "pointer",
|
|
447
|
-
margin: "0",
|
|
448
|
-
borderStyle: "solid",
|
|
449
|
-
borderWidth: "1px"
|
|
450
|
-
}, ae = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", lt = "https://docs.prosopo.io/en/basics/faq/", ut = () => Array.from(
|
|
451
|
-
{ length: 8 },
|
|
452
|
-
() => ae[Math.floor(Math.random() * ae.length)]
|
|
453
|
-
).join(""), dt = ({
|
|
454
|
-
theme: e,
|
|
455
|
-
onChange: t,
|
|
456
|
-
checked: r,
|
|
457
|
-
labelText: o,
|
|
458
|
-
error: a,
|
|
459
|
-
loading: s
|
|
460
|
-
}) => {
|
|
461
|
-
const n = {
|
|
462
|
-
...ct,
|
|
463
|
-
border: `1px solid ${e.palette.background.contrastText}`
|
|
464
|
-
}, [d, y] = h.useState(!1), m = X.label`
|
|
465
|
-
color: ${e.palette.background.contrastText};
|
|
466
|
-
position: relative;
|
|
467
|
-
display: flex;
|
|
468
|
-
cursor: pointer;
|
|
469
|
-
user-select: none;
|
|
470
|
-
|
|
471
|
-
@container widget (max-width: 219px) {
|
|
472
|
-
display: none;
|
|
473
|
-
}
|
|
474
|
-
@container widget (min-width: 220px) {
|
|
475
|
-
font-size: 12px;
|
|
476
|
-
}
|
|
477
|
-
@container widget (min-width: 250px) {
|
|
478
|
-
font-size: 14px;
|
|
479
|
-
}
|
|
480
|
-
@container widget (min-width: 270px) {
|
|
481
|
-
font-size: 16px;
|
|
482
|
-
}
|
|
483
|
-
`, b = h.useMemo(() => ({
|
|
484
|
-
...n,
|
|
485
|
-
borderColor: d ? e.palette.background.contrastText : e.palette.border,
|
|
486
|
-
appearance: r ? "auto" : "none",
|
|
487
|
-
flex: 1,
|
|
488
|
-
margin: "15px",
|
|
489
|
-
minWidth: "28px",
|
|
490
|
-
minHeight: "28px"
|
|
491
|
-
}), [d, e, r]), f = ut();
|
|
492
|
-
return /* @__PURE__ */ Je(
|
|
493
|
-
"span",
|
|
494
|
-
{
|
|
495
|
-
style: {
|
|
496
|
-
display: "inline-flex",
|
|
497
|
-
alignItems: "center",
|
|
498
|
-
minHeight: "58px"
|
|
499
|
-
},
|
|
500
|
-
children: [
|
|
501
|
-
s ? /* @__PURE__ */ S(
|
|
502
|
-
"div",
|
|
503
|
-
{
|
|
504
|
-
className: Ne,
|
|
505
|
-
"aria-label": "Loading spinner"
|
|
506
|
-
}
|
|
507
|
-
) : /* @__PURE__ */ S(
|
|
508
|
-
"input",
|
|
509
|
-
{
|
|
510
|
-
name: f,
|
|
511
|
-
id: f,
|
|
512
|
-
onMouseEnter: () => y(!0),
|
|
513
|
-
onMouseLeave: () => y(!1),
|
|
514
|
-
css: it,
|
|
515
|
-
type: "checkbox",
|
|
516
|
-
"aria-live": "assertive",
|
|
517
|
-
"aria-label": o,
|
|
518
|
-
onKeyDown: (g) => {
|
|
519
|
-
g.isTrusted && g.key === "Enter" && (g.preventDefault(), g.stopPropagation(), y(!1), t(g));
|
|
520
|
-
},
|
|
521
|
-
onChange: (g) => {
|
|
522
|
-
g.isTrusted && (g.preventDefault(), g.stopPropagation(), y(!1), t(g));
|
|
523
|
-
},
|
|
524
|
-
checked: r,
|
|
525
|
-
style: b,
|
|
526
|
-
disabled: a !== void 0,
|
|
527
|
-
className: s ? "checkbox__loading-spinner" : "",
|
|
528
|
-
"data-cy": "captcha-checkbox"
|
|
529
|
-
}
|
|
530
|
-
),
|
|
531
|
-
a ? /* @__PURE__ */ S(m, { htmFor: f, children: /* @__PURE__ */ S(
|
|
532
|
-
"a",
|
|
533
|
-
{
|
|
534
|
-
css: {
|
|
535
|
-
color: e.palette.error.main
|
|
536
|
-
},
|
|
537
|
-
href: lt,
|
|
538
|
-
children: a
|
|
539
|
-
}
|
|
540
|
-
) }) : /* @__PURE__ */ S(m, { htmFor: f, children: o })
|
|
541
|
-
]
|
|
542
|
-
}
|
|
543
|
-
);
|
|
544
|
-
};
|
|
545
|
-
class V extends Error {
|
|
546
|
-
constructor(t, r, o) {
|
|
547
|
-
super(`HTTP error! status: ${t} (${r}) for URL: ${o}`), this.status = t, this.statusText = r, this.url = o, this.name = "HttpError";
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
class pt {
|
|
551
|
-
constructor(t, r = "") {
|
|
552
|
-
this.baseURL = t + r;
|
|
553
|
-
}
|
|
554
|
-
async fetch(t, r) {
|
|
555
|
-
var o;
|
|
556
|
-
try {
|
|
557
|
-
const a = await fetch(this.baseURL + t, r);
|
|
558
|
-
if (!a.ok && // Only throw an error if the response is not JSON and not a 400 error
|
|
559
|
-
a.status !== 400 && !((o = a.headers.get("content-type")) != null && o.includes("application/json")))
|
|
560
|
-
throw new V(a.status, a.statusText, a.url);
|
|
561
|
-
return this.responseHandler(a);
|
|
562
|
-
} catch (a) {
|
|
563
|
-
return this.errorHandler(a);
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
async post(t, r, o) {
|
|
567
|
-
var s;
|
|
568
|
-
const a = {
|
|
569
|
-
"Content-Type": "application/json",
|
|
570
|
-
...(o == null ? void 0 : o.headers) || {}
|
|
571
|
-
};
|
|
572
|
-
try {
|
|
573
|
-
const n = await fetch(this.baseURL + t, {
|
|
574
|
-
method: "POST",
|
|
575
|
-
body: JSON.stringify(r),
|
|
576
|
-
...o,
|
|
577
|
-
headers: a
|
|
578
|
-
});
|
|
579
|
-
if (!n.ok && // Only throw an error if the response is not JSON and not a 400 error
|
|
580
|
-
n.status !== 400 && !((s = n.headers.get("content-type")) != null && s.includes("application/json")))
|
|
581
|
-
throw new V(n.status, n.statusText, n.url);
|
|
582
|
-
return this.responseHandler(n);
|
|
583
|
-
} catch (n) {
|
|
584
|
-
return this.errorHandler(n);
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
async responseHandler(t) {
|
|
588
|
-
try {
|
|
589
|
-
return await t.json();
|
|
590
|
-
} catch (r) {
|
|
591
|
-
throw console.error("Error parsing JSON:", r), r;
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
errorHandler(t) {
|
|
595
|
-
return t instanceof V ? console.error("HTTP error:", t) : console.error("API request error:", t), Promise.reject(t);
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
class ft extends pt {
|
|
599
|
-
constructor(t, r) {
|
|
600
|
-
const o = t.startsWith("http") ? t : `https://${t}`;
|
|
601
|
-
super(o), this.account = r;
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
class ht extends ft {
|
|
605
|
-
getCaptchaChallenge(t, r, o) {
|
|
606
|
-
const { provider: a } = r, s = this.account, n = {
|
|
607
|
-
[i.dapp]: s,
|
|
608
|
-
[i.user]: t,
|
|
609
|
-
[i.datasetId]: a.datasetId
|
|
610
|
-
};
|
|
611
|
-
return o && (n[i.sessionId] = o), this.post(w.GetImageCaptchaChallenge, n, {
|
|
612
|
-
headers: {
|
|
613
|
-
"Prosopo-Site-Key": this.account,
|
|
614
|
-
"Prosopo-User": t
|
|
615
|
-
}
|
|
616
|
-
});
|
|
617
|
-
}
|
|
618
|
-
submitCaptchaSolution(t, r, o, a, s, n) {
|
|
619
|
-
const d = {
|
|
620
|
-
[i.user]: o,
|
|
621
|
-
[i.dapp]: this.account,
|
|
622
|
-
[i.captchas]: t,
|
|
623
|
-
[i.requestHash]: r,
|
|
624
|
-
[i.timestamp]: a,
|
|
625
|
-
[i.signature]: {
|
|
626
|
-
[i.user]: {
|
|
627
|
-
[i.timestamp]: n
|
|
628
|
-
},
|
|
629
|
-
[i.provider]: {
|
|
630
|
-
[i.requestHash]: s
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
};
|
|
634
|
-
return this.post(w.SubmitImageCaptchaSolution, d, {
|
|
635
|
-
headers: {
|
|
636
|
-
"Prosopo-Site-Key": this.account,
|
|
637
|
-
"Prosopo-User": o
|
|
638
|
-
}
|
|
639
|
-
});
|
|
640
|
-
}
|
|
641
|
-
verifyDappUser(t, r, o, a, s) {
|
|
642
|
-
const n = {
|
|
643
|
-
[i.token]: t,
|
|
644
|
-
[i.dappSignature]: r,
|
|
645
|
-
[i.ip]: s
|
|
646
|
-
};
|
|
647
|
-
return a && (n[i.maxVerifiedTime] = a), this.post(w.VerifyImageCaptchaSolutionDapp, n, {
|
|
648
|
-
headers: {
|
|
649
|
-
"Prosopo-Site-Key": this.account,
|
|
650
|
-
"Prosopo-User": o
|
|
651
|
-
}
|
|
652
|
-
});
|
|
653
|
-
}
|
|
654
|
-
getPowCaptchaChallenge(t, r, o) {
|
|
655
|
-
const a = {
|
|
656
|
-
[i.user]: t.toString(),
|
|
657
|
-
[i.dapp]: r.toString(),
|
|
658
|
-
...o && { [i.sessionId]: o }
|
|
659
|
-
};
|
|
660
|
-
return this.post(w.GetPowCaptchaChallenge, a, {
|
|
661
|
-
headers: {
|
|
662
|
-
"Prosopo-Site-Key": this.account,
|
|
663
|
-
"Prosopo-User": t
|
|
664
|
-
}
|
|
665
|
-
});
|
|
666
|
-
}
|
|
667
|
-
submitPowCaptchaSolution(t, r, o, a, s, n) {
|
|
668
|
-
const d = Te.parse({
|
|
669
|
-
[i.challenge]: t.challenge,
|
|
670
|
-
[i.difficulty]: t.difficulty,
|
|
671
|
-
[i.timestamp]: t.timestamp,
|
|
672
|
-
[i.user]: r.toString(),
|
|
673
|
-
[i.dapp]: o.toString(),
|
|
674
|
-
[i.nonce]: a,
|
|
675
|
-
[i.verifiedTimeout]: n,
|
|
676
|
-
[i.signature]: {
|
|
677
|
-
[i.provider]: t[i.signature][i.provider],
|
|
678
|
-
[i.user]: {
|
|
679
|
-
[i.timestamp]: s
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
});
|
|
683
|
-
return this.post(w.SubmitPowCaptchaSolution, d, {
|
|
684
|
-
headers: {
|
|
685
|
-
"Prosopo-Site-Key": this.account,
|
|
686
|
-
"Prosopo-User": r
|
|
687
|
-
}
|
|
688
|
-
});
|
|
689
|
-
}
|
|
690
|
-
getFrictionlessCaptcha(t, r, o, a) {
|
|
691
|
-
const s = {
|
|
692
|
-
[i.token]: t,
|
|
693
|
-
[i.headHash]: r,
|
|
694
|
-
[i.dapp]: o,
|
|
695
|
-
[i.user]: a
|
|
696
|
-
};
|
|
697
|
-
return this.post(w.GetFrictionlessCaptchaChallenge, s, {
|
|
698
|
-
headers: {
|
|
699
|
-
"Prosopo-Site-Key": this.account,
|
|
700
|
-
"Prosopo-User": a
|
|
701
|
-
}
|
|
702
|
-
});
|
|
703
|
-
}
|
|
704
|
-
submitUserEvents(t, r) {
|
|
705
|
-
return this.post(
|
|
706
|
-
w.SubmitUserEvents,
|
|
707
|
-
{ events: t, string: r },
|
|
708
|
-
{
|
|
709
|
-
headers: {
|
|
710
|
-
"Prosopo-Site-Key": this.account
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
);
|
|
714
|
-
}
|
|
715
|
-
getProviderStatus() {
|
|
716
|
-
return this.fetch(w.GetProviderStatus, {
|
|
717
|
-
headers: {
|
|
718
|
-
"Prosopo-Site-Key": this.account
|
|
719
|
-
}
|
|
720
|
-
});
|
|
721
|
-
}
|
|
722
|
-
getProviderDetails() {
|
|
723
|
-
return this.fetch(Ee.GetProviderDetails, {
|
|
724
|
-
headers: {
|
|
725
|
-
"Prosopo-Site-Key": this.account
|
|
726
|
-
}
|
|
727
|
-
});
|
|
728
|
-
}
|
|
729
|
-
submitPowCaptchaVerify(t, r, o, a, s) {
|
|
730
|
-
const n = {
|
|
731
|
-
[i.token]: t,
|
|
732
|
-
[i.dappSignature]: r,
|
|
733
|
-
[i.verifiedTimeout]: o,
|
|
734
|
-
[i.ip]: s
|
|
735
|
-
};
|
|
736
|
-
return this.post(w.VerifyPowCaptchaSolution, n, {
|
|
737
|
-
headers: {
|
|
738
|
-
"Prosopo-Site-Key": this.account,
|
|
739
|
-
"Prosopo-User": a
|
|
740
|
-
}
|
|
741
|
-
});
|
|
742
|
-
}
|
|
743
|
-
registerSiteKey(t, r, o, a, s) {
|
|
744
|
-
const n = { siteKey: t, tier: r, settings: o };
|
|
745
|
-
return this.post(N.SiteKeyRegister, n, {
|
|
746
|
-
headers: {
|
|
747
|
-
"Prosopo-Site-Key": this.account,
|
|
748
|
-
timestamp: a,
|
|
749
|
-
signature: s
|
|
750
|
-
}
|
|
751
|
-
});
|
|
752
|
-
}
|
|
753
|
-
updateDetectorKey(t, r, o) {
|
|
754
|
-
return this.post(
|
|
755
|
-
N.UpdateDetectorKey,
|
|
756
|
-
ke.parse({ detectorKey: t }),
|
|
757
|
-
{
|
|
758
|
-
headers: {
|
|
759
|
-
"Prosopo-Site-Key": this.account,
|
|
760
|
-
timestamp: r,
|
|
761
|
-
signature: o
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
);
|
|
765
|
-
}
|
|
766
|
-
removeDetectorKey(t, r, o, a) {
|
|
767
|
-
return this.post(
|
|
768
|
-
N.RemoveDetectorKey,
|
|
769
|
-
Ae.parse({
|
|
770
|
-
detectorKey: t,
|
|
771
|
-
expirationInSeconds: a
|
|
772
|
-
}),
|
|
773
|
-
{
|
|
774
|
-
headers: {
|
|
775
|
-
"Prosopo-Site-Key": this.account,
|
|
776
|
-
timestamp: r,
|
|
777
|
-
signature: o
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
);
|
|
781
|
-
}
|
|
782
|
-
toggleMaintenanceMode(t, r, o) {
|
|
783
|
-
return this.post(
|
|
784
|
-
N.ToggleMaintenanceMode,
|
|
785
|
-
Ie.parse({ enabled: t }),
|
|
786
|
-
{
|
|
787
|
-
headers: {
|
|
788
|
-
"Prosopo-Site-Key": this.account,
|
|
789
|
-
timestamp: r,
|
|
790
|
-
signature: o
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
);
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
const mt = h.lazy(
|
|
797
|
-
async () => import("./ProcaptchaWidget-DsflBBn_.js")
|
|
798
|
-
), ge = (e) => /* @__PURE__ */ S(h.Suspense, { children: /* @__PURE__ */ S(
|
|
799
|
-
mt,
|
|
800
|
-
{
|
|
801
|
-
config: e.config,
|
|
802
|
-
callbacks: e.callbacks,
|
|
803
|
-
frictionlessState: e.frictionlessState,
|
|
804
|
-
i18n: e.i18n
|
|
805
|
-
}
|
|
806
|
-
) }), gt = h.lazy(async () => import("./ProcaptchaWidget-CuMH13Bh.js")), ye = (e) => /* @__PURE__ */ S(h.Suspense, { children: /* @__PURE__ */ S(gt, { ...e }) }), yt = async () => (await import("./index-DU371vQ0.js")).default, vt = async (e, t) => {
|
|
807
|
-
let r;
|
|
808
|
-
const o = new Promise((a, s) => {
|
|
809
|
-
r = setTimeout(() => {
|
|
810
|
-
s(new Y("API.UNKNOWN"));
|
|
811
|
-
}, t);
|
|
812
|
-
});
|
|
813
|
-
try {
|
|
814
|
-
const a = await Promise.race([e, o]);
|
|
815
|
-
return r && clearTimeout(r), a;
|
|
816
|
-
} catch (a) {
|
|
817
|
-
throw r && clearTimeout(r), a;
|
|
818
|
-
}
|
|
819
|
-
}, bt = async (e, t, r) => {
|
|
820
|
-
const a = await new (await ze(e.web2))().getAccount(e), n = await (await yt())(
|
|
821
|
-
e.defaultEnvironment,
|
|
822
|
-
de,
|
|
823
|
-
t,
|
|
824
|
-
r,
|
|
825
|
-
a.account.address
|
|
826
|
-
);
|
|
827
|
-
if (!e.account.address)
|
|
828
|
-
throw new Y("GENERAL.SITE_KEY_MISSING");
|
|
829
|
-
const d = n.provider;
|
|
830
|
-
if (!d)
|
|
831
|
-
throw new Error("Provider Selection Failed");
|
|
832
|
-
const y = new ht(
|
|
833
|
-
d.provider.url,
|
|
834
|
-
e.account.address
|
|
835
|
-
), m = await vt(
|
|
836
|
-
y.getFrictionlessCaptcha(
|
|
837
|
-
n.token,
|
|
838
|
-
n.encryptHeadHash,
|
|
839
|
-
e.account.address,
|
|
840
|
-
a.account.address
|
|
841
|
-
),
|
|
842
|
-
1e4
|
|
843
|
-
// 10 second timeout
|
|
844
|
-
);
|
|
845
|
-
return {
|
|
846
|
-
captchaType: m.captchaType,
|
|
847
|
-
sessionId: m.sessionId,
|
|
848
|
-
provider: d,
|
|
849
|
-
status: m.status,
|
|
850
|
-
userAccount: a,
|
|
851
|
-
error: m.error
|
|
852
|
-
};
|
|
853
|
-
}, ne = (e, t, r, o, a, s) => {
|
|
854
|
-
const n = e === "light" ? Me : _e;
|
|
855
|
-
return t === "invisible" ? null : /* @__PURE__ */ S(
|
|
856
|
-
dt,
|
|
857
|
-
{
|
|
858
|
-
theme: n,
|
|
859
|
-
onChange: async () => {
|
|
860
|
-
},
|
|
861
|
-
checked: !1,
|
|
862
|
-
labelText: o ? a("WIDGET.I_AM_HUMAN") : "",
|
|
863
|
-
error: r,
|
|
864
|
-
"aria-label": "human checkbox",
|
|
865
|
-
loading: s
|
|
866
|
-
}
|
|
867
|
-
);
|
|
868
|
-
}, se = (e) => ({
|
|
869
|
-
loading: !1,
|
|
870
|
-
attemptCount: e || 0
|
|
871
|
-
}), St = ({
|
|
872
|
-
config: e,
|
|
873
|
-
callbacks: t,
|
|
874
|
-
restart: r,
|
|
875
|
-
i18n: o,
|
|
876
|
-
detectBot: a = bt,
|
|
877
|
-
container: s
|
|
878
|
-
}) => {
|
|
879
|
-
const n = h.useRef(se(0)), d = _(t);
|
|
880
|
-
h.useEffect(() => {
|
|
881
|
-
e.language && (o ? o.language !== e.language && o.changeLanguage(e.language).then((u) => u) : Oe().then((u) => {
|
|
882
|
-
u.language !== e.language && u.changeLanguage(e.language).then((l) => l);
|
|
883
|
-
}));
|
|
884
|
-
}, [o, e.language]);
|
|
885
|
-
const [y, m] = h.useState(
|
|
886
|
-
ne(
|
|
887
|
-
e.theme,
|
|
888
|
-
e.mode,
|
|
889
|
-
n.current.errorMessage,
|
|
890
|
-
o.isInitialized,
|
|
891
|
-
o.t,
|
|
892
|
-
!0
|
|
893
|
-
)
|
|
894
|
-
), b = (u) => {
|
|
895
|
-
n.current = se(
|
|
896
|
-
u || n.current.attemptCount
|
|
897
|
-
);
|
|
898
|
-
}, f = (u, l) => {
|
|
899
|
-
l === "CAPTCHA.NO_SESSION_FOUND" && setTimeout(() => {
|
|
900
|
-
g();
|
|
901
|
-
}, 0), m(
|
|
902
|
-
ne(
|
|
903
|
-
e.theme,
|
|
904
|
-
e.mode,
|
|
905
|
-
u || "Cannot load CAPTCHA",
|
|
906
|
-
o.isInitialized,
|
|
907
|
-
o.t,
|
|
908
|
-
!1
|
|
909
|
-
)
|
|
910
|
-
);
|
|
911
|
-
}, g = () => {
|
|
912
|
-
setTimeout(() => {
|
|
913
|
-
b(0), d.onReset(), r();
|
|
914
|
-
}, 1e4);
|
|
915
|
-
}, T = async () => {
|
|
916
|
-
await Ue(
|
|
917
|
-
async () => {
|
|
918
|
-
var O, k, x, A, E;
|
|
919
|
-
n.current.attemptCount += 1;
|
|
920
|
-
const u = Re.parse(e), l = await a(u, s, r);
|
|
921
|
-
if ((O = l.error) != null && O.message) {
|
|
922
|
-
n.current = {
|
|
923
|
-
...n.current,
|
|
924
|
-
loading: !1,
|
|
925
|
-
errorMessage: (k = l.error) == null ? void 0 : k.message
|
|
926
|
-
}, d.onError(new Error((x = l.error) == null ? void 0 : x.message)), f((A = l.error) == null ? void 0 : A.message, (E = l.error) == null ? void 0 : E.key);
|
|
927
|
-
return;
|
|
928
|
-
}
|
|
929
|
-
const P = {
|
|
930
|
-
provider: l.provider,
|
|
931
|
-
sessionId: l.sessionId,
|
|
932
|
-
userAccount: l.userAccount,
|
|
933
|
-
restart: r
|
|
934
|
-
// Pass restart function
|
|
935
|
-
};
|
|
936
|
-
l.captchaType === "image" ? m(
|
|
937
|
-
/* @__PURE__ */ S(
|
|
938
|
-
ye,
|
|
939
|
-
{
|
|
940
|
-
config: e,
|
|
941
|
-
callbacks: t,
|
|
942
|
-
frictionlessState: P,
|
|
943
|
-
i18n: o
|
|
944
|
-
}
|
|
945
|
-
)
|
|
946
|
-
) : (m(
|
|
947
|
-
/* @__PURE__ */ S(
|
|
948
|
-
ge,
|
|
949
|
-
{
|
|
950
|
-
config: e,
|
|
951
|
-
callbacks: t,
|
|
952
|
-
frictionlessState: P,
|
|
953
|
-
i18n: o
|
|
954
|
-
}
|
|
955
|
-
)
|
|
956
|
-
), n.current = {
|
|
957
|
-
...n.current,
|
|
958
|
-
loading: !1
|
|
959
|
-
});
|
|
960
|
-
},
|
|
961
|
-
T,
|
|
962
|
-
b,
|
|
963
|
-
n.current.attemptCount,
|
|
964
|
-
5
|
|
965
|
-
).finally(() => {
|
|
966
|
-
n.current.attemptCount >= 5 && (f(), g());
|
|
967
|
-
});
|
|
968
|
-
};
|
|
969
|
-
return h.useEffect(() => {
|
|
970
|
-
(async () => {
|
|
971
|
-
await T();
|
|
972
|
-
})();
|
|
973
|
-
}, [e, t, a, e.language]), y;
|
|
974
|
-
}, Pt = (e) => {
|
|
975
|
-
const { config: t, callbacks: r, i18n: o, container: a } = e, [s, n] = h.useState(0), d = () => {
|
|
976
|
-
n((y) => y + 1);
|
|
977
|
-
};
|
|
978
|
-
return C.jsx(St, { config: t, callbacks: _(r), restart: d, i18n: o, container: a }, s);
|
|
979
|
-
}, wt = (e) => {
|
|
980
|
-
const { config: t, callbacks: r, i18n: o } = e;
|
|
981
|
-
return C.jsx(ye, { config: t, callbacks: _(r), i18n: o });
|
|
982
|
-
}, xt = (e) => {
|
|
983
|
-
const { config: t, callbacks: r, i18n: o } = e;
|
|
984
|
-
return C.jsx(ge, { config: t, callbacks: _(r), i18n: o });
|
|
985
|
-
}, Ct = {
|
|
986
|
-
[M.image]: wt,
|
|
987
|
-
[M.pow]: xt,
|
|
988
|
-
[M.frictionless]: Pt
|
|
989
|
-
};
|
|
990
|
-
class Tt {
|
|
991
|
-
getCaptchaComponent(t, r) {
|
|
992
|
-
if (t === M.invisible)
|
|
993
|
-
throw new Error("Not Implemented");
|
|
994
|
-
const o = Ct[t];
|
|
995
|
-
return "rendering ".concat(t), C.jsx(o, { config: r.config, callbacks: r.callbacks, i18n: r.i18n, container: r.container });
|
|
996
|
-
}
|
|
997
|
-
}
|
|
998
|
-
const Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
999
|
-
__proto__: null,
|
|
1000
|
-
CaptchaComponentProvider: Tt
|
|
1001
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1002
|
-
export {
|
|
1003
|
-
dt as C,
|
|
1004
|
-
ze as E,
|
|
1005
|
-
ht as P,
|
|
1006
|
-
Je as a,
|
|
1007
|
-
Mt as b,
|
|
1008
|
-
Ze as c,
|
|
1009
|
-
Ft as d,
|
|
1010
|
-
_ as g,
|
|
1011
|
-
S as j,
|
|
1012
|
-
Ue as p
|
|
1013
|
-
};
|