@sheerid/jslib 2.225.0 → 2.227.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 (311) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +1544 -1545
  3. package/_mysheerid-preview.js.map +1 -1
  4. package/chunk/{ActiveDutyStartDateComponent-mYpDRuc-.js → ActiveDutyStartDateComponent-CLjp2D9z.js} +5 -5
  5. package/chunk/{ActiveDutyStartDateComponent-DN0HfTFx.js.map → ActiveDutyStartDateComponent-CLjp2D9z.js.map} +1 -1
  6. package/chunk/{ActiveDutyStartDateComponent-DN0HfTFx.js → ActiveDutyStartDateComponent-D7Q8AKCS.js} +5 -5
  7. package/chunk/{ActiveDutyStartDateComponent-mYpDRuc-.js.map → ActiveDutyStartDateComponent-D7Q8AKCS.js.map} +1 -1
  8. package/chunk/AddressComponent-AiyIPiCz.js +4 -4
  9. package/chunk/AddressComponent-DV2Wsw6k.js +4 -4
  10. package/chunk/CaptchaComponent-CKP3wfXl.js +2382 -0
  11. package/chunk/CaptchaComponent-CKP3wfXl.js.map +1 -0
  12. package/chunk/CaptchaComponent-CR32xDg8.js +2378 -0
  13. package/chunk/CaptchaComponent-CR32xDg8.js.map +1 -0
  14. package/chunk/ChangeLocaleComponent-Cu2DR-Q3.js +4 -4
  15. package/chunk/ChangeLocaleComponent-DUnfgQuX.js +4 -4
  16. package/chunk/City-BmrJpnS6.js +4 -4
  17. package/chunk/City-yVVnZQTP.js +4 -4
  18. package/chunk/CollegeNameComponent-DaTimEqC.js +4 -4
  19. package/chunk/CollegeNameComponent-DtKPZHb-.js +4 -4
  20. package/chunk/CopyToClipboardComponent-9hyfSMC0.js +4 -4
  21. package/chunk/CopyToClipboardComponent-H3bJGcOM.js +4 -4
  22. package/chunk/CountryComponentWrapper--2UQ7mXP.js +4 -4
  23. package/chunk/CountryComponentWrapper-Ceq-eink.js +4 -4
  24. package/chunk/DriverLicenseNumberComponent-D9cakdvU.js +4 -4
  25. package/chunk/DriverLicenseNumberComponent-ziLNYB8e.js +4 -4
  26. package/chunk/EBTCardNumberComponent-B1kv4R4G.js +4 -4
  27. package/chunk/EBTCardNumberComponent-oYQJ_tP7.js +4 -4
  28. package/chunk/EmailLoopPending-In0FH-Ap.js +4 -4
  29. package/chunk/EmailLoopPending-lxRF0bx8.js +4 -4
  30. package/chunk/FirstResponderOrganizationComponent-Bru1a0U7.js +4 -4
  31. package/chunk/FirstResponderOrganizationComponent-fPxZFdpO.js +4 -4
  32. package/chunk/FormFieldInputSelect-CjWY_ush.js +4 -4
  33. package/chunk/FormFieldInputSelect-o7QZaYhS.js +4 -4
  34. package/chunk/FormFieldLayout-DDEEmlGC.js +4 -4
  35. package/chunk/FormFieldLayout-DEVPpEyA.js +4 -4
  36. package/chunk/FormFieldText-CJ-GVpZE.js +4 -4
  37. package/chunk/FormFieldText-CaWtYVur.js +4 -4
  38. package/chunk/FormFieldTypeahead-C6eS7yJg.js +4 -4
  39. package/chunk/FormFieldTypeahead-CyKKVK89.js +4 -4
  40. package/chunk/FormSelectChoice-BahCx4wG.js +4 -4
  41. package/chunk/FormSelectChoice-C-rIlDKl.js +4 -4
  42. package/chunk/InputText-CCNbZmMe.js +4 -4
  43. package/chunk/InputText-PEiatRRJ.js +4 -4
  44. package/chunk/LicensedProfessionalOrganizationComponent-C5pc7hVJ.js +4 -4
  45. package/chunk/LicensedProfessionalOrganizationComponent-CnR_qF3r.js +4 -4
  46. package/chunk/MedicalProfessionalOrganizationComponent-CXHX25GN.js +4 -4
  47. package/chunk/MedicalProfessionalOrganizationComponent-DBf6V49M.js +4 -4
  48. package/chunk/MemberIdComponent-C8mVSo9m.js +4 -4
  49. package/chunk/MemberIdComponent-oanWSvQh.js +4 -4
  50. package/chunk/MembershipOrganizationComponent-CN6_d_Fk.js +4 -4
  51. package/chunk/MembershipOrganizationComponent-yu-UNXIK.js +4 -4
  52. package/chunk/Onfido-BG8cDEVW.js +4 -4
  53. package/chunk/PersonalInfoStepSubmitButton-j44RdZDq.js +4 -4
  54. package/chunk/PersonalInfoStepSubmitButton-v_kWLmEw.js +4 -4
  55. package/chunk/PersonalInfoStepWrapper-BOBNCgik.js +4 -4
  56. package/chunk/PersonalInfoStepWrapper-PV06WMKL.js +4 -4
  57. package/chunk/PostalCodeComponent-DrCcV90W.js +4 -4
  58. package/chunk/PostalCodeComponent-KXVfZkLx.js +4 -4
  59. package/chunk/SSN-B_z2R4Bx.js +4 -4
  60. package/chunk/SSN-Hb1lTx8A.js +4 -4
  61. package/chunk/StateSelectComponent-CChSqKXz.js +4 -4
  62. package/chunk/StateSelectComponent-CIpB-Rh1.js +4 -4
  63. package/chunk/StatusComponent-C6J1B7Tl.js +4 -4
  64. package/chunk/StatusComponent-pmuIhuXi.js +4 -4
  65. package/chunk/StepCard-CIfaQVu-.js +4 -4
  66. package/chunk/StepCard-dcwCtPrW.js +4 -4
  67. package/chunk/{StepCollectMilitaryStatusComponent-Dpchizu3.js → StepCollectMilitaryStatusComponent-BFw6xXZ_.js} +7 -7
  68. package/chunk/{StepCollectMilitaryStatusComponent-CvXEQ2_6.js.map → StepCollectMilitaryStatusComponent-BFw6xXZ_.js.map} +1 -1
  69. package/chunk/{StepCollectMilitaryStatusComponent-CvXEQ2_6.js → StepCollectMilitaryStatusComponent-D8Cg_PCr.js} +7 -7
  70. package/chunk/{StepCollectMilitaryStatusComponent-Dpchizu3.js.map → StepCollectMilitaryStatusComponent-D8Cg_PCr.js.map} +1 -1
  71. package/chunk/{StepDriverLicensePersonalInfoComponent-DP6zH_ax.js → StepDriverLicensePersonalInfoComponent-CUy3hSOh.js} +5 -5
  72. package/chunk/{StepDriverLicensePersonalInfoComponent-DP6zH_ax.js.map → StepDriverLicensePersonalInfoComponent-CUy3hSOh.js.map} +1 -1
  73. package/chunk/{StepDriverLicensePersonalInfoComponent-ewQpSg2t.js → StepDriverLicensePersonalInfoComponent-CufQozWB.js} +5 -5
  74. package/chunk/{StepDriverLicensePersonalInfoComponent-ewQpSg2t.js.map → StepDriverLicensePersonalInfoComponent-CufQozWB.js.map} +1 -1
  75. package/chunk/{StepGeneralIdentityPersonalInfoComponent-CJjM8zVt.js → StepGeneralIdentityPersonalInfoComponent--e85H1gm.js} +6 -6
  76. package/chunk/{StepGeneralIdentityPersonalInfoComponent-CJjM8zVt.js.map → StepGeneralIdentityPersonalInfoComponent--e85H1gm.js.map} +1 -1
  77. package/chunk/{StepGeneralIdentityPersonalInfoComponent-CpkyNgCu.js → StepGeneralIdentityPersonalInfoComponent-Bdj5NErb.js} +6 -6
  78. package/chunk/{StepGeneralIdentityPersonalInfoComponent-CpkyNgCu.js.map → StepGeneralIdentityPersonalInfoComponent-Bdj5NErb.js.map} +1 -1
  79. package/chunk/{StepHybridIdentityPersonalInfoComponent-DO0EJx9W.js → StepHybridIdentityPersonalInfoComponent-Dh2YNjdy.js} +6 -6
  80. package/chunk/{StepHybridIdentityPersonalInfoComponent-DO0EJx9W.js.map → StepHybridIdentityPersonalInfoComponent-Dh2YNjdy.js.map} +1 -1
  81. package/chunk/{StepHybridIdentityPersonalInfoComponent-mXPGFhFn.js → StepHybridIdentityPersonalInfoComponent-DvK9EwQi.js} +6 -6
  82. package/chunk/{StepHybridIdentityPersonalInfoComponent-mXPGFhFn.js.map → StepHybridIdentityPersonalInfoComponent-DvK9EwQi.js.map} +1 -1
  83. package/chunk/StepIDCheckLoopOnfido-Sg4a19wV.js +4 -4
  84. package/chunk/StepIDCheckLoopOnfido-djTS20UT.js +4 -4
  85. package/chunk/StepIDCheckLoopRegula-B5I-ojjy.js +4 -4
  86. package/chunk/StepIDCheckLoopRegula-DZA5G1Z6.js +4 -4
  87. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-B-4CBRod.js → StepInactiveMilitaryPersonalInfoComponent-DOOVtWps.js} +7 -7
  88. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-B-4CBRod.js.map → StepInactiveMilitaryPersonalInfoComponent-DOOVtWps.js.map} +1 -1
  89. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-C7_holiH.js → StepInactiveMilitaryPersonalInfoComponent-DaF0OIw-.js} +7 -7
  90. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-C7_holiH.js.map → StepInactiveMilitaryPersonalInfoComponent-DaF0OIw-.js.map} +1 -1
  91. package/chunk/TeacherSchoolComponent-BSHPjiwQ.js +4 -4
  92. package/chunk/TeacherSchoolComponent-Bf3ZhJ_c.js +4 -4
  93. package/chunk/{ar-Cbi_C97v.js → ar-DRRl0F7-.js} +7 -9
  94. package/chunk/{ar-Cbi_C97v.js.map → ar-DRRl0F7-.js.map} +1 -1
  95. package/chunk/{bg-Csw-BhA2.js → bg-F0WsRCx8.js} +7 -9
  96. package/chunk/{bg-Csw-BhA2.js.map → bg-F0WsRCx8.js.map} +1 -1
  97. package/chunk/{bn-IN-_Gkz5V3W.js → bn-IN-CMjQj55J.js} +7 -9
  98. package/chunk/{en-GB-C3sfl0Xj.js.map → bn-IN-CMjQj55J.js.map} +1 -1
  99. package/chunk/{cs-D8OUHJAi.js → cs-fNk_NoQI.js} +7 -9
  100. package/chunk/{da-MfuBJIwB.js.map → cs-fNk_NoQI.js.map} +1 -1
  101. package/chunk/{da-MfuBJIwB.js → da-Dus0G0xF.js} +7 -9
  102. package/chunk/{cs-D8OUHJAi.js.map → da-Dus0G0xF.js.map} +1 -1
  103. package/chunk/{de-BUM4z-jS.js → de-CWVNPgGa.js} +7 -9
  104. package/chunk/de-CWVNPgGa.js.map +1 -0
  105. package/chunk/downshift.esm-CtrbqQGL.js +4 -4
  106. package/chunk/downshift.esm-huKBwB2d.js +4 -4
  107. package/chunk/{el-BFc5pFNB.js → el-Cwv4peel.js} +7 -9
  108. package/chunk/el-Cwv4peel.js.map +1 -0
  109. package/chunk/{en-GB-C3sfl0Xj.js → en-GB-Dqonxi7-.js} +7 -9
  110. package/chunk/{es-ES-LxnQ_dOU.js.map → en-GB-Dqonxi7-.js.map} +1 -1
  111. package/chunk/{es-ES-LxnQ_dOU.js → es-ES-C4H8ciVZ.js} +7 -9
  112. package/chunk/{bn-IN-_Gkz5V3W.js.map → es-ES-C4H8ciVZ.js.map} +1 -1
  113. package/chunk/{es-r_wqCJFE.js → es-hn_UHPBI.js} +7 -9
  114. package/chunk/es-hn_UHPBI.js.map +1 -0
  115. package/chunk/{fi-CxavTw1u.js → fi-CYcXXvjq.js} +7 -9
  116. package/chunk/fi-CYcXXvjq.js.map +1 -0
  117. package/chunk/{fr-CA-BwsUNRak.js → fr-CA-CGAQ-6AP.js} +7 -9
  118. package/chunk/{fr-CA-BwsUNRak.js.map → fr-CA-CGAQ-6AP.js.map} +1 -1
  119. package/chunk/{fr-CbsC646w.js → fr-D_IYCyUP.js} +7 -9
  120. package/chunk/fr-D_IYCyUP.js.map +1 -0
  121. package/chunk/{ga-BhwKiwTT.js → ga-45LsHAEB.js} +7 -9
  122. package/chunk/ga-45LsHAEB.js.map +1 -0
  123. package/chunk/{hi-IN-DZ-btyGZ.js → hi-IN-ChuePzRc.js} +7 -9
  124. package/chunk/hi-IN-ChuePzRc.js.map +1 -0
  125. package/chunk/{hr-DiouezmM.js → hr-CX75fSnP.js} +7 -9
  126. package/chunk/hr-CX75fSnP.js.map +1 -0
  127. package/chunk/{hu-CcD2Q3wr.js → hu-BaLNR_Fx.js} +7 -9
  128. package/chunk/hu-BaLNR_Fx.js.map +1 -0
  129. package/chunk/{id-CFyUqQ6j.js → id-BuJILOHQ.js} +7 -9
  130. package/chunk/id-BuJILOHQ.js.map +1 -0
  131. package/chunk/{index-PK17Xb1V.js → index-7FgFM0BB.js} +7 -7
  132. package/chunk/{index-Ag935IQm.js.map → index-7FgFM0BB.js.map} +1 -1
  133. package/chunk/{index-t_EdXFvl.js → index-7yjIdl5b.js} +6 -6
  134. package/chunk/{index-BKyRIfb4.js.map → index-7yjIdl5b.js.map} +1 -1
  135. package/chunk/index-B0SBEWOf.js +4 -4
  136. package/chunk/index-B4FcNhzB.js +4 -4
  137. package/chunk/{index-BW4GfeEt.js → index-B92WlzWU.js} +5 -5
  138. package/chunk/{index-BW4GfeEt.js.map → index-B92WlzWU.js.map} +1 -1
  139. package/chunk/index-BA3bE-f-.js +4 -4
  140. package/chunk/{index-DmsA0RkT.js → index-BKJJkl7e.js} +6 -6
  141. package/chunk/{index-CxnTO_Lf.js.map → index-BKJJkl7e.js.map} +1 -1
  142. package/chunk/index-BZ1nv-sB.js +4 -4
  143. package/chunk/index-BbOCWcRK.js +4 -4
  144. package/chunk/{index-CU6BdnXA.js → index-BestrDUg.js} +6 -6
  145. package/chunk/{index-DAIJvzG8.js.map → index-BestrDUg.js.map} +1 -1
  146. package/chunk/index-Bn00xQJF.js +4 -4
  147. package/chunk/{index-BKyRIfb4.js → index-Boz8OGs2.js} +6 -6
  148. package/chunk/{index-t_EdXFvl.js.map → index-Boz8OGs2.js.map} +1 -1
  149. package/chunk/index-Brpm5gN6.js +4 -4
  150. package/chunk/{index-BZxLbodL.js → index-BwYlPjg-.js} +6 -6
  151. package/chunk/{index-BZxLbodL.js.map → index-BwYlPjg-.js.map} +1 -1
  152. package/chunk/{index-CiSNwFCt.js → index-C6Zi9YN5.js} +6 -6
  153. package/chunk/{index-CiSNwFCt.js.map → index-C6Zi9YN5.js.map} +1 -1
  154. package/chunk/{index-DR6Pa1j5.js → index-C6hAAbwq.js} +6 -6
  155. package/chunk/{index-DR6Pa1j5.js.map → index-C6hAAbwq.js.map} +1 -1
  156. package/chunk/{index-TJmIB8hf.js → index-CHA5YjcZ.js} +5 -5
  157. package/chunk/{index-TJmIB8hf.js.map → index-CHA5YjcZ.js.map} +1 -1
  158. package/chunk/index-CHDBBfsg.js +4 -4
  159. package/chunk/{index-Ag935IQm.js → index-CLCadcyZ.js} +7 -7
  160. package/chunk/{index-PK17Xb1V.js.map → index-CLCadcyZ.js.map} +1 -1
  161. package/chunk/index-CR19uOwz.js +4 -4
  162. package/chunk/index-CTGY1a4m.js +4 -4
  163. package/chunk/{index-BjnL3xjz.js → index-CVNb00ji.js} +6 -6
  164. package/chunk/{index-BjnL3xjz.js.map → index-CVNb00ji.js.map} +1 -1
  165. package/chunk/{index-BGgNLPMu.js → index-C_5U0d5a.js} +6 -6
  166. package/chunk/{index-Du8yP6jg.js.map → index-C_5U0d5a.js.map} +1 -1
  167. package/chunk/index-CaBrLsal.js +4 -4
  168. package/chunk/{index-DUSchoSP.js → index-Ci9xfdh_.js} +6 -6
  169. package/chunk/{index-CXkOlMH8.js.map → index-Ci9xfdh_.js.map} +1 -1
  170. package/chunk/{index-BXgePv3X.js → index-Cjs5VMjq.js} +6 -6
  171. package/chunk/{index-BXgePv3X.js.map → index-Cjs5VMjq.js.map} +1 -1
  172. package/chunk/index-CrPc1exn.js +4 -4
  173. package/chunk/index-CwaTj-69.js +4 -4
  174. package/chunk/index-D2d6x5LN.js +4 -4
  175. package/chunk/index-D7Mqx5na.js +4 -4
  176. package/chunk/index-DFoMYB8K.js +4 -4
  177. package/chunk/index-DIkWpujR.js +4 -4
  178. package/chunk/{index-DknL9KFe.js → index-DIp12ukz.js} +5 -5
  179. package/chunk/{index-DknL9KFe.js.map → index-DIp12ukz.js.map} +1 -1
  180. package/chunk/{index-BUKeo5wI.js → index-DRzWEvzt.js} +5 -5
  181. package/chunk/{index-BUKeo5wI.js.map → index-DRzWEvzt.js.map} +1 -1
  182. package/chunk/{index-DAIJvzG8.js → index-DeYLtsQg.js} +6 -6
  183. package/chunk/{index-CU6BdnXA.js.map → index-DeYLtsQg.js.map} +1 -1
  184. package/chunk/{index-CXkOlMH8.js → index-DluA07xU.js} +6 -6
  185. package/chunk/{index-DUSchoSP.js.map → index-DluA07xU.js.map} +1 -1
  186. package/chunk/index-EUJqfdiJ.js +4 -4
  187. package/chunk/{index-Du8yP6jg.js → index-Zi6lCz6u.js} +6 -6
  188. package/chunk/{index-BGgNLPMu.js.map → index-Zi6lCz6u.js.map} +1 -1
  189. package/chunk/index-dTu4ORna.js +4 -4
  190. package/chunk/{index-CxnTO_Lf.js → index-exPL5Yp5.js} +6 -6
  191. package/chunk/{index-DmsA0RkT.js.map → index-exPL5Yp5.js.map} +1 -1
  192. package/chunk/{index-CYCcqiVr.js → index-rViqil74.js} +6 -6
  193. package/chunk/{index-CYCcqiVr.js.map → index-rViqil74.js.map} +1 -1
  194. package/chunk/{is-D9LIIU_4.js → is-B3D8NTKa.js} +7 -9
  195. package/chunk/is-B3D8NTKa.js.map +1 -0
  196. package/chunk/{it-Bz2z5E_q.js → it-CzAy2lzA.js} +7 -9
  197. package/chunk/it-CzAy2lzA.js.map +1 -0
  198. package/chunk/{iw-RWmLPt1F.js → iw-C9nimuXe.js} +7 -9
  199. package/chunk/iw-C9nimuXe.js.map +1 -0
  200. package/chunk/{ja-C1fHB183.js → ja-BEXgm7zu.js} +7 -9
  201. package/chunk/ja-BEXgm7zu.js.map +1 -0
  202. package/chunk/{ko-Dh3NX69O.js → ko-Ct-zPR2E.js} +7 -9
  203. package/chunk/ko-Ct-zPR2E.js.map +1 -0
  204. package/chunk/{lo-BuP0_Qql.js → lo-Di9C_kLP.js} +7 -9
  205. package/chunk/lo-Di9C_kLP.js.map +1 -0
  206. package/chunk/{lt-Bx6Z7UF-.js → lt-CEBQxuWT.js} +7 -9
  207. package/chunk/lt-CEBQxuWT.js.map +1 -0
  208. package/chunk/{militaryStepHelpers-CmAqOhOv.js → militaryStepHelpers-CLn6PXMu.js} +5 -5
  209. package/chunk/{militaryStepHelpers-CmAqOhOv.js.map → militaryStepHelpers-CLn6PXMu.js.map} +1 -1
  210. package/chunk/{militaryStepHelpers-DuJLFDxo.js → militaryStepHelpers-pEvqlKjI.js} +5 -5
  211. package/chunk/{militaryStepHelpers-DuJLFDxo.js.map → militaryStepHelpers-pEvqlKjI.js.map} +1 -1
  212. package/chunk/mocks-CeAm-JFs.js +4 -4
  213. package/chunk/mocks-ClJ0M6QH.js +4 -4
  214. package/chunk/{ms-DJDwMNt0.js → ms-CxGIGN7C.js} +7 -9
  215. package/chunk/ms-CxGIGN7C.js.map +1 -0
  216. package/chunk/{nl-BE-FCfgXo4p.js → nl-BE-DPBUnfk6.js} +7 -9
  217. package/chunk/nl-BE-DPBUnfk6.js.map +1 -0
  218. package/chunk/{nl-l0FAo3SJ.js → nl-BIm7MF9X.js} +7 -9
  219. package/chunk/nl-BIm7MF9X.js.map +1 -0
  220. package/chunk/{no-DD3sJg9n.js → no-BmBisNVx.js} +7 -9
  221. package/chunk/no-BmBisNVx.js.map +1 -0
  222. package/chunk/{pl-D_zJPIDe.js → pl-BOGNzi_o.js} +7 -9
  223. package/chunk/pl-BOGNzi_o.js.map +1 -0
  224. package/chunk/{pt-BR-Cz1eEHJ3.js → pt-BR-uABX_syI.js} +7 -9
  225. package/chunk/pt-BR-uABX_syI.js.map +1 -0
  226. package/chunk/{pt-CgXBGGXP.js → pt-MSESKPWr.js} +7 -9
  227. package/chunk/pt-MSESKPWr.js.map +1 -0
  228. package/chunk/{ro--4JUD7Mw.js → ro-DoSzUhte.js} +7 -9
  229. package/chunk/ro-DoSzUhte.js.map +1 -0
  230. package/chunk/{ru-BreJT3Z3.js → ru-_re-OOAp.js} +7 -9
  231. package/chunk/ru-_re-OOAp.js.map +1 -0
  232. package/chunk/{sk-C-eu269d.js → sk-BS3zToE5.js} +7 -9
  233. package/chunk/sk-BS3zToE5.js.map +1 -0
  234. package/chunk/{sl-C0eT0gHo.js → sl-CVBUMpyN.js} +7 -9
  235. package/chunk/sl-CVBUMpyN.js.map +1 -0
  236. package/chunk/{sr-NNV6xsvv.js → sr-Cmqfavur.js} +7 -9
  237. package/chunk/sr-Cmqfavur.js.map +1 -0
  238. package/chunk/{sv-BqM8XBVE.js → sv-BzRp9aoC.js} +7 -9
  239. package/chunk/sv-BzRp9aoC.js.map +1 -0
  240. package/chunk/{sw-CYiIigvo.js → sw-C4I4Ivyc.js} +7 -9
  241. package/chunk/sw-C4I4Ivyc.js.map +1 -0
  242. package/chunk/{th-DMkN4DQH.js → th-SsMlrFQN.js} +7 -9
  243. package/chunk/th-SsMlrFQN.js.map +1 -0
  244. package/chunk/{tr-E7H8gpyA.js → tr-i4hcCWIF.js} +7 -9
  245. package/chunk/tr-i4hcCWIF.js.map +1 -0
  246. package/chunk/{uk-D2qtEHGQ.js → uk-CLl1S03h.js} +7 -9
  247. package/chunk/uk-CLl1S03h.js.map +1 -0
  248. package/chunk/{ur-ClsI9iLD.js → ur-CfVN1Pr2.js} +7 -9
  249. package/chunk/ur-CfVN1Pr2.js.map +1 -0
  250. package/chunk/useCollectFieldsEndpoint-Cd6d_u47.js +4 -4
  251. package/chunk/useCollectFieldsEndpoint-DqTjyVEr.js +4 -4
  252. package/chunk/useMetrics-D2fG6cgw.js +4 -4
  253. package/chunk/useMetrics-wq7yrL0b.js +4 -4
  254. package/chunk/{vi-jxSi9q_E.js → vi-STS0AV-q.js} +7 -9
  255. package/chunk/vi-STS0AV-q.js.map +1 -0
  256. package/chunk/{zh-HK-BYUDZCp7.js → zh-HK-DGm6tmJZ.js} +7 -9
  257. package/chunk/zh-HK-DGm6tmJZ.js.map +1 -0
  258. package/chunk/{zh-D-OOZLxf.js → zh-rPW1DJOh.js} +7 -9
  259. package/chunk/zh-rPW1DJOh.js.map +1 -0
  260. package/chunk/{zu-BOhAY6qp.js → zu-D7Vc6viT.js} +7 -9
  261. package/chunk/zu-D7Vc6viT.js.map +1 -0
  262. package/package.json +1 -1
  263. package/sheerid-install.css +4 -4
  264. package/sheerid-install.js +4 -4
  265. package/sheerid-install.js.map +1 -1
  266. package/sheerid.css +5 -5
  267. package/sheerid.js +2601 -2602
  268. package/sheerid.js.map +1 -1
  269. package/chunk/CaptchaComponent-BfZgvFl0.js +0 -2313
  270. package/chunk/CaptchaComponent-BfZgvFl0.js.map +0 -1
  271. package/chunk/CaptchaComponent-DFZOJr8t.js +0 -2309
  272. package/chunk/CaptchaComponent-DFZOJr8t.js.map +0 -1
  273. package/chunk/de-BUM4z-jS.js.map +0 -1
  274. package/chunk/el-BFc5pFNB.js.map +0 -1
  275. package/chunk/es-r_wqCJFE.js.map +0 -1
  276. package/chunk/fi-CxavTw1u.js.map +0 -1
  277. package/chunk/fr-CbsC646w.js.map +0 -1
  278. package/chunk/ga-BhwKiwTT.js.map +0 -1
  279. package/chunk/hi-IN-DZ-btyGZ.js.map +0 -1
  280. package/chunk/hr-DiouezmM.js.map +0 -1
  281. package/chunk/hu-CcD2Q3wr.js.map +0 -1
  282. package/chunk/id-CFyUqQ6j.js.map +0 -1
  283. package/chunk/is-D9LIIU_4.js.map +0 -1
  284. package/chunk/it-Bz2z5E_q.js.map +0 -1
  285. package/chunk/iw-RWmLPt1F.js.map +0 -1
  286. package/chunk/ja-C1fHB183.js.map +0 -1
  287. package/chunk/ko-Dh3NX69O.js.map +0 -1
  288. package/chunk/lo-BuP0_Qql.js.map +0 -1
  289. package/chunk/lt-Bx6Z7UF-.js.map +0 -1
  290. package/chunk/ms-DJDwMNt0.js.map +0 -1
  291. package/chunk/nl-BE-FCfgXo4p.js.map +0 -1
  292. package/chunk/nl-l0FAo3SJ.js.map +0 -1
  293. package/chunk/no-DD3sJg9n.js.map +0 -1
  294. package/chunk/pl-D_zJPIDe.js.map +0 -1
  295. package/chunk/pt-BR-Cz1eEHJ3.js.map +0 -1
  296. package/chunk/pt-CgXBGGXP.js.map +0 -1
  297. package/chunk/ro--4JUD7Mw.js.map +0 -1
  298. package/chunk/ru-BreJT3Z3.js.map +0 -1
  299. package/chunk/sk-C-eu269d.js.map +0 -1
  300. package/chunk/sl-C0eT0gHo.js.map +0 -1
  301. package/chunk/sr-NNV6xsvv.js.map +0 -1
  302. package/chunk/sv-BqM8XBVE.js.map +0 -1
  303. package/chunk/sw-CYiIigvo.js.map +0 -1
  304. package/chunk/th-DMkN4DQH.js.map +0 -1
  305. package/chunk/tr-E7H8gpyA.js.map +0 -1
  306. package/chunk/uk-D2qtEHGQ.js.map +0 -1
  307. package/chunk/ur-ClsI9iLD.js.map +0 -1
  308. package/chunk/vi-jxSi9q_E.js.map +0 -1
  309. package/chunk/zh-D-OOZLxf.js.map +0 -1
  310. package/chunk/zh-HK-BYUDZCp7.js.map +0 -1
  311. package/chunk/zu-BOhAY6qp.js.map +0 -1
