@prosopo/procaptcha-bundle 3.1.6 → 3.2.2
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/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts.map +1 -1
- package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/index.js +10 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.js.map +1 -0
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.d.ts +2 -0
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.d.ts.map +1 -0
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.js +32 -0
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.js.map +1 -0
- package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts.map +1 -1
- package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js +0 -1
- package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js.map +1 -1
- package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts.map +1 -1
- package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js.map +1 -1
- package/CHANGELOG.md +93 -0
- package/coverage/base.css +224 -0
- package/coverage/block-navigation.js +87 -0
- package/coverage/clover.xml +599 -0
- package/coverage/coverage-final.json +17 -0
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +161 -0
- package/coverage/prettify.css +1 -0
- package/coverage/prettify.js +2 -0
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +210 -0
- package/coverage/src/components.ts.html +139 -0
- package/coverage/src/index.html +131 -0
- package/coverage/src/index.ts.html +844 -0
- package/coverage/src/util/captcha/captchaComponentProvider.tsx.html +214 -0
- package/coverage/src/util/captcha/captchaComponentsList.ts.html +178 -0
- package/coverage/src/util/captcha/captchaProps.ts.html +166 -0
- package/coverage/src/util/captcha/captchaRenderer.tsx.html +481 -0
- package/coverage/src/util/captcha/captchaType.ts.html +181 -0
- package/coverage/src/util/captcha/components/frictionlessCaptcha.tsx.html +205 -0
- package/coverage/src/util/captcha/components/imageCaptcha.tsx.html +178 -0
- package/coverage/src/util/captcha/components/index.html +146 -0
- package/coverage/src/util/captcha/components/powCaptcha.tsx.html +178 -0
- package/coverage/src/util/captcha/index.html +176 -0
- package/coverage/src/util/config.ts.html +172 -0
- package/coverage/src/util/configCreator.ts.html +241 -0
- package/coverage/src/util/index.html +191 -0
- package/coverage/src/util/language.ts.html +244 -0
- package/coverage/src/util/timeout.ts.html +214 -0
- package/coverage/src/util/widgetFactory.ts.html +532 -0
- package/coverage/src/util/widgetThemeResolver.ts.html +205 -0
- package/dist/bundle/{ProcaptchaWidget-Cw3s7cGX.js → ProcaptchaWidget-CuMH13Bh.js} +85 -87
- package/dist/bundle/{ProcaptchaWidget-CJ-4hVS1.js → ProcaptchaWidget-DsflBBn_.js} +5 -5
- package/dist/bundle/{browser-ponyfill-CvzSbL_o.js → browser-ponyfill-DXriyH6D.js} +4 -4
- package/dist/bundle/{captchaComponentProvider-Cn75EmSH.js → captchaComponentProvider-D02Su4nd.js} +205 -194
- package/dist/bundle/{captchaRenderer-s4QuLEen.js → captchaRenderer-BV-WgbEA.js} +17 -18
- package/dist/bundle/{commonChunk-BjvuHlB1.js → commonChunk-PB26mndo.js} +37 -34
- package/dist/bundle/{emotion-element-c39617d8.browser.esm-BNNnmykm.js → emotion-element-c39617d8.browser.esm-DG1XhEZ1.js} +3 -3
- package/dist/bundle/{index-DIdd2cUz.js → index-B9KeZfID.js} +3 -3
- package/dist/bundle/{index-IgqrmVIs.js → index-Calnfnac.js} +67 -59
- package/dist/bundle/index-DU371vQ0.js +1634 -0
- package/dist/bundle/index.d.ts.map +1 -1
- package/dist/bundle/procaptcha.bundle.js +2 -2
- package/dist/bundle/tests/procaptchaReady.unit.test.d.ts.map +1 -0
- package/dist/bundle/util/configCreator.d.ts.map +1 -1
- package/dist/bundle/util/widgetFactory.d.ts.map +1 -1
- package/dist/bundle/{utilChunk-DPr6oTOj.js → utilChunk-WRTGKXbU.js} +109 -102
- package/dist/bundle/{utilCryptoChunk-D6ZLkbFV.js → utilCryptoChunk-B4ZdOwus.js} +1 -1
- package/dist/bundle/{web2Chunk-CNoojUDK.js → web2Chunk-BGN6Hv-C.js} +273 -268
- package/dist/bundle/{web3Chunk-BlYvY4Ea.js → web3Chunk-BIX2T9Eo.js} +6 -6
- package/dist/bundle/{zodChunk-aEfPZzrp.js → zodChunk-CaINhWMQ.js} +8 -8
- package/dist/cjs/index.cjs +10 -1
- package/dist/cjs/util/configCreator.cjs +0 -1
- package/dist/components.d.ts.map +1 -0
- package/dist/components.js +5 -0
- package/dist/components.js.map +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -0
- package/dist/tests/procaptchaReady.unit.test.d.ts +2 -0
- package/dist/tests/procaptchaReady.unit.test.d.ts.map +1 -0
- package/dist/tests/procaptchaReady.unit.test.js +32 -0
- package/dist/tests/procaptchaReady.unit.test.js.map +1 -0
- package/dist/tests/util/captchaType.test.d.ts.map +1 -0
- package/dist/tests/util/captchaType.test.js +36 -0
- package/dist/tests/util/captchaType.test.js.map +1 -0
- package/dist/tests/util/config.test.d.ts.map +1 -0
- package/dist/tests/util/config.test.js +69 -0
- package/dist/tests/util/config.test.js.map +1 -0
- package/dist/tests/util/renderLogic.test.d.ts.map +1 -0
- package/dist/tests/util/renderLogic.test.js +136 -0
- package/dist/tests/util/renderLogic.test.js.map +1 -0
- package/dist/util/captcha/captchaComponentProvider.d.ts.map +1 -0
- package/dist/util/captcha/captchaComponentProvider.js.map +1 -0
- package/dist/util/captcha/captchaComponentsList.d.ts.map +1 -0
- package/dist/util/captcha/captchaComponentsList.js.map +1 -0
- package/dist/util/captcha/captchaProps.d.ts.map +1 -0
- package/dist/util/captcha/captchaProps.js +2 -0
- package/dist/util/captcha/captchaProps.js.map +1 -0
- package/dist/util/captcha/captchaRenderer.d.ts.map +1 -0
- package/dist/util/captcha/captchaRenderer.js.map +1 -0
- package/dist/util/captcha/captchaType.d.ts.map +1 -0
- package/dist/util/captcha/captchaType.js.map +1 -0
- package/dist/util/captcha/components/frictionlessCaptcha.d.ts.map +1 -0
- package/dist/util/captcha/components/frictionlessCaptcha.js.map +1 -0
- package/dist/util/captcha/components/imageCaptcha.d.ts.map +1 -0
- package/dist/util/captcha/components/imageCaptcha.js.map +1 -0
- package/dist/util/captcha/components/powCaptcha.d.ts.map +1 -0
- package/dist/util/captcha/components/powCaptcha.js.map +1 -0
- package/dist/util/config.d.ts.map +1 -0
- package/dist/util/config.js.map +1 -0
- package/dist/util/configCreator.d.ts.map +1 -0
- package/dist/util/configCreator.js +0 -1
- package/dist/util/configCreator.js.map +1 -0
- package/dist/util/language.d.ts.map +1 -0
- package/dist/util/language.js.map +1 -0
- package/dist/util/timeout.d.ts.map +1 -0
- package/dist/util/timeout.js.map +1 -0
- package/dist/util/widgetFactory.d.ts.map +1 -0
- package/dist/util/widgetFactory.js.map +1 -0
- package/dist/util/widgetThemeResolver.d.ts.map +1 -0
- package/dist/util/widgetThemeResolver.js.map +1 -0
- package/package.json +16 -16
- package/stats.html +2239 -2132
- package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/index.js.map +0 -1
- package/dist/bundle/index-BuQg3Zno.js +0 -1884
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/components.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/components.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js.map +0 -0
- /package/dist/{bundle/components.d.ts → components.d.ts} +0 -0
- /package/dist/{bundle/index.d.ts → index.d.ts} +0 -0
- /package/dist/{bundle/tests → tests}/util/captchaType.test.d.ts +0 -0
- /package/dist/{bundle/tests → tests}/util/config.test.d.ts +0 -0
- /package/dist/{bundle/tests → tests}/util/renderLogic.test.d.ts +0 -0
- /package/dist/{bundle/util → util}/captcha/captchaComponentProvider.d.ts +0 -0
- /package/dist/{bundle/util → util}/captcha/captchaComponentsList.d.ts +0 -0
- /package/dist/{bundle/util → util}/captcha/captchaProps.d.ts +0 -0
- /package/dist/{bundle/util → util}/captcha/captchaRenderer.d.ts +0 -0
- /package/dist/{bundle/util → util}/captcha/captchaType.d.ts +0 -0
- /package/dist/{bundle/util → util}/captcha/components/frictionlessCaptcha.d.ts +0 -0
- /package/dist/{bundle/util → util}/captcha/components/imageCaptcha.d.ts +0 -0
- /package/dist/{bundle/util → util}/captcha/components/powCaptcha.d.ts +0 -0
- /package/dist/{bundle/util → util}/config.d.ts +0 -0
- /package/dist/{bundle/util → util}/configCreator.d.ts +0 -0
- /package/dist/{bundle/util → util}/language.d.ts +0 -0
- /package/dist/{bundle/util → util}/timeout.d.ts +0 -0
- /package/dist/{bundle/util → util}/widgetFactory.d.ts +0 -0
- /package/dist/{bundle/util → util}/widgetThemeResolver.d.ts +0 -0
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { c as C, j as v, C as f } from "./emotion-element-c39617d8.browser.esm-
|
|
2
|
-
import { r as
|
|
3
|
-
import { P as b, b as
|
|
4
|
-
var l,
|
|
5
|
-
l =
|
|
6
|
-
function
|
|
1
|
+
import { c as C, j as v, C as f } from "./emotion-element-c39617d8.browser.esm-DG1XhEZ1.js";
|
|
2
|
+
import { r as R } from "./index-B9KeZfID.js";
|
|
3
|
+
import { P as b, b as A, L as i } from "./web2Chunk-BGN6Hv-C.js";
|
|
4
|
+
var l, E = R;
|
|
5
|
+
l = E.createRoot;
|
|
6
|
+
function x(o, e = "light", t, a = !0, r = !1, c) {
|
|
7
7
|
return o || (o = ""), b.parse({
|
|
8
|
-
defaultEnvironment:
|
|
9
|
-
userAccountAddress:
|
|
8
|
+
defaultEnvironment: A.parse("production"),
|
|
9
|
+
userAccountAddress: c || "",
|
|
10
10
|
account: {
|
|
11
11
|
address: o
|
|
12
12
|
},
|
|
13
13
|
serverUrl: "",
|
|
14
|
-
mongoAtlasUri: "",
|
|
15
|
-
devOnlyWatchEvents: !1,
|
|
14
|
+
mongoAtlasUri: "mongodb+srv://<MONGO_URI_HERE>/frictionless_events",
|
|
16
15
|
web2: a,
|
|
17
|
-
mode:
|
|
16
|
+
mode: r ? "invisible" : "visible",
|
|
18
17
|
theme: e,
|
|
19
18
|
language: t
|
|
20
19
|
});
|
|
21
20
|
}
|
|
22
|
-
const
|
|
21
|
+
const y = (o, e, t) => {
|
|
23
22
|
const a = (o == null ? void 0 : o.language) || e.getAttribute("data-language");
|
|
24
23
|
a && (t.language = L(a));
|
|
25
24
|
}, L = (o) => {
|
|
@@ -32,23 +31,23 @@ const x = (o, e, t) => {
|
|
|
32
31
|
const a = (o == null ? void 0 : o["challenge-valid-length"]) || e.getAttribute("data-challenge-valid-length");
|
|
33
32
|
a && (t.captchas.image.solutionTimeout = Number.parseInt(a), t.captchas.pow.solutionTimeout = Number.parseInt(a));
|
|
34
33
|
};
|
|
35
|
-
class
|
|
34
|
+
class V {
|
|
36
35
|
constructor(e) {
|
|
37
36
|
this.captchaComponentProvider = e;
|
|
38
37
|
}
|
|
39
|
-
renderCaptcha(e, t, a,
|
|
40
|
-
const g = (a == null ? void 0 : a.captchaType) || e.defaultCaptchaType, n =
|
|
38
|
+
renderCaptcha(e, t, a, r, c, h, u, m) {
|
|
39
|
+
const g = (a == null ? void 0 : a.captchaType) || e.defaultCaptchaType, n = x(a.siteKey, a.theme, a.language, c, u, a.userAccountAddress);
|
|
41
40
|
this.readAndValidateSettings(t, n, a);
|
|
42
41
|
const s = this.createReactRoot(t, e.identifierPrefix), p = this.makeEmotionCache(e.emotionCacheKey, t), d = this.captchaComponentProvider.getCaptchaComponent(g, {
|
|
43
42
|
config: n,
|
|
44
43
|
i18n: h,
|
|
45
|
-
callbacks:
|
|
44
|
+
callbacks: r,
|
|
46
45
|
container: m
|
|
47
46
|
});
|
|
48
47
|
return this.renderCaptchaComponent(s, p, d), s;
|
|
49
48
|
}
|
|
50
49
|
readAndValidateSettings(e, t, a) {
|
|
51
|
-
P(a, e, t),
|
|
50
|
+
P(a, e, t), y(a, e, t);
|
|
52
51
|
}
|
|
53
52
|
makeEmotionCache(e, t) {
|
|
54
53
|
return C({
|
|
@@ -67,5 +66,5 @@ class j {
|
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
68
|
export {
|
|
70
|
-
|
|
69
|
+
V as CaptchaRenderer
|
|
71
70
|
};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { z as
|
|
2
|
-
const h = "info",
|
|
3
|
-
|
|
1
|
+
import { z as v } from "./zodChunk-CaINhWMQ.js";
|
|
2
|
+
const h = "info", m = "debug", b = "trace", k = "warn", y = "error", w = "fatal";
|
|
3
|
+
v.enum([
|
|
4
4
|
h,
|
|
5
|
-
d,
|
|
6
5
|
m,
|
|
7
6
|
b,
|
|
8
7
|
k,
|
|
8
|
+
y,
|
|
9
9
|
w
|
|
10
10
|
]);
|
|
11
11
|
const P = {
|
|
12
|
-
[
|
|
13
|
-
[
|
|
12
|
+
[b]: 5,
|
|
13
|
+
[m]: 4,
|
|
14
14
|
[h]: 3,
|
|
15
|
-
[
|
|
16
|
-
[
|
|
15
|
+
[k]: 2,
|
|
16
|
+
[y]: 1,
|
|
17
17
|
[w]: 0
|
|
18
18
|
};
|
|
19
19
|
function S(s, t) {
|
|
20
20
|
const e = new E(t);
|
|
21
21
|
return e.setLogLevel(s), e;
|
|
22
22
|
}
|
|
23
|
-
const D = typeof window < "u" && typeof window.document < "u",
|
|
24
|
-
|
|
23
|
+
const D = typeof window < "u" && typeof window.document < "u", u = "json", M = "plain";
|
|
24
|
+
v.enum([u, M]);
|
|
25
25
|
class E {
|
|
26
26
|
constructor(t, e = P) {
|
|
27
|
-
this.scope = t, this.levelMap = e, this.pretty = 0, this.printStack = !1, this.format =
|
|
27
|
+
this.scope = t, this.levelMap = e, this.pretty = 0, this.printStack = !1, this.format = u, this.level = h, this.levelNum = this.levelMap[this.level];
|
|
28
28
|
}
|
|
29
29
|
setFormat(t) {
|
|
30
|
-
if (this.format = t, this.format !==
|
|
30
|
+
if (this.format = t, this.format !== u)
|
|
31
31
|
throw new Error("Only JSON format implemented for now");
|
|
32
32
|
}
|
|
33
33
|
getFormat() {
|
|
@@ -71,19 +71,19 @@ class E {
|
|
|
71
71
|
if (this.levelMap[r] > this.levelNum)
|
|
72
72
|
return;
|
|
73
73
|
const a = (/* @__PURE__ */ new Date()).toISOString();
|
|
74
|
-
let { data: c, msg:
|
|
75
|
-
if (
|
|
76
|
-
if (
|
|
77
|
-
const f = this.unpackError(
|
|
78
|
-
o = f.msg,
|
|
74
|
+
let { data: c, msg: l, err: i } = e(), o, g;
|
|
75
|
+
if (i)
|
|
76
|
+
if (i instanceof Error || typeof i == "object") {
|
|
77
|
+
const f = this.unpackError(i);
|
|
78
|
+
o = f.msg, g = f.data;
|
|
79
79
|
} else
|
|
80
|
-
o = String(
|
|
80
|
+
o = String(i);
|
|
81
81
|
this.defaultData && (c = { ...this.defaultData, ...c });
|
|
82
82
|
const n = { scope: this.scope, ts: a, level: this.level };
|
|
83
|
-
if (c && (n.data = c),
|
|
84
|
-
|
|
83
|
+
if (c && (n.data = c), l && (n.msg = l), o && (n.err = o), g && (n.errData = g), D)
|
|
84
|
+
l || o ? t(l || o, n) : t(n);
|
|
85
85
|
else {
|
|
86
|
-
const f =
|
|
86
|
+
const f = d(n), x = JSON.stringify(f, null, this.pretty);
|
|
87
87
|
t(x);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -91,16 +91,16 @@ class E {
|
|
|
91
91
|
this.print(console.info.bind(console), t, h);
|
|
92
92
|
}
|
|
93
93
|
debug(t) {
|
|
94
|
-
this.print(console.debug.bind(console), t,
|
|
94
|
+
this.print(console.debug.bind(console), t, m);
|
|
95
95
|
}
|
|
96
96
|
trace(t) {
|
|
97
|
-
this.print(console.trace.bind(console), t,
|
|
97
|
+
this.print(console.trace.bind(console), t, b);
|
|
98
98
|
}
|
|
99
99
|
warn(t) {
|
|
100
|
-
this.print(console.warn.bind(console), t,
|
|
100
|
+
this.print(console.warn.bind(console), t, k);
|
|
101
101
|
}
|
|
102
102
|
error(t) {
|
|
103
|
-
this.print(console.error.bind(console), t,
|
|
103
|
+
this.print(console.error.bind(console), t, y);
|
|
104
104
|
}
|
|
105
105
|
fatal(t) {
|
|
106
106
|
this.print(console.error.bind(console), t, w);
|
|
@@ -130,15 +130,18 @@ class E {
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
const
|
|
133
|
+
const d = (s) => {
|
|
134
134
|
if (typeof s == "bigint")
|
|
135
135
|
return s.toString();
|
|
136
136
|
if (N(s))
|
|
137
137
|
for (const t of Object.keys(s))
|
|
138
|
-
s[t] =
|
|
138
|
+
s[t] = d(s[t]);
|
|
139
|
+
if (Array.isArray(s))
|
|
140
|
+
for (let t = 0; t < s.length; t++)
|
|
141
|
+
s[t] = d(s[t]);
|
|
139
142
|
return s;
|
|
140
143
|
}, N = (s) => Object === (s == null ? void 0 : s.constructor), O = { t: (s) => s };
|
|
141
|
-
class
|
|
144
|
+
class L extends Error {
|
|
142
145
|
constructor(t, e) {
|
|
143
146
|
const r = (e == null ? void 0 : e.logger) || S("info", import.meta.url), a = (e == null ? void 0 : e.logLevel) || "error", c = (e == null ? void 0 : e.i18n) || O;
|
|
144
147
|
t instanceof Error ? (super(c.t(t.message)), this.translationKey = e == null ? void 0 : e.translationKey, this.context = {
|
|
@@ -155,26 +158,26 @@ class y extends Error {
|
|
|
155
158
|
t.error(() => ({ data: { ...c } }));
|
|
156
159
|
}
|
|
157
160
|
}
|
|
158
|
-
class
|
|
161
|
+
class A extends L {
|
|
159
162
|
constructor(t, e) {
|
|
160
163
|
const r = (e == null ? void 0 : e.name) || "ProsopoError", a = { ...e, name: r };
|
|
161
164
|
super(t, a);
|
|
162
165
|
}
|
|
163
166
|
}
|
|
164
|
-
class
|
|
167
|
+
class F extends L {
|
|
165
168
|
constructor(t, e) {
|
|
166
169
|
const r = (e == null ? void 0 : e.name) || "ProsopoEnvError", a = { ...e, name: r };
|
|
167
170
|
super(t, a);
|
|
168
171
|
}
|
|
169
172
|
}
|
|
170
|
-
class
|
|
173
|
+
class K extends L {
|
|
171
174
|
constructor(t, e) {
|
|
172
175
|
const r = (e == null ? void 0 : e.name) || "ProsopoDatasetError", a = { ...e, name: r };
|
|
173
176
|
super(t, a);
|
|
174
177
|
}
|
|
175
178
|
}
|
|
176
179
|
export {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
+
A as P,
|
|
181
|
+
F as a,
|
|
182
|
+
K as b
|
|
180
183
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as Se } from "./bnChunk-DRlDxTFg.js";
|
|
2
|
-
import { r as k, f as sr } from "./web2Chunk-
|
|
2
|
+
import { r as k, f as sr } from "./web2Chunk-BGN6Hv-C.js";
|
|
3
3
|
var hr = { exports: {} }, H = {};
|
|
4
4
|
var $r = k, _r = Symbol.for("react.element"), Ar = Symbol.for("react.fragment"), Rr = Object.prototype.hasOwnProperty, Or = $r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, Pr = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
5
5
|
function lr(r, e, t) {
|
|
@@ -25,7 +25,7 @@ function Ir(r) {
|
|
|
25
25
|
var e = document.createElement("style");
|
|
26
26
|
return e.setAttribute("data-emotion", r.key), r.nonce !== void 0 && e.setAttribute("nonce", r.nonce), e.appendChild(document.createTextNode("")), e.setAttribute("data-s", ""), e;
|
|
27
27
|
}
|
|
28
|
-
var Nr = /* @__PURE__ */ function() {
|
|
28
|
+
var Nr = /* @__PURE__ */ (function() {
|
|
29
29
|
function r(t) {
|
|
30
30
|
var n = this;
|
|
31
31
|
this._insertTag = function(a) {
|
|
@@ -54,7 +54,7 @@ var Nr = /* @__PURE__ */ function() {
|
|
|
54
54
|
return (a = n.parentNode) == null ? void 0 : a.removeChild(n);
|
|
55
55
|
}), this.tags = [], this.ctr = 0;
|
|
56
56
|
}, r;
|
|
57
|
-
}(), g = "-ms-", q = "-moz-", o = "-webkit-", pr = "comm", tr = "rule", nr = "decl", Lr = "@import", mr = "@keyframes", Mr = "@layer", Fr = Math.abs, K = String.fromCharCode, Wr = Object.assign;
|
|
57
|
+
})(), g = "-ms-", q = "-moz-", o = "-webkit-", pr = "comm", tr = "rule", nr = "decl", Lr = "@import", mr = "@keyframes", Mr = "@layer", Fr = Math.abs, K = String.fromCharCode, Wr = Object.assign;
|
|
58
58
|
function jr(r, e) {
|
|
59
59
|
return v(r, 0) ^ 45 ? (((e << 2 ^ v(r, 0)) << 2 ^ v(r, 1)) << 2 ^ v(r, 2)) << 2 ^ v(r, 3) : 0;
|
|
60
60
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as Dc } from "./bnChunk-DRlDxTFg.js";
|
|
2
|
-
import { r as _a } from "./web2Chunk-
|
|
2
|
+
import { r as _a } from "./web2Chunk-BGN6Hv-C.js";
|
|
3
3
|
var Co = { exports: {} }, ve = {}, xo = { exports: {} }, _o = {};
|
|
4
4
|
(function(e) {
|
|
5
5
|
function t(C, z) {
|
|
@@ -626,13 +626,13 @@ function Oo(e) {
|
|
|
626
626
|
function Ql(e, t) {
|
|
627
627
|
return e == null || e === "http://www.w3.org/1999/xhtml" ? Oo(t) : e === "http://www.w3.org/2000/svg" && t === "foreignObject" ? "http://www.w3.org/1999/xhtml" : e;
|
|
628
628
|
}
|
|
629
|
-
var Jn, Fo = function(e) {
|
|
629
|
+
var Jn, Fo = (function(e) {
|
|
630
630
|
return typeof MSApp < "u" && MSApp.execUnsafeLocalFunction ? function(t, n, r, l) {
|
|
631
631
|
MSApp.execUnsafeLocalFunction(function() {
|
|
632
632
|
return e(t, n, r, l);
|
|
633
633
|
});
|
|
634
634
|
} : e;
|
|
635
|
-
}(function(e, t) {
|
|
635
|
+
})(function(e, t) {
|
|
636
636
|
if (e.namespaceURI !== "http://www.w3.org/2000/svg" || "innerHTML" in e) e.innerHTML = t;
|
|
637
637
|
else {
|
|
638
638
|
for (Jn = Jn || document.createElement("div"), Jn.innerHTML = "<svg>" + t.valueOf().toString() + "</svg>", t = Jn.firstChild; e.firstChild; ) e.removeChild(e.firstChild);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { A, a as v, C as W, l as $ } from "./web2Chunk-
|
|
1
|
+
import { A as S, a as v, C as W, l as $ } from "./web2Chunk-BGN6Hv-C.js";
|
|
2
2
|
function N(e) {
|
|
3
3
|
const t = e.getRootNode();
|
|
4
4
|
return (t instanceof ShadowRoot ? t.host : e).closest("form");
|
|
5
5
|
}
|
|
6
|
-
const
|
|
6
|
+
const r = () => {
|
|
7
7
|
Array.from(
|
|
8
|
-
document.getElementsByName(
|
|
8
|
+
document.getElementsByName(S.procaptchaResponse)
|
|
9
9
|
).map((t) => t.remove());
|
|
10
|
-
},
|
|
10
|
+
}, f = (e) => {
|
|
11
11
|
const t = window[e.replace("window.", "")];
|
|
12
12
|
if (typeof t != "function")
|
|
13
13
|
throw new Error(
|
|
@@ -15,18 +15,18 @@ const l = () => {
|
|
|
15
15
|
);
|
|
16
16
|
return t;
|
|
17
17
|
}, M = (e) => ({
|
|
18
|
-
onHuman: (t) =>
|
|
18
|
+
onHuman: (t) => D(t, e),
|
|
19
19
|
onChallengeExpired: () => {
|
|
20
|
-
|
|
20
|
+
r();
|
|
21
21
|
},
|
|
22
22
|
onExtensionNotFound: () => {
|
|
23
23
|
console.error("Extension not found");
|
|
24
24
|
},
|
|
25
25
|
onExpired: () => {
|
|
26
|
-
|
|
26
|
+
r();
|
|
27
27
|
},
|
|
28
28
|
onError: (t) => {
|
|
29
|
-
|
|
29
|
+
r(), console.error(t);
|
|
30
30
|
},
|
|
31
31
|
onClose: () => {
|
|
32
32
|
},
|
|
@@ -36,30 +36,30 @@ const l = () => {
|
|
|
36
36
|
alert("Captcha challenge failed. Please try again");
|
|
37
37
|
},
|
|
38
38
|
onReset: () => {
|
|
39
|
-
|
|
39
|
+
r();
|
|
40
40
|
},
|
|
41
41
|
onReload: () => {
|
|
42
42
|
}
|
|
43
43
|
}), d = (e, t, o) => {
|
|
44
44
|
const a = t.getAttribute(`data-${e}`);
|
|
45
45
|
if (a) {
|
|
46
|
-
const n =
|
|
46
|
+
const n = f(a);
|
|
47
47
|
if (n)
|
|
48
48
|
return n;
|
|
49
49
|
}
|
|
50
50
|
if (typeof o == "function")
|
|
51
51
|
return o;
|
|
52
52
|
if (typeof o == "string")
|
|
53
|
-
return
|
|
53
|
+
return f(o);
|
|
54
54
|
};
|
|
55
|
-
function
|
|
55
|
+
function P(e, t, o) {
|
|
56
56
|
const a = d(
|
|
57
57
|
"callback",
|
|
58
58
|
o,
|
|
59
59
|
e == null ? void 0 : e.callback
|
|
60
60
|
);
|
|
61
|
-
a && (t.onHuman = (
|
|
62
|
-
|
|
61
|
+
a && (t.onHuman = (l) => {
|
|
62
|
+
D(l, o), a(l);
|
|
63
63
|
});
|
|
64
64
|
const n = d(
|
|
65
65
|
"chalexpired-callback",
|
|
@@ -67,7 +67,7 @@ function H(e, t, o) {
|
|
|
67
67
|
e == null ? void 0 : e["chalexpired-callback"]
|
|
68
68
|
);
|
|
69
69
|
n && (t.onChallengeExpired = () => {
|
|
70
|
-
|
|
70
|
+
r(), n();
|
|
71
71
|
});
|
|
72
72
|
const c = d(
|
|
73
73
|
"expired-callback",
|
|
@@ -75,15 +75,15 @@ function H(e, t, o) {
|
|
|
75
75
|
e == null ? void 0 : e["expired-callback"]
|
|
76
76
|
);
|
|
77
77
|
c && (t.onExpired = () => {
|
|
78
|
-
|
|
78
|
+
r(), c();
|
|
79
79
|
});
|
|
80
80
|
const i = d(
|
|
81
81
|
"error-callback",
|
|
82
82
|
o,
|
|
83
83
|
e == null ? void 0 : e["error-callback"]
|
|
84
84
|
);
|
|
85
|
-
i && (t.onError = (
|
|
86
|
-
|
|
85
|
+
i && (t.onError = (l) => {
|
|
86
|
+
r(), i(l);
|
|
87
87
|
});
|
|
88
88
|
const s = d(
|
|
89
89
|
"close-callback",
|
|
@@ -115,25 +115,25 @@ function H(e, t, o) {
|
|
|
115
115
|
e == null ? void 0 : e["reset-callback"]
|
|
116
116
|
);
|
|
117
117
|
w && (t.onReset = () => {
|
|
118
|
-
|
|
118
|
+
r(), w();
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
|
-
const
|
|
122
|
-
if (
|
|
121
|
+
const D = (e, t) => {
|
|
122
|
+
if (r(), t) {
|
|
123
123
|
const o = N(t);
|
|
124
124
|
if (!o) {
|
|
125
125
|
console.error("Parent form not found for the element:", t);
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
128
|
const a = document.createElement("input");
|
|
129
|
-
a.type = "hidden", a.name =
|
|
129
|
+
a.type = "hidden", a.name = S.procaptchaResponse, a.value = e, o.appendChild(a);
|
|
130
130
|
}
|
|
131
|
-
},
|
|
131
|
+
}, H = "https://prosopo.io", T = "Visit prosopo.io to learn more about the service and its accessibility options.", U = 74, x = 80, F = "80px", _ = "302px", G = "8px", j = "2px", z = "1px solid", E = "checkbox__loading-spinner";
|
|
132
132
|
function B(e) {
|
|
133
133
|
const t = document.createElement("div");
|
|
134
|
-
return t.className = "checkbox", t.innerHTML = X(e) +
|
|
134
|
+
return t.className = "checkbox", t.innerHTML = X(e) + K, t;
|
|
135
135
|
}
|
|
136
|
-
const
|
|
136
|
+
const q = (e) => (e.shadowRoot || e).querySelector(".checkbox__content"), K = `
|
|
137
137
|
<div class="checkbox__outer">
|
|
138
138
|
<div class="checkbox__wrapper">
|
|
139
139
|
<div class="checkbox__inner">
|
|
@@ -236,7 +236,7 @@ const Y = `
|
|
|
236
236
|
`;
|
|
237
237
|
function Z(e) {
|
|
238
238
|
return `
|
|
239
|
-
<a href="${
|
|
239
|
+
<a href="${H}?utm_campaign=widget" tabindex="0" target="_blank" role="button"
|
|
240
240
|
aria-label="${T}"
|
|
241
241
|
style="text-decoration: none;">
|
|
242
242
|
<div class="prosopo-logo">
|
|
@@ -362,13 +362,13 @@ const ne = (e) => `
|
|
|
362
362
|
};
|
|
363
363
|
function ie(e, t, o) {
|
|
364
364
|
const a = J(t), n = ae(o);
|
|
365
|
-
|
|
366
|
-
const i =
|
|
365
|
+
le(n).appendChild(a), e.innerHTML = "", e.appendChild(n);
|
|
366
|
+
const i = q(n);
|
|
367
367
|
if (!(i instanceof HTMLElement))
|
|
368
368
|
throw new Error("Fail to initialize widget: interactive area is not found");
|
|
369
369
|
return { widgetInteractiveArea: i, webComponent: n };
|
|
370
370
|
}
|
|
371
|
-
const
|
|
371
|
+
const le = (e) => e.shadowRoot || e, g = {
|
|
372
372
|
0: "#fff",
|
|
373
373
|
100: "#f5f5f5",
|
|
374
374
|
200: "#eeeeee",
|
|
@@ -379,7 +379,7 @@ const re = (e) => e.shadowRoot || e, g = {
|
|
|
379
379
|
700: "#616161",
|
|
380
380
|
800: "#424242",
|
|
381
381
|
900: "#212121"
|
|
382
|
-
}, m = 10,
|
|
382
|
+
}, m = 10, re = {
|
|
383
383
|
palette: {
|
|
384
384
|
mode: "light",
|
|
385
385
|
primary: {
|
|
@@ -458,19 +458,19 @@ class pe {
|
|
|
458
458
|
async createWidgets(t, o, a = !0, n = !1) {
|
|
459
459
|
return Promise.all(t.map((c) => {
|
|
460
460
|
const i = M(c);
|
|
461
|
-
return
|
|
461
|
+
return P(o, i, c), this.createWidget(c, o, i, a, n);
|
|
462
462
|
}));
|
|
463
463
|
}
|
|
464
464
|
async createWidget(t, o, a, n = !0, c = !1) {
|
|
465
465
|
o.theme = this.widgetThemeResolver.resolveWidgetTheme(t, o);
|
|
466
|
-
const i = o.theme === "light" ?
|
|
466
|
+
const i = o.theme === "light" ? re : se;
|
|
467
467
|
let s, p;
|
|
468
468
|
if (c) {
|
|
469
|
-
const
|
|
470
|
-
t.appendChild(
|
|
469
|
+
const l = document.createElement("div");
|
|
470
|
+
t.appendChild(l), s = l, p = l;
|
|
471
471
|
} else {
|
|
472
|
-
const
|
|
473
|
-
s =
|
|
472
|
+
const l = ie(t, i, "prosopo-procaptcha");
|
|
473
|
+
s = l.widgetInteractiveArea, p = l.webComponent;
|
|
474
474
|
}
|
|
475
475
|
return (await this.getCaptchaRenderer()).renderCaptcha({
|
|
476
476
|
identifierPrefix: "procaptcha-",
|
|
@@ -483,7 +483,7 @@ class pe {
|
|
|
483
483
|
return this._i18n === null && (this._i18n = await $()), this.captchaRenderer === null && (this.captchaRenderer = await this.createCaptchaRenderer()), this.captchaRenderer;
|
|
484
484
|
}
|
|
485
485
|
async createCaptchaRenderer() {
|
|
486
|
-
const t = (await import("./captchaRenderer-
|
|
486
|
+
const t = (await import("./captchaRenderer-BV-WgbEA.js")).CaptchaRenderer, o = (await import("./captchaComponentProvider-D02Su4nd.js").then((a) => a.d)).CaptchaComponentProvider;
|
|
487
487
|
return new t(new o());
|
|
488
488
|
}
|
|
489
489
|
}
|
|
@@ -501,12 +501,12 @@ class he {
|
|
|
501
501
|
}
|
|
502
502
|
const C = "procaptcha.bundle.js";
|
|
503
503
|
let h = [];
|
|
504
|
-
const b = new pe(new he()),
|
|
504
|
+
const b = new pe(new he()), ue = "procaptcha:execute", fe = "procaptcha:ready", A = async () => {
|
|
505
505
|
const e = Array.from(document.getElementsByClassName("procaptcha")).filter((o) => o.tagName.toLowerCase() !== "button");
|
|
506
506
|
if (e.length) {
|
|
507
507
|
const o = v(e, 0).getAttribute("data-sitekey"), a = v(e, 0).getAttribute("data-web3");
|
|
508
508
|
if (!o) {
|
|
509
|
-
console.error("No
|
|
509
|
+
console.error("No site key found");
|
|
510
510
|
return;
|
|
511
511
|
}
|
|
512
512
|
const n = R(e), c = await b.createWidgets(e, {
|
|
@@ -524,10 +524,10 @@ const b = new pe(new he()), fe = "procaptcha:execute", S = async () => {
|
|
|
524
524
|
callback: n
|
|
525
525
|
}, !0, !0);
|
|
526
526
|
h.push(...i), o.addEventListener("click", async (s) => {
|
|
527
|
-
s.preventDefault(),
|
|
527
|
+
s.preventDefault(), I();
|
|
528
528
|
});
|
|
529
529
|
}
|
|
530
|
-
},
|
|
530
|
+
}, ge = async (e, t) => {
|
|
531
531
|
const o = Object.prototype.hasOwnProperty.call(t, "size") && t.size === "invisible", a = !t.web3;
|
|
532
532
|
if (o || e.tagName.toLowerCase() === "button") {
|
|
533
533
|
const c = await b.createWidgets([e], t, a, !0);
|
|
@@ -537,19 +537,19 @@ const b = new pe(new he()), fe = "procaptcha:execute", S = async () => {
|
|
|
537
537
|
const n = await b.createWidgets([e], t, a, !1);
|
|
538
538
|
h.push(...n);
|
|
539
539
|
};
|
|
540
|
-
function
|
|
540
|
+
function u(e) {
|
|
541
541
|
document && document.readyState !== "loading" ? e() : document.addEventListener("DOMContentLoaded", () => {
|
|
542
542
|
e();
|
|
543
543
|
});
|
|
544
544
|
}
|
|
545
|
-
const
|
|
545
|
+
const I = () => {
|
|
546
546
|
var e;
|
|
547
|
-
const t =
|
|
547
|
+
const t = me();
|
|
548
548
|
if (t.length === 0) {
|
|
549
549
|
console.error("No Procaptcha containers found for execution");
|
|
550
550
|
return;
|
|
551
551
|
}
|
|
552
|
-
const o = new CustomEvent(
|
|
552
|
+
const o = new CustomEvent(ue, {
|
|
553
553
|
detail: {
|
|
554
554
|
containerId: ((e = t[0]) == null ? void 0 : e.id) || "procaptcha-container",
|
|
555
555
|
containerCount: t.length,
|
|
@@ -560,7 +560,7 @@ const D = () => {
|
|
|
560
560
|
});
|
|
561
561
|
document.dispatchEvent(o);
|
|
562
562
|
};
|
|
563
|
-
function
|
|
563
|
+
function me() {
|
|
564
564
|
const e = [], t = Array.from(document.querySelectorAll('[data-size="invisible"]'));
|
|
565
565
|
e.push(...t);
|
|
566
566
|
const o = Array.from(document.querySelectorAll('#procaptcha-container, [id$="-procaptcha-container"]')), a = Array.from(document.getElementsByClassName("p-procaptcha"));
|
|
@@ -574,28 +574,36 @@ const L = () => {
|
|
|
574
574
|
const { onloadUrlCallback: o, renderExplicit: a } = de(C);
|
|
575
575
|
let n = !1;
|
|
576
576
|
if (a !== "explicit" && ((e = k(C)) == null || e.addEventListener("load", () => {
|
|
577
|
-
|
|
578
|
-
}), document.readyState === "complete" && !n &&
|
|
579
|
-
const c =
|
|
580
|
-
|
|
577
|
+
u(A), n = !0;
|
|
578
|
+
}), document.readyState === "complete" && !n && u(A)), o && ((t = k(C)) == null || t.addEventListener("load", () => {
|
|
579
|
+
const c = f(o);
|
|
580
|
+
u(c);
|
|
581
581
|
}), document.readyState === "complete" && !n)) {
|
|
582
|
-
const c =
|
|
583
|
-
|
|
582
|
+
const c = f(o);
|
|
583
|
+
u(c);
|
|
584
584
|
}
|
|
585
|
-
},
|
|
585
|
+
}, be = () => {
|
|
586
586
|
for (const e of h)
|
|
587
587
|
e.unmount();
|
|
588
588
|
h = [], L();
|
|
589
589
|
};
|
|
590
|
-
window.procaptcha = { ready:
|
|
590
|
+
window.procaptcha = { ready: u, render: ge, reset: be, execute: I };
|
|
591
|
+
const ye = new CustomEvent(fe, {
|
|
592
|
+
detail: {
|
|
593
|
+
timestamp: Date.now()
|
|
594
|
+
},
|
|
595
|
+
bubbles: !0,
|
|
596
|
+
cancelable: !1
|
|
597
|
+
});
|
|
598
|
+
document.dispatchEvent(ye);
|
|
591
599
|
L();
|
|
592
600
|
export {
|
|
593
601
|
E as W,
|
|
594
|
-
|
|
595
|
-
|
|
602
|
+
u as a,
|
|
603
|
+
be as b,
|
|
596
604
|
se as d,
|
|
597
|
-
|
|
605
|
+
I as e,
|
|
598
606
|
M as g,
|
|
599
|
-
|
|
600
|
-
|
|
607
|
+
re as l,
|
|
608
|
+
ge as r
|
|
601
609
|
};
|