@sheerid/jslib 2.293.0 → 2.294.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 (377) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +38 -38
  3. package/chunk/{AddressComponent-CglwEa12.js → AddressComponent-C2dPxhhj.js} +6 -6
  4. package/chunk/{AddressComponent-CglwEa12.js.map → AddressComponent-C2dPxhhj.js.map} +1 -1
  5. package/chunk/{AddressComponent-CmJnOMbH.js → AddressComponent-PHZhb2Mw.js} +6 -6
  6. package/chunk/{AddressComponent-CmJnOMbH.js.map → AddressComponent-PHZhb2Mw.js.map} +1 -1
  7. package/chunk/AnnouncingHeader-C6QNdmy8.js +4 -4
  8. package/chunk/AnnouncingHeader-DJd16MZV.js +4 -4
  9. package/chunk/{BirthDateComponent-C8TH6zhC.js → BirthDateComponent-BpdF0g0b.js} +6 -6
  10. package/chunk/{BirthDateComponent-C8TH6zhC.js.map → BirthDateComponent-BpdF0g0b.js.map} +1 -1
  11. package/chunk/{BirthDateComponent-DoxUuygs.js → BirthDateComponent-DCZXOXmm.js} +6 -6
  12. package/chunk/{BirthDateComponent-DoxUuygs.js.map → BirthDateComponent-DCZXOXmm.js.map} +1 -1
  13. package/chunk/{CaptchaComponent-1QN8Diwc.js → CaptchaComponent-B0Uxhb51.js} +9 -9
  14. package/chunk/{CaptchaComponent-1QN8Diwc.js.map → CaptchaComponent-B0Uxhb51.js.map} +1 -1
  15. package/chunk/{CaptchaComponent-CvmkQ_5D.js → CaptchaComponent-FWZqpEIU.js} +9 -9
  16. package/chunk/{CaptchaComponent-CvmkQ_5D.js.map → CaptchaComponent-FWZqpEIU.js.map} +1 -1
  17. package/chunk/{ChangeLocaleComponent-DuUnRYy4.js → ChangeLocaleComponent-B8ZVvEiq.js} +7 -7
  18. package/chunk/{ChangeLocaleComponent-DuUnRYy4.js.map → ChangeLocaleComponent-B8ZVvEiq.js.map} +1 -1
  19. package/chunk/{ChangeLocaleComponent-ZNY5d0nd.js → ChangeLocaleComponent-CGCnqwzm.js} +7 -7
  20. package/chunk/{ChangeLocaleComponent-ZNY5d0nd.js.map → ChangeLocaleComponent-CGCnqwzm.js.map} +1 -1
  21. package/chunk/{City-BAUe7lNj.js → City-BPckEV2l.js} +6 -6
  22. package/chunk/{City-BAUe7lNj.js.map → City-BPckEV2l.js.map} +1 -1
  23. package/chunk/{City-BBwhhp0r.js → City-uCEYG4v0.js} +6 -6
  24. package/chunk/{City-BBwhhp0r.js.map → City-uCEYG4v0.js.map} +1 -1
  25. package/chunk/{CollegeNameComponent-DFRljRjg.js → CollegeNameComponent-BqSQ4YOf.js} +8 -8
  26. package/chunk/{CollegeNameComponent-Ba-ldOs2.js.map → CollegeNameComponent-BqSQ4YOf.js.map} +1 -1
  27. package/chunk/{CollegeNameComponent-Ba-ldOs2.js → CollegeNameComponent-dB7K5QgA.js} +8 -8
  28. package/chunk/{CollegeNameComponent-DFRljRjg.js.map → CollegeNameComponent-dB7K5QgA.js.map} +1 -1
  29. package/chunk/CopyToClipboardComponent-cvPop_DN.js +4 -4
  30. package/chunk/CopyToClipboardComponent-nKhkSaum.js +4 -4
  31. package/chunk/{CountryComponentWrapper-S7tjrj1n.js → CountryComponentWrapper-BRfRmGYM.js} +12 -12
  32. package/chunk/{CountryComponentWrapper-BriofJKE.js.map → CountryComponentWrapper-BRfRmGYM.js.map} +1 -1
  33. package/chunk/{CountryComponentWrapper-BriofJKE.js → CountryComponentWrapper-BoVcyVxO.js} +12 -12
  34. package/chunk/{CountryComponentWrapper-S7tjrj1n.js.map → CountryComponentWrapper-BoVcyVxO.js.map} +1 -1
  35. package/chunk/{DischargeDateComponent-Cbnod0KG.js → DischargeDateComponent-BQ459K7a.js} +9 -9
  36. package/chunk/{DischargeDateComponent-Cbnod0KG.js.map → DischargeDateComponent-BQ459K7a.js.map} +1 -1
  37. package/chunk/{DischargeDateComponent-CeEZ1mSx.js → DischargeDateComponent-CZSf2ikm.js} +9 -9
  38. package/chunk/{DischargeDateComponent-CeEZ1mSx.js.map → DischargeDateComponent-CZSf2ikm.js.map} +1 -1
  39. package/chunk/{DriverLicenseNumberComponent-CYZRa321.js → DriverLicenseNumberComponent-Bh4Qolmi.js} +6 -6
  40. package/chunk/{DriverLicenseNumberComponent-CYZRa321.js.map → DriverLicenseNumberComponent-Bh4Qolmi.js.map} +1 -1
  41. package/chunk/{DriverLicenseNumberComponent-HsWgzFE0.js → DriverLicenseNumberComponent-DnOPwPeC.js} +6 -6
  42. package/chunk/{DriverLicenseNumberComponent-HsWgzFE0.js.map → DriverLicenseNumberComponent-DnOPwPeC.js.map} +1 -1
  43. package/chunk/{EmailLoopPending-DUGwU1oQ.js → EmailLoopPending-BCYLcoGT.js} +7 -7
  44. package/chunk/{EmailLoopPending-Cu0KY8xa.js.map → EmailLoopPending-BCYLcoGT.js.map} +1 -1
  45. package/chunk/{EmailLoopPending-Cu0KY8xa.js → EmailLoopPending-D5G2UXKG.js} +7 -7
  46. package/chunk/{EmailLoopPending-DUGwU1oQ.js.map → EmailLoopPending-D5G2UXKG.js.map} +1 -1
  47. package/chunk/{ExtraMessage-D4cO9DeJ.js → ExtraMessage-Bqf9TUts.js} +5 -5
  48. package/chunk/{ExtraMessage-B5w5QVkn.js.map → ExtraMessage-Bqf9TUts.js.map} +1 -1
  49. package/chunk/{ExtraMessage-B5w5QVkn.js → ExtraMessage-DNXSpqvW.js} +5 -5
  50. package/chunk/{ExtraMessage-D4cO9DeJ.js.map → ExtraMessage-DNXSpqvW.js.map} +1 -1
  51. package/chunk/{FirstResponderOrganizationComponent-JwJJEaoP.js → FirstResponderOrganizationComponent-CfT8Biwu.js} +8 -8
  52. package/chunk/{FirstResponderOrganizationComponent-JwJJEaoP.js.map → FirstResponderOrganizationComponent-CfT8Biwu.js.map} +1 -1
  53. package/chunk/{FirstResponderOrganizationComponent-asulZFz_.js → FirstResponderOrganizationComponent-x0WgcQzG.js} +8 -8
  54. package/chunk/{FirstResponderOrganizationComponent-asulZFz_.js.map → FirstResponderOrganizationComponent-x0WgcQzG.js.map} +1 -1
  55. package/chunk/{FormFieldInputSelect-DAUHwCaX.js → FormFieldInputSelect-BfmQAxFP.js} +5 -5
  56. package/chunk/{FormFieldInputSelect-DAUHwCaX.js.map → FormFieldInputSelect-BfmQAxFP.js.map} +1 -1
  57. package/chunk/{FormFieldInputSelect-IPo7-GWc.js → FormFieldInputSelect-Cd-wGEHG.js} +5 -5
  58. package/chunk/{FormFieldInputSelect-IPo7-GWc.js.map → FormFieldInputSelect-Cd-wGEHG.js.map} +1 -1
  59. package/chunk/FormFieldLayout-Bx2JoyDR.js +4 -4
  60. package/chunk/FormFieldLayout-_lQMBCmX.js +4 -4
  61. package/chunk/FormFieldText-5WjD4GNf.js +4 -4
  62. package/chunk/FormFieldText-BQLBciux.js +4 -4
  63. package/chunk/{FormFieldTypeahead-7ok1bRAH.js → FormFieldTypeahead-DVaRbEQG.js} +8 -8
  64. package/chunk/{FormFieldTypeahead-7ok1bRAH.js.map → FormFieldTypeahead-DVaRbEQG.js.map} +1 -1
  65. package/chunk/{FormFieldTypeahead-BXVKDH6h.js → FormFieldTypeahead-GpVICIeC.js} +8 -8
  66. package/chunk/{FormFieldTypeahead-BXVKDH6h.js.map → FormFieldTypeahead-GpVICIeC.js.map} +1 -1
  67. package/chunk/{FormFooterComponent-ChbgdbyW.js → FormFooterComponent-Bzz3Bu-9.js} +8 -8
  68. package/chunk/{FormFooterComponent-ChbgdbyW.js.map → FormFooterComponent-Bzz3Bu-9.js.map} +1 -1
  69. package/chunk/{FormFooterComponent-DcKXPYSW.js → FormFooterComponent-Ca6EG7qf.js} +8 -8
  70. package/chunk/{FormFooterComponent-DcKXPYSW.js.map → FormFooterComponent-Ca6EG7qf.js.map} +1 -1
  71. package/chunk/{FormSelectChoice-EuY3K8M7.js → FormSelectChoice-BwYh7sj9.js} +18 -10
  72. package/chunk/FormSelectChoice-BwYh7sj9.js.map +1 -0
  73. package/chunk/{FormSelectChoice-DiD_fv-5.js → FormSelectChoice-RBx6V3b2.js} +18 -10
  74. package/chunk/FormSelectChoice-RBx6V3b2.js.map +1 -0
  75. package/chunk/InputText-DBIXmm_R.js +4 -4
  76. package/chunk/InputText-DqQkxoCM.js +4 -4
  77. package/chunk/{LicensedProfessionalOrganizationComponent-CI7AACK0.js → LicensedProfessionalOrganizationComponent-8uaSLE_5.js} +8 -8
  78. package/chunk/{LicensedProfessionalOrganizationComponent-CI7AACK0.js.map → LicensedProfessionalOrganizationComponent-8uaSLE_5.js.map} +1 -1
  79. package/chunk/{LicensedProfessionalOrganizationComponent-Do3FCGFw.js → LicensedProfessionalOrganizationComponent-BPWGao1m.js} +8 -8
  80. package/chunk/{LicensedProfessionalOrganizationComponent-Do3FCGFw.js.map → LicensedProfessionalOrganizationComponent-BPWGao1m.js.map} +1 -1
  81. package/chunk/{LogoComponent-CLrHpRvB.js → LogoComponent-Ca7bTxZE.js} +5 -5
  82. package/chunk/{LogoComponent-CLrHpRvB.js.map → LogoComponent-Ca7bTxZE.js.map} +1 -1
  83. package/chunk/{LogoComponent-CNeqwZ63.js → LogoComponent-D0I1mPJw.js} +5 -5
  84. package/chunk/{LogoComponent-CNeqwZ63.js.map → LogoComponent-D0I1mPJw.js.map} +1 -1
  85. package/chunk/{LowIncomeOrganizationComponent-BH4cG0Wa.js → LowIncomeOrganizationComponent-l4L0ov2d.js} +9 -9
  86. package/chunk/{LowIncomeOrganizationComponent-BH4cG0Wa.js.map → LowIncomeOrganizationComponent-l4L0ov2d.js.map} +1 -1
  87. package/chunk/{LowIncomeOrganizationComponent-Cuxg935n.js → LowIncomeOrganizationComponent-l_HWVHzW.js} +9 -9
  88. package/chunk/{LowIncomeOrganizationComponent-Cuxg935n.js.map → LowIncomeOrganizationComponent-l_HWVHzW.js.map} +1 -1
  89. package/chunk/{MedicalProfessionalOrganizationComponent-9b_QGhPj.js → MedicalProfessionalOrganizationComponent-BEV89rdD.js} +8 -8
  90. package/chunk/{MedicalProfessionalOrganizationComponent-9b_QGhPj.js.map → MedicalProfessionalOrganizationComponent-BEV89rdD.js.map} +1 -1
  91. package/chunk/{MedicalProfessionalOrganizationComponent-CpGvKtH0.js → MedicalProfessionalOrganizationComponent-DrzA5GBL.js} +8 -8
  92. package/chunk/{MedicalProfessionalOrganizationComponent-CpGvKtH0.js.map → MedicalProfessionalOrganizationComponent-DrzA5GBL.js.map} +1 -1
  93. package/chunk/{MemberIdComponent-4yDOiEzp.js → MemberIdComponent-C2G6z0us.js} +6 -6
  94. package/chunk/{MemberIdComponent-4yDOiEzp.js.map → MemberIdComponent-C2G6z0us.js.map} +1 -1
  95. package/chunk/{MemberIdComponent-QFKekDAA.js → MemberIdComponent-_RwOhcAg.js} +6 -6
  96. package/chunk/{MemberIdComponent-QFKekDAA.js.map → MemberIdComponent-_RwOhcAg.js.map} +1 -1
  97. package/chunk/{MembershipOrganizationComponent-DgErRDKk.js → MembershipOrganizationComponent-DaBngl5Q.js} +8 -8
  98. package/chunk/{MembershipOrganizationComponent-DJD1Hlal.js.map → MembershipOrganizationComponent-DaBngl5Q.js.map} +1 -1
  99. package/chunk/{MembershipOrganizationComponent-DJD1Hlal.js → MembershipOrganizationComponent-oMfREuGs.js} +8 -8
  100. package/chunk/{MembershipOrganizationComponent-DgErRDKk.js.map → MembershipOrganizationComponent-oMfREuGs.js.map} +1 -1
  101. package/chunk/{Message-9U_vSk1g.js → Message-Boy9Uyy0.js} +5 -5
  102. package/chunk/{Message-9U_vSk1g.js.map → Message-Boy9Uyy0.js.map} +1 -1
  103. package/chunk/{Message-CEUCVZmr.js → Message-DvgmOZft.js} +5 -5
  104. package/chunk/{Message-CEUCVZmr.js.map → Message-DvgmOZft.js.map} +1 -1
  105. package/chunk/Onfido-CTCgAwnB.js +4 -4
  106. package/chunk/{PersonalInfoStepSubmitButton-CD-vfZ2W.js → PersonalInfoStepSubmitButton-B_QubSRz.js} +6 -6
  107. package/chunk/{PersonalInfoStepSubmitButton-CD-vfZ2W.js.map → PersonalInfoStepSubmitButton-B_QubSRz.js.map} +1 -1
  108. package/chunk/{PersonalInfoStepSubmitButton-CrB88-09.js → PersonalInfoStepSubmitButton-CASQFLdJ.js} +6 -6
  109. package/chunk/{PersonalInfoStepSubmitButton-CrB88-09.js.map → PersonalInfoStepSubmitButton-CASQFLdJ.js.map} +1 -1
  110. package/chunk/{PersonalInfoStepWrapper-Cx3INM03.js → PersonalInfoStepWrapper-BzdMB6RD.js} +6 -6
  111. package/chunk/{PersonalInfoStepWrapper-Cx3INM03.js.map → PersonalInfoStepWrapper-BzdMB6RD.js.map} +1 -1
  112. package/chunk/{PersonalInfoStepWrapper-DNrpE3DD.js → PersonalInfoStepWrapper-D-oNkXVC.js} +5 -5
  113. package/chunk/{PersonalInfoStepWrapper-DNrpE3DD.js.map → PersonalInfoStepWrapper-D-oNkXVC.js.map} +1 -1
  114. package/chunk/{PostalCodeComponent-CYS0aDbk.js → PostalCodeComponent-5NKJ6zig.js} +6 -6
  115. package/chunk/{PostalCodeComponent-BzOER20j.js.map → PostalCodeComponent-5NKJ6zig.js.map} +1 -1
  116. package/chunk/{PostalCodeComponent-BzOER20j.js → PostalCodeComponent-DTdFZJea.js} +6 -6
  117. package/chunk/{PostalCodeComponent-CYS0aDbk.js.map → PostalCodeComponent-DTdFZJea.js.map} +1 -1
  118. package/chunk/{SSN-BkOZOVrg.js → SSN-BeveTYV1.js} +6 -6
  119. package/chunk/{SSN-BkOZOVrg.js.map → SSN-BeveTYV1.js.map} +1 -1
  120. package/chunk/{SSN-Rh7SI5Xl.js → SSN-npx9fciR.js} +6 -6
  121. package/chunk/{SSN-Rh7SI5Xl.js.map → SSN-npx9fciR.js.map} +1 -1
  122. package/chunk/{StateSelectComponent-ucSIYnVj.js → StateSelectComponent-BljDbJ_7.js} +7 -7
  123. package/chunk/{StateSelectComponent-DjUk8jIA.js.map → StateSelectComponent-BljDbJ_7.js.map} +1 -1
  124. package/chunk/{StateSelectComponent-DjUk8jIA.js → StateSelectComponent-D7vXl3OH.js} +7 -7
  125. package/chunk/{StateSelectComponent-ucSIYnVj.js.map → StateSelectComponent-D7vXl3OH.js.map} +1 -1
  126. package/chunk/{StatusComponent-BYtArAqN.js → StatusComponent-5GNGDBSi.js} +7 -7
  127. package/chunk/{StatusComponent-BNW03jct.js.map → StatusComponent-5GNGDBSi.js.map} +1 -1
  128. package/chunk/{StatusComponent-BNW03jct.js → StatusComponent-BGqgQrBr.js} +7 -7
  129. package/chunk/{StatusComponent-BYtArAqN.js.map → StatusComponent-BGqgQrBr.js.map} +1 -1
  130. package/chunk/{StepAgePersonalInfo-CdXCL0bo.js → StepAgePersonalInfo-BJ6WrgSZ.js} +29 -29
  131. package/chunk/{StepAgePersonalInfo-CMOwbuli.js.map → StepAgePersonalInfo-BJ6WrgSZ.js.map} +1 -1
  132. package/chunk/{StepAgePersonalInfo-CMOwbuli.js → StepAgePersonalInfo-CbTV2OHL.js} +29 -29
  133. package/chunk/{StepAgePersonalInfo-CdXCL0bo.js.map → StepAgePersonalInfo-CbTV2OHL.js.map} +1 -1
  134. package/chunk/StepCard-CQGeXH7Z.js +4 -4
  135. package/chunk/StepCard-DD1BU5jb.js +4 -4
  136. package/chunk/{StepCollectIdentifier-oyMO5Tr4.js → StepCollectIdentifier-BXNQfg0X.js} +9 -9
  137. package/chunk/{StepCollectIdentifier-Ct_XcHhJ.js.map → StepCollectIdentifier-BXNQfg0X.js.map} +1 -1
  138. package/chunk/{StepCollectIdentifier-Ct_XcHhJ.js → StepCollectIdentifier-BiMRaTtt.js} +9 -9
  139. package/chunk/{StepCollectIdentifier-oyMO5Tr4.js.map → StepCollectIdentifier-BiMRaTtt.js.map} +1 -1
  140. package/chunk/StepCollectMilitaryPersonalInfoComponent-Bwc_N_YU.js +243 -0
  141. package/chunk/StepCollectMilitaryPersonalInfoComponent-Bwc_N_YU.js.map +1 -0
  142. package/chunk/StepCollectMilitaryPersonalInfoComponent-DYUc7Vl8.js +247 -0
  143. package/chunk/StepCollectMilitaryPersonalInfoComponent-DYUc7Vl8.js.map +1 -0
  144. package/chunk/StepCollectPersonalInfo-DT-XZGrm.js +370 -0
  145. package/chunk/StepCollectPersonalInfo-DT-XZGrm.js.map +1 -0
  146. package/chunk/StepCollectPersonalInfo-GMuXh62L.js +366 -0
  147. package/chunk/StepCollectPersonalInfo-GMuXh62L.js.map +1 -0
  148. package/chunk/{StepCompleteAuthentication-CVdnwB3N.js → StepCompleteAuthentication-5kcqz-By.js} +8 -8
  149. package/chunk/{StepCompleteAuthentication-CVdnwB3N.js.map → StepCompleteAuthentication-5kcqz-By.js.map} +1 -1
  150. package/chunk/{StepCompleteAuthentication-Eu1CDlzS.js → StepCompleteAuthentication-xpON0-yc.js} +8 -8
  151. package/chunk/{StepCompleteAuthentication-Eu1CDlzS.js.map → StepCompleteAuthentication-xpON0-yc.js.map} +1 -1
  152. package/chunk/{StepConsolation-BZolR-w3.js → StepConsolation-BdSXDPgO.js} +6 -6
  153. package/chunk/{StepConsolation-BNAG8sM3.js.map → StepConsolation-BdSXDPgO.js.map} +1 -1
  154. package/chunk/{StepConsolation-BNAG8sM3.js → StepConsolation-D9oaYgDU.js} +6 -6
  155. package/chunk/{StepConsolation-BZolR-w3.js.map → StepConsolation-D9oaYgDU.js.map} +1 -1
  156. package/chunk/{StepDocUpload-Dsz_90mk.js → StepDocUpload-DlVEC1sX.js} +7 -7
  157. package/chunk/{StepDocUpload-Dsz_90mk.js.map → StepDocUpload-DlVEC1sX.js.map} +1 -1
  158. package/chunk/{StepDocUpload-DS-p1qDq.js → StepDocUpload-WORC4p6O.js} +7 -7
  159. package/chunk/{StepDocUpload-DS-p1qDq.js.map → StepDocUpload-WORC4p6O.js.map} +1 -1
  160. package/chunk/{StepDriverLicensePersonalInfoComponent-iwcy30h2.js → StepDriverLicensePersonalInfoComponent-C5upCQ_b.js} +21 -21
  161. package/chunk/{StepDriverLicensePersonalInfoComponent-iwcy30h2.js.map → StepDriverLicensePersonalInfoComponent-C5upCQ_b.js.map} +1 -1
  162. package/chunk/{StepDriverLicensePersonalInfoComponent-BayW1tyu.js → StepDriverLicensePersonalInfoComponent-Cfqv4ArX.js} +21 -21
  163. package/chunk/{StepDriverLicensePersonalInfoComponent-BayW1tyu.js.map → StepDriverLicensePersonalInfoComponent-Cfqv4ArX.js.map} +1 -1
  164. package/chunk/{StepEmailLoop-0vsbR1ux.js → StepEmailLoop-DDJM3zA3.js} +10 -10
  165. package/chunk/{StepEmailLoop-0vsbR1ux.js.map → StepEmailLoop-DDJM3zA3.js.map} +1 -1
  166. package/chunk/{StepEmailLoop-CeAFjc1t.js → StepEmailLoop-OYpg9_fk.js} +10 -10
  167. package/chunk/{StepEmailLoop-CeAFjc1t.js.map → StepEmailLoop-OYpg9_fk.js.map} +1 -1
  168. package/chunk/{StepEmploymentPersonalInfo-D95RJwC0.js → StepEmploymentPersonalInfo-BtzyaOOY.js} +44 -44
  169. package/chunk/{StepEmploymentPersonalInfo-BaHSVAYt.js.map → StepEmploymentPersonalInfo-BtzyaOOY.js.map} +1 -1
  170. package/chunk/{StepEmploymentPersonalInfo-BaHSVAYt.js → StepEmploymentPersonalInfo-STBW2SrN.js} +44 -44
  171. package/chunk/{StepEmploymentPersonalInfo-D95RJwC0.js.map → StepEmploymentPersonalInfo-STBW2SrN.js.map} +1 -1
  172. package/chunk/StepFirstResponderPersonalInfo-BVQ7ivyQ.js +185 -0
  173. package/chunk/StepFirstResponderPersonalInfo-BVQ7ivyQ.js.map +1 -0
  174. package/chunk/StepFirstResponderPersonalInfo-BVZWOft8.js +181 -0
  175. package/chunk/StepFirstResponderPersonalInfo-BVZWOft8.js.map +1 -0
  176. package/chunk/{StepGeneralIdentityPersonalInfoComponent-CMdeQa9t.js → StepGeneralIdentityPersonalInfoComponent-0egbo84U.js} +27 -27
  177. package/chunk/{StepGeneralIdentityPersonalInfoComponent-C4eqogf7.js.map → StepGeneralIdentityPersonalInfoComponent-0egbo84U.js.map} +1 -1
  178. package/chunk/{StepGeneralIdentityPersonalInfoComponent-C4eqogf7.js → StepGeneralIdentityPersonalInfoComponent-B-v5whS7.js} +27 -27
  179. package/chunk/{StepGeneralIdentityPersonalInfoComponent-CMdeQa9t.js.map → StepGeneralIdentityPersonalInfoComponent-B-v5whS7.js.map} +1 -1
  180. package/chunk/{StepHybridIdentityPersonalInfoComponent-Dc-biEsG.js → StepHybridIdentityPersonalInfoComponent-DVNnEPFz.js} +29 -29
  181. package/chunk/{StepHybridIdentityPersonalInfoComponent-C49vKRTa.js.map → StepHybridIdentityPersonalInfoComponent-DVNnEPFz.js.map} +1 -1
  182. package/chunk/{StepHybridIdentityPersonalInfoComponent-C49vKRTa.js → StepHybridIdentityPersonalInfoComponent-FkG0Eyf1.js} +29 -29
  183. package/chunk/{StepHybridIdentityPersonalInfoComponent-Dc-biEsG.js.map → StepHybridIdentityPersonalInfoComponent-FkG0Eyf1.js.map} +1 -1
  184. package/chunk/{StepIDCheckLoop-DXe69ybE.js → StepIDCheckLoop-DUJFqwvk.js} +5 -5
  185. package/chunk/{StepIDCheckLoop-DAgSyKQ_.js.map → StepIDCheckLoop-DUJFqwvk.js.map} +1 -1
  186. package/chunk/{StepIDCheckLoop-DAgSyKQ_.js → StepIDCheckLoop-Mrxs3-7G.js} +5 -5
  187. package/chunk/{StepIDCheckLoop-DXe69ybE.js.map → StepIDCheckLoop-Mrxs3-7G.js.map} +1 -1
  188. package/chunk/{StepIDCheckLoopOnfido-DE6RRtgy.js → StepIDCheckLoopOnfido-CWyxxeuD.js} +7 -7
  189. package/chunk/{StepIDCheckLoopOnfido-DE6RRtgy.js.map → StepIDCheckLoopOnfido-CWyxxeuD.js.map} +1 -1
  190. package/chunk/{StepIDCheckLoopOnfido-BDm03j1s.js → StepIDCheckLoopOnfido-znxJ5SR-.js} +7 -7
  191. package/chunk/{StepIDCheckLoopOnfido-BDm03j1s.js.map → StepIDCheckLoopOnfido-znxJ5SR-.js.map} +1 -1
  192. package/chunk/{StepIDCheckLoopRegula-WHchxuwG.js → StepIDCheckLoopRegula-DBUX-ItR.js} +7 -7
  193. package/chunk/{StepIDCheckLoopRegula-BFCNXKdD.js.map → StepIDCheckLoopRegula-DBUX-ItR.js.map} +1 -1
  194. package/chunk/{StepIDCheckLoopRegula-BFCNXKdD.js → StepIDCheckLoopRegula-Dv0-RlwY.js} +7 -7
  195. package/chunk/{StepIDCheckLoopRegula-WHchxuwG.js.map → StepIDCheckLoopRegula-Dv0-RlwY.js.map} +1 -1
  196. package/chunk/StepLicensedProfessionalPersonalInfo-3Z8Bx-fV.js +179 -0
  197. package/chunk/StepLicensedProfessionalPersonalInfo-3Z8Bx-fV.js.map +1 -0
  198. package/chunk/StepLicensedProfessionalPersonalInfo-DTfq7vRu.js +175 -0
  199. package/chunk/StepLicensedProfessionalPersonalInfo-DTfq7vRu.js.map +1 -0
  200. package/chunk/StepLowIncomePersonalInfo-CfeMIf_F.js +236 -0
  201. package/chunk/StepLowIncomePersonalInfo-CfeMIf_F.js.map +1 -0
  202. package/chunk/StepLowIncomePersonalInfo-DqKgsikM.js +232 -0
  203. package/chunk/StepLowIncomePersonalInfo-DqKgsikM.js.map +1 -0
  204. package/chunk/StepMedicalProfessionalPersonalInfo-BABdgYG1.js +207 -0
  205. package/chunk/StepMedicalProfessionalPersonalInfo-BABdgYG1.js.map +1 -0
  206. package/chunk/StepMedicalProfessionalPersonalInfo-D6Qa3OQa.js +211 -0
  207. package/chunk/StepMedicalProfessionalPersonalInfo-D6Qa3OQa.js.map +1 -0
  208. package/chunk/{StepMemberPersonalInfo-C2lAKxWz.js → StepMemberPersonalInfo-C-28cVMR.js} +24 -24
  209. package/chunk/{StepMemberPersonalInfo-BBNRpD59.js.map → StepMemberPersonalInfo-C-28cVMR.js.map} +1 -1
  210. package/chunk/{StepMemberPersonalInfo-BBNRpD59.js → StepMemberPersonalInfo-DD62pLNq.js} +24 -24
  211. package/chunk/{StepMemberPersonalInfo-C2lAKxWz.js.map → StepMemberPersonalInfo-DD62pLNq.js.map} +1 -1
  212. package/chunk/{StepMoverPersonalInfo-PaACiqXz.js → StepMoverPersonalInfo-BLVGo4WA.js} +21 -21
  213. package/chunk/{StepMoverPersonalInfo-Bi3P8xzM.js.map → StepMoverPersonalInfo-BLVGo4WA.js.map} +1 -1
  214. package/chunk/{StepMoverPersonalInfo-Bi3P8xzM.js → StepMoverPersonalInfo-RgHhWyvt.js} +21 -21
  215. package/chunk/{StepMoverPersonalInfo-PaACiqXz.js.map → StepMoverPersonalInfo-RgHhWyvt.js.map} +1 -1
  216. package/chunk/{StepOverrideComponent-Dxi0sX5t.js → StepOverrideComponent-BBwMFjKP.js} +7 -7
  217. package/chunk/{StepOverrideComponent-B_6eLxRe.js.map → StepOverrideComponent-BBwMFjKP.js.map} +1 -1
  218. package/chunk/{StepOverrideComponent-B_6eLxRe.js → StepOverrideComponent-C0gkuJTU.js} +7 -7
  219. package/chunk/{StepOverrideComponent-Dxi0sX5t.js.map → StepOverrideComponent-C0gkuJTU.js.map} +1 -1
  220. package/chunk/{StepSMSLoop-CQrkgelG.js → StepSMSLoop-CClLLG5y.js} +5 -5
  221. package/chunk/{StepSMSLoop-CQrkgelG.js.map → StepSMSLoop-CClLLG5y.js.map} +1 -1
  222. package/chunk/{StepSMSLoop-R68G4Wba.js → StepSMSLoop-CLyXQmON.js} +5 -5
  223. package/chunk/{StepSMSLoop-R68G4Wba.js.map → StepSMSLoop-CLyXQmON.js.map} +1 -1
  224. package/chunk/StepSSO-BGHCbduX.js +4 -4
  225. package/chunk/StepSSO-ZHByQpHa.js +4 -4
  226. package/chunk/{StepSocialSecurityNumber-Cc_aNnOy.js → StepSocialSecurityNumber-C7WCFboD.js} +11 -11
  227. package/chunk/{StepSocialSecurityNumber-Bw74kdv1.js.map → StepSocialSecurityNumber-C7WCFboD.js.map} +1 -1
  228. package/chunk/{StepSocialSecurityNumber-Bw74kdv1.js → StepSocialSecurityNumber-DORTk9EQ.js} +11 -11
  229. package/chunk/{StepSocialSecurityNumber-Cc_aNnOy.js.map → StepSocialSecurityNumber-DORTk9EQ.js.map} +1 -1
  230. package/chunk/{StepStudentPersonalInfo-uhK23XMF.js → StepStudentPersonalInfo-Bi5S_ykn.js} +69 -74
  231. package/chunk/StepStudentPersonalInfo-Bi5S_ykn.js.map +1 -0
  232. package/chunk/{StepStudentPersonalInfo-DuFw8izC.js → StepStudentPersonalInfo-DoQ_K574.js} +69 -74
  233. package/chunk/StepStudentPersonalInfo-DoQ_K574.js.map +1 -0
  234. package/chunk/{StepSuccess-CKt_BMjW.js → StepSuccess-CJuSM1ZK.js} +7 -7
  235. package/chunk/{StepSuccess-CKt_BMjW.js.map → StepSuccess-CJuSM1ZK.js.map} +1 -1
  236. package/chunk/{StepSuccess-B9ZroXYj.js → StepSuccess-C_qFXDR2.js} +7 -7
  237. package/chunk/{StepSuccess-B9ZroXYj.js.map → StepSuccess-C_qFXDR2.js.map} +1 -1
  238. package/chunk/{StepTeacherPersonalInfo-BsiSorRf.js → StepTeacherPersonalInfo-BMJi4dXH.js} +25 -25
  239. package/chunk/{StepTeacherPersonalInfo-BsiSorRf.js.map → StepTeacherPersonalInfo-BMJi4dXH.js.map} +1 -1
  240. package/chunk/{StepTeacherPersonalInfo-CUHteKfs.js → StepTeacherPersonalInfo-DtIq1FKy.js} +25 -25
  241. package/chunk/{StepTeacherPersonalInfo-CUHteKfs.js.map → StepTeacherPersonalInfo-DtIq1FKy.js.map} +1 -1
  242. package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
  243. package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
  244. package/chunk/{TeacherSchoolComponent-BKgXQlin.js → TeacherSchoolComponent-INc6t5nM.js} +8 -8
  245. package/chunk/{TeacherSchoolComponent-BKgXQlin.js.map → TeacherSchoolComponent-INc6t5nM.js.map} +1 -1
  246. package/chunk/{TeacherSchoolComponent-B__-He9W.js → TeacherSchoolComponent-P9eOoEkC.js} +8 -8
  247. package/chunk/{TeacherSchoolComponent-B__-He9W.js.map → TeacherSchoolComponent-P9eOoEkC.js.map} +1 -1
  248. package/chunk/TestingRouteOverrides-BbCY31VT.js +4 -4
  249. package/chunk/TestingRouteOverrides-DEu_4afz.js +4 -4
  250. package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
  251. package/chunk/ar-D5CO913q.js +4 -4
  252. package/chunk/bg-1mhA5kYF.js +4 -4
  253. package/chunk/bn-IN-CpDqyRb_.js +4 -4
  254. package/chunk/clsx-CB5rauS5.js +4 -4
  255. package/chunk/countryUtils-2MKDd__w.js +12 -0
  256. package/chunk/{countryUtils-CFTIxZHq.js.map → countryUtils-2MKDd__w.js.map} +1 -1
  257. package/chunk/{countryUtils-CyHB2r3w.js → countryUtils-CRwSXJAo.js} +5 -5
  258. package/chunk/{countryUtils-CyHB2r3w.js.map → countryUtils-CRwSXJAo.js.map} +1 -1
  259. package/chunk/cs-Chh7FAGt.js +4 -4
  260. package/chunk/da-DwrVoxto.js +4 -4
  261. package/chunk/de-IWGZLhgY.js +4 -4
  262. package/chunk/{downshift.esm-DeT5EUQU.js → downshift.esm-BkznXSJa.js} +5 -5
  263. package/chunk/{downshift.esm-CtkqL7IP.js.map → downshift.esm-BkznXSJa.js.map} +1 -1
  264. package/chunk/{downshift.esm-CtkqL7IP.js → downshift.esm-CAOak1io.js} +5 -5
  265. package/chunk/{downshift.esm-DeT5EUQU.js.map → downshift.esm-CAOak1io.js.map} +1 -1
  266. package/chunk/el-DbDcvSPJ.js +4 -4
  267. package/chunk/empties-B034wwK_.js +4 -4
  268. package/chunk/empties-lrCPA-9V.js +4 -4
  269. package/chunk/en-GB-CNQ8Ww2j.js +4 -4
  270. package/chunk/es-ES-DWimqEZ_.js +4 -4
  271. package/chunk/es-qhC-seq5.js +4 -4
  272. package/chunk/et-yF9G-Mym.js +4 -4
  273. package/chunk/eventEmitter-CSG6jR7V.js +4 -4
  274. package/chunk/fa-BcdSf7og.js +4 -4
  275. package/chunk/fi-D-IP_KHm.js +4 -4
  276. package/chunk/fr-BmUuYxk0.js +4 -4
  277. package/chunk/fr-CA-DVQ4xmzZ.js +4 -4
  278. package/chunk/ga-DuZycND3.js +4 -4
  279. package/chunk/hi-IN-l6Rn5Ewm.js +4 -4
  280. package/chunk/hooks-Bu8Px0Ok.js +4 -4
  281. package/chunk/hooks-DSoorQS3.js +4 -4
  282. package/chunk/hr-BtqyDzDB.js +4 -4
  283. package/chunk/hu-C6syKJfb.js +4 -4
  284. package/chunk/id-GgI-Z2a5.js +4 -4
  285. package/chunk/intl-DYOqmiaL.js +4 -4
  286. package/chunk/is-CvmKEON9.js +4 -4
  287. package/chunk/it-CnmveGgC.js +4 -4
  288. package/chunk/iw-DFUYHkxF.js +4 -4
  289. package/chunk/ja-CjVb2tWW.js +4 -4
  290. package/chunk/jsx-runtime-338NbZob.js +4 -4
  291. package/chunk/jsx-runtime-B6t5B3Mb.js +4 -4
  292. package/chunk/kk-Dvz4nK6K.js +4 -4
  293. package/chunk/ko-DzOqBMGC.js +4 -4
  294. package/chunk/lo-C2WPq55d.js +4 -4
  295. package/chunk/lt-BSDYvjTF.js +4 -4
  296. package/chunk/lv-CefDPT-M.js +4 -4
  297. package/chunk/mockProgramTheme-CBqgtg7A.js +4 -4
  298. package/chunk/mocks-BQNtP7qW.js +4 -4
  299. package/chunk/mocks-DC7WJf5c.js +4 -4
  300. package/chunk/ms-BjestZxy.js +4 -4
  301. package/chunk/nl-B1FyUfCT.js +4 -4
  302. package/chunk/nl-BE-CbeAd3nq.js +4 -4
  303. package/chunk/no-Dr633Ddi.js +4 -4
  304. package/chunk/options-DsRV5fwh.js +4 -4
  305. package/chunk/pl-UYTjMIq_.js +4 -4
  306. package/chunk/{programThemeGetters-CVbMoRhw.js → programThemeGetters-VBBOPS4w.js} +5 -5
  307. package/chunk/{programThemeGetters-CVbMoRhw.js.map → programThemeGetters-VBBOPS4w.js.map} +1 -1
  308. package/chunk/{programThemeGetters-DXLr_Q4_.js → programThemeGetters-cPK2r02v.js} +5 -5
  309. package/chunk/{programThemeGetters-DXLr_Q4_.js.map → programThemeGetters-cPK2r02v.js.map} +1 -1
  310. package/chunk/pt-BR-C8SYMT-J.js +4 -4
  311. package/chunk/pt-uH-M3GdN.js +4 -4
  312. package/chunk/refs-Mq0rtW9K.js +4 -4
  313. package/chunk/ro-CAOSXZ7h.js +4 -4
  314. package/chunk/ru-iwYoEydL.js +4 -4
  315. package/chunk/runtimeTypes-B2AGNJMT.js +4 -4
  316. package/chunk/sk-DYYNV3zw.js +4 -4
  317. package/chunk/sl-D_-eeM5N.js +4 -4
  318. package/chunk/sr-BTi9_anL.js +4 -4
  319. package/chunk/{stepComponentHelpers-CvC0Nxhe.js → stepComponentHelpers-J67LZsd0.js} +16 -22
  320. package/chunk/stepComponentHelpers-J67LZsd0.js.map +1 -0
  321. package/chunk/{stepComponentHelpers-HOnoMkIF.js → stepComponentHelpers-hkvp2qUS.js} +16 -22
  322. package/chunk/stepComponentHelpers-hkvp2qUS.js.map +1 -0
  323. package/chunk/strings-DWLVdUcm.js +4 -4
  324. package/chunk/sv-DRwY4shG.js +4 -4
  325. package/chunk/sw-Bvj2mYmM.js +4 -4
  326. package/chunk/ta-CmtaYoNe.js +4 -4
  327. package/chunk/th-12r2yKkJ.js +4 -4
  328. package/chunk/tl-BGNfO7md.js +4 -4
  329. package/chunk/tr-DH2ZSJhs.js +4 -4
  330. package/chunk/uk-CELBZlTd.js +4 -4
  331. package/chunk/ur-MR8DTbmd.js +4 -4
  332. package/chunk/{useCollectFieldsEndpoint-DlHC1_Qi.js → useCollectFieldsEndpoint-0xjc0i8b.js} +6 -6
  333. package/chunk/{useCollectFieldsEndpoint-DlHC1_Qi.js.map → useCollectFieldsEndpoint-0xjc0i8b.js.map} +1 -1
  334. package/chunk/{useCollectFieldsEndpoint-VZhNaKRq.js → useCollectFieldsEndpoint-B2_olsVn.js} +6 -6
  335. package/chunk/{useCollectFieldsEndpoint-VZhNaKRq.js.map → useCollectFieldsEndpoint-B2_olsVn.js.map} +1 -1
  336. package/chunk/useMetrics-C3RIqUJI.js +4 -4
  337. package/chunk/useMetrics-dwc-Zjl_.js +4 -4
  338. package/chunk/vi-DtZ-SqD5.js +4 -4
  339. package/chunk/zh-DjyVyYac.js +4 -4
  340. package/chunk/zh-HK-CN1HarHq.js +4 -4
  341. package/chunk/zu-DPhgIh1z.js +4 -4
  342. package/package.json +1 -1
  343. package/sheerid-install.css +4 -4
  344. package/sheerid-install.js +4 -4
  345. package/sheerid.css +4 -4
  346. package/sheerid.js +38 -38
  347. package/chunk/FormSelectChoice-DiD_fv-5.js.map +0 -1
  348. package/chunk/FormSelectChoice-EuY3K8M7.js.map +0 -1
  349. package/chunk/StepCollectMilitaryPersonalInfoComponent-CCCVPk8-.js +0 -249
  350. package/chunk/StepCollectMilitaryPersonalInfoComponent-CCCVPk8-.js.map +0 -1
  351. package/chunk/StepCollectMilitaryPersonalInfoComponent-JWgkagFS.js +0 -245
  352. package/chunk/StepCollectMilitaryPersonalInfoComponent-JWgkagFS.js.map +0 -1
  353. package/chunk/StepCollectPersonalInfo-BBSf_U2H.js +0 -372
  354. package/chunk/StepCollectPersonalInfo-BBSf_U2H.js.map +0 -1
  355. package/chunk/StepCollectPersonalInfo-C4YFAM36.js +0 -368
  356. package/chunk/StepCollectPersonalInfo-C4YFAM36.js.map +0 -1
  357. package/chunk/StepFirstResponderPersonalInfo-Cti4_9R0.js +0 -187
  358. package/chunk/StepFirstResponderPersonalInfo-Cti4_9R0.js.map +0 -1
  359. package/chunk/StepFirstResponderPersonalInfo-DvnQoYv3.js +0 -183
  360. package/chunk/StepFirstResponderPersonalInfo-DvnQoYv3.js.map +0 -1
  361. package/chunk/StepLicensedProfessionalPersonalInfo-CMXJE07N.js +0 -181
  362. package/chunk/StepLicensedProfessionalPersonalInfo-CMXJE07N.js.map +0 -1
  363. package/chunk/StepLicensedProfessionalPersonalInfo-CvPf_pKl.js +0 -177
  364. package/chunk/StepLicensedProfessionalPersonalInfo-CvPf_pKl.js.map +0 -1
  365. package/chunk/StepLowIncomePersonalInfo-BNRPtMsh.js +0 -234
  366. package/chunk/StepLowIncomePersonalInfo-BNRPtMsh.js.map +0 -1
  367. package/chunk/StepLowIncomePersonalInfo-dAYWpN1Z.js +0 -238
  368. package/chunk/StepLowIncomePersonalInfo-dAYWpN1Z.js.map +0 -1
  369. package/chunk/StepMedicalProfessionalPersonalInfo-D1_DA_oF.js +0 -213
  370. package/chunk/StepMedicalProfessionalPersonalInfo-D1_DA_oF.js.map +0 -1
  371. package/chunk/StepMedicalProfessionalPersonalInfo-DsaYh9dA.js +0 -209
  372. package/chunk/StepMedicalProfessionalPersonalInfo-DsaYh9dA.js.map +0 -1
  373. package/chunk/StepStudentPersonalInfo-DuFw8izC.js.map +0 -1
  374. package/chunk/StepStudentPersonalInfo-uhK23XMF.js.map +0 -1
  375. package/chunk/countryUtils-CFTIxZHq.js +0 -12
  376. package/chunk/stepComponentHelpers-CvC0Nxhe.js.map +0 -1
  377. package/chunk/stepComponentHelpers-HOnoMkIF.js.map +0 -1
