@sheerid/jslib 2.226.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 +1542 -1544
  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 +2599 -2601
  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,2309 +0,0 @@
1
-
2
- /**
3
- * VERSION: 2.226.0
4
- * BUILD_TIMESTAMP: 1778520887115
5
- * BUILD_DATE: Mon May 11 2026 17:34:47 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 134d1035e06efe1fff221360f0c2aeb633742473
7
- */
8
- 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 "../sheerid.js";
9
- import { a as sr, F as ur, g as Tr } from "./FormFieldLayout-DEVPpEyA.js";
10
- import { F as Rt } from "./FormFieldText-CaWtYVur.js";
11
- import { I as lr, g as er } from "./FormSelectChoice-BahCx4wG.js";
12
- import { I as tr } from "./InputText-CCNbZmMe.js";
13
- import { u as Er, M as Ie } from "./useMetrics-wq7yrL0b.js";
14
- const Nr = ({
15
- isErrored: r,
16
- onChange: f,
17
- value: i,
18
- ariaLabelledby: o,
19
- ariaDescribedBy: d,
20
- id: v = "new",
21
- disabled: I = !1
22
- }) => {
23
- const N = o ? { "aria-labelledby": o } : {}, M = Re.useRef(null), ee = () => {
24
- M.current && f(!M.current.checked);
25
- }, ie = (Y) => {
26
- (Y.key === " " || Y.key === "Enter") && (Y.preventDefault(), ee());
27
- };
28
- return Re.useEffect(() => {
29
- $t("optIn", M.current);
30
- }), Re.useEffect(() => {
31
- M.current && (M.current.checked = i);
32
- }, [i]), /* @__PURE__ */ l.jsxs("div", { className: "sid-checkbox", children: [
33
- /* @__PURE__ */ l.jsx(
34
- "input",
35
- {
36
- className: "sid-checkbox__input",
37
- id: `sid-opt-in__${v}`,
38
- name: "sid-opt-in",
39
- type: "checkbox",
40
- checked: i,
41
- ref: M,
42
- "aria-invalid": r,
43
- "aria-describedby": d,
44
- disabled: I,
45
- tabIndex: -1
46
- }
47
- ),
48
- /* @__PURE__ */ l.jsx(
49
- "span",
50
- {
51
- ...N,
52
- className: `sid-checkbox__input-like ${r ? "sid-checkbox__input-like--error" : ""}`,
53
- onClick: ee,
54
- onKeyDown: ie,
55
- role: "checkbox",
56
- "aria-checked": i,
57
- tabIndex: 0,
58
- "data-testid": "stylable-checkbox-input"
59
- }
60
- )
61
- ] });
62
- }, Pt = Nr, Mr = ({
63
- isErrored: r,
64
- isRequired: f,
65
- onChange: i,
66
- value: o,
67
- verificationService: d,
68
- disabled: v = !1
69
- }) => {
70
- const I = "marketConsentValue", N = `sid-${ze(I)}-error`, M = Be.useCallback(
71
- (Y) => {
72
- const g = "marketConsentRequired";
73
- if (f && !Y)
74
- return g;
75
- },
76
- [f]
77
- ), ie = (d && d.programTheme && or(d.programTheme) || {}).message || "Yes, send me {company} marketing communications about exclusive sales, special offers, latest products and more";
78
- return Be.useEffect(() => {
79
- Qt(I, M);
80
- }, [I, M]), Be.useEffect(() => {
81
- Qt(I, M);
82
- }, [I, M]), /* @__PURE__ */ l.jsxs("div", { className: "sid-field sid-opt-in", children: [
83
- /* @__PURE__ */ l.jsx("div", { className: "sid-l-space-top-md" }),
84
- /* @__PURE__ */ l.jsx("div", { className: "sid-l-position", children: /* @__PURE__ */ l.jsxs("label", { htmlFor: "sid-opt-in__optIn", children: [
85
- /* @__PURE__ */ l.jsx(
86
- Pt,
87
- {
88
- id: "optIn",
89
- ariaDescribedBy: r ? N : void 0,
90
- isErrored: r,
91
- onChange: i,
92
- value: o,
93
- disabled: v
94
- }
95
- ),
96
- /* @__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(
97
- ge,
98
- {
99
- id: "optIn",
100
- values: { company: Y },
101
- defaultMessage: ie
102
- }
103
- ) }) : /* @__PURE__ */ l.jsx(ge, { id: "optIn", defaultMessage: ie }) }),
104
- r && /* @__PURE__ */ l.jsx("div", { className: "sid-field-error", id: N, children: /* @__PURE__ */ l.jsx(
105
- ge,
106
- {
107
- id: "errorId.invalidOptIn",
108
- defaultMessage: "Must be selected to continue"
109
- }
110
- ) })
111
- ] }) })
112
- ] });
113
- }, na = ({
114
- verificationService: r,
115
- isErrored: f,
116
- onChange: i,
117
- viewModel: o,
118
- disabled: d = !1
119
- }) => {
120
- const { programTheme: v } = r, I = or(v);
121
- return It("marketConsentValue")?.hidden ? null : I.enabled ? /* @__PURE__ */ l.jsx(
122
- Mr,
123
- {
124
- isErrored: f,
125
- isRequired: I.required,
126
- verificationService: r,
127
- value: o.metadata && o.metadata.marketConsentValue || !1,
128
- onChange: (M) => i(M),
129
- disabled: d
130
- }
131
- ) : null;
132
- };
133
- var At, rr;
134
- function kr() {
135
- return rr || (rr = 1, At = (function(r) {
136
- var f = {};
137
- function i(o) {
138
- if (f[o]) return f[o].exports;
139
- var d = f[o] = { i: o, l: !1, exports: {} };
140
- return r[o].call(d.exports, d, d.exports, i), d.l = !0, d.exports;
141
- }
142
- return i.m = r, i.c = f, i.d = function(o, d, v) {
143
- i.o(o, d) || Object.defineProperty(o, d, { enumerable: !0, get: v });
144
- }, i.r = function(o) {
145
- typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(o, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(o, "__esModule", { value: !0 });
146
- }, i.t = function(o, d) {
147
- if (1 & d && (o = i(o)), 8 & d || 4 & d && typeof o == "object" && o && o.__esModule) return o;
148
- var v = /* @__PURE__ */ Object.create(null);
149
- 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) {
150
- return o[N];
151
- }).bind(null, I));
152
- return v;
153
- }, i.n = function(o) {
154
- var d = o && o.__esModule ? function() {
155
- return o.default;
156
- } : function() {
157
- return o;
158
- };
159
- return i.d(d, "a", d), d;
160
- }, i.o = function(o, d) {
161
- return Object.prototype.hasOwnProperty.call(o, d);
162
- }, i.p = "", i(i.s = 9);
163
- })([function(r, f) {
164
- r.exports = ir();
165
- }, function(r, f, i) {
166
- var o;
167
- (function() {
168
- var d = {}.hasOwnProperty;
169
- function v() {
170
- for (var I = [], N = 0; N < arguments.length; N++) {
171
- var M = arguments[N];
172
- if (M) {
173
- var ee = typeof M;
174
- if (ee === "string" || ee === "number") I.push(M);
175
- else if (Array.isArray(M) && M.length) {
176
- var ie = v.apply(null, M);
177
- ie && I.push(ie);
178
- } else if (ee === "object") for (var Y in M) d.call(M, Y) && M[Y] && I.push(Y);
179
- }
180
- }
181
- return I.join(" ");
182
- }
183
- r.exports ? (v.default = v, r.exports = v) : (o = (function() {
184
- return v;
185
- }).apply(f, [])) === void 0 || (r.exports = o);
186
- })();
187
- }, function(r, f, i) {
188
- (function(o) {
189
- 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;
190
- function m(_) {
191
- if (typeof _ == "string") return _;
192
- if ($(_)) return te ? te.call(_) : "";
193
- var C = _ + "";
194
- return C == "0" && 1 / _ == -1 / 0 ? "-0" : C;
195
- }
196
- function se(_) {
197
- var C = typeof _;
198
- return !!_ && (C == "object" || C == "function");
199
- }
200
- function $(_) {
201
- return typeof _ == "symbol" || /* @__PURE__ */ (function(C) {
202
- return !!C && typeof C == "object";
203
- })(_) && g.call(_) == "[object Symbol]";
204
- }
205
- function B(_) {
206
- return _ ? (_ = (function(C) {
207
- if (typeof C == "number") return C;
208
- if ($(C)) return NaN;
209
- if (se(C)) {
210
- var Q = typeof C.valueOf == "function" ? C.valueOf() : C;
211
- C = se(Q) ? Q + "" : Q;
212
- }
213
- if (typeof C != "string") return C === 0 ? C : +C;
214
- C = C.replace(d, "");
215
- var G = I.test(C);
216
- return G || N.test(C) ? M(C.slice(2), G ? 2 : 8) : v.test(C) ? NaN : +C;
217
- })(_)) === 1 / 0 || _ === -1 / 0 ? 17976931348623157e292 * (_ < 0 ? -1 : 1) : _ == _ ? _ : 0 : _ === 0 ? _ : 0;
218
- }
219
- r.exports = function(_, C, Q) {
220
- var G, J, O, V;
221
- return _ = (G = _) == null ? "" : m(G), J = (function(xe) {
222
- var de = B(xe), we = de % 1;
223
- return de == de ? we ? de - we : de : 0;
224
- })(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;
225
- };
226
- }).call(this, i(3));
227
- }, function(r, f) {
228
- var i;
229
- i = /* @__PURE__ */ (function() {
230
- return this;
231
- })();
232
- try {
233
- i = i || new Function("return this")();
234
- } catch {
235
- typeof window == "object" && (i = window);
236
- }
237
- r.exports = i;
238
- }, function(r, f, i) {
239
- (function(o) {
240
- 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");
241
- function C(b) {
242
- var w = -1, p = b ? b.length : 0;
243
- for (this.clear(); ++w < p; ) {
244
- var x = b[w];
245
- this.set(x[0], x[1]);
246
- }
247
- }
248
- function Q(b) {
249
- var w = -1, p = b ? b.length : 0;
250
- for (this.clear(); ++w < p; ) {
251
- var x = b[w];
252
- this.set(x[0], x[1]);
253
- }
254
- }
255
- function G(b) {
256
- var w = -1, p = b ? b.length : 0;
257
- for (this.clear(); ++w < p; ) {
258
- var x = b[w];
259
- this.set(x[0], x[1]);
260
- }
261
- }
262
- function J(b, w) {
263
- for (var p, x, fe = b.length; fe--; ) if ((p = b[fe][0]) === (x = w) || p != p && x != x) return fe;
264
- return -1;
265
- }
266
- function O(b) {
267
- return !(!we(b) || (w = b, R && R in w)) && ((function(p) {
268
- var x = we(p) ? m.call(p) : "";
269
- return x == "[object Function]" || x == "[object GeneratorFunction]";
270
- })(b) || (function(p) {
271
- var x = !1;
272
- if (p != null && typeof p.toString != "function") try {
273
- x = !!(p + "");
274
- } catch {
275
- }
276
- return x;
277
- })(b) ? se : d).test((function(p) {
278
- if (p != null) {
279
- try {
280
- return P.call(p);
281
- } catch {
282
- }
283
- try {
284
- return p + "";
285
- } catch {
286
- }
287
- }
288
- return "";
289
- })(b));
290
- var w;
291
- }
292
- function V(b, w) {
293
- var p, x, fe = b.__data__;
294
- return ((x = typeof (p = w)) == "string" || x == "number" || x == "symbol" || x == "boolean" ? p !== "__proto__" : p === null) ? fe[typeof w == "string" ? "string" : "hash"] : fe.map;
295
- }
296
- function xe(b, w) {
297
- var p = (function(x, fe) {
298
- return x?.[fe];
299
- })(b, w);
300
- return O(p) ? p : void 0;
301
- }
302
- function de(b, w) {
303
- if (typeof b != "function" || w && typeof w != "function") throw new TypeError("Expected a function");
304
- var p = function() {
305
- var x = arguments, fe = w ? w.apply(this, x) : x[0], ke = p.cache;
306
- if (ke.has(fe)) return ke.get(fe);
307
- var S = b.apply(this, x);
308
- return p.cache = ke.set(fe, S), S;
309
- };
310
- return p.cache = new (de.Cache || G)(), p;
311
- }
312
- function we(b) {
313
- var w = typeof b;
314
- return !!b && (w == "object" || w == "function");
315
- }
316
- C.prototype.clear = function() {
317
- this.__data__ = _ ? _(null) : {};
318
- }, C.prototype.delete = function(b) {
319
- return this.has(b) && delete this.__data__[b];
320
- }, C.prototype.get = function(b) {
321
- var w = this.__data__;
322
- if (_) {
323
- var p = w[b];
324
- return p === "__lodash_hash_undefined__" ? void 0 : p;
325
- }
326
- return te.call(w, b) ? w[b] : void 0;
327
- }, C.prototype.has = function(b) {
328
- var w = this.__data__;
329
- return _ ? w[b] !== void 0 : te.call(w, b);
330
- }, C.prototype.set = function(b, w) {
331
- return this.__data__[b] = _ && w === void 0 ? "__lodash_hash_undefined__" : w, this;
332
- }, Q.prototype.clear = function() {
333
- this.__data__ = [];
334
- }, Q.prototype.delete = function(b) {
335
- var w = this.__data__, p = J(w, b);
336
- return !(p < 0) && (p == w.length - 1 ? w.pop() : $.call(w, p, 1), !0);
337
- }, Q.prototype.get = function(b) {
338
- var w = this.__data__, p = J(w, b);
339
- return p < 0 ? void 0 : w[p][1];
340
- }, Q.prototype.has = function(b) {
341
- return J(this.__data__, b) > -1;
342
- }, Q.prototype.set = function(b, w) {
343
- var p = this.__data__, x = J(p, b);
344
- return x < 0 ? p.push([b, w]) : p[x][1] = w, this;
345
- }, G.prototype.clear = function() {
346
- this.__data__ = { hash: new C(), map: new (B || Q)(), string: new C() };
347
- }, G.prototype.delete = function(b) {
348
- return V(this, b).delete(b);
349
- }, G.prototype.get = function(b) {
350
- return V(this, b).get(b);
351
- }, G.prototype.has = function(b) {
352
- return V(this, b).has(b);
353
- }, G.prototype.set = function(b, w) {
354
- return V(this, b).set(b, w), this;
355
- }, de.Cache = G, r.exports = de;
356
- }).call(this, i(3));
357
- }, function(r, f, i) {
358
- (function(o) {
359
- 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() {
360
- return Y.Date.now();
361
- };
362
- function m($) {
363
- var B = typeof $;
364
- return !!$ && (B == "object" || B == "function");
365
- }
366
- function se($) {
367
- if (typeof $ == "number") return $;
368
- if ((function(C) {
369
- return typeof C == "symbol" || /* @__PURE__ */ (function(Q) {
370
- return !!Q && typeof Q == "object";
371
- })(C) && g.call(C) == "[object Symbol]";
372
- })($)) return NaN;
373
- if (m($)) {
374
- var B = typeof $.valueOf == "function" ? $.valueOf() : $;
375
- $ = m(B) ? B + "" : B;
376
- }
377
- if (typeof $ != "string") return $ === 0 ? $ : +$;
378
- $ = $.replace(d, "");
379
- var _ = I.test($);
380
- return _ || N.test($) ? M($.slice(2), _ ? 2 : 8) : v.test($) ? NaN : +$;
381
- }
382
- r.exports = function($, B, _) {
383
- var C, Q, G, J, O, V, xe = 0, de = !1, we = !1, b = !0;
384
- if (typeof $ != "function") throw new TypeError("Expected a function");
385
- function w(h) {
386
- var D = C, K = Q;
387
- return C = Q = void 0, xe = h, J = $.apply(K, D);
388
- }
389
- function p(h) {
390
- return xe = h, O = setTimeout(fe, B), de ? w(h) : J;
391
- }
392
- function x(h) {
393
- var D = h - V;
394
- return V === void 0 || D >= B || D < 0 || we && h - xe >= G;
395
- }
396
- function fe() {
397
- var h = te();
398
- if (x(h)) return ke(h);
399
- O = setTimeout(fe, (function(D) {
400
- var K = B - (D - V);
401
- return we ? P(K, G - (D - xe)) : K;
402
- })(h));
403
- }
404
- function ke(h) {
405
- return O = void 0, b && C ? w(h) : (C = Q = void 0, J);
406
- }
407
- function S() {
408
- var h = te(), D = x(h);
409
- if (C = arguments, Q = this, V = h, D) {
410
- if (O === void 0) return p(V);
411
- if (we) return O = setTimeout(fe, B), w(V);
412
- }
413
- return O === void 0 && (O = setTimeout(fe, B)), J;
414
- }
415
- 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() {
416
- O !== void 0 && clearTimeout(O), xe = 0, C = V = Q = O = void 0;
417
- }, S.flush = function() {
418
- return O === void 0 ? J : ke(te());
419
- }, S;
420
- };
421
- }).call(this, i(3));
422
- }, function(r, f, i) {
423
- (function(o, d) {
424
- 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 = {};
425
- 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;
426
- 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() {
427
- try {
428
- return Q && Q.binding("util");
429
- } catch {
430
- }
431
- })(), J = G && G.isTypedArray;
432
- function O(t, a, s, c) {
433
- var L = -1, F = t ? t.length : 0;
434
- for (c && F && (s = t[++L]); ++L < F; ) s = a(s, t[L], L, t);
435
- return s;
436
- }
437
- function V(t, a) {
438
- for (var s = -1, c = t ? t.length : 0; ++s < c; ) if (a(t[s], s, t)) return !0;
439
- return !1;
440
- }
441
- function xe(t, a, s, c, L) {
442
- return L(t, (function(F, W, Ce) {
443
- s = c ? (c = !1, F) : a(s, F, W, Ce);
444
- })), s;
445
- }
446
- function de(t) {
447
- var a = !1;
448
- if (t != null && typeof t.toString != "function") try {
449
- a = !!(t + "");
450
- } catch {
451
- }
452
- return a;
453
- }
454
- function we(t) {
455
- var a = -1, s = Array(t.size);
456
- return t.forEach((function(c, L) {
457
- s[++a] = [L, c];
458
- })), s;
459
- }
460
- function b(t) {
461
- var a = -1, s = Array(t.size);
462
- return t.forEach((function(c) {
463
- s[++a] = c;
464
- })), s;
465
- }
466
- 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) {
467
- return p(x(t));
468
- }), 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;
469
- function E(t) {
470
- var a = -1, s = t ? t.length : 0;
471
- for (this.clear(); ++a < s; ) {
472
- var c = t[a];
473
- this.set(c[0], c[1]);
474
- }
475
- }
476
- function k(t) {
477
- var a = -1, s = t ? t.length : 0;
478
- for (this.clear(); ++a < s; ) {
479
- var c = t[a];
480
- this.set(c[0], c[1]);
481
- }
482
- }
483
- function ve(t) {
484
- var a = -1, s = t ? t.length : 0;
485
- for (this.clear(); ++a < s; ) {
486
- var c = t[a];
487
- this.set(c[0], c[1]);
488
- }
489
- }
490
- function De(t) {
491
- var a = -1, s = t ? t.length : 0;
492
- for (this.__data__ = new ve(); ++a < s; ) this.add(t[a]);
493
- }
494
- function Ne(t) {
495
- this.__data__ = new k(t);
496
- }
497
- function Fe(t, a) {
498
- var s = Ue(t) || Gt(t) ? (function(W, Ce) {
499
- for (var _e = -1, be = Array(W); ++_e < W; ) be[_e] = Ce(_e);
500
- return be;
501
- })(t.length, String) : [], c = s.length, L = !!c;
502
- for (var F in t) !y.call(t, F) || L && (F == "length" || Vt(F, c)) || s.push(F);
503
- return s;
504
- }
505
- function Pe(t, a) {
506
- for (var s = t.length; s--; ) if (Ut(t[s][0], a)) return s;
507
- return -1;
508
- }
509
- E.prototype.clear = function() {
510
- this.__data__ = j ? j(null) : {};
511
- }, E.prototype.delete = function(t) {
512
- return this.has(t) && delete this.__data__[t];
513
- }, E.prototype.get = function(t) {
514
- var a = this.__data__;
515
- if (j) {
516
- var s = a[t];
517
- return s === "__lodash_hash_undefined__" ? void 0 : s;
518
- }
519
- return y.call(a, t) ? a[t] : void 0;
520
- }, E.prototype.has = function(t) {
521
- var a = this.__data__;
522
- return j ? a[t] !== void 0 : y.call(a, t);
523
- }, E.prototype.set = function(t, a) {
524
- return this.__data__[t] = j && a === void 0 ? "__lodash_hash_undefined__" : a, this;
525
- }, k.prototype.clear = function() {
526
- this.__data__ = [];
527
- }, k.prototype.delete = function(t) {
528
- var a = this.__data__, s = Pe(a, t);
529
- return !(s < 0) && (s == a.length - 1 ? a.pop() : pe.call(a, s, 1), !0);
530
- }, k.prototype.get = function(t) {
531
- var a = this.__data__, s = Pe(a, t);
532
- return s < 0 ? void 0 : a[s][1];
533
- }, k.prototype.has = function(t) {
534
- return Pe(this.__data__, t) > -1;
535
- }, k.prototype.set = function(t, a) {
536
- var s = this.__data__, c = Pe(s, t);
537
- return c < 0 ? s.push([t, a]) : s[c][1] = a, this;
538
- }, ve.prototype.clear = function() {
539
- this.__data__ = { hash: new E(), map: new (je || k)(), string: new E() };
540
- }, ve.prototype.delete = function(t) {
541
- return ft(this, t).delete(t);
542
- }, ve.prototype.get = function(t) {
543
- return ft(this, t).get(t);
544
- }, ve.prototype.has = function(t) {
545
- return ft(this, t).has(t);
546
- }, ve.prototype.set = function(t, a) {
547
- return ft(this, t).set(t, a), this;
548
- }, De.prototype.add = De.prototype.push = function(t) {
549
- return this.__data__.set(t, "__lodash_hash_undefined__"), this;
550
- }, De.prototype.has = function(t) {
551
- return this.__data__.has(t);
552
- }, Ne.prototype.clear = function() {
553
- this.__data__ = new k();
554
- }, Ne.prototype.delete = function(t) {
555
- return this.__data__.delete(t);
556
- }, Ne.prototype.get = function(t) {
557
- return this.__data__.get(t);
558
- }, Ne.prototype.has = function(t) {
559
- return this.__data__.has(t);
560
- }, Ne.prototype.set = function(t, a) {
561
- var s = this.__data__;
562
- if (s instanceof k) {
563
- var c = s.__data__;
564
- if (!je || c.length < 199) return c.push([t, a]), this;
565
- s = this.__data__ = new ve(c);
566
- }
567
- return s.set(t, a), this;
568
- };
569
- var Je, Se = (Je = function(t, a) {
570
- return t && et(t, a, yt);
571
- }, function(t, a) {
572
- if (t == null) return t;
573
- if (!Nt(t)) return Je(t, a);
574
- for (var s = t.length, c = -1, L = Object(t); ++c < s && a(L[c], c, L) !== !1; ) ;
575
- return t;
576
- }), et = /* @__PURE__ */ (function(t) {
577
- return function(a, s, c) {
578
- for (var L = -1, F = Object(a), W = c(a), Ce = W.length; Ce--; ) {
579
- var _e = W[++L];
580
- if (s(F[_e], _e, F) === !1) break;
581
- }
582
- return a;
583
- };
584
- })();
585
- function ot(t, a) {
586
- for (var s = 0, c = (a = pt(a, t) ? [a] : Ht(a)).length; t != null && s < c; ) t = t[ht(a[s++])];
587
- return s && s == c ? t : void 0;
588
- }
589
- function Tt(t, a) {
590
- return t != null && a in Object(t);
591
- }
592
- function it(t, a, s, c, L) {
593
- return t === a || (t == null || a == null || !mt(t) && !bt(a) ? t != t && a != a : (function(F, W, Ce, _e, be, ue) {
594
- var Ae = Ue(F), Me = Ue(W), Te = "[object Array]", Ee = "[object Array]";
595
- Ae || (Te = (Te = qe(F)) == v ? N : Te), Me || (Ee = (Ee = qe(W)) == v ? N : Ee);
596
- var $e = Te == N && !de(F), rt = Ee == N && !de(W), Ge = Te == Ee;
597
- 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) {
598
- switch (Ot) {
599
- case "[object DataView]":
600
- if (ye.byteLength != he.byteLength || ye.byteOffset != he.byteOffset) return !1;
601
- ye = ye.buffer, he = he.buffer;
602
- case "[object ArrayBuffer]":
603
- return !(ye.byteLength != he.byteLength || !Qe(new X(ye), new X(he)));
604
- case "[object Boolean]":
605
- case "[object Date]":
606
- case "[object Number]":
607
- return Ut(+ye, +he);
608
- case "[object Error]":
609
- return ye.name == he.name && ye.message == he.message;
610
- case "[object RegExp]":
611
- case "[object String]":
612
- return ye == he + "";
613
- case I:
614
- var Ke = we;
615
- case M:
616
- var ut = 2 & Le;
617
- if (Ke || (Ke = b), ye.size != he.size && !ut) return !1;
618
- var vt = Ve.get(ye);
619
- if (vt) return vt == he;
620
- Le |= 1, Ve.set(ye, he);
621
- var at = Bt(Ke(ye), Ke(he), Qe, gt, Le, Ve);
622
- return Ve.delete(ye), at;
623
- case "[object Symbol]":
624
- if (A) return A.call(ye) == A.call(he);
625
- }
626
- return !1;
627
- })(F, W, Te, Ce, _e, be, ue);
628
- if (!(2 & be)) {
629
- var Wt = $e && y.call(F, "__wrapped__"), Yt = rt && y.call(W, "__wrapped__");
630
- if (Wt || Yt) {
631
- var mr = Wt ? F.value() : F, br = Yt ? W.value() : W;
632
- return ue || (ue = new Ne()), Ce(mr, br, _e, be, ue);
633
- }
634
- }
635
- return Ge ? (ue || (ue = new Ne()), (function(ye, he, Ot, Qe, gt, Le) {
636
- var Ve = 2 & gt, Ke = yt(ye), ut = Ke.length, vt = yt(he).length;
637
- if (ut != vt && !Ve) return !1;
638
- for (var at = ut; at--; ) {
639
- var We = Ke[at];
640
- if (!(Ve ? We in he : y.call(he, We))) return !1;
641
- }
642
- var Jt = Le.get(ye);
643
- if (Jt && Le.get(he)) return Jt == he;
644
- var Ct = !0;
645
- Le.set(ye, he), Le.set(he, ye);
646
- for (var Dt = Ve; ++at < ut; ) {
647
- We = Ke[at];
648
- var _t = ye[We], xt = he[We];
649
- if (Qe) var Zt = Ve ? Qe(xt, _t, We, he, ye, Le) : Qe(_t, xt, We, ye, he, Le);
650
- if (!(Zt === void 0 ? _t === xt || Ot(_t, xt, Qe, gt, Le) : Zt)) {
651
- Ct = !1;
652
- break;
653
- }
654
- Dt || (Dt = We == "constructor");
655
- }
656
- if (Ct && !Dt) {
657
- var jt = ye.constructor, wt = he.constructor;
658
- jt == wt || !("constructor" in ye) || !("constructor" in he) || typeof jt == "function" && jt instanceof jt && typeof wt == "function" && wt instanceof wt || (Ct = !1);
659
- }
660
- return Le.delete(ye), Le.delete(he), Ct;
661
- })(F, W, Ce, _e, be, ue)) : !1;
662
- })(t, a, it, s, c, L));
663
- }
664
- function st(t) {
665
- return !(!mt(t) || (function(a) {
666
- return !!D && D in a;
667
- })(t)) && (Kt(t) || de(t) ? ne : P).test(Ze(t));
668
- }
669
- function cr(t) {
670
- return typeof t == "function" ? t : t == null ? hr : typeof t == "object" ? Ue(t) ? (function(c, L) {
671
- return pt(c) && zt(L) ? qt(ht(c), L) : function(F) {
672
- var W = (function(Ce, _e, be) {
673
- var ue = Ce == null ? void 0 : ot(Ce, _e);
674
- return ue === void 0 ? be : ue;
675
- })(F, c);
676
- return W === void 0 && W === L ? (function(Ce, _e) {
677
- return Ce != null && (function(be, ue, Ae) {
678
- ue = pt(ue, be) ? [ue] : Ht(ue);
679
- for (var Me, Te = -1, Ee = ue.length; ++Te < Ee; ) {
680
- var $e = ht(ue[Te]);
681
- if (!(Me = be != null && Ae(be, $e))) break;
682
- be = be[$e];
683
- }
684
- return Me || !!(Ee = be ? be.length : 0) && Mt(Ee) && Vt($e, Ee) && (Ue(be) || Gt(be));
685
- })(Ce, _e, Tt);
686
- })(F, c) : it(L, W, void 0, 3);
687
- };
688
- })(t[0], t[1]) : (function(c) {
689
- var L = (function(F) {
690
- for (var W = yt(F), Ce = W.length; Ce--; ) {
691
- var _e = W[Ce], be = F[_e];
692
- W[Ce] = [_e, be, zt(be)];
693
- }
694
- return W;
695
- })(c);
696
- return L.length == 1 && L[0][2] ? qt(L[0][0], L[0][1]) : function(F) {
697
- return F === c || (function(W, Ce, _e, be) {
698
- var ue = _e.length, Ae = ue;
699
- if (W == null) return !Ae;
700
- for (W = Object(W); ue--; ) {
701
- var Me = _e[ue];
702
- if (Me[2] ? Me[1] !== W[Me[0]] : !(Me[0] in W)) return !1;
703
- }
704
- for (; ++ue < Ae; ) {
705
- var Te = (Me = _e[ue])[0], Ee = W[Te], $e = Me[1];
706
- if (Me[2]) {
707
- if (Ee === void 0 && !(Te in W)) return !1;
708
- } else {
709
- var rt = new Ne(), Ge;
710
- if (!(Ge === void 0 ? it($e, Ee, be, 3, rt) : Ge)) return !1;
711
- }
712
- }
713
- return !0;
714
- })(F, c, L);
715
- };
716
- })(t) : pt(a = t) ? (s = ht(a), function(c) {
717
- return c?.[s];
718
- }) : /* @__PURE__ */ (function(c) {
719
- return function(L) {
720
- return ot(L, c);
721
- };
722
- })(a);
723
- var a, s;
724
- }
725
- function dr(t) {
726
- if (s = (a = t) && a.constructor, c = typeof s == "function" && s.prototype || S, a !== c) return me(t);
727
- var a, s, c, L = [];
728
- for (var F in Object(t)) y.call(t, F) && F != "constructor" && L.push(F);
729
- return L;
730
- }
731
- function Ht(t) {
732
- return Ue(t) ? t : fr(t);
733
- }
734
- function Bt(t, a, s, c, L, F) {
735
- var W = 2 & L, Ce = t.length, _e = a.length;
736
- if (Ce != _e && !(W && _e > Ce)) return !1;
737
- var be = F.get(t);
738
- if (be && F.get(a)) return be == a;
739
- var ue = -1, Ae = !0, Me = 1 & L ? new De() : void 0;
740
- for (F.set(t, a), F.set(a, t); ++ue < Ce; ) {
741
- var Te = t[ue], Ee = a[ue];
742
- if (c) var $e = W ? c(Ee, Te, ue, a, t, F) : c(Te, Ee, ue, t, a, F);
743
- if ($e !== void 0) {
744
- if ($e) continue;
745
- Ae = !1;
746
- break;
747
- }
748
- if (Me) {
749
- if (!V(a, (function(rt, Ge) {
750
- if (!Me.has(Ge) && (Te === rt || s(Te, rt, c, L, F))) return Me.add(Ge);
751
- }))) {
752
- Ae = !1;
753
- break;
754
- }
755
- } else if (Te !== Ee && !s(Te, Ee, c, L, F)) {
756
- Ae = !1;
757
- break;
758
- }
759
- }
760
- return F.delete(t), F.delete(a), Ae;
761
- }
762
- function ft(t, a) {
763
- var s, c, L = t.__data__;
764
- return ((c = typeof (s = a)) == "string" || c == "number" || c == "symbol" || c == "boolean" ? s !== "__proto__" : s === null) ? L[typeof a == "string" ? "string" : "hash"] : L.map;
765
- }
766
- function tt(t, a) {
767
- var s = (function(c, L) {
768
- return c?.[L];
769
- })(t, a);
770
- return st(s) ? s : void 0;
771
- }
772
- var qe = function(t) {
773
- return e.call(t);
774
- };
775
- function Vt(t, a) {
776
- return !!(a = a ?? 9007199254740991) && (typeof t == "number" || te.test(t)) && t > -1 && t % 1 == 0 && t < a;
777
- }
778
- function pt(t, a) {
779
- if (Ue(t)) return !1;
780
- var s = typeof t;
781
- return !(s != "number" && s != "symbol" && s != "boolean" && t != null && !kt(t)) || ie.test(t) || !ee.test(t) || a != null && t in Object(a);
782
- }
783
- function zt(t) {
784
- return t == t && !mt(t);
785
- }
786
- function qt(t, a) {
787
- return function(s) {
788
- return s != null && s[t] === a && (a !== void 0 || t in Object(s));
789
- };
790
- }
791
- (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) {
792
- var a = e.call(t), s = a == N ? t.constructor : void 0, c = s ? Ze(s) : void 0;
793
- if (c) switch (c) {
794
- case q:
795
- return "[object DataView]";
796
- case H:
797
- return I;
798
- case U:
799
- return "[object Promise]";
800
- case Z:
801
- return M;
802
- case ce:
803
- return "[object WeakMap]";
804
- }
805
- return a;
806
- });
807
- var fr = Et((function(t) {
808
- var a;
809
- t = (a = t) == null ? "" : (function(c) {
810
- if (typeof c == "string") return c;
811
- if (kt(c)) return ae ? ae.call(c) : "";
812
- var L = c + "";
813
- return L == "0" && 1 / c == -1 / 0 ? "-0" : L;
814
- })(a);
815
- var s = [];
816
- return Y.test(t) && s.push(""), t.replace(g, (function(c, L, F, W) {
817
- s.push(F ? W.replace(R, "$1") : L || c);
818
- })), s;
819
- }));
820
- function ht(t) {
821
- if (typeof t == "string" || kt(t)) return t;
822
- var a = t + "";
823
- return a == "0" && 1 / t == -1 / 0 ? "-0" : a;
824
- }
825
- function Ze(t) {
826
- if (t != null) {
827
- try {
828
- return K.call(t);
829
- } catch {
830
- }
831
- try {
832
- return t + "";
833
- } catch {
834
- }
835
- }
836
- return "";
837
- }
838
- function Et(t, a) {
839
- if (typeof t != "function" || a && typeof a != "function") throw new TypeError("Expected a function");
840
- var s = function() {
841
- var c = arguments, L = a ? a.apply(this, c) : c[0], F = s.cache;
842
- if (F.has(L)) return F.get(L);
843
- var W = t.apply(this, c);
844
- return s.cache = F.set(L, W), W;
845
- };
846
- return s.cache = new (Et.Cache || ve)(), s;
847
- }
848
- function Ut(t, a) {
849
- return t === a || t != t && a != a;
850
- }
851
- function Gt(t) {
852
- return (function(a) {
853
- return bt(a) && Nt(a);
854
- })(t) && y.call(t, "callee") && (!le.call(t, "callee") || e.call(t) == v);
855
- }
856
- Et.Cache = ve;
857
- var Ue = Array.isArray;
858
- function Nt(t) {
859
- return t != null && Mt(t.length) && !Kt(t);
860
- }
861
- function Kt(t) {
862
- var a = mt(t) ? e.call(t) : "";
863
- return a == "[object Function]" || a == "[object GeneratorFunction]";
864
- }
865
- function Mt(t) {
866
- return typeof t == "number" && t > -1 && t % 1 == 0 && t <= 9007199254740991;
867
- }
868
- function mt(t) {
869
- var a = typeof t;
870
- return !!t && (a == "object" || a == "function");
871
- }
872
- function bt(t) {
873
- return !!t && typeof t == "object";
874
- }
875
- function kt(t) {
876
- return typeof t == "symbol" || bt(t) && e.call(t) == "[object Symbol]";
877
- }
878
- var pr = J ? /* @__PURE__ */ (function(t) {
879
- return function(a) {
880
- return t(a);
881
- };
882
- })(J) : function(t) {
883
- return bt(t) && Mt(t.length) && !!m[e.call(t)];
884
- };
885
- function yt(t) {
886
- return Nt(t) ? Fe(t) : dr(t);
887
- }
888
- function hr(t) {
889
- return t;
890
- }
891
- d.exports = function(t, a, s) {
892
- var c = Ue(t) ? O : xe, L = arguments.length < 3;
893
- return c(t, cr(a), s, L, Se);
894
- };
895
- }).call(this, i(3), i(7)(r));
896
- }, function(r, f) {
897
- r.exports = function(i) {
898
- return i.webpackPolyfill || (i.deprecate = function() {
899
- }, i.paths = [], i.children || (i.children = []), Object.defineProperty(i, "loaded", { enumerable: !0, get: function() {
900
- return i.l;
901
- } }), Object.defineProperty(i, "id", { enumerable: !0, get: function() {
902
- return i.i;
903
- } }), i.webpackPolyfill = 1), i;
904
- };
905
- }, function(r, f) {
906
- String.prototype.padEnd || (String.prototype.padEnd = function(i, o) {
907
- 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));
908
- });
909
- }, function(r, f, i) {
910
- function o(S, h, D) {
911
- return h in S ? Object.defineProperty(S, h, { value: D, enumerable: !0, configurable: !0, writable: !0 }) : S[h] = D, S;
912
- }
913
- function d(S) {
914
- if (Symbol.iterator in Object(S) || Object.prototype.toString.call(S) === "[object Arguments]") return Array.from(S);
915
- }
916
- function v(S) {
917
- return (function(h) {
918
- if (Array.isArray(h)) {
919
- for (var D = 0, K = new Array(h.length); D < h.length; D++) K[D] = h[D];
920
- return K;
921
- }
922
- })(S) || d(S) || (function() {
923
- throw new TypeError("Invalid attempt to spread non-iterable instance");
924
- })();
925
- }
926
- function I(S) {
927
- if (Array.isArray(S)) return S;
928
- }
929
- function N() {
930
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
931
- }
932
- function M(S, h) {
933
- if (!(S instanceof h)) throw new TypeError("Cannot call a class as a function");
934
- }
935
- function ee(S, h) {
936
- for (var D = 0; D < h.length; D++) {
937
- var K = h[D];
938
- K.enumerable = K.enumerable || !1, K.configurable = !0, "value" in K && (K.writable = !0), Object.defineProperty(S, K.key, K);
939
- }
940
- }
941
- function ie(S) {
942
- return (ie = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(h) {
943
- return typeof h;
944
- } : function(h) {
945
- return h && typeof Symbol == "function" && h.constructor === Symbol && h !== Symbol.prototype ? "symbol" : typeof h;
946
- })(S);
947
- }
948
- function Y(S) {
949
- return (Y = typeof Symbol == "function" && ie(Symbol.iterator) === "symbol" ? function(h) {
950
- return ie(h);
951
- } : function(h) {
952
- return h && typeof Symbol == "function" && h.constructor === Symbol && h !== Symbol.prototype ? "symbol" : ie(h);
953
- })(S);
954
- }
955
- function g(S) {
956
- if (S === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
957
- return S;
958
- }
959
- function R(S) {
960
- return (R = Object.setPrototypeOf ? Object.getPrototypeOf : function(h) {
961
- return h.__proto__ || Object.getPrototypeOf(h);
962
- })(S);
963
- }
964
- function P(S, h) {
965
- return (P = Object.setPrototypeOf || function(D, K) {
966
- return D.__proto__ = K, D;
967
- })(S, h);
968
- }
969
- i.r(f);
970
- 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);
971
- i(8);
972
- function xe(S, h) {
973
- return I(S) || (function(D, K) {
974
- var y = [], e = !0, ne = !1, re = void 0;
975
- try {
976
- for (var X, le = D[Symbol.iterator](); !(e = (X = le.next()).done) && (y.push(X.value), !K || y.length !== K); e = !0) ;
977
- } catch (pe) {
978
- ne = !0, re = pe;
979
- } finally {
980
- try {
981
- e || le.return == null || le.return();
982
- } finally {
983
- if (ne) throw re;
984
- }
985
- }
986
- return y;
987
- })(S, h) || N();
988
- }
989
- 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"]];
990
- function b(S, h, D, K, y) {
991
- return !D || y ? S + "".padEnd(h.length, ".") + " " + K : S + "".padEnd(h.length, ".") + " " + D;
992
- }
993
- function w(S, h, D, K, y) {
994
- var e, ne, re = [];
995
- return ne = h === !0, [(e = []).concat.apply(e, v(S.map((function(X) {
996
- 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 = [];
997
- return X[6] && X[6].map((function(me) {
998
- var oe = (function(je) {
999
- for (var z = 1; z < arguments.length; z++) {
1000
- var n = arguments[z] != null ? arguments[z] : {}, u = Object.keys(n);
1001
- typeof Object.getOwnPropertySymbols == "function" && (u = u.concat(Object.getOwnPropertySymbols(n).filter((function(j) {
1002
- return Object.getOwnPropertyDescriptor(n, j).enumerable;
1003
- })))), u.forEach((function(j) {
1004
- o(je, j, n[j]);
1005
- }));
1006
- }
1007
- return je;
1008
- })({}, le);
1009
- oe.dialCode = X[3] + me, oe.isAreaCode = !0, oe.areaCodeLength = me.length, pe.push(oe);
1010
- })), 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];
1011
- })))), re];
1012
- }
1013
- function p(S, h, D, K) {
1014
- if (D !== null) {
1015
- var y = Object.keys(D), e = Object.values(D);
1016
- y.forEach((function(ne, re) {
1017
- if (K) return S.push([ne, e[re]]);
1018
- var X = S.findIndex((function(pe) {
1019
- return pe[0] === ne;
1020
- }));
1021
- if (X === -1) {
1022
- var le = [ne];
1023
- le[h] = e[re], S.push(le);
1024
- } else S[X][h] = e[re];
1025
- }));
1026
- }
1027
- }
1028
- function x(S, h) {
1029
- return h.length === 0 ? S : S.map((function(D) {
1030
- var K = h.findIndex((function(e) {
1031
- return e[0] === D[2];
1032
- }));
1033
- if (K === -1) return D;
1034
- var y = h[K];
1035
- return y[1] && (D[4] = y[1]), y[3] && (D[5] = y[3]), y[2] && (D[6] = y[2]), D;
1036
- }));
1037
- }
1038
- var fe = function S(h, D, K, y, e, ne, re, X, le, pe, me, oe, je, z) {
1039
- M(this, S), this.filterRegions = function(T, A) {
1040
- if (typeof T == "string") {
1041
- var ae = T;
1042
- return A.filter((function(E) {
1043
- return E.regions.some((function(k) {
1044
- return k === ae;
1045
- }));
1046
- }));
1047
- }
1048
- return A.filter((function(E) {
1049
- return T.map((function(k) {
1050
- return E.regions.some((function(ve) {
1051
- return ve === k;
1052
- }));
1053
- })).some((function(k) {
1054
- return k;
1055
- }));
1056
- }));
1057
- }, this.sortTerritories = function(T, A) {
1058
- var ae = [].concat(v(T), v(A));
1059
- return ae.sort((function(E, k) {
1060
- return E.name < k.name ? -1 : E.name > k.name ? 1 : 0;
1061
- })), ae;
1062
- }, this.getFilteredCountryList = function(T, A, ae) {
1063
- return T.length === 0 ? A : ae ? T.map((function(E) {
1064
- var k = A.find((function(ve) {
1065
- return ve.iso2 === E;
1066
- }));
1067
- if (k) return k;
1068
- })).filter((function(E) {
1069
- return E;
1070
- })) : A.filter((function(E) {
1071
- return T.some((function(k) {
1072
- return k === E.iso2;
1073
- }));
1074
- }));
1075
- }, this.localizeCountries = function(T, A, ae) {
1076
- 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]);
1077
- return ae || T.sort((function(k, ve) {
1078
- return k.localName < ve.localName ? -1 : k.localName > ve.localName ? 1 : 0;
1079
- })), T;
1080
- }, this.getCustomAreas = function(T, A) {
1081
- for (var ae = [], E = 0; E < A.length; E++) {
1082
- var k = JSON.parse(JSON.stringify(T));
1083
- k.dialCode += A[E], ae.push(k);
1084
- }
1085
- return ae;
1086
- }, this.excludeCountries = function(T, A) {
1087
- return A.length === 0 ? T : T.filter((function(ae) {
1088
- return !A.includes(ae.iso2);
1089
- }));
1090
- };
1091
- var n = (function(T, A, ae) {
1092
- var E = [];
1093
- return p(E, 1, T, !0), p(E, 3, A), p(E, 2, ae), E;
1094
- })(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];
1095
- if (D) {
1096
- var Z = xe(w(j, h, oe, je, z), 2), ce = Z[0];
1097
- Z[1], H = this.sortTerritories(ce, H);
1098
- }
1099
- 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);
1100
- }, ke = (function(S) {
1101
- function h(y) {
1102
- var e;
1103
- M(this, h), (e = (function(n, u) {
1104
- return !u || Y(u) !== "object" && typeof u != "function" ? g(n) : u;
1105
- })(this, R(h).call(this, y))).getProbableCandidate = _()((function(n) {
1106
- return n && n.length !== 0 ? e.state.onlyCountries.filter((function(u) {
1107
- return J()(u.name.toLowerCase(), n.toLowerCase());
1108
- }), g(g(e)))[0] : null;
1109
- })), e.guessSelectedCountry = _()((function(n, u, j, q) {
1110
- var H;
1111
- if (e.props.enableAreaCodes === !1 && (q.some((function(ce) {
1112
- if (J()(n, ce.dialCode)) return j.some((function(T) {
1113
- if (ce.iso2 === T.iso2 && T.mainCode) return H = T, !0;
1114
- })), !0;
1115
- })), H)) return H;
1116
- var U = j.find((function(ce) {
1117
- return ce.iso2 == u;
1118
- }));
1119
- if (n.trim() === "") return U;
1120
- var Z = j.reduce((function(ce, T) {
1121
- return J()(n, T.dialCode) && (T.dialCode.length > ce.dialCode.length || T.dialCode.length === ce.dialCode.length && T.priority < ce.priority) ? T : ce;
1122
- }), { dialCode: "", priority: 10001 }, g(g(e)));
1123
- return Z.name ? Z : U;
1124
- })), e.updateCountry = function(n) {
1125
- var u, j = e.state.onlyCountries;
1126
- (u = n.indexOf(0) >= "0" && n.indexOf(0) <= "9" ? j.find((function(q) {
1127
- return q.dialCode == +n;
1128
- })) : j.find((function(q) {
1129
- return q.iso2 == n;
1130
- }))) && u.dialCode && e.setState({ selectedCountry: u, formattedNumber: e.props.disableCountryCode ? "" : e.formatNumber(u.dialCode, u) });
1131
- }, e.scrollTo = function(n, u) {
1132
- if (n) {
1133
- var j = e.dropdownRef;
1134
- if (j && document.body) {
1135
- 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;
1136
- if (e.props.enableSearch ? A < H + 32 : A < H) u && (E -= k), j.scrollTop = E;
1137
- else if (ae > U) {
1138
- u && (E += k);
1139
- var ve = q - T;
1140
- j.scrollTop = E - ve;
1141
- }
1142
- }
1143
- }
1144
- }, e.scrollToTop = function() {
1145
- var n = e.dropdownRef;
1146
- n && document.body && (n.scrollTop = 0);
1147
- }, e.formatNumber = function(n, u) {
1148
- if (!u) return n;
1149
- var j, q = u.format, H = e.props, U = H.disableCountryCode, Z = H.enableAreaCodeStretch, ce = H.enableLongNumbers, T = H.autoFormat;
1150
- 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;
1151
- if (n && n.length < 2 || !j || !T) return U ? n : e.props.prefix + n;
1152
- var A, ae = Q()(j, (function(E, k) {
1153
- if (E.remainingText.length === 0) return E;
1154
- if (k !== ".") return { formattedText: E.formattedText + k, remainingText: E.remainingText };
1155
- var ve, De = I(ve = E.remainingText) || d(ve) || N(), Ne = De[0], Fe = De.slice(1);
1156
- return { formattedText: E.formattedText + Ne, remainingText: Fe };
1157
- }), { formattedText: "", remainingText: n.split("") });
1158
- return (A = ce ? ae.formattedText + ae.remainingText.join("") : ae.formattedText).includes("(") && !A.includes(")") && (A += ")"), A;
1159
- }, e.cursorToEnd = function() {
1160
- var n = e.numberInputRef;
1161
- if (document.activeElement === n) {
1162
- n.focus();
1163
- var u = n.value.length;
1164
- n.value.charAt(u - 1) === ")" && (u -= 1), n.setSelectionRange(u, u);
1165
- }
1166
- }, e.getElement = function(n) {
1167
- return e["flag_no_".concat(n)];
1168
- }, e.getCountryData = function() {
1169
- return e.state.selectedCountry ? { name: e.state.selectedCountry.name || "", dialCode: e.state.selectedCountry.dialCode || "", countryCode: e.state.selectedCountry.iso2 || "", format: e.state.selectedCountry.format || "" } : {};
1170
- }, e.handleFlagDropdownClick = function(n) {
1171
- if (n.preventDefault(), e.state.showDropdown || !e.props.disabled) {
1172
- var u = e.state, j = u.preferredCountries, q = u.onlyCountries, H = u.selectedCountry, U = e.concatPreferredCountries(j, q).findIndex((function(Z) {
1173
- return Z.dialCode === H.dialCode && Z.iso2 === H.iso2;
1174
- }));
1175
- e.setState({ showDropdown: !e.state.showDropdown, highlightCountryIndex: U }, (function() {
1176
- e.state.showDropdown && e.scrollTo(e.getElement(e.state.highlightCountryIndex));
1177
- }));
1178
- }
1179
- }, e.handleInput = function(n) {
1180
- 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;
1181
- if (!e.props.countryCodeEditable) {
1182
- var T = q + (Z.hasAreaCodes ? e.state.onlyCountries.find((function(Se) {
1183
- return Se.iso2 === Z.iso2 && Se.mainCode;
1184
- })).dialCode : Z.dialCode);
1185
- if (u.slice(0, T.length) !== T) return;
1186
- }
1187
- if (u === q) return H && H("", e.getCountryData(), n, ""), e.setState({ formattedNumber: "" });
1188
- 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) {
1189
- n.preventDefault ? n.preventDefault() : n.returnValue = !1;
1190
- var A = e.props.country, ae = e.state, E = ae.onlyCountries, k = ae.selectedCountry, ve = ae.hiddenAreaCodes;
1191
- if (H && n.persist(), u.length > 0) {
1192
- var De = u.replace(/\D/g, "");
1193
- (!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;
1194
- }
1195
- var Ne = n.target.selectionStart, Fe = n.target.selectionStart, Pe = e.state.formattedNumber, Je = U.length - Pe.length;
1196
- e.setState({ formattedNumber: U, freezeSelection: ce, selectedCountry: Z }, (function() {
1197
- 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);
1198
- }));
1199
- }
1200
- }, e.handleInputClick = function(n) {
1201
- e.setState({ showDropdown: !1 }), e.props.onClick && e.props.onClick(n, e.getCountryData());
1202
- }, e.handleDoubleClick = function(n) {
1203
- var u = n.target.value.length;
1204
- n.target.setSelectionRange(0, u);
1205
- }, e.handleFlagItemClick = function(n, u) {
1206
- var j = e.state.selectedCountry, q = e.state.onlyCountries.find((function(ce) {
1207
- return ce == n;
1208
- }));
1209
- if (q) {
1210
- 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);
1211
- e.setState({ showDropdown: !1, selectedCountry: q, freezeSelection: !0, formattedNumber: Z, searchValue: "" }, (function() {
1212
- e.cursorToEnd(), e.props.onChange && e.props.onChange(Z.replace(/[^0-9]+/g, ""), e.getCountryData(), u, Z);
1213
- }));
1214
- }
1215
- }, e.handleInputFocus = function(n) {
1216
- 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() {
1217
- e.props.jumpCursorToEnd && setTimeout(e.cursorToEnd, 0);
1218
- })), e.setState({ placeholder: "" }), e.props.onFocus && e.props.onFocus(n, e.getCountryData()), e.props.jumpCursorToEnd && setTimeout(e.cursorToEnd, 0);
1219
- }, e.handleInputBlur = function(n) {
1220
- n.target.value || e.setState({ placeholder: e.props.placeholder }), e.props.onBlur && e.props.onBlur(n, e.getCountryData());
1221
- }, e.handleInputCopy = function(n) {
1222
- if (e.props.copyNumbersOnly) {
1223
- var u = window.getSelection().toString().replace(/[^0-9]+/g, "");
1224
- n.clipboardData.setData("text/plain", u), n.preventDefault();
1225
- }
1226
- }, e.getHighlightCountryIndex = function(n) {
1227
- var u = e.state.highlightCountryIndex + n;
1228
- return u < 0 || u >= e.state.onlyCountries.length + e.state.preferredCountries.length ? u - n : e.props.enableSearch && u > e.getSearchFilteredCountries().length ? 0 : u;
1229
- }, e.searchCountry = function() {
1230
- var n = e.getProbableCandidate(e.state.queryString) || e.state.onlyCountries[0], u = e.state.onlyCountries.findIndex((function(j) {
1231
- return j == n;
1232
- })) + e.state.preferredCountries.length;
1233
- e.scrollTo(e.getElement(u), !0), e.setState({ queryString: "", highlightCountryIndex: u });
1234
- }, e.handleKeydown = function(n) {
1235
- var u = e.props.keys, j = n.target.className;
1236
- if (j.includes("selected-flag") && n.which === u.ENTER && !e.state.showDropdown) return e.handleFlagDropdownClick(n);
1237
- if (j.includes("form-control") && (n.which === u.ENTER || n.which === u.ESC)) return n.target.blur();
1238
- 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 === "")) {
1239
- n.preventDefault ? n.preventDefault() : n.returnValue = !1;
1240
- var q = function(H) {
1241
- e.setState({ highlightCountryIndex: e.getHighlightCountryIndex(H) }, (function() {
1242
- e.scrollTo(e.getElement(e.state.highlightCountryIndex), !0);
1243
- }));
1244
- };
1245
- switch (n.which) {
1246
- case u.DOWN:
1247
- q(1);
1248
- break;
1249
- case u.UP:
1250
- q(-1);
1251
- break;
1252
- case u.ENTER:
1253
- 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);
1254
- break;
1255
- case u.ESC:
1256
- case u.TAB:
1257
- e.setState({ showDropdown: !1 }, e.cursorToEnd);
1258
- break;
1259
- default:
1260
- (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);
1261
- }
1262
- }
1263
- }, e.handleInputKeyDown = function(n) {
1264
- var u = e.props, j = u.keys, q = u.onEnterKeyPress, H = u.onKeyDown;
1265
- n.which === j.ENTER && q && q(n), H && H(n);
1266
- }, e.handleClickOutside = function(n) {
1267
- e.dropdownRef && !e.dropdownContainerRef.contains(n.target) && e.state.showDropdown && e.setState({ showDropdown: !1 });
1268
- }, e.handleSearchChange = function(n) {
1269
- var u = n.currentTarget.value, j = e.state, q = j.preferredCountries, H = j.selectedCountry, U = 0;
1270
- if (u === "" && H) {
1271
- var Z = e.state.onlyCountries;
1272
- U = e.concatPreferredCountries(q, Z).findIndex((function(ce) {
1273
- return ce == H;
1274
- })), setTimeout((function() {
1275
- return e.scrollTo(e.getElement(U));
1276
- }), 100);
1277
- }
1278
- e.setState({ searchValue: u, highlightCountryIndex: U });
1279
- }, e.concatPreferredCountries = function(n, u) {
1280
- return n.length > 0 ? v(new Set(n.concat(u))) : u;
1281
- }, e.getDropdownCountryName = function(n) {
1282
- return n.localName || n.name;
1283
- }, e.getSearchFilteredCountries = function() {
1284
- 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("+", "");
1285
- if (H && Z) {
1286
- if (/^\d+$/.test(Z)) return U.filter((function(A) {
1287
- var ae = A.dialCode;
1288
- return ["".concat(ae)].some((function(E) {
1289
- return E.toLowerCase().includes(Z);
1290
- }));
1291
- }));
1292
- var ce = U.filter((function(A) {
1293
- var ae = A.iso2;
1294
- return ["".concat(ae)].some((function(E) {
1295
- return E.toLowerCase().includes(Z);
1296
- }));
1297
- })), T = U.filter((function(A) {
1298
- var ae = A.name, E = A.localName;
1299
- return A.iso2, ["".concat(ae), "".concat(E || "")].some((function(k) {
1300
- return k.toLowerCase().includes(Z);
1301
- }));
1302
- }));
1303
- return e.scrollToTop(), v(new Set([].concat(ce, T)));
1304
- }
1305
- return U;
1306
- }, e.getCountryDropdownList = function() {
1307
- 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) {
1308
- 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);
1309
- return m.a.createElement("li", Object.assign({ ref: function(st) {
1310
- return e["flag_no_".concat(et)] = st;
1311
- }, 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) {
1312
- return e.handleFlagItemClick(Se, st);
1313
- }, 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));
1314
- })), Pe = m.a.createElement("li", { key: "dashes", className: "divider" });
1315
- u.length > 0 && (!A || A && !H.trim()) && Fe.splice(u.length, 0, Pe);
1316
- var Je = V()(o({ "country-list": !0, hide: !q }, e.props.dropdownClass, !0));
1317
- return m.a.createElement("ul", { ref: function(Se) {
1318
- return !A && Se && Se.focus(), e.dropdownRef = Se;
1319
- }, 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)));
1320
- };
1321
- 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, "") : "";
1322
- ne = y.disableInitialCountryGuess ? 0 : me.length > 1 ? e.guessSelectedCountry(me.substring(0, 6), y.country, X, pe) || 0 : y.country && X.find((function(n) {
1323
- return n.iso2 == y.country;
1324
- })) || 0;
1325
- var oe, je = me.length < 2 && ne && !J()(me, ne.dialCode) ? ne.dialCode : "";
1326
- oe = me === "" && ne === 0 ? "" : e.formatNumber((y.disableCountryCode ? "" : je) + me, ne.name ? ne : void 0);
1327
- var z = X.findIndex((function(n) {
1328
- return n == ne;
1329
- }));
1330
- 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;
1331
- }
1332
- var D, K;
1333
- return (function(y, e) {
1334
- if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
1335
- y.prototype = Object.create(e && e.prototype, { constructor: { value: y, writable: !0, configurable: !0 } }), e && P(y, e);
1336
- })(h, S), D = h, (K = [{ key: "componentDidMount", value: function() {
1337
- 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);
1338
- } }, { key: "componentWillUnmount", value: function() {
1339
- document.removeEventListener && this.props.enableClickOutside && document.removeEventListener("mousedown", this.handleClickOutside);
1340
- } }, { key: "componentDidUpdate", value: function(y, e, ne) {
1341
- y.country !== this.props.country ? this.updateCountry(this.props.country) : y.value !== this.props.value && this.updateFormattedNumber(this.props.value);
1342
- } }, { key: "updateFormattedNumber", value: function(y) {
1343
- if (y === null) return this.setState({ selectedCountry: 0, formattedNumber: "" });
1344
- var e = this.state, ne = e.onlyCountries, re = e.selectedCountry, X = e.hiddenAreaCodes, le = this.props, pe = le.country, me = le.prefix;
1345
- if (y === "") return this.setState({ selectedCountry: re, formattedNumber: "" });
1346
- var oe, je, z = y.replace(/\D/g, "");
1347
- if (re && J()(y, me + re.dialCode)) je = this.formatNumber(z, re), this.setState({ formattedNumber: je });
1348
- else {
1349
- var n = (oe = this.props.disableCountryGuess ? re : this.guessSelectedCountry(z.substring(0, 6), pe, ne, X) || re) && J()(z, me + oe.dialCode) ? oe.dialCode : "";
1350
- je = this.formatNumber((this.props.disableCountryCode ? "" : n) + z, oe || void 0), this.setState({ selectedCountry: oe, formattedNumber: je });
1351
- }
1352
- } }, { key: "render", value: function() {
1353
- 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;
1354
- if (typeof j == "boolean") e = j;
1355
- else {
1356
- var U = j(oe.replace(/\D/g, ""), pe, le, je);
1357
- typeof U == "boolean" ? (e = U) === !1 && (ne = q) : (e = !1, ne = U);
1358
- }
1359
- 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);
1360
- 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) {
1361
- 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);
1362
- } })), m.a.createElement("div", { className: ae, style: this.props.buttonStyle, ref: function(k) {
1363
- return re.dropdownContainerRef = k;
1364
- } }, 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()));
1365
- } }]) && ee(D.prototype, K), h;
1366
- })(m.a.Component);
1367
- 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;
1368
- }])), At;
1369
- }
1370
- var Or = kr();
1371
- const Dr = /* @__PURE__ */ yr(Or), Lr = ({
1372
- value: r,
1373
- isErrored: f,
1374
- onChange: i,
1375
- explanation: o,
1376
- onCarrierConsentChange: d,
1377
- // eslint-disable-next-line
1378
- intl: v,
1379
- // deprecated
1380
- isRequired: I = !1,
1381
- onKeyDown: N = void 0,
1382
- placeholder: M = "",
1383
- displaySmsConsent: ee = !0,
1384
- // eslint-disable-next-line
1385
- requireCarrierConsent: ie = !1,
1386
- // deprecated
1387
- carrierConsent: Y = !1,
1388
- // eslint-disable-next-line
1389
- internationalSupport: g = !1,
1390
- // deprecated
1391
- selectedCountryCode: R = "us",
1392
- disabled: P = !1,
1393
- label: te
1394
- }) => {
1395
- const [m, se] = Be.useState(""), $ = () => I ? "" : /* @__PURE__ */ l.jsx(
1396
- ge,
1397
- {
1398
- id: "phoneNumberExplanation",
1399
- defaultMessage: "Optional - get text notifications of status updates"
1400
- }
1401
- ), B = Re.useRef(null), _ = "sid-phone-number-error", C = (G, J) => {
1402
- m || se(J.dialCode), G.slice(m.length) ? i(`+${G}`) : i("");
1403
- };
1404
- return Re.useEffect(() => {
1405
- B.current && $t("phoneNumber", B.current);
1406
- }), It("phoneNumber")?.hidden ? null : /* @__PURE__ */ l.jsxs("div", { className: "sid-field sid-phone-number", children: [
1407
- /* @__PURE__ */ l.jsx("div", { className: "sid-l-space-top-md" }),
1408
- /* @__PURE__ */ l.jsx(
1409
- sr,
1410
- {
1411
- text: te || /* @__PURE__ */ l.jsx(ge, { id: "phoneNumber", defaultMessage: "Mobile Number" }),
1412
- htmlForLabel: "sid-phone-number",
1413
- id: "sid-phone-number-label",
1414
- displayClasses: `sid-field__label-with-explanation${M && "sid-h-screen-reader-only"}`,
1415
- isRequired: I,
1416
- children: o || $()
1417
- }
1418
- ),
1419
- /* @__PURE__ */ l.jsx(
1420
- Dr,
1421
- {
1422
- country: R.toLowerCase(),
1423
- containerClass: "react-tel-input sid-phone-number__wrapper",
1424
- 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" : ""}`,
1425
- autoFormat: !1,
1426
- value: r || `${m}`,
1427
- onChange: (G, J) => C(G, J),
1428
- placeholder: M,
1429
- ref: B,
1430
- inputProps: {
1431
- id: "sid-phone-number",
1432
- name: "sid-phone-number",
1433
- onKeyDown: (G) => N ? N(G) : void 0,
1434
- "data-testid": "phone-number-input"
1435
- },
1436
- "aria-labelledby": "sid-phone-number-label",
1437
- "aria-describedby": f ? _ : "",
1438
- "aria-invalid": f,
1439
- countryCodeEditable: !1,
1440
- disabled: P,
1441
- disableCountryGuess: !0
1442
- }
1443
- ),
1444
- f && /* @__PURE__ */ l.jsx("div", { className: "sid-field-error", id: _, children: /* @__PURE__ */ l.jsx(
1445
- ge,
1446
- {
1447
- id: "errorId.invalidPhoneNumber",
1448
- defaultMessage: "Invalid mobile number"
1449
- }
1450
- ) }),
1451
- ee && /* @__PURE__ */ l.jsx("div", { className: "sid-h-small-text sid-l-space-top-md sid-sms-consent", children: /* @__PURE__ */ l.jsx(
1452
- ge,
1453
- {
1454
- id: "phoneNumberWarnMessage1",
1455
- 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."
1456
- }
1457
- ) }),
1458
- 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: [
1459
- /* @__PURE__ */ l.jsx(
1460
- Pt,
1461
- {
1462
- id: "carrier-consent",
1463
- ariaDescribedBy: _,
1464
- isErrored: !!f,
1465
- value: Y,
1466
- onChange: (G) => d && d(G)
1467
- }
1468
- ),
1469
- /* @__PURE__ */ l.jsx("div", { className: "sid-field__label sid-checkbox__label", children: /* @__PURE__ */ l.jsx(
1470
- ge,
1471
- {
1472
- id: "phoneNumberWarnMessage2",
1473
- 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."
1474
- }
1475
- ) })
1476
- ] }) }) })
1477
- ] });
1478
- }, oa = dt(Lr);
1479
- function Fr({
1480
- title: r,
1481
- titleId: f,
1482
- ...i
1483
- }, o) {
1484
- return /* @__PURE__ */ Re.createElement("svg", Object.assign({
1485
- xmlns: "http://www.w3.org/2000/svg",
1486
- fill: "none",
1487
- viewBox: "0 0 24 24",
1488
- strokeWidth: 1.5,
1489
- stroke: "currentColor",
1490
- "aria-hidden": "true",
1491
- "data-slot": "icon",
1492
- ref: o,
1493
- "aria-labelledby": f
1494
- }, i), r ? /* @__PURE__ */ Re.createElement("title", {
1495
- id: f
1496
- }, r) : null, /* @__PURE__ */ Re.createElement("path", {
1497
- strokeLinecap: "round",
1498
- strokeLinejoin: "round",
1499
- d: "M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"
1500
- }));
1501
- }
1502
- const Ar = /* @__PURE__ */ Re.forwardRef(Fr), $r = ({
1503
- value: r,
1504
- isErrored: f,
1505
- onChange: i,
1506
- intl: o,
1507
- placeholder: d = "",
1508
- disabled: v = !1
1509
- }) => It("firstName")?.hidden ? null : /* @__PURE__ */ l.jsx(
1510
- Rt,
1511
- {
1512
- fieldId: "firstName",
1513
- autoComplete: "given-name",
1514
- value: r,
1515
- onChange: i,
1516
- placeholder: d || o.formatHTMLMessage({ id: "firstNamePlaceholder", defaultMessage: "First Name" }),
1517
- label: /* @__PURE__ */ l.jsx(ge, { id: "firstName", defaultMessage: "First name" }),
1518
- errorMessage: f && /* @__PURE__ */ l.jsx(ge, { id: "errorId.invalidFirstName", defaultMessage: "Invalid first name" }),
1519
- showPlaceholderAndHideLabel: !!d,
1520
- disabled: v
1521
- }
1522
- ), ia = dt($r), Rr = ({
1523
- value: r,
1524
- isErrored: f,
1525
- onChange: i,
1526
- intl: o,
1527
- placeholder: d = "",
1528
- disabled: v = !1
1529
- }) => It("lastName")?.hidden ? null : /* @__PURE__ */ l.jsx(
1530
- Rt,
1531
- {
1532
- fieldId: "lastName",
1533
- autoComplete: "family-name",
1534
- value: r,
1535
- onChange: i,
1536
- placeholder: d || o.formatHTMLMessage({ id: "lastNamePlaceholder", defaultMessage: "Last Name" }),
1537
- label: /* @__PURE__ */ l.jsx(ge, { id: "lastName", defaultMessage: "Last name" }),
1538
- errorMessage: f && /* @__PURE__ */ l.jsx(ge, { id: "errorId.invalidLastName", defaultMessage: "Invalid last name" }),
1539
- showPlaceholderAndHideLabel: !!d,
1540
- disabled: v
1541
- }
1542
- ), sa = dt(Rr), Ye = (r) => {
1543
- if (r)
1544
- return r < 10 ? `0${r}` : r.toString();
1545
- };
1546
- function Pr(r) {
1547
- const i = new Date(2222, 0, 3);
1548
- try {
1549
- return new Intl.DateTimeFormat(r).format(i).replace("0", "").startsWith("3");
1550
- } catch {
1551
- return !1;
1552
- }
1553
- }
1554
- const Hr = ({
1555
- onChange: r,
1556
- intl: f,
1557
- isErrored: i,
1558
- isRequired: o = !0,
1559
- value: d = "2000-01-01",
1560
- errorMsg: v,
1561
- label: I,
1562
- explanation: N,
1563
- fieldName: M,
1564
- fieldId: ee,
1565
- mode: ie = "date",
1566
- locale: Y = gr,
1567
- disabled: g = !1,
1568
- autoComplete: R
1569
- }) => {
1570
- 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, _ = [
1571
- { value: "1", label: f.formatHTMLMessage({ id: "dateTime.january", defaultMessage: "January" }) },
1572
- { value: "2", label: f.formatHTMLMessage({ id: "dateTime.february", defaultMessage: "February" }) },
1573
- { value: "3", label: f.formatHTMLMessage({ id: "dateTime.march", defaultMessage: "March" }) },
1574
- { value: "4", label: f.formatHTMLMessage({ id: "dateTime.april", defaultMessage: "April" }) },
1575
- { value: "5", label: f.formatHTMLMessage({ id: "dateTime.may", defaultMessage: "May" }) },
1576
- { value: "6", label: f.formatHTMLMessage({ id: "dateTime.june", defaultMessage: "June" }) },
1577
- { value: "7", label: f.formatHTMLMessage({ id: "dateTime.july", defaultMessage: "July" }) },
1578
- { value: "8", label: f.formatHTMLMessage({ id: "dateTime.august", defaultMessage: "August" }) },
1579
- { value: "9", label: f.formatHTMLMessage({ id: "dateTime.september", defaultMessage: "September" }) },
1580
- { value: "10", label: f.formatHTMLMessage({ id: "dateTime.october", defaultMessage: "October" }) },
1581
- { value: "11", label: f.formatHTMLMessage({ id: "dateTime.november", defaultMessage: "November" }) },
1582
- { value: "12", label: f.formatHTMLMessage({ id: "dateTime.december", defaultMessage: "December" }) }
1583
- ], C = (p, x, fe) => (!fe || fe === "") && (!x || x === "") && (!p || p === ""), Q = (p) => {
1584
- if (C(se, p, B)) {
1585
- r("");
1586
- return;
1587
- }
1588
- (p === "" || p === null) && r(`${se}--${B}`);
1589
- const x = Number.parseInt(p, 10);
1590
- typeof x == "number" && x >= 1 && x <= 12 ? r(`${se}-${Ye(p)}-${Ye(B)}`) : St.warn(`Value '${x}' is an invalid month`);
1591
- }, G = (p) => {
1592
- if (C(se, $, p)) {
1593
- r("");
1594
- return;
1595
- }
1596
- p === "" && r(`${se}-${$}-`);
1597
- const x = Number.parseInt(p, 10);
1598
- typeof x == "number" && x >= 1 && x <= 31 ? r(`${se}-${Ye($)}-${Ye(x)}`) : St.warn(`Value '${x}' is an invalid day`);
1599
- }, J = (p) => {
1600
- if (C(p, $, B)) {
1601
- r("");
1602
- return;
1603
- }
1604
- p === "" && r(`-${$}-${B}`);
1605
- const x = Number.parseInt(p, 10);
1606
- typeof x == "number" && x >= 1 ? r(`${x}-${Ye($)}-${Ye(B)}`) : St.warn(`Value '${x}' is an invalid year`);
1607
- }, O = () => {
1608
- r(!B && !$ && !se ? "" : `${se}-${Ye($)}-${Ye(B)}`);
1609
- }, V = `${P}__month`, xe = `${P}-label`, de = /* @__PURE__ */ l.jsx("div", { className: "sid-field-error", id: te, children: v }), we = /* @__PURE__ */ l.jsx(
1610
- lr,
1611
- {
1612
- className: `${P}__month sid-date__month`,
1613
- fieldId: M,
1614
- inputId: V,
1615
- fieldLabelId: xe,
1616
- ariaDescribedBy: i ? te : void 0,
1617
- isErrored: i,
1618
- options: _,
1619
- onChange: (p) => {
1620
- Q(p ? p.value : null);
1621
- },
1622
- placeholder: f.formatHTMLMessage({ id: "dateTime.month", defaultMessage: "Month" }),
1623
- suppressPlaceholder: !1,
1624
- value: $ ? _[$ - 1] : void 0,
1625
- isRequired: o,
1626
- buttonRef: "inputSelectButtonBirthDate",
1627
- disabled: g,
1628
- autoComplete: R ? `${R}-month` : void 0
1629
- }
1630
- ), b = ie === "date" && /* @__PURE__ */ l.jsx(
1631
- tr,
1632
- {
1633
- className: `${P}__day sid-date__day sid-text-input sid-text-input--required ${i ? "sid-text-input--error" : ""}`,
1634
- id: `${ee}-day`,
1635
- isErrored: i,
1636
- min: 1,
1637
- max: 31,
1638
- name: `${P}-day`,
1639
- onChange: (p) => G(p.target.value),
1640
- onBlur: O,
1641
- pattern: "\\d*",
1642
- placeholder: f.formatHTMLMessage({ id: "dateTime.day", defaultMessage: "Day" }),
1643
- hidePlaceholder: !1,
1644
- "aria-label": f.formatHTMLMessage({ id: "dateTime.day", defaultMessage: "Day" }),
1645
- "aria-labelledby": P,
1646
- "aria-required": o,
1647
- refId: `${M}Day`,
1648
- type: "text",
1649
- value: B || "",
1650
- disabled: g,
1651
- autoComplete: R ? `${R}-day` : void 0
1652
- }
1653
- ), w = /* @__PURE__ */ l.jsx(
1654
- tr,
1655
- {
1656
- className: `${P}__year sid-date__year sid-text-input sid-text-input--required ${i ? "sid-text-input--error" : ""}`,
1657
- id: `${ee}-year`,
1658
- name: `${P}-year`,
1659
- type: "text",
1660
- isErrored: i,
1661
- inputMode: "numeric",
1662
- value: se || "",
1663
- pattern: "\\d*",
1664
- placeholder: f.formatHTMLMessage({ id: "dateTime.year", defaultMessage: "Year" }),
1665
- hidePlaceholder: !1,
1666
- "aria-label": f.formatHTMLMessage({ id: "dateTime.year", defaultMessage: "Year" }),
1667
- "aria-labelledby": P,
1668
- "aria-required": o,
1669
- refId: `${M}Year`,
1670
- onChange: (p) => J(p.target.value),
1671
- onBlur: O,
1672
- disabled: g,
1673
- autoComplete: R ? `${R}-year` : void 0
1674
- }
1675
- );
1676
- return /* @__PURE__ */ l.jsxs("div", { className: `sid-field ${P}`, children: [
1677
- /* @__PURE__ */ l.jsx("div", { className: "sid-l-space-top-md" }),
1678
- /* @__PURE__ */ l.jsx(
1679
- sr,
1680
- {
1681
- text: I,
1682
- htmlForLabel: V,
1683
- id: xe,
1684
- displayClasses: "sid-used-for-verification-purposes-label sid-field__label-with-explanation",
1685
- isRequired: o,
1686
- children: N
1687
- }
1688
- ),
1689
- /* @__PURE__ */ l.jsxs("div", { className: `${P}__inputs sid-date__inputs`, children: [
1690
- Pr(Y) ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
1691
- b,
1692
- we
1693
- ] }) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
1694
- we,
1695
- b
1696
- ] }),
1697
- w
1698
- ] }),
1699
- i && de
1700
- ] });
1701
- }, Br = dt(Hr), Vr = ({
1702
- fieldId: r,
1703
- value: f,
1704
- onChange: i,
1705
- label: o,
1706
- errorMessage: d,
1707
- disabled: v = !1
1708
- }) => {
1709
- const I = `${r}Label`, N = `sid-${ze(I)}`, M = `sid-${ze(I)}-error`, ee = () => i(!f);
1710
- return /* @__PURE__ */ l.jsxs("div", { className: `sid-field sid-${ze(r)}`, children: [
1711
- /* @__PURE__ */ l.jsx("div", { className: "sid-l-space-top-md" }),
1712
- /* @__PURE__ */ l.jsxs("div", { className: "sid-checkbox-flex", children: [
1713
- /* @__PURE__ */ l.jsx(
1714
- Pt,
1715
- {
1716
- id: ze(r),
1717
- isErrored: !!d,
1718
- value: f,
1719
- onChange: ee,
1720
- ariaLabelledby: N,
1721
- ariaDescribedBy: d ? M : "",
1722
- disabled: v
1723
- }
1724
- ),
1725
- /* @__PURE__ */ l.jsx(
1726
- "div",
1727
- {
1728
- className: "sid-checkbox__label",
1729
- onClick: ee,
1730
- onKeyPress: ee,
1731
- role: "button",
1732
- tabIndex: 0,
1733
- id: N,
1734
- children: o
1735
- }
1736
- )
1737
- ] }),
1738
- d ? /* @__PURE__ */ l.jsx("div", { className: "sid-field-error", id: M, children: d }) : null
1739
- ] });
1740
- }, zr = ({
1741
- value: r,
1742
- options: f,
1743
- onChange: i,
1744
- fieldId: o,
1745
- label: d,
1746
- placeholder: v = "",
1747
- errorMessage: I,
1748
- required: N,
1749
- showPlaceholderAndHideLabel: M = !1,
1750
- onKeyDown: ee = void 0,
1751
- disabled: ie = !1
1752
- }) => {
1753
- const Y = `${o}Label`, g = `sid-${ze(Y)}`, R = `sid-${ze(o)}-error`;
1754
- return /* @__PURE__ */ l.jsx(
1755
- ur,
1756
- {
1757
- fieldId: o,
1758
- label: d,
1759
- errorMessage: I,
1760
- showPlaceholderAndHideLabel: M,
1761
- isRequired: N,
1762
- children: /* @__PURE__ */ l.jsx(
1763
- lr,
1764
- {
1765
- fieldId: o,
1766
- inputId: `sid-${ze(o)}`,
1767
- fieldLabelId: g,
1768
- isErrored: !!I,
1769
- options: f,
1770
- onChange: (P) => i(P?.value.toString() || ""),
1771
- onKeyDown: ee,
1772
- value: f.find((P) => P.value === r),
1773
- suppressPlaceholder: !M,
1774
- placeholder: v,
1775
- ariaDescribedBy: I ? R : void 0,
1776
- isRequired: N,
1777
- disabled: ie
1778
- }
1779
- )
1780
- }
1781
- );
1782
- }, qr = ({
1783
- fieldId: r,
1784
- index: f,
1785
- option: i,
1786
- value: o,
1787
- onChange: d,
1788
- disabled: v = !1
1789
- }) => {
1790
- const I = Re.useRef(null);
1791
- return Re.useEffect(() => {
1792
- $t(r, I.current);
1793
- }), /* @__PURE__ */ l.jsxs("label", { className: "sid-radio__input sid-radio__input-label", children: [
1794
- /* @__PURE__ */ l.jsx(
1795
- "input",
1796
- {
1797
- id: `sid-radio__${r}-${f}`,
1798
- name: `sid-${r}`,
1799
- type: "radio",
1800
- checked: i.value === o,
1801
- value: i.value,
1802
- onChange: (N) => N.target.checked && d(i.value),
1803
- ref: I,
1804
- disabled: v
1805
- }
1806
- ),
1807
- /* @__PURE__ */ l.jsx("span", { children: i.label })
1808
- ] });
1809
- }, Ur = ({
1810
- fieldId: r,
1811
- onChange: f,
1812
- options: i,
1813
- label: o,
1814
- explanation: d = void 0,
1815
- required: v,
1816
- errorMessage: I,
1817
- value: N,
1818
- disabled: M = !1
1819
- }) => {
1820
- const ee = ze(r), ie = Tr(r);
1821
- return /* @__PURE__ */ l.jsx(
1822
- ur,
1823
- {
1824
- fieldId: ee,
1825
- label: o,
1826
- explanation: d,
1827
- errorMessage: I,
1828
- isRequired: v,
1829
- children: /* @__PURE__ */ l.jsx(
1830
- "div",
1831
- {
1832
- role: "group",
1833
- className: `sid-radio__inputs sid-${ee}__inputs sid-radio-grid${I ? " sid-radio__inputs--error" : ""}`,
1834
- "aria-labelledby": ie,
1835
- children: i.map((Y, g) => /* @__PURE__ */ l.jsx(
1836
- qr,
1837
- {
1838
- fieldId: r,
1839
- index: g,
1840
- option: Y,
1841
- value: N,
1842
- onChange: f,
1843
- disabled: M
1844
- },
1845
- Y.value
1846
- ))
1847
- }
1848
- )
1849
- }
1850
- );
1851
- }, Xe = {
1852
- TEXT: "text",
1853
- CHECKBOX: "checkbox",
1854
- SELECT: "select",
1855
- RADIO: "radio",
1856
- DATE: "date",
1857
- DATEYM: "dateYm"
1858
- }, ct = (r) => `${r.fieldId}Label`, nt = (r) => `${r.fieldId}Explanation`, Gr = (r) => `${r.fieldId}Placeholder`, ua = dt(
1859
- ({ config: r, verificationService: f, intl: i }) => {
1860
- const o = lt(() => f.viewModel.metadata[r.fieldId]), d = lt(() => f.fieldValidationErrors[r.fieldId]), v = (I) => {
1861
- f.updateViewModel(
1862
- Xt(f.viewModel, (N) => {
1863
- N.metadata = N.metadata || {}, N.metadata[r.fieldId] = I;
1864
- })
1865
- ), f.updateFieldValidationErrors(
1866
- Xt(f.fieldValidationErrors, (N) => {
1867
- r.validate(I) === void 0 && delete N[r.fieldId];
1868
- })
1869
- );
1870
- };
1871
- switch (r.fieldType) {
1872
- case Xe.TEXT:
1873
- return /* @__PURE__ */ l.jsx(
1874
- Rt,
1875
- {
1876
- fieldId: r.fieldId,
1877
- value: `${o || ""}`,
1878
- onChange: v,
1879
- disabled: r.disabled,
1880
- placeholder: i.formatHTMLMessage({
1881
- id: Gr(r),
1882
- defaultMessage: r.fieldId
1883
- }),
1884
- label: /* @__PURE__ */ l.jsx(
1885
- ge,
1886
- {
1887
- id: ct(r),
1888
- defaultMessage: r.fieldId
1889
- }
1890
- ),
1891
- explanation: lt(() => i.messages[nt(r)]) && /* @__PURE__ */ l.jsx(ge, { id: nt(r) }),
1892
- errorMessage: d && /* @__PURE__ */ l.jsx(
1893
- ge,
1894
- {
1895
- id: `errorId.${d}`,
1896
- defaultMessage: `Invalid ${r.fieldId}`
1897
- }
1898
- ),
1899
- showPlaceholderAndHideLabel: r.showPlaceholderAndHideLabel,
1900
- required: r.required
1901
- }
1902
- );
1903
- case Xe.CHECKBOX:
1904
- return /* @__PURE__ */ l.jsx(
1905
- Vr,
1906
- {
1907
- fieldId: r.fieldId,
1908
- value: typeof o == "boolean" ? o : !1,
1909
- onChange: v,
1910
- disabled: r.disabled,
1911
- label: /* @__PURE__ */ l.jsx(
1912
- ge,
1913
- {
1914
- id: ct(r),
1915
- defaultMessage: r.fieldId
1916
- }
1917
- ),
1918
- errorMessage: d && /* @__PURE__ */ l.jsx(
1919
- ge,
1920
- {
1921
- id: `errorId.${d}`,
1922
- defaultMessage: `Invalid ${r.fieldId}`
1923
- }
1924
- )
1925
- }
1926
- );
1927
- case Xe.SELECT:
1928
- return /* @__PURE__ */ l.jsx(
1929
- zr,
1930
- {
1931
- fieldId: r.fieldId,
1932
- value: `${o || ""}`,
1933
- onChange: v,
1934
- options: er(r.fieldId, r.options, i),
1935
- disabled: r.disabled,
1936
- placeholder: i.formatHTMLMessage({
1937
- id: `${r.fieldId}Placeholder`,
1938
- defaultMessage: r.fieldId
1939
- }),
1940
- label: /* @__PURE__ */ l.jsx(
1941
- ge,
1942
- {
1943
- id: ct(r),
1944
- defaultMessage: r.fieldId
1945
- }
1946
- ),
1947
- errorMessage: d && /* @__PURE__ */ l.jsx(
1948
- ge,
1949
- {
1950
- id: `errorId.${d}`,
1951
- defaultMessage: `Invalid ${r.fieldId}`
1952
- }
1953
- ),
1954
- showPlaceholderAndHideLabel: r.showPlaceholderAndHideLabel,
1955
- required: r.required
1956
- }
1957
- );
1958
- case Xe.DATE:
1959
- case Xe.DATEYM:
1960
- const I = r.fieldType === Xe.DATEYM ? "month" : void 0;
1961
- return /* @__PURE__ */ l.jsx(
1962
- Br,
1963
- {
1964
- fieldId: r.fieldId,
1965
- fieldName: r.fieldId,
1966
- value: `${o || ""}`,
1967
- onChange: v,
1968
- disabled: r.disabled,
1969
- label: /* @__PURE__ */ l.jsx(
1970
- ge,
1971
- {
1972
- id: ct(r),
1973
- defaultMessage: r.fieldId
1974
- }
1975
- ),
1976
- explanation: lt(() => i.messages[nt(r)]) && /* @__PURE__ */ l.jsx(ge, { id: nt(r) }),
1977
- isErrored: !!d,
1978
- errorMsg: /* @__PURE__ */ l.jsx(
1979
- ge,
1980
- {
1981
- id: `errorId.${d}`,
1982
- defaultMessage: `Invalid ${r.fieldId}`
1983
- }
1984
- ),
1985
- isRequired: r.required,
1986
- mode: I
1987
- }
1988
- );
1989
- case Xe.RADIO:
1990
- return /* @__PURE__ */ l.jsx(
1991
- Ur,
1992
- {
1993
- onChange: v,
1994
- value: `${o || ""}`,
1995
- options: er(r.fieldId, r.options, i),
1996
- required: r.required,
1997
- fieldId: r.fieldId,
1998
- disabled: r.disabled,
1999
- label: /* @__PURE__ */ l.jsx(
2000
- ge,
2001
- {
2002
- id: ct(r),
2003
- defaultMessage: r.fieldId
2004
- }
2005
- ),
2006
- explanation: lt(() => i.messages[nt(r)]) && /* @__PURE__ */ l.jsx(ge, { id: nt(r) }),
2007
- errorMessage: d && /* @__PURE__ */ l.jsx(
2008
- ge,
2009
- {
2010
- id: `errorId.${d}`,
2011
- defaultMessage: `Invalid ${r.fieldId}`
2012
- }
2013
- )
2014
- }
2015
- );
2016
- default:
2017
- return St.warn(`Unknown field type: ${r.fieldType}`), null;
2018
- }
2019
- }
2020
- );
2021
- var Oe = {}, ar;
2022
- function Kr() {
2023
- if (ar) return Oe;
2024
- ar = 1;
2025
- var r = Oe && Oe.__createBinding || (Object.create ? (function(g, R, P, te) {
2026
- te === void 0 && (te = P);
2027
- var m = Object.getOwnPropertyDescriptor(R, P);
2028
- (!m || ("get" in m ? !R.__esModule : m.writable || m.configurable)) && (m = { enumerable: !0, get: function() {
2029
- return R[P];
2030
- } }), Object.defineProperty(g, te, m);
2031
- }) : (function(g, R, P, te) {
2032
- te === void 0 && (te = P), g[te] = R[P];
2033
- })), f = Oe && Oe.__setModuleDefault || (Object.create ? (function(g, R) {
2034
- Object.defineProperty(g, "default", { enumerable: !0, value: R });
2035
- }) : function(g, R) {
2036
- g.default = R;
2037
- }), i = Oe && Oe.__importStar || function(g) {
2038
- if (g && g.__esModule) return g;
2039
- var R = {};
2040
- if (g != null) for (var P in g) P !== "default" && Object.prototype.hasOwnProperty.call(g, P) && r(R, g, P);
2041
- return f(R, g), R;
2042
- };
2043
- Object.defineProperty(Oe, "__esModule", { value: !0 }), Oe.useTurnstile = Oe.Turnstile = void 0;
2044
- const o = i(ir()), d = typeof globalThis < "u" ? globalThis : window;
2045
- let v = typeof d.turnstile < "u" ? "ready" : "unloaded", I, N;
2046
- const M = new Promise((g, R) => {
2047
- N = { resolve: g, reject: R }, v === "ready" && g(void 0);
2048
- });
2049
- {
2050
- const g = "cf__reactTurnstileOnLoad", R = "https://challenges.cloudflare.com/turnstile/v0/api.js";
2051
- I = () => {
2052
- if (v === "unloaded") {
2053
- v = "loading", d[g] = () => {
2054
- N.resolve(), v = "ready", delete d[g];
2055
- };
2056
- const P = `${R}?onload=${g}&render=explicit`, te = document.createElement("script");
2057
- te.src = P, te.async = !0, te.addEventListener("error", () => {
2058
- N.reject("Failed to load Turnstile."), delete d[g];
2059
- }), document.head.appendChild(te);
2060
- }
2061
- return M;
2062
- };
2063
- }
2064
- 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 }) {
2065
- const y = (0, o.useRef)(null), e = (0, o.useState)({
2066
- onVerify: w,
2067
- onSuccess: p,
2068
- onLoad: x,
2069
- onError: fe,
2070
- onExpire: ke,
2071
- onTimeout: S,
2072
- onAfterInteractive: h,
2073
- onBeforeInteractive: D,
2074
- onUnsupported: K
2075
- })[0], ne = b ?? y, re = J ? {
2076
- width: G === "compact" ? "130px" : G === "flexible" ? "100%" : "300px",
2077
- height: G === "compact" ? "120px" : "65px",
2078
- ...P
2079
- } : P;
2080
- return (0, o.useEffect)(() => {
2081
- if (!ne.current)
2082
- return;
2083
- let X = !1, le = "";
2084
- return (async () => {
2085
- var pe, me;
2086
- if (v !== "ready")
2087
- try {
2088
- await I();
2089
- } catch (z) {
2090
- (pe = e.onError) === null || pe === void 0 || pe.call(e, z);
2091
- return;
2092
- }
2093
- if (X || !ne.current)
2094
- return;
2095
- let oe;
2096
- const je = {
2097
- sitekey: te,
2098
- action: m,
2099
- cData: se,
2100
- theme: $,
2101
- language: B,
2102
- tabindex: _,
2103
- "response-field": C,
2104
- "response-field-name": Q,
2105
- size: G,
2106
- retry: O,
2107
- "retry-interval": V,
2108
- "refresh-expired": xe,
2109
- appearance: de,
2110
- execution: we,
2111
- callback: (z, n) => {
2112
- var u, j;
2113
- (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);
2114
- },
2115
- "error-callback": (z) => {
2116
- var n;
2117
- return (n = e.onError) === null || n === void 0 ? void 0 : n.call(e, z, oe);
2118
- },
2119
- "expired-callback": (z) => {
2120
- var n;
2121
- return (n = e.onExpire) === null || n === void 0 ? void 0 : n.call(e, z, oe);
2122
- },
2123
- "timeout-callback": () => {
2124
- var z;
2125
- return (z = e.onTimeout) === null || z === void 0 ? void 0 : z.call(e, oe);
2126
- },
2127
- "after-interactive-callback": () => {
2128
- var z;
2129
- return (z = e.onAfterInteractive) === null || z === void 0 ? void 0 : z.call(e, oe);
2130
- },
2131
- "before-interactive-callback": () => {
2132
- var z;
2133
- return (z = e.onBeforeInteractive) === null || z === void 0 ? void 0 : z.call(e, oe);
2134
- },
2135
- "unsupported-callback": () => {
2136
- var z;
2137
- return (z = e.onUnsupported) === null || z === void 0 ? void 0 : z.call(e, oe);
2138
- }
2139
- };
2140
- le = window.turnstile.render(ne.current, je), oe = ie(le), (me = e.onLoad) === null || me === void 0 || me.call(e, le, oe);
2141
- })(), () => {
2142
- X = !0, le && window.turnstile.remove(le);
2143
- };
2144
- }, [
2145
- te,
2146
- m,
2147
- se,
2148
- $,
2149
- B,
2150
- _,
2151
- C,
2152
- Q,
2153
- G,
2154
- O,
2155
- V,
2156
- xe,
2157
- de,
2158
- we
2159
- ]), (0, o.useEffect)(() => {
2160
- 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;
2161
- }, [
2162
- w,
2163
- p,
2164
- x,
2165
- fe,
2166
- ke,
2167
- S,
2168
- h,
2169
- D,
2170
- K
2171
- ]), o.default.createElement("div", { ref: ne, id: g, className: R, style: re });
2172
- }
2173
- Oe.Turnstile = ee, Oe.default = ee;
2174
- function ie(g) {
2175
- return {
2176
- execute: (R) => window.turnstile.execute(g, R),
2177
- reset: () => window.turnstile.reset(g),
2178
- getResponse: () => window.turnstile.getResponse(g),
2179
- isExpired: () => window.turnstile.isExpired(g)
2180
- };
2181
- }
2182
- function Y() {
2183
- const [g, R] = (0, o.useState)(v);
2184
- return (0, o.useEffect)(() => {
2185
- v !== "ready" && M.then(() => R(v));
2186
- }, []), d.turnstile;
2187
- }
2188
- return Oe.useTurnstile = Y, Oe;
2189
- }
2190
- var nr = Kr();
2191
- const Wr = ({ errorType: r, onRetry: f }) => r ? /* @__PURE__ */ l.jsxs("div", { className: "sid-captcha-notification", role: "alert", "data-testid": r, children: [
2192
- /* @__PURE__ */ l.jsx("div", { className: "sid-captcha-notification__icon-wrapper", children: /* @__PURE__ */ l.jsx(Ar, { className: "sid-captcha-notification__icon" }) }),
2193
- /* @__PURE__ */ l.jsxs("div", { children: [
2194
- r !== He.SERVER && /* @__PURE__ */ l.jsx("span", { className: "sid-captcha-notification__title", children: /* @__PURE__ */ l.jsx(
2195
- Lt,
2196
- {
2197
- id: `step.personalInfo.captcha.error.${r}.title`,
2198
- defaultMessage: "Verification Unsuccessful, Please try again."
2199
- }
2200
- ) }),
2201
- " ",
2202
- /* @__PURE__ */ l.jsx(
2203
- Lt,
2204
- {
2205
- id: `step.personalInfo.captcha.error.${r}.content`,
2206
- defaultMessage: "If the issue persists, disable any VPN or ad-blocking extensions and retry."
2207
- }
2208
- )
2209
- ] }),
2210
- 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" }) })
2211
- ] }) : null, Yr = 12e4, Jr = 1e4, Zr = {
2212
- [He.SERVER]: Ie.CaptchaErrorServer,
2213
- [He.BROWSER_COMPATIBILITY]: Ie.CaptchaErrorBrowserCompatibility
2214
- }, la = ({ verificationService: r, isErrored: f }) => {
2215
- 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) => {
2216
- Y.current.has(O) || (Y.current.add(O), M(O));
2217
- }, R = _r(xr), P = Object.values(He).includes(R) ? R : null, [te, m] = Be.useState(P), [se, $] = Be.useState(!1), B = () => {
2218
- g(Ie.CaptchaRetryClicked), m(null), i.reset();
2219
- }, _ = (O) => {
2220
- Ft({ captchaToken: O }), Ir("captchaToken", O, r);
2221
- }, C = (O) => {
2222
- g(Zr[O]), m(O), _("");
2223
- }, Q = () => r.viewModel?.fieldsToSkipValidation || [], G = () => {
2224
- const O = Q();
2225
- Ft({
2226
- fieldsToSkipValidation: O.filter((V) => V !== "captchaToken")
2227
- }), _("");
2228
- }, J = () => {
2229
- const O = Q();
2230
- Ft({
2231
- captchaToken: void 0,
2232
- fieldsToSkipValidation: O.includes("captchaToken") ? O : [...O, "captchaToken"]
2233
- });
2234
- };
2235
- return Be.useEffect(() => {
2236
- N && f && m((O) => O === null ? (g(Ie.CaptchaErrorServer), He.SERVER) : O);
2237
- }, [N, f]), Be.useEffect(() => {
2238
- if (!N)
2239
- return;
2240
- G();
2241
- const O = () => {
2242
- const de = Y.current;
2243
- return de.has(Ie.CaptchaVerified) || de.has(Ie.CaptchaErrorClient) || de.has(Ie.CaptchaErrorScriptLoad) || de.has(Ie.CaptchaErrorBrowserCompatibility) || de.has(Ie.CaptchaErrorLoadTimeout);
2244
- }, V = () => {
2245
- O() || (Y.current.has(Ie.CaptchaRendered) ? g(Ie.CaptchaAbandonedAfterRender) : g(Ie.CaptchaUnmountedBeforeRender));
2246
- }, xe = () => {
2247
- V(), ie();
2248
- };
2249
- return window.addEventListener("beforeunload", xe), () => {
2250
- window.removeEventListener("beforeunload", xe), V(), J();
2251
- };
2252
- }, [N]), Be.useEffect(() => {
2253
- if (!N || se || P)
2254
- return;
2255
- const O = setTimeout(() => {
2256
- Y.current.has(Ie.CaptchaErrorScriptLoad) || (g(Ie.CaptchaErrorLoadTimeout), m(He.CLIENT), _(""));
2257
- }, Jr);
2258
- return () => clearTimeout(O);
2259
- }, [N, se]), N ? /* @__PURE__ */ l.jsxs("div", { children: [
2260
- !P && /* @__PURE__ */ l.jsx(
2261
- nr.Turnstile,
2262
- {
2263
- sitekey: "0x4AAAAAACaWNlR_tN9-HfHj",
2264
- refreshExpired: "auto",
2265
- retryInterval: Yr,
2266
- onLoad: () => {
2267
- $(!0), g(Ie.CaptchaRendered);
2268
- },
2269
- onVerify: (O) => {
2270
- g(Ie.CaptchaVerified), m((V) => V === He.SERVER ? V : null), _(O);
2271
- },
2272
- onError: (O) => {
2273
- if (!se)
2274
- g(Ie.CaptchaErrorScriptLoad);
2275
- else if (!Y.current.has(Ie.CaptchaErrorClient)) {
2276
- const V = parseInt(O, 10);
2277
- ee(
2278
- Ie.CaptchaErrorClientCode,
2279
- isNaN(V) ? 0 : V
2280
- ), jr({
2281
- eventName: Sr.CAPTCHA_CLIENT_ERROR_CODE,
2282
- params: { [wr.ERROR_CODE]: isNaN(V) ? 0 : V }
2283
- }), g(Ie.CaptchaErrorClient);
2284
- }
2285
- m(He.CLIENT), _("");
2286
- },
2287
- onUnsupported: () => {
2288
- C(He.BROWSER_COMPATIBILITY);
2289
- }
2290
- }
2291
- ),
2292
- /* @__PURE__ */ l.jsx(
2293
- Wr,
2294
- {
2295
- errorType: te,
2296
- onRetry: se && te === He.CLIENT ? B : void 0
2297
- }
2298
- )
2299
- ] }) : null;
2300
- };
2301
- export {
2302
- la as C,
2303
- Br as D,
2304
- ia as F,
2305
- sa as L,
2306
- na as M,
2307
- oa as P,
2308
- ua as a
2309
- };