@sheerid/jslib-nightly 2.104.0-alpha.2 → 2.106.0-alpha.0

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 (461) hide show
  1. package/__tests__/__helpers__/renderers.d.ts +5 -5
  2. package/_mysheerid-preview.css +4 -4
  3. package/_mysheerid-preview.js +18343 -16668
  4. package/_mysheerid-preview.js.map +1 -1
  5. package/chunk/{EmailLoopPending-Dzs07hxx.js → EmailLoopPending-Dtf0p85F.js} +18 -18
  6. package/chunk/{EmailLoopPending-CKTAwQQA.js.map → EmailLoopPending-Dtf0p85F.js.map} +1 -1
  7. package/chunk/{EmailLoopPending-CKTAwQQA.js → EmailLoopPending-Dy8mLFvV.js} +18 -18
  8. package/chunk/{EmailLoopPending-Dzs07hxx.js.map → EmailLoopPending-Dy8mLFvV.js.map} +1 -1
  9. package/chunk/LicensedProfessionalOrganizationComponent-BYijEfDT.js +55 -0
  10. package/chunk/LicensedProfessionalOrganizationComponent-BYijEfDT.js.map +1 -0
  11. package/chunk/LicensedProfessionalOrganizationComponent-CiYU-2dW.js +51 -0
  12. package/chunk/LicensedProfessionalOrganizationComponent-CiYU-2dW.js.map +1 -0
  13. package/chunk/{Onfido-CMH3IUna.js → Onfido-AyvUk6wg.js} +28 -28
  14. package/chunk/{Onfido-CMH3IUna.js.map → Onfido-AyvUk6wg.js.map} +1 -1
  15. package/chunk/{StepIDCheckLoopOnfido-lChJAp_W.js → StepIDCheckLoopOnfido-CmNwFqjD.js} +13 -12
  16. package/chunk/{StepIDCheckLoopOnfido-C9iUX8TC.js.map → StepIDCheckLoopOnfido-CmNwFqjD.js.map} +1 -1
  17. package/{lib/StepIDCheckLoopOnfido-tTk18P23.js → chunk/StepIDCheckLoopOnfido-DtbplNxs.js} +26 -27
  18. package/chunk/{StepIDCheckLoopOnfido-lChJAp_W.js.map → StepIDCheckLoopOnfido-DtbplNxs.js.map} +1 -1
  19. package/chunk/{StepIDCheckLoopRegula-BB8xA4nn.js → StepIDCheckLoopRegula-RoX971sR.js} +59 -85
  20. package/chunk/StepIDCheckLoopRegula-RoX971sR.js.map +1 -0
  21. package/chunk/{StepIDCheckLoopRegula-D8XhToQz.js → StepIDCheckLoopRegula-oqf-QxHT.js} +59 -85
  22. package/chunk/StepIDCheckLoopRegula-oqf-QxHT.js.map +1 -0
  23. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-ClKql0Nd.js → StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js} +48 -48
  24. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-ClKql0Nd.js.map → StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js.map} +1 -1
  25. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DXkei7Fp.js → StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js} +48 -48
  26. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DXkei7Fp.js.map → StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js.map} +1 -1
  27. package/chunk/ar-CtJ_9k3U.js +4 -4
  28. package/chunk/bg-CWxXfiDq.js +4 -4
  29. package/chunk/bn-IN-Dpq_hCqt.js +4 -4
  30. package/chunk/cs-HevyelX7.js +4 -4
  31. package/chunk/da-6QXhWjWH.js +4 -4
  32. package/chunk/de-ChuCvRLv.js +4 -4
  33. package/chunk/el-3IAhABcN.js +4 -4
  34. package/chunk/en-GB-ByNBaer-.js +4 -4
  35. package/chunk/es-CL_dUc9X.js +4 -4
  36. package/chunk/es-ES-CW4At4Ol.js +4 -4
  37. package/chunk/fi-D8cIebkk.js +4 -4
  38. package/chunk/fr-BDU-1C6f.js +4 -4
  39. package/chunk/fr-CA-Dc02rv8D.js +4 -4
  40. package/chunk/ga-P7eP-INQ.js +4 -4
  41. package/chunk/hi-IN-DlmwjoqH.js +4 -4
  42. package/chunk/hr-CT_VP_lm.js +4 -4
  43. package/chunk/hu-I8Z1uXsR.js +4 -4
  44. package/chunk/id-CUPTGKOT.js +4 -4
  45. package/chunk/{index-DGGRPaEI.js → index-4APUDd8S.js} +27 -27
  46. package/chunk/{index-DGGRPaEI.js.map → index-4APUDd8S.js.map} +1 -1
  47. package/chunk/{index-BDsZCFuU.js → index-9OD0Bw98.js} +58 -58
  48. package/chunk/{index-D6oLMvTq.js.map → index-9OD0Bw98.js.map} +1 -1
  49. package/chunk/index-B-PpnUEO.js +52 -0
  50. package/chunk/index-B-PpnUEO.js.map +1 -0
  51. package/chunk/{index-BW4s6-PH.js → index-B8F8N-JM.js} +90 -89
  52. package/chunk/index-B8F8N-JM.js.map +1 -0
  53. package/chunk/{index-BGGHZBWq.js → index-B8KPM--K.js} +48 -56
  54. package/chunk/{index-BGGHZBWq.js.map → index-B8KPM--K.js.map} +1 -1
  55. package/chunk/{index-DhpucFa7.js → index-BD2bjH-C.js} +5 -5
  56. package/{lib/index-CZodZNg-.js.map → chunk/index-BD2bjH-C.js.map} +1 -1
  57. package/chunk/{index-Dba2dHcR.js → index-BD_a0MZT.js} +21 -21
  58. package/chunk/{index-DPv0lytr.js.map → index-BD_a0MZT.js.map} +1 -1
  59. package/chunk/{index-DnCqjuSC.js → index-BDrKYann.js} +26 -26
  60. package/chunk/{index-DnCqjuSC.js.map → index-BDrKYann.js.map} +1 -1
  61. package/chunk/{index-CblWzXDU.js → index-BTR4RdFx.js} +22 -22
  62. package/chunk/{index-UGfD9tnj.js.map → index-BTR4RdFx.js.map} +1 -1
  63. package/chunk/{index-Bld-AWYE.js → index-Bi9QXN5x.js} +13 -13
  64. package/chunk/{index-CZjGTko2.js.map → index-Bi9QXN5x.js.map} +1 -1
  65. package/chunk/{index-B1579hxf.js → index-Bmq6cJ3F.js} +26 -26
  66. package/{lib/index-qTuKj59y.js.map → chunk/index-Bmq6cJ3F.js.map} +1 -1
  67. package/chunk/{index-DPv0lytr.js → index-BpZoH-Wz.js} +21 -21
  68. package/chunk/{index-Dba2dHcR.js.map → index-BpZoH-Wz.js.map} +1 -1
  69. package/chunk/{index-BjaCS2a8.js → index-BuX76GyE.js} +34 -34
  70. package/{lib/index-BF3H-Cda.js.map → chunk/index-BuX76GyE.js.map} +1 -1
  71. package/chunk/{index-CfUabHav.js → index-C2h0Wj84.js} +48 -56
  72. package/chunk/{index-CfUabHav.js.map → index-C2h0Wj84.js.map} +1 -1
  73. package/chunk/{index-B5okgMmp.js → index-C8MQD8EK.js} +27 -27
  74. package/chunk/{index-B5okgMmp.js.map → index-C8MQD8EK.js.map} +1 -1
  75. package/chunk/{index-CCUi9Uhw.js → index-C8u9IJUa.js} +11 -11
  76. package/chunk/{index-CCUi9Uhw.js.map → index-C8u9IJUa.js.map} +1 -1
  77. package/chunk/{index-D7O7vvSe.js → index-C96ntS0u.js} +26 -26
  78. package/chunk/{index-B1579hxf.js.map → index-C96ntS0u.js.map} +1 -1
  79. package/chunk/{index-DCKw4cP_.js → index-CG2W8lDZ.js} +42 -42
  80. package/chunk/{index-DCKw4cP_.js.map → index-CG2W8lDZ.js.map} +1 -1
  81. package/chunk/index-CHK5i4jj.js +48 -0
  82. package/chunk/index-CHK5i4jj.js.map +1 -0
  83. package/chunk/{index-DSrYVtDo.js → index-CTb96lOK.js} +10 -10
  84. package/chunk/{index-DSrYVtDo.js.map → index-CTb96lOK.js.map} +1 -1
  85. package/chunk/{index-Cq__fToG.js → index-CcRowarb.js} +5 -5
  86. package/chunk/{index-Cq__fToG.js.map → index-CcRowarb.js.map} +1 -1
  87. package/chunk/{index-BnPrfsM1.js → index-CeHu2Npu.js} +7 -7
  88. package/chunk/{index-BnPrfsM1.js.map → index-CeHu2Npu.js.map} +1 -1
  89. package/chunk/{index-UGfD9tnj.js → index-CepZL7Cr.js} +22 -22
  90. package/chunk/{index-CblWzXDU.js.map → index-CepZL7Cr.js.map} +1 -1
  91. package/chunk/{index-BvGP9l7M.js → index-CniY_P3e.js} +219 -237
  92. package/chunk/index-CniY_P3e.js.map +1 -0
  93. package/chunk/{index-Bb9hNLHu.js → index-DDyTUP55.js} +42 -42
  94. package/chunk/{index-Bb9hNLHu.js.map → index-DDyTUP55.js.map} +1 -1
  95. package/chunk/index-DIkWpujR.js +4 -4
  96. package/chunk/index-DIkWpujR.js.map +1 -1
  97. package/chunk/{index-D6oLMvTq.js → index-DKWjcFJK.js} +58 -58
  98. package/chunk/{index-BDsZCFuU.js.map → index-DKWjcFJK.js.map} +1 -1
  99. package/chunk/{index-B4B6qxaM.js → index-DLz31Fzh.js} +11 -11
  100. package/chunk/{index-BYMr8It7.js.map → index-DLz31Fzh.js.map} +1 -1
  101. package/chunk/{index-B8tKf2Rd.js → index-DO5Z3e-E.js} +34 -34
  102. package/chunk/{index-B8tKf2Rd.js.map → index-DO5Z3e-E.js.map} +1 -1
  103. package/chunk/{index-CjcHzfTY.js → index-DRlGAW07.js} +11 -11
  104. package/chunk/{index-CjcHzfTY.js.map → index-DRlGAW07.js.map} +1 -1
  105. package/chunk/{index-YmkMflXj.js → index-DVynViqA.js} +7 -7
  106. package/chunk/{index-YmkMflXj.js.map → index-DVynViqA.js.map} +1 -1
  107. package/chunk/{index-B92Kfyw6.js → index-Dg8t7-dm.js} +90 -89
  108. package/chunk/index-Dg8t7-dm.js.map +1 -0
  109. package/chunk/{index-DpYUZXus.js → index-DhGg9lvf.js} +26 -26
  110. package/chunk/{index-DpYUZXus.js.map → index-DhGg9lvf.js.map} +1 -1
  111. package/chunk/{index-QVvWIHrD.js → index-DtH8Qo7N.js} +51 -51
  112. package/chunk/{index-DFsuXQL_.js.map → index-DtH8Qo7N.js.map} +1 -1
  113. package/chunk/{index-BYMr8It7.js → index-DzqRsB7_.js} +11 -11
  114. package/chunk/{index-B4B6qxaM.js.map → index-DzqRsB7_.js.map} +1 -1
  115. package/chunk/{index-CEi_QkyI.js → index-FfXcSdRM.js} +219 -237
  116. package/chunk/index-FfXcSdRM.js.map +1 -0
  117. package/chunk/{index-CZjGTko2.js → index-FjzhfDlx.js} +13 -13
  118. package/chunk/{index-Bld-AWYE.js.map → index-FjzhfDlx.js.map} +1 -1
  119. package/chunk/{index-Cp0C-9fh.js → index-Gfy-1H7s.js} +10 -10
  120. package/{lib/index-QQE4f5yZ.js.map → chunk/index-Gfy-1H7s.js.map} +1 -1
  121. package/chunk/{index-DFsuXQL_.js → index-jFznw2e5.js} +51 -51
  122. package/chunk/{index-QVvWIHrD.js.map → index-jFznw2e5.js.map} +1 -1
  123. package/chunk/is-CUuXi4qZ.js +4 -4
  124. package/chunk/it-BNmynTsg.js +4 -4
  125. package/chunk/iw-FGzquR_X.js +4 -4
  126. package/chunk/ja-YgUpXA0l.js +4 -4
  127. package/chunk/ko-CuNS5J_M.js +4 -4
  128. package/chunk/lo-BEf8aFjR.js +4 -4
  129. package/chunk/lt-DvX1gz1a.js +4 -4
  130. package/chunk/ms-gSqM-Mfi.js +4 -4
  131. package/chunk/nl-BE-Cid5LFlN.js +4 -4
  132. package/chunk/nl-CUUTswxa.js +4 -4
  133. package/chunk/no-BvUqlShV.js +4 -4
  134. package/chunk/pl-CU8leZhI.js +4 -4
  135. package/chunk/pt-BR-CboWpHFi.js +4 -4
  136. package/chunk/pt-BnK7xRT_.js +4 -4
  137. package/chunk/ro-BfAyXxSW.js +4 -4
  138. package/chunk/ru-BD-YGPuQ.js +4 -4
  139. package/chunk/sk-CqsabpdG.js +4 -4
  140. package/chunk/sl-CeVAf0S_.js +4 -4
  141. package/chunk/sr-DSaHxcCQ.js +4 -4
  142. package/chunk/sv-DOyWYViy.js +4 -4
  143. package/chunk/sw-2Q7Jo6wp.js +4 -4
  144. package/chunk/th-BZ6F9sPf.js +4 -4
  145. package/chunk/tr-om80xrv2.js +4 -4
  146. package/chunk/uk-Dxugux8e.js +4 -4
  147. package/chunk/ur-OBILUeZ7.js +4 -4
  148. package/chunk/useCollectFieldsEndpoint-C5fsaYJe.js +4 -4
  149. package/chunk/useCollectFieldsEndpoint-C5fsaYJe.js.map +1 -1
  150. package/chunk/useCollectFieldsEndpoint-kmLFyUA-.js +4 -4
  151. package/chunk/useCollectFieldsEndpoint-kmLFyUA-.js.map +1 -1
  152. package/chunk/{useEmailFirstExperiment-CSa3DQll.js → useEmailFirstExperiment-BbDrKQEs.js} +29 -30
  153. package/chunk/{useEmailFirstExperiment-CSa3DQll.js.map → useEmailFirstExperiment-BbDrKQEs.js.map} +1 -1
  154. package/chunk/{useEmailFirstExperiment-DZ1B78ke.js → useEmailFirstExperiment-CgU-itQI.js} +29 -30
  155. package/chunk/{useEmailFirstExperiment-DZ1B78ke.js.map → useEmailFirstExperiment-CgU-itQI.js.map} +1 -1
  156. package/chunk/vi-BOR2GuRI.js +4 -4
  157. package/chunk/zh-HK-BI-IHOGG.js +4 -4
  158. package/chunk/zh-eoMG5RFC.js +4 -4
  159. package/chunk/zu-D_A8wcJW.js +4 -4
  160. package/dev/programIds.d.ts +1 -1
  161. package/es6.css +4 -4
  162. package/jslib.js +25 -25
  163. package/lib/{EmailLoopPending-9TIqOjh0.js → EmailLoopPending-DHyoi6Bo.js} +12 -12
  164. package/lib/{EmailLoopPending-9TIqOjh0.js.map → EmailLoopPending-DHyoi6Bo.js.map} +1 -1
  165. package/lib/LicensedProfessionalOrganizationComponent-DKJY8_Bo.js +52 -0
  166. package/lib/LicensedProfessionalOrganizationComponent-DKJY8_Bo.js.map +1 -0
  167. package/lib/{Onfido-CMH3IUna.js → Onfido-AyvUk6wg.js} +28 -28
  168. package/lib/{Onfido-CMH3IUna.js.map → Onfido-AyvUk6wg.js.map} +1 -1
  169. package/lib/StepCollectMilitaryStatusComponent-C3-_M61B.js +11 -0
  170. package/lib/{StepCollectMilitaryStatusComponent-D9AxEZrO.js.map → StepCollectMilitaryStatusComponent-C3-_M61B.js.map} +1 -1
  171. package/{chunk/StepIDCheckLoopOnfido-C9iUX8TC.js → lib/StepIDCheckLoopOnfido-mkqkDAc7.js} +13 -11
  172. package/lib/{StepIDCheckLoopOnfido-tTk18P23.js.map → StepIDCheckLoopOnfido-mkqkDAc7.js.map} +1 -1
  173. package/lib/{StepIDCheckLoopRegula-BzHh3YEv.js → StepIDCheckLoopRegula-8i7ukSzj.js} +22 -21
  174. package/lib/StepIDCheckLoopRegula-8i7ukSzj.js.map +1 -0
  175. package/lib/{StepInactiveMilitaryPersonalInfoComponent-DCgIcHvZ.js → StepInactiveMilitaryPersonalInfoComponent-C5mr8-zz.js} +45 -45
  176. package/lib/{StepInactiveMilitaryPersonalInfoComponent-DCgIcHvZ.js.map → StepInactiveMilitaryPersonalInfoComponent-C5mr8-zz.js.map} +1 -1
  177. package/lib/VerificationApiUtils-DblEVBsu.js +23 -0
  178. package/lib/{VerificationApiUtils-hb7EqMfE.js.map → VerificationApiUtils-DblEVBsu.js.map} +1 -1
  179. package/lib/ar-CtJ_9k3U.js +4 -4
  180. package/lib/bg-CWxXfiDq.js +4 -4
  181. package/lib/bn-IN-Dpq_hCqt.js +4 -4
  182. package/lib/cs-HevyelX7.js +4 -4
  183. package/lib/da-6QXhWjWH.js +4 -4
  184. package/lib/de-ChuCvRLv.js +4 -4
  185. package/lib/el-3IAhABcN.js +4 -4
  186. package/lib/en-GB-ByNBaer-.js +4 -4
  187. package/lib/es-CL_dUc9X.js +4 -4
  188. package/lib/es-ES-CW4At4Ol.js +4 -4
  189. package/lib/{es6-C6MdgCMX.js → es6-Bax-ZIK1.js} +13137 -11845
  190. package/lib/es6-Bax-ZIK1.js.map +1 -0
  191. package/lib/fi-D8cIebkk.js +4 -4
  192. package/lib/fr-BDU-1C6f.js +4 -4
  193. package/lib/fr-CA-Dc02rv8D.js +4 -4
  194. package/lib/ga-P7eP-INQ.js +4 -4
  195. package/lib/hi-IN-DlmwjoqH.js +4 -4
  196. package/lib/hr-CT_VP_lm.js +4 -4
  197. package/lib/hu-I8Z1uXsR.js +4 -4
  198. package/lib/id-CUPTGKOT.js +4 -4
  199. package/lib/index-B9-1tzv2.js +28 -0
  200. package/lib/{index-BplQ7imw.js.map → index-B9-1tzv2.js.map} +1 -1
  201. package/lib/{index-QQE4f5yZ.js → index-BYh8hnmi.js} +8 -8
  202. package/{chunk/index-Cp0C-9fh.js.map → lib/index-BYh8hnmi.js.map} +1 -1
  203. package/lib/{index-B0q6ScmE.js → index-Bor8xQwD.js} +27 -27
  204. package/lib/{index-B0q6ScmE.js.map → index-Bor8xQwD.js.map} +1 -1
  205. package/lib/{index-qTuKj59y.js → index-By8PwRxR.js} +34 -34
  206. package/{chunk/index-D7O7vvSe.js.map → lib/index-By8PwRxR.js.map} +1 -1
  207. package/lib/{index-vHwl9Ouo.js → index-C0t3HeI1.js} +30 -30
  208. package/lib/{index-vHwl9Ouo.js.map → index-C0t3HeI1.js.map} +1 -1
  209. package/lib/index-C1FdZaTA.js +11 -0
  210. package/lib/index-C1FdZaTA.js.map +1 -0
  211. package/lib/index-CEI7rrAW.js +11 -0
  212. package/lib/index-CEI7rrAW.js.map +1 -0
  213. package/lib/{index-BJIfbxEt.js → index-CFmLOU-H.js} +9 -9
  214. package/lib/{index-BJIfbxEt.js.map → index-CFmLOU-H.js.map} +1 -1
  215. package/lib/{index-B4tPRnWs.js → index-CFof6_XO.js} +76 -75
  216. package/lib/index-CFof6_XO.js.map +1 -0
  217. package/lib/{index-CZodZNg-.js → index-CW1HjY48.js} +5 -5
  218. package/{chunk/index-DhpucFa7.js.map → lib/index-CW1HjY48.js.map} +1 -1
  219. package/lib/{index-DyBgfOX7.js → index-Cc79lE_w.js} +385 -402
  220. package/lib/index-Cc79lE_w.js.map +1 -0
  221. package/lib/{index-BF3H-Cda.js → index-CtBDD9Ra.js} +24 -24
  222. package/{chunk/index-BjaCS2a8.js.map → lib/index-CtBDD9Ra.js.map} +1 -1
  223. package/lib/{index-D4eERCAu.js → index-D5WHNimv.js} +5 -5
  224. package/lib/{index-D4eERCAu.js.map → index-D5WHNimv.js.map} +1 -1
  225. package/lib/{index-cfFxpmJ0.js → index-D8RA_3zM.js} +5 -5
  226. package/lib/{index-cfFxpmJ0.js.map → index-D8RA_3zM.js.map} +1 -1
  227. package/lib/index-DIkWpujR.js +4 -4
  228. package/lib/index-DIkWpujR.js.map +1 -1
  229. package/lib/{index-Cp36Pcoi.js → index-DNy9MAMH.js} +22 -22
  230. package/lib/{index-Cp36Pcoi.js.map → index-DNy9MAMH.js.map} +1 -1
  231. package/lib/index-DY02gOyn.js +11 -0
  232. package/lib/index-DY02gOyn.js.map +1 -0
  233. package/lib/{index-CZjkIENw.js → index-Dr1CSaxo.js} +49 -49
  234. package/lib/{index-CZjkIENw.js.map → index-Dr1CSaxo.js.map} +1 -1
  235. package/lib/{index-BpszpgeX.js → index-DsOGDkYS.js} +26 -26
  236. package/lib/{index-BpszpgeX.js.map → index-DsOGDkYS.js.map} +1 -1
  237. package/lib/{index-uG_slt2C.js → index-DxDA2pF0.js} +7 -7
  238. package/lib/{index-uG_slt2C.js.map → index-DxDA2pF0.js.map} +1 -1
  239. package/lib/index-VwmdVgfA.js +11 -0
  240. package/lib/index-VwmdVgfA.js.map +1 -0
  241. package/lib/{index-DKrXU7hs.js → index-cY-LRN6y.js} +24 -24
  242. package/lib/{index-DKrXU7hs.js.map → index-cY-LRN6y.js.map} +1 -1
  243. package/lib/{index-A2uleoGr.js → index-rFJ4gEYd.js} +58 -58
  244. package/lib/{index-A2uleoGr.js.map → index-rFJ4gEYd.js.map} +1 -1
  245. package/lib/{index-N-dolDtu.js → index-sDIVnQkX.js} +26 -26
  246. package/lib/{index-N-dolDtu.js.map → index-sDIVnQkX.js.map} +1 -1
  247. package/lib/is-CUuXi4qZ.js +4 -4
  248. package/lib/it-BNmynTsg.js +4 -4
  249. package/lib/iw-FGzquR_X.js +4 -4
  250. package/lib/ja-YgUpXA0l.js +4 -4
  251. package/lib/ko-CuNS5J_M.js +4 -4
  252. package/lib/lo-BEf8aFjR.js +4 -4
  253. package/lib/lt-DvX1gz1a.js +4 -4
  254. package/lib/ms-gSqM-Mfi.js +4 -4
  255. package/lib/nl-BE-Cid5LFlN.js +4 -4
  256. package/lib/nl-CUUTswxa.js +4 -4
  257. package/lib/no-BvUqlShV.js +4 -4
  258. package/lib/pl-CU8leZhI.js +4 -4
  259. package/lib/pt-BR-CboWpHFi.js +4 -4
  260. package/lib/pt-BnK7xRT_.js +4 -4
  261. package/lib/ro-BfAyXxSW.js +4 -4
  262. package/lib/ru-BD-YGPuQ.js +4 -4
  263. package/lib/sk-CqsabpdG.js +4 -4
  264. package/lib/sl-CeVAf0S_.js +4 -4
  265. package/lib/sr-DSaHxcCQ.js +4 -4
  266. package/lib/sv-DOyWYViy.js +4 -4
  267. package/lib/sw-2Q7Jo6wp.js +4 -4
  268. package/lib/th-BZ6F9sPf.js +4 -4
  269. package/lib/tr-om80xrv2.js +4 -4
  270. package/lib/uk-Dxugux8e.js +4 -4
  271. package/lib/ur-OBILUeZ7.js +4 -4
  272. package/lib/{useCollectFieldsEndpoint-wNz5nMBP.js → useCollectFieldsEndpoint-CHeRlgj7.js} +8 -8
  273. package/lib/{useCollectFieldsEndpoint-wNz5nMBP.js.map → useCollectFieldsEndpoint-CHeRlgj7.js.map} +1 -1
  274. package/lib/{useEmailFirstExperiment-Bk3uBcKy.js → useEmailFirstExperiment-DFQvJdHp.js} +6 -7
  275. package/lib/{useEmailFirstExperiment-Bk3uBcKy.js.map → useEmailFirstExperiment-DFQvJdHp.js.map} +1 -1
  276. package/lib/vi-BOR2GuRI.js +4 -4
  277. package/lib/zh-HK-BI-IHOGG.js +4 -4
  278. package/lib/zh-eoMG5RFC.js +4 -4
  279. package/lib/zu-D_A8wcJW.js +4 -4
  280. package/package.json +4 -4
  281. package/sheerid-install.css +4 -4
  282. package/sheerid-install.js +6 -6
  283. package/sheerid-install.js.map +1 -1
  284. package/sheerid.css +5 -5
  285. package/sheerid.js +18542 -16867
  286. package/sheerid.js.map +1 -1
  287. package/src/components/AcceptableUploadsComponent/AcceptableUploadsComponent.d.ts +1 -1
  288. package/src/components/AcceptableUploadsComponent/getLegacyAcceptableUploads.d.ts +1 -1
  289. package/src/components/Button/Button.d.ts +1 -0
  290. package/src/components/CopyToClipboard/CopyToClipboardComponent.d.ts +2 -1
  291. package/src/components/CustomCssContext/CustomCssContextProvider.d.ts +1 -1
  292. package/src/components/DateComponent/DateComponent.d.ts +2 -2
  293. package/src/components/ExtraMessage.d.ts +1 -1
  294. package/src/components/FaqLink/FaqLinkComponent.d.ts +1 -1
  295. package/src/components/FeatureFlags/ExperimentComponent/ExperimentComponent.d.ts +4 -4
  296. package/src/components/FetchOrganizationsComponent.d.ts +1 -1
  297. package/src/components/FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent.d.ts +1 -1
  298. package/src/components/FormFields/Address/AddressComponent.d.ts +2 -2
  299. package/src/components/FormFields/BirthDate/BirthDateComponent.d.ts +1 -1
  300. package/src/components/FormFields/BranchOfService/BranchOfServiceComponent.d.ts +2 -2
  301. package/src/components/FormFields/CVECNumber/CVECNumberComponent.d.ts +2 -2
  302. package/src/components/FormFields/ChangeLocale/ChangeLocaleComponent.d.ts +3 -3
  303. package/src/components/FormFields/City/City.d.ts +2 -2
  304. package/src/components/FormFields/CollegeName/CollegeNameComponent.d.ts +2 -2
  305. package/src/components/FormFields/Company/CompanyComponent.d.ts +2 -2
  306. package/src/components/FormFields/Country/CountryComponent.d.ts +2 -2
  307. package/src/components/FormFields/Country/CountryComponentWrapper.d.ts +2 -2
  308. package/src/components/FormFields/DischargeDate/DischargeDateComponent.d.ts +1 -1
  309. package/src/components/FormFields/DriverLicenseNumber/DriverLicenseNumberComponent.d.ts +2 -2
  310. package/src/components/FormFields/EBTCardNumber/EBTCardNumberComponent.d.ts +2 -2
  311. package/src/components/FormFields/Email/EmailComponent.d.ts +2 -2
  312. package/src/components/FormFields/EmailFirstCollectInfo/EmailLookupResponseMessageComponent.d.ts +1 -1
  313. package/src/components/FormFields/EmailFirstCollectInfo/useEmailFirstExperiment.d.ts +1 -1
  314. package/src/components/FormFields/FirstName/FirstNameComponent.d.ts +2 -2
  315. package/src/components/FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent.d.ts +2 -2
  316. package/src/components/FormFields/FormFieldCustom/FormFieldCustom.d.ts +2 -2
  317. package/src/components/FormFields/FormFieldInputSelect/FormFieldInputSelect.d.ts +1 -1
  318. package/src/components/FormFields/FormFieldRadio/FormFieldRadio.d.ts +2 -2
  319. package/src/components/FormFields/FormFieldSelect/FormFieldSelect.d.ts +2 -2
  320. package/src/components/FormFields/FormFieldText/FormFieldText.d.ts +1 -1
  321. package/src/components/FormFields/FormFieldTypeahead/FormFieldTypeahead.d.ts +2 -2
  322. package/src/components/FormFields/LastName/LastNameComponent.d.ts +2 -2
  323. package/src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.d.ts +2 -2
  324. package/src/components/FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent.d.ts +2 -2
  325. package/src/components/FormFields/MarketConsentWrapper/MarketConsentWrapperComponent.d.ts +1 -1
  326. package/src/components/FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent.d.ts +2 -2
  327. package/src/components/FormFields/MemberId/MemberIdComponent.d.ts +2 -2
  328. package/src/components/FormFields/MembershipOrganization/MembershipOrganizationComponent.d.ts +2 -2
  329. package/src/components/FormFields/OptIn/OptInComponent.d.ts +1 -1
  330. package/src/components/FormFields/OverrideCode/OverrideCodeComponent.d.ts +2 -2
  331. package/src/components/FormFields/PhoneNumber/PhoneNumberComponent.d.ts +2 -2
  332. package/src/components/FormFields/PostalCode/PostalCodeComponent.d.ts +2 -2
  333. package/src/components/FormFields/SMSCode/SMSCodeComponent.d.ts +2 -2
  334. package/src/components/FormFields/SSN/SSN.d.ts +2 -2
  335. package/src/components/FormFields/State/State.d.ts +2 -2
  336. package/src/components/FormFields/State/StateSelectComponent.d.ts +2 -2
  337. package/src/components/FormFields/Status/StatusComponent.d.ts +2 -2
  338. package/src/components/FormFields/TeacherSchool/TeacherSchoolComponent.d.ts +2 -2
  339. package/src/components/FormFooter/FooterTextComponent.d.ts +1 -1
  340. package/src/components/FormFooter/FormFooterComponent.d.ts +1 -1
  341. package/src/components/FormHeader/FormHeaderComponent.d.ts +1 -1
  342. package/src/components/FormHeader/StepHeaders/PersonalInfoHeaderComponent.d.ts +1 -1
  343. package/src/components/FormInputs/InputRadio/InputRadio.d.ts +1 -1
  344. package/src/components/FormInputs/InputSelect/InputSelectComponent.d.ts +1 -1
  345. package/src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.d.ts +1 -1
  346. package/src/components/FormInputs/PostalCodeInput/PostalCodeInputComponent.d.ts +1 -1
  347. package/src/components/FormInputs/Select/SelectComponent.d.ts +1 -1
  348. package/src/components/FormInputs/Select/SelectList/SelectListComponent.d.ts +1 -1
  349. package/src/components/FormInputs/Typeahead/TypeaheadComponent.d.ts +1 -1
  350. package/src/components/FormInputs/Typeahead/TypeaheadComponentHelper.d.ts +1 -1
  351. package/src/components/HowDoesVerifyingWork/HowDoesVerifyingWorkComponent.d.ts +1 -1
  352. package/src/components/Layout/Layout.d.ts +1 -1
  353. package/src/components/LoadStepComponent.d.ts +1 -1
  354. package/src/components/LoadingScreen/LoadingScreenComponent.d.ts +1 -1
  355. package/src/components/LoadingScreen/LoadingScreenMessage.d.ts +1 -1
  356. package/src/components/LogoComponent/LogoComponent.d.ts +1 -1
  357. package/src/components/NewVerificationComponent.d.ts +3 -3
  358. package/src/components/NewVerificationInnerComponent.d.ts +1 -1
  359. package/src/components/OrganizationList/OrganizationListComponent.d.ts +1 -1
  360. package/src/components/PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton.d.ts +2 -2
  361. package/src/components/PersonalInfoStepWrapper/PersonalInfoStepWrapper.d.ts +2 -1
  362. package/src/components/PoweredBy/PoweredByComponent.d.ts +1 -1
  363. package/src/components/PrivacyPolicyLink/PrivacyPolicyLinkComponent.d.ts +2 -2
  364. package/src/components/RewardsRemaining/RewardsRemainingComponent.d.ts +1 -1
  365. package/src/components/SingleSignOnComponent.d.ts +2 -2
  366. package/src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.d.ts +2 -2
  367. package/src/components/StepCollectIdentifier/StepCollectIdentifierComponent.d.ts +1 -1
  368. package/src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.d.ts +2 -2
  369. package/src/components/StepConsolation/StepConsolationComponent.d.ts +1 -1
  370. package/src/components/StepDocUpload/StepDocUploadComponent.d.ts +1 -1
  371. package/src/components/StepEmailLoop/EmailLoopCollectOrganizationEmail.d.ts +1 -1
  372. package/src/components/StepEmailLoop/EmailLoopPending.d.ts +1 -1
  373. package/src/components/StepEmailLoop/StepEmailLoopComponent.d.ts +2 -2
  374. package/src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.d.ts +1 -1
  375. package/src/components/StepError/StepErrorComponent.d.ts +2 -2
  376. package/src/components/StepFirstResponderPersonalInfo/StepFirstResponderPersonalInfoComponent.d.ts +1 -1
  377. package/src/components/StepIDCheckLoop/IdCheckLoopFooter/IdCheckLoopOnfidoFooter.d.ts +1 -1
  378. package/src/components/StepIDCheckLoop/IdCheckLoopFooter/IdCheckLoopRegulaFooter.d.ts +1 -1
  379. package/src/components/StepIDCheckLoop/Onfido/IdCheckLoopOnfido/IdCheckLoopOnfido.d.ts +2 -2
  380. package/src/components/StepIDCheckLoop/Onfido/StepIDCheckLoopOnfido/StepIDCheckLoopOnfido.d.ts +1 -1
  381. package/src/components/StepIDCheckLoop/Onfido/utils/getAndFormatOrderedStepCards.d.ts +1 -1
  382. package/src/components/StepIDCheckLoop/Regula/IdCheckLoopRegula/DisplayThumbnail.d.ts +1 -1
  383. package/src/components/StepIDCheckLoop/Regula/IdCheckLoopRegula/IdCheckLoopRegula.d.ts +1 -1
  384. package/src/components/StepIDCheckLoop/Regula/StepIDCheckLoopRegulaComponent/StepIDCheckLoopRegula.d.ts +1 -1
  385. package/src/components/StepIDCheckLoop/StepIDCheckLoopComponent.d.ts +1 -1
  386. package/src/components/StepIdentityPersonalInfo/StepDriverLicensePersonalInfoComponent.d.ts +1 -1
  387. package/src/components/StepIdentityPersonalInfo/StepGeneralIdentityPersonalInfoComponent.d.ts +1 -1
  388. package/src/components/StepIdentityPersonalInfo/StepHybridIdentityPersonalInfoComponent.d.ts +1 -1
  389. package/src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.d.ts +1 -1
  390. package/src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.d.ts +1 -1
  391. package/src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.d.ts +1 -1
  392. package/src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.d.ts +1 -1
  393. package/src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.d.ts +1 -1
  394. package/src/components/StepMilitaryPersonalInfo/StepInactiveMilitaryPersonalInfoComponent.d.ts +1 -1
  395. package/src/components/StepMoverPersonalInfo/StepMoverPersonalInfoComponent.d.ts +1 -1
  396. package/src/components/StepOverrideComponent/StepOverrideComponent.d.ts +2 -2
  397. package/src/components/StepPending/ReviewPendingComponent.d.ts +1 -1
  398. package/src/components/StepPending/SingleSignOnPendingComponent.d.ts +2 -2
  399. package/src/components/StepPending/StepPendingComponent.d.ts +1 -1
  400. package/src/components/StepPending/ThirdPartyLoopPendingComponent.d.ts +1 -1
  401. package/src/components/StepSMSLoop/StepSMSLoopComponent.d.ts +2 -2
  402. package/src/components/StepSSO/StepSSOComponent.d.ts +1 -1
  403. package/src/components/StepSeniorPersonalInfo/StepSeniorPersonalInfoComponent.d.ts +1 -1
  404. package/src/components/StepSocialSecurityNumber/StepSocialSecurityNumber.d.ts +1 -1
  405. package/src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.d.ts +1 -1
  406. package/src/components/StepSuccess/StepSuccessComponent.d.ts +1 -1
  407. package/src/components/StepTeacherPersonalInfo/StepTeacherPersonalInfoComponent.d.ts +1 -1
  408. package/src/components/StepThirdPartyLoop/StepThirdPartyLoopComponent.d.ts +3 -3
  409. package/src/components/TestModeFlag/TestModeFlagComponent.d.ts +1 -1
  410. package/src/components/UploadInfoComponent/UploadInfoComponent.d.ts +1 -1
  411. package/src/components/VerificationForm/VerificationFormComponent.d.ts +1 -1
  412. package/src/es5Bindings/VerificationFormEs5.d.ts +1 -1
  413. package/src/lib/ProgramTheme/programThemeGetters.d.ts +1 -1
  414. package/src/lib/ServerApi/ApiUrls.d.ts +1 -1
  415. package/src/lib/ServerApi/VerificationApiClient.d.ts +1 -1
  416. package/src/lib/ServerApi/VerificationHelpRequestApi.d.ts +1 -1
  417. package/src/lib/VerificationService/VerificationServiceActions.d.ts +1 -1
  418. package/src/lib/hooks/index.d.ts +1 -1
  419. package/src/lib/installScript/_mysheerid-preview.d.ts +2 -2
  420. package/src/lib/installScript/affinity.d.ts +1 -1
  421. package/src/lib/installScript/iframe.d.ts +1 -1
  422. package/src/lib/installScript/index.d.ts +3 -3
  423. package/src/lib/installScript/modal.d.ts +1 -1
  424. package/src/lib/state/contextHooks.d.ts +1 -1
  425. package/src/lib/types/runtimeTypes.d.ts +1 -1
  426. package/src/lib/types/types.d.ts +8 -7
  427. package/src/lib/utils/customTagReplacer/index.d.ts +1 -1
  428. package/src/lib/utils/stepComponentHelpers/stepComponentHelpers.d.ts +2 -2
  429. package/src/lib/utils/structures/FormSelectChoice.d.ts +1 -1
  430. package/types-reference.zip +0 -0
  431. package/chunk/LicensedProfessionalOrganizationComponent-BNNNPaDn.js +0 -45
  432. package/chunk/LicensedProfessionalOrganizationComponent-BNNNPaDn.js.map +0 -1
  433. package/chunk/LicensedProfessionalOrganizationComponent-trZr_eIW.js +0 -49
  434. package/chunk/LicensedProfessionalOrganizationComponent-trZr_eIW.js.map +0 -1
  435. package/chunk/StepIDCheckLoopRegula-BB8xA4nn.js.map +0 -1
  436. package/chunk/StepIDCheckLoopRegula-D8XhToQz.js.map +0 -1
  437. package/chunk/index-B92Kfyw6.js.map +0 -1
  438. package/chunk/index-BW4s6-PH.js.map +0 -1
  439. package/chunk/index-BupTUiiS.js +0 -27
  440. package/chunk/index-BupTUiiS.js.map +0 -1
  441. package/chunk/index-BvGP9l7M.js.map +0 -1
  442. package/chunk/index-CEi_QkyI.js.map +0 -1
  443. package/chunk/index-iZ8pO5if.js +0 -31
  444. package/chunk/index-iZ8pO5if.js.map +0 -1
  445. package/lib/LicensedProfessionalOrganizationComponent-BdlRIkjK.js +0 -46
  446. package/lib/LicensedProfessionalOrganizationComponent-BdlRIkjK.js.map +0 -1
  447. package/lib/StepCollectMilitaryStatusComponent-D9AxEZrO.js +0 -11
  448. package/lib/StepIDCheckLoopRegula-BzHh3YEv.js.map +0 -1
  449. package/lib/VerificationApiUtils-hb7EqMfE.js +0 -21
  450. package/lib/es6-C6MdgCMX.js.map +0 -1
  451. package/lib/index-B4tPRnWs.js.map +0 -1
  452. package/lib/index-BplQ7imw.js +0 -28
  453. package/lib/index-BvlWWXiT.js +0 -11
  454. package/lib/index-BvlWWXiT.js.map +0 -1
  455. package/lib/index-CJvrsSXZ.js +0 -11
  456. package/lib/index-CJvrsSXZ.js.map +0 -1
  457. package/lib/index-DLUpqP9u.js +0 -11
  458. package/lib/index-DLUpqP9u.js.map +0 -1
  459. package/lib/index-DyBgfOX7.js.map +0 -1
  460. package/lib/index-wzVNqFMX.js +0 -11
  461. package/lib/index-wzVNqFMX.js.map +0 -1