@@ -4,16 +4,16 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.293.0
8
- * BUILD_TIMESTAMP: 1790101528001
9
- * BUILD_DATE: Tue Sep 22 2026 18:25:28 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 00fab93cde3d7a4fa864bf23fd76ab6952622776
7
+ * VERSION: 2.294.0
8
+ * BUILD_TIMESTAMP: 1790103575603
9
+ * BUILD_DATE: Tue Sep 22 2026 18:59:35 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: a1ad0e0905912b425daabcd3b9f5df0ba79ebe6c
11
11
  */
12
12
  import { z as e } from "./intl-DYOqmiaL.js";
13
- import { t } from "./programThemeGetters-DXLr_Q4_.js";
13
+ import { t } from "./programThemeGetters-cPK2r02v.js";
14
14
  import { n, t as r } from "./jsx-runtime-B6t5B3Mb.js";
15
- import { n as i, o as a } from "./Message-9U_vSk1g.js";
16
- import { t as o } from "./downshift.esm-DeT5EUQU.js";
15
+ import { n as i, o as a } from "./Message-Boy9Uyy0.js";
16
+ import { t as o } from "./downshift.esm-BkznXSJa.js";
17
17
  import { t as s } from "./clsx-CB5rauS5.js";
18
18
  //#region src/components/FormInputs/Select/SelectList/SelectListComponent.tsx
