@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.
Files changed (205) hide show
  1. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts.map +1 -1
  2. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/index.js +10 -1
  3. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.js.map +1 -0
  4. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.d.ts +2 -0
  5. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.d.ts.map +1 -0
  6. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.js +32 -0
  7. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.js.map +1 -0
  8. 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
  9. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js +0 -1
  10. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js.map +1 -1
  11. 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
  12. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js.map +1 -1
  13. package/CHANGELOG.md +93 -0
  14. package/coverage/base.css +224 -0
  15. package/coverage/block-navigation.js +87 -0
  16. package/coverage/clover.xml +599 -0
  17. package/coverage/coverage-final.json +17 -0
  18. package/coverage/favicon.png +0 -0
  19. package/coverage/index.html +161 -0
  20. package/coverage/prettify.css +1 -0
  21. package/coverage/prettify.js +2 -0
  22. package/coverage/sort-arrow-sprite.png +0 -0
  23. package/coverage/sorter.js +210 -0
  24. package/coverage/src/components.ts.html +139 -0
  25. package/coverage/src/index.html +131 -0
  26. package/coverage/src/index.ts.html +844 -0
  27. package/coverage/src/util/captcha/captchaComponentProvider.tsx.html +214 -0
  28. package/coverage/src/util/captcha/captchaComponentsList.ts.html +178 -0
  29. package/coverage/src/util/captcha/captchaProps.ts.html +166 -0
  30. package/coverage/src/util/captcha/captchaRenderer.tsx.html +481 -0
  31. package/coverage/src/util/captcha/captchaType.ts.html +181 -0
  32. package/coverage/src/util/captcha/components/frictionlessCaptcha.tsx.html +205 -0
  33. package/coverage/src/util/captcha/components/imageCaptcha.tsx.html +178 -0
  34. package/coverage/src/util/captcha/components/index.html +146 -0
  35. package/coverage/src/util/captcha/components/powCaptcha.tsx.html +178 -0
  36. package/coverage/src/util/captcha/index.html +176 -0
  37. package/coverage/src/util/config.ts.html +172 -0
  38. package/coverage/src/util/configCreator.ts.html +241 -0
  39. package/coverage/src/util/index.html +191 -0
  40. package/coverage/src/util/language.ts.html +244 -0
  41. package/coverage/src/util/timeout.ts.html +214 -0
  42. package/coverage/src/util/widgetFactory.ts.html +532 -0
  43. package/coverage/src/util/widgetThemeResolver.ts.html +205 -0
  44. package/dist/bundle/{ProcaptchaWidget-Cw3s7cGX.js → ProcaptchaWidget-CuMH13Bh.js} +85 -87
  45. package/dist/bundle/{ProcaptchaWidget-CJ-4hVS1.js → ProcaptchaWidget-DsflBBn_.js} +5 -5
  46. package/dist/bundle/{browser-ponyfill-CvzSbL_o.js → browser-ponyfill-DXriyH6D.js} +4 -4
  47. package/dist/bundle/{captchaComponentProvider-Cn75EmSH.js → captchaComponentProvider-D02Su4nd.js} +205 -194
  48. package/dist/bundle/{captchaRenderer-s4QuLEen.js → captchaRenderer-BV-WgbEA.js} +17 -18
  49. package/dist/bundle/{commonChunk-BjvuHlB1.js → commonChunk-PB26mndo.js} +37 -34
  50. package/dist/bundle/{emotion-element-c39617d8.browser.esm-BNNnmykm.js → emotion-element-c39617d8.browser.esm-DG1XhEZ1.js} +3 -3
  51. package/dist/bundle/{index-DIdd2cUz.js → index-B9KeZfID.js} +3 -3
  52. package/dist/bundle/{index-IgqrmVIs.js → index-Calnfnac.js} +67 -59
  53. package/dist/bundle/index-DU371vQ0.js +1634 -0
  54. package/dist/bundle/index.d.ts.map +1 -1
  55. package/dist/bundle/procaptcha.bundle.js +2 -2
  56. package/dist/bundle/tests/procaptchaReady.unit.test.d.ts.map +1 -0
  57. package/dist/bundle/util/configCreator.d.ts.map +1 -1
  58. package/dist/bundle/util/widgetFactory.d.ts.map +1 -1
  59. package/dist/bundle/{utilChunk-DPr6oTOj.js → utilChunk-WRTGKXbU.js} +109 -102
  60. package/dist/bundle/{utilCryptoChunk-D6ZLkbFV.js → utilCryptoChunk-B4ZdOwus.js} +1 -1
  61. package/dist/bundle/{web2Chunk-CNoojUDK.js → web2Chunk-BGN6Hv-C.js} +273 -268
  62. package/dist/bundle/{web3Chunk-BlYvY4Ea.js → web3Chunk-BIX2T9Eo.js} +6 -6
  63. package/dist/bundle/{zodChunk-aEfPZzrp.js → zodChunk-CaINhWMQ.js} +8 -8
  64. package/dist/cjs/index.cjs +10 -1
  65. package/dist/cjs/util/configCreator.cjs +0 -1
  66. package/dist/components.d.ts.map +1 -0
  67. package/dist/components.js +5 -0
  68. package/dist/components.js.map +1 -0
  69. package/dist/index.d.ts.map +1 -0
  70. package/dist/index.js +10 -1
  71. package/dist/index.js.map +1 -0
  72. package/dist/tests/procaptchaReady.unit.test.d.ts +2 -0
  73. package/dist/tests/procaptchaReady.unit.test.d.ts.map +1 -0
  74. package/dist/tests/procaptchaReady.unit.test.js +32 -0
  75. package/dist/tests/procaptchaReady.unit.test.js.map +1 -0
  76. package/dist/tests/util/captchaType.test.d.ts.map +1 -0
  77. package/dist/tests/util/captchaType.test.js +36 -0
  78. package/dist/tests/util/captchaType.test.js.map +1 -0
  79. package/dist/tests/util/config.test.d.ts.map +1 -0
  80. package/dist/tests/util/config.test.js +69 -0
  81. package/dist/tests/util/config.test.js.map +1 -0
  82. package/dist/tests/util/renderLogic.test.d.ts.map +1 -0
  83. package/dist/tests/util/renderLogic.test.js +136 -0
  84. package/dist/tests/util/renderLogic.test.js.map +1 -0
  85. package/dist/util/captcha/captchaComponentProvider.d.ts.map +1 -0
  86. package/dist/util/captcha/captchaComponentProvider.js.map +1 -0
  87. package/dist/util/captcha/captchaComponentsList.d.ts.map +1 -0
  88. package/dist/util/captcha/captchaComponentsList.js.map +1 -0
  89. package/dist/util/captcha/captchaProps.d.ts.map +1 -0
  90. package/dist/util/captcha/captchaProps.js +2 -0
  91. package/dist/util/captcha/captchaProps.js.map +1 -0
  92. package/dist/util/captcha/captchaRenderer.d.ts.map +1 -0
  93. package/dist/util/captcha/captchaRenderer.js.map +1 -0
  94. package/dist/util/captcha/captchaType.d.ts.map +1 -0
  95. package/dist/util/captcha/captchaType.js.map +1 -0
  96. package/dist/util/captcha/components/frictionlessCaptcha.d.ts.map +1 -0
  97. package/dist/util/captcha/components/frictionlessCaptcha.js.map +1 -0
  98. package/dist/util/captcha/components/imageCaptcha.d.ts.map +1 -0
  99. package/dist/util/captcha/components/imageCaptcha.js.map +1 -0
  100. package/dist/util/captcha/components/powCaptcha.d.ts.map +1 -0
  101. package/dist/util/captcha/components/powCaptcha.js.map +1 -0
  102. package/dist/util/config.d.ts.map +1 -0
  103. package/dist/util/config.js.map +1 -0
  104. package/dist/util/configCreator.d.ts.map +1 -0
  105. package/dist/util/configCreator.js +0 -1
  106. package/dist/util/configCreator.js.map +1 -0
  107. package/dist/util/language.d.ts.map +1 -0
  108. package/dist/util/language.js.map +1 -0
  109. package/dist/util/timeout.d.ts.map +1 -0
  110. package/dist/util/timeout.js.map +1 -0
  111. package/dist/util/widgetFactory.d.ts.map +1 -0
  112. package/dist/util/widgetFactory.js.map +1 -0
  113. package/dist/util/widgetThemeResolver.d.ts.map +1 -0
  114. package/dist/util/widgetThemeResolver.js.map +1 -0
  115. package/package.json +16 -16
  116. package/stats.html +2239 -2132
  117. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/index.js.map +0 -1
  118. package/dist/bundle/index-BuQg3Zno.js +0 -1884
  119. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts +0 -0
  120. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts.map +0 -0
  121. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/components.js +0 -0
  122. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/components.js.map +0 -0
  123. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts +0 -0
  124. /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
  125. /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
  126. /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
  127. /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
  128. /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
  129. /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
  130. /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
  131. /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
  132. /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
  133. /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
  134. /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
  135. /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
  136. /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
  137. /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
  138. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.js +0 -0
  139. /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
  140. /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
  141. /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
  142. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.js +0 -0
  143. /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
  144. /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
  145. /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
  146. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.js +0 -0
  147. /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
  148. /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
  149. /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
  150. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js +0 -0
  151. /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
  152. /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
  153. /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
  154. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.js +0 -0
  155. /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
  156. /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
  157. /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
  158. /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
  159. /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
  160. /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
  161. /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
  162. /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
  163. /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
  164. /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
  165. /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
  166. /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
  167. /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
  168. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts +0 -0
  169. /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
  170. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js +0 -0
  171. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js.map +0 -0
  172. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts +0 -0
  173. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.d.ts +0 -0
  174. /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
  175. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.js +0 -0
  176. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.js.map +0 -0
  177. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.d.ts +0 -0
  178. /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
  179. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.js +0 -0
  180. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.js.map +0 -0
  181. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts +0 -0
  182. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js +0 -0
  183. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.d.ts +0 -0
  184. /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
  185. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js +0 -0
  186. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js.map +0 -0
  187. /package/dist/{bundle/components.d.ts → components.d.ts} +0 -0
  188. /package/dist/{bundle/index.d.ts → index.d.ts} +0 -0
  189. /package/dist/{bundle/tests → tests}/util/captchaType.test.d.ts +0 -0
  190. /package/dist/{bundle/tests → tests}/util/config.test.d.ts +0 -0
  191. /package/dist/{bundle/tests → tests}/util/renderLogic.test.d.ts +0 -0
  192. /package/dist/{bundle/util → util}/captcha/captchaComponentProvider.d.ts +0 -0
  193. /package/dist/{bundle/util → util}/captcha/captchaComponentsList.d.ts +0 -0
  194. /package/dist/{bundle/util → util}/captcha/captchaProps.d.ts +0 -0
  195. /package/dist/{bundle/util → util}/captcha/captchaRenderer.d.ts +0 -0
  196. /package/dist/{bundle/util → util}/captcha/captchaType.d.ts +0 -0
  197. /package/dist/{bundle/util → util}/captcha/components/frictionlessCaptcha.d.ts +0 -0
  198. /package/dist/{bundle/util → util}/captcha/components/imageCaptcha.d.ts +0 -0
  199. /package/dist/{bundle/util → util}/captcha/components/powCaptcha.d.ts +0 -0
  200. /package/dist/{bundle/util → util}/config.d.ts +0 -0
  201. /package/dist/{bundle/util → util}/configCreator.d.ts +0 -0
  202. /package/dist/{bundle/util → util}/language.d.ts +0 -0
  203. /package/dist/{bundle/util → util}/timeout.d.ts +0 -0
  204. /package/dist/{bundle/util → util}/widgetFactory.d.ts +0 -0
  205. /package/dist/{bundle/util → util}/widgetThemeResolver.d.ts +0 -0