@@ -4,14 +4,15 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.104.0-alpha.2
8
- * BUILD_TIMESTAMP: 1746142396526
9
- * BUILD_DATE: Thu May 01 2025 23:33:16 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 890118c01f0c12b348ca343732208200aed0c6c3
7
+ * VERSION: 2.106.0-alpha.0
8
+ * BUILD_TIMESTAMP: 1746221803457
9
+ * BUILD_DATE: Fri May 02 2025 21:36:43 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: 9044dfe474729d087a9b0854f585172ebebac94e
11
11
  */
12
- import { l as v, j as e, r as f, a as n, U as F, R as u, L as R, A as y, V as w, b8 as M, k as S, a1 as m, a2 as T } from "../_mysheerid-preview.js";
13
- const O = async (s, i, o) => {
14
- v.info(`uploading files to ${s}`);
12
+ import { l as b, j as e, af as I, b as n, J as L, R as h, ag as R, A as v, ah as M, V as S, k as T, Y as u } from "../_mysheerid-preview.js";
13
+ import { S as w } from "./index-B-PpnUEO.js";
14
+ const U = async (s, i, o) => {
15
+ b.info(`uploading files to ${s}`);
15
16
  const t = new FormData();
16
17
  return t.append("frontImage", i), t.append("backImage", o), fetch(s, {
17
18
  method: "POST",
@@ -39,40 +40,16 @@ const O = async (s, i, o) => {
39
40
  "aria-label": `Remove file ${t}`,
40
41
  className: "sid-step-id-check-loop__remove-btn",
41
42
  onClick: () => o(void 0),
42
- onKeyDown: (r) => i(r, o)
43
+ onKeyDown: (c) => i(c, o)
43
44
  }
44
45
  )
45
46
  ] })