19
19
  var c = r(), l = 42, u = ({ getItemProps: e, highlightedIndex: t, options: r, itemToString: i }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"ChangeLocaleComponent-DuUnRYy4.js","names":[],"sources":["../../src/components/FormInputs/Select/SelectList/SelectListComponent.tsx","../../src/components/FormInputs/Select/SelectButton/SelectButtonComponent.tsx","../../src/components/FormInputs/Select/SelectComponent.tsx","../../src/components/FormFields/ChangeLocale/icons/LocaleSymbol.tsx","../../src/components/FormFields/ChangeLocale/ChangeLocaleComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\ninterface SelectListProps {\n getItemProps: any;\n highlightedIndex: number;\n itemToString: any;\n options: FormSelectChoice[];\n}\n\nconst ROW_HEIGHT = 42;\n\nconst SelectList = ({ getItemProps, highlightedIndex, options, itemToString }: SelectListProps) => {\n const fullHeight = options.length * ROW_HEIGHT;\n\n const optionWithItemProps = (item: FormSelectChoice, index: number) => (\n <div\n className={`sid-select-list__item ${\n highlightedIndex === index ? \"sid-select-list__item--highlighted\" : \"\"\n }`}\n key={index}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getItemProps({\n index,\n item,\n })}\n >\n {itemToString(options[index])}\n </div>\n );\n\n if (!options || options.length === 0) {\n return (\n <div className=\"sid-select-list__message\">\n <FormattedHTMLMessage id=\"noOptions\" defaultMessage=\"No Options\" />\n </div>\n );\n }\n\n return (\n <div className=\"sid-input-select-list__menu\" style={{ height: Math.min(fullHeight, 280) }}>\n {options.map((option, index) => optionWithItemProps(option, index))}\n </div>\n );\n};\n\nexport const SelectListComponent = SelectList;\n","interface SelectButtonProps {\n getToggleButtonProps: any;\n isOpen: boolean;\n}\n\nconst SelectButton = ({ getToggleButtonProps, isOpen }: SelectButtonProps) => (\n // eslint-disable-next-line react/jsx-props-no-spreading\n <button {...getToggleButtonProps({})} className=\"sid-select-button\" type=\"button\">\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"none\"\n width={16}\n fill=\"transparent\"\n stroke=\"currentColor\"\n strokeWidth=\"3px\"\n transform={isOpen ? \"rotate(180)\" : undefined}\n >\n <path d=\"M1,6 L10,15 L19,6\" />\n </svg>\n </button>\n);\n\nexport const SelectButtonComponent = SelectButton;\n","import type React from \"react\";\nimport clsx from \"clsx\";\nimport { useCombobox } from \"downshift\";\n\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\nimport { SelectListComponent } from \"./SelectList/SelectListComponent\";\nimport { SelectButtonComponent } from \"./SelectButton/SelectButtonComponent\";\n\ninterface SelectProps {\n className?: string;\n isErrored?: boolean;\n onChange: any;\n options: FormSelectChoice[];\n overrideInputClassName?: string;\n placeholder?: string;\n value?: FormSelectChoice;\n DisplayValueDecorator?: React.ReactNode;\n id?: string;\n}\n\nconst itemToString = (item: FormSelectChoice) => (item ? item.label : \"\");\n\nconst Select = ({\n className,\n isErrored = false,\n onChange,\n options,\n overrideInputClassName,\n placeholder = \"\",\n value,\n DisplayValueDecorator,\n id,\n}: SelectProps) => {\n const {\n isOpen,\n getInputProps,\n getMenuProps,\n getToggleButtonProps,\n getItemProps,\n highlightedIndex,\n } = useCombobox({\n id,\n onSelectedItemChange: ({ selectedItem: newSelectedItem }) => onChange(newSelectedItem),\n items: options,\n itemToString,\n initialSelectedItem: value && value.value && value.label ? value : undefined,\n });\n const displayValue = value?.label || \"\";\n\n return (\n <div className={clsx(\"sid-select-list\", className)}>\n <input\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getInputProps()}\n className={`\n sid-l-full-width\n ${overrideInputClassName || \"sid-select-input\"}\n ${isErrored ? \"sid-select-input--error\" : \"\"}\n `}\n placeholder={placeholder}\n readOnly\n />\n\n {displayValue && (\n <span className=\"sid-select-display\">\n {DisplayValueDecorator && DisplayValueDecorator}\n <span aria-hidden>{displayValue}</span>\n <SelectButtonComponent getToggleButtonProps={getToggleButtonProps} isOpen={isOpen} />\n </span>\n )}\n\n {/* eslint-disable-next-line react/jsx-props-no-spreading */}\n <div {...getMenuProps()}>\n {isOpen && (\n <SelectListComponent\n highlightedIndex={highlightedIndex}\n itemToString={itemToString}\n options={options}\n getItemProps={getItemProps}\n />\n )}\n </div>\n </div>\n );\n};\n\nexport const SelectComponent = Select;\n","export const LocaleSymbol = () => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"3.48 3.06 67.67 37.07\"\n aria-hidden=\"true\"\n focusable=\"false\"\n className=\"locale-symbol-svg\"\n >\n <path\n fill=\"currentColor\"\n stroke=\"none\"\n d=\"m 4.53,38.37 -1.05,-1.75 2.56,-0.81 c 4.27,-1.35 9.26,-3.96 12.59,-6.59 0.46,-0.36 0.47,-0.45 0.11,-0.87 -4.36,-5.09 -5.75,-7.32 -7.63,-12.24 l -0.96,-2.51 -2.96,-0.07 -2.96,-0.07 V 11.48 9.5 h 7.81 c 7.41,0 7.8,-0.02 7.56,-0.47 -0.14,-0.26 -0.92,-1.4 -1.73,-2.53 -0.81,-1.13 -1.48,-2.1 -1.48,-2.16 0,-0.05 0.63,-0.33 1.39,-0.61 2.65,-0.98 2.41,-1.04 3.57,0.8 0.58,0.92 1.43,2.41 1.89,3.32 l 0.83,1.65 h 7.54 7.54 v 1.98 1.98 l -2.98,0.07 -2.98,0.07 -0.61,1.72 c -1.44,4.04 -4.11,8.89 -6.44,11.68 -0.56,0.68 -1.02,1.39 -1.02,1.59 0,0.42 4,3.14 6.89,4.7 1.1,0.59 3.3,1.62 4.89,2.28 1.59,0.67 2.94,1.26 3,1.32 0.09,0.09 -0.54,1.14 -1.84,3.1 -0.39,0.59 -8.46,-3.29 -12.5,-6.02 -3.87,-2.62 -3.41,-2.46 -4.65,-1.57 -4.56,3.28 -7.64,4.93 -12.51,6.7 l -2.83,1.03 z M 23.84,23.73 c 1.66,-2.24 4.6,-7.89 4.9,-9.4 l 0.17,-0.86 h -7.34 -7.34 l 0.17,0.86 c 0.25,1.27 2.39,5.4 3.73,7.19 1.67,2.23 3.57,4.39 3.86,4.39 0.14,0 0.98,-0.98 1.86,-2.17 z M 44.03,35.51 c 0.08,-0.26 2.45,-6.96 5.27,-14.89 l 5.12,-14.42 3.06,-0.07 3.06,-0.07 0.39,1.13 c 0.43,1.23 9.28,26.16 9.86,27.79 l 0.36,0.99 h -2.83 -2.83 l -1.19,-3.77 -1.19,-3.77 -5.56,-0.07 -5.56,-0.07 -1.23,3.78 -1.23,3.78 -2.82,0.08 c -2.6,0.07 -2.81,0.04 -2.67,-0.4 z M 61.64,23.99 c -0.03,-0.54 -3.96,-12.23 -4.13,-12.29 -0.19,-0.06 -4.07,11.52 -4.07,12.16 0,0.11 1.85,0.2 4.1,0.2 2.26,0 4.1,-0.03 4.1,-0.07 z\"\n />\n </svg>\n);\n","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { SelectComponent } from \"@/components/FormInputs/Select/SelectComponent\";\nimport { useMessage } from \"@/components/Message\";\nimport { DEFAULT_LOCALE } from \"@/constants\";\nimport { type FormSelectChoice, type Locale, type VerificationService } from \"@/lib/types/types\";\nimport { getAvailableLocales } from \"@/lib/ProgramTheme/programThemeGetters\";\nimport { useProgramTheme } from \"@/lib/state/contextHooks\";\n\nimport { LocaleSymbol } from \"./icons/LocaleSymbol\";\n\ninterface ChangeLocaleProps {\n value: FormSelectChoice<Locale, string>;\n options: FormSelectChoice<Locale, string>[];\n onChange: (localeChoice: FormSelectChoice) => any;\n}\n\nexport const ChangeLocaleComponent = ({ value, options, onChange }: ChangeLocaleProps) => {\n const { msg } = useMessage();\n const newOptions: FormSelectChoice[] = options.map((option) => ({\n value: option.value,\n label: msg({ id: `locales.${option.value}` }),\n }));\n const id = \"changeLanguageSelector\";\n\n return (\n <div className=\"sid-change-locale\">\n <div className=\"sid-field__label sid-change-locale__label\" id={`${id}-label`}>\n <FormattedHTMLMessage id=\"changeLanguage\" defaultMessage=\"Change language\" />\n </div>\n <SelectComponent\n className=\"sid-change-locale__select\"\n options={newOptions}\n onChange={(locale: FormSelectChoice) => onChange(locale)}\n DisplayValueDecorator={<LocaleSymbol />}\n overrideInputClassName=\"sid-change-locale__input\"\n value={newOptions.find((option) => option.value === (value && value.value))}\n id={id}\n />\n </div>\n );\n};\n\n/**\n * This V2 component wraps the original one\n * It only takes verificationService as a prop for easier/slimmer invocation and to ensure locale ends up in the viewModel\n */\ninterface ChangeLocaleV2Props {\n verificationService: VerificationService;\n}\n\nexport const ChangeLocaleV2Component = ({ verificationService }: ChangeLocaleV2Props) => {\n const { msg } = useMessage();\n const programTheme = useProgramTheme();\n const localeChoices: FormSelectChoice<Locale, string>[] = getAvailableLocales(programTheme).map(\n (locale) => ({\n value: locale,\n label: msg({ id: `locales.${locale}` }),\n }),\n );\n\n const updateLocale = (localeChoice: FormSelectChoice<Locale, string>) => {\n if (!localeChoice?.value) return;\n if (verificationService.viewModel.localeChoice.value === localeChoice.value) return;\n\n verificationService.updateLocale(\n localeChoice.value,\n verificationService.verificationResponse.segment,\n );\n };\n\n if (localeChoices.length <= 1) {\n return null;\n }\n\n const defaultLocaleChoice: FormSelectChoice<Locale, string> = {\n value: DEFAULT_LOCALE,\n label: \"English\",\n };\n\n return (\n <ChangeLocaleComponent\n options={localeChoices}\n value={verificationService.viewModel.localeChoice || defaultLocaleChoice}\n onChange={(localeChoice: FormSelectChoice<Locale, string>) => updateLocale(localeChoice)}\n />\n );\n};\n"],"mappings":";;;;;;;aAWM,IAAa,IAoCN,KAlCO,EAAE,iBAAc,qBAAkB,YAAS,sBAAoC;CACjG,IAAM,IAAa,EAAQ,SAAS,GAE9B,KAAuB,GAAwB,MACnD,iBAAA,GAAA,EAAA,KAAC,OAAD;EACE,WAAW,yBACT,MAAqB,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B,iBAAA,GAAA,EAAA,KAAC,GAAD,CAAe,CAAA;GACtC,wBAAuB;GACvB,OAAO,EAAW,MAAM,MAAW,EAAO,WAAW,KAAS,EAAM,MAAM;GACtE;EACL,CAAA,CACE;;AAET,GAUa,KAA2B,EAAE,6BAA+C;CACvF,IAAM,EAAE,WAAQ,EAAW,GAErB,IAAoD,EADrC,EACyD,CAAY,EAAE,KACzF,OAAY;EACX,OAAO;EACP,OAAO,EAAI,EAAE,IAAI,WAAW,IAAS,CAAC;CACxC,EACF,GAEM,KAAgB,MAAmD;EAClE,GAAc,SACf,EAAoB,UAAU,aAAa,UAAU,EAAa,SAEtE,EAAoB,aAClB,EAAa,OACb,EAAoB,qBAAqB,OAC3C;CACF;CAEA,IAAI,EAAc,UAAU,GAC1B,OAAO;CAGT,IAAM,IAAwD;EAC5D,OAAO;EACP,OAAO;CACT;CAEA,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAS;EACT,OAAO,EAAoB,UAAU,gBAAgB;EACrD,WAAW,MAAmD,EAAa,CAAY;CACxF,CAAA;AAEL"}