@@ -1,2313 +0,0 @@
1
-
2
- /**
3
- * WARNING: This file is intended to be used within MySheerID.
4
- * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
- */
6
- /**
7
- * VERSION: 2.225.0
8
- * BUILD_TIMESTAMP: 1777486263301
9
- * BUILD_DATE: Wed Apr 29 2026 18:11:03 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: b9ed651cd319faec6d6426ee59ed0d39e392a4f9
11
- */
12
- import { b as Re, s as $t, j as l, d as ze, R as Be, ao as or, a$ as Qt, F as ge, g as It, b0 as ir, W as yr, i as dt, H as gr, l as St, h as lt, p as Xt, b1 as He, aA as Lt, a4 as vr, b2 as Cr, ai as _r, b3 as xr, r as jr, N as wr, E as Sr, J as Ft, o as Ir } from "../_mysheerid-preview.js";
13
- import { a as sr, F as ur, g as Tr } from "./FormFieldLayout-DDEEmlGC.js";
14
- import { F as Rt } from "./FormFieldText-CJ-GVpZE.js";
15
- import { I as lr, g as er } from "./FormSelectChoice-C-rIlDKl.js";
16
- import { I as tr } from "./InputText-PEiatRRJ.js";
17
- import { u as Er, M as Ie } from "./useMetrics-D2fG6cgw.js";
18
- const Nr = ({
19
- isErrored: r,
20
- onChange: f,
21
- value: i,
22
- ariaLabelledby: o,
23
- ariaDescribedBy: d,
24
- id: v = "new",
25
- disabled: I = !1
26
- }) => {
27
- const N = o ? { "aria-labelledby": o } : {}, M = Re.useRef(null), ee = () => {
28
- M.current && f(!M.current.checked);
29
- }, ie = (Y) => {
30
- (Y.key === " " || Y.key === "Enter") && (Y.preventDefault(), ee());
31
- };
32
- return Re.useEffect(() => {
33
- $t("optIn", M.current);
34
- }), Re.useEffect(() => {
35
- M.current && (M.current.checked = i);
36
- }, [i]), /* @__PURE__ */ l.jsxs("div", { className: "sid-checkbox", children: [
37
- /* @__PURE__ */ l.jsx(
38
- "input",
39
- {
40
- className: "sid-checkbox__input",
41
- id: `sid-opt-in__${v}`,
42
- name: "sid-opt-in",
43
- type: "checkbox",
44
- checked: i,
45
- ref: M,
46
- "aria-invalid": r,
47
- "aria-describedby": d,
48
- disabled: I,
49
- tabIndex: -1
50
- }
51
- ),
52
- /* @__PURE__ */ l.jsx(
53
- "span",
54
- {
55
- ...N,
56
- className: `sid-checkbox__input-like ${r ? "sid-checkbox__input-like--error" : ""}`,
57
- onClick: ee,
58
- onKeyDown: ie,
59
- role: "checkbox",
60
- "aria-checked": i,
61
- tabIndex: 0,
62
- "data-testid": "stylable-checkbox-input"
63
- }
64
- )
65
- ] });
66
- }, Pt = Nr, Mr = ({
67
- isErrored: r,
68
- isRequired: f,
69
- onChange: i,
70
- value: o,
71
- verificationService: d,
72
- disabled: v = !1
73
- }) => {
74
- const I = "marketConsentValue", N = `sid-${ze(I)}-error`, M = Be.useCallback(
75
- (Y) => {
76
- const g = "marketConsentRequired";
77
- if (f && !Y)
78
- return g;
79
- },
80
- [f]
81
- ), ie = (d && d.programTheme && or(d.programTheme) || {}).message || "Yes, send me {company} marketing communications about exclusive sales, special offers, latest products and more";
82
- return Be.useEffect(() => {
83
- Qt(I, M);
84
- }, [I, M]), Be.useEffect(() => {
85
- Qt(I, M);
86
- }, [I, M]), /* @__PURE__ */ l.jsxs("div", { className: "sid-field sid-opt-in", children: [
87
- /* @__PURE__ */ l.jsx("div", { className: "sid-l-space-top-md" }),
88
- /* @__PURE__ */ l.jsx("div", { className: "sid-l-position", children: /* @__PURE__ */ l.jsxs("label", { htmlFor: "sid-opt-in__optIn", children: [
89
- /* @__PURE__ */ l.jsx(
90
- Pt,
91
- {
92
- id: "optIn",
93
- ariaDescribedBy: r ? N : void 0,
94
- isErrored: r,
95
- onChange: i,
96
- value: o,
97
- disabled: v
98
- }
99
- ),
100
- /* @__PURE__ */ l.jsx("div", { className: "sid-field__label sid-checkbox__label", children: d ? /* @__PURE__ */ l.jsx(ge, { id: "companyName", defaultMessage: "{Company}", children: (Y) => /* @__PURE__ */ l.jsx(
101
- ge,
102
- {
103
- id: "optIn",
104
- values: { company: Y },
105
- defaultMessage: ie
106
- }
107
- ) }) : /* @__PURE__ */ l.jsx(ge, { id: "optIn", defaultMessage: ie }) }),
108
- r && /* @__PURE__ */ l.jsx("div", { className: "sid-field-error", id: N, children: /* @__PURE__ */ l.jsx(
109
- ge,
110
- {
111
- id: "errorId.invalidOptIn",
112
- defaultMessage: "Must be selected to continue"
113
- }
114
- ) })
115
- ] }) })
116
- ] });
117
- }, na = ({
118
- verificationService: r,
119
- isErrored: f,
120
- onChange: i,
121
- viewModel: o,
122
- disabled: d = !1
123
- }) => {
124
- const { programTheme: v } = r, I = or(v);
125
- return It("marketConsentValue")?.hidden ? null : I.enabled ? /* @__PURE__ */ l.jsx(
126
- Mr,
127
- {
128
- isErrored: f,
129
- isRequired: I.required,
130
- verificationService: r,
131
- value: o.metadata && o.metadata.marketConsentValue || !1,
132
- onChange: (M) => i(M),
133
- disabled: d
134
- }
135
- ) : null;
136
- };
137
- var At, rr;
138
- function kr() {
139
- return rr || (rr = 1, At = (function(r) {
140
- var f = {};
141
- function i(o) {
142
- if (f[o]) return f[o].exports;
143
- var d = f[o] = { i: o, l: !1, exports: {} };
144
- return r[o].call(d.exports, d, d.exports, i), d.l = !0, d.exports;
145
- }
146
- return i.m = r, i.c = f, i.d = function(o, d, v) {
147
- i.o(o, d) || Object.defineProperty(o, d, { enumerable: !0, get: v });
148
- }, i.r = function(o) {
149
- typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(o, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(o, "__esModule", { value: !0 });
150
- }, i.t = function(o, d) {
151
- if (1 & d && (o = i(o)), 8 & d || 4 & d && typeof o == "object" && o && o.__esModule) return o;
152
- var v = /* @__PURE__ */ Object.create(null);
153
- if (i.r(v), Object.defineProperty(v, "default", { enumerable: !0, value: o }), 2 & d && typeof o != "string") for (var I in o) i.d(v, I, (function(N) {
154
- return o[N];
155
- }).bind(null, I));
156
- return v;
157
- }, i.n = function(o) {
158
- var d = o && o.__esModule ? function() {
159
- return o.default;
160
- } : function() {
161
- return o;
162
- };
163
- return i.d(d, "a", d), d;
164
- }, i.o = function(o, d) {
165
- return Object.prototype.hasOwnProperty.call(o, d);
166
- }, i.p = "", i(i.s = 9);
167
- })([function(r, f) {
168
- r.exports = ir();
169
- }, function(r, f, i) {
170
- var o;
171
- (function() {
172
- var d = {}.hasOwnProperty;
173
- function v() {
174
- for (var I = [], N = 0; N < arguments.length; N++) {
175
- var M = arguments[N];
176
- if (M) {
177
- var ee = typeof M;
178
- if (ee === "string" || ee === "number") I.push(M);
179
- else if (Array.isArray(M) && M.length) {
180
- var ie = v.apply(null, M);
181
- ie && I.push(ie);
182
- } else if (ee === "object") for (var Y in M) d.call(M, Y) && M[Y] && I.push(Y);
183
- }
184
- }
185
- return I.join(" ");
186
- }
187
- r.exports ? (v.default = v, r.exports = v) : (o = (function() {
188
- return v;
189
- }).apply(f, [])) === void 0 || (r.exports = o);
190
- })();
191
- }, function(r, f, i) {
192
- (function(o) {
193
- var d = /^\s+|\s+$/g, v = /^[-+]0x[0-9a-f]+$/i, I = /^0b[01]+$/i, N = /^0o[0-7]+$/i, M = parseInt, ee = typeof o == "object" && o && o.Object === Object && o, ie = typeof self == "object" && self && self.Object === Object && self, Y = ee || ie || Function("return this")(), g = Object.prototype.toString, R = Y.Symbol, P = R ? R.prototype : void 0, te = P ? P.toString : void 0;
194
- function m(_) {
195
- if (typeof _ == "string") return _;
196
- if ($(_)) return te ? te.call(_) : "";
197
- var C = _ + "";
198
- return C == "0" && 1 / _ == -1 / 0 ? "-0" : C;
199
- }
200
- function se(_) {
201
- var C = typeof _;
202
- return !!_ && (C == "object" || C == "function");
203
- }
204
- function $(_) {
205
- return typeof _ == "symbol" || /* @__PURE__ */ (function(C) {
206
- return !!C && typeof C == "object";
207
- })(_) && g.call(_) == "[object Symbol]";
208
- }
209
- function B(_) {
210
- return _ ? (_ = (function(C) {
211
- if (typeof C == "number") return C;
212
- if ($(C)) return NaN;
213
- if (se(C)) {
214
- var Q = typeof C.valueOf == "function" ? C.valueOf() : C;
215
- C = se(Q) ? Q + "" : Q;
216
- }
217
- if (typeof C != "string") return C === 0 ? C : +C;
218
- C = C.replace(d, "");
219
- var G = I.test(C);
220
- return G || N.test(C) ? M(C.slice(2), G ? 2 : 8) : v.test(C) ? NaN : +C;
221
- })(_)) === 1 / 0 || _ === -1 / 0 ? 17976931348623157e292 * (_ < 0 ? -1 : 1) : _ == _ ? _ : 0 : _ === 0 ? _ : 0;
222
- }
223
- r.exports = function(_, C, Q) {
224
- var G, J, O, V;
225
- return _ = (G = _) == null ? "" : m(G), J = (function(xe) {
226
- var de = B(xe), we = de % 1;
227
- return de == de ? we ? de - we : de : 0;
228
- })(Q), O = 0, V = _.length, J == J && (V !== void 0 && (J = J <= V ? J : V), O !== void 0 && (J = J >= O ? J : O)), Q = J, C = m(C), _.slice(Q, Q + C.length) == C;
229
- };
230
- }).call(this, i(3));
231
- }, function(r, f) {
232
- var i;
233
- i = /* @__PURE__ */ (function() {
234
- return this;
235
- })();
236
- try {
237
- i = i || new Function("return this")();
238
- } catch {
239
- typeof window == "object" && (i = window);
240
- }
241
- r.exports = i;
242
- }, function(r, f, i) {
243
- (function(o) {
244
- var d = /^\[object .+?Constructor\]$/, v = typeof o == "object" && o && o.Object === Object && o, I = typeof self == "object" && self && self.Object === Object && self, N = v || I || Function("return this")(), M, ee = Array.prototype, ie = Function.prototype, Y = Object.prototype, g = N["__core-js_shared__"], R = (M = /[^.]+$/.exec(g && g.keys && g.keys.IE_PROTO || "")) ? "Symbol(src)_1." + M : "", P = ie.toString, te = Y.hasOwnProperty, m = Y.toString, se = RegExp("^" + P.call(te).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), $ = ee.splice, B = xe(N, "Map"), _ = xe(Object, "create");
245
- function C(b) {
246
- var w = -1, p = b ? b.length : 0;
247
- for (this.clear(); ++w < p; ) {
248
- var x = b[w];
249
- this.set(x[0], x[1]);
250
- }
251
- }
252
- function Q(b) {
253
- var w = -1, p = b ? b.length : 0;
254
- for (this.clear(); ++w < p; ) {
255
- var x = b[w];
256
- this.set(x[0], x[1]);
257
- }
258
- }
259
- function G(b) {
260
- var w = -1, p = b ? b.length : 0;
261
- for (this.clear(); ++w < p; ) {
262
- var x = b[w];
263
- this.set(x[0], x[1]);
264
- }
265
- }
266
- function J(b, w) {
267
- for (var p, x, fe = b.length; fe--; ) if ((p = b[fe][0]) === (x = w) || p != p && x != x) return fe;
268
- return -1;
269
- }
270
- function O(b) {
271
- return !(!we(b) || (w = b, R && R in w)) && ((function(p) {
272
- var x = we(p) ? m.call(p) : "";
273
- return x == "[object Function]" || x == "[object GeneratorFunction]";
274
- })(b) || (function(p) {
275
- var x = !1;
276
- if (p != null && typeof p.toString != "function") try {
277
- x = !!(p + "");
278
- } catch {
279
- }
280
- return x;
281
- })(b) ? se : d).test((function(p) {
282
- if (p != null) {
283
- try {
284
- return P.call(p);
285
- } catch {
286
- }
287
- try {
288
- return p + "";
289
- } catch {
290
- }
291
- }
292
- return "";
293
- })(b));
294
- var w;
295
- }
296
- function V(b, w) {
297
- var p, x, fe = b.__data__;
298
- return ((x = typeof (p = w)) == "string" || x == "number" || x == "symbol" || x == "boolean" ? p !== "__proto__" : p === null) ? fe[typeof w == "string" ? "string" : "hash"] : fe.map;
299
- }
300
- function xe(b, w) {
301
- var p = (function(x, fe) {
302
- return x?.[fe];
303
- })(b, w);
304
- return O(p) ? p : void 0;
305
- }
306
- function de(b, w) {
307
- if (typeof b != "function" || w && typeof w != "function") throw new TypeError("Expected a function");
308
- var p = function() {
309
- var x = arguments, fe = w ? w.apply(this, x) : x[0], ke = p.cache;
310
- if (ke.has(fe)) return ke.get(fe);
311
- var S = b.apply(this, x);
312
- return p.cache = ke.set(fe, S), S;
313
- };
314
- return p.cache = new (de.Cache || G)(), p;
315
- }
316
- function we(b) {
317
- var w = typeof b;
318
- return !!b && (w == "object" || w == "function");
319
- }
320
- C.prototype.clear = function() {
321
- this.__data__ = _ ? _(null) : {};
322
- }, C.prototype.delete = function(b) {
323
- return this.has(b) && delete this.__data__[b];
324
- }, C.prototype.get = function(b) {
325
- var w = this.__data__;
326
- if (_) {
327
- var p = w[b];
328
- return p === "__lodash_hash_undefined__" ? void 0 : p;
329
- }
330
- return te.call(w, b) ? w[b] : void 0;
331
- }, C.prototype.has = function(b) {
332
- var w = this.__data__;
333
- return _ ? w[b] !== void 0 : te.call(w, b);
334
- }, C.prototype.set = function(b, w) {
335
- return this.__data__[b] = _ && w === void 0 ? "__lodash_hash_undefined__" : w, this;
336
- }, Q.prototype.clear = function() {
337
- this.__data__ = [];
338
- }, Q.prototype.delete = function(b) {
339
- var w = this.__data__, p = J(w, b);
340
- return !(p < 0) && (p == w.length - 1 ? w.pop() : $.call(w, p, 1), !0);
341
- }, Q.prototype.get = function(b) {
342
- var w = this.__data__, p = J(w, b);
343
- return p < 0 ? void 0 : w[p][1];
344
- }, Q.prototype.has = function(b) {
345
- return J(this.__data__, b) > -1;
346
- }, Q.prototype.set = function(b, w) {
347
- var p = this.__data__, x = J(p, b);
348
- return x < 0 ? p.push([b, w]) : p[x][1] = w, this;
349
- }, G.prototype.clear = function() {
350
- this.__data__ = { hash: new C(), map: new (B || Q)(), string: new C() };
351
- }, G.prototype.delete = function(b) {
352
- return V(this, b).delete(b);
353
- }, G.prototype.get = function(b) {
354
- return V(this, b).get(b);
355
- }, G.prototype.has = function(b) {
356
- return V(this, b).has(b);
357
- }, G.prototype.set = function(b, w) {
358
- return V(this, b).set(b, w), this;
359
- }, de.Cache = G, r.exports = de;
360
- }).call(this, i(3));
361
- }, function(r, f, i) {
362
- (function(o) {
363
- var d = /^\s+|\s+$/g, v = /^[-+]0x[0-9a-f]+$/i, I = /^0b[01]+$/i, N = /^0o[0-7]+$/i, M = parseInt, ee = typeof o == "object" && o && o.Object === Object && o, ie = typeof self == "object" && self && self.Object === Object && self, Y = ee || ie || Function("return this")(), g = Object.prototype.toString, R = Math.max, P = Math.min, te = function() {
364
- return Y.Date.now();
365
- };
366
- function m($) {
367
- var B = typeof $;
368
- return !!$ && (B == "object" || B == "function");
369
- }
370
- function se($) {
371
- if (typeof $ == "number") return $;
372
- if ((function(C) {
373
- return typeof C == "symbol" || /* @__PURE__ */ (function(Q) {
374
- return !!Q && typeof Q == "object";
375
- })(C) && g.call(C) == "[object Symbol]";
376
- })($)) return NaN;
377
- if (m($)) {
378
- var B = typeof $.valueOf == "function" ? $.valueOf() : $;
379
- $ = m(B) ? B + "" : B;
380
- }
381
- if (typeof $ != "string") return $ === 0 ? $ : +$;
382
- $ = $.replace(d, "");
383
- var _ = I.test($);
384
- return _ || N.test($) ? M($.slice(2), _ ? 2 : 8) : v.test($) ? NaN : +$;
385
- }
386
- r.exports = function($, B, _) {
387
- var C, Q, G, J, O, V, xe = 0, de = !1, we = !1, b = !0;
388
- if (typeof $ != "function") throw new TypeError("Expected a function");
389
- function w(h) {
390
- var D = C, K = Q;
391
- return C = Q = void 0, xe = h, J = $.apply(K, D);
392
- }
393
- function p(h) {
394
- return xe = h, O = setTimeout(fe, B), de ? w(h) : J;
395
- }
396
- function x(h) {
397
- var D = h - V;
398
- return V === void 0 || D >= B || D < 0 || we && h - xe >= G;
399
- }
400
- function fe() {
401
- var h = te();
402
- if (x(h)) return ke(h);
403
- O = setTimeout(fe, (function(D) {
404
- var K = B - (D - V);
405
- return we ? P(K, G - (D - xe)) : K;
406
- })(h));
407
- }
408
- function ke(h) {
409
- return O = void 0, b && C ? w(h) : (C = Q = void 0, J);
410
- }
411
- function S() {
412
- var h = te(), D = x(h);
413
- if (C = arguments, Q = this, V = h, D) {
414
- if (O === void 0) return p(V);
415
- if (we) return O = setTimeout(fe, B), w(V);
416
- }
417
- return O === void 0 && (O = setTimeout(fe, B)), J;
418
- }
419
- return B = se(B) || 0, m(_) && (de = !!_.leading, G = (we = "maxWait" in _) ? R(se(_.maxWait) || 0, B) : G, b = "trailing" in _ ? !!_.trailing : b), S.cancel = function() {
420
- O !== void 0 && clearTimeout(O), xe = 0, C = V = Q = O = void 0;
421
- }, S.flush = function() {
422
- return O === void 0 ? J : ke(te());
423
- }, S;
424
- };
425
- }).call(this, i(3));
426
- }, function(r, f, i) {
427
- (function(o, d) {
428
- var v = "[object Arguments]", I = "[object Map]", N = "[object Object]", M = "[object Set]", ee = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ie = /^\w*$/, Y = /^\./, g = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, R = /\\(\\)?/g, P = /^\[object .+?Constructor\]$/, te = /^(?:0|[1-9]\d*)$/, m = {};
429
- m["[object Float32Array]"] = m["[object Float64Array]"] = m["[object Int8Array]"] = m["[object Int16Array]"] = m["[object Int32Array]"] = m["[object Uint8Array]"] = m["[object Uint8ClampedArray]"] = m["[object Uint16Array]"] = m["[object Uint32Array]"] = !0, m[v] = m["[object Array]"] = m["[object ArrayBuffer]"] = m["[object Boolean]"] = m["[object DataView]"] = m["[object Date]"] = m["[object Error]"] = m["[object Function]"] = m[I] = m["[object Number]"] = m[N] = m["[object RegExp]"] = m[M] = m["[object String]"] = m["[object WeakMap]"] = !1;
430
- var se = typeof o == "object" && o && o.Object === Object && o, $ = typeof self == "object" && self && self.Object === Object && self, B = se || $ || Function("return this")(), _ = f && !f.nodeType && f, C = _ && typeof d == "object" && d && !d.nodeType && d, Q = C && C.exports === _ && se.process, G = (function() {
431
- try {
432
- return Q && Q.binding("util");
433
- } catch {
434
- }
435
- })(), J = G && G.isTypedArray;
436
- function O(t, a, s, c) {
437
- var L = -1, F = t ? t.length : 0;
438
- for (c && F && (s = t[++L]); ++L < F; ) s = a(s, t[L], L, t);
439
- return s;
440
- }
441
- function V(t, a) {
442
- for (var s = -1, c = t ? t.length : 0; ++s < c; ) if (a(t[s], s, t)) return !0;
443
- return !1;
444
- }
445
- function xe(t, a, s, c, L) {
446
- return L(t, (function(F, W, Ce) {
447
- s = c ? (c = !1, F) : a(s, F, W, Ce);
448
- })), s;
449
- }
450
- function de(t) {
451
- var a = !1;
452
- if (t != null && typeof t.toString != "function") try {
453
- a = !!(t + "");
454
- } catch {
455
- }
456
- return a;
457
- }
458
- function we(t) {
459
- var a = -1, s = Array(t.size);
460
- return t.forEach((function(c, L) {
461
- s[++a] = [L, c];
462
- })), s;
463
- }
464
- function b(t) {
465
- var a = -1, s = Array(t.size);
466
- return t.forEach((function(c) {
467
- s[++a] = c;
468
- })), s;
469
- }
470
- var w, p, x, fe = Array.prototype, ke = Function.prototype, S = Object.prototype, h = B["__core-js_shared__"], D = (w = /[^.]+$/.exec(h && h.keys && h.keys.IE_PROTO || "")) ? "Symbol(src)_1." + w : "", K = ke.toString, y = S.hasOwnProperty, e = S.toString, ne = RegExp("^" + K.call(y).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), re = B.Symbol, X = B.Uint8Array, le = S.propertyIsEnumerable, pe = fe.splice, me = (p = Object.keys, x = Object, function(t) {
471
- return p(x(t));
472
- }), oe = tt(B, "DataView"), je = tt(B, "Map"), z = tt(B, "Promise"), n = tt(B, "Set"), u = tt(B, "WeakMap"), j = tt(Object, "create"), q = Ze(oe), H = Ze(je), U = Ze(z), Z = Ze(n), ce = Ze(u), T = re ? re.prototype : void 0, A = T ? T.valueOf : void 0, ae = T ? T.toString : void 0;
473
- function E(t) {
474
- var a = -1, s = t ? t.length : 0;
475
- for (this.clear(); ++a < s; ) {
476
- var c = t[a];
477
- this.set(c[0], c[1]);
478
- }
479
- }
480
- function k(t) {
481
- var a = -1, s = t ? t.length : 0;
482
- for (this.clear(); ++a < s; ) {
483
- var c = t[a];
484
- this.set(c[0], c[1]);
485
- }
486
- }
487
- function ve(t) {
488
- var a = -1, s = t ? t.length : 0;
489
- for (this.clear(); ++a < s; ) {
490
- var c = t[a];
491
- this.set(c[0], c[1]);
492
- }
493
- }
494
- function De(t) {
495
- var a = -1, s = t ? t.length : 0;
496
- for (this.__data__ = new ve(); ++a < s; ) this.add(t[a]);
497
- }
498
- function Ne(t) {
499
- this.__data__ = new k(t);
500
- }
501
- function Fe(t, a) {
502
- var s = Ue(t) || Gt(t) ? (function(W, Ce) {
503
- for (var _e = -1, be = Array(W); ++_e < W; ) be[_e] = Ce(_e);
504
- return be;
505
- })(t.length, String) : [], c = s.length, L = !!c;
506
- for (var F in t) !y.call(t, F) || L && (F == "length" || Vt(F, c)) || s.push(F);
507
- return s;
508
- }
509
- function Pe(t, a) {
510
- for (var s = t.length; s--; ) if (Ut(t[s][0], a)) return s;
511
- return -1;
512
- }
513
- E.prototype.clear = function() {
514
- this.__data__ = j ? j(null) : {};
515
- }, E.prototype.delete = function(t) {
516
- return this.has(t) && delete this.__data__[t];
517
- }, E.prototype.get = function(t) {
518
- var a = this.__data__;
519
- if (j) {
520
- var s = a[t];
521
- return s === "__lodash_hash_undefined__" ? void 0 : s;
522
- }
523
- return y.call(a, t) ? a[t] : void 0;
524
- }, E.prototype.has = function(t) {
525
- var a = this.__data__;
526
- return j ? a[t] !== void 0 : y.call(a, t);
527
- }, E.prototype.set = function(t, a) {
528
- return this.__data__[t] = j && a === void 0 ? "__lodash_hash_undefined__" : a, this;
529
- }, k.prototype.clear = function() {
530
- this.__data__ = [];
531
- }, k.prototype.delete = function(t) {
532
- var a = this.__data__, s = Pe(a, t);
533
- return !(s < 0) && (s == a.length - 1 ? a.pop() : pe.call(a, s, 1), !0);
534
- }, k.prototype.get = function(t) {
535
- var a = this.__data__, s = Pe(a, t);
536
- return s < 0 ? void 0 : a[s][1];
537
- }, k.prototype.has = function(t) {
538
- return Pe(this.__data__, t) > -1;
539
- }, k.prototype.set = function(t, a) {
540
- var s = this.__data__, c = Pe(s, t);
541
- return c < 0 ? s.push([t, a]) : s[c][1] = a, this;
542
- }, ve.prototype.clear = function() {
543
- this.__data__ = { hash: new E(), map: new (je || k)(), string: new E() };
544
- }, ve.prototype.delete = function(t) {
545
- return ft(this, t).delete(t);
546
- }, ve.prototype.get = function(t) {
547
- return ft(this, t).get(t);
548
- }, ve.prototype.has = function(t) {
549
- return ft(this, t).has(t);
550
- }, ve.prototype.set = function(t, a) {
551
- return ft(this, t).set(t, a), this;
552
- }, De.prototype.add = De.prototype.push = function(t) {
553
- return this.__data__.set(t, "__lodash_hash_undefined__"), this;
554
- }, De.prototype.has = function(t) {
555
- return this.__data__.has(t);
556
- }, Ne.prototype.clear = function() {
557
- this.__data__ = new k();
558
- }, Ne.prototype.delete = function(t) {
559
- return this.__data__.delete(t);
560
- }, Ne.prototype.get = function(t) {
561
- return this.__data__.get(t);
562
- }, Ne.prototype.has = function(t) {
563
- return this.__data__.has(t);
564
- }, Ne.prototype.set = function(t, a) {
565
- var s = this.__data__;
566
- if (s instanceof k) {
567
- var c = s.__data__;
568
- if (!je || c.length < 199) return c.push([t, a]), this;
569
- s = this.__data__ = new ve(c);
570
- }
571
- return s.set(t, a), this;
572
- };
573
- var Je, Se = (Je = function(t, a) {
574
- return t && et(t, a, yt);
575
- }, function(t, a) {
576
- if (t == null) return t;
577
- if (!Nt(t)) return Je(t, a);
578
- for (var s = t.length, c = -1, L = Object(t); ++c < s && a(L[c], c, L) !== !1; ) ;
579
- return t;
580
- }), et = /* @__PURE__ */ (function(t) {
581
- return function(a, s, c) {
582
- for (var L = -1, F = Object(a), W = c(a), Ce = W.length; Ce--; ) {
583
- var _e = W[++L];
584
- if (s(F[_e], _e, F) === !1) break;
585
- }
586
- return a;
587
- };
588
- })();
589
- function ot(t, a) {
590
- for (var s = 0, c = (a = pt(a, t) ? [a] : Ht(a)).length; t != null && s < c; ) t = t[ht(a[s++])];
591
- return s && s == c ? t : void 0;
592
- }
593
- function Tt(t, a) {
594
- return t != null && a in Object(t);
595
- }
596
- function it(t, a, s, c, L) {
597
- return t === a || (t == null || a == null || !mt(t) && !bt(a) ? t != t && a != a : (function(F, W, Ce, _e, be, ue) {
598
- var Ae = Ue(F), Me = Ue(W), Te = "[object Array]", Ee = "[object Array]";
599
- Ae || (Te = (Te = qe(F)) == v ? N : Te), Me || (Ee = (Ee = qe(W)) == v ? N : Ee);
600
- var $e = Te == N && !de(F), rt = Ee == N && !de(W), Ge = Te == Ee;
601
- if (Ge && !$e) return ue || (ue = new Ne()), Ae || pr(F) ? Bt(F, W, Ce, _e, be, ue) : (function(ye, he, Ot, Qe, gt, Le, Ve) {
602
- switch (Ot) {
603
- case "[object DataView]":
604
- if (ye.byteLength != he.byteLength || ye.byteOffset != he.byteOffset) return !1;
605
- ye = ye.buffer, he = he.buffer;
606
- case "[object ArrayBuffer]":
607
- return !(ye.byteLength != he.byteLength || !Qe(new X(ye), new X(he)));
608
- case "[object Boolean]":
609
- case "[object Date]":
610
- case "[object Number]":
611
- return Ut(+ye, +he);
612
- case "[object Error]":
613
- return ye.name == he.name && ye.message == he.message;
614
- case "[object RegExp]":
615
- case "[object String]":
616
- return ye == he + "";
617
- case I:
618
- var Ke = we;
619
- case M:
620
- var ut = 2 & Le;
621
- if (Ke || (Ke = b), ye.size != he.size && !ut) return !1;
622
- var vt = Ve.get(ye);
623
- if (vt) return vt == he;
624
- Le |= 1, Ve.set(ye, he);
625
- var at = Bt(Ke(ye), Ke(he), Qe, gt, Le, Ve);
626
- return Ve.delete(ye), at;
627
- case "[object Symbol]":
628
- if (A) return A.call(ye) == A.call(he);
629
- }
630
- return !1;
631
- })(F, W, Te, Ce, _e, be, ue);
632
- if (!(2 & be)) {
633
- var Wt = $e && y.call(F, "__wrapped__"), Yt = rt && y.call(W, "__wrapped__");
634
- if (Wt || Yt) {
635
- var mr = Wt ? F.value() : F, br = Yt ? W.value() : W;
636
- return ue || (ue = new Ne()), Ce(mr, br, _e, be, ue);
637
- }
638
- }
639
- return Ge ? (ue || (ue = new Ne()), (function(ye, he, Ot, Qe, gt, Le) {
640
- var Ve = 2 & gt, Ke = yt(ye), ut = Ke.length, vt = yt(he).length;
641
- if (ut != vt && !Ve) return !1;
642
- for (var at = ut; at--; ) {
643
- var We = Ke[at];
644
- if (!(Ve ? We in he : y.call(he, We))) return !1;
645
- }
646
- var Jt = Le.get(ye);
647
- if (Jt && Le.get(he)) return Jt == he;
648
- var Ct = !0;
649
- Le.set(ye, he), Le.set(he, ye);
650
- for (var Dt = Ve; ++at < ut; ) {
651
- We = Ke[at];
652
- var _t = ye[We], xt = he[We];
653
- if (Qe) var Zt = Ve ? Qe(xt, _t, We, he, ye, Le) : Qe(_t, xt, We, ye, he, Le);
654
- if (!(Zt === void 0 ? _t === xt || Ot(_t, xt, Qe, gt, Le) : Zt)) {
655
- Ct = !1;
656
- break;
657
- }
658
- Dt || (Dt = We == "constructor");
659
- }
660
- if (Ct && !Dt) {
661
- var jt = ye.constructor, wt = he.constructor;
662
- jt == wt || !("constructor" in ye) || !("constructor" in he) || typeof jt == "function" && jt instanceof jt && typeof wt == "function" && wt instanceof wt || (Ct = !1);
663
- }
664
- return Le.delete(ye), Le.delete(he), Ct;
665
- })(F, W, Ce, _e, be, ue)) : !1;
666
- })(t, a, it, s, c, L));
667
- }
668
- function st(t) {
669
- return !(!mt(t) || (function(a) {
670
- return !!D && D in a;
671
- })(t)) && (Kt(t) || de(t) ? ne : P).test(Ze(t));
672
- }
673
- function cr(t) {
674
- return typeof t == "function" ? t : t == null ? hr : typeof t == "object" ? Ue(t) ? (function(c, L) {
675
- return pt(c) && zt(L) ? qt(ht(c), L) : function(F) {
676
- var W = (function(Ce, _e, be) {
677
- var ue = Ce == null ? void 0 : ot(Ce, _e);
678
- return ue === void 0 ? be : ue;
679
- })(F, c);
680
- return W === void 0 && W === L ? (function(Ce, _e) {
681
- return Ce != null && (function(be, ue, Ae) {
682
- ue = pt(ue, be) ? [ue] : Ht(ue);
683
- for (var Me, Te = -1, Ee = ue.length; ++Te < Ee; ) {
684
- var $e = ht(ue[Te]);
685
- if (!(Me = be != null && Ae(be, $e))) break;
686
- be = be[$e];
687
- }
688
- return Me || !!(Ee = be ? be.length : 0) && Mt(Ee) && Vt($e, Ee) && (Ue(be) || Gt(be));
689
- })(Ce, _e, Tt);
690
- })(F, c) : it(L, W, void 0, 3);
691
- };
692
- })(t[0], t[1]) : (function(c) {
693
- var L = (function(F) {
694
- for (var W = yt(F), Ce = W.length; Ce--; ) {
695
- var _e = W[Ce], be = F[_e];
696
- W[Ce] = [_e, be, zt(be)];
697
- }
698
- return W;
699
- })(c);
700
- return L.length == 1 && L[0][2] ? qt(L[0][0], L[0][1]) : function(F) {
701
- return F === c || (function(W, Ce, _e, be) {
702
- var ue = _e.length, Ae = ue;
703
- if (W == null) return !Ae;
704
- for (W = Object(W); ue--; ) {
705
- var Me = _e[ue];
706
- if (Me[2] ? Me[1] !== W[Me[0]] : !(Me[0] in W)) return !1;
707
- }
708
- for (; ++ue < Ae; ) {
709
- var Te = (Me = _e[ue])[0], Ee = W[Te], $e = Me[1];
710
- if (Me[2]) {
711
- if (Ee === void 0 && !(Te in W)) return !1;
712
- } else {
713
- var rt = new Ne(), Ge;
714
- if (!(Ge === void 0 ? it($e, Ee, be, 3, rt) : Ge)) return !1;
715
- }
716
- }
717
- return !0;
718
- })(F, c, L);
719
- };
720
- })(t) : pt(a = t) ? (s = ht(a), function(c) {
721
- return c?.[s];
722
- }) : /* @__PURE__ */ (function(c) {
723
- return function(L) {
724
- return ot(L, c);
725
- };
726
- })(a);
727
- var a, s;
728
- }
729
- function dr(t) {
730
- if (s = (a = t) && a.constructor, c = typeof s == "function" && s.prototype || S, a !== c) return me(t);
731
- var a, s, c, L = [];
732
- for (var F in Object(t)) y.call(t, F) && F != "constructor" && L.push(F);
733
- return L;
734
- }
735
- function Ht(t) {
736
- return Ue(t) ? t : fr(t);
737
- }
738
- function Bt(t, a, s, c, L, F) {
739
- var W = 2 & L, Ce = t.length, _e = a.length;
740
- if (Ce != _e && !(W && _e > Ce)) return !1;
741
- var be = F.get(t);
742
- if (be && F.get(a)) return be == a;
743
- var ue = -1, Ae = !0, Me = 1 & L ? new De() : void 0;
744
- for (F.set(t, a), F.set(a, t); ++ue < Ce; ) {
745
- var Te = t[ue], Ee = a[ue];
746
- if (c) var $e = W ? c(Ee, Te, ue, a, t, F) : c(Te, Ee, ue, t, a, F);
747
- if ($e !== void 0) {
748
- if ($e) continue;
749
- Ae = !1;
750
- break;
751
- }
752
- if (Me) {
753
- if (!V(a, (function(rt, Ge) {
754
- if (!Me.has(Ge) && (Te === rt || s(Te, rt, c, L, F))) return Me.add(Ge);
755
- }))) {
756
- Ae = !1;
757
- break;
758
- }
759
- } else if (Te !== Ee && !s(Te, Ee, c, L, F)) {
760
- Ae = !1;
761
- break;
762
- }
763
- }
764
- return F.delete(t), F.delete(a), Ae;
765
- }
766
- function ft(t, a) {
767
- var s, c, L = t.__data__;
768
- return ((c = typeof (s = a)) == "string" || c == "number" || c == "symbol" || c == "boolean" ? s !== "__proto__" : s === null) ? L[typeof a == "string" ? "string" : "hash"] : L.map;
769
- }
770
- function tt(t, a) {
771
- var s = (function(c, L) {
772
- return c?.[L];
773
- })(t, a);
774
- return st(s) ? s : void 0;
775
- }
776
- var qe = function(t) {
777
- return e.call(t);
778
- };
779
- function Vt(t, a) {
780
- return !!(a = a ?? 9007199254740991) && (typeof t == "number" || te.test(t)) && t > -1 && t % 1 == 0 && t < a;
781
- }
782
- function pt(t, a) {
783
- if (Ue(t)) return !1;
784
- var s = typeof t;
785
- return !(s != "number" && s != "symbol" && s != "boolean" && t != null && !kt(t)) || ie.test(t) || !ee.test(t) || a != null && t in Object(a);
786
- }
787
- function zt(t) {
788
- return t == t && !mt(t);
789
- }
790
- function qt(t, a) {
791
- return function(s) {
792
- return s != null && s[t] === a && (a !== void 0 || t in Object(s));
793
- };
794
- }
795
- (oe && qe(new oe(new ArrayBuffer(1))) != "[object DataView]" || je && qe(new je()) != I || z && qe(z.resolve()) != "[object Promise]" || n && qe(new n()) != M || u && qe(new u()) != "[object WeakMap]") && (qe = function(t) {
796
- var a = e.call(t), s = a == N ? t.constructor : void 0, c = s ? Ze(s) : void 0;
797
- if (c) switch (c) {
798
- case q:
799
- return "[object DataView]";
800
- case H:
801
- return I;
802
- case U:
803
- return "[object Promise]";
804
- case Z:
805
- return M;
806
- case ce:
807
- return "[object WeakMap]";
808
- }
809
- return a;
810
- });
811
- var fr = Et((function(t) {
812
- var a;
813
- t = (a = t) == null ? "" : (function(c) {
814
- if (typeof c == "string") return c;
815
- if (kt(c)) return ae ? ae.call(c) : "";
816
- var L = c + "";
817
- return L == "0" && 1 / c == -1 / 0 ? "-0" : L;
818
- })(a);
819
- var s = [];
820
- return Y.test(t) && s.push(""), t.replace(g, (function(c, L, F, W) {
821
- s.push(F ? W.replace(R, "$1") : L || c);
822
- })), s;
823
- }));
824
- function ht(t) {
825
- if (typeof t == "string" || kt(t)) return t;
826
- var a = t + "";
827
- return a == "0" && 1 / t == -1 / 0 ? "-0" : a;
828
- }
829
- function Ze(t) {
830
- if (t != null) {
831
- try {
832
- return K.call(t);
833
- } catch {
834
- }
835
- try {
836
- return t + "";
837
- } catch {
838
- }
839
- }
840
- return "";
841
- }
842
- function Et(t, a) {
843
- if (typeof t != "function" || a && typeof a != "function") throw new TypeError("Expected a function");
844
- var s = function() {
845
- var c = arguments, L = a ? a.apply(this, c) : c[0], F = s.cache;
846
- if (F.has(L)) return F.get(L);
847
- var W = t.apply(this, c);
848
- return s.cache = F.set(L, W), W;
849
- };
850
- return s.cache = new (Et.Cache || ve)(), s;
851
- }
852
- function Ut(t, a) {
853
- return t === a || t != t && a != a;
854
- }
855
- function Gt(t) {
856
- return (function(a) {
857
- return bt(a) && Nt(a);
858
- })(t) && y.call(t, "callee") && (!le.call(t, "callee") || e.call(t) == v);
859
- }
860
- Et.Cache = ve;
861
- var Ue = Array.isArray;
862
- function Nt(t) {
863
- return t != null && Mt(t.length) && !Kt(t);
864
- }
865
- function Kt(t) {
866
- var a = mt(t) ? e.call(t) : "";
867
- return a == "[object Function]" || a == "[object GeneratorFunction]";
868
- }
869
- function Mt(t) {
870
- return typeof t == "number" && t > -1 && t % 1 == 0 && t <= 9007199254740991;
871
- }
872
- function mt(t) {
873
- var a = typeof t;
874
- return !!t && (a == "object" || a == "function");
875
- }
876
- function bt(t) {
877
- return !!t && typeof t == "object";
878
- }
879
- function kt(t) {
880
- return typeof t == "symbol" || bt(t) && e.call(t) == "[object Symbol]";
881
- }
882
- var pr = J ? /* @__PURE__ */ (function(t) {
883
- return function(a) {
884
- return t(a);
885
- };
886
- })(J) : function(t) {
887
- return bt(t) && Mt(t.length) && !!m[e.call(t)];
888
- };
889
- function yt(t) {
890
- return Nt(t) ? Fe(t) : dr(t);
891
- }
892
- function hr(t) {
893
- return t;
894
- }
895
- d.exports = function(t, a, s) {
896
- var c = Ue(t) ? O : xe, L = arguments.length < 3;
897
- return c(t, cr(a), s, L, Se);
898
- };
899
- }).call(this, i(3), i(7)(r));
900
- }, function(r, f) {
901
- r.exports = function(i) {
902
- return i.webpackPolyfill || (i.deprecate = function() {
903
- }, i.paths = [], i.children || (i.children = []), Object.defineProperty(i, "loaded", { enumerable: !0, get: function() {
904
- return i.l;
905
- } }), Object.defineProperty(i, "id", { enumerable: !0, get: function() {
906
- return i.i;
907
- } }), i.webpackPolyfill = 1), i;
908
- };
909
- }, function(r, f) {
910
- String.prototype.padEnd || (String.prototype.padEnd = function(i, o) {
911
- return i >>= 0, o = String(o !== void 0 ? o : " "), this.length > i ? String(this) : ((i -= this.length) > o.length && (o += o.repeat(i / o.length)), String(this) + o.slice(0, i));
912
- });
913
- }, function(r, f, i) {
914
- function o(S, h, D) {
915
- return h in S ? Object.defineProperty(S, h, { value: D, enumerable: !0, configurable: !0, writable: !0 }) : S[h] = D, S;
916
- }
917
- function d(S) {
918
- if (Symbol.iterator in Object(S) || Object.prototype.toString.call(S) === "[object Arguments]") return Array.from(S);
919
- }
920
- function v(S) {
921
- return (function(h) {
922
- if (Array.isArray(h)) {
923
- for (var D = 0, K = new Array(h.length); D < h.length; D++) K[D] = h[D];
924
- return K;
925
- }
926
- })(S) || d(S) || (function() {
927
- throw new TypeError("Invalid attempt to spread non-iterable instance");
928
- })();
929
- }
930
- function I(S) {
931
- if (Array.isArray(S)) return S;
932
- }
933
- function N() {
934
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
935
- }
936
- function M(S, h) {
937
- if (!(S instanceof h)) throw new TypeError("Cannot call a class as a function");
938
- }
939
- function ee(S, h) {
940
- for (var D = 0; D < h.length; D++) {
941
- var K = h[D];
942
- K.enumerable = K.enumerable || !1, K.configurable = !0, "value" in K && (K.writable = !0), Object.defineProperty(S, K.key, K);
943
- }
944
- }
945
- function ie(S) {
946
- return (ie = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(h) {
947
- return typeof h;
948
- } : function(h) {
949
- return h && typeof Symbol == "function" && h.constructor === Symbol && h !== Symbol.prototype ? "symbol" : typeof h;
950
- })(S);
951
- }
952
- function Y(S) {
953
- return (Y = typeof Symbol == "function" && ie(Symbol.iterator) === "symbol" ? function(h) {
954
- return ie(h);
955
- } : function(h) {
956
- return h && typeof Symbol == "function" && h.constructor === Symbol && h !== Symbol.prototype ? "symbol" : ie(h);
957
- })(S);
958
- }
959
- function g(S) {
960
- if (S === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
961
- return S;
962
- }
963
- function R(S) {
964
- return (R = Object.setPrototypeOf ? Object.getPrototypeOf : function(h) {
965
- return h.__proto__ || Object.getPrototypeOf(h);
966
- })(S);
967
- }
968
- function P(S, h) {
969
- return (P = Object.setPrototypeOf || function(D, K) {
970
- return D.__proto__ = K, D;
971
- })(S, h);
972
- }
973
- i.r(f);
974
- var te = i(0), m = i.n(te), se = i(5), $ = i.n(se), B = i(4), _ = i.n(B), C = i(6), Q = i.n(C), G = i(2), J = i.n(G), O = i(1), V = i.n(O);
975
- i(8);
976
- function xe(S, h) {
977
- return I(S) || (function(D, K) {
978
- var y = [], e = !0, ne = !1, re = void 0;
979
- try {
980
- for (var X, le = D[Symbol.iterator](); !(e = (X = le.next()).done) && (y.push(X.value), !K || y.length !== K); e = !0) ;
981
- } catch (pe) {
982
- ne = !0, re = pe;
983
- } finally {
984
- try {
985
- e || le.return == null || le.return();
986
- } finally {
987
- if (ne) throw re;
988
- }
989
- }
990
- return y;
991
- })(S, h) || N();
992
- }
993
- var de = [["Afghanistan", ["asia"], "af", "93"], ["Albania", ["europe"], "al", "355"], ["Algeria", ["africa", "north-africa"], "dz", "213"], ["Andorra", ["europe"], "ad", "376"], ["Angola", ["africa"], "ao", "244"], ["Antigua and Barbuda", ["america", "carribean"], "ag", "1268"], ["Argentina", ["america", "south-america"], "ar", "54", "(..) ........", 0, ["11", "221", "223", "261", "264", "2652", "280", "2905", "291", "2920", "2966", "299", "341", "342", "343", "351", "376", "379", "381", "3833", "385", "387", "388"]], ["Armenia", ["asia", "ex-ussr"], "am", "374", ".. ......"], ["Aruba", ["america", "carribean"], "aw", "297"], ["Australia", ["oceania"], "au", "61", "(..) .... ....", 0, ["2", "3", "4", "7", "8", "02", "03", "04", "07", "08"]], ["Austria", ["europe", "eu-union"], "at", "43"], ["Azerbaijan", ["asia", "ex-ussr"], "az", "994", "(..) ... .. .."], ["Bahamas", ["america", "carribean"], "bs", "1242"], ["Bahrain", ["middle-east"], "bh", "973"], ["Bangladesh", ["asia"], "bd", "880"], ["Barbados", ["america", "carribean"], "bb", "1246"], ["Belarus", ["europe", "ex-ussr"], "by", "375", "(..) ... .. .."], ["Belgium", ["europe", "eu-union"], "be", "32", "... .. .. .."], ["Belize", ["america", "central-america"], "bz", "501"], ["Benin", ["africa"], "bj", "229"], ["Bhutan", ["asia"], "bt", "975"], ["Bolivia", ["america", "south-america"], "bo", "591"], ["Bosnia and Herzegovina", ["europe", "ex-yugos"], "ba", "387"], ["Botswana", ["africa"], "bw", "267"], ["Brazil", ["america", "south-america"], "br", "55", "(..) ........."], ["British Indian Ocean Territory", ["asia"], "io", "246"], ["Brunei", ["asia"], "bn", "673"], ["Bulgaria", ["europe", "eu-union"], "bg", "359"], ["Burkina Faso", ["africa"], "bf", "226"], ["Burundi", ["africa"], "bi", "257"], ["Cambodia", ["asia"], "kh", "855"], ["Cameroon", ["africa"], "cm", "237"], ["Canada", ["america", "north-america"], "ca", "1", "(...) ...-....", 1, ["204", "226", "236", "249", "250", "289", "306", "343", "365", "387", "403", "416", "418", "431", "437", "438", "450", "506", "514", "519", "548", "579", "581", "587", "604", "613", "639", "647", "672", "705", "709", "742", "778", "780", "782", "807", "819", "825", "867", "873", "902", "905"]], ["Cape Verde", ["africa"], "cv", "238"], ["Caribbean Netherlands", ["america", "carribean"], "bq", "599", "", 1], ["Central African Republic", ["africa"], "cf", "236"], ["Chad", ["africa"], "td", "235"], ["Chile", ["america", "south-america"], "cl", "56"], ["China", ["asia"], "cn", "86", "..-........."], ["Colombia", ["america", "south-america"], "co", "57", "... ... ...."], ["Comoros", ["africa"], "km", "269"], ["Congo", ["africa"], "cd", "243"], ["Congo", ["africa"], "cg", "242"], ["Costa Rica", ["america", "central-america"], "cr", "506", "....-...."], ["Côte d’Ivoire", ["africa"], "ci", "225", ".. .. .. .."], ["Croatia", ["europe", "eu-union", "ex-yugos"], "hr", "385"], ["Cuba", ["america", "carribean"], "cu", "53"], ["Curaçao", ["america", "carribean"], "cw", "599", "", 0], ["Cyprus", ["europe", "eu-union"], "cy", "357", ".. ......"], ["Czech Republic", ["europe", "eu-union"], "cz", "420", "... ... ..."], ["Denmark", ["europe", "eu-union", "baltic"], "dk", "45", ".. .. .. .."], ["Djibouti", ["africa"], "dj", "253"], ["Dominica", ["america", "carribean"], "dm", "1767"], ["Dominican Republic", ["america", "carribean"], "do", "1", "", 2, ["809", "829", "849"]], ["Ecuador", ["america", "south-america"], "ec", "593"], ["Egypt", ["africa", "north-africa"], "eg", "20"], ["El Salvador", ["america", "central-america"], "sv", "503", "....-...."], ["Equatorial Guinea", ["africa"], "gq", "240"], ["Eritrea", ["africa"], "er", "291"], ["Estonia", ["europe", "eu-union", "ex-ussr", "baltic"], "ee", "372", ".... ......"], ["Ethiopia", ["africa"], "et", "251"], ["Fiji", ["oceania"], "fj", "679"], ["Finland", ["europe", "eu-union", "baltic"], "fi", "358", ".. ... .. .."], ["France", ["europe", "eu-union"], "fr", "33", ". .. .. .. .."], ["French Guiana", ["america", "south-america"], "gf", "594"], ["French Polynesia", ["oceania"], "pf", "689"], ["Gabon", ["africa"], "ga", "241"], ["Gambia", ["africa"], "gm", "220"], ["Georgia", ["asia", "ex-ussr"], "ge", "995"], ["Germany", ["europe", "eu-union", "baltic"], "de", "49", ".... ........"], ["Ghana", ["africa"], "gh", "233"], ["Greece", ["europe", "eu-union"], "gr", "30"], ["Grenada", ["america", "carribean"], "gd", "1473"], ["Guadeloupe", ["america", "carribean"], "gp", "590", "", 0], ["Guam", ["oceania"], "gu", "1671"], ["Guatemala", ["america", "central-america"], "gt", "502", "....-...."], ["Guinea", ["africa"], "gn", "224"], ["Guinea-Bissau", ["africa"], "gw", "245"], ["Guyana", ["america", "south-america"], "gy", "592"], ["Haiti", ["america", "carribean"], "ht", "509", "....-...."], ["Honduras", ["america", "central-america"], "hn", "504"], ["Hong Kong", ["asia"], "hk", "852", ".... ...."], ["Hungary", ["europe", "eu-union"], "hu", "36"], ["Iceland", ["europe"], "is", "354", "... ...."], ["India", ["asia"], "in", "91", ".....-....."], ["Indonesia", ["asia"], "id", "62"], ["Iran", ["middle-east"], "ir", "98", "... ... ...."], ["Iraq", ["middle-east"], "iq", "964"], ["Ireland", ["europe", "eu-union"], "ie", "353", ".. ......."], ["Israel", ["middle-east"], "il", "972", "... ... ...."], ["Italy", ["europe", "eu-union"], "it", "39", "... .......", 0], ["Jamaica", ["america", "carribean"], "jm", "1876"], ["Japan", ["asia"], "jp", "81", ".. .... ...."], ["Jordan", ["middle-east"], "jo", "962"], ["Kazakhstan", ["asia", "ex-ussr"], "kz", "7", "... ...-..-..", 1, ["310", "311", "312", "313", "315", "318", "321", "324", "325", "326", "327", "336", "7172", "73622"]], ["Kenya", ["africa"], "ke", "254"], ["Kiribati", ["oceania"], "ki", "686"], ["Kosovo", ["europe", "ex-yugos"], "xk", "383"], ["Kuwait", ["middle-east"], "kw", "965"], ["Kyrgyzstan", ["asia", "ex-ussr"], "kg", "996", "... ... ..."], ["Laos", ["asia"], "la", "856"], ["Latvia", ["europe", "eu-union", "ex-ussr", "baltic"], "lv", "371", ".. ... ..."], ["Lebanon", ["middle-east"], "lb", "961"], ["Lesotho", ["africa"], "ls", "266"], ["Liberia", ["africa"], "lr", "231"], ["Libya", ["africa", "north-africa"], "ly", "218"], ["Liechtenstein", ["europe"], "li", "423"], ["Lithuania", ["europe", "eu-union", "ex-ussr", "baltic"], "lt", "370"], ["Luxembourg", ["europe", "eu-union"], "lu", "352"], ["Macau", ["asia"], "mo", "853"], ["Macedonia", ["europe", "ex-yugos"], "mk", "389"], ["Madagascar", ["africa"], "mg", "261"], ["Malawi", ["africa"], "mw", "265"], ["Malaysia", ["asia"], "my", "60", "..-....-...."], ["Maldives", ["asia"], "mv", "960"], ["Mali", ["africa"], "ml", "223"], ["Malta", ["europe", "eu-union"], "mt", "356"], ["Marshall Islands", ["oceania"], "mh", "692"], ["Martinique", ["america", "carribean"], "mq", "596"], ["Mauritania", ["africa"], "mr", "222"], ["Mauritius", ["africa"], "mu", "230"], ["Mexico", ["america", "central-america"], "mx", "52", "... ... ....", 0, ["55", "81", "33", "656", "664", "998", "774", "229"]], ["Micronesia", ["oceania"], "fm", "691"], ["Moldova", ["europe"], "md", "373", "(..) ..-..-.."], ["Monaco", ["europe"], "mc", "377"], ["Mongolia", ["asia"], "mn", "976"], ["Montenegro", ["europe", "ex-yugos"], "me", "382"], ["Morocco", ["africa", "north-africa"], "ma", "212"], ["Mozambique", ["africa"], "mz", "258"], ["Myanmar", ["asia"], "mm", "95"], ["Namibia", ["africa"], "na", "264"], ["Nauru", ["africa"], "nr", "674"], ["Nepal", ["asia"], "np", "977"], ["Netherlands", ["europe", "eu-union"], "nl", "31", ".. ........"], ["New Caledonia", ["oceania"], "nc", "687"], ["New Zealand", ["oceania"], "nz", "64", "...-...-...."], ["Nicaragua", ["america", "central-america"], "ni", "505"], ["Niger", ["africa"], "ne", "227"], ["Nigeria", ["africa"], "ng", "234"], ["North Korea", ["asia"], "kp", "850"], ["Norway", ["europe", "baltic"], "no", "47", "... .. ..."], ["Oman", ["middle-east"], "om", "968"], ["Pakistan", ["asia"], "pk", "92", "...-......."], ["Palau", ["oceania"], "pw", "680"], ["Palestine", ["middle-east"], "ps", "970"], ["Panama", ["america", "central-america"], "pa", "507"], ["Papua New Guinea", ["oceania"], "pg", "675"], ["Paraguay", ["america", "south-america"], "py", "595"], ["Peru", ["america", "south-america"], "pe", "51"], ["Philippines", ["asia"], "ph", "63", ".... ......."], ["Poland", ["europe", "eu-union", "baltic"], "pl", "48", "...-...-..."], ["Portugal", ["europe", "eu-union"], "pt", "351"], ["Puerto Rico", ["america", "carribean"], "pr", "1", "", 3, ["787", "939"]], ["Qatar", ["middle-east"], "qa", "974"], ["Réunion", ["africa"], "re", "262"], ["Romania", ["europe", "eu-union"], "ro", "40"], ["Russia", ["europe", "asia", "ex-ussr", "baltic"], "ru", "7", "(...) ...-..-..", 0], ["Rwanda", ["africa"], "rw", "250"], ["Saint Kitts and Nevis", ["america", "carribean"], "kn", "1869"], ["Saint Lucia", ["america", "carribean"], "lc", "1758"], ["Saint Vincent and the Grenadines", ["america", "carribean"], "vc", "1784"], ["Samoa", ["oceania"], "ws", "685"], ["San Marino", ["europe"], "sm", "378"], ["São Tomé and Príncipe", ["africa"], "st", "239"], ["Saudi Arabia", ["middle-east"], "sa", "966"], ["Senegal", ["africa"], "sn", "221"], ["Serbia", ["europe", "ex-yugos"], "rs", "381"], ["Seychelles", ["africa"], "sc", "248"], ["Sierra Leone", ["africa"], "sl", "232"], ["Singapore", ["asia"], "sg", "65", "....-...."], ["Slovakia", ["europe", "eu-union"], "sk", "421"], ["Slovenia", ["europe", "eu-union", "ex-yugos"], "si", "386"], ["Solomon Islands", ["oceania"], "sb", "677"], ["Somalia", ["africa"], "so", "252"], ["South Africa", ["africa"], "za", "27"], ["South Korea", ["asia"], "kr", "82", "... .... ...."], ["South Sudan", ["africa", "north-africa"], "ss", "211"], ["Spain", ["europe", "eu-union"], "es", "34", "... ... ..."], ["Sri Lanka", ["asia"], "lk", "94"], ["Sudan", ["africa"], "sd", "249"], ["Suriname", ["america", "south-america"], "sr", "597"], ["Swaziland", ["africa"], "sz", "268"], ["Sweden", ["europe", "eu-union", "baltic"], "se", "46", "(...) ...-..."], ["Switzerland", ["europe"], "ch", "41", ".. ... .. .."], ["Syria", ["middle-east"], "sy", "963"], ["Taiwan", ["asia"], "tw", "886"], ["Tajikistan", ["asia", "ex-ussr"], "tj", "992"], ["Tanzania", ["africa"], "tz", "255"], ["Thailand", ["asia"], "th", "66"], ["Timor-Leste", ["asia"], "tl", "670"], ["Togo", ["africa"], "tg", "228"], ["Tonga", ["oceania"], "to", "676"], ["Trinidad and Tobago", ["america", "carribean"], "tt", "1868"], ["Tunisia", ["africa", "north-africa"], "tn", "216"], ["Turkey", ["europe"], "tr", "90", "... ... .. .."], ["Turkmenistan", ["asia", "ex-ussr"], "tm", "993"], ["Tuvalu", ["asia"], "tv", "688"], ["Uganda", ["africa"], "ug", "256"], ["Ukraine", ["europe", "ex-ussr"], "ua", "380", "(..) ... .. .."], ["United Arab Emirates", ["middle-east"], "ae", "971"], ["United Kingdom", ["europe", "eu-union"], "gb", "44", ".... ......"], ["United States", ["america", "north-america"], "us", "1", "(...) ...-....", 0, ["907", "205", "251", "256", "334", "479", "501", "870", "480", "520", "602", "623", "928", "209", "213", "310", "323", "408", "415", "510", "530", "559", "562", "619", "626", "650", "661", "707", "714", "760", "805", "818", "831", "858", "909", "916", "925", "949", "951", "303", "719", "970", "203", "860", "202", "302", "239", "305", "321", "352", "386", "407", "561", "727", "772", "813", "850", "863", "904", "941", "954", "229", "404", "478", "706", "770", "912", "808", "319", "515", "563", "641", "712", "208", "217", "309", "312", "618", "630", "708", "773", "815", "847", "219", "260", "317", "574", "765", "812", "316", "620", "785", "913", "270", "502", "606", "859", "225", "318", "337", "504", "985", "413", "508", "617", "781", "978", "301", "410", "207", "231", "248", "269", "313", "517", "586", "616", "734", "810", "906", "989", "218", "320", "507", "612", "651", "763", "952", "314", "417", "573", "636", "660", "816", "228", "601", "662", "406", "252", "336", "704", "828", "910", "919", "701", "308", "402", "603", "201", "609", "732", "856", "908", "973", "505", "575", "702", "775", "212", "315", "516", "518", "585", "607", "631", "716", "718", "845", "914", "216", "330", "419", "440", "513", "614", "740", "937", "405", "580", "918", "503", "541", "215", "412", "570", "610", "717", "724", "814", "401", "803", "843", "864", "605", "423", "615", "731", "865", "901", "931", "210", "214", "254", "281", "325", "361", "409", "432", "512", "713", "806", "817", "830", "903", "915", "936", "940", "956", "972", "979", "435", "801", "276", "434", "540", "703", "757", "804", "802", "206", "253", "360", "425", "509", "262", "414", "608", "715", "920", "304", "307"]], ["Uruguay", ["america", "south-america"], "uy", "598"], ["Uzbekistan", ["asia", "ex-ussr"], "uz", "998", ".. ... .. .."], ["Vanuatu", ["oceania"], "vu", "678"], ["Vatican City", ["europe"], "va", "39", ".. .... ....", 1], ["Venezuela", ["america", "south-america"], "ve", "58"], ["Vietnam", ["asia"], "vn", "84"], ["Yemen", ["middle-east"], "ye", "967"], ["Zambia", ["africa"], "zm", "260"], ["Zimbabwe", ["africa"], "zw", "263"]], we = [["American Samoa", ["oceania"], "as", "1684"], ["Anguilla", ["america", "carribean"], "ai", "1264"], ["Bermuda", ["america", "north-america"], "bm", "1441"], ["British Virgin Islands", ["america", "carribean"], "vg", "1284"], ["Cayman Islands", ["america", "carribean"], "ky", "1345"], ["Cook Islands", ["oceania"], "ck", "682"], ["Falkland Islands", ["america", "south-america"], "fk", "500"], ["Faroe Islands", ["europe"], "fo", "298"], ["Gibraltar", ["europe"], "gi", "350"], ["Greenland", ["america"], "gl", "299"], ["Jersey", ["europe", "eu-union"], "je", "44", ".... ......"], ["Montserrat", ["america", "carribean"], "ms", "1664"], ["Niue", ["asia"], "nu", "683"], ["Norfolk Island", ["oceania"], "nf", "672"], ["Northern Mariana Islands", ["oceania"], "mp", "1670"], ["Saint Barthélemy", ["america", "carribean"], "bl", "590", "", 1], ["Saint Helena", ["africa"], "sh", "290"], ["Saint Martin", ["america", "carribean"], "mf", "590", "", 2], ["Saint Pierre and Miquelon", ["america", "north-america"], "pm", "508"], ["Sint Maarten", ["america", "carribean"], "sx", "1721"], ["Tokelau", ["oceania"], "tk", "690"], ["Turks and Caicos Islands", ["america", "carribean"], "tc", "1649"], ["U.S. Virgin Islands", ["america", "carribean"], "vi", "1340"], ["Wallis and Futuna", ["oceania"], "wf", "681"]];
994
- function b(S, h, D, K, y) {
995
- return !D || y ? S + "".padEnd(h.length, ".") + " " + K : S + "".padEnd(h.length, ".") + " " + D;
996
- }
997
- function w(S, h, D, K, y) {
998
- var e, ne, re = [];
999
- return ne = h === !0, [(e = []).concat.apply(e, v(S.map((function(X) {
1000
- var le = { name: X[0], regions: X[1], iso2: X[2], countryCode: X[3], dialCode: X[3], format: b(D, X[3], X[4], K, y), priority: X[5] || 0 }, pe = [];
1001
- return X[6] && X[6].map((function(me) {
1002
- var oe = (function(je) {
1003
- for (var z = 1; z < arguments.length; z++) {
1004
- var n = arguments[z] != null ? arguments[z] : {}, u = Object.keys(n);
1005
- typeof Object.getOwnPropertySymbols == "function" && (u = u.concat(Object.getOwnPropertySymbols(n).filter((function(j) {
1006
- return Object.getOwnPropertyDescriptor(n, j).enumerable;
1007
- })))), u.forEach((function(j) {
1008
- o(je, j, n[j]);
1009
- }));
1010
- }
1011
- return je;
1012
- })({}, le);
1013
- oe.dialCode = X[3] + me, oe.isAreaCode = !0, oe.areaCodeLength = me.length, pe.push(oe);
1014
- })), pe.length > 0 ? (le.mainCode = !0, ne || h.constructor.name === "Array" && h.includes(X[2]) ? (le.hasAreaCodes = !0, [le].concat(pe)) : (re = re.concat(pe), [le])) : [le];
1015
- })))), re];
1016
- }
1017
- function p(S, h, D, K) {
1018
- if (D !== null) {
1019
- var y = Object.keys(D), e = Object.values(D);
1020
- y.forEach((function(ne, re) {
1021
- if (K) return S.push([ne, e[re]]);
1022
- var X = S.findIndex((function(pe) {
1023
- return pe[0] === ne;
1024
- }));
1025
- if (X === -1) {
1026
- var le = [ne];
1027
- le[h] = e[re], S.push(le);
1028
- } else S[X][h] = e[re];
1029
- }));
1030
- }
1031
- }
1032
- function x(S, h) {
1033
- return h.length === 0 ? S : S.map((function(D) {
1034
- var K = h.findIndex((function(e) {
1035
- return e[0] === D[2];
1036
- }));
1037
- if (K === -1) return D;
1038
- var y = h[K];
1039
- return y[1] && (D[4] = y[1]), y[3] && (D[5] = y[3]), y[2] && (D[6] = y[2]), D;
1040
- }));
1041
- }
1042
- var fe = function S(h, D, K, y, e, ne, re, X, le, pe, me, oe, je, z) {
1043
- M(this, S), this.filterRegions = function(T, A) {
1044
- if (typeof T == "string") {
1045
- var ae = T;
1046
- return A.filter((function(E) {
1047
- return E.regions.some((function(k) {
1048
- return k === ae;
1049
- }));
1050
- }));
1051
- }
1052
- return A.filter((function(E) {
1053
- return T.map((function(k) {
1054
- return E.regions.some((function(ve) {
1055
- return ve === k;
1056
- }));
1057
- })).some((function(k) {
1058
- return k;
1059
- }));
1060
- }));
1061
- }, this.sortTerritories = function(T, A) {
1062
- var ae = [].concat(v(T), v(A));
1063
- return ae.sort((function(E, k) {
1064
- return E.name < k.name ? -1 : E.name > k.name ? 1 : 0;
1065
- })), ae;
1066
- }, this.getFilteredCountryList = function(T, A, ae) {
1067
- return T.length === 0 ? A : ae ? T.map((function(E) {
1068
- var k = A.find((function(ve) {
1069
- return ve.iso2 === E;
1070
- }));
1071
- if (k) return k;
1072
- })).filter((function(E) {
1073
- return E;
1074
- })) : A.filter((function(E) {
1075
- return T.some((function(k) {
1076
- return k === E.iso2;
1077
- }));
1078
- }));
1079
- }, this.localizeCountries = function(T, A, ae) {
1080
- for (var E = 0; E < T.length; E++) A[T[E].iso2] !== void 0 ? T[E].localName = A[T[E].iso2] : A[T[E].name] !== void 0 && (T[E].localName = A[T[E].name]);
1081
- return ae || T.sort((function(k, ve) {
1082
- return k.localName < ve.localName ? -1 : k.localName > ve.localName ? 1 : 0;
1083
- })), T;
1084
- }, this.getCustomAreas = function(T, A) {
1085
- for (var ae = [], E = 0; E < A.length; E++) {
1086
- var k = JSON.parse(JSON.stringify(T));
1087
- k.dialCode += A[E], ae.push(k);
1088
- }
1089
- return ae;
1090
- }, this.excludeCountries = function(T, A) {
1091
- return A.length === 0 ? T : T.filter((function(ae) {
1092
- return !A.includes(ae.iso2);
1093
- }));
1094
- };
1095
- var n = (function(T, A, ae) {
1096
- var E = [];
1097
- return p(E, 1, T, !0), p(E, 3, A), p(E, 2, ae), E;
1098
- })(X, le, pe), u = x(JSON.parse(JSON.stringify(de)), n), j = x(JSON.parse(JSON.stringify(we)), n), q = xe(w(u, h, oe, je, z), 2), H = q[0], U = q[1];
1099
- if (D) {
1100
- var Z = xe(w(j, h, oe, je, z), 2), ce = Z[0];
1101
- Z[1], H = this.sortTerritories(ce, H);
1102
- }
1103
- K && (H = this.filterRegions(K, H)), this.onlyCountries = this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(y, H, re.includes("onlyCountries")), ne), me, re.includes("onlyCountries")), this.preferredCountries = e.length === 0 ? [] : this.localizeCountries(this.getFilteredCountryList(e, H, re.includes("preferredCountries")), me, re.includes("preferredCountries")), this.hiddenAreaCodes = this.excludeCountries(this.getFilteredCountryList(y, U), ne);
1104
- }, ke = (function(S) {
1105
- function h(y) {
1106
- var e;
1107
- M(this, h), (e = (function(n, u) {
1108
- return !u || Y(u) !== "object" && typeof u != "function" ? g(n) : u;
1109
- })(this, R(h).call(this, y))).getProbableCandidate = _()((function(n) {
1110
- return n && n.length !== 0 ? e.state.onlyCountries.filter((function(u) {
1111
- return J()(u.name.toLowerCase(), n.toLowerCase());
1112
- }), g(g(e)))[0] : null;
1113
- })), e.guessSelectedCountry = _()((function(n, u, j, q) {
1114
- var H;
1115
- if (e.props.enableAreaCodes === !1 && (q.some((function(ce) {
1116
- if (J()(n, ce.dialCode)) return j.some((function(T) {
1117
- if (ce.iso2 === T.iso2 && T.mainCode) return H = T, !0;
1118
- })), !0;
1119
- })), H)) return H;
1120
- var U = j.find((function(ce) {
1121
- return ce.iso2 == u;
1122
- }));
1123
- if (n.trim() === "") return U;
1124
- var Z = j.reduce((function(ce, T) {
1125
- return J()(n, T.dialCode) && (T.dialCode.length > ce.dialCode.length || T.dialCode.length === ce.dialCode.length && T.priority < ce.priority) ? T : ce;
1126
- }), { dialCode: "", priority: 10001 }, g(g(e)));
1127
- return Z.name ? Z : U;
1128
- })), e.updateCountry = function(n) {
1129
- var u, j = e.state.onlyCountries;
1130
- (u = n.indexOf(0) >= "0" && n.indexOf(0) <= "9" ? j.find((function(q) {
1131
- return q.dialCode == +n;
1132
- })) : j.find((function(q) {
1133
- return q.iso2 == n;
1134
- }))) && u.dialCode && e.setState({ selectedCountry: u, formattedNumber: e.props.disableCountryCode ? "" : e.formatNumber(u.dialCode, u) });
1135
- }, e.scrollTo = function(n, u) {
1136
- if (n) {
1137
- var j = e.dropdownRef;
1138
- if (j && document.body) {
1139
- var q = j.offsetHeight, H = j.getBoundingClientRect().top + document.body.scrollTop, U = H + q, Z = n, ce = Z.getBoundingClientRect(), T = Z.offsetHeight, A = ce.top + document.body.scrollTop, ae = A + T, E = A - H + j.scrollTop, k = q / 2 - T / 2;
1140
- if (e.props.enableSearch ? A < H + 32 : A < H) u && (E -= k), j.scrollTop = E;
1141
- else if (ae > U) {
1142
- u && (E += k);
1143
- var ve = q - T;
1144
- j.scrollTop = E - ve;
1145
- }
1146
- }
1147
- }
1148
- }, e.scrollToTop = function() {
1149
- var n = e.dropdownRef;
1150
- n && document.body && (n.scrollTop = 0);
1151
- }, e.formatNumber = function(n, u) {
1152
- if (!u) return n;
1153
- var j, q = u.format, H = e.props, U = H.disableCountryCode, Z = H.enableAreaCodeStretch, ce = H.enableLongNumbers, T = H.autoFormat;
1154
- if (U ? ((j = q.split(" ")).shift(), j = j.join(" ")) : Z && u.isAreaCode ? ((j = q.split(" "))[1] = j[1].replace(/\.+/, "".padEnd(u.areaCodeLength, ".")), j = j.join(" ")) : j = q, !n || n.length === 0) return U ? "" : e.props.prefix;
1155
- if (n && n.length < 2 || !j || !T) return U ? n : e.props.prefix + n;
1156
- var A, ae = Q()(j, (function(E, k) {
1157
- if (E.remainingText.length === 0) return E;
1158
- if (k !== ".") return { formattedText: E.formattedText + k, remainingText: E.remainingText };
1159
- var ve, De = I(ve = E.remainingText) || d(ve) || N(), Ne = De[0], Fe = De.slice(1);
1160
- return { formattedText: E.formattedText + Ne, remainingText: Fe };
1161
- }), { formattedText: "", remainingText: n.split("") });
1162
- return (A = ce ? ae.formattedText + ae.remainingText.join("") : ae.formattedText).includes("(") && !A.includes(")") && (A += ")"), A;
1163
- }, e.cursorToEnd = function() {
1164
- var n = e.numberInputRef;
1165
- if (document.activeElement === n) {
1166
- n.focus();
1167
- var u = n.value.length;
1168
- n.value.charAt(u - 1) === ")" && (u -= 1), n.setSelectionRange(u, u);
1169
- }
1170
- }, e.getElement = function(n) {
1171
- return e["flag_no_".concat(n)];
1172
- }, e.getCountryData = function() {
1173
- return e.state.selectedCountry ? { name: e.state.selectedCountry.name || "", dialCode: e.state.selectedCountry.dialCode || "", countryCode: e.state.selectedCountry.iso2 || "", format: e.state.selectedCountry.format || "" } : {};
1174
- }, e.handleFlagDropdownClick = function(n) {
1175
- if (n.preventDefault(), e.state.showDropdown || !e.props.disabled) {
1176
- var u = e.state, j = u.preferredCountries, q = u.onlyCountries, H = u.selectedCountry, U = e.concatPreferredCountries(j, q).findIndex((function(Z) {
1177
- return Z.dialCode === H.dialCode && Z.iso2 === H.iso2;
1178
- }));
1179
- e.setState({ showDropdown: !e.state.showDropdown, highlightCountryIndex: U }, (function() {
1180
- e.state.showDropdown && e.scrollTo(e.getElement(e.state.highlightCountryIndex));
1181
- }));
1182
- }
1183
- }, e.handleInput = function(n) {
1184
- var u = n.target.value, j = e.props, q = j.prefix, H = j.onChange, U = e.props.disableCountryCode ? "" : q, Z = e.state.selectedCountry, ce = e.state.freezeSelection;
1185
- if (!e.props.countryCodeEditable) {
1186
- var T = q + (Z.hasAreaCodes ? e.state.onlyCountries.find((function(Se) {
1187
- return Se.iso2 === Z.iso2 && Se.mainCode;
1188
- })).dialCode : Z.dialCode);
1189
- if (u.slice(0, T.length) !== T) return;
1190
- }
1191
- if (u === q) return H && H("", e.getCountryData(), n, ""), e.setState({ formattedNumber: "" });
1192
- if (!(u.replace(/\D/g, "").length > 15 && (e.props.enableLongNumbers === !1 || typeof e.props.enableLongNumbers == "number" && u.replace(/\D/g, "").length > e.props.enableLongNumbers)) && u !== e.state.formattedNumber) {
1193
- n.preventDefault ? n.preventDefault() : n.returnValue = !1;
1194
- var A = e.props.country, ae = e.state, E = ae.onlyCountries, k = ae.selectedCountry, ve = ae.hiddenAreaCodes;
1195
- if (H && n.persist(), u.length > 0) {
1196
- var De = u.replace(/\D/g, "");
1197
- (!e.state.freezeSelection || k && k.dialCode.length > De.length) && (Z = e.props.disableCountryGuess ? k : e.guessSelectedCountry(De.substring(0, 6), A, E, ve) || k, ce = !1), U = e.formatNumber(De, Z), Z = Z.dialCode ? Z : k;
1198
- }
1199
- var Ne = n.target.selectionStart, Fe = n.target.selectionStart, Pe = e.state.formattedNumber, Je = U.length - Pe.length;
1200
- e.setState({ formattedNumber: U, freezeSelection: ce, selectedCountry: Z }, (function() {
1201
- Je > 0 && (Fe -= Je), U.charAt(U.length - 1) == ")" ? e.numberInputRef.setSelectionRange(U.length - 1, U.length - 1) : Fe > 0 && Pe.length >= U.length ? e.numberInputRef.setSelectionRange(Fe, Fe) : Ne < Pe.length && e.numberInputRef.setSelectionRange(Ne, Ne), H && H(U.replace(/[^0-9]+/g, ""), e.getCountryData(), n, U);
1202
- }));
1203
- }
1204
- }, e.handleInputClick = function(n) {
1205
- e.setState({ showDropdown: !1 }), e.props.onClick && e.props.onClick(n, e.getCountryData());
1206
- }, e.handleDoubleClick = function(n) {
1207
- var u = n.target.value.length;
1208
- n.target.setSelectionRange(0, u);
1209
- }, e.handleFlagItemClick = function(n, u) {
1210
- var j = e.state.selectedCountry, q = e.state.onlyCountries.find((function(ce) {
1211
- return ce == n;
1212
- }));
1213
- if (q) {
1214
- var H = e.state.formattedNumber.replace(" ", "").replace("(", "").replace(")", "").replace("-", ""), U = H.length > 1 ? H.replace(j.dialCode, q.dialCode) : q.dialCode, Z = e.formatNumber(U.replace(/\D/g, ""), q);
1215
- e.setState({ showDropdown: !1, selectedCountry: q, freezeSelection: !0, formattedNumber: Z, searchValue: "" }, (function() {
1216
- e.cursorToEnd(), e.props.onChange && e.props.onChange(Z.replace(/[^0-9]+/g, ""), e.getCountryData(), u, Z);
1217
- }));
1218
- }
1219
- }, e.handleInputFocus = function(n) {
1220
- e.numberInputRef && e.numberInputRef.value === e.props.prefix && e.state.selectedCountry && !e.props.disableCountryCode && e.setState({ formattedNumber: e.props.prefix + e.state.selectedCountry.dialCode }, (function() {
1221
- e.props.jumpCursorToEnd && setTimeout(e.cursorToEnd, 0);
1222
- })), e.setState({ placeholder: "" }), e.props.onFocus && e.props.onFocus(n, e.getCountryData()), e.props.jumpCursorToEnd && setTimeout(e.cursorToEnd, 0);
1223
- }, e.handleInputBlur = function(n) {
1224
- n.target.value || e.setState({ placeholder: e.props.placeholder }), e.props.onBlur && e.props.onBlur(n, e.getCountryData());
1225
- }, e.handleInputCopy = function(n) {
1226
- if (e.props.copyNumbersOnly) {
1227
- var u = window.getSelection().toString().replace(/[^0-9]+/g, "");
1228
- n.clipboardData.setData("text/plain", u), n.preventDefault();
1229
- }
1230
- }, e.getHighlightCountryIndex = function(n) {
1231
- var u = e.state.highlightCountryIndex + n;
1232
- return u < 0 || u >= e.state.onlyCountries.length + e.state.preferredCountries.length ? u - n : e.props.enableSearch && u > e.getSearchFilteredCountries().length ? 0 : u;
1233
- }, e.searchCountry = function() {
1234
- var n = e.getProbableCandidate(e.state.queryString) || e.state.onlyCountries[0], u = e.state.onlyCountries.findIndex((function(j) {
1235
- return j == n;
1236
- })) + e.state.preferredCountries.length;
1237
- e.scrollTo(e.getElement(u), !0), e.setState({ queryString: "", highlightCountryIndex: u });
1238
- }, e.handleKeydown = function(n) {
1239
- var u = e.props.keys, j = n.target.className;
1240
- if (j.includes("selected-flag") && n.which === u.ENTER && !e.state.showDropdown) return e.handleFlagDropdownClick(n);
1241
- if (j.includes("form-control") && (n.which === u.ENTER || n.which === u.ESC)) return n.target.blur();
1242
- if (e.state.showDropdown && !e.props.disabled && (!j.includes("search-box") || n.which === u.UP || n.which === u.DOWN || n.which === u.ENTER || n.which === u.ESC && n.target.value === "")) {
1243
- n.preventDefault ? n.preventDefault() : n.returnValue = !1;
1244
- var q = function(H) {
1245
- e.setState({ highlightCountryIndex: e.getHighlightCountryIndex(H) }, (function() {
1246
- e.scrollTo(e.getElement(e.state.highlightCountryIndex), !0);
1247
- }));
1248
- };
1249
- switch (n.which) {
1250
- case u.DOWN:
1251
- q(1);
1252
- break;
1253
- case u.UP:
1254
- q(-1);
1255
- break;
1256
- case u.ENTER:
1257
- e.props.enableSearch ? e.handleFlagItemClick(e.getSearchFilteredCountries()[e.state.highlightCountryIndex] || e.getSearchFilteredCountries()[0], n) : e.handleFlagItemClick([].concat(v(e.state.preferredCountries), v(e.state.onlyCountries))[e.state.highlightCountryIndex], n);
1258
- break;
1259
- case u.ESC:
1260
- case u.TAB:
1261
- e.setState({ showDropdown: !1 }, e.cursorToEnd);
1262
- break;
1263
- default:
1264
- (n.which >= u.A && n.which <= u.Z || n.which === u.SPACE) && e.setState({ queryString: e.state.queryString + String.fromCharCode(n.which) }, e.state.debouncedQueryStingSearcher);
1265
- }
1266
- }
1267
- }, e.handleInputKeyDown = function(n) {
1268
- var u = e.props, j = u.keys, q = u.onEnterKeyPress, H = u.onKeyDown;
1269
- n.which === j.ENTER && q && q(n), H && H(n);
1270
- }, e.handleClickOutside = function(n) {
1271
- e.dropdownRef && !e.dropdownContainerRef.contains(n.target) && e.state.showDropdown && e.setState({ showDropdown: !1 });
1272
- }, e.handleSearchChange = function(n) {
1273
- var u = n.currentTarget.value, j = e.state, q = j.preferredCountries, H = j.selectedCountry, U = 0;
1274
- if (u === "" && H) {
1275
- var Z = e.state.onlyCountries;
1276
- U = e.concatPreferredCountries(q, Z).findIndex((function(ce) {
1277
- return ce == H;
1278
- })), setTimeout((function() {
1279
- return e.scrollTo(e.getElement(U));
1280
- }), 100);
1281
- }
1282
- e.setState({ searchValue: u, highlightCountryIndex: U });
1283
- }, e.concatPreferredCountries = function(n, u) {
1284
- return n.length > 0 ? v(new Set(n.concat(u))) : u;
1285
- }, e.getDropdownCountryName = function(n) {
1286
- return n.localName || n.name;
1287
- }, e.getSearchFilteredCountries = function() {
1288
- var n = e.state, u = n.preferredCountries, j = n.onlyCountries, q = n.searchValue, H = e.props.enableSearch, U = e.concatPreferredCountries(u, j), Z = q.trim().toLowerCase().replace("+", "");
1289
- if (H && Z) {
1290
- if (/^\d+$/.test(Z)) return U.filter((function(A) {
1291
- var ae = A.dialCode;
1292
- return ["".concat(ae)].some((function(E) {
1293
- return E.toLowerCase().includes(Z);
1294
- }));
1295
- }));
1296
- var ce = U.filter((function(A) {
1297
- var ae = A.iso2;
1298
- return ["".concat(ae)].some((function(E) {
1299
- return E.toLowerCase().includes(Z);
1300
- }));
1301
- })), T = U.filter((function(A) {
1302
- var ae = A.name, E = A.localName;
1303
- return A.iso2, ["".concat(ae), "".concat(E || "")].some((function(k) {
1304
- return k.toLowerCase().includes(Z);
1305
- }));
1306
- }));
1307
- return e.scrollToTop(), v(new Set([].concat(ce, T)));
1308
- }
1309
- return U;
1310
- }, e.getCountryDropdownList = function() {
1311
- var n = e.state, u = n.preferredCountries, j = n.highlightCountryIndex, q = n.showDropdown, H = n.searchValue, U = e.props, Z = U.disableDropdown, ce = U.prefix, T = e.props, A = T.enableSearch, ae = T.searchNotFound, E = T.disableSearchIcon, k = T.searchClass, ve = T.searchStyle, De = T.searchPlaceholder, Ne = T.autocompleteSearch, Fe = e.getSearchFilteredCountries().map((function(Se, et) {
1312
- var ot = j === et, Tt = V()({ country: !0, preferred: Se.iso2 === "us" || Se.iso2 === "gb", active: Se.iso2 === "us", highlight: ot }), it = "flag ".concat(Se.iso2);
1313
- return m.a.createElement("li", Object.assign({ ref: function(st) {
1314
- return e["flag_no_".concat(et)] = st;
1315
- }, key: "flag_no_".concat(et), "data-flag-key": "flag_no_".concat(et), className: Tt, "data-dial-code": "1", tabIndex: Z ? "-1" : "0", "data-country-code": Se.iso2, onClick: function(st) {
1316
- return e.handleFlagItemClick(Se, st);
1317
- }, role: "option" }, ot ? { "aria-selected": !0 } : {}), m.a.createElement("div", { className: it }), m.a.createElement("span", { className: "country-name" }, e.getDropdownCountryName(Se)), m.a.createElement("span", { className: "dial-code" }, Se.format ? e.formatNumber(Se.dialCode, Se) : ce + Se.dialCode));
1318
- })), Pe = m.a.createElement("li", { key: "dashes", className: "divider" });
1319
- u.length > 0 && (!A || A && !H.trim()) && Fe.splice(u.length, 0, Pe);
1320
- var Je = V()(o({ "country-list": !0, hide: !q }, e.props.dropdownClass, !0));
1321
- return m.a.createElement("ul", { ref: function(Se) {
1322
- return !A && Se && Se.focus(), e.dropdownRef = Se;
1323
- }, className: Je, style: e.props.dropdownStyle, role: "listbox", tabIndex: "0" }, A && m.a.createElement("li", { className: V()(o({ search: !0 }, k, k)) }, !E && m.a.createElement("span", { className: V()(o({ "search-emoji": !0 }, "".concat(k, "-emoji"), k)), role: "img", "aria-label": "Magnifying glass" }, "🔎"), m.a.createElement("input", { className: V()(o({ "search-box": !0 }, "".concat(k, "-box"), k)), style: ve, type: "search", placeholder: De, autoFocus: !0, autoComplete: Ne ? "on" : "off", value: H, onChange: e.handleSearchChange })), Fe.length > 0 ? Fe : m.a.createElement("li", { className: "no-entries-message" }, m.a.createElement("span", null, ae)));
1324
- };
1325
- var ne, re = new fe(y.enableAreaCodes, y.enableTerritories, y.regions, y.onlyCountries, y.preferredCountries, y.excludeCountries, y.preserveOrder, y.masks, y.priority, y.areaCodes, y.localization, y.prefix, y.defaultMask, y.alwaysDefaultMask), X = re.onlyCountries, le = re.preferredCountries, pe = re.hiddenAreaCodes, me = y.value ? y.value.replace(/\D/g, "") : "";
1326
- ne = y.disableInitialCountryGuess ? 0 : me.length > 1 ? e.guessSelectedCountry(me.substring(0, 6), y.country, X, pe) || 0 : y.country && X.find((function(n) {
1327
- return n.iso2 == y.country;
1328
- })) || 0;
1329
- var oe, je = me.length < 2 && ne && !J()(me, ne.dialCode) ? ne.dialCode : "";
1330
- oe = me === "" && ne === 0 ? "" : e.formatNumber((y.disableCountryCode ? "" : je) + me, ne.name ? ne : void 0);
1331
- var z = X.findIndex((function(n) {
1332
- return n == ne;
1333
- }));
1334
- return e.state = { showDropdown: y.showDropdown, formattedNumber: oe, onlyCountries: X, preferredCountries: le, hiddenAreaCodes: pe, selectedCountry: ne, highlightCountryIndex: z, queryString: "", freezeSelection: !1, debouncedQueryStingSearcher: $()(e.searchCountry, 250), searchValue: "" }, e;
1335
- }
1336
- var D, K;
1337
- return (function(y, e) {
1338
- if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
1339
- y.prototype = Object.create(e && e.prototype, { constructor: { value: y, writable: !0, configurable: !0 } }), e && P(y, e);
1340
- })(h, S), D = h, (K = [{ key: "componentDidMount", value: function() {
1341
- document.addEventListener && this.props.enableClickOutside && document.addEventListener("mousedown", this.handleClickOutside), this.props.onMount && this.props.onMount(this.state.formattedNumber.replace(/[^0-9]+/g, ""), this.getCountryData(), this.state.formattedNumber);
1342
- } }, { key: "componentWillUnmount", value: function() {
1343
- document.removeEventListener && this.props.enableClickOutside && document.removeEventListener("mousedown", this.handleClickOutside);
1344
- } }, { key: "componentDidUpdate", value: function(y, e, ne) {
1345
- y.country !== this.props.country ? this.updateCountry(this.props.country) : y.value !== this.props.value && this.updateFormattedNumber(this.props.value);
1346
- } }, { key: "updateFormattedNumber", value: function(y) {
1347
- if (y === null) return this.setState({ selectedCountry: 0, formattedNumber: "" });
1348
- var e = this.state, ne = e.onlyCountries, re = e.selectedCountry, X = e.hiddenAreaCodes, le = this.props, pe = le.country, me = le.prefix;
1349
- if (y === "") return this.setState({ selectedCountry: re, formattedNumber: "" });
1350
- var oe, je, z = y.replace(/\D/g, "");
1351
- if (re && J()(y, me + re.dialCode)) je = this.formatNumber(z, re), this.setState({ formattedNumber: je });
1352
- else {
1353
- var n = (oe = this.props.disableCountryGuess ? re : this.guessSelectedCountry(z.substring(0, 6), pe, ne, X) || re) && J()(z, me + oe.dialCode) ? oe.dialCode : "";
1354
- je = this.formatNumber((this.props.disableCountryCode ? "" : n) + z, oe || void 0), this.setState({ selectedCountry: oe, formattedNumber: je });
1355
- }
1356
- } }, { key: "render", value: function() {
1357
- var y, e, ne, re = this, X = this.state, le = X.onlyCountries, pe = X.selectedCountry, me = X.showDropdown, oe = X.formattedNumber, je = X.hiddenAreaCodes, z = this.props, n = z.disableDropdown, u = z.renderStringAsFlag, j = z.isValid, q = z.defaultErrorMessage, H = z.specialLabel;
1358
- if (typeof j == "boolean") e = j;
1359
- else {
1360
- var U = j(oe.replace(/\D/g, ""), pe, le, je);
1361
- typeof U == "boolean" ? (e = U) === !1 && (ne = q) : (e = !1, ne = U);
1362
- }
1363
- var Z = V()((o(y = {}, this.props.containerClass, !0), o(y, "react-tel-input", !0), y)), ce = V()({ arrow: !0, up: me }), T = V()(o({ "form-control": !0, "invalid-number": !e, open: me }, this.props.inputClass, !0)), A = V()({ "selected-flag": !0, open: me }), ae = V()(o({ "flag-dropdown": !0, "invalid-number": !e, open: me }, this.props.buttonClass, !0)), E = "flag ".concat(pe && pe.iso2);
1364
- return m.a.createElement("div", { className: "".concat(Z, " ").concat(this.props.className), style: this.props.style || this.props.containerStyle, onKeyDown: this.handleKeydown }, H && m.a.createElement("div", { className: "special-label" }, H), ne && m.a.createElement("div", { className: "invalid-number-message" }, ne), m.a.createElement("input", Object.assign({ className: T, style: this.props.inputStyle, onChange: this.handleInput, onClick: this.handleInputClick, onDoubleClick: this.handleDoubleClick, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, onCopy: this.handleInputCopy, value: oe, onKeyDown: this.handleInputKeyDown, placeholder: this.props.placeholder, disabled: this.props.disabled, type: "tel" }, this.props.inputProps, { ref: function(k) {
1365
- re.numberInputRef = k, typeof re.props.inputProps.ref == "function" ? re.props.inputProps.ref(k) : typeof re.props.inputProps.ref == "object" && (re.props.inputProps.ref.current = k);
1366
- } })), m.a.createElement("div", { className: ae, style: this.props.buttonStyle, ref: function(k) {
1367
- return re.dropdownContainerRef = k;
1368
- } }, u ? m.a.createElement("div", { className: A }, u) : m.a.createElement("div", { onClick: n ? void 0 : this.handleFlagDropdownClick, className: A, title: pe ? "".concat(pe.localName || pe.name, ": + ").concat(pe.dialCode) : "", tabIndex: n ? "-1" : "0", role: "button", "aria-haspopup": "listbox", "aria-expanded": !!me || void 0 }, m.a.createElement("div", { className: E }, !n && m.a.createElement("div", { className: ce }))), me && this.getCountryDropdownList()));
1369
- } }]) && ee(D.prototype, K), h;
1370
- })(m.a.Component);
1371
- ke.defaultProps = { country: "", value: "", onlyCountries: [], preferredCountries: [], excludeCountries: [], placeholder: "1 (702) 123-4567", searchPlaceholder: "search", searchNotFound: "No entries to show", flagsImagePath: "./flags.png", disabled: !1, containerStyle: {}, inputStyle: {}, buttonStyle: {}, dropdownStyle: {}, searchStyle: {}, containerClass: "", inputClass: "", buttonClass: "", dropdownClass: "", searchClass: "", className: "", autoFormat: !0, enableAreaCodes: !1, enableTerritories: !1, disableCountryCode: !1, disableDropdown: !1, enableLongNumbers: !1, countryCodeEditable: !0, enableSearch: !1, disableSearchIcon: !1, disableInitialCountryGuess: !1, disableCountryGuess: !1, regions: "", inputProps: {}, localization: {}, masks: null, priority: null, areaCodes: null, preserveOrder: [], defaultMask: "... ... ... ... ..", alwaysDefaultMask: !1, prefix: "+", copyNumbersOnly: !0, renderStringAsFlag: "", autocompleteSearch: !1, jumpCursorToEnd: !0, enableAreaCodeStretch: !1, enableClickOutside: !0, showDropdown: !1, isValid: !0, defaultErrorMessage: "", specialLabel: "Phone", onEnterKeyPress: null, keys: { UP: 38, DOWN: 40, RIGHT: 39, LEFT: 37, ENTER: 13, ESC: 27, PLUS: 43, A: 65, Z: 90, SPACE: 32, TAB: 9 } }, f.default = ke;
1372
- }])), At;
1373
- }
1374
- var Or = kr();
1375
- const Dr = /* @__PURE__ */ yr(Or), Lr = ({
1376
- value: r,
1377
- isErrored: f,
1378
- onChange: i,
1379
- explanation: o,
1380
- onCarrierConsentChange: d,
1381
- // eslint-disable-next-line
1382
- intl: v,
1383
- // deprecated
1384
- isRequired: I = !1,
1385
- onKeyDown: N = void 0,
1386
- placeholder: M = "",
1387
- displaySmsConsent: ee = !0,
1388
- // eslint-disable-next-line
1389
- requireCarrierConsent: ie = !1,
1390
- // deprecated
1391
- carrierConsent: Y = !1,
1392
- // eslint-disable-next-line
1393
- internationalSupport: g = !1,
1394
- // deprecated
1395
- selectedCountryCode: R = "us",
1396
- disabled: P = !1,
1397
- label: te
1398
- }) => {
1399
- const [m, se] = Be.useState(""), $ = () => I ? "" : /* @__PURE__ */ l.jsx(
1400
- ge,
1401
- {
1402
- id: "phoneNumberExplanation",
1403
- defaultMessage: "Optional - get text notifications of status updates"
1404
- }
1405
- ), B = Re.useRef(null), _ = "sid-phone-number-error", C = (G, J) => {
1406
- m || se(J.dialCode), G.slice(m.length) ? i(`+${G}`) : i("");
1407
- };
1408
- return Re.useEffect(() => {
1409
- B.current && $t("phoneNumber", B.current);
1410
- }), It("phoneNumber")?.hidden ? null : /* @__PURE__ */ l.jsxs("div", { className: "sid-field sid-phone-number", children: [
1411
- /* @__PURE__ */ l.jsx("div", { className: "sid-l-space-top-md" }),
1412
- /* @__PURE__ */ l.jsx(
1413
- sr,
1414
- {
1415
- text: te || /* @__PURE__ */ l.jsx(ge, { id: "phoneNumber", defaultMessage: "Mobile Number" }),
1416
- htmlForLabel: "sid-phone-number",
1417
- id: "sid-phone-number-label",
1418
- displayClasses: `sid-field__label-with-explanation${M && "sid-h-screen-reader-only"}`,
1419
- isRequired: I,
1420
- children: o || $()
1421
- }
1422
- ),
1423
- /* @__PURE__ */ l.jsx(
1424
- Dr,
1425
- {
1426
- country: R.toLowerCase(),
1427
- containerClass: "react-tel-input sid-phone-number__wrapper",
1428
- inputClass: `sid-text-input sid-phone-number__field sid-phone-number__field--intl ${I ? "sid-text-input--required" : ""} sid-l-full-width ${f ? "sid-text-input--error" : ""}`,
1429
- autoFormat: !1,
1430
- value: r || `${m}`,
1431
- onChange: (G, J) => C(G, J),
1432
- placeholder: M,
1433
- ref: B,
1434
- inputProps: {
1435
- id: "sid-phone-number",
1436
- name: "sid-phone-number",
1437
- onKeyDown: (G) => N ? N(G) : void 0,
1438
- "data-testid": "phone-number-input"
1439
- },
1440
- "aria-labelledby": "sid-phone-number-label",
1441
- "aria-describedby": f ? _ : "",
1442
- "aria-invalid": f,
1443
- countryCodeEditable: !1,
1444
- disabled: P,
1445
- disableCountryGuess: !0
1446
- }
1447
- ),
1448
- f && /* @__PURE__ */ l.jsx("div", { className: "sid-field-error", id: _, children: /* @__PURE__ */ l.jsx(
1449
- ge,
1450
- {
1451
- id: "errorId.invalidPhoneNumber",
1452
- defaultMessage: "Invalid mobile number"
1453
- }
1454
- ) }),
1455
- ee && /* @__PURE__ */ l.jsx("div", { className: "sid-h-small-text sid-l-space-top-md sid-sms-consent", children: /* @__PURE__ */ l.jsx(
1456
- ge,
1457
- {
1458
- id: "phoneNumberWarnMessage1",
1459
- defaultMessage: "By submitting this form with a mobile number, you consent to receive SMS/text messages for verification purposes. Standard phone carrier text messaging (SMS) and data rates may apply."
1460
- }
1461
- ) }),
1462
- ie && /* @__PURE__ */ l.jsx("div", { className: "sid-l-position sid-carrier-disclosure-consent", children: /* @__PURE__ */ l.jsx("div", { className: "sid-h-small-text sid-l-space-top-md", children: /* @__PURE__ */ l.jsxs("label", { htmlFor: "sid-opt-in__carrier-consent", children: [
1463
- /* @__PURE__ */ l.jsx(
1464
- Pt,
1465
- {
1466
- id: "carrier-consent",
1467
- ariaDescribedBy: _,
1468
- isErrored: !!f,
1469
- value: Y,
1470
- onChange: (G) => d && d(G)
1471
- }
1472
- ),
1473
- /* @__PURE__ */ l.jsx("div", { className: "sid-field__label sid-checkbox__label", children: /* @__PURE__ */ l.jsx(
1474
- ge,
1475
- {
1476
- id: "phoneNumberWarnMessage2",
1477
- defaultMessage: "You authorize your mobile service provider to disclose your mobile number and certain account information to SheerID, solely for identity verification and to avoid fraud."
1478
- }
1479
- ) })
1480
- ] }) }) })
1481
- ] });
1482
- }, oa = dt(Lr);
1483
- function Fr({
1484
- title: r,
1485
- titleId: f,
1486
- ...i
1487
- }, o) {
1488
- return /* @__PURE__ */ Re.createElement("svg", Object.assign({
1489
- xmlns: "http://www.w3.org/2000/svg",
1490
- fill: "none",
1491
- viewBox: "0 0 24 24",
1492
- strokeWidth: 1.5,
1493
- stroke: "currentColor",
1494
- "aria-hidden": "true",
1495
- "data-slot": "icon",
1496
- ref: o,
1497
- "aria-labelledby": f
1498
- }, i), r ? /* @__PURE__ */ Re.createElement("title", {
1499
- id: f
1500
- }, r) : null, /* @__PURE__ */ Re.createElement("path", {
1501
- strokeLinecap: "round",
1502
- strokeLinejoin: "round",
1503
- d: "M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"
1504
- }));
1505
- }
1506
- const Ar = /* @__PURE__ */ Re.forwardRef(Fr), $r = ({
1507
- value: r,
1508
- isErrored: f,
1509
- onChange: i,
1510
- intl: o,
1511
- placeholder: d = "",
1512
- disabled: v = !1
1513
- }) => It("firstName")?.hidden ? null : /* @__PURE__ */ l.jsx(
1514
- Rt,
1515
- {
1516
- fieldId: "firstName",
1517
- autoComplete: "given-name",
1518
- value: r,
1519
- onChange: i,
1520
- placeholder: d || o.formatHTMLMessage({ id: "firstNamePlaceholder", defaultMessage: "First Name" }),
1521
- label: /* @__PURE__ */ l.jsx(ge, { id: "firstName", defaultMessage: "First name" }),
1522
- errorMessage: f && /* @__PURE__ */ l.jsx(ge, { id: "errorId.invalidFirstName", defaultMessage: "Invalid first name" }),
1523
- showPlaceholderAndHideLabel: !!d,
1524
- disabled: v
1525
- }
1526
- ), ia = dt($r), Rr = ({
1527
- value: r,
1528
- isErrored: f,
1529
- onChange: i,
1530
- intl: o,
1531
- placeholder: d = "",
1532
- disabled: v = !1
1533
- }) => It("lastName")?.hidden ? null : /* @__PURE__ */ l.jsx(
1534
- Rt,
1535
- {
1536
- fieldId: "lastName",
1537
- autoComplete: "family-name",
1538
- value: r,
1539
- onChange: i,
1540
- placeholder: d || o.formatHTMLMessage({ id: "lastNamePlaceholder", defaultMessage: "Last Name" }),
1541
- label: /* @__PURE__ */ l.jsx(ge, { id: "lastName", defaultMessage: "Last name" }),
1542
- errorMessage: f && /* @__PURE__ */ l.jsx(ge, { id: "errorId.invalidLastName", defaultMessage: "Invalid last name" }),
1543
- showPlaceholderAndHideLabel: !!d,
1544
- disabled: v
1545
- }
1546
- ), sa = dt(Rr), Ye = (r) => {
1547
- if (r)
1548
- return r < 10 ? `0${r}` : r.toString();
1549
- };
1550
- function Pr(r) {
1551
- const i = new Date(2222, 0, 3);
1552
- try {
1553
- return new Intl.DateTimeFormat(r).format(i).replace("0", "").startsWith("3");
1554
- } catch {
1555
- return !1;
1556
- }
1557
- }
1558
- const Hr = ({
1559
- onChange: r,
1560
- intl: f,
1561
- isErrored: i,
1562
- isRequired: o = !0,
1563
- value: d = "2000-01-01",
1564
- errorMsg: v,
1565
- label: I,
1566
- explanation: N,
1567
- fieldName: M,
1568
- fieldId: ee,
1569
- mode: ie = "date",
1570
- locale: Y = gr,
1571
- disabled: g = !1,
1572
- autoComplete: R
1573
- }) => {
1574
- const P = `sid-${ee}`, te = `sid-${ee}-error`, m = d.split("-"), se = Number.parseInt(m[0], 10) || void 0, $ = Number.parseInt(m[1], 10) || void 0, B = ie === "month" ? 1 : Number.parseInt(m[2], 10) || void 0, _ = [
1575
- { value: "1", label: f.formatHTMLMessage({ id: "dateTime.january", defaultMessage: "January" }) },
1576
- { value: "2", label: f.formatHTMLMessage({ id: "dateTime.february", defaultMessage: "February" }) },
1577
- { value: "3", label: f.formatHTMLMessage({ id: "dateTime.march", defaultMessage: "March" }) },
1578
- { value: "4", label: f.formatHTMLMessage({ id: "dateTime.april", defaultMessage: "April" }) },
1579
- { value: "5", label: f.formatHTMLMessage({ id: "dateTime.may", defaultMessage: "May" }) },
1580
- { value: "6", label: f.formatHTMLMessage({ id: "dateTime.june", defaultMessage: "June" }) },
1581
- { value: "7", label: f.formatHTMLMessage({ id: "dateTime.july", defaultMessage: "July" }) },
1582
- { value: "8", label: f.formatHTMLMessage({ id: "dateTime.august", defaultMessage: "August" }) },
1583
- { value: "9", label: f.formatHTMLMessage({ id: "dateTime.september", defaultMessage: "September" }) },
1584
- { value: "10", label: f.formatHTMLMessage({ id: "dateTime.october", defaultMessage: "October" }) },
1585
- { value: "11", label: f.formatHTMLMessage({ id: "dateTime.november", defaultMessage: "November" }) },
1586
- { value: "12", label: f.formatHTMLMessage({ id: "dateTime.december", defaultMessage: "December" }) }
1587
- ], C = (p, x, fe) => (!fe || fe === "") && (!x || x === "") && (!p || p === ""), Q = (p) => {
1588
- if (C(se, p, B)) {
1589
- r("");
1590
- return;
1591
- }
1592
- (p === "" || p === null) && r(`${se}--${B}`);
1593
- const x = Number.parseInt(p, 10);
1594
- typeof x == "number" && x >= 1 && x <= 12 ? r(`${se}-${Ye(p)}-${Ye(B)}`) : St.warn(`Value '${x}' is an invalid month`);
1595
- }, G = (p) => {
1596
- if (C(se, $, p)) {
1597
- r("");
1598
- return;
1599
- }
1600
- p === "" && r(`${se}-${$}-`);
1601
- const x = Number.parseInt(p, 10);
1602
- typeof x == "number" && x >= 1 && x <= 31 ? r(`${se}-${Ye($)}-${Ye(x)}`) : St.warn(`Value '${x}' is an invalid day`);
1603
- }, J = (p) => {
1604
- if (C(p, $, B)) {
1605
- r("");
1606
- return;
1607
- }
1608
- p === "" && r(`-${$}-${B}`);
1609
- const x = Number.parseInt(p, 10);
1610
- typeof x == "number" && x >= 1 ? r(`${x}-${Ye($)}-${Ye(B)}`) : St.warn(`Value '${x}' is an invalid year`);
1611
- }, O = () => {
1612
- r(!B && !$ && !se ? "" : `${se}-${Ye($)}-${Ye(B)}`);
1613
- }, V = `${P}__month`, xe = `${P}-label`, de = /* @__PURE__ */ l.jsx("div", { className: "sid-field-error", id: te, children: v }), we = /* @__PURE__ */ l.jsx(
1614
- lr,
1615
- {
1616
- className: `${P}__month sid-date__month`,
1617
- fieldId: M,
1618
- inputId: V,
1619
- fieldLabelId: xe,
1620
- ariaDescribedBy: i ? te : void 0,
1621
- isErrored: i,
1622
- options: _,
1623
- onChange: (p) => {
1624
- Q(p ? p.value : null);
1625
- },
1626
- placeholder: f.formatHTMLMessage({ id: "dateTime.month", defaultMessage: "Month" }),
1627
- suppressPlaceholder: !1,
1628
- value: $ ? _[$ - 1] : void 0,
1629
- isRequired: o,
1630
- buttonRef: "inputSelectButtonBirthDate",
1631
- disabled: g,
1632
- autoComplete: R ? `${R}-month` : void 0
1633
- }
1634
- ), b = ie === "date" && /* @__PURE__ */ l.jsx(
1635
- tr,
1636
- {
1637
- className: `${P}__day sid-date__day sid-text-input sid-text-input--required ${i ? "sid-text-input--error" : ""}`,
1638
- id: `${ee}-day`,
1639
- isErrored: i,
1640
- min: 1,
1641
- max: 31,
1642
- name: `${P}-day`,
1643
- onChange: (p) => G(p.target.value),
1644
- onBlur: O,
1645
- pattern: "\\d*",
1646
- placeholder: f.formatHTMLMessage({ id: "dateTime.day", defaultMessage: "Day" }),
1647
- hidePlaceholder: !1,
1648
- "aria-label": f.formatHTMLMessage({ id: "dateTime.day", defaultMessage: "Day" }),
1649
- "aria-labelledby": P,
1650
- "aria-required": o,
1651
- refId: `${M}Day`,
1652
- type: "text",
1653
- value: B || "",
1654
- disabled: g,
1655
- autoComplete: R ? `${R}-day` : void 0
1656
- }
1657
- ), w = /* @__PURE__ */ l.jsx(
1658
- tr,
1659
- {
1660
- className: `${P}__year sid-date__year sid-text-input sid-text-input--required ${i ? "sid-text-input--error" : ""}`,
1661
- id: `${ee}-year`,
1662
- name: `${P}-year`,
1663
- type: "text",
1664
- isErrored: i,
1665
- inputMode: "numeric",
1666
- value: se || "",
1667
- pattern: "\\d*",
1668
- placeholder: f.formatHTMLMessage({ id: "dateTime.year", defaultMessage: "Year" }),
1669
- hidePlaceholder: !1,
1670
- "aria-label": f.formatHTMLMessage({ id: "dateTime.year", defaultMessage: "Year" }),
1671
- "aria-labelledby": P,
1672
- "aria-required": o,
1673
- refId: `${M}Year`,
1674
- onChange: (p) => J(p.target.value),
1675
- onBlur: O,
1676
- disabled: g,
1677
- autoComplete: R ? `${R}-year` : void 0
1678
- }
1679
- );
1680
- return /* @__PURE__ */ l.jsxs("div", { className: `sid-field ${P}`, children: [
1681
- /* @__PURE__ */ l.jsx("div", { className: "sid-l-space-top-md" }),
1682
- /* @__PURE__ */ l.jsx(
1683
- sr,
1684
- {
1685
- text: I,
1686
- htmlForLabel: V,
1687
- id: xe,
1688
- displayClasses: "sid-used-for-verification-purposes-label sid-field__label-with-explanation",
1689
- isRequired: o,
1690
- children: N
1691
- }
1692
- ),
1693
- /* @__PURE__ */ l.jsxs("div", { className: `${P}__inputs sid-date__inputs`, children: [
1694
- Pr(Y) ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
1695
- b,
1696
- we
1697
- ] }) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
1698
- we,
1699
- b
1700
- ] }),
1701
- w
1702
- ] }),
1703
- i && de
1704
- ] });
1705
- }, Br = dt(Hr), Vr = ({
1706
- fieldId: r,
1707
- value: f,
1708
- onChange: i,
1709
- label: o,
1710
- errorMessage: d,
1711
- disabled: v = !1
1712
- }) => {
1713
- const I = `${r}Label`, N = `sid-${ze(I)}`, M = `sid-${ze(I)}-error`, ee = () => i(!f);
1714
- return /* @__PURE__ */ l.jsxs("div", { className: `sid-field sid-${ze(r)}`, children: [
1715
- /* @__PURE__ */ l.jsx("div", { className: "sid-l-space-top-md" }),
1716
- /* @__PURE__ */ l.jsxs("div", { className: "sid-checkbox-flex", children: [
1717
- /* @__PURE__ */ l.jsx(
1718
- Pt,
1719
- {
1720
- id: ze(r),
1721
- isErrored: !!d,
1722
- value: f,
1723
- onChange: ee,
1724
- ariaLabelledby: N,
1725
- ariaDescribedBy: d ? M : "",
1726
- disabled: v
1727
- }
1728
- ),
1729
- /* @__PURE__ */ l.jsx(
1730
- "div",
1731
- {
1732
- className: "sid-checkbox__label",
1733
- onClick: ee,
1734
- onKeyPress: ee,
1735
- role: "button",
1736
- tabIndex: 0,
1737
- id: N,
1738
- children: o
1739
- }
1740
- )
1741
- ] }),
1742
- d ? /* @__PURE__ */ l.jsx("div", { className: "sid-field-error", id: M, children: d }) : null
1743
- ] });
1744
- }, zr = ({
1745
- value: r,
1746
- options: f,
1747
- onChange: i,
1748
- fieldId: o,
1749
- label: d,
1750
- placeholder: v = "",
1751
- errorMessage: I,
1752
- required: N,
1753
- showPlaceholderAndHideLabel: M = !1,
1754
- onKeyDown: ee = void 0,
1755
- disabled: ie = !1
1756
- }) => {
1757
- const Y = `${o}Label`, g = `sid-${ze(Y)}`, R = `sid-${ze(o)}-error`;
1758
- return /* @__PURE__ */ l.jsx(
1759
- ur,
1760
- {
1761
- fieldId: o,
1762
- label: d,
1763
- errorMessage: I,
1764
- showPlaceholderAndHideLabel: M,
1765
- isRequired: N,
1766
- children: /* @__PURE__ */ l.jsx(
1767
- lr,
1768
- {
1769
- fieldId: o,
1770
- inputId: `sid-${ze(o)}`,
1771
- fieldLabelId: g,
1772
- isErrored: !!I,
1773
- options: f,
1774
- onChange: (P) => i(P?.value.toString() || ""),
1775
- onKeyDown: ee,
1776
- value: f.find((P) => P.value === r),
1777
- suppressPlaceholder: !M,
1778
- placeholder: v,
1779
- ariaDescribedBy: I ? R : void 0,
1780
- isRequired: N,
1781
- disabled: ie
1782
- }
1783
- )
1784
- }
1785
- );
1786
- }, qr = ({
1787
- fieldId: r,
1788
- index: f,
1789
- option: i,
1790
- value: o,
1791
- onChange: d,
1792
- disabled: v = !1
1793
- }) => {
1794
- const I = Re.useRef(null);
1795
- return Re.useEffect(() => {
1796
- $t(r, I.current);
1797
- }), /* @__PURE__ */ l.jsxs("label", { className: "sid-radio__input sid-radio__input-label", children: [
1798
- /* @__PURE__ */ l.jsx(
1799
- "input",
1800
- {
1801
- id: `sid-radio__${r}-${f}`,
1802
- name: `sid-${r}`,
1803
- type: "radio",
1804
- checked: i.value === o,
1805
- value: i.value,
1806
- onChange: (N) => N.target.checked && d(i.value),
1807
- ref: I,
1808
- disabled: v
1809
- }
1810
- ),
1811
- /* @__PURE__ */ l.jsx("span", { children: i.label })
1812
- ] });
1813
- }, Ur = ({
1814
- fieldId: r,
1815
- onChange: f,
1816
- options: i,
1817
- label: o,
1818
- explanation: d = void 0,
1819
- required: v,
1820
- errorMessage: I,
1821
- value: N,
1822
- disabled: M = !1
1823
- }) => {
1824
- const ee = ze(r), ie = Tr(r);
1825
- return /* @__PURE__ */ l.jsx(
1826
- ur,
1827
- {
1828
- fieldId: ee,
1829
- label: o,
1830
- explanation: d,
1831
- errorMessage: I,
1832
- isRequired: v,
1833
- children: /* @__PURE__ */ l.jsx(
1834
- "div",
1835
- {
1836
- role: "group",
1837
- className: `sid-radio__inputs sid-${ee}__inputs sid-radio-grid${I ? " sid-radio__inputs--error" : ""}`,
1838
- "aria-labelledby": ie,
1839
- children: i.map((Y, g) => /* @__PURE__ */ l.jsx(
1840
- qr,
1841
- {
1842
- fieldId: r,
1843
- index: g,
1844
- option: Y,
1845
- value: N,
1846
- onChange: f,
1847
- disabled: M
1848
- },
1849
- Y.value
1850
- ))
1851
- }
1852
- )
1853
- }
1854
- );
1855
- }, Xe = {
1856
- TEXT: "text",
1857
- CHECKBOX: "checkbox",
1858
- SELECT: "select",
1859
- RADIO: "radio",
1860
- DATE: "date",
1861
- DATEYM: "dateYm"
1862
- }, ct = (r) => `${r.fieldId}Label`, nt = (r) => `${r.fieldId}Explanation`, Gr = (r) => `${r.fieldId}Placeholder`, ua = dt(
1863
- ({ config: r, verificationService: f, intl: i }) => {
1864
- const o = lt(() => f.viewModel.metadata[r.fieldId]), d = lt(() => f.fieldValidationErrors[r.fieldId]), v = (I) => {
1865
- f.updateViewModel(
1866
- Xt(f.viewModel, (N) => {
1867
- N.metadata = N.metadata || {}, N.metadata[r.fieldId] = I;
1868
- })
1869
- ), f.updateFieldValidationErrors(
1870
- Xt(f.fieldValidationErrors, (N) => {
1871
- r.validate(I) === void 0 && delete N[r.fieldId];
1872
- })
1873
- );
1874
- };
1875
- switch (r.fieldType) {
1876
- case Xe.TEXT:
1877
- return /* @__PURE__ */ l.jsx(
1878
- Rt,
1879
- {
1880
- fieldId: r.fieldId,
1881
- value: `${o || ""}`,
1882
- onChange: v,
1883
- disabled: r.disabled,
1884
- placeholder: i.formatHTMLMessage({
1885
- id: Gr(r),
1886
- defaultMessage: r.fieldId
1887
- }),
1888
- label: /* @__PURE__ */ l.jsx(
1889
- ge,
1890
- {
1891
- id: ct(r),
1892
- defaultMessage: r.fieldId
1893
- }
1894
- ),
1895
- explanation: lt(() => i.messages[nt(r)]) && /* @__PURE__ */ l.jsx(ge, { id: nt(r) }),
1896
- errorMessage: d && /* @__PURE__ */ l.jsx(
1897
- ge,
1898
- {
1899
- id: `errorId.${d}`,
1900
- defaultMessage: `Invalid ${r.fieldId}`
1901
- }
1902
- ),
1903
- showPlaceholderAndHideLabel: r.showPlaceholderAndHideLabel,
1904
- required: r.required
1905
- }
1906
- );
1907
- case Xe.CHECKBOX:
1908
- return /* @__PURE__ */ l.jsx(
1909
- Vr,
1910
- {
1911
- fieldId: r.fieldId,
1912
- value: typeof o == "boolean" ? o : !1,
1913
- onChange: v,
1914
- disabled: r.disabled,
1915
- label: /* @__PURE__ */ l.jsx(
1916
- ge,
1917
- {
1918
- id: ct(r),
1919
- defaultMessage: r.fieldId
1920
- }
1921
- ),
1922
- errorMessage: d && /* @__PURE__ */ l.jsx(
1923
- ge,
1924
- {
1925
- id: `errorId.${d}`,
1926
- defaultMessage: `Invalid ${r.fieldId}`
1927
- }
1928
- )
1929
- }
1930
- );
1931
- case Xe.SELECT:
1932
- return /* @__PURE__ */ l.jsx(
1933
- zr,
1934
- {
1935
- fieldId: r.fieldId,
1936
- value: `${o || ""}`,
1937
- onChange: v,
1938
- options: er(r.fieldId, r.options, i),
1939
- disabled: r.disabled,
1940
- placeholder: i.formatHTMLMessage({
1941
- id: `${r.fieldId}Placeholder`,
1942
- defaultMessage: r.fieldId
1943
- }),
1944
- label: /* @__PURE__ */ l.jsx(
1945
- ge,
1946
- {
1947
- id: ct(r),
1948
- defaultMessage: r.fieldId
1949
- }
1950
- ),
1951
- errorMessage: d && /* @__PURE__ */ l.jsx(
1952
- ge,
1953
- {
1954
- id: `errorId.${d}`,
1955
- defaultMessage: `Invalid ${r.fieldId}`
1956
- }
1957
- ),
1958
- showPlaceholderAndHideLabel: r.showPlaceholderAndHideLabel,
1959
- required: r.required
1960
- }
1961
- );
1962
- case Xe.DATE:
1963
- case Xe.DATEYM:
1964
- const I = r.fieldType === Xe.DATEYM ? "month" : void 0;
1965
- return /* @__PURE__ */ l.jsx(
1966
- Br,
1967
- {
1968
- fieldId: r.fieldId,
1969
- fieldName: r.fieldId,
1970
- value: `${o || ""}`,
1971
- onChange: v,
1972
- disabled: r.disabled,
1973
- label: /* @__PURE__ */ l.jsx(
1974
- ge,
1975
- {
1976
- id: ct(r),
1977
- defaultMessage: r.fieldId
1978
- }
1979
- ),
1980
- explanation: lt(() => i.messages[nt(r)]) && /* @__PURE__ */ l.jsx(ge, { id: nt(r) }),
1981
- isErrored: !!d,
1982
- errorMsg: /* @__PURE__ */ l.jsx(
1983
- ge,
1984
- {
1985
- id: `errorId.${d}`,
1986
- defaultMessage: `Invalid ${r.fieldId}`
1987
- }
1988
- ),
1989
- isRequired: r.required,
1990
- mode: I
1991
- }
1992
- );
1993
- case Xe.RADIO:
1994
- return /* @__PURE__ */ l.jsx(
1995
- Ur,
1996
- {
1997
- onChange: v,
1998
- value: `${o || ""}`,
1999
- options: er(r.fieldId, r.options, i),
2000
- required: r.required,
2001
- fieldId: r.fieldId,
2002
- disabled: r.disabled,
2003
- label: /* @__PURE__ */ l.jsx(
2004
- ge,
2005
- {
2006
- id: ct(r),
2007
- defaultMessage: r.fieldId
2008
- }
2009
- ),
2010
- explanation: lt(() => i.messages[nt(r)]) && /* @__PURE__ */ l.jsx(ge, { id: nt(r) }),
2011
- errorMessage: d && /* @__PURE__ */ l.jsx(
2012
- ge,
2013
- {
2014
- id: `errorId.${d}`,
2015
- defaultMessage: `Invalid ${r.fieldId}`
2016
- }
2017
- )
2018
- }
2019
- );
2020
- default:
2021
- return St.warn(`Unknown field type: ${r.fieldType}`), null;
2022
- }
2023
- }
2024
- );
2025
- var Oe = {}, ar;
2026
- function Kr() {
2027
- if (ar) return Oe;
2028
- ar = 1;
2029
- var r = Oe && Oe.__createBinding || (Object.create ? (function(g, R, P, te) {
2030
- te === void 0 && (te = P);
2031
- var m = Object.getOwnPropertyDescriptor(R, P);
2032
- (!m || ("get" in m ? !R.__esModule : m.writable || m.configurable)) && (m = { enumerable: !0, get: function() {
2033
- return R[P];
2034
- } }), Object.defineProperty(g, te, m);
2035
- }) : (function(g, R, P, te) {
2036
- te === void 0 && (te = P), g[te] = R[P];
2037
- })), f = Oe && Oe.__setModuleDefault || (Object.create ? (function(g, R) {
2038
- Object.defineProperty(g, "default", { enumerable: !0, value: R });
2039
- }) : function(g, R) {
2040
- g.default = R;
2041
- }), i = Oe && Oe.__importStar || function(g) {
2042
- if (g && g.__esModule) return g;
2043
- var R = {};
2044
- if (g != null) for (var P in g) P !== "default" && Object.prototype.hasOwnProperty.call(g, P) && r(R, g, P);
2045
- return f(R, g), R;
2046
- };
2047
- Object.defineProperty(Oe, "__esModule", { value: !0 }), Oe.useTurnstile = Oe.Turnstile = void 0;
2048
- const o = i(ir()), d = typeof globalThis < "u" ? globalThis : window;
2049
- let v = typeof d.turnstile < "u" ? "ready" : "unloaded", I, N;
2050
- const M = new Promise((g, R) => {
2051
- N = { resolve: g, reject: R }, v === "ready" && g(void 0);
2052
- });
2053
- {
2054
- const g = "cf__reactTurnstileOnLoad", R = "https://challenges.cloudflare.com/turnstile/v0/api.js";
2055
- I = () => {
2056
- if (v === "unloaded") {
2057
- v = "loading", d[g] = () => {
2058
- N.resolve(), v = "ready", delete d[g];
2059
- };
2060
- const P = `${R}?onload=${g}&render=explicit`, te = document.createElement("script");
2061
- te.src = P, te.async = !0, te.addEventListener("error", () => {
2062
- N.reject("Failed to load Turnstile."), delete d[g];
2063
- }), document.head.appendChild(te);
2064
- }
2065
- return M;
2066
- };
2067
- }
2068
- function ee({ id: g, className: R, style: P, sitekey: te, action: m, cData: se, theme: $, language: B, tabIndex: _, responseField: C, responseFieldName: Q, size: G, fixedSize: J, retry: O, retryInterval: V, refreshExpired: xe, appearance: de, execution: we, userRef: b, onVerify: w, onSuccess: p, onLoad: x, onError: fe, onExpire: ke, onTimeout: S, onAfterInteractive: h, onBeforeInteractive: D, onUnsupported: K }) {
2069
- const y = (0, o.useRef)(null), e = (0, o.useState)({
2070
- onVerify: w,
2071
- onSuccess: p,
2072
- onLoad: x,
2073
- onError: fe,
2074
- onExpire: ke,
2075
- onTimeout: S,
2076
- onAfterInteractive: h,
2077
- onBeforeInteractive: D,
2078
- onUnsupported: K
2079
- })[0], ne = b ?? y, re = J ? {
2080
- width: G === "compact" ? "130px" : G === "flexible" ? "100%" : "300px",
2081
- height: G === "compact" ? "120px" : "65px",
2082
- ...P
2083
- } : P;
2084
- return (0, o.useEffect)(() => {
2085
- if (!ne.current)
2086
- return;
2087
- let X = !1, le = "";
2088
- return (async () => {
2089
- var pe, me;
2090
- if (v !== "ready")
2091
- try {
2092
- await I();
2093
- } catch (z) {
2094
- (pe = e.onError) === null || pe === void 0 || pe.call(e, z);
2095
- return;
2096
- }
2097
- if (X || !ne.current)
2098
- return;
2099
- let oe;
2100
- const je = {
2101
- sitekey: te,
2102
- action: m,
2103
- cData: se,
2104
- theme: $,
2105
- language: B,
2106
- tabindex: _,
2107
- "response-field": C,
2108
- "response-field-name": Q,
2109
- size: G,
2110
- retry: O,
2111
- "retry-interval": V,
2112
- "refresh-expired": xe,
2113
- appearance: de,
2114
- execution: we,
2115
- callback: (z, n) => {
2116
- var u, j;
2117
- (u = e.onVerify) === null || u === void 0 || u.call(e, z, oe), (j = e.onSuccess) === null || j === void 0 || j.call(e, z, n, oe);
2118
- },
2119
- "error-callback": (z) => {
2120
- var n;
2121
- return (n = e.onError) === null || n === void 0 ? void 0 : n.call(e, z, oe);
2122
- },
2123
- "expired-callback": (z) => {
2124
- var n;
2125
- return (n = e.onExpire) === null || n === void 0 ? void 0 : n.call(e, z, oe);
2126
- },
2127
- "timeout-callback": () => {
2128
- var z;
2129
- return (z = e.onTimeout) === null || z === void 0 ? void 0 : z.call(e, oe);
2130
- },
2131
- "after-interactive-callback": () => {
2132
- var z;
2133
- return (z = e.onAfterInteractive) === null || z === void 0 ? void 0 : z.call(e, oe);
2134
- },
2135
- "before-interactive-callback": () => {
2136
- var z;
2137
- return (z = e.onBeforeInteractive) === null || z === void 0 ? void 0 : z.call(e, oe);
2138
- },
2139
- "unsupported-callback": () => {
2140
- var z;
2141
- return (z = e.onUnsupported) === null || z === void 0 ? void 0 : z.call(e, oe);
2142
- }
2143
- };
2144
- le = window.turnstile.render(ne.current, je), oe = ie(le), (me = e.onLoad) === null || me === void 0 || me.call(e, le, oe);
2145
- })(), () => {
2146
- X = !0, le && window.turnstile.remove(le);
2147
- };
2148
- }, [
2149
- te,
2150
- m,
2151
- se,
2152
- $,
2153
- B,
2154
- _,
2155
- C,
2156
- Q,
2157
- G,
2158
- O,
2159
- V,
2160
- xe,
2161
- de,
2162
- we
2163
- ]), (0, o.useEffect)(() => {
2164
- e.onVerify = w, e.onSuccess = p, e.onLoad = x, e.onError = fe, e.onExpire = ke, e.onTimeout = S, e.onAfterInteractive = h, e.onBeforeInteractive = D, e.onUnsupported = K;
2165
- }, [
2166
- w,
2167
- p,
2168
- x,
2169
- fe,
2170
- ke,
2171
- S,
2172
- h,
2173
- D,
2174
- K
2175
- ]), o.default.createElement("div", { ref: ne, id: g, className: R, style: re });
2176
- }
2177
- Oe.Turnstile = ee, Oe.default = ee;
2178
- function ie(g) {
2179
- return {
2180
- execute: (R) => window.turnstile.execute(g, R),
2181
- reset: () => window.turnstile.reset(g),
2182
- getResponse: () => window.turnstile.getResponse(g),
2183
- isExpired: () => window.turnstile.isExpired(g)
2184
- };
2185
- }
2186
- function Y() {
2187
- const [g, R] = (0, o.useState)(v);
2188
- return (0, o.useEffect)(() => {
2189
- v !== "ready" && M.then(() => R(v));
2190
- }, []), d.turnstile;
2191
- }
2192
- return Oe.useTurnstile = Y, Oe;
2193
- }
2194
- var nr = Kr();
2195
- const Wr = ({ errorType: r, onRetry: f }) => r ? /* @__PURE__ */ l.jsxs("div", { className: "sid-captcha-notification", role: "alert", "data-testid": r, children: [
2196
- /* @__PURE__ */ l.jsx("div", { className: "sid-captcha-notification__icon-wrapper", children: /* @__PURE__ */ l.jsx(Ar, { className: "sid-captcha-notification__icon" }) }),
2197
- /* @__PURE__ */ l.jsxs("div", { children: [
2198
- r !== He.SERVER && /* @__PURE__ */ l.jsx("span", { className: "sid-captcha-notification__title", children: /* @__PURE__ */ l.jsx(
2199
- Lt,
2200
- {
2201
- id: `step.personalInfo.captcha.error.${r}.title`,
2202
- defaultMessage: "Verification Unsuccessful, Please try again."
2203
- }
2204
- ) }),
2205
- " ",
2206
- /* @__PURE__ */ l.jsx(
2207
- Lt,
2208
- {
2209
- id: `step.personalInfo.captcha.error.${r}.content`,
2210
- defaultMessage: "If the issue persists, disable any VPN or ad-blocking extensions and retry."
2211
- }
2212
- )
2213
- ] }),
2214
- f && /* @__PURE__ */ l.jsx("button", { type: "button", className: "sid-captcha-notification__retry-button", onClick: f, children: /* @__PURE__ */ l.jsx(Lt, { id: "step.personalInfo.captcha.retryButton" }) })
2215
- ] }) : null, Yr = 12e4, Jr = 1e4, Zr = {
2216
- [He.SERVER]: Ie.CaptchaErrorServer,
2217
- [He.BROWSER_COMPATIBILITY]: Ie.CaptchaErrorBrowserCompatibility
2218
- }, la = ({ verificationService: r, isErrored: f }) => {
2219
- const i = nr.useTurnstile(), o = vr("captcha") === "enabled", { programTheme: d, programId: v } = r, I = r.verificationResponse.segment, N = Cr(d) || o, { trackEvent: M, recordNumericMetric: ee, flush: ie } = Er({ segment: I, programId: v }), Y = Be.useRef(/* @__PURE__ */ new Set()), g = (O) => {
2220
- Y.current.has(O) || (Y.current.add(O), M(O));
2221
- }, R = _r(xr), P = Object.values(He).includes(R) ? R : null, [te, m] = Be.useState(P), [se, $] = Be.useState(!1), B = () => {
2222
- g(Ie.CaptchaRetryClicked), m(null), i.reset();
2223
- }, _ = (O) => {
2224
- Ft({ captchaToken: O }), Ir("captchaToken", O, r);
2225
- }, C = (O) => {
2226
- g(Zr[O]), m(O), _("");
2227
- }, Q = () => r.viewModel?.fieldsToSkipValidation || [], G = () => {
2228
- const O = Q();
2229
- Ft({
2230
- fieldsToSkipValidation: O.filter((V) => V !== "captchaToken")
2231
- }), _("");
2232
- }, J = () => {
2233
- const O = Q();
2234
- Ft({
2235
- captchaToken: void 0,
2236
- fieldsToSkipValidation: O.includes("captchaToken") ? O : [...O, "captchaToken"]
2237
- });
2238
- };
2239
- return Be.useEffect(() => {
2240
- N && f && m((O) => O === null ? (g(Ie.CaptchaErrorServer), He.SERVER) : O);
2241
- }, [N, f]), Be.useEffect(() => {
2242
- if (!N)
2243
- return;
2244
- G();
2245
- const O = () => {
2246
- const de = Y.current;
2247
- return de.has(Ie.CaptchaVerified) || de.has(Ie.CaptchaErrorClient) || de.has(Ie.CaptchaErrorScriptLoad) || de.has(Ie.CaptchaErrorBrowserCompatibility) || de.has(Ie.CaptchaErrorLoadTimeout);
2248
- }, V = () => {
2249
- O() || (Y.current.has(Ie.CaptchaRendered) ? g(Ie.CaptchaAbandonedAfterRender) : g(Ie.CaptchaUnmountedBeforeRender));
2250
- }, xe = () => {
2251
- V(), ie();
2252
- };
2253
- return window.addEventListener("beforeunload", xe), () => {
2254
- window.removeEventListener("beforeunload", xe), V(), J();
2255
- };
2256
- }, [N]), Be.useEffect(() => {
2257
- if (!N || se || P)
2258
- return;
2259
- const O = setTimeout(() => {
2260
- Y.current.has(Ie.CaptchaErrorScriptLoad) || (g(Ie.CaptchaErrorLoadTimeout), m(He.CLIENT), _(""));
2261
- }, Jr);
2262
- return () => clearTimeout(O);
2263
- }, [N, se]), N ? /* @__PURE__ */ l.jsxs("div", { children: [
2264
- !P && /* @__PURE__ */ l.jsx(
2265
- nr.Turnstile,
2266
- {
2267
- sitekey: "0x4AAAAAACaWNlR_tN9-HfHj",
2268
- refreshExpired: "auto",
2269
- retryInterval: Yr,
2270
- onLoad: () => {
2271
- $(!0), g(Ie.CaptchaRendered);
2272
- },
2273
- onVerify: (O) => {
2274
- g(Ie.CaptchaVerified), m((V) => V === He.SERVER ? V : null), _(O);
2275
- },
2276
- onError: (O) => {
2277
- if (!se)
2278
- g(Ie.CaptchaErrorScriptLoad);
2279
- else if (!Y.current.has(Ie.CaptchaErrorClient)) {
2280
- const V = parseInt(O, 10);
2281
- ee(
2282
- Ie.CaptchaErrorClientCode,
2283
- isNaN(V) ? 0 : V
2284
- ), jr({
2285
- eventName: Sr.CAPTCHA_CLIENT_ERROR_CODE,
2286
- params: { [wr.ERROR_CODE]: isNaN(V) ? 0 : V }
2287
- }), g(Ie.CaptchaErrorClient);
2288
- }
2289
- m(He.CLIENT), _("");
2290
- },
2291
- onUnsupported: () => {
2292
- C(He.BROWSER_COMPATIBILITY);
2293
- }
2294
- }
2295
- ),
2296
- /* @__PURE__ */ l.jsx(
2297
- Wr,
2298
- {
2299
- errorType: te,
2300
- onRetry: se && te === He.CLIENT ? B : void 0
2301
- }
2302
- )
2303
- ] }) : null;
2304
- };
2305
- export {
2306
- la as C,
2307
- Br as D,
2308
- ia as F,
2309
- sa as L,
2310
- na as M,
2311
- oa as P,
2312
- ua as a
2313
- };