46
47
  ] });
47
48
  };
48
- function U({
49
- title: s,
50
- titleId: i,
51
- ...o
52
- }, t) {
53
- return /* @__PURE__ */ f.createElement("svg", Object.assign({
54
- xmlns: "http://www.w3.org/2000/svg",
55
- fill: "none",
56
- viewBox: "0 0 24 24",
57
- strokeWidth: 1.5,
58
- stroke: "currentColor",
59
- "aria-hidden": "true",
60
- "data-slot": "icon",
61
- ref: t,
62
- "aria-labelledby": i
63
- }, o), s ? /* @__PURE__ */ f.createElement("title", {
64
- id: i
65
- }, s) : null, /* @__PURE__ */ f.createElement("path", {
66
- strokeLinecap: "round",
67
- strokeLinejoin: "round",
68
- d: "M12 4.5v15m7.5-7.5h-15"
69
- }));
70
- }
71
- const D = f.forwardRef(U), P = D;
72
- var g = /* @__PURE__ */ ((s) => (s.FRONT = "FRONT", s.BACK = "BACK", s))(g || {});
49
+ var f = /* @__PURE__ */ ((s) => (s.FRONT = "FRONT", s.BACK = "BACK", s))(f || {});
73
50
  const x = ({ addFile: s, upload: i, imageSide: o }) => {
74
- const t = o === "FRONT", d = t ? "addFileFront" : "addFileBack", r = t ? "sid-font-photo-input" : "sid-back-photo-input", c = t ? "add front file" : "add back file", h = t ? "sid-font-photo-input" : "sid-back-photo-input";
75
- return /* @__PURE__ */ e.jsx("div", { className: "sid-step-id-check-loop__file-upload-container", children: /* @__PURE__ */ e.jsx("label", { className: "sid-step-id-check-loop__label", htmlFor: r, "aria-label": c, children: /* @__PURE__ */ e.jsxs(
51
+ const t = o === "FRONT", d = t ? "addFileFront" : "addFileBack", c = t ? "sid-font-photo-input" : "sid-back-photo-input", r = t ? "add front file" : "add back file", m = t ? "sid-font-photo-input" : "sid-back-photo-input";
52
+ return /* @__PURE__ */ e.jsx("div", { className: "sid-step-id-check-loop__file-upload-container", children: /* @__PURE__ */ e.jsx("label", { className: "sid-step-id-check-loop__label", htmlFor: c, "aria-label": r, children: /* @__PURE__ */ e.jsxs(
76
53
  "div",
77
54
  {
78
55
  className: "sid-step-id-check-loop__upload-photo-container",
@@ -80,7 +57,7 @@ const x = ({ addFile: s, upload: i, imageSide: o }) => {
80
57
  role: "button",
81
58
  onKeyDown: (p) => s(p, d),
82
59
  children: [
83
- /* @__PURE__ */ e.jsx(P, { className: "sid-step-id-check-loop__icon" }),
60
+ /* @__PURE__ */ e.jsx(I, { className: "sid-step-id-check-loop__icon" }),
84
61
  /* @__PURE__ */ e.jsx("p", { className: "sid-step-id-check-loop__instructions", children: o === "FRONT" ? /* @__PURE__ */ e.jsx(
85
62
  n,
86
63
  {
@@ -99,42 +76,42 @@ const x = ({ addFile: s, upload: i, imageSide: o }) => {
99
76
  {
100
77
  onChange: i,
101
78
  type: "file",
102
- id: h,
79
+ id: m,
103
80
  "data-testId": "photo-input",
104
81
  hidden: !0,
105
82
  accept: "image/jpeg,image/png",
106
83
  multiple: !0,
107
- ref: (p) => F(d, p)
84
+ ref: (p) => L(d, p)
108
85
  }
109
86
  )
110
87
  ]
111
88
  }
112
89
  ) }) });
113
- }, B = ({ verificationService: s }) => {
114
- const i = s.verificationResponse, { uploadUrl: o, errorIds: t } = i, [d, r] = u.useState(), [c, h] = u.useState(), [p, _] = u.useState(!1), C = () => {
115
- _(!p), O(o, d.file, c.file).then((a) => {
90
+ }, D = ({ verificationService: s }) => {
91
+ const i = s.verificationResponse, { uploadUrl: o, errorIds: t } = i, [d, c] = h.useState(), [r, m] = h.useState(), [p, y] = h.useState(!1), C = () => {
92
+ y(!p), U(o, d.file, r.file).then((a) => {
116
93
  a.ok && s.submitStep(
117
- w.idCheckLoop,
94
+ S.idCheckLoop,
118
95
  s.viewModel,
119
96
  s.verificationResponse
120
97
  );
121
98
  }).catch((a) => {
122
- v.error(`IdCheckLoop step failed to upload files to: ${o}. ${a}`);
99
+ b.error(`IdCheckLoop step failed to upload files to: ${o}. ${a}`);
123
100
  });
101
+ }, g = (a, l) => {
102
+ const F = M(l);
103
+ (a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.stopPropagation(), F.click());
124
104
  }, k = (a, l) => {
125
- const N = M(l);
126
- (a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.stopPropagation(), N.click());
127
- }, b = (a, l) => {
128
105
  (a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.stopPropagation(), l(void 0));
129
- }, L = (a) => {
106
+ }, _ = (a) => {
130
107
  const l = a.target.files[0];
131
- r({ file: l, url: URL.createObjectURL(l) });
132
- }, I = (a) => {
108
+ c({ file: l, url: URL.createObjectURL(l) });
109
+ }, N = (a) => {
133
110
  const l = a.target.files[0];
134
- h({ file: l, url: URL.createObjectURL(l) });
111
+ m({ file: l, url: URL.createObjectURL(l) });
135
112
  };
136
113
  return p ? /* @__PURE__ */ e.jsx(R, { step: "idCheckLoop" }) : /* @__PURE__ */ e.jsxs("div", { className: "sid-step-id-check-loop__upload-wrapper", children: [
137
- /* @__PURE__ */ e.jsx(y, { align: "center", children: /* @__PURE__ */ e.jsx(
114
+ /* @__PURE__ */ e.jsx(v, { align: "center", children: /* @__PURE__ */ e.jsx(
138
115
  n,
139
116
  {
140
117
  id: "step.idCheckLoop.regula.uploadTitle",
@@ -160,30 +137,30 @@ const x = ({ addFile: s, upload: i, imageSide: o }) => {
160
137
  j,
161
138
  {
162
139
  fileToUpload: d,
163
- onRemove: b,
164
- setImage: r
140
+ onRemove: k,
141
+ setImage: c
165
142
  }
166
143
  ) : /* @__PURE__ */ e.jsx(
167
144
  x,
168
145
  {
169
- addFile: k,
170
- upload: L,
171
- imageSide: g.FRONT
146
+ addFile: g,
147
+ upload: _,
148
+ imageSide: f.FRONT
172
149
  }
173
150
  ),
174
- c ? /* @__PURE__ */ e.jsx(
151
+ r ? /* @__PURE__ */ e.jsx(
175
152
  j,
176
153
  {
177
- fileToUpload: c,
178
- onRemove: b,
179
- setImage: h
154
+ fileToUpload: r,
155
+ onRemove: k,
156
+ setImage: m
180
157
  }
181
158
  ) : /* @__PURE__ */ e.jsx(
182
159
  x,
183
160
  {
184
- addFile: k,
185
- upload: I,
186
- imageSide: g.BACK
161
+ addFile: g,
162
+ upload: N,
163
+ imageSide: f.BACK
187
164
  }
188
165
  )
189
166
  ] }),
@@ -195,14 +172,14 @@ const x = ({ addFile: s, upload: i, imageSide: o }) => {
195
172
  className: "sid-btn sid-btn--dark",
196
173
  "data-testId": "id-check-submit-button",
197
174
  "aria-label": "submit",
198
- disabled: !d || !c,
175
+ disabled: !d || !r,
199
176
  children: /* @__PURE__ */ e.jsx(n, { id: "step.idCheckLoop.regula.submit", defaultMessage: "Submit" })
200
177
  }
201
178
  ) })
202
179
  ] });
203
- }, A = B, E = ({ verificationService: s }) => /* @__PURE__ */ e.jsx(S, { verificationService: s, children: /* @__PURE__ */ e.jsxs("div", { children: [
180
+ }, O = D, P = ({ verificationService: s }) => /* @__PURE__ */ e.jsx(T, { verificationService: s, children: /* @__PURE__ */ e.jsxs("div", { children: [
204
181
  /* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx(
205
- m,
182
+ u,
206
183
  {
207
184
  id: "step.idCheckLoop.regula.terms",
208
185
  defaultMessage: 'By clicking "Continue", you agree you have read, understand, and accept the {privacyPolicyLink} and {termsOfService}.',
@@ -215,7 +192,7 @@ const x = ({ addFile: s, upload: i, imageSide: o }) => {
215
192
  rel: "noopener noreferrer",
216
193
  className: "sid-link",
217
194
  children: /* @__PURE__ */ e.jsx(
218
- m,
195
+ u,
219
196
  {
220
197
  id: "step.idCheckLoop.privacyPolicy",
221
198
  defaultMessage: "Privacy Policy"
@@ -231,7 +208,7 @@ const x = ({ addFile: s, upload: i, imageSide: o }) => {
231
208
  rel: "noopener noreferrer",
232
209
  className: "sid-link",
233
210
  children: /* @__PURE__ */ e.jsx(
234
- m,
211
+ u,
235
212
  {
236
213
  id: "step.idCheckLoop.termsOfService",
237
214
  defaultMessage: "Terms of Service"
@@ -242,24 +219,25 @@ const x = ({ addFile: s, upload: i, imageSide: o }) => {
242
219
  }
243
220
  }
244
221
  ) }),
245
- /* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx(
246
- m,
222
+ /* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx(u, { id: "companyName", defaultMessage: "{Company}", children: (i) => /* @__PURE__ */ e.jsx(
223
+ u,
247
224
  {
248
225
  id: "step.idCheckLoop.disclaimer",
249
- defaultMessage: "SheerID uses a third party, {serviceType}, to process our identity check.",
226
+ defaultMessage: "SheerID, {companyName}'s trusted partner, use a third party, {serviceType}, to process our identity check.",
250
227
  values: {
251
- serviceType: "Regula"
228
+ serviceType: "Regula",
229
+ companyName: i
252
230
  }
253
231
  }
254
- ) })
232
+ ) }) })
255
233
  ] }) }), K = ({ verificationService: s }) => {
256
- const i = s.verificationResponse, [o, t] = u.useState(!1);
257
- return u.useEffect(() => {
234
+ const i = s.verificationResponse, [o, t] = h.useState(!1);
235
+ return h.useEffect(() => {
258
236
  var d;
259
237
  i && ((d = i == null ? void 0 : i.errorIds) == null ? void 0 : d.length) > 0 && t(!0);
260
- }, [i]), /* @__PURE__ */ e.jsx("div", { id: "sid-step-id-check-loop", className: "sid-l-container", children: o ? /* @__PURE__ */ e.jsx("div", { role: "main", children: /* @__PURE__ */ e.jsx(A, { verificationService: s }) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
238
+ }, [i]), /* @__PURE__ */ e.jsx("div", { id: "sid-step-id-check-loop", className: "sid-l-container", children: o ? /* @__PURE__ */ e.jsx("div", { role: "main", children: /* @__PURE__ */ e.jsx(O, { verificationService: s }) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
261
239
  /* @__PURE__ */ e.jsxs("div", { role: "main", children: [
262
- /* @__PURE__ */ e.jsx(y, { align: "center", children: /* @__PURE__ */ e.jsx(
240
+ /* @__PURE__ */ e.jsx(v, { align: "center", children: /* @__PURE__ */ e.jsx(
263
241
  n,
264
242
  {
265
243
  id: "step.idCheckLoop.regula.title",
@@ -274,7 +252,7 @@ const x = ({ addFile: s, upload: i, imageSide: o }) => {
274
252
  }
275
253
  ) }),
276
254
  /* @__PURE__ */ e.jsx("div", { className: "sid-identity-check-steps", children: /* @__PURE__ */ e.jsx(
277
- T,
255
+ w,
278
256
  {
279
257
  title: "Photo of a government-issued ID",
280
258
  subtitle: "Drivers license, state ID, passport, or residence permit.",
@@ -301,13 +279,9 @@ const x = ({ addFile: s, upload: i, imageSide: o }) => {
301
279
  }
302
280
  ) })
303
281
  ] }),
304
- /* @__PURE__ */ e.jsx(E, { verificationService: s })
282
+ /* @__PURE__ */ e.jsx(P, { verificationService: s })
305
283
  ] }) });
306
- }, z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
307
- __proto__: null,
308
- default: K
309
- }, Symbol.toStringTag, { value: "Module" }));
284
+ };
310
285
  export {
311
- P,
312
- z as S
286
+ K as default
313
287
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StepIDCheckLoopRegula-RoX971sR.js","sources":["../../src/components/StepIDCheckLoop/Regula/utils/uploadFiles.ts","../../src/components/StepIDCheckLoop/Regula/IdCheckLoopRegula/DisplayThumbnail.tsx","../../src/components/StepIDCheckLoop/Regula/IdCheckLoopRegula/UploadImage.tsx","../../src/components/StepIDCheckLoop/Regula/IdCheckLoopRegula/IdCheckLoopRegula.tsx","../../src/components/StepIDCheckLoop/IdCheckLoopFooter/IdCheckLoopRegulaFooter.tsx","../../src/components/StepIDCheckLoop/Regula/StepIDCheckLoopRegulaComponent/StepIDCheckLoopRegula.tsx"],"sourcesContent":["import { logger } from \"../../../../lib/utils/logger/logger\";\n\nexport const uploadFiles = async (\n url: string,\n frontImage: File,\n backImage: File,\n): Promise<Response> => {\n logger.info(`uploading files to ${url}`);\n\n const body = new FormData();\n body.append(\"frontImage\", frontImage);\n body.append(\"backImage\", backImage);\n\n return fetch(url, {\n method: \"POST\",\n body,\n });\n};\n","import React from \"react\";\nimport { FileToUpload } from \"./IdCheckLoopRegula\";\n\nexport interface DisplayThumbnailProps {\n fileToUpload: FileToUpload;\n onRemove: (\n e: React.KeyboardEvent<HTMLDivElement>,\n setImage: React.Dispatch<React.SetStateAction<FileToUpload>>,\n ) => void;\n setImage: React.Dispatch<React.SetStateAction<FileToUpload>>;\n}\n\nexport const DisplayThumbnail = ({ fileToUpload, onRemove, setImage }: DisplayThumbnailProps) => {\n const fileName = fileToUpload.file?.name;\n\n return (\n <div className=\"sid-step-id-check-loop__thumbnail-main-wrapper\">\n <div className=\"sid-step-id-check-loop__thumbnail-wrapper\">\n <img\n className=\"sid-step-id-check-loop__file-thumbnail\"\n src={fileToUpload.url}\n alt=\"File thumbnail\"\n />\n </div>\n <div className=\"sid-step-id-check-loop__file-name-wrapper\">\n <div className=\"sid-step-id-check-loop__file-name\" title={fileName}>\n {fileName}\n </div>\n <div\n role=\"button\"\n tabIndex={0}\n aria-label={`Remove file ${fileName}`}\n className=\"sid-step-id-check-loop__remove-btn\"\n onClick={() => setImage(undefined)}\n onKeyDown={(e) => onRemove(e, setImage)}\n />\n </div>\n </div>\n );\n};\n","import PlusIcon from \"@heroicons/react/24/outline/PlusIcon\";\nimport React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { setRef } from \"../../../../es6\";\n\nexport enum IMAGE_SIDE {\n FRONT = \"FRONT\",\n BACK = \"BACK\",\n}\n\nexport interface UploadImageProps {\n addFile: (e: React.KeyboardEvent<HTMLDivElement>, fieldId: string) => void;\n upload: (e: React.ChangeEvent<HTMLInputElement>) => void;\n imageSide: IMAGE_SIDE;\n}\n\nexport const UploadImage = ({ addFile, upload, imageSide }: UploadImageProps) => {\n const isFrontImage = imageSide === IMAGE_SIDE.FRONT;\n\n const fieldId = isFrontImage ? \"addFileFront\" : \"addFileBack\";\n const htmlFor = isFrontImage ? \"sid-font-photo-input\" : \"sid-back-photo-input\";\n const ariaLabel = isFrontImage ? \"add front file\" : \"add back file\";\n const id = isFrontImage ? \"sid-font-photo-input\" : \"sid-back-photo-input\";\n\n return (\n <div className=\"sid-step-id-check-loop__file-upload-container\">\n <label className=\"sid-step-id-check-loop__label\" htmlFor={htmlFor} aria-label={ariaLabel}>\n <div\n className=\"sid-step-id-check-loop__upload-photo-container\"\n tabIndex={0}\n role=\"button\"\n onKeyDown={(e) => addFile(e, fieldId)}\n >\n <PlusIcon className=\"sid-step-id-check-loop__icon\" />\n <p className=\"sid-step-id-check-loop__instructions\">\n {imageSide === IMAGE_SIDE.FRONT ? (\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.regula.addFontImage\"\n defaultMessage=\"Add front of ID\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.regula.addBackImage\"\n defaultMessage=\"Add back of ID\"\n />\n )}\n </p>\n <input\n onChange={upload}\n type=\"file\"\n id={id}\n data-testId=\"photo-input\"\n hidden\n accept=\"image/jpeg,image/png\"\n multiple\n ref={(input: HTMLInputElement) => setRef(fieldId, input)}\n />\n </div>\n </label>\n </div>\n );\n};\n","import React from \"react\";\n\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { AnnouncingHeader } from \"@/components/AnnouncingHeader/AnnouncingHeader\";\nimport { IDCheckLoopResponse, VerificationService } from \"../../../../lib/types/types\";\nimport { VerificationStepsEnum } from \"../../../../lib/types/runtimeTypes\";\nimport { uploadFiles } from \"../utils/uploadFiles\";\nimport { getRefByFieldId } from \"../../../../lib/refs/refs\";\nimport { logger } from \"../../../../lib/utils/logger/logger\";\nimport { DisplayThumbnail } from \"./DisplayThumbnail\";\nimport { IMAGE_SIDE, UploadImage } from \"./UploadImage\";\nimport { LoadingScreenComponent } from \"../../../LoadingScreen/LoadingScreenComponent\";\n\nexport interface IdCheckLoopRegulaProps {\n verificationService: VerificationService;\n}\n\nexport interface FileToUpload {\n file: File;\n url: string;\n}\n\nconst IdCheckLoopRegula = ({ verificationService }: IdCheckLoopRegulaProps) => {\n const verificationResponse = verificationService.verificationResponse as IDCheckLoopResponse;\n const { uploadUrl, errorIds } = verificationResponse;\n\n const [frontImage, setFrontImage] = React.useState<FileToUpload>();\n const [backImage, setBackImage] = React.useState<FileToUpload>();\n const [submitInitiated, setSubmitInitiated] = React.useState<boolean>(false);\n\n const handleSubmit = () => {\n setSubmitInitiated(!submitInitiated);\n uploadFiles(uploadUrl, frontImage.file, backImage.file)\n .then((response: Response) => {\n if (response.ok) {\n verificationService.submitStep(\n VerificationStepsEnum.idCheckLoop,\n verificationService.viewModel,\n verificationService.verificationResponse,\n );\n }\n })\n .catch((e) => {\n logger.error(`IdCheckLoop step failed to upload files to: ${uploadUrl}. ${e}`);\n });\n };\n\n const handleAddFileOnKeyUp = (e: React.KeyboardEvent<HTMLDivElement>, fieldId: string) => {\n const addFileRef = getRefByFieldId(fieldId);\n\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n e.stopPropagation();\n addFileRef.click();\n }\n };\n const handleRemoveFileOnKeyUp = (\n e: React.KeyboardEvent<HTMLDivElement>,\n setImage: React.Dispatch<React.SetStateAction<FileToUpload>>,\n ) => {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n e.stopPropagation();\n setImage(undefined);\n }\n };\n\n const handleFrontUpload = (e: React.ChangeEvent<HTMLInputElement>) => {\n const file = e.target.files[0];\n setFrontImage({ file, url: URL.createObjectURL(file) });\n };\n const handleBackUpload = (e: React.ChangeEvent<HTMLInputElement>) => {\n const file = e.target.files[0];\n setBackImage({ file, url: URL.createObjectURL(file) });\n };\n\n if (submitInitiated) {\n return <LoadingScreenComponent step=\"idCheckLoop\" />;\n }\n\n return (\n <div className=\"sid-step-id-check-loop__upload-wrapper\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.regula.uploadTitle\"\n defaultMessage=\"Upload government issued ID\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center sid-l-space-btm-md\">\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.regula.uploadSubtitle\"\n defaultMessage=\"Make sure information on the document can be easily read. Avoid glares.\"\n />\n </div>\n\n {errorIds && errorIds.length > 0 && (\n <div className=\"sid-step-id-check-loop__error-container\">\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.regula.uploadFileError\"\n defaultMessage=\"There was an error uploading your files. Please try again.\"\n />\n </div>\n )}\n\n <div className=\"sid-step-id-check-loop__upload-container\">\n {frontImage ? (\n <DisplayThumbnail\n fileToUpload={frontImage}\n onRemove={handleRemoveFileOnKeyUp}\n setImage={setFrontImage}\n />\n ) : (\n <UploadImage\n addFile={handleAddFileOnKeyUp}\n upload={handleFrontUpload}\n imageSide={IMAGE_SIDE.FRONT}\n />\n )}\n\n {backImage ? (\n <DisplayThumbnail\n fileToUpload={backImage}\n onRemove={handleRemoveFileOnKeyUp}\n setImage={setBackImage}\n />\n ) : (\n <UploadImage\n addFile={handleAddFileOnKeyUp}\n upload={handleBackUpload}\n imageSide={IMAGE_SIDE.BACK}\n />\n )}\n </div>\n\n <div className=\"sid-submit sid-l-horz-center sid-l-space-top-md sid-l-space-btm-md\">\n <button\n onClick={handleSubmit}\n type=\"button\"\n className=\"sid-btn sid-btn--dark\"\n data-testId=\"id-check-submit-button\"\n aria-label=\"submit\"\n disabled={!frontImage || !backImage}\n >\n <FormattedHTMLMessage id=\"step.idCheckLoop.regula.submit\" defaultMessage=\"Submit\" />\n </button>\n </div>\n </div>\n );\n};\n\nexport const IdCheckLoopRegulaComponent = IdCheckLoopRegula;\n","import React from \"react\";\n\nimport { FormattedMessage } from \"react-intl\";\nimport { VerificationService } from \"../../../lib/types/types\";\nimport { FormFooterComponent } from \"../../FormFooter/FormFooterComponent\";\n\nexport interface IdCheckLoopRegulaFooterProps {\n verificationService: VerificationService;\n}\n\nexport const IdCheckLoopRegulaFooter = ({ verificationService }: IdCheckLoopRegulaFooterProps) => (\n <FormFooterComponent verificationService={verificationService}>\n <div>\n <p>\n <FormattedMessage\n id=\"step.idCheckLoop.regula.terms\"\n defaultMessage='By clicking \"Continue\", you agree you have read, understand, and accept the {privacyPolicyLink} and {termsOfService}.'\n values={{\n privacyPolicyLink: (\n <a\n href=\"https://regulaforensics.com/privacy/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"sid-link\"\n >\n <FormattedMessage\n id=\"step.idCheckLoop.privacyPolicy\"\n defaultMessage=\"Privacy Policy\"\n />\n </a>\n ),\n termsOfService: (\n <a\n href=\"https://regulaforensics.com/terms-of-use/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"sid-link\"\n >\n <FormattedMessage\n id=\"step.idCheckLoop.termsOfService\"\n defaultMessage=\"Terms of Service\"\n />\n </a>\n ),\n }}\n />\n </p>\n\n <p>\n <FormattedMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedMessage\n id=\"step.idCheckLoop.disclaimer\"\n defaultMessage=\"SheerID, {companyName}'s trusted partner, use a third party, {serviceType}, to process our identity check.\"\n values={{\n serviceType: \"Regula\",\n companyName,\n }}\n />\n )}\n </FormattedMessage>\n </p>\n </div>\n </FormFooterComponent>\n);\n\nexport default IdCheckLoopRegulaFooter;\n","import React from \"react\";\n\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { AnnouncingHeader } from \"@/components/AnnouncingHeader/AnnouncingHeader\";\nimport { IDCheckLoopResponse, VerificationService } from \"../../../../lib/types/types\";\nimport { StepCardComponent } from \"../../StepCard/StepCard\";\nimport IdCheckLoopRegulaFooter from \"../../IdCheckLoopFooter/IdCheckLoopRegulaFooter\";\nimport { IdCheckLoopRegulaComponent } from \"../IdCheckLoopRegula/IdCheckLoopRegula\";\n\nexport interface StepIDCheckLoopRegulaProps {\n verificationService: VerificationService;\n}\n\nconst StepIDCheckLoopRegula = ({ verificationService }: StepIDCheckLoopRegulaProps) => {\n const verificationResponse = verificationService.verificationResponse as IDCheckLoopResponse;\n\n const [showUpload, setShowUpload] = React.useState<boolean>(false);\n\n React.useEffect(() => {\n if (verificationResponse && verificationResponse?.errorIds?.length > 0) {\n setShowUpload(true);\n }\n }, [verificationResponse]);\n\n return (\n <div id=\"sid-step-id-check-loop\" className=\"sid-l-container\">\n {showUpload ? (\n <div role=\"main\">\n <IdCheckLoopRegulaComponent verificationService={verificationService} />\n </div>\n ) : (\n <>\n <div role=\"main\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.regula.title\"\n defaultMessage=\"To continue, we need to verify your identity.\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center sid-l-space-btm-md\">\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.subtitle\"\n defaultMessage=\"To complete the verification process, we ask that you provide us with:\"\n />\n </div>\n <div className=\"sid-identity-check-steps\">\n <StepCardComponent\n title=\"Photo of a government-issued ID\"\n subtitle=\"Drivers license, state ID, passport, or residence permit.\"\n icon={\n <img\n className=\"sid-identity-check-steps__icon\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/upload-proof.svg\"\n />\n }\n isHighlighted\n key=\"\"\n />\n </div>\n\n <div className=\"sid-submit sid-l-horz-center sid-l-space-top-md sid-l-space-btm-md\">\n <button\n onClick={() => setShowUpload(!showUpload)}\n type=\"button\"\n className=\"sid-btn sid-btn--dark\"\n aria-label=\"submit\"\n >\n <FormattedHTMLMessage id=\"step.idCheckLoop.continue\" defaultMessage=\"Continue\" />\n </button>\n </div>\n </div>\n <IdCheckLoopRegulaFooter verificationService={verificationService} />\n </>\n )}\n </div>\n );\n};\n\nexport default StepIDCheckLoopRegula;\n"],"names":["uploadFiles","url","frontImage","backImage","logger","body","DisplayThumbnail","fileToUpload","onRemove","setImage","fileName","_a","jsxs","jsx","e","IMAGE_SIDE","UploadImage","addFile","upload","imageSide","isFrontImage","fieldId","htmlFor","ariaLabel","id","PlusIcon","FormattedHTMLMessage","input","setRef","IdCheckLoopRegula","verificationService","verificationResponse","uploadUrl","errorIds","setFrontImage","React","setBackImage","submitInitiated","setSubmitInitiated","handleSubmit","response","VerificationStepsEnum","handleAddFileOnKeyUp","addFileRef","getRefByFieldId","handleRemoveFileOnKeyUp","handleFrontUpload","file","handleBackUpload","LoadingScreenComponent","AnnouncingHeader","IdCheckLoopRegulaComponent","IdCheckLoopRegulaFooter","FormFooterComponent","FormattedMessage","companyName","StepIDCheckLoopRegula","showUpload","setShowUpload","Fragment","StepCardComponent"],"mappings":";;AAEO,MAAMA,IAAc,OACzBC,GACAC,GACAC,MACsB;AACf,EAAAC,EAAA,KAAK,sBAAsBH,CAAG,EAAE;AAEjC,QAAAI,IAAO,IAAI,SAAS;AACrB,SAAAA,EAAA,OAAO,cAAcH,CAAU,GAC/BG,EAAA,OAAO,aAAaF,CAAS,GAE3B,MAAMF,GAAK;AAAA,IAChB,QAAQ;AAAA,IACR,MAAAI;AAAA,EAAA,CACD;AACH,GCLaC,IAAmB,CAAC,EAAE,cAAAC,GAAc,UAAAC,GAAU,UAAAC,QAAsC;;AACzF,QAAAC,KAAWC,IAAAJ,EAAa,SAAb,gBAAAI,EAAmB;AAGlC,SAAAC,gBAAAA,EAAA,KAAC,OAAI,EAAA,WAAU,kDACb,UAAA;AAAA,IAACC,gBAAAA,EAAAA,IAAA,OAAA,EAAI,WAAU,6CACb,UAAAA,gB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AA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,SAAS,MAAM6C,EAAc,CAACD,CAAU;AAAA,UACxC,MAAK;AAAA,UACL,WAAU;AAAA,UACV,cAAW;AAAA,UAEX,UAAC5C,gBAAAA,EAAA,IAAAa,GAAA,EAAqB,IAAG,6BAA4B,gBAAe,WAAW,CAAA;AAAA,QAAA;AAAA,MAAA,EAEnF,CAAA;AAAA,IAAA,GACF;AAAA,IACAb,gBAAAA,MAACuC,KAAwB,qBAAAtB,EAA0C,CAAA;AAAA,EAAA,EAAA,CACrE,EAEJ,CAAA;AAEJ;"}
@@ -1,13 +1,14 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.104.0-alpha.2
4
- * BUILD_TIMESTAMP: 1746142342273
5
- * BUILD_DATE: Thu May 01 2025 23:32:22 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 890118c01f0c12b348ca343732208200aed0c6c3
3
+ * VERSION: 2.106.0-alpha.0
4
+ * BUILD_TIMESTAMP: 1746221734928
5
+ * BUILD_DATE: Fri May 02 2025 21:35:34 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 9044dfe474729d087a9b0854f585172ebebac94e
7
7
  */
8
- import { l as v, j as e, r as f, a as n, U as F, R as u, L as R, A as y, V as w, b8 as M, k as S, a1 as m, a2 as T } from "../sheerid.js";
9
- const O = async (s, i, o) => {
10
- v.info(`uploading files to ${s}`);
8
+ import { l as b, j as e, af as I, b as n, J as L, R as h, ag as R, A as v, ah as M, V as S, k as T, Y as u } from "../sheerid.js";
9
+ import { S as w } from "./index-CHK5i4jj.js";
10
+ const U = async (s, i, o) => {
11
+ b.info(`uploading files to ${s}`);
11
12
  const t = new FormData();
12
13
  return t.append("frontImage", i), t.append("backImage", o), fetch(s, {
13
14
  method: "POST",
@@ -35,40 +36,16 @@ const O = async (s, i, o) => {
35
36
  "aria-label": `Remove file ${t}`,
36
37
  className: "sid-step-id-check-loop__remove-btn",
37
38
  onClick: () => o(void 0),
38
- onKeyDown: (r) => i(r, o)
39
+ onKeyDown: (c) => i(c, o)
39
40
  }
40
41
  )
41
42
  ] })
42
43
  ] });
43
44
  };
44
- function U({
45
- title: s,
46
- titleId: i,
47
- ...o
48
- }, t) {
49
- return /* @__PURE__ */ f.createElement("svg", Object.assign({
50
- xmlns: "http://www.w3.org/2000/svg",
51
- fill: "none",
52
- viewBox: "0 0 24 24",
53
- strokeWidth: 1.5,
54
- stroke: "currentColor",
55
- "aria-hidden": "true",
56
- "data-slot": "icon",
57
- ref: t,
58
- "aria-labelledby": i
59
- }, o), s ? /* @__PURE__ */ f.createElement("title", {
60
- id: i
61
- }, s) : null, /* @__PURE__ */ f.createElement("path", {
62
- strokeLinecap: "round",
63
- strokeLinejoin: "round",
64
- d: "M12 4.5v15m7.5-7.5h-15"
65
- }));
66
- }
67
- const D = f.forwardRef(U), P = D;
68
- var g = /* @__PURE__ */ ((s) => (s.FRONT = "FRONT", s.BACK = "BACK", s))(g || {});
45
+ var f = /* @__PURE__ */ ((s) => (s.FRONT = "FRONT", s.BACK = "BACK", s))(f || {});
69
46
  const x = ({ addFile: s, upload: i, imageSide: o }) => {
70
- const t = o === "FRONT", d = t ? "addFileFront" : "addFileBack", r = t ? "sid-font-photo-input" : "sid-back-photo-input", c = t ? "add front file" : "add back file", h = t ? "sid-font-photo-input" : "sid-back-photo-input";
71
- return /* @__PURE__ */ e.jsx("div", { className: "sid-step-id-check-loop__file-upload-container", children: /* @__PURE__ */ e.jsx("label", { className: "sid-step-id-check-loop__label", htmlFor: r, "aria-label": c, children: /* @__PURE__ */ e.jsxs(
47
+ const t = o === "FRONT", d = t ? "addFileFront" : "addFileBack", c = t ? "sid-font-photo-input" : "sid-back-photo-input", r = t ? "add front file" : "add back file", m = t ? "sid-font-photo-input" : "sid-back-photo-input";
48
+ return /* @__PURE__ */ e.jsx("div", { className: "sid-step-id-check-loop__file-upload-container", children: /* @__PURE__ */ e.jsx("label", { className: "sid-step-id-check-loop__label", htmlFor: c, "aria-label": r, children: /* @__PURE__ */ e.jsxs(
72
49
  "div",
73
50
  {
74
51
  className: "sid-step-id-check-loop__upload-photo-container",
@@ -76,7 +53,7 @@ const x = ({ addFile: s, upload: i, imageSide: o }) => {
76
53
  role: "button",
77
54
  onKeyDown: (p) => s(p, d),
78
55
  children: [
79
- /* @__PURE__ */ e.jsx(P, { className: "sid-step-id-check-loop__icon" }),
56
+ /* @__PURE__ */ e.jsx(I, { className: "sid-step-id-check-loop__icon" }),
80
57
  /* @__PURE__ */ e.jsx("p", { className: "sid-step-id-check-loop__instructions", children: o === "FRONT" ? /* @__PURE__ */ e.jsx(
81
58
  n,
82
59
  {
@@ -95,42 +72,42 @@ const x = ({ addFile: s, upload: i, imageSide: o }) => {
95
72
  {
96
73
  onChange: i,
97
74
  type: "file",
98
- id: h,
75
+ id: m,
99
76
  "data-testId": "photo-input",
100
77
  hidden: !0,
101
78
  accept: "image/jpeg,image/png",
102
79
  multiple: !0,
103
- ref: (p) => F(d, p)
80
+ ref: (p) => L(d, p)
104
81
  }
105
82
  )
106
83
  ]
107
84
  }
108
85
  ) }) });
109
- }, B = ({ verificationService: s }) => {
110
- const i = s.verificationResponse, { uploadUrl: o, errorIds: t } = i, [d, r] = u.useState(), [c, h] = u.useState(), [p, _] = u.useState(!1), C = () => {
111
- _(!p), O(o, d.file, c.file).then((a) => {
86
+ }, D = ({ verificationService: s }) => {
87
+ const i = s.verificationResponse, { uploadUrl: o, errorIds: t } = i, [d, c] = h.useState(), [r, m] = h.useState(), [p, y] = h.useState(!1), C = () => {
88
+ y(!p), U(o, d.file, r.file).then((a) => {
112
89
  a.ok && s.submitStep(
113
- w.idCheckLoop,
90
+ S.idCheckLoop,
114
91
  s.viewModel,
115
92
  s.verificationResponse
116
93
  );
117
94
  }).catch((a) => {
118
- v.error(`IdCheckLoop step failed to upload files to: ${o}. ${a}`);
95
+ b.error(`IdCheckLoop step failed to upload files to: ${o}. ${a}`);
119
96
  });
97
+ }, g = (a, l) => {
98
+ const F = M(l);
99
+ (a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.stopPropagation(), F.click());
120
100
  }, k = (a, l) => {
121
- const N = M(l);
122
- (a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.stopPropagation(), N.click());
123
- }, b = (a, l) => {
124
101
  (a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.stopPropagation(), l(void 0));
125
- }, L = (a) => {
102
+ }, _ = (a) => {
126
103
  const l = a.target.files[0];
127
- r({ file: l, url: URL.createObjectURL(l) });
128
- }, I = (a) => {
104
+ c({ file: l, url: URL.createObjectURL(l) });
105
+ }, N = (a) => {
129
106
  const l = a.target.files[0];
130
- h({ file: l, url: URL.createObjectURL(l) });
107
+ m({ file: l, url: URL.createObjectURL(l) });
131
108
  };
132
109
  return p ? /* @__PURE__ */ e.jsx(R, { step: "idCheckLoop" }) : /* @__PURE__ */ e.jsxs("div", { className: "sid-step-id-check-loop__upload-wrapper", children: [
133
- /* @__PURE__ */ e.jsx(y, { align: "center", children: /* @__PURE__ */ e.jsx(
110
+ /* @__PURE__ */ e.jsx(v, { align: "center", children: /* @__PURE__ */ e.jsx(
134
111
  n,
135
112
  {
136
113
  id: "step.idCheckLoop.regula.uploadTitle",
@@ -156,30 +133,30 @@ const x = ({ addFile: s, upload: i, imageSide: o }) => {
156
133
  j,
157
134
  {
158
135
  fileToUpload: d,
159
- onRemove: b,
160
- setImage: r
136
+ onRemove: k,
137
+ setImage: c
161
138
  }
162
139
  ) : /* @__PURE__ */ e.jsx(
163
140
  x,
164
141
  {
165
- addFile: k,
166
- upload: L,
167
- imageSide: g.FRONT
142
+ addFile: g,
143
+ upload: _,
144
+ imageSide: f.FRONT
168
145
  }
169
146
  ),
170
- c ? /* @__PURE__ */ e.jsx(
147
+ r ? /* @__PURE__ */ e.jsx(
171
148
  j,
172
149
  {
173
- fileToUpload: c,
174
- onRemove: b,
175
- setImage: h
150
+ fileToUpload: r,
151
+ onRemove: k,
152
+ setImage: m
176
153
  }
177
154
  ) : /* @__PURE__ */ e.jsx(
178
155
  x,
179
156
  {
180
- addFile: k,
181
- upload: I,
182
- imageSide: g.BACK
157
+ addFile: g,
158
+ upload: N,
159
+ imageSide: f.BACK
183
160
  }
184
161
  )
185
162
  ] }),
@@ -191,14 +168,14 @@ const x = ({ addFile: s, upload: i, imageSide: o }) => {
191
168
  className: "sid-btn sid-btn--dark",
192
169
  "data-testId": "id-check-submit-button",
193
170
  "aria-label": "submit",
194
- disabled: !d || !c,
171
+ disabled: !d || !r,
195
172
  children: /* @__PURE__ */ e.jsx(n, { id: "step.idCheckLoop.regula.submit", defaultMessage: "Submit" })
196
173
  }
197
174
  ) })
198
175
  ] });
199
- }, A = B, E = ({ verificationService: s }) => /* @__PURE__ */ e.jsx(S, { verificationService: s, children: /* @__PURE__ */ e.jsxs("div", { children: [
176
+ }, O = D, P = ({ verificationService: s }) => /* @__PURE__ */ e.jsx(T, { verificationService: s, children: /* @__PURE__ */ e.jsxs("div", { children: [
200
177
  /* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx(
201
- m,
178
+ u,
202
179
  {
203
180
  id: "step.idCheckLoop.regula.terms",
204
181
  defaultMessage: 'By clicking "Continue", you agree you have read, understand, and accept the {privacyPolicyLink} and {termsOfService}.',
@@ -211,7 +188,7 @@ const x = ({ addFile: s, upload: i, imageSide: o }) => {
211
188
  rel: "noopener noreferrer",
212
189
  className: "sid-link",
213
190
  children: /* @__PURE__ */ e.jsx(
214
- m,
191
+ u,
215
192
  {
216
193
  id: "step.idCheckLoop.privacyPolicy",
217
194
  defaultMessage: "Privacy Policy"
@@ -227,7 +204,7 @@ const x = ({ addFile: s, upload: i, imageSide: o }) => {
227
204
  rel: "noopener noreferrer",
228
205
  className: "sid-link",
229
206
  children: /* @__PURE__ */ e.jsx(
230
- m,
207
+ u,
231
208
  {
232
209
  id: "step.idCheckLoop.termsOfService",
233
210
  defaultMessage: "Terms of Service"
@@ -238,24 +215,25 @@ const x = ({ addFile: s, upload: i, imageSide: o }) => {
238
215
  }
239
216
  }
240
217
  ) }),
241
- /* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx(
242
- m,
218
+ /* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx(u, { id: "companyName", defaultMessage: "{Company}", children: (i) => /* @__PURE__ */ e.jsx(
219
+ u,
243
220
  {
244
221
  id: "step.idCheckLoop.disclaimer",
245
- defaultMessage: "SheerID uses a third party, {serviceType}, to process our identity check.",
222
+ defaultMessage: "SheerID, {companyName}'s trusted partner, use a third party, {serviceType}, to process our identity check.",
246
223
  values: {
247
- serviceType: "Regula"
224
+ serviceType: "Regula",
225
+ companyName: i
248
226
  }
249
227
  }
250
- ) })
228
+ ) }) })
251
229
  ] }) }), K = ({ verificationService: s }) => {
252
- const i = s.verificationResponse, [o, t] = u.useState(!1);
253
- return u.useEffect(() => {
230
+ const i = s.verificationResponse, [o, t] = h.useState(!1);
231
+ return h.useEffect(() => {
254
232
  var d;
255
233
  i && ((d = i == null ? void 0 : i.errorIds) == null ? void 0 : d.length) > 0 && t(!0);
256
- }, [i]), /* @__PURE__ */ e.jsx("div", { id: "sid-step-id-check-loop", className: "sid-l-container", children: o ? /* @__PURE__ */ e.jsx("div", { role: "main", children: /* @__PURE__ */ e.jsx(A, { verificationService: s }) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
234
+ }, [i]), /* @__PURE__ */ e.jsx("div", { id: "sid-step-id-check-loop", className: "sid-l-container", children: o ? /* @__PURE__ */ e.jsx("div", { role: "main", children: /* @__PURE__ */ e.jsx(O, { verificationService: s }) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
257
235
  /* @__PURE__ */ e.jsxs("div", { role: "main", children: [
258
- /* @__PURE__ */ e.jsx(y, { align: "center", children: /* @__PURE__ */ e.jsx(
236
+ /* @__PURE__ */ e.jsx(v, { align: "center", children: /* @__PURE__ */ e.jsx(
259
237
  n,
260
238
  {
261
239
  id: "step.idCheckLoop.regula.title",
@@ -270,7 +248,7 @@ const x = ({ addFile: s, upload: i, imageSide: o }) => {
270
248
  }
271
249
  ) }),
272
250
  /* @__PURE__ */ e.jsx("div", { className: "sid-identity-check-steps", children: /* @__PURE__ */ e.jsx(
273
- T,
251
+ w,
274
252
  {
275
253
  title: "Photo of a government-issued ID",
276
254
  subtitle: "Drivers license, state ID, passport, or residence permit.",
@@ -297,13 +275,9 @@ const x = ({ addFile: s, upload: i, imageSide: o }) => {
297
275
  }
298
276
  ) })
299
277
  ] }),
300
- /* @__PURE__ */ e.jsx(E, { verificationService: s })
278
+ /* @__PURE__ */ e.jsx(P, { verificationService: s })
301
279
  ] }) });
302
- }, z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
303
- __proto__: null,
304
- default: K
305
- }, Symbol.toStringTag, { value: "Module" }));
280
+ };
306
281
  export {
307
- P,
308
- z as S
282
+ K as default
309
283
  };