1
+ {"version":3,"file":"ChangeLocaleComponent-B8ZVvEiq.js","names":[],"sources":["../../src/components/FormInputs/Select/SelectList/SelectListComponent.tsx","../../src/components/FormInputs/Select/SelectButton/SelectButtonComponent.tsx","../../src/components/FormInputs/Select/SelectComponent.tsx","../../src/components/FormFields/ChangeLocale/icons/LocaleSymbol.tsx","../../src/components/FormFields/ChangeLocale/ChangeLocaleComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\ninterface SelectListProps {\n getItemProps: any;\n highlightedIndex: number;\n itemToString: any;\n options: FormSelectChoice[];\n}\n\nconst ROW_HEIGHT = 42;\n\nconst SelectList = ({ getItemProps, highlightedIndex, options, itemToString }: SelectListProps) => {\n const fullHeight = options.length * ROW_HEIGHT;\n\n const optionWithItemProps = (item: FormSelectChoice, index: number) => (\n <div\n className={`sid-select-list__item ${\n highlightedIndex === index ? \"sid-select-list__item--highlighted\" : \"\"\n }`}\n key={index}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getItemProps({\n index,\n item,\n })}\n >\n {itemToString(options[index])}\n </div>\n );\n\n if (!options || options.length === 0) {\n return (\n <div className=\"sid-select-list__message\">\n <FormattedHTMLMessage id=\"noOptions\" defaultMessage=\"No Options\" />\n </div>\n );\n }\n\n return (\n <div className=\"sid-input-select-list__menu\" style={{ height: Math.min(fullHeight, 280) }}>\n {options.map((option, index) => optionWithItemProps(option, index))}\n </div>\n );\n};\n\nexport const SelectListComponent = SelectList;\n","interface SelectButtonProps {\n getToggleButtonProps: any;\n isOpen: boolean;\n}\n\nconst SelectButton = ({ getToggleButtonProps, isOpen }: SelectButtonProps) => (\n // eslint-disable-next-line react/jsx-props-no-spreading\n <button {...getToggleButtonProps({})} className=\"sid-select-button\" type=\"button\">\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"none\"\n width={16}\n fill=\"transparent\"\n stroke=\"currentColor\"\n strokeWidth=\"3px\"\n transform={isOpen ? \"rotate(180)\" : undefined}\n >\n <path d=\"M1,6 L10,15 L19,6\" />\n </svg>\n </button>\n);\n\nexport const SelectButtonComponent = SelectButton;\n","import type React from \"react\";\nimport clsx from \"clsx\";\nimport { useCombobox } from \"downshift\";\n\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\nimport { SelectListComponent } from \"./SelectList/SelectListComponent\";\nimport { SelectButtonComponent } from \"./SelectButton/SelectButtonComponent\";\n\ninterface SelectProps {\n className?: string;\n isErrored?: boolean;\n onChange: any;\n options: FormSelectChoice[];\n overrideInputClassName?: string;\n placeholder?: string;\n value?: FormSelectChoice;\n DisplayValueDecorator?: React.ReactNode;\n id?: string;\n}\n\nconst itemToString = (item: FormSelectChoice) => (item ? item.label : \"\");\n\nconst Select = ({\n className,\n isErrored = false,\n onChange,\n options,\n overrideInputClassName,\n placeholder = \"\",\n value,\n DisplayValueDecorator,\n id,\n}: SelectProps) => {\n const {\n isOpen,\n getInputProps,\n getMenuProps,\n getToggleButtonProps,\n getItemProps,\n highlightedIndex,\n } = useCombobox({\n id,\n onSelectedItemChange: ({ selectedItem: newSelectedItem }) => onChange(newSelectedItem),\n items: options,\n itemToString,\n initialSelectedItem: value && value.value && value.label ? value : undefined,\n });\n const displayValue = value?.label || \"\";\n\n return (\n <div className={clsx(\"sid-select-list\", className)}>\n <input\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getInputProps()}\n className={`\n sid-l-full-width\n ${overrideInputClassName || \"sid-select-input\"}\n ${isErrored ? \"sid-select-input--error\" : \"\"}\n `}\n placeholder={placeholder}\n readOnly\n />\n\n {displayValue && (\n <span className=\"sid-select-display\">\n {DisplayValueDecorator && DisplayValueDecorator}\n <span aria-hidden>{displayValue}</span>\n <SelectButtonComponent getToggleButtonProps={getToggleButtonProps} isOpen={isOpen} />\n </span>\n )}\n\n {/* eslint-disable-next-line react/jsx-props-no-spreading */}\n <div {...getMenuProps()}>\n {isOpen && (\n <SelectListComponent\n highlightedIndex={highlightedIndex}\n itemToString={itemToString}\n options={options}\n getItemProps={getItemProps}\n />\n )}\n </div>\n </div>\n );\n};\n\nexport const SelectComponent = Select;\n","export const LocaleSymbol = () => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"3.48 3.06 67.67 37.07\"\n aria-hidden=\"true\"\n focusable=\"false\"\n className=\"locale-symbol-svg\"\n >\n <path\n fill=\"currentColor\"\n stroke=\"none\"\n d=\"m 4.53,38.37 -1.05,-1.75 2.56,-0.81 c 4.27,-1.35 9.26,-3.96 12.59,-6.59 0.46,-0.36 0.47,-0.45 0.11,-0.87 -4.36,-5.09 -5.75,-7.32 -7.63,-12.24 l -0.96,-2.51 -2.96,-0.07 -2.96,-0.07 V 11.48 9.5 h 7.81 c 7.41,0 7.8,-0.02 7.56,-0.47 -0.14,-0.26 -0.92,-1.4 -1.73,-2.53 -0.81,-1.13 -1.48,-2.1 -1.48,-2.16 0,-0.05 0.63,-0.33 1.39,-0.61 2.65,-0.98 2.41,-1.04 3.57,0.8 0.58,0.92 1.43,2.41 1.89,3.32 l 0.83,1.65 h 7.54 7.54 v 1.98 1.98 l -2.98,0.07 -2.98,0.07 -0.61,1.72 c -1.44,4.04 -4.11,8.89 -6.44,11.68 -0.56,0.68 -1.02,1.39 -1.02,1.59 0,0.42 4,3.14 6.89,4.7 1.1,0.59 3.3,1.62 4.89,2.28 1.59,0.67 2.94,1.26 3,1.32 0.09,0.09 -0.54,1.14 -1.84,3.1 -0.39,0.59 -8.46,-3.29 -12.5,-6.02 -3.87,-2.62 -3.41,-2.46 -4.65,-1.57 -4.56,3.28 -7.64,4.93 -12.51,6.7 l -2.83,1.03 z M 23.84,23.73 c 1.66,-2.24 4.6,-7.89 4.9,-9.4 l 0.17,-0.86 h -7.34 -7.34 l 0.17,0.86 c 0.25,1.27 2.39,5.4 3.73,7.19 1.67,2.23 3.57,4.39 3.86,4.39 0.14,0 0.98,-0.98 1.86,-2.17 z M 44.03,35.51 c 0.08,-0.26 2.45,-6.96 5.27,-14.89 l 5.12,-14.42 3.06,-0.07 3.06,-0.07 0.39,1.13 c 0.43,1.23 9.28,26.16 9.86,27.79 l 0.36,0.99 h -2.83 -2.83 l -1.19,-3.77 -1.19,-3.77 -5.56,-0.07 -5.56,-0.07 -1.23,3.78 -1.23,3.78 -2.82,0.08 c -2.6,0.07 -2.81,0.04 -2.67,-0.4 z M 61.64,23.99 c -0.03,-0.54 -3.96,-12.23 -4.13,-12.29 -0.19,-0.06 -4.07,11.52 -4.07,12.16 0,0.11 1.85,0.2 4.1,0.2 2.26,0 4.1,-0.03 4.1,-0.07 z\"\n />\n </svg>\n);\n","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { SelectComponent } from \"@/components/FormInputs/Select/SelectComponent\";\nimport { useMessage } from \"@/components/Message\";\nimport { DEFAULT_LOCALE } from \"@/constants\";\nimport { type FormSelectChoice, type Locale, type VerificationService } from \"@/lib/types/types\";\nimport { getAvailableLocales } from \"@/lib/ProgramTheme/programThemeGetters\";\nimport { useProgramTheme } from \"@/lib/state/contextHooks\";\n\nimport { LocaleSymbol } from \"./icons/LocaleSymbol\";\n\ninterface ChangeLocaleProps {\n value: FormSelectChoice<Locale, string>;\n options: FormSelectChoice<Locale, string>[];\n onChange: (localeChoice: FormSelectChoice) => any;\n}\n\nexport const ChangeLocaleComponent = ({ value, options, onChange }: ChangeLocaleProps) => {\n const { msg } = useMessage();\n const newOptions: FormSelectChoice[] = options.map((option) => ({\n value: option.value,\n label: msg({ id: `locales.${option.value}` }),\n }));\n const id = \"changeLanguageSelector\";\n\n return (\n <div className=\"sid-change-locale\">\n <div className=\"sid-field__label sid-change-locale__label\" id={`${id}-label`}>\n <FormattedHTMLMessage id=\"changeLanguage\" defaultMessage=\"Change language\" />\n </div>\n <SelectComponent\n className=\"sid-change-locale__select\"\n options={newOptions}\n onChange={(locale: FormSelectChoice) => onChange(locale)}\n DisplayValueDecorator={<LocaleSymbol />}\n overrideInputClassName=\"sid-change-locale__input\"\n value={newOptions.find((option) => option.value === (value && value.value))}\n id={id}\n />\n </div>\n );\n};\n\n/**\n * This V2 component wraps the original one\n * It only takes verificationService as a prop for easier/slimmer invocation and to ensure locale ends up in the viewModel\n */\ninterface ChangeLocaleV2Props {\n verificationService: VerificationService;\n}\n\nexport const ChangeLocaleV2Component = ({ verificationService }: ChangeLocaleV2Props) => {\n const { msg } = useMessage();\n const programTheme = useProgramTheme();\n const localeChoices: FormSelectChoice<Locale, string>[] = getAvailableLocales(programTheme).map(\n (locale) => ({\n value: locale,\n label: msg({ id: `locales.${locale}` }),\n }),\n );\n\n const updateLocale = (localeChoice: FormSelectChoice<Locale, string>) => {\n if (!localeChoice?.value) return;\n if (verificationService.viewModel.localeChoice.value === localeChoice.value) return;\n\n verificationService.updateLocale(\n localeChoice.value,\n verificationService.verificationResponse.segment,\n );\n };\n\n if (localeChoices.length <= 1) {\n return null;\n }\n\n const defaultLocaleChoice: FormSelectChoice<Locale, string> = {\n value: DEFAULT_LOCALE,\n label: \"English\",\n };\n\n return (\n <ChangeLocaleComponent\n options={localeChoices}\n value={verificationService.viewModel.localeChoice || defaultLocaleChoice}\n onChange={(localeChoice: FormSelectChoice<Locale, string>) => updateLocale(localeChoice)}\n />\n );\n};\n"],"mappings":";;;;;;;aAWM,IAAa,IAoCN,KAlCO,EAAE,iBAAc,qBAAkB,YAAS,sBAAoC;CACjG,IAAM,IAAa,EAAQ,SAAS,GAE9B,KAAuB,GAAwB,MACnD,iBAAA,GAAA,EAAA,KAAC,OAAD;EACE,WAAW,yBACT,MAAqB,IAAQ,uCAAuC;EAItE,GAAI,EAAa;GACf;GACA;EACF,CAAC;YAEA,EAAa,EAAQ,EAAM;CACzB,GARE,CAQF;CAWP,OARI,CAAC,KAAW,EAAQ,WAAW,IAE/B,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,WAAU;YACb,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAY,gBAAe;EAAc,CAAA;CAC/D,CAAA,IAKP,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,WAAU;EAA8B,OAAO,EAAE,QAAQ,KAAK,IAAI,GAAY,GAAG,EAAE;YACrF,EAAQ,KAAK,GAAQ,MAAU,EAAoB,GAAQ,CAAK,CAAC;CAC/D,CAAA;AAET,GCvBa,KAjBS,EAAE,yBAAsB,gBAE5C,iBAAA,GAAA,EAAA,KAAC,UAAD;CAAQ,GAAI,EAAqB,CAAC,CAAC;CAAG,WAAU;CAAoB,MAAK;WACvE,iBAAA,GAAA,EAAA,KAAC,OAAD;EACE,SAAQ;EACR,qBAAoB;EACpB,OAAO;EACP,MAAK;EACL,QAAO;EACP,aAAY;EACZ,WAAW,IAAS,gBAAgB,KAAA;YAEpC,iBAAA,GAAA,EAAA,KAAC,QAAD,EAAM,GAAE,oBAAqB,CAAA;CAC1B,CAAA;AACC,CAAA,GCEJ,KAAgB,MA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* BUILD_COMMIT: 00fab93cde3d7a4fa864bf23fd76ab6952622776
3
+ * VERSION: 2.294.0
4
+ * BUILD_TIMESTAMP: 1790103571452
5
+ * BUILD_DATE: Tue Sep 22 2026 18:59:31 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: a1ad0e0905912b425daabcd3b9f5df0ba79ebe6c
7
7
  */
8
8
  import { L as e } from "./options-DsRV5fwh.js";
9
9
  import { n as t, t as n } from "./jsx-runtime-338NbZob.js";
10
- import { n as r, o as i } from "./Message-CEUCVZmr.js";
11
- import { t as a } from "./programThemeGetters-CVbMoRhw.js";
12
- import { t as o } from "./downshift.esm-CtkqL7IP.js";
10
+ import { n as r, o as i } from "./Message-DvgmOZft.js";
11
+ import { t as a } from "./programThemeGetters-VBBOPS4w.js";
12
+ import { t as o } from "./downshift.esm-CAOak1io.js";
13
13
  import { t as s } from "./clsx-CB5rauS5.js";
14
14
  //#region src/components/FormInputs/Select/SelectList/SelectListComponent.tsx
15
15
  var c = n(), l = 42, u = ({ getItemProps: e, highlightedIndex: n, options: r, itemToString: i }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"ChangeLocaleComponent-ZNY5d0nd.js","names":[],"sources":["../../src/components/FormInputs/Select/SelectList/SelectListComponent.tsx","../../src/components/FormInputs/Select/SelectButton/SelectButtonComponent.tsx","../../src/components/FormInputs/Select/SelectComponent.tsx","../../src/components/FormFields/ChangeLocale/icons/LocaleSymbol.tsx","../../src/components/FormFields/ChangeLocale/ChangeLocaleComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\ninterface SelectListProps {\n getItemProps: any;\n highlightedIndex: number;\n itemToString: any;\n options: FormSelectChoice[];\n}\n\nconst ROW_HEIGHT = 42;\n\nconst SelectList = ({ getItemProps, highlightedIndex, options, itemToString }: SelectListProps) => {\n const fullHeight = options.length * ROW_HEIGHT;\n\n const optionWithItemProps = (item: FormSelectChoice, index: number) => (\n <div\n className={`sid-select-list__item ${\n highlightedIndex === index ? \"sid-select-list__item--highlighted\" : \"\"\n }`}\n key={index}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getItemProps({\n index,\n item,\n })}\n >\n {itemToString(options[index])}\n </div>\n );\n\n if (!options || options.length === 0) {\n return (\n <div className=\"sid-select-list__message\">\n <FormattedHTMLMessage id=\"noOptions\" defaultMessage=\"No Options\" />\n </div>\n );\n }\n\n return (\n <div className=\"sid-input-select-list__menu\" style={{ height: Math.min(fullHeight, 280) }}>\n {options.map((option, index) => optionWithItemProps(option, index))}\n </div>\n );\n};\n\nexport const SelectListComponent = SelectList;\n","interface SelectButtonProps {\n getToggleButtonProps: any;\n isOpen: boolean;\n}\n\nconst SelectButton = ({ getToggleButtonProps, isOpen }: SelectButtonProps) => (\n // eslint-disable-next-line react/jsx-props-no-spreading\n <button {...getToggleButtonProps({})} className=\"sid-select-button\" type=\"button\">\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"none\"\n width={16}\n fill=\"transparent\"\n stroke=\"currentColor\"\n strokeWidth=\"3px\"\n transform={isOpen ? \"rotate(180)\" : undefined}\n >\n <path d=\"M1,6 L10,15 L19,6\" />\n </svg>\n </button>\n);\n\nexport const SelectButtonComponent = SelectButton;\n","import type React from \"react\";\nimport clsx from \"clsx\";\nimport { useCombobox } from \"downshift\";\n\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\nimport { SelectListComponent } from \"./SelectList/SelectListComponent\";\nimport { SelectButtonComponent } from \"./SelectButton/SelectButtonComponent\";\n\ninterface SelectProps {\n className?: string;\n isErrored?: boolean;\n onChange: any;\n options: FormSelectChoice[];\n overrideInputClassName?: string;\n placeholder?: string;\n value?: FormSelectChoice;\n DisplayValueDecorator?: React.ReactNode;\n id?: string;\n}\n\nconst itemToString = (item: FormSelectChoice) => (item ? item.label : \"\");\n\nconst Select = ({\n className,\n isErrored = false,\n onChange,\n options,\n overrideInputClassName,\n placeholder = \"\",\n value,\n DisplayValueDecorator,\n id,\n}: SelectProps) => {\n const {\n isOpen,\n getInputProps,\n getMenuProps,\n getToggleButtonProps,\n getItemProps,\n highlightedIndex,\n } = useCombobox({\n id,\n onSelectedItemChange: ({ selectedItem: newSelectedItem }) => onChange(newSelectedItem),\n items: options,\n itemToString,\n initialSelectedItem: value && value.value && value.label ? value : undefined,\n });\n const displayValue = value?.label || \"\";\n\n return (\n <div className={clsx(\"sid-select-list\", className)}>\n <input\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getInputProps()}\n className={`\n sid-l-full-width\n ${overrideInputClassName || \"sid-select-input\"}\n ${isErrored ? \"sid-select-input--error\" : \"\"}\n `}\n placeholder={placeholder}\n readOnly\n />\n\n {displayValue && (\n <span className=\"sid-select-display\">\n {DisplayValueDecorator && DisplayValueDecorator}\n <span aria-hidden>{displayValue}</span>\n <SelectButtonComponent getToggleButtonProps={getToggleButtonProps} isOpen={isOpen} />\n </span>\n )}\n\n {/* eslint-disable-next-line react/jsx-props-no-spreading */}\n <div {...getMenuProps()}>\n {isOpen && (\n <SelectListComponent\n highlightedIndex={highlightedIndex}\n itemToString={itemToString}\n options={options}\n getItemProps={getItemProps}\n />\n )}\n </div>\n </div>\n );\n};\n\nexport const SelectComponent = Select;\n","export const LocaleSymbol = () => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"3.48 3.06 67.67 37.07\"\n aria-hidden=\"true\"\n focusable=\"false\"\n className=\"locale-symbol-svg\"\n >\n <path\n fill=\"currentColor\"\n stroke=\"none\"\n d=\"m 4.53,38.37 -1.05,-1.75 2.56,-0.81 c 4.27,-1.35 9.26,-3.96 12.59,-6.59 0.46,-0.36 0.47,-0.45 0.11,-0.87 -4.36,-5.09 -5.75,-7.32 -7.63,-12.24 l -0.96,-2.51 -2.96,-0.07 -2.96,-0.07 V 11.48 9.5 h 7.81 c 7.41,0 7.8,-0.02 7.56,-0.47 -0.14,-0.26 -0.92,-1.4 -1.73,-2.53 -0.81,-1.13 -1.48,-2.1 -1.48,-2.16 0,-0.05 0.63,-0.33 1.39,-0.61 2.65,-0.98 2.41,-1.04 3.57,0.8 0.58,0.92 1.43,2.41 1.89,3.32 l 0.83,1.65 h 7.54 7.54 v 1.98 1.98 l -2.98,0.07 -2.98,0.07 -0.61,1.72 c -1.44,4.04 -4.11,8.89 -6.44,11.68 -0.56,0.68 -1.02,1.39 -1.02,1.59 0,0.42 4,3.14 6.89,4.7 1.1,0.59 3.3,1.62 4.89,2.28 1.59,0.67 2.94,1.26 3,1.32 0.09,0.09 -0.54,1.14 -1.84,3.1 -0.39,0.59 -8.46,-3.29 -12.5,-6.02 -3.87,-2.62 -3.41,-2.46 -4.65,-1.57 -4.56,3.28 -7.64,4.93 -12.51,6.7 l -2.83,1.03 z M 23.84,23.73 c 1.66,-2.24 4.6,-7.89 4.9,-9.4 l 0.17,-0.86 h -7.34 -7.34 l 0.17,0.86 c 0.25,1.27 2.39,5.4 3.73,7.19 1.67,2.23 3.57,4.39 3.86,4.39 0.14,0 0.98,-0.98 1.86,-2.17 z M 44.03,35.51 c 0.08,-0.26 2.45,-6.96 5.27,-14.89 l 5.12,-14.42 3.06,-0.07 3.06,-0.07 0.39,1.13 c 0.43,1.23 9.28,26.16 9.86,27.79 l 0.36,0.99 h -2.83 -2.83 l -1.19,-3.77 -1.19,-3.77 -5.56,-0.07 -5.56,-0.07 -1.23,3.78 -1.23,3.78 -2.82,0.08 c -2.6,0.07 -2.81,0.04 -2.67,-0.4 z M 61.64,23.99 c -0.03,-0.54 -3.96,-12.23 -4.13,-12.29 -0.19,-0.06 -4.07,11.52 -4.07,12.16 0,0.11 1.85,0.2 4.1,0.2 2.26,0 4.1,-0.03 4.1,-0.07 z\"\n />\n </svg>\n);\n","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { SelectComponent } from \"@/components/FormInputs/Select/SelectComponent\";\nimport { useMessage } from \"@/components/Message\";\nimport { DEFAULT_LOCALE } from \"@/constants\";\nimport { type FormSelectChoice, type Locale, type VerificationService } from \"@/lib/types/types\";\nimport { getAvailableLocales } from \"@/lib/ProgramTheme/programThemeGetters\";\nimport { useProgramTheme } from \"@/lib/state/contextHooks\";\n\nimport { LocaleSymbol } from \"./icons/LocaleSymbol\";\n\ninterface ChangeLocaleProps {\n value: FormSelectChoice<Locale, string>;\n options: FormSelectChoice<Locale, string>[];\n onChange: (localeChoice: FormSelectChoice) => any;\n}\n\nexport const ChangeLocaleComponent = ({ value, options, onChange }: ChangeLocaleProps) => {\n const { msg } = useMessage();\n const newOptions: FormSelectChoice[] = options.map((option) => ({\n value: option.value,\n label: msg({ id: `locales.${option.value}` }),\n }));\n const id = \"changeLanguageSelector\";\n\n return (\n <div className=\"sid-change-locale\">\n <div className=\"sid-field__label sid-change-locale__label\" id={`${id}-label`}>\n <FormattedHTMLMessage id=\"changeLanguage\" defaultMessage=\"Change language\" />\n </div>\n <SelectComponent\n className=\"sid-change-locale__select\"\n options={newOptions}\n onChange={(locale: FormSelectChoice) => onChange(locale)}\n DisplayValueDecorator={<LocaleSymbol />}\n overrideInputClassName=\"sid-change-locale__input\"\n value={newOptions.find((option) => option.value === (value && value.value))}\n id={id}\n />\n </div>\n );\n};\n\n/**\n * This V2 component wraps the original one\n * It only takes verificationService as a prop for easier/slimmer invocation and to ensure locale ends up in the viewModel\n */\ninterface ChangeLocaleV2Props {\n verificationService: VerificationService;\n}\n\nexport const ChangeLocaleV2Component = ({ verificationService }: ChangeLocaleV2Props) => {\n const { msg } = useMessage();\n const programTheme = useProgramTheme();\n const localeChoices: FormSelectChoice<Locale, string>[] = getAvailableLocales(programTheme).map(\n (locale) => ({\n value: locale,\n label: msg({ id: `locales.${locale}` }),\n }),\n );\n\n const updateLocale = (localeChoice: FormSelectChoice<Locale, string>) => {\n if (!localeChoice?.value) return;\n if (verificationService.viewModel.localeChoice.value === localeChoice.value) return;\n\n verificationService.updateLocale(\n localeChoice.value,\n verificationService.verificationResponse.segment,\n );\n };\n\n if (localeChoices.length <= 1) {\n return null;\n }\n\n const defaultLocaleChoice: FormSelectChoice<Locale, string> = {\n value: DEFAULT_LOCALE,\n label: \"English\",\n };\n\n return (\n <ChangeLocaleComponent\n options={localeChoices}\n value={verificationService.viewModel.localeChoice || defaultLocaleChoice}\n onChange={(localeChoice: FormSelectChoice<Locale, string>) => updateLocale(localeChoice)}\n />\n );\n};\n"],"mappings":";;;;;;;aAWM,IAAa,IAoCN,KAlCO,EAAE,iBAAc,qBAAkB,YAAS,sBAAoC;CACjG,IAAM,IAAa,EAAQ,SAAS,GAE9B,KAAuB,GAAwB,MACnD,iBAAA,GAAA,EAAA,KAAC,OAAD;EACE,WAAW,yBACT,MAAqB,IAAQ,uCAAuC;EAItE,GAAI,EAAa;GACf;GACA;EACF,CAAC;YAEA,EAAa,EAAQ,EAAM;CACzB,GARE,CAQF;CAWP,OARI,CAAC,KAAW,EAAQ,WAAW,IAE/B,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,WAAU;YACb,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAY,gBAAe;EAAc,CAAA;CAC/D,CAAA,IAKP,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,WAAU;EAA8B,OAAO,EAAE,QAAQ,KAAK,IAAI,GAAY,GAAG,EAAE;YACrF,EAAQ,KAAK,GAAQ,MAAU,EAAoB,GAAQ,CAAK,CAAC;CAC/D,CAAA;AAET,GCvBa,KAjBS,EAAE,yBAAsB,gBAE5C,iBAAA,GAAA,EAAA,KAAC,UAAD;CAAQ,GAAI,EAAqB,CAAC,CAAC;CAAG,WAAU;CAAoB,MAAK;WACvE,iBAAA,GAAA,EAAA,KAAC,OAAD;EACE,SAAQ;EACR,qBAAoB;EACpB,OAAO;EACP,MAAK;EACL,QAAO;EACP,aAAY;EACZ,WAAW,IAAS,gBAAgB,KAAA;YAEpC,iBAAA,GAAA,EAAA,KAAC,QAAD,EAAM,GAAE,oBAAqB,CAAA;CAC1B,CAAA;AACC,CAAA,GCE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AC9D,OAAO,EAAO;EACd,OAAO,EAAI,EAAE,IAAI,WAAW,EAAO,QAAQ,CAAC;CAC9C,EAAE,GACI,IAAK;CAEX,OACE,iBAAA,GAAA,EAAA,MAAC,OAAD;EAAK,WAAU;YAAf,CACE,iBAAA,GAAA,EAAA,KAAC,OAAD;GAAK,WAAU;GAA4C,IAAI,GAAG,EAAG;aACnE,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAsB,IAAG;IAAiB,gBAAe;GAAmB,CAAA;EACzE,CAAA,GACL,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,WAAU;GACV,SAAS;GACT,WAAW,MAA6B,EAAS,CAAM;GACvD,uBAAuB,iBAAA,GAAA,EAAA,KAAC,GAAD,CAAe,CAAA;GACtC,wBAAuB;GACvB,OAAO,EAAW,MAAM,MAAW,EAAO,WAAW,KAAS,EAAM,MAAM;GACtE;EACL,CAAA,CACE;;AAET,GAUa,KAA2B,EAAE,6BAA+C;CACvF,IAAM,EAAE,WAAQ,EAAW,GAErB,IAAoD,EADrC,EACyD,CAAY,EAAE,KACzF,OAAY;EACX,OAAO;EACP,OAAO,EAAI,EAAE,IAAI,WAAW,IAAS,CAAC;CACxC,EACF,GAEM,KAAgB,MAAmD;EAClE,GAAc,SACf,EAAoB,UAAU,aAAa,UAAU,EAAa,SAEtE,EAAoB,aAClB,EAAa,OACb,EAAoB,qBAAqB,OAC3C;CACF;CAEA,IAAI,EAAc,UAAU,GAC1B,OAAO;CAGT,IAAM,IAAwD;EAC5D,OAAO;EACP,OAAO;CACT;CAEA,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAS;EACT,OAAO,EAAoB,UAAU,gBAAgB;EACrD,WAAW,MAAmD,EAAa,CAAY;CACxF,CAAA;AAEL"}
1
+ {"version":3,"file":"ChangeLocaleComponent-CGCnqwzm.js","names":[],"sources":["../../src/components/FormInputs/Select/SelectList/SelectListComponent.tsx","../../src/components/FormInputs/Select/SelectButton/SelectButtonComponent.tsx","../../src/components/FormInputs/Select/SelectComponent.tsx","../../src/components/FormFields/ChangeLocale/icons/LocaleSymbol.tsx","../../src/components/FormFields/ChangeLocale/ChangeLocaleComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\ninterface SelectListProps {\n getItemProps: any;\n highlightedIndex: number;\n itemToString: any;\n options: FormSelectChoice[];\n}\n\nconst ROW_HEIGHT = 42;\n\nconst SelectList = ({ getItemProps, highlightedIndex, options, itemToString }: SelectListProps) => {\n const fullHeight = options.length * ROW_HEIGHT;\n\n const optionWithItemProps = (item: FormSelectChoice, index: number) => (\n <div\n className={`sid-select-list__item ${\n highlightedIndex === index ? \"sid-select-list__item--highlighted\" : \"\"\n }`}\n key={index}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getItemProps({\n index,\n item,\n })}\n >\n {itemToString(options[index])}\n </div>\n );\n\n if (!options || options.length === 0) {\n return (\n <div className=\"sid-select-list__message\">\n <FormattedHTMLMessage id=\"noOptions\" defaultMessage=\"No Options\" />\n </div>\n );\n }\n\n return (\n <div className=\"sid-input-select-list__menu\" style={{ height: Math.min(fullHeight, 280) }}>\n {options.map((option, index) => optionWithItemProps(option, index))}\n </div>\n );\n};\n\nexport const SelectListComponent = SelectList;\n","interface SelectButtonProps {\n getToggleButtonProps: any;\n isOpen: boolean;\n}\n\nconst SelectButton = ({ getToggleButtonProps, isOpen }: SelectButtonProps) => (\n // eslint-disable-next-line react/jsx-props-no-spreading\n <button {...getToggleButtonProps({})} className=\"sid-select-button\" type=\"button\">\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"none\"\n width={16}\n fill=\"transparent\"\n stroke=\"currentColor\"\n strokeWidth=\"3px\"\n transform={isOpen ? \"rotate(180)\" : undefined}\n >\n <path d=\"M1,6 L10,15 L19,6\" />\n </svg>\n </button>\n);\n\nexport const SelectButtonComponent = SelectButton;\n","import type React from \"react\";\nimport clsx from \"clsx\";\nimport { useCombobox } from \"downshift\";\n\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\nimport { SelectListComponent } from \"./SelectList/SelectListComponent\";\nimport { SelectButtonComponent } from \"./SelectButton/SelectButtonComponent\";\n\ninterface SelectProps {\n className?: string;\n isErrored?: boolean;\n onChange: any;\n options: FormSelectChoice[];\n overrideInputClassName?: string;\n placeholder?: string;\n value?: FormSelectChoice;\n DisplayValueDecorator?: React.ReactNode;\n id?: string;\n}\n\nconst itemToString = (item: FormSelectChoice) => (item ? item.label : \"\");\n\nconst Select = ({\n className,\n isErrored = false,\n onChange,\n options,\n overrideInputClassName,\n placeholder = \"\",\n value,\n DisplayValueDecorator,\n id,\n}: SelectProps) => {\n const {\n isOpen,\n getInputProps,\n getMenuProps,\n getToggleButtonProps,\n getItemProps,\n highlightedIndex,\n } = useCombobox({\n id,\n onSelectedItemChange: ({ selectedItem: newSelectedItem }) => onChange(newSelectedItem),\n items: options,\n itemToString,\n initialSelectedItem: value && value.value && value.label ? value : undefined,\n });\n const displayValue = value?.label || \"\";\n\n return (\n <div className={clsx(\"sid-select-list\", className)}>\n <input\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getInputProps()}\n className={`\n sid-l-full-width\n ${overrideInputClassName || \"sid-select-input\"}\n ${isErrored ? \"sid-select-input--error\" : \"\"}\n `}\n placeholder={placeholder}\n readOnly\n />\n\n {displayValue && (\n <span className=\"sid-select-display\">\n {DisplayValueDecorator && DisplayValueDecorator}\n <span aria-hidden>{displayValue}</span>\n <SelectButtonComponent getToggleButtonProps={getToggleButtonProps} isOpen={isOpen} />\n </span>\n )}\n\n {/* eslint-disable-next-line react/jsx-props-no-spreading */}\n <div {...getMenuProps()}>\n {isOpen && (\n <SelectListComponent\n highlightedIndex={highlightedIndex}\n itemToString={itemToString}\n options={options}\n getItemProps={getItemProps}\n />\n )}\n </div>\n </div>\n );\n};\n\nexport const SelectComponent = Select;\n","export const LocaleSymbol = () => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"3.48 3.06 67.67 37.07\"\n aria-hidden=\"true\"\n focusable=\"false\"\n className=\"locale-symbol-svg\"\n >\n <path\n fill=\"currentColor\"\n stroke=\"none\"\n d=\"m 4.53,38.37 -1.05,-1.75 2.56,-0.81 c 4.27,-1.35 9.26,-3.96 12.59,-6.59 0.46,-0.36 0.47,-0.45 0.11,-0.87 -4.36,-5.09 -5.75,-7.32 -7.63,-12.24 l -0.96,-2.51 -2.96,-0.07 -2.96,-0.07 V 11.48 9.5 h 7.81 c 7.41,0 7.8,-0.02 7.56,-0.47 -0.14,-0.26 -0.92,-1.4 -1.73,-2.53 -0.81,-1.13 -1.48,-2.1 -1.48,-2.16 0,-0.05 0.63,-0.33 1.39,-0.61 2.65,-0.98 2.41,-1.04 3.57,0.8 0.58,0.92 1.43,2.41 1.89,3.32 l 0.83,1.65 h 7.54 7.54 v 1.98 1.98 l -2.98,0.07 -2.98,0.07 -0.61,1.72 c -1.44,4.04 -4.11,8.89 -6.44,11.68 -0.56,0.68 -1.02,1.39 -1.02,1.59 0,0.42 4,3.14 6.89,4.7 1.1,0.59 3.3,1.62 4.89,2.28 1.59,0.67 2.94,1.26 3,1.32 0.09,0.09 -0.54,1.14 -1.84,3.1 -0.39,0.59 -8.46,-3.29 -12.5,-6.02 -3.87,-2.62 -3.41,-2.46 -4.65,-1.57 -4.56,3.28 -7.64,4.93 -12.51,6.7 l -2.83,1.03 z M 23.84,23.73 c 1.66,-2.24 4.6,-7.89 4.9,-9.4 l 0.17,-0.86 h -7.34 -7.34 l 0.17,0.86 c 0.25,1.27 2.39,5.4 3.73,7.19 1.67,2.23 3.57,4.39 3.86,4.39 0.14,0 0.98,-0.98 1.86,-2.17 z M 44.03,35.51 c 0.08,-0.26 2.45,-6.96 5.27,-14.89 l 5.12,-14.42 3.06,-0.07 3.06,-0.07 0.39,1.13 c 0.43,1.23 9.28,26.16 9.86,27.79 l 0.36,0.99 h -2.83 -2.83 l -1.19,-3.77 -1.19,-3.77 -5.56,-0.07 -5.56,-0.07 -1.23,3.78 -1.23,3.78 -2.82,0.08 c -2.6,0.07 -2.81,0.04 -2.67,-0.4 z M 61.64,23.99 c -0.03,-0.54 -3.96,-12.23 -4.13,-12.29 -0.19,-0.06 -4.07,11.52 -4.07,12.16 0,0.11 1.85,0.2 4.1,0.2 2.26,0 4.1,-0.03 4.1,-0.07 z\"\n />\n </svg>\n);\n","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { SelectComponent } from \"@/components/FormInputs/Select/SelectComponent\";\nimport { useMessage } from \"@/components/Message\";\nimport { DEFAULT_LOCALE } from \"@/constants\";\nimport { type FormSelectChoice, type Locale, type VerificationService } from \"@/lib/types/types\";\nimport { getAvailableLocales } from \"@/lib/ProgramTheme/programThemeGetters\";\nimport { useProgramTheme } from \"@/lib/state/contextHooks\";\n\nimport { LocaleSymbol } from \"./icons/LocaleSymbol\";\n\ninterface ChangeLocaleProps {\n value: FormSelectChoice<Locale, string>;\n options: FormSelectChoice<Locale, string>[];\n onChange: (localeChoice: FormSelectChoice) => any;\n}\n\nexport const ChangeLocaleComponent = ({ value, options, onChange }: ChangeLocaleProps) => {\n const { msg } = useMessage();\n const newOptions: FormSelectChoice[] = options.map((option) => ({\n value: option.value,\n label: msg({ id: `locales.${option.value}` }),\n }));\n const id = \"changeLanguageSelector\";\n\n return (\n <div className=\"sid-change-locale\">\n <div className=\"sid-field__label sid-change-locale__label\" id={`${id}-label`}>\n <FormattedHTMLMessage id=\"changeLanguage\" defaultMessage=\"Change language\" />\n </div>\n <SelectComponent\n className=\"sid-change-locale__select\"\n options={newOptions}\n onChange={(locale: FormSelectChoice) => onChange(locale)}\n DisplayValueDecorator={<LocaleSymbol />}\n overrideInputClassName=\"sid-change-locale__input\"\n value={newOptions.find((option) => option.value === (value && value.value))}\n id={id}\n />\n </div>\n );\n};\n\n/**\n * This V2 component wraps the original one\n * It only takes verificationService as a prop for easier/slimmer invocation and to ensure locale ends up in the viewModel\n */\ninterface ChangeLocaleV2Props {\n verificationService: VerificationService;\n}\n\nexport const ChangeLocaleV2Component = ({ verificationService }: ChangeLocaleV2Props) => {\n const { msg } = useMessage();\n const programTheme = useProgramTheme();\n const localeChoices: FormSelectChoice<Locale, string>[] = getAvailableLocales(programTheme).map(\n (locale) => ({\n value: locale,\n label: msg({ id: `locales.${locale}` }),\n }),\n );\n\n const updateLocale = (localeChoice: FormSelectChoice<Locale, string>) => {\n if (!localeChoice?.value) return;\n if (verificationService.viewModel.localeChoice.value === localeChoice.value) return;\n\n verificationService.updateLocale(\n localeChoice.value,\n verificationService.verificationResponse.segment,\n );\n };\n\n if (localeChoices.length <= 1) {\n return null;\n }\n\n const defaultLocaleChoice: FormSelectChoice<Locale, string> = {\n value: DEFAULT_LOCALE,\n label: \"English\",\n };\n\n return (\n <ChangeLocaleComponent\n options={localeChoices}\n value={verificationService.viewModel.localeChoice || defaultLocaleChoice}\n onChange={(localeChoice: FormSelectChoice<Locale, string>) => updateLocale(localeChoice)}\n />\n );\n};\n"],"mappings":";;;;;;;aAWM,IAAa,IAoCN,KAlCO,EAAE,iBAAc,qBAAkB,YAAS,sBAAoC;CACjG,IAAM,IAAa,EAAQ,SAAS,GAE9B,KAAuB,GAAwB,MACnD,iBAAA,GAAA,EAAA,KAAC,OAAD;EACE,WAAW,yBACT,MAAqB,IAAQ,uCAAuC;EAItE,GAAI,EAAa;GACf;GACA;EACF,CAAC;YAEA,EAAa,EAAQ,EAAM;CACzB,GARE,CAQF;CAWP,OARI,CAAC,KAAW,EAAQ,WAAW,IAE/B,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,WAAU;YACb,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAY,gBAAe;EAAc,CAAA;CAC/D,CAAA,IAKP,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,WAAU;EAA8B,OAAO,EAAE,QAAQ,KAAK,IAAI,GAAY,GAAG,EAAE;YACrF,EAAQ,KAAK,GAAQ,MAA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,aAClB,EAAa,OACb,EAAoB,qBAAqB,OAC3C;CACF;CAEA,IAAI,EAAc,UAAU,GAC1B,OAAO;CAGT,IAAM,IAAwD;EAC5D,OAAO;EACP,OAAO;CACT;CAEA,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAS;EACT,OAAO,EAAoB,UAAU,gBAAgB;EACrD,WAAW,MAAmD,EAAa,CAAY;CACxF,CAAA;AAEL"}
@@ -4,14 +4,14 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.293.0
8
- * BUILD_TIMESTAMP: 1790101528001
9
- * BUILD_DATE: Tue Sep 22 2026 18:25:28 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 00fab93cde3d7a4fa864bf23fd76ab6952622776
7
+ * VERSION: 2.294.0
8
+ * BUILD_TIMESTAMP: 1790103575603
9
+ * BUILD_DATE: Tue Sep 22 2026 18:59:35 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: a1ad0e0905912b425daabcd3b9f5df0ba79ebe6c
11
11
  */
12
12
  import { n as e, t } from "./jsx-runtime-B6t5B3Mb.js";
13
- import { n } from "./Message-9U_vSk1g.js";
14
- import { t as r } from "./stepComponentHelpers-CvC0Nxhe.js";
13
+ import { n } from "./Message-Boy9Uyy0.js";
14
+ import { t as r } from "./stepComponentHelpers-J67LZsd0.js";
15
15
  import { t as i } from "./FormFieldText-5WjD4GNf.js";
16
16
  //#region src/components/FormFields/City/City.tsx
17
17
  var a = t(), o = ({ value: t, isErrored: o, onChange: s, isRequired: c = !1, onKeyDown: l = void 0, placeholder: u = "", disabled: d = !1 }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"City-BAUe7lNj.js","names":[],"sources":["../../src/components/FormFields/City/City.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { FormFieldText } from \"@/components/FormFields/FormFieldText/FormFieldText\";\nimport { type FormFieldComponentProps } from \"@/lib/types/types\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element; // eslint-disable-line\n onKeyDown?: Function;\n}\n\nexport const CityComponent = ({\n value,\n isErrored,\n onChange,\n isRequired = false,\n onKeyDown = undefined,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & PassedProps) => {\n const { msg } = useMessage();\n const isFieldHidden = getFieldConfigByFieldId(\"city\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"city\"\n value={value}\n onChange={onChange}\n placeholder={placeholder || msg({ id: \"cityPlaceholder\" })}\n label={<FormattedHTMLMessage id=\"city\" defaultMessage=\"City\" />}\n errorMessage={\n isErrored && <FormattedHTMLMessage id=\"errorId.invalidCity\" defaultMessage=\"Invalid city\" />\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n onKeyDown={typeof onKeyDown === \"function\" ? (e) => onKeyDown(e) : undefined}\n disabled={disabled}\n autoComplete=\"address-level2\"\n />\n );\n};\n"],"mappings":";;;;;aAaa,KAAiB,EAC5B,UACA,cACA,aACA,gBAAa,IACb,eAAY,KAAA,GACZ,iBAAc,IACd,cAAW,SACgC;CAC3C,IAAM,EAAE,WAAQ,EAAW;CAO3B,OANsB,EAAwB,MAAM,GAAG,SAG9C,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAQ;EACD;EACG;EACV,aAAa,KAAe,EAAI,EAAE,IAAI,kBAAkB,CAAC;EACzD,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAO,gBAAe;EAAQ,CAAA;EAC9D,cACE,KAAa,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAsB,gBAAe;EAAgB,CAAA;EAE7F,6BAA6B,CAAC,CAAC;EAC/B,UAAU;EACV,WAAW,OAAO,KAAc,cAAc,MAAM,EAAU,CAAC,IAAI,KAAA;EACzD;EACV,cAAa;CACd,CAAA;AAEL"}
1
+ {"version":3,"file":"City-BPckEV2l.js","names":[],"sources":["../../src/components/FormFields/City/City.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { FormFieldText } from \"@/components/FormFields/FormFieldText/FormFieldText\";\nimport { type FormFieldComponentProps } from \"@/lib/types/types\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element; // eslint-disable-line\n onKeyDown?: Function;\n}\n\nexport const CityComponent = ({\n value,\n isErrored,\n onChange,\n isRequired = false,\n onKeyDown = undefined,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & PassedProps) => {\n const { msg } = useMessage();\n const isFieldHidden = getFieldConfigByFieldId(\"city\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"city\"\n value={value}\n onChange={onChange}\n placeholder={placeholder || msg({ id: \"cityPlaceholder\" })}\n label={<FormattedHTMLMessage id=\"city\" defaultMessage=\"City\" />}\n errorMessage={\n isErrored && <FormattedHTMLMessage id=\"errorId.invalidCity\" defaultMessage=\"Invalid city\" />\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n onKeyDown={typeof onKeyDown === \"function\" ? (e) => onKeyDown(e) : undefined}\n disabled={disabled}\n autoComplete=\"address-level2\"\n />\n );\n};\n"],"mappings":";;;;;aAaa,KAAiB,EAC5B,UACA,cACA,aACA,gBAAa,IACb,eAAY,KAAA,GACZ,iBAAc,IACd,cAAW,SACgC;CAC3C,IAAM,EAAE,WAAQ,EAAW;CAO3B,OANsB,EAAwB,MAAM,GAAG,SAG9C,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAQ;EACD;EACG;EACV,aAAa,KAAe,EAAI,EAAE,IAAI,kBAAkB,CAAC;EACzD,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAO,gBAAe;EAAQ,CAAA;EAC9D,cACE,KAAa,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAsB,gBAAe;EAAgB,CAAA;EAE7F,6BAA6B,CAAC,CAAC;EAC/B,UAAU;EACV,WAAW,OAAO,KAAc,cAAc,MAAM,EAAU,CAAC,IAAI,KAAA;EACzD;EACV,cAAa;CACd,CAAA;AAEL"}
@@ -1,13 +1,13 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.293.0
4
- * BUILD_TIMESTAMP: 1790101523842
5
- * BUILD_DATE: Tue Sep 22 2026 18:25:23 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 00fab93cde3d7a4fa864bf23fd76ab6952622776
3
+ * VERSION: 2.294.0
4
+ * BUILD_TIMESTAMP: 1790103571452
5
+ * BUILD_DATE: Tue Sep 22 2026 18:59:31 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: a1ad0e0905912b425daabcd3b9f5df0ba79ebe6c
7
7
  */
8
8
  import { n as e, t } from "./jsx-runtime-338NbZob.js";
9
- import { n } from "./Message-CEUCVZmr.js";
10
- import { t as r } from "./stepComponentHelpers-HOnoMkIF.js";
9
+ import { n } from "./Message-DvgmOZft.js";
10
+ import { t as r } from "./stepComponentHelpers-hkvp2qUS.js";
11
11
  import { t as i } from "./FormFieldText-BQLBciux.js";
12
12
  //#region src/components/FormFields/City/City.tsx
13
13
  var a = t(), o = ({ value: t, isErrored: o, onChange: s, isRequired: c = !1, onKeyDown: l = void 0, placeholder: u = "", disabled: d = !1 }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"City-BBwhhp0r.js","names":[],"sources":["../../src/components/FormFields/City/City.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { FormFieldText } from \"@/components/FormFields/FormFieldText/FormFieldText\";\nimport { type FormFieldComponentProps } from \"@/lib/types/types\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element; // eslint-disable-line\n onKeyDown?: Function;\n}\n\nexport const CityComponent = ({\n value,\n isErrored,\n onChange,\n isRequired = false,\n onKeyDown = undefined,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & PassedProps) => {\n const { msg } = useMessage();\n const isFieldHidden = getFieldConfigByFieldId(\"city\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"city\"\n value={value}\n onChange={onChange}\n placeholder={placeholder || msg({ id: \"cityPlaceholder\" })}\n label={<FormattedHTMLMessage id=\"city\" defaultMessage=\"City\" />}\n errorMessage={\n isErrored && <FormattedHTMLMessage id=\"errorId.invalidCity\" defaultMessage=\"Invalid city\" />\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n onKeyDown={typeof onKeyDown === \"function\" ? (e) => onKeyDown(e) : undefined}\n disabled={disabled}\n autoComplete=\"address-level2\"\n />\n );\n};\n"],"mappings":";;;;;aAaa,KAAiB,EAC5B,UACA,cACA,aACA,gBAAa,IACb,eAAY,KAAA,GACZ,iBAAc,IACd,cAAW,SACgC;CAC3C,IAAM,EAAE,WAAQ,EAAW;CAO3B,OANsB,EAAwB,MAAM,GAAG,SAG9C,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAQ;EACD;EACG;EACV,aAAa,KAAe,EAAI,EAAE,IAAI,kBAAkB,CAAC;EACzD,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAO,gBAAe;EAAQ,CAAA;EAC9D,cACE,KAAa,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAsB,gBAAe;EAAgB,CAAA;EAE7F,6BAA6B,CAAC,CAAC;EAC/B,UAAU;EACV,WAAW,OAAO,KAAc,cAAc,MAAM,EAAU,CAAC,IAAI,KAAA;EACzD;EACV,cAAa;CACd,CAAA;AAEL"}
1
+ {"version":3,"file":"City-uCEYG4v0.js","names":[],"sources":["../../src/components/FormFields/City/City.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { FormFieldText } from \"@/components/FormFields/FormFieldText/FormFieldText\";\nimport { type FormFieldComponentProps } from \"@/lib/types/types\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element; // eslint-disable-line\n onKeyDown?: Function;\n}\n\nexport const CityComponent = ({\n value,\n isErrored,\n onChange,\n isRequired = false,\n onKeyDown = undefined,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & PassedProps) => {\n const { msg } = useMessage();\n const isFieldHidden = getFieldConfigByFieldId(\"city\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"city\"\n value={value}\n onChange={onChange}\n placeholder={placeholder || msg({ id: \"cityPlaceholder\" })}\n label={<FormattedHTMLMessage id=\"city\" defaultMessage=\"City\" />}\n errorMessage={\n isErrored && <FormattedHTMLMessage id=\"errorId.invalidCity\" defaultMessage=\"Invalid city\" />\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n onKeyDown={typeof onKeyDown === \"function\" ? (e) => onKeyDown(e) : undefined}\n disabled={disabled}\n autoComplete=\"address-level2\"\n />\n );\n};\n"],"mappings":";;;;;aAaa,KAAiB,EAC5B,UACA,cACA,aACA,gBAAa,IACb,eAAY,KAAA,GACZ,iBAAc,IACd,cAAW,SACgC;CAC3C,IAAM,EAAE,WAAQ,EAAW;CAO3B,OANsB,EAAwB,MAAM,GAAG,SAG9C,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAQ;EACD;EACG;EACV,aAAa,KAAe,EAAI,EAAE,IAAI,kBAAkB,CAAC;EACzD,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAO,gBAAe;EAAQ,CAAA;EAC9D,cACE,KAAa,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAsB,gBAAe;EAAgB,CAAA;EAE7F,6BAA6B,CAAC,CAAC;EAC/B,UAAU;EACV,WAAW,OAAO,KAAc,cAAc,MAAM,EAAU,CAAC,IAAI,KAAA;EACzD;EACV,cAAa;CACd,CAAA;AAEL"}
@@ -4,17 +4,17 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.293.0
8
- * BUILD_TIMESTAMP: 1790101528001
9
- * BUILD_DATE: Tue Sep 22 2026 18:25:28 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 00fab93cde3d7a4fa864bf23fd76ab6952622776
7
+ * VERSION: 2.294.0
8
+ * BUILD_TIMESTAMP: 1790103575603
9
+ * BUILD_DATE: Tue Sep 22 2026 18:59:35 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: a1ad0e0905912b425daabcd3b9f5df0ba79ebe6c
11
11
  */
12
12
  import { s as e } from "./intl-DYOqmiaL.js";
13
- import { c as t } from "./programThemeGetters-DXLr_Q4_.js";
13
+ import { c as t } from "./programThemeGetters-cPK2r02v.js";
14
14
  import { n, t as r } from "./jsx-runtime-B6t5B3Mb.js";
15
- import { n as i, s as a } from "./Message-9U_vSk1g.js";
16
- import { t as o } from "./stepComponentHelpers-CvC0Nxhe.js";
17
- import { t as s } from "./FormFieldTypeahead-BXVKDH6h.js";
15
+ import { n as i, s as a } from "./Message-Boy9Uyy0.js";
16
+ import { t as o } from "./stepComponentHelpers-J67LZsd0.js";
17
+ import { t as s } from "./FormFieldTypeahead-GpVICIeC.js";
18
18
  //#region src/components/FormFields/CollegeName/CollegeNameComponent.tsx
19
19
  var c = r(), l = ({ value: r, isErrored: l, onChange: u, verificationService: d, placeholder: f = "", isRequired: p = !0, disabled: m = !1 }) => {
20
20
  let { msg: h } = i(), g = a(), _ = (e().urlAddSchoolForm || "").trim();
@@ -1 +1 @@
1
- {"version":3,"file":"CollegeNameComponent-Ba-ldOs2.js","names":[],"sources":["../../src/components/FormFields/CollegeName/CollegeNameComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { useSegment } from \"@/lib/state/contextHooks\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport {\n type FormFieldComponentProps,\n type VerificationServiceProps,\n type Organization,\n} from \"../../../lib/types/types\";\nimport { getOptions } from \"../../../options/options\";\nimport { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\n\nexport const CollegeNameComponent = ({\n value,\n isErrored,\n onChange,\n verificationService,\n placeholder = \"\",\n isRequired = true,\n disabled = false,\n}: FormFieldComponentProps<Organization> & VerificationServiceProps) => {\n const { msg } = useMessage();\n const segment = useSegment();\n const urlAddSchoolForm = (getOptions().urlAddSchoolForm || \"\").trim();\n\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldTypeahead\n fieldId=\"college-name\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={placeholder || msg({ id: \"schoolNamePlaceholder\", context: segment })}\n label={<FormattedHTMLMessage id=\"schoolName\" defaultMessage=\"University / College name\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n isRequired={isRequired}\n showPlaceholderAndHideLabel={!!placeholder}\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n urlAddSchoolForm={urlAddSchoolForm}\n disabled={disabled}\n />\n );\n};\n"],"mappings":";;;;;;;aAea,KAAwB,EACnC,UACA,cACA,aACA,wBACA,iBAAc,IACd,gBAAa,IACb,cAAW,SAC2D;CACtE,IAAM,EAAE,WAAQ,EAAW,GACrB,IAAU,EAAW,GACrB,KAAoB,EAAW,EAAE,oBAAoB,IAAI,KAAK;CAQpE,OANsB,EAAwB,cAAc,GAAG,SAGtD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAQ;EACD;EACc;EACrB,WAAW,MAAyB,EAAS,CAAM;EACnD,aAAa,KAAe,EAAI;GAAE,IAAI;GAAyB,SAAS;EAAQ,CAAC;EACjF,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAa,gBAAe;EAA6B,CAAA;EACzF,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,IAAG;GACH,gBAAe;EAChB,CAAA;EAGO;EACZ,6BAA6B,CAAC,CAAC;EAC/B,cAAc,EACZ,EAAoB,WACpB,EAAoB,YACtB;EACkB;EACR;CACX,CAAA;AAEL"}
1
+ {"version":3,"file":"CollegeNameComponent-BqSQ4YOf.js","names":[],"sources":["../../src/components/FormFields/CollegeName/CollegeNameComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { useSegment } from \"@/lib/state/contextHooks\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport {\n type FormFieldComponentProps,\n type VerificationServiceProps,\n type Organization,\n} from \"../../../lib/types/types\";\nimport { getOptions } from \"../../../options/options\";\nimport { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\n\nexport const CollegeNameComponent = ({\n value,\n isErrored,\n onChange,\n verificationService,\n placeholder = \"\",\n isRequired = true,\n disabled = false,\n}: FormFieldComponentProps<Organization> & VerificationServiceProps) => {\n const { msg } = useMessage();\n const segment = useSegment();\n const urlAddSchoolForm = (getOptions().urlAddSchoolForm || \"\").trim();\n\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldTypeahead\n fieldId=\"college-name\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={placeholder || msg({ id: \"schoolNamePlaceholder\", context: segment })}\n label={<FormattedHTMLMessage id=\"schoolName\" defaultMessage=\"University / College name\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n isRequired={isRequired}\n showPlaceholderAndHideLabel={!!placeholder}\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n urlAddSchoolForm={urlAddSchoolForm}\n disabled={disabled}\n />\n );\n};\n"],"mappings":";;;;;;;aAea,KAAwB,EACnC,UACA,cACA,aACA,wBACA,iBAAc,IACd,gBAAa,IACb,cAAW,SAC2D;CACtE,IAAM,EAAE,WAAQ,EAAW,GACrB,IAAU,EAAW,GACrB,KAAoB,EAAW,EAAE,oBAAoB,IAAI,KAAK;CAQpE,OANsB,EAAwB,cAAc,GAAG,SAGtD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAQ;EACD;EACc;EACrB,WAAW,MAAyB,EAAS,CAAM;EACnD,aAAa,KAAe,EAAI;GAAE,IAAI;GAAyB,SAAS;EAAQ,CAAC;EACjF,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAa,gBAAe;EAA6B,CAAA;EACzF,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,IAAG;GACH,gBAAe;EAChB,CAAA;EAGO;EACZ,6BAA6B,CAAC,CAAC;EAC/B,cAAc,EACZ,EAAoB,WACpB,EAAoB,YACtB;EACkB;EACR;CACX,CAAA;AAEL"}
@@ -1,16 +1,16 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.293.0
4
- * BUILD_TIMESTAMP: 1790101523842
5
- * BUILD_DATE: Tue Sep 22 2026 18:25:23 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 00fab93cde3d7a4fa864bf23fd76ab6952622776
3
+ * VERSION: 2.294.0
4
+ * BUILD_TIMESTAMP: 1790103571452
5
+ * BUILD_DATE: Tue Sep 22 2026 18:59:31 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: a1ad0e0905912b425daabcd3b9f5df0ba79ebe6c
7
7
  */
8
8
  import { n as e } from "./options-DsRV5fwh.js";
9
9
  import { n as t, t as n } from "./jsx-runtime-338NbZob.js";
10
- import { n as r, s as i } from "./Message-CEUCVZmr.js";
11
- import { c as a } from "./programThemeGetters-CVbMoRhw.js";
12
- import { t as o } from "./stepComponentHelpers-HOnoMkIF.js";
13
- import { t as s } from "./FormFieldTypeahead-7ok1bRAH.js";
10
+ import { n as r, s as i } from "./Message-DvgmOZft.js";
11
+ import { c as a } from "./programThemeGetters-VBBOPS4w.js";
12
+ import { t as o } from "./stepComponentHelpers-hkvp2qUS.js";
13
+ import { t as s } from "./FormFieldTypeahead-DVaRbEQG.js";
14
14
  //#region src/components/FormFields/CollegeName/CollegeNameComponent.tsx
15
15
  var c = n(), l = ({ value: n, isErrored: l, onChange: u, verificationService: d, placeholder: f = "", isRequired: p = !0, disabled: m = !1 }) => {
16
16
  let { msg: h } = r(), g = i(), _ = (e().urlAddSchoolForm || "").trim();
@@ -1 +1 @@
1
- {"version":3,"file":"CollegeNameComponent-DFRljRjg.js","names":[],"sources":["../../src/components/FormFields/CollegeName/CollegeNameComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { useSegment } from \"@/lib/state/contextHooks\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport {\n type FormFieldComponentProps,\n type VerificationServiceProps,\n type Organization,\n} from \"../../../lib/types/types\";\nimport { getOptions } from \"../../../options/options\";\nimport { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\n\nexport const CollegeNameComponent = ({\n value,\n isErrored,\n onChange,\n verificationService,\n placeholder = \"\",\n isRequired = true,\n disabled = false,\n}: FormFieldComponentProps<Organization> & VerificationServiceProps) => {\n const { msg } = useMessage();\n const segment = useSegment();\n const urlAddSchoolForm = (getOptions().urlAddSchoolForm || \"\").trim();\n\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldTypeahead\n fieldId=\"college-name\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={placeholder || msg({ id: \"schoolNamePlaceholder\", context: segment })}\n label={<FormattedHTMLMessage id=\"schoolName\" defaultMessage=\"University / College name\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n isRequired={isRequired}\n showPlaceholderAndHideLabel={!!placeholder}\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n urlAddSchoolForm={urlAddSchoolForm}\n disabled={disabled}\n />\n );\n};\n"],"mappings":";;;;;;;aAea,KAAwB,EACnC,UACA,cACA,aACA,wBACA,iBAAc,IACd,gBAAa,IACb,cAAW,SAC2D;CACtE,IAAM,EAAE,WAAQ,EAAW,GACrB,IAAU,EAAW,GACrB,KAAoB,EAAW,EAAE,oBAAoB,IAAI,KAAK;CAQpE,OANsB,EAAwB,cAAc,GAAG,SAGtD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAQ;EACD;EACc;EACrB,WAAW,MAAyB,EAAS,CAAM;EACnD,aAAa,KAAe,EAAI;GAAE,IAAI;GAAyB,SAAS;EAAQ,CAAC;EACjF,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAa,gBAAe;EAA6B,CAAA;EACzF,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,IAAG;GACH,gBAAe;EAChB,CAAA;EAGO;EACZ,6BAA6B,CAAC,CAAC;EAC/B,cAAc,EACZ,EAAoB,WACpB,EAAoB,YACtB;EACkB;EACR;CACX,CAAA;AAEL"}
1
+ {"version":3,"file":"CollegeNameComponent-dB7K5QgA.js","names":[],"sources":["../../src/components/FormFields/CollegeName/CollegeNameComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { useSegment } from \"@/lib/state/contextHooks\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport {\n type FormFieldComponentProps,\n type VerificationServiceProps,\n type Organization,\n} from \"../../../lib/types/types\";\nimport { getOptions } from \"../../../options/options\";\nimport { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\n\nexport const CollegeNameComponent = ({\n value,\n isErrored,\n onChange,\n verificationService,\n placeholder = \"\",\n isRequired = true,\n disabled = false,\n}: FormFieldComponentProps<Organization> & VerificationServiceProps) => {\n const { msg } = useMessage();\n const segment = useSegment();\n const urlAddSchoolForm = (getOptions().urlAddSchoolForm || \"\").trim();\n\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldTypeahead\n fieldId=\"college-name\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={placeholder || msg({ id: \"schoolNamePlaceholder\", context: segment })}\n label={<FormattedHTMLMessage id=\"schoolName\" defaultMessage=\"University / College name\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n isRequired={isRequired}\n showPlaceholderAndHideLabel={!!placeholder}\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n urlAddSchoolForm={urlAddSchoolForm}\n disabled={disabled}\n />\n );\n};\n"],"mappings":";;;;;;;aAea,KAAwB,EACnC,UACA,cACA,aACA,wBACA,iBAAc,IACd,gBAAa,IACb,cAAW,SAC2D;CACtE,IAAM,EAAE,WAAQ,EAAW,GACrB,IAAU,EAAW,GACrB,KAAoB,EAAW,EAAE,oBAAoB,IAAI,KAAK;CAQpE,OANsB,EAAwB,cAAc,GAAG,SAGtD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAQ;EACD;EACc;EACrB,WAAW,MAAyB,EAAS,CAAM;EACnD,aAAa,KAAe,EAAI;GAAE,IAAI;GAAyB,SAAS;EAAQ,CAAC;EACjF,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAa,gBAAe;EAA6B,CAAA;EACzF,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,IAAG;GACH,gBAAe;EAChB,CAAA;EAGO;EACZ,6BAA6B,CAAC,CAAC;EAC/B,cAAc,EACZ,EAAoB,WACpB,EAAoB,YACtB;EACkB;EACR;CACX,CAAA;AAEL"}
@@ -4,10 +4,10 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.293.0
8
- * BUILD_TIMESTAMP: 1790101528001
9
- * BUILD_DATE: Tue Sep 22 2026 18:25:28 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 00fab93cde3d7a4fa864bf23fd76ab6952622776
7
+ * VERSION: 2.294.0
8
+ * BUILD_TIMESTAMP: 1790103575603
9
+ * BUILD_DATE: Tue Sep 22 2026 18:59:35 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: a1ad0e0905912b425daabcd3b9f5df0ba79ebe6c
11
11
  */
12
12
  import { Dt as e, kt as t } from "./intl-DYOqmiaL.js";
13
13
  import { c as n, t as r } from "./jsx-runtime-B6t5B3Mb.js";
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.293.0
4
- * BUILD_TIMESTAMP: 1790101523842
5
- * BUILD_DATE: Tue Sep 22 2026 18:25:23 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 00fab93cde3d7a4fa864bf23fd76ab6952622776
3
+ * VERSION: 2.294.0
4
+ * BUILD_TIMESTAMP: 1790103571452
5
+ * BUILD_DATE: Tue Sep 22 2026 18:59:31 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: a1ad0e0905912b425daabcd3b9f5df0ba79ebe6c
7
7
  */
8
8
  import { Dt as e, kt as t } from "./options-DsRV5fwh.js";
9
9
  import { c as n, t as r } from "./jsx-runtime-338NbZob.js";
@@ -1,18 +1,18 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.293.0
4
- * BUILD_TIMESTAMP: 1790101523842
5
- * BUILD_DATE: Tue Sep 22 2026 18:25:23 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 00fab93cde3d7a4fa864bf23fd76ab6952622776
3
+ * VERSION: 2.294.0
4
+ * BUILD_TIMESTAMP: 1790103571452
5
+ * BUILD_DATE: Tue Sep 22 2026 18:59:31 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: a1ad0e0905912b425daabcd3b9f5df0ba79ebe6c
7
7
  */
8
8
  import { c as e, kt as t } from "./options-DsRV5fwh.js";
9
9
  import { c as n, n as r, t as i } from "./jsx-runtime-338NbZob.js";
10
- import { n as a, o } from "./Message-CEUCVZmr.js";
10
+ import { n as a, o } from "./Message-DvgmOZft.js";
11
11
  import { n as s } from "./empties-lrCPA-9V.js";
12
- import { n as c } from "./programThemeGetters-CVbMoRhw.js";
12
+ import { n as c } from "./programThemeGetters-VBBOPS4w.js";
13
13
  import { u as l } from "./hooks-Bu8Px0Ok.js";
14
- import { c as u, f as d, p as f, t as p } from "./stepComponentHelpers-HOnoMkIF.js";
15
- import { t as m } from "./FormFieldInputSelect-DAUHwCaX.js";
14
+ import { d as u, o as d, t as f, u as p } from "./stepComponentHelpers-hkvp2qUS.js";
15
+ import { t as m } from "./FormFieldInputSelect-BfmQAxFP.js";
16
16
  //#region src/components/FormFields/Country/CountryComponent.tsx
17
17
  var h = /* @__PURE__ */ t(n(), 1), g = i(), _ = ({ value: e, isErrored: t, options: n, onChange: i, onKeyDown: o, placeholder: s = "", isRequired: c = !0, suppressPlaceholder: l = !1, disabled: u = !1 }) => {
18
18
  let { msg: d } = a();
@@ -40,7 +40,7 @@ var h = /* @__PURE__ */ t(n(), 1), g = i(), _ = ({ value: e, isErrored: t, optio
40
40
  let i = o(), { i18n: m, msg: v } = a(), y = c(i).map((e) => ({
41
41
  value: e,
42
42
  label: v({ id: `countries.${e}` })
43
- })).sort((e, t) => Intl.Collator(m.language).compare(e.label, t.label)), { fieldValidationErrors: b } = t, x = y.length > 1, S = p("country")?.hidden, C = (r) => {
43
+ })).sort((e, t) => Intl.Collator(m.language).compare(e.label, t.label)), { fieldValidationErrors: b } = t, x = y.length > 1, S = f("country")?.hidden, C = (r) => {
44
44
  let i = e(t.viewModel, (e) => {
45
45
  e.countryChoice = r || void 0, e.country = r ? r.value : void 0, n && n(e, r), e.organization &&= s.organization;
46
46
  });
@@ -56,10 +56,10 @@ var h = /* @__PURE__ */ t(n(), 1), g = i(), _ = ({ value: e, isErrored: t, optio
56
56
  "state",
57
57
  "city"
58
58
  ];
59
- t.updateViewModel(u(t.viewModel, "fieldsToSkipValidation", e));
59
+ t.updateViewModel(d(t.viewModel, "fieldsToSkipValidation", e));
60
60
  }
61
61
  }, [x]), h.useEffect(() => {
62
- d(e(t.fieldValidationErrors, (e) => {
62
+ p(e(t.fieldValidationErrors, (e) => {
63
63
  e.country &&= l("country", t.viewModel.countryChoice, t.formValidationOptions), "postalCode" in t.viewModel && t.viewModel.postalCode && (e.postalCode = l("postalCode", t.viewModel.postalCode, t.formValidationOptions));
64
64
  }), t);
65
65
  }, [t.viewModel.countryChoice]), !x || S ? null : /* @__PURE__ */ (0, g.jsx)(_, {
@@ -70,7 +70,7 @@ var h = /* @__PURE__ */ t(n(), 1), g = i(), _ = ({ value: e, isErrored: t, optio
70
70
  disabled: r,
71
71
  onChange: async (e) => {
72
72
  let n = e ? e.value : void 0;
73
- C(e), f("country", n, t);
73
+ C(e), u("country", n, t);
74
74
  }
75
75
  });
76
76
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CountryComponentWrapper-BriofJKE.js","names":[],"sources":["../../src/components/FormFields/Country/CountryComponent.tsx","../../src/components/FormFields/Country/CountryComponentWrapper.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { FormFieldInputSelect } from \"@/components/FormFields/FormFieldInputSelect/FormFieldInputSelect\";\nimport { type FormSelectChoice, type InputSelectComponentProps } from \"@/lib/types/types\";\n\nexport const CountryComponent = ({\n value,\n isErrored,\n options,\n onChange,\n onKeyDown,\n placeholder = \"\",\n isRequired = true,\n suppressPlaceholder = false,\n disabled = false,\n}: InputSelectComponentProps) => {\n const { msg } = useMessage();\n const inputId = \"country\";\n return (\n <FormFieldInputSelect\n fieldId={inputId}\n options={options}\n onChange={(country: FormSelectChoice) => onChange(country)}\n onKeyDown={onKeyDown}\n placeholder={placeholder || msg({ id: \"countryPlaceholder\" })}\n value={options.find((option) => option.value === (value && value.value))}\n isRequired={isRequired}\n label={<FormattedHTMLMessage id=\"country\" defaultMessage=\"Country\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage id=\"errorId.invalidCountry\" defaultMessage=\"Invalid country\" />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n suppressPlaceholder={suppressPlaceholder}\n disabled={disabled}\n />\n );\n};\n","import React from \"react\";\nimport produce from \"immer\";\n\nimport { useMessage } from \"@/components/Message\";\nimport {\n type VerificationService,\n type Country,\n type FormSelectChoice,\n type ViewModel,\n type ErrorId,\n type FieldId,\n type WithOrganization,\n} from \"@/lib/types/types\";\nimport {\n updateFieldValidationErrorsByFieldId,\n produceDraftViewModel,\n updateFieldValidationErrors,\n getFieldConfigByFieldId,\n} from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { validateFieldById } from \"@/lib/validators/validators\";\nimport { blankOrganization } from \"@/lib/types/empties\";\nimport { useProgramTheme } from \"@/lib/state/contextHooks\";\nimport { getConfiguredCountries } from \"@/lib/ProgramTheme/programThemeGetters\";\n\nimport { CountryComponent } from \"./CountryComponent\";\n\ntype CountryComponentWrapperProps = {\n verificationService: VerificationService;\n viewModelDraftDecorator?: (\n draft: ViewModel,\n countryChoice?: FormSelectChoice<Country, string>,\n ) => void;\n disabled?: boolean;\n};\n\nexport const CountryComponentWrapper = ({\n verificationService,\n viewModelDraftDecorator = undefined,\n disabled = false,\n}: CountryComponentWrapperProps) => {\n const programTheme = useProgramTheme();\n const { i18n, msg } = useMessage();\n\n const availableCountries: Country[] = getConfiguredCountries(programTheme);\n const localeAwareSorter = (a, b) => Intl.Collator(i18n.language).compare(a.label, b.label);\n const countryChoices = availableCountries\n .map((countryCode) => ({\n value: countryCode,\n label: msg({ id: `countries.${countryCode}` }),\n }))\n .sort(localeAwareSorter);\n\n const { fieldValidationErrors } = verificationService;\n const hasMultipleCountries = countryChoices.length > 1;\n const isFieldHidden = getFieldConfigByFieldId(\"country\")?.hidden;\n\n const updateCountryChoice = (countryChoice?: FormSelectChoice<Country, string>) => {\n const nextState: ViewModel = produce(\n verificationService.viewModel,\n (draft: ViewModel & WithOrganization) => {\n draft.countryChoice = countryChoice || undefined;\n\n // Adds backwards compatibility with Age and Employment programs\n (draft as any).country = countryChoice ? countryChoice.value : undefined;\n if (viewModelDraftDecorator) {\n viewModelDraftDecorator(draft, countryChoice);\n }\n\n // Reset to a blank org when changing the country choice\n if (draft.organization) {\n draft.organization = blankOrganization.organization;\n }\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n const includesUS = countryChoices.some((choice) => choice.value === \"US\");\n if (!hasMultipleCountries && !includesUS) {\n const fieldsToSkip: FieldId[] = verificationService.viewModel.fieldsToSkipValidation\n ? [...verificationService.viewModel.fieldsToSkipValidation, \"country\"]\n : [\"country\", \"address1\", \"postalCode\", \"state\", \"city\"];\n verificationService.updateViewModel(\n produceDraftViewModel(\n verificationService.viewModel,\n \"fieldsToSkipValidation\",\n fieldsToSkip,\n ),\n );\n }\n }, [hasMultipleCountries]);\n\n React.useEffect(() => {\n const updatedFieldValidationErrors = produce(\n verificationService.fieldValidationErrors,\n (draft) => {\n if (draft.country) {\n draft.country = validateFieldById(\n \"country\",\n verificationService.viewModel.countryChoice,\n verificationService.formValidationOptions,\n ) as ErrorId;\n }\n if (\n \"postalCode\" in verificationService.viewModel &&\n verificationService.viewModel.postalCode\n ) {\n draft.postalCode = validateFieldById(\n \"postalCode\",\n verificationService.viewModel.postalCode,\n verificationService.formValidationOptions,\n ) as ErrorId;\n }\n },\n );\n updateFieldValidationErrors(updatedFieldValidationErrors, verificationService);\n }, [verificationService.viewModel.countryChoice]);\n\n if (!hasMultipleCountries || isFieldHidden) {\n return null;\n }\n\n return (\n <CountryComponent\n isRequired\n options={countryChoices}\n value={verificationService.viewModel.countryChoice}\n isErrored={Boolean(fieldValidationErrors.country)}\n disabled={disabled}\n onChange={async (countryChoice: FormSelectChoice<Country, string>) => {\n const countryValue = countryChoice ? countryChoice.value : undefined;\n updateCountryChoice(countryChoice);\n updateFieldValidationErrorsByFieldId(\"country\", countryValue, verificationService);\n }}\n />\n );\n};\n"],"mappings":";;;;;;;;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AU,EACd,WACA,EAAoB,UAAU,eAC9B,EAAoB,qBACtB,GAGA,gBAAgB,EAAoB,aACpC,EAAoB,UAAU,eAE9B,EAAM,aAAa,EACjB,cACA,EAAoB,UAAU,YAC9B,EAAoB,qBACtB;EAEJ,CAE0B,GAA8B,CAAmB;CAC/E,GAAG,CAAC,EAAoB,UAAU,aAAa,CAAC,GAE5C,CAAC,KAAwB,IACpB,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,YAAA;EACA,SAAS;EACT,OAAO,EAAoB,UAAU;EACrC,WAAW,EAAQ,EAAsB;EAC/B;EACV,UAAU,OAAO,MAAqD;GACpE,IAAM,IAAe,IAAgB,EAAc,QAAQ,KAAA;GAE3D,AADA,EAAoB,CAAa,GACjC,EAAqC,WAAW,GAAc,CAAmB;EACnF;CACD,CAAA;AAEL"}
1
+ {"version":3,"file":"CountryComponentWrapper-BRfRmGYM.js","names":[],"sources":["../../src/components/FormFields/Country/CountryComponent.tsx","../../src/components/FormFields/Country/CountryComponentWrapper.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { FormFieldInputSelect } from \"@/components/FormFields/FormFieldInputSelect/FormFieldInputSelect\";\nimport { type FormSelectChoice, type InputSelectComponentProps } from \"@/lib/types/types\";\n\nexport const CountryComponent = ({\n value,\n isErrored,\n options,\n onChange,\n onKeyDown,\n placeholder = \"\",\n isRequired = true,\n suppressPlaceholder = false,\n disabled = false,\n}: InputSelectComponentProps) => {\n const { msg } = useMessage();\n const inputId = \"country\";\n return (\n <FormFieldInputSelect\n fieldId={inputId}\n options={options}\n onChange={(country: FormSelectChoice) => onChange(country)}\n onKeyDown={onKeyDown}\n placeholder={placeholder || msg({ id: \"countryPlaceholder\" })}\n value={options.find((option) => option.value === (value && value.value))}\n isRequired={isRequired}\n label={<FormattedHTMLMessage id=\"country\" defaultMessage=\"Country\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage id=\"errorId.invalidCountry\" defaultMessage=\"Invalid country\" />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n suppressPlaceholder={suppressPlaceholder}\n disabled={disabled}\n />\n );\n};\n","import React from \"react\";\nimport produce from \"immer\";\n\nimport { useMessage } from \"@/components/Message\";\nimport {\n type VerificationService,\n type Country,\n type FormSelectChoice,\n type ViewModel,\n type ErrorId,\n type FieldId,\n type WithOrganization,\n} from \"@/lib/types/types\";\nimport {\n updateFieldValidationErrorsByFieldId,\n produceDraftViewModel,\n updateFieldValidationErrors,\n getFieldConfigByFieldId,\n} from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { validateFieldById } from \"@/lib/validators/validators\";\nimport { blankOrganization } from \"@/lib/types/empties\";\nimport { useProgramTheme } from \"@/lib/state/contextHooks\";\nimport { getConfiguredCountries } from \"@/lib/ProgramTheme/programThemeGetters\";\n\nimport { CountryComponent } from \"./CountryComponent\";\n\ntype CountryComponentWrapperProps = {\n verificationService: VerificationService;\n viewModelDraftDecorator?: (\n draft: ViewModel,\n countryChoice?: FormSelectChoice<Country, string>,\n ) => void;\n disabled?: boolean;\n};\n\nexport const CountryComponentWrapper = ({\n verificationService,\n viewModelDraftDecorator = undefined,\n disabled = false,\n}: CountryComponentWrapperProps) => {\n const programTheme = useProgramTheme();\n const { i18n, msg } = useMessage();\n\n const availableCountries: Country[] = getConfiguredCountries(programTheme);\n const localeAwareSorter = (a, b) => Intl.Collator(i18n.language).compare(a.label, b.label);\n const countryChoices = availableCountries\n .map((countryCode) => ({\n value: countryCode,\n label: msg({ id: `countries.${countryCode}` }),\n }))\n .sort(localeAwareSorter);\n\n const { fieldValidationErrors } = verificationService;\n const hasMultipleCountries = countryChoices.length > 1;\n const isFieldHidden = getFieldConfigByFieldId(\"country\")?.hidden;\n\n const updateCountryChoice = (countryChoice?: FormSelectChoice<Country, string>) => {\n const nextState: ViewModel = produce(\n verificationService.viewModel,\n (draft: ViewModel & WithOrganization) => {\n draft.countryChoice = countryChoice || undefined;\n\n // Adds backwards compatibility with Age and Employment programs\n (draft as any).country = countryChoice ? countryChoice.value : undefined;\n if (viewModelDraftDecorator) {\n viewModelDraftDecorator(draft, countryChoice);\n }\n\n // Reset to a blank org when changing the country choice\n if (draft.organization) {\n draft.organization = blankOrganization.organization;\n }\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n const includesUS = countryChoices.some((choice) => choice.value === \"US\");\n if (!hasMultipleCountries && !includesUS) {\n const fieldsToSkip: FieldId[] = verificationService.viewModel.fieldsToSkipValidation\n ? [...verificationService.viewModel.fieldsToSkipValidation, \"country\"]\n : [\"country\", \"address1\", \"postalCode\", \"state\", \"city\"];\n verificationService.updateViewModel(\n produceDraftViewModel(\n verificationService.viewModel,\n \"fieldsToSkipValidation\",\n fieldsToSkip,\n ),\n );\n }\n }, [hasMultipleCountries]);\n\n React.useEffect(() => {\n const updatedFieldValidationErrors = produce(\n verificationService.fieldValidationErrors,\n (draft) => {\n if (draft.country) {\n draft.country = validateFieldById(\n \"country\",\n verificationService.viewModel.countryChoice,\n verificationService.formValidationOptions,\n ) as ErrorId;\n }\n if (\n \"postalCode\" in verificationService.viewModel &&\n verificationService.viewModel.postalCode\n ) {\n draft.postalCode = validateFieldById(\n \"postalCode\",\n verificationService.viewModel.postalCode,\n verificationService.formValidationOptions,\n ) as ErrorId;\n }\n },\n );\n updateFieldValidationErrors(updatedFieldValidationErrors, verificationService);\n }, [verificationService.viewModel.countryChoice]);\n\n if (!hasMultipleCountries || isFieldHidden) {\n return null;\n }\n\n return (\n <CountryComponent\n isRequired\n options={countryChoices}\n value={verificationService.viewModel.countryChoice}\n isErrored={Boolean(fieldValidationErrors.country)}\n disabled={disabled}\n onChange={async (countryChoice: FormSelectChoice<Country, string>) => {\n const countryValue = countryChoice ? countryChoice.value : undefined;\n updateCountryChoice(countryChoice);\n updateFieldValidationErrorsByFieldId(\"country\", countryValue, verificationService);\n }}\n />\n );\n};\n"],"mappings":";;;;;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,YAAU,EACd,WACA,EAAoB,UAAU,eAC9B,EAAoB,qBACtB,GAGA,gBAAgB,EAAoB,aACpC,EAAoB,UAAU,eAE9B,EAAM,aAAa,EACjB,cACA,EAAoB,UAAU,YAC9B,EAAoB,qBACtB;EAEJ,CAE0B,GAA8B,CAAmB;CAC/E,GAAG,CAAC,EAAoB,UAAU,aAAa,CAAC,GAE5C,CAAC,KAAwB,IACpB,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,YAAA;EACA,SAAS;EACT,OAAO,EAAoB,UAAU;EACrC,WAAW,EAAQ,EAAsB;EAC/B;EACV,UAAU,OAAO,MAAqD;GACpE,IAAM,IAAe,IAAgB,EAAc,QAAQ,KAAA;GAE3D,AADA,EAAoB,CAAa,GACjC,EAAqC,WAAW,GAAc,CAAmB;EACnF;CACD,CAAA;AAEL"}
@@ -4,19 +4,19 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.293.0
8
- * BUILD_TIMESTAMP: 1790101528001
9
- * BUILD_DATE: Tue Sep 22 2026 18:25:28 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 00fab93cde3d7a4fa864bf23fd76ab6952622776
7
+ * VERSION: 2.294.0
8
+ * BUILD_TIMESTAMP: 1790103575603
9
+ * BUILD_DATE: Tue Sep 22 2026 18:59:35 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: a1ad0e0905912b425daabcd3b9f5df0ba79ebe6c
11
11
  */
12
12
  import { kt as e, p as t } from "./intl-DYOqmiaL.js";
13
- import { n } from "./programThemeGetters-DXLr_Q4_.js";
13
+ import { n } from "./programThemeGetters-cPK2r02v.js";
14
14
  import { c as r, n as i, t as a } from "./jsx-runtime-B6t5B3Mb.js";
15
- import { n as o, o as s } from "./Message-9U_vSk1g.js";
15
+ import { n as o, o as s } from "./Message-Boy9Uyy0.js";
16
16
  import { n as c } from "./empties-B034wwK_.js";
17
17
  import { u as l } from "./hooks-DSoorQS3.js";
18
- import { c as u, f as d, p as f, t as p } from "./stepComponentHelpers-CvC0Nxhe.js";
19
- import { t as m } from "./FormFieldInputSelect-IPo7-GWc.js";
18
+ import { d as u, o as d, t as f, u as p } from "./stepComponentHelpers-J67LZsd0.js";
19
+ import { t as m } from "./FormFieldInputSelect-Cd-wGEHG.js";
20
20
  //#region src/components/FormFields/Country/CountryComponent.tsx
21
21
  var h = /* @__PURE__ */ e(r(), 1), g = a(), _ = ({ value: e, isErrored: t, options: n, onChange: r, onKeyDown: a, placeholder: s = "", isRequired: c = !0, suppressPlaceholder: l = !1, disabled: u = !1 }) => {
22
22
  let { msg: d } = o();
@@ -44,7 +44,7 @@ var h = /* @__PURE__ */ e(r(), 1), g = a(), _ = ({ value: e, isErrored: t, optio
44
44
  let a = s(), { i18n: m, msg: v } = o(), y = n(a).map((e) => ({
45
45
  value: e,
46
46
  label: v({ id: `countries.${e}` })
47
- })).sort((e, t) => Intl.Collator(m.language).compare(e.label, t.label)), { fieldValidationErrors: b } = e, x = y.length > 1, S = p("country")?.hidden, C = (n) => {
47
+ })).sort((e, t) => Intl.Collator(m.language).compare(e.label, t.label)), { fieldValidationErrors: b } = e, x = y.length > 1, S = f("country")?.hidden, C = (n) => {
48
48
  let i = t(e.viewModel, (e) => {
49
49
  e.countryChoice = n || void 0, e.country = n ? n.value : void 0, r && r(e, n), e.organization &&= c.organization;
50
50
  });
@@ -60,10 +60,10 @@ var h = /* @__PURE__ */ e(r(), 1), g = a(), _ = ({ value: e, isErrored: t, optio
60
60
  "state",
61
61
  "city"
62
62
  ];
63
- e.updateViewModel(u(e.viewModel, "fieldsToSkipValidation", t));
63
+ e.updateViewModel(d(e.viewModel, "fieldsToSkipValidation", t));
64
64
  }
65
65
  }, [x]), h.useEffect(() => {
66
- d(t(e.fieldValidationErrors, (t) => {
66
+ p(t(e.fieldValidationErrors, (t) => {
67
67
  t.country &&= l("country", e.viewModel.countryChoice, e.formValidationOptions), "postalCode" in e.viewModel && e.viewModel.postalCode && (t.postalCode = l("postalCode", e.viewModel.postalCode, e.formValidationOptions));
68
68
  }), e);
69
69
  }, [e.viewModel.countryChoice]), !x || S ? null : /* @__PURE__ */ (0, g.jsx)(_, {
@@ -74,7 +74,7 @@ var h = /* @__PURE__ */ e(r(), 1), g = a(), _ = ({ value: e, isErrored: t, optio
74
74
  disabled: i,
75
75
  onChange: async (t) => {
76
76
  let n = t ? t.value : void 0;
77
- C(t), f("country", n, e);
77
+ C(t), u("country", n, e);
78
78
  }
79
79
  });
80
80
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CountryComponentWrapper-S7tjrj1n.js","names":[],"sources":["../../src/components/FormFields/Country/CountryComponent.tsx","../../src/components/FormFields/Country/CountryComponentWrapper.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { FormFieldInputSelect } from \"@/components/FormFields/FormFieldInputSelect/FormFieldInputSelect\";\nimport { type FormSelectChoice, type InputSelectComponentProps } from \"@/lib/types/types\";\n\nexport const CountryComponent = ({\n value,\n isErrored,\n options,\n onChange,\n onKeyDown,\n placeholder = \"\",\n isRequired = true,\n suppressPlaceholder = false,\n disabled = false,\n}: InputSelectComponentProps) => {\n const { msg } = useMessage();\n const inputId = \"country\";\n return (\n <FormFieldInputSelect\n fieldId={inputId}\n options={options}\n onChange={(country: FormSelectChoice) => onChange(country)}\n onKeyDown={onKeyDown}\n placeholder={placeholder || msg({ id: \"countryPlaceholder\" })}\n value={options.find((option) => option.value === (value && value.value))}\n isRequired={isRequired}\n label={<FormattedHTMLMessage id=\"country\" defaultMessage=\"Country\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage id=\"errorId.invalidCountry\" defaultMessage=\"Invalid country\" />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n suppressPlaceholder={suppressPlaceholder}\n disabled={disabled}\n />\n );\n};\n","import React from \"react\";\nimport produce from \"immer\";\n\nimport { useMessage } from \"@/components/Message\";\nimport {\n type VerificationService,\n type Country,\n type FormSelectChoice,\n type ViewModel,\n type ErrorId,\n type FieldId,\n type WithOrganization,\n} from \"@/lib/types/types\";\nimport {\n updateFieldValidationErrorsByFieldId,\n produceDraftViewModel,\n updateFieldValidationErrors,\n getFieldConfigByFieldId,\n} from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { validateFieldById } from \"@/lib/validators/validators\";\nimport { blankOrganization } from \"@/lib/types/empties\";\nimport { useProgramTheme } from \"@/lib/state/contextHooks\";\nimport { getConfiguredCountries } from \"@/lib/ProgramTheme/programThemeGetters\";\n\nimport { CountryComponent } from \"./CountryComponent\";\n\ntype CountryComponentWrapperProps = {\n verificationService: VerificationService;\n viewModelDraftDecorator?: (\n draft: ViewModel,\n countryChoice?: FormSelectChoice<Country, string>,\n ) => void;\n disabled?: boolean;\n};\n\nexport const CountryComponentWrapper = ({\n verificationService,\n viewModelDraftDecorator = undefined,\n disabled = false,\n}: CountryComponentWrapperProps) => {\n const programTheme = useProgramTheme();\n const { i18n, msg } = useMessage();\n\n const availableCountries: Country[] = getConfiguredCountries(programTheme);\n const localeAwareSorter = (a, b) => Intl.Collator(i18n.language).compare(a.label, b.label);\n const countryChoices = availableCountries\n .map((countryCode) => ({\n value: countryCode,\n label: msg({ id: `countries.${countryCode}` }),\n }))\n .sort(localeAwareSorter);\n\n const { fieldValidationErrors } = verificationService;\n const hasMultipleCountries = countryChoices.length > 1;\n const isFieldHidden = getFieldConfigByFieldId(\"country\")?.hidden;\n\n const updateCountryChoice = (countryChoice?: FormSelectChoice<Country, string>) => {\n const nextState: ViewModel = produce(\n verificationService.viewModel,\n (draft: ViewModel & WithOrganization) => {\n draft.countryChoice = countryChoice || undefined;\n\n // Adds backwards compatibility with Age and Employment programs\n (draft as any).country = countryChoice ? countryChoice.value : undefined;\n if (viewModelDraftDecorator) {\n viewModelDraftDecorator(draft, countryChoice);\n }\n\n // Reset to a blank org when changing the country choice\n if (draft.organization) {\n draft.organization = blankOrganization.organization;\n }\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n const includesUS = countryChoices.some((choice) => choice.value === \"US\");\n if (!hasMultipleCountries && !includesUS) {\n const fieldsToSkip: FieldId[] = verificationService.viewModel.fieldsToSkipValidation\n ? [...verificationService.viewModel.fieldsToSkipValidation, \"country\"]\n : [\"country\", \"address1\", \"postalCode\", \"state\", \"city\"];\n verificationService.updateViewModel(\n produceDraftViewModel(\n verificationService.viewModel,\n \"fieldsToSkipValidation\",\n fieldsToSkip,\n ),\n );\n }\n }, [hasMultipleCountries]);\n\n React.useEffect(() => {\n const updatedFieldValidationErrors = produce(\n verificationService.fieldValidationErrors,\n (draft) => {\n if (draft.country) {\n draft.country = validateFieldById(\n \"country\",\n verificationService.viewModel.countryChoice,\n verificationService.formValidationOptions,\n ) as ErrorId;\n }\n if (\n \"postalCode\" in verificationService.viewModel &&\n verificationService.viewModel.postalCode\n ) {\n draft.postalCode = validateFieldById(\n \"postalCode\",\n verificationService.viewModel.postalCode,\n verificationService.formValidationOptions,\n ) as ErrorId;\n }\n },\n );\n updateFieldValidationErrors(updatedFieldValidationErrors, verificationService);\n }, [verificationService.viewModel.countryChoice]);\n\n if (!hasMultipleCountries || isFieldHidden) {\n return null;\n }\n\n return (\n <CountryComponent\n isRequired\n options={countryChoices}\n value={verificationService.viewModel.countryChoice}\n isErrored={Boolean(fieldValidationErrors.country)}\n disabled={disabled}\n onChange={async (countryChoice: FormSelectChoice<Country, string>) => {\n const countryValue = countryChoice ? countryChoice.value : undefined;\n updateCountryChoice(countryChoice);\n updateFieldValidationErrorsByFieldId(\"country\", countryValue, verificationService);\n }}\n />\n );\n};\n"],"mappings":";;;;;;;;;4CAMA,KAAA,EAAA,UAAA,cAAA,YAAA,aAAA,cAAA,iBAAA,IAAA,gBAAA,IAAA,yBAAA,IAAA,cAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;AAiCA,GCJa,KAA2B,EACt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B;EAEJ,CAE0B,GAA8B,CAAmB;CAC/E,GAAG,CAAC,EAAoB,UAAU,aAAa,CAAC,GAE5C,CAAC,KAAwB,IACpB,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,YAAA;EACA,SAAS;EACT,OAAO,EAAoB,UAAU;EACrC,WAAW,EAAQ,EAAsB;EAC/B;EACV,UAAU,OAAO,MAAqD;GACpE,IAAM,IAAe,IAAgB,EAAc,QAAQ,KAAA;GAE3D,AADA,EAAoB,CAAa,GACjC,EAAqC,WAAW,GAAc,CAAmB;EACnF;CACD,CAAA;AAEL"}
1
+ {"version":3,"file":"CountryComponentWrapper-BoVcyVxO.js","names":[],"sources":["../../src/components/FormFields/Country/CountryComponent.tsx","../../src/components/FormFields/Country/CountryComponentWrapper.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { FormFieldInputSelect } from \"@/components/FormFields/FormFieldInputSelect/FormFieldInputSelect\";\nimport { type FormSelectChoice, type InputSelectComponentProps } from \"@/lib/types/types\";\n\nexport const CountryComponent = ({\n value,\n isErrored,\n options,\n onChange,\n onKeyDown,\n placeholder = \"\",\n isRequired = true,\n suppressPlaceholder = false,\n disabled = false,\n}: InputSelectComponentProps) => {\n const { msg } = useMessage();\n const inputId = \"country\";\n return (\n <FormFieldInputSelect\n fieldId={inputId}\n options={options}\n onChange={(country: FormSelectChoice) => onChange(country)}\n onKeyDown={onKeyDown}\n placeholder={placeholder || msg({ id: \"countryPlaceholder\" })}\n value={options.find((option) => option.value === (value && value.value))}\n isRequired={isRequired}\n label={<FormattedHTMLMessage id=\"country\" defaultMessage=\"Country\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage id=\"errorId.invalidCountry\" defaultMessage=\"Invalid country\" />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n suppressPlaceholder={suppressPlaceholder}\n disabled={disabled}\n />\n );\n};\n","import React from \"react\";\nimport produce from \"immer\";\n\nimport { useMessage } from \"@/components/Message\";\nimport {\n type VerificationService,\n type Country,\n type FormSelectChoice,\n type ViewModel,\n type ErrorId,\n type FieldId,\n type WithOrganization,\n} from \"@/lib/types/types\";\nimport {\n updateFieldValidationErrorsByFieldId,\n produceDraftViewModel,\n updateFieldValidationErrors,\n getFieldConfigByFieldId,\n} from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { validateFieldById } from \"@/lib/validators/validators\";\nimport { blankOrganization } from \"@/lib/types/empties\";\nimport { useProgramTheme } from \"@/lib/state/contextHooks\";\nimport { getConfiguredCountries } from \"@/lib/ProgramTheme/programThemeGetters\";\n\nimport { CountryComponent } from \"./CountryComponent\";\n\ntype CountryComponentWrapperProps = {\n verificationService: VerificationService;\n viewModelDraftDecorator?: (\n draft: ViewModel,\n countryChoice?: FormSelectChoice<Country, string>,\n ) => void;\n disabled?: boolean;\n};\n\nexport const CountryComponentWrapper = ({\n verificationService,\n viewModelDraftDecorator = undefined,\n disabled = false,\n}: CountryComponentWrapperProps) => {\n const programTheme = useProgramTheme();\n const { i18n, msg } = useMessage();\n\n const availableCountries: Country[] = getConfiguredCountries(programTheme);\n const localeAwareSorter = (a, b) => Intl.Collator(i18n.language).compare(a.label, b.label);\n const countryChoices = availableCountries\n .map((countryCode) => ({\n value: countryCode,\n label: msg({ id: `countries.${countryCode}` }),\n }))\n .sort(localeAwareSorter);\n\n const { fieldValidationErrors } = verificationService;\n const hasMultipleCountries = countryChoices.length > 1;\n const isFieldHidden = getFieldConfigByFieldId(\"country\")?.hidden;\n\n const updateCountryChoice = (countryChoice?: FormSelectChoice<Country, string>) => {\n const nextState: ViewModel = produce(\n verificationService.viewModel,\n (draft: ViewModel & WithOrganization) => {\n draft.countryChoice = countryChoice || undefined;\n\n // Adds backwards compatibility with Age and Employment programs\n (draft as any).country = countryChoice ? countryChoice.value : undefined;\n if (viewModelDraftDecorator) {\n viewModelDraftDecorator(draft, countryChoice);\n }\n\n // Reset to a blank org when changing the country choice\n if (draft.organization) {\n draft.organization = blankOrganization.organization;\n }\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n const includesUS = countryChoices.some((choice) => choice.value === \"US\");\n if (!hasMultipleCountries && !includesUS) {\n const fieldsToSkip: FieldId[] = verificationService.viewModel.fieldsToSkipValidation\n ? [...verificationService.viewModel.fieldsToSkipValidation, \"country\"]\n : [\"country\", \"address1\", \"postalCode\", \"state\", \"city\"];\n verificationService.updateViewModel(\n produceDraftViewModel(\n verificationService.viewModel,\n \"fieldsToSkipValidation\",\n fieldsToSkip,\n ),\n );\n }\n }, [hasMultipleCountries]);\n\n React.useEffect(() => {\n const updatedFieldValidationErrors = produce(\n verificationService.fieldValidationErrors,\n (draft) => {\n if (draft.country) {\n draft.country = validateFieldById(\n \"country\",\n verificationService.viewModel.countryChoice,\n verificationService.formValidationOptions,\n ) as ErrorId;\n }\n if (\n \"postalCode\" in verificationService.viewModel &&\n verificationService.viewModel.postalCode\n ) {\n draft.postalCode = validateFieldById(\n \"postalCode\",\n verificationService.viewModel.postalCode,\n verificationService.formValidationOptions,\n ) as ErrorId;\n }\n },\n );\n updateFieldValidationErrors(updatedFieldValidationErrors, verificationService);\n }, [verificationService.viewModel.countryChoice]);\n\n if (!hasMultipleCountries || isFieldHidden) {\n return null;\n }\n\n return (\n <CountryComponent\n isRequired\n options={countryChoices}\n value={verificationService.viewModel.countryChoice}\n isErrored={Boolean(fieldValidationErrors.country)}\n disabled={disabled}\n onChange={async (countryChoice: FormSelectChoice<Country, string>) => {\n const countryValue = countryChoice ? countryChoice.value : undefined;\n updateCountryChoice(countryChoice);\n updateFieldValidationErrorsByFieldId(\"country\", countryValue, verificationService);\n }}\n />\n );\n};\n"],"mappings":";;;;;;;;;4CAMA,KAAA,EAAA,UAAA,cAAA,YAAA,aAAA,cAAA,iBAAA,IAAA,gBAAA,IAAA,yBAAA,IAAA,cAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;AAiCA,GCJa,KAA2B,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