@@ -0,0 +1,205 @@
1
+
2
+ <!doctype html>
3
+ <html lang="en">
4
+
5
+ <head>
6
+ <title>Code coverage report for src/util/widgetThemeResolver.ts</title>
7
+ <meta charset="utf-8" />
8
+ <link rel="stylesheet" href="../../prettify.css" />
9
+ <link rel="stylesheet" href="../../base.css" />
10
+ <link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
11
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
12
+ <style type='text/css'>
13
+ .coverage-summary .sorter {
14
+ background-image: url(../../sort-arrow-sprite.png);
15
+ }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <div class='wrapper'>
21
+ <div class='pad1'>
22
+ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/util</a> widgetThemeResolver.ts</h1>
23
+ <div class='clearfix'>
24
+
25
+ <div class='fl pad1y space-right2'>
26
+ <span class="strong">94.73% </span>
27
+ <span class="quiet">Statements</span>
28
+ <span class='fraction'>18/19</span>
29
+ </div>
30
+
31
+
32
+ <div class='fl pad1y space-right2'>
33
+ <span class="strong">75% </span>
34
+ <span class="quiet">Branches</span>
35
+ <span class='fraction'>3/4</span>
36
+ </div>
37
+
38
+
39
+ <div class='fl pad1y space-right2'>
40
+ <span class="strong">100% </span>
41
+ <span class="quiet">Functions</span>
42
+ <span class='fraction'>3/3</span>
43
+ </div>
44
+
45
+
46
+ <div class='fl pad1y space-right2'>
47
+ <span class="strong">94.73% </span>
48
+ <span class="quiet">Lines</span>
49
+ <span class='fraction'>18/19</span>
50
+ </div>
51
+
52
+
53
+ </div>
54
+ <p class="quiet">
55
+ Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
56
+ </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input type="search" id="fileSearch">
61
+ </div>
62
+ </template>
63
+ </div>
64
+ <div class='status-line high'></div>
65
+ <pre><table class="coverage">
66
+ <tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
67
+ <a name='L2'></a><a href='#L2'>2</a>
68
+ <a name='L3'></a><a href='#L3'>3</a>
69
+ <a name='L4'></a><a href='#L4'>4</a>
70
+ <a name='L5'></a><a href='#L5'>5</a>
71
+ <a name='L6'></a><a href='#L6'>6</a>
72
+ <a name='L7'></a><a href='#L7'>7</a>
73
+ <a name='L8'></a><a href='#L8'>8</a>
74
+ <a name='L9'></a><a href='#L9'>9</a>
75
+ <a name='L10'></a><a href='#L10'>10</a>
76
+ <a name='L11'></a><a href='#L11'>11</a>
77
+ <a name='L12'></a><a href='#L12'>12</a>
78
+ <a name='L13'></a><a href='#L13'>13</a>
79
+ <a name='L14'></a><a href='#L14'>14</a>
80
+ <a name='L15'></a><a href='#L15'>15</a>
81
+ <a name='L16'></a><a href='#L16'>16</a>
82
+ <a name='L17'></a><a href='#L17'>17</a>
83
+ <a name='L18'></a><a href='#L18'>18</a>
84
+ <a name='L19'></a><a href='#L19'>19</a>
85
+ <a name='L20'></a><a href='#L20'>20</a>
86
+ <a name='L21'></a><a href='#L21'>21</a>
87
+ <a name='L22'></a><a href='#L22'>22</a>
88
+ <a name='L23'></a><a href='#L23'>23</a>
89
+ <a name='L24'></a><a href='#L24'>24</a>
90
+ <a name='L25'></a><a href='#L25'>25</a>
91
+ <a name='L26'></a><a href='#L26'>26</a>
92
+ <a name='L27'></a><a href='#L27'>27</a>
93
+ <a name='L28'></a><a href='#L28'>28</a>
94
+ <a name='L29'></a><a href='#L29'>29</a>
95
+ <a name='L30'></a><a href='#L30'>30</a>
96
+ <a name='L31'></a><a href='#L31'>31</a>
97
+ <a name='L32'></a><a href='#L32'>32</a>
98
+ <a name='L33'></a><a href='#L33'>33</a>
99
+ <a name='L34'></a><a href='#L34'>34</a>
100
+ <a name='L35'></a><a href='#L35'>35</a>
101
+ <a name='L36'></a><a href='#L36'>36</a>
102
+ <a name='L37'></a><a href='#L37'>37</a>
103
+ <a name='L38'></a><a href='#L38'>38</a>
104
+ <a name='L39'></a><a href='#L39'>39</a>
105
+ <a name='L40'></a><a href='#L40'>40</a>
106
+ <a name='L41'></a><a href='#L41'>41</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
107
+ <span class="cline-any cline-neutral">&nbsp;</span>
108
+ <span class="cline-any cline-neutral">&nbsp;</span>
109
+ <span class="cline-any cline-neutral">&nbsp;</span>
110
+ <span class="cline-any cline-neutral">&nbsp;</span>
111
+ <span class="cline-any cline-neutral">&nbsp;</span>
112
+ <span class="cline-any cline-neutral">&nbsp;</span>
113
+ <span class="cline-any cline-neutral">&nbsp;</span>
114
+ <span class="cline-any cline-neutral">&nbsp;</span>
115
+ <span class="cline-any cline-neutral">&nbsp;</span>
116
+ <span class="cline-any cline-neutral">&nbsp;</span>
117
+ <span class="cline-any cline-neutral">&nbsp;</span>
118
+ <span class="cline-any cline-neutral">&nbsp;</span>
119
+ <span class="cline-any cline-neutral">&nbsp;</span>
120
+ <span class="cline-any cline-neutral">&nbsp;</span>
121
+ <span class="cline-any cline-neutral">&nbsp;</span>
122
+ <span class="cline-any cline-yes">1x</span>
123
+ <span class="cline-any cline-yes">1x</span>
124
+ <span class="cline-any cline-yes">1x</span>
125
+ <span class="cline-any cline-neutral">&nbsp;</span>
126
+ <span class="cline-any cline-yes">1x</span>
127
+ <span class="cline-any cline-yes">2x</span>
128
+ <span class="cline-any cline-yes">2x</span>
129
+ <span class="cline-any cline-yes">2x</span>
130
+ <span class="cline-any cline-yes">2x</span>
131
+ <span class="cline-any cline-yes">2x</span>
132
+ <span class="cline-any cline-yes">2x</span>
133
+ <span class="cline-any cline-yes">2x</span>
134
+ <span class="cline-any cline-neutral">&nbsp;</span>
135
+ <span class="cline-any cline-yes">2x</span>
136
+ <span class="cline-any cline-yes">2x</span>
137
+ <span class="cline-any cline-neutral">&nbsp;</span>
138
+ <span class="cline-any cline-yes">1x</span>
139
+ <span class="cline-any cline-yes">2x</span>
140
+ <span class="cline-any cline-yes">2x</span>
141
+ <span class="cline-any cline-no">&nbsp;</span>
142
+ <span class="cline-any cline-yes">2x</span>
143
+ <span class="cline-any cline-yes">1x</span>
144
+ <span class="cline-any cline-neutral">&nbsp;</span>
145
+ <span class="cline-any cline-neutral">&nbsp;</span>
146
+ <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">// Copyright 2021-2025 Prosopo (UK) Ltd.
147
+ //
148
+ // Licensed under the Apache License, Version 2.0 (the "License");
149
+ // you may not use this file except in compliance with the License.
150
+ // You may obtain a copy of the License at
151
+ //
152
+ // http://www.apache.org/licenses/LICENSE-2.0
153
+ //
154
+ // Unless required by applicable law or agreed to in writing, software
155
+ // distributed under the License is distributed on an "AS IS" BASIS,
156
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
157
+ // See the License for the specific language governing permissions and
158
+ // limitations under the License.
159
+ &nbsp;
160
+ import type { ProcaptchaRenderOptions } from "@prosopo/types";
161
+ &nbsp;
162
+ class WidgetThemeResolver {
163
+ private readonly themesSet = new Set(["light", "dark"]);
164
+ private readonly defaultTheme = "light";
165
+ &nbsp;
166
+ public resolveWidgetTheme(
167
+ element: Element,
168
+ renderOptions: ProcaptchaRenderOptions,
169
+ ): "light" | "dark" {
170
+ const themeAttribute =
171
+ renderOptions.theme ||
172
+ element.getAttribute("data-theme") ||
173
+ this.defaultTheme;
174
+ &nbsp;
175
+ return this.validateTheme(themeAttribute);
176
+ }
177
+ &nbsp;
178
+ protected validateTheme(themeAttribute: string): "light" | "dark" {
179
+ return this.themesSet.has(themeAttribute)
180
+ ? (<span class="branch-0 cbranch-no" title="branch not covered" >themeAttribute as "light" | "dark")</span>
181
+ <span class="cstat-no" title="statement not covered" > : this.defaultTheme;</span>
182
+ }
183
+ }
184
+ &nbsp;
185
+ export { WidgetThemeResolver };
186
+ &nbsp;</pre></td></tr></table></pre>
187
+
188
+ <div class='push'></div><!-- for sticky footer -->
189
+ </div><!-- /wrapper -->
190
+ <div class='footer quiet pad2 space-top1 center small'>
191
+ Code coverage generated by
192
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
193
+ at 2025-09-08T13:12:45.727Z
194
+ </div>
195
+ <script src="../../prettify.js"></script>
196
+ <script>
197
+ window.onload = function () {
198
+ prettyPrint();
199
+ };
200
+ </script>
201
+ <script src="../../sorter.js"></script>
202
+ <script src="../../block-navigation.js"></script>
203
+ </body>
204
+ </html>
205
+
@@ -1,11 +1,11 @@
1
- import { j as d, a as P, g as ie, p as z, b as ce, P as le, E as de, c as ue, C as he } from "./captchaComponentProvider-Cn75EmSH.js";
2
- import { r as C, u as Z, a as v, A, g as pe, h as ge, i as fe, s as me, P as Q, j as xe, l as Ce } from "./web2Chunk-CNoojUDK.js";
3
- import { b as _, P as T, a as H } from "./commonChunk-BjvuHlB1.js";
1
+ import { j as d, a as P, g as ie, p as z, b as ce, P as le, E as de, c as ue, C as he } from "./captchaComponentProvider-D02Su4nd.js";
2
+ import { r as C, u as Z, a as v, A, g as pe, h as ge, i as fe, s as me, P as Q, j as xe, l as Ce } from "./web2Chunk-BGN6Hv-C.js";
3
+ import { b as _, P as T, a as H } from "./commonChunk-PB26mndo.js";
4
4
  import { b as we, u as be } from "./builder-ByZ5z580.js";
5
- import { u as U, v as ye } from "./utilCryptoChunk-D6ZLkbFV.js";
6
- import { w as Ae } from "./utilChunk-DPr6oTOj.js";
7
- import { l as M, d as D } from "./index-IgqrmVIs.js";
8
- import { r as ve } from "./index-DIdd2cUz.js";
5
+ import { u as U, v as ye } from "./utilCryptoChunk-B4ZdOwus.js";
6
+ import { w as Ae } from "./utilChunk-WRTGKXbU.js";
7
+ import { l as M, d as D } from "./index-Calnfnac.js";
8
+ import { r as ve } from "./index-B9KeZfID.js";
9
9
  const Ee = {
10
10
  border: "none",
11
11
  paddingTop: "6px",
@@ -19,24 +19,24 @@ const Ee = {
19
19
  themeColor: r,
20
20
  onReload: e
21
21
  }) => {
22
- const o = C.useMemo(
22
+ const n = C.useMemo(
23
23
  () => r === "light" ? M : D,
24
24
  [r]
25
- ), [n, t] = C.useState(!1), i = C.useMemo(() => ({
25
+ ), [o, t] = C.useState(!1), i = C.useMemo(() => ({
26
26
  ...{
27
27
  ...Ee,
28
- backgroundColor: o.palette.background.default,
29
- color: n ? o.palette.primary.contrastText : o.palette.background.contrastText,
30
- border: `1px solid ${o.palette.grey[500]}`,
28
+ backgroundColor: n.palette.background.default,
29
+ color: o ? n.palette.primary.contrastText : n.palette.background.contrastText,
30
+ border: `1px solid ${n.palette.grey[500]}`,
31
31
  borderRadius: "50%",
32
32
  transition: "background-color 0.3s",
33
- boxShadow: `0px 1px 3px 0px ${o.palette.grey[500]}`,
33
+ boxShadow: `0px 1px 3px 0px ${n.palette.grey[500]}`,
34
34
  justifyContent: "center",
35
35
  alignItems: "center",
36
36
  margin: "0 auto"
37
37
  },
38
- backgroundColor: n ? o.palette.grey[700] : o.palette.background.default
39
- }), [n, o]);
38
+ backgroundColor: o ? n.palette.grey[700] : n.palette.background.default
39
+ }), [o, n]);
40
40
  return /* @__PURE__ */ d(
41
41
  "button",
42
42
  {
@@ -65,7 +65,7 @@ const Ee = {
65
65
  "path",
66
66
  {
67
67
  shapeRendering: "optimizeQuality",
68
- fill: n ? o.palette.primary.contrastText : o.palette.grey[700],
68
+ fill: o ? n.palette.primary.contrastText : n.palette.grey[700],
69
69
  transform: "scale(0.0416)",
70
70
  d: "M234.666667,149.333333 L234.666667,106.666667 L314.564847,106.664112 C287.579138,67.9778918 242.745446,42.6666667 192,42.6666667 C109.525477,42.6666667 42.6666667,109.525477 42.6666667,192 C42.6666667,274.474523 109.525477,341.333333 192,341.333333 C268.201293,341.333333 331.072074,284.258623 340.195444,210.526102 L382.537159,215.817985 C370.807686,310.617565 289.973536,384 192,384 C85.961328,384 1.42108547e-14,298.038672 1.42108547e-14,192 C1.42108547e-14,85.961328 85.961328,1.42108547e-14 192,1.42108547e-14 C252.316171,1.42108547e-14 306.136355,27.8126321 341.335366,71.3127128 L341.333333,1.42108547e-14 L384,1.42108547e-14 L384,149.333333 L234.666667,149.333333 Z"
71
71
  }
@@ -84,12 +84,12 @@ const Ee = {
84
84
  }, Ne = ({
85
85
  challenge: r,
86
86
  solution: e,
87
- onClick: o,
88
- themeColor: n
87
+ onClick: n,
88
+ themeColor: o
89
89
  }) => {
90
90
  const t = r.items, i = C.useMemo(
91
- () => n === "light" ? M : D,
92
- [n]
91
+ () => o === "light" ? M : D,
92
+ [o]
93
93
  ), a = `${i.spacing.unit}px`;
94
94
  return /* @__PURE__ */ d(
95
95
  "div",
@@ -130,14 +130,14 @@ const Ee = {
130
130
  onClick: (u) => {
131
131
  if (u.isTrusted) {
132
132
  if ("touches" in u && u.touches.length > 0 && u.touches[0]) {
133
- o(h, u.touches[0].clientX, u.touches[0].clientY);
133
+ n(h, u.touches[0].clientX, u.touches[0].clientY);
134
134
  return;
135
135
  }
136
136
  if ("clientX" in u && "clientY" in u) {
137
- o(h, u.clientX, u.clientY);
137
+ n(h, u.clientX, u.clientY);
138
138
  return;
139
139
  }
140
- o(h, 0, 0);
140
+ n(h, 0, 0);
141
141
  }
142
142
  },
143
143
  children: [
@@ -222,7 +222,7 @@ const Ee = {
222
222
  function He(r = {}) {
223
223
  return Object.keys(r).reduce(
224
224
  // biome-ignore lint/performance/noAccumulatingSpread: TODO fix
225
- (e, o) => ({ ...e, [`data-${o}`]: r[o] }),
225
+ (e, n) => ({ ...e, [`data-${n}`]: r[n] }),
226
226
  {}
227
227
  );
228
228
  }
@@ -260,8 +260,8 @@ const Pe = {
260
260
  }, F = ({
261
261
  themeColor: r,
262
262
  buttonType: e,
263
- text: o,
264
- onClick: n
263
+ text: n,
264
+ onClick: o
265
265
  }) => {
266
266
  const t = C.useMemo(
267
267
  () => r === "light" ? M : D,
@@ -291,24 +291,24 @@ const Pe = {
291
291
  onMouseLeave: () => a(!1),
292
292
  style: s,
293
293
  onClick: (l) => {
294
- l.isTrusted && (l.preventDefault(), n());
294
+ l.isTrusted && (l.preventDefault(), o());
295
295
  },
296
- "aria-label": o,
297
- children: o
296
+ "aria-label": n,
297
+ children: n
298
298
  }
299
299
  );
300
300
  }, K = ({
301
301
  challenge: r,
302
302
  index: e,
303
- solutions: o,
304
- onSubmit: n,
303
+ solutions: n,
304
+ onSubmit: o,
305
305
  onCancel: t,
306
306
  onClick: i,
307
307
  onNext: a,
308
308
  onReload: s,
309
309
  themeColor: l
310
310
  }) => {
311
- const { t: h } = Z(), b = r.captchas ? v(r.captchas, e) : null, u = o ? v(o, e) : [], f = C.useMemo(
311
+ const { t: h } = Z(), b = r.captchas ? v(r.captchas, e) : null, u = n ? v(n, e) : [], f = C.useMemo(
312
312
  () => l === "light" ? M : D,
313
313
  [l]
314
314
  ), R = `${f.spacing.unit * 2}px`, g = `${f.spacing.unit}px`;
@@ -491,7 +491,7 @@ const Pe = {
491
491
  themeColor: l,
492
492
  buttonType: "next",
493
493
  text: e < r.captchas.length - 1 ? h("WIDGET.NEXT") : h("WIDGET.SUBMIT"),
494
- onClick: e < r.captchas.length - 1 ? a : n,
494
+ onClick: e < r.captchas.length - 1 ? a : o,
495
495
  "aria-label": e < r.captchas.length - 1 ? h("WIDGET.NEXT") : h("WIDGET.SUBMIT"),
496
496
  "data-cy": "button-next"
497
497
  }
@@ -538,88 +538,86 @@ class ke {
538
538
  }
539
539
  build(e) {
540
540
  this.layers.length && (this.layers = []);
541
- const o = [];
542
- for (const n of e) {
543
- const t = new V(n);
544
- this.leaves.push(t), o.push(t.hash);
541
+ const n = [];
542
+ for (const o of e) {
543
+ const t = new V(o);
544
+ this.leaves.push(t), n.push(t.hash);
545
545
  }
546
- this.layers.push(o), this.root = this.buildMerkleTree(this.leaves)[0];
546
+ this.layers.push(n), this.root = this.buildMerkleTree(this.leaves)[0];
547
547
  }
548
548
  buildMerkleTree(e) {
549
- const o = e.length;
550
- if (o === 1)
549
+ const n = e.length;
550
+ if (n === 1)
551
551
  return e;
552
- const n = [];
552
+ const o = [];
553
553
  let t = 0;
554
554
  const i = [];
555
- for (; t < o; ) {
555
+ for (; t < n; ) {
556
556
  const a = e[t];
557
557
  if (a === void 0)
558
558
  throw new T("DEVELOPER.GENERAL", {
559
559
  context: { error: "leftChild undefined" }
560
560
  });
561
- const s = t + 1 < o ? v(e, t + 1) : a, l = this.createParent(a, s);
562
- i.push(l.hash), n.push(l), t += 2;
561
+ const s = t + 1 < n ? v(e, t + 1) : a, l = this.createParent(a, s);
562
+ i.push(l.hash), o.push(l), t += 2;
563
563
  }
564
- return this.layers.push(i), this.buildMerkleTree(n);
564
+ return this.layers.push(i), this.buildMerkleTree(o);
565
565
  }
566
- createParent(e, o) {
567
- const n = new V(
568
- U([e.hash, o.hash])
569
- );
570
- return e.parent = n.hash, o.parent = n.hash, n;
566
+ createParent(e, n) {
567
+ const o = new V(U([e.hash, n.hash]));
568
+ return e.parent = o.hash, n.parent = o.hash, o;
571
569
  }
572
570
  proof(e) {
573
- const o = [];
574
- let n = 0;
575
- for (; n < this.layers.length - 1; ) {
576
- const i = this.layers[n];
571
+ const n = [];
572
+ let o = 0;
573
+ for (; o < this.layers.length - 1; ) {
574
+ const i = this.layers[o];
577
575
  if (i === void 0)
578
576
  throw new T("DATASET.MERKLE_ERROR", {
579
577
  context: {
580
578
  error: "layer undefined",
581
579
  failedFuncName: this.proof.name,
582
- layerNum: n
580
+ layerNum: o
583
581
  }
584
582
  });
585
583
  const a = i.indexOf(e);
586
584
  let s = a % 2 && a > 0 ? a - 1 : a + 1;
587
585
  s > i.length - 1 && (s = a);
588
586
  const l = [e], h = v(i, s);
589
- s > a ? l.push(h) : l.unshift(h), o.push([v(l, 0), v(l, 1)]), n += 1, e = U(l);
587
+ s > a ? l.push(h) : l.unshift(h), n.push([v(l, 0), v(l, 1)]), o += 1, e = U(l);
590
588
  }
591
589
  const t = v(this.layers, this.layers.length - 1);
592
- return [...o, [v(t, 0)]];
590
+ return [...n, [v(t, 0)]];
593
591
  }
594
592
  }
595
593
  class X {
596
- constructor(e, o, n, t, i) {
597
- this.userAccount = e, this.provider = o, this.providerApi = n, this._web2 = t, this.dappAccount = i;
594
+ constructor(e, n, o, t, i) {
595
+ this.userAccount = e, this.provider = n, this.providerApi = o, this._web2 = t, this.dappAccount = i;
598
596
  }
599
597
  get web2() {
600
598
  return this._web2;
601
599
  }
602
600
  async getCaptchaChallenge(e) {
603
601
  try {
604
- const o = await this.providerApi.getCaptchaChallenge(
602
+ const n = await this.providerApi.getCaptchaChallenge(
605
603
  this.userAccount,
606
604
  this.provider,
607
605
  e
608
606
  );
609
- if (o[A.error])
610
- return o;
611
- for (const n of o.captchas)
612
- for (const t of n.items)
607
+ if (n[A.error])
608
+ return n;
609
+ for (const o of n.captchas)
610
+ for (const t of o.items)
613
611
  t.data && (t.data = `https://${t.data.replace(/^http(s)*:\/\//, "")}`);
614
- return o;
615
- } catch (o) {
612
+ return n;
613
+ } catch (n) {
616
614
  throw new H("CAPTCHA.INVALID_CAPTCHA_CHALLENGE", {
617
- context: { error: o }
615
+ context: { error: n }
618
616
  });
619
617
  }
620
618
  }
621
- async submitCaptchaSolution(e, o, n, t, i) {
622
- const a = new ke(), s = n.map(
619
+ async submitCaptchaSolution(e, n, o, t, i) {
620
+ const a = new ke(), s = o.map(
623
621
  (b) => Re(b)
624
622
  );
625
623
  if (a.build(s), !a.root)
@@ -630,8 +628,8 @@ class X {
630
628
  let h;
631
629
  try {
632
630
  h = await this.providerApi.submitCaptchaSolution(
633
- n,
634
631
  o,
632
+ n,
635
633
  this.userAccount,
636
634
  t,
637
635
  i,
@@ -657,8 +655,8 @@ const Le = () => ({
657
655
  account: void 0
658
656
  // don't handle timeout here, this should be handled by the state management
659
657
  });
660
- function _e(r, e, o, n, t) {
661
- const i = ie(n), a = we(e, o), s = () => {
658
+ function _e(r, e, n, o, t) {
659
+ const i = ie(o), a = we(e, n), s = () => {
662
660
  const c = {
663
661
  userAccountAddress: "",
664
662
  ...r
@@ -743,8 +741,8 @@ function _e(r, e, o, n, t) {
743
741
  });
744
742
  a({ showModal: !1 });
745
743
  const c = e.challenge, m = e.challenge.captchas.map(
746
- (O, ne) => {
747
- const B = v(e.solutions, ne), j = B.flatMap(([k, $, se]) => [$, se]), ae = ye(
744
+ (O, oe) => {
745
+ const B = v(e.solutions, oe), j = B.flatMap(([k, $, se]) => [$, se]), ae = ye(
748
746
  j.map((k) => k.toString(16).length + 4).reduce((k, $) => k + $, 0)
749
747
  ), re = pe(ae, j);
750
748
  return {
@@ -754,7 +752,7 @@ function _e(r, e, o, n, t) {
754
752
  solution: B.flatMap((k) => k[0])
755
753
  };
756
754
  }
757
- ), x = G(), p = oe(x).signer;
755
+ ), x = G(), p = ne(x).signer;
758
756
  if (!v(c.captchas, 0).datasetId)
759
757
  throw new _("CAPTCHA.INVALID_CAPTCHA_ID", {
760
758
  context: { error: "No datasetId set for challenge" }
@@ -881,7 +879,7 @@ function _e(r, e, o, n, t) {
881
879
  if (!e.dappAccount)
882
880
  throw new H("GENERAL.SITE_KEY_MISSING");
883
881
  return e.dappAccount;
884
- }, oe = (c) => {
882
+ }, ne = (c) => {
885
883
  const m = c || G();
886
884
  if (!m.extension)
887
885
  throw new H("ACCOUNT.NO_POLKADOT_EXTENSION", {
@@ -918,7 +916,7 @@ const Me = ue`
918
916
  transform: translate(-50%, -100%);
919
917
  }
920
918
  `, Y = xe.memo((r) => {
921
- const { show: e, children: o } = r, t = {
919
+ const { show: e, children: n } = r, t = {
922
920
  position: "fixed",
923
921
  zIndex: 2147483646,
924
922
  inset: 0,
@@ -928,23 +926,23 @@ const Me = ue`
928
926
  minHeight: "100vh"
929
927
  };
930
928
  return ve.createPortal(
931
- /* @__PURE__ */ d("div", { className: "prosopo-modalOuter", style: t, children: /* @__PURE__ */ d("div", { className: "prosopo-modalInner", css: Me, children: o }) }),
929
+ /* @__PURE__ */ d("div", { className: "prosopo-modalOuter", style: t, children: /* @__PURE__ */ d("div", { className: "prosopo-modalInner", css: Me, children: n }) }),
932
930
  document.body
933
931
  );
934
932
  }), q = "procaptcha:execute", je = (r) => {
935
933
  var R;
936
- const { t: e, ready: o } = Z(), n = Q.parse(r.config), t = r.frictionlessState, i = r.i18n, a = r.callbacks || {}, [s, l] = be(C.useState, C.useRef), [h, b] = C.useState(!1), u = _e(
937
- n,
934
+ const { t: e, ready: n } = Z(), o = Q.parse(r.config), t = r.frictionlessState, i = r.i18n, a = r.callbacks || {}, [s, l] = be(C.useState, C.useRef), [h, b] = C.useState(!1), u = _e(
935
+ o,
938
936
  s,
939
937
  l,
940
938
  a,
941
939
  t
942
940
  ), f = r.config.theme === "light" ? M : D;
943
941
  return C.useEffect(() => {
944
- n.language && (i ? i.language !== n.language && i.changeLanguage(n.language).then((g) => g) : Ce().then((g) => {
945
- g.language !== n.language && g.changeLanguage(n.language).then((N) => N);
942
+ o.language && (i ? i.language !== o.language && i.changeLanguage(o.language).then((g) => g) : Ce().then((g) => {
943
+ g.language !== o.language && g.changeLanguage(o.language).then((N) => N);
946
944
  }));
947
- }, [i, n.language]), C.useEffect(() => {
945
+ }, [i, o.language]), C.useEffect(() => {
948
946
  s.error && (b(!1), s.error.key === "CAPTCHA.NO_SESSION_FOUND" && t && setTimeout(() => {
949
947
  t.restart();
950
948
  }, 3e3));
@@ -965,7 +963,7 @@ const Me = ue`
965
963
  g
966
964
  );
967
965
  };
968
- }, [u, s.challenge, l]), n.mode === "invisible" ? /* @__PURE__ */ d(Y, { show: s.showModal, children: s.challenge ? /* @__PURE__ */ d(
966
+ }, [u, s.challenge, l]), o.mode === "invisible" ? /* @__PURE__ */ d(Y, { show: s.showModal, children: s.challenge ? /* @__PURE__ */ d(
969
967
  K,
970
968
  {
971
969
  challenge: s.challenge,
@@ -976,7 +974,7 @@ const Me = ue`
976
974
  onClick: u.select,
977
975
  onNext: u.nextRound,
978
976
  onReload: u.reload,
979
- themeColor: n.theme ?? "light"
977
+ themeColor: o.theme ?? "light"
980
978
  }
981
979
  ) : null }) : /* @__PURE__ */ P("div", { className: "image-captcha", children: [
982
980
  /* @__PURE__ */ d(Y, { show: s.showModal, children: s.challenge ? /* @__PURE__ */ d(
@@ -990,7 +988,7 @@ const Me = ue`
990
988
  onClick: u.select,
991
989
  onNext: u.nextRound,
992
990
  onReload: u.reload,
993
- themeColor: n.theme ?? "light"
991
+ themeColor: o.theme ?? "light"
994
992
  }
995
993
  ) : /* @__PURE__ */ d("div", { children: "No challenge set." }) }),
996
994
  /* @__PURE__ */ d(
@@ -1001,7 +999,7 @@ const Me = ue`
1001
999
  g.isTrusted && (h || (b(!0), await u.start(), b(!1)));
1002
1000
  },
1003
1001
  checked: s.isHuman,
1004
- labelText: o ? e("WIDGET.I_AM_HUMAN") : "",
1002
+ labelText: n ? e("WIDGET.I_AM_HUMAN") : "",
1005
1003
  error: (R = s.error) == null ? void 0 : R.message,
1006
1004
  "aria-label": "human checkbox",
1007
1005
  loading: h
@@ -1,9 +1,9 @@
1
- import { g as L, p as M, b as D, P as G, E as F, j as S, C as W } from "./captchaComponentProvider-Cn75EmSH.js";
2
- import { s as K, k as j, A as r, h as V, P as Y, u as X, r as l, l as q, M as H } from "./web2Chunk-CNoojUDK.js";
1
+ import { g as L, p as M, b as D, P as G, E as F, j as S, C as W } from "./captchaComponentProvider-D02Su4nd.js";
2
+ import { s as K, k as j, A as r, h as V, P as Y, u as X, r as l, l as q, M as H } from "./web2Chunk-BGN6Hv-C.js";
3
3
  import { b as k, u as z } from "./builder-ByZ5z580.js";
4
- import { l as B, d as J } from "./index-IgqrmVIs.js";
5
- import { a as v } from "./commonChunk-BjvuHlB1.js";
6
- import { w as Q } from "./utilChunk-DPr6oTOj.js";
4
+ import { l as B, d as J } from "./index-Calnfnac.js";
5
+ import { a as v } from "./commonChunk-PB26mndo.js";
6
+ import { w as Q } from "./utilChunk-WRTGKXbU.js";
7
7
  const Z = (d, n, E, t, e) => {
8
8
  const g = L(t), m = () => ({
9
9
  // note order matters! see buildUpdateState. These fields are set in order, so disable modal first, then set loading to false, etc.
@@ -17,24 +17,24 @@ function z(w, d) {
17
17
  }
18
18
  var O = { exports: {} };
19
19
  (function(w, d) {
20
- var b = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof R < "u" && R, y = function() {
20
+ var b = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof R < "u" && R, y = (function() {
21
21
  function p() {
22
22
  this.fetch = !1, this.DOMException = b.DOMException;
23
23
  }
24
24
  return p.prototype = b, new p();
25
- }();
25
+ })();
26
26
  (function(p) {
27
27
  (function(u) {
28
28
  var a = typeof p < "u" && p || typeof self < "u" && self || typeof a < "u" && a, f = {
29
29
  searchParams: "URLSearchParams" in a,
30
30
  iterable: "Symbol" in a && "iterator" in Symbol,
31
- blob: "FileReader" in a && "Blob" in a && function() {
31
+ blob: "FileReader" in a && "Blob" in a && (function() {
32
32
  try {
33
33
  return new Blob(), !0;
34
34
  } catch {
35
35
  return !1;
36
36
  }
37
- }(),
37
+ })(),
38
38
  formData: "FormData" in a,
39
39
  arrayBuffer: "ArrayBuffer" in a
40
40
  };