@sheerid/jslib 2.311.0 → 2.312.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 (349) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +976 -935
  3. package/_mysheerid-preview.js.map +1 -1
  4. package/chunk/{AddressComponent-D3J1ec4I.js → AddressComponent-BoIXEkQ1.js} +5 -5
  5. package/chunk/{AddressComponent-CvNuqaMO.js.map → AddressComponent-BoIXEkQ1.js.map} +1 -1
  6. package/chunk/{AddressComponent-CvNuqaMO.js → AddressComponent-DeEEaX9k.js} +5 -5
  7. package/chunk/{AddressComponent-D3J1ec4I.js.map → AddressComponent-DeEEaX9k.js.map} +1 -1
  8. package/chunk/AnnouncingHeader-CM01vEpF.js +4 -4
  9. package/chunk/AnnouncingHeader-CSh0UW8I.js +4 -4
  10. package/chunk/{BirthDateComponent-Dq93H5fs.js → BirthDateComponent-D7BbQdeu.js} +5 -5
  11. package/chunk/{BirthDateComponent-DbTRigG5.js.map → BirthDateComponent-D7BbQdeu.js.map} +1 -1
  12. package/chunk/{BirthDateComponent-DbTRigG5.js → BirthDateComponent-Dwfl6tYR.js} +5 -5
  13. package/chunk/{BirthDateComponent-Dq93H5fs.js.map → BirthDateComponent-Dwfl6tYR.js.map} +1 -1
  14. package/chunk/{CaptchaComponent-D-DQ7hgF.js → CaptchaComponent-BbQTpmWe.js} +8 -8
  15. package/chunk/{CaptchaComponent-D-DQ7hgF.js.map → CaptchaComponent-BbQTpmWe.js.map} +1 -1
  16. package/chunk/{CaptchaComponent-B1wduRz7.js → CaptchaComponent-DMFt9cDO.js} +15 -15
  17. package/chunk/{CaptchaComponent-B1wduRz7.js.map → CaptchaComponent-DMFt9cDO.js.map} +1 -1
  18. package/chunk/{ChangeLocaleComponent-DJ-OCTQZ.js → ChangeLocaleComponent-AKQ7gIkP.js} +8 -8
  19. package/chunk/{ChangeLocaleComponent-DJ-OCTQZ.js.map → ChangeLocaleComponent-AKQ7gIkP.js.map} +1 -1
  20. package/chunk/{ChangeLocaleComponent-DP6rvRFM.js → ChangeLocaleComponent-BOFrHFyG.js} +8 -8
  21. package/chunk/{ChangeLocaleComponent-DP6rvRFM.js.map → ChangeLocaleComponent-BOFrHFyG.js.map} +1 -1
  22. package/chunk/{City-C_ojHI8D.js → City-D4to8D65.js} +5 -5
  23. package/chunk/{City-BENIBYvt.js.map → City-D4to8D65.js.map} +1 -1
  24. package/chunk/{City-BENIBYvt.js → City-D6VlEIOj.js} +5 -5
  25. package/chunk/{City-C_ojHI8D.js.map → City-D6VlEIOj.js.map} +1 -1
  26. package/chunk/{CollegeNameComponent-DEGHGVMH.js → CollegeNameComponent-882Xs3gD.js} +8 -8
  27. package/chunk/{CollegeNameComponent-DEGHGVMH.js.map → CollegeNameComponent-882Xs3gD.js.map} +1 -1
  28. package/chunk/{CollegeNameComponent-BObW76RR.js → CollegeNameComponent-kUPYCkq1.js} +8 -8
  29. package/chunk/{CollegeNameComponent-BObW76RR.js.map → CollegeNameComponent-kUPYCkq1.js.map} +1 -1
  30. package/chunk/CopyToClipboardComponent-BN9qCovT.js +4 -4
  31. package/chunk/CopyToClipboardComponent-Dag4rxf8.js +4 -4
  32. package/chunk/{CountryComponentWrapper-BD-OFB7m.js → CountryComponentWrapper-DN99F8hI.js} +8 -8
  33. package/chunk/{CountryComponentWrapper-BD-OFB7m.js.map → CountryComponentWrapper-DN99F8hI.js.map} +1 -1
  34. package/chunk/{CountryComponentWrapper-B3pZNlgz.js → CountryComponentWrapper-DNNtLmuf.js} +8 -8
  35. package/chunk/{CountryComponentWrapper-B3pZNlgz.js.map → CountryComponentWrapper-DNNtLmuf.js.map} +1 -1
  36. package/chunk/{DischargeDateComponent-CmYI7Fs4.js → DischargeDateComponent-CbU9Hmdp.js} +9 -9
  37. package/chunk/{DischargeDateComponent-CmYI7Fs4.js.map → DischargeDateComponent-CbU9Hmdp.js.map} +1 -1
  38. package/chunk/{DischargeDateComponent-DyrBA-sT.js → DischargeDateComponent-DON4nxw_.js} +9 -9
  39. package/chunk/{DischargeDateComponent-DyrBA-sT.js.map → DischargeDateComponent-DON4nxw_.js.map} +1 -1
  40. package/chunk/{DriverLicenseNumberComponent-BSk91mS6.js → DriverLicenseNumberComponent-DRiQa6Ga.js} +5 -5
  41. package/chunk/{DriverLicenseNumberComponent-BSk91mS6.js.map → DriverLicenseNumberComponent-DRiQa6Ga.js.map} +1 -1
  42. package/chunk/{DriverLicenseNumberComponent-BxYhcuIZ.js → DriverLicenseNumberComponent-DhfLaFR5.js} +5 -5
  43. package/chunk/{DriverLicenseNumberComponent-BxYhcuIZ.js.map → DriverLicenseNumberComponent-DhfLaFR5.js.map} +1 -1
  44. package/chunk/{EmailLoopPending-DzjNkzyL.js → EmailLoopPending-DDfDm16i.js} +6 -6
  45. package/chunk/{EmailLoopPending-DzjNkzyL.js.map → EmailLoopPending-DDfDm16i.js.map} +1 -1
  46. package/chunk/{EmailLoopPending-D_3wymeU.js → EmailLoopPending-DXsNsJrc.js} +6 -6
  47. package/chunk/{EmailLoopPending-D_3wymeU.js.map → EmailLoopPending-DXsNsJrc.js.map} +1 -1
  48. package/chunk/{ExtraMessage-BuBnwExg.js → ExtraMessage-CYfaHVd1.js} +5 -5
  49. package/chunk/{ExtraMessage-BuBnwExg.js.map → ExtraMessage-CYfaHVd1.js.map} +1 -1
  50. package/chunk/{ExtraMessage-hgijE4nR.js → ExtraMessage-DeGK3KwO.js} +5 -5
  51. package/chunk/{ExtraMessage-hgijE4nR.js.map → ExtraMessage-DeGK3KwO.js.map} +1 -1
  52. package/chunk/{FirstResponderOrganizationComponent-D1BvAfUQ.js → FirstResponderOrganizationComponent-CEJ4sBZm.js} +8 -8
  53. package/chunk/{FirstResponderOrganizationComponent-D1BvAfUQ.js.map → FirstResponderOrganizationComponent-CEJ4sBZm.js.map} +1 -1
  54. package/chunk/{FirstResponderOrganizationComponent-DbawjfXx.js → FirstResponderOrganizationComponent-GbRQ8ejW.js} +8 -8
  55. package/chunk/{FirstResponderOrganizationComponent-DbawjfXx.js.map → FirstResponderOrganizationComponent-GbRQ8ejW.js.map} +1 -1
  56. package/chunk/{FormFieldInputSelect-BdcFitQM.js → FormFieldInputSelect-7FX3KIMN.js} +5 -5
  57. package/chunk/{FormFieldInputSelect-BdcFitQM.js.map → FormFieldInputSelect-7FX3KIMN.js.map} +1 -1
  58. package/chunk/{FormFieldInputSelect-DWcxK7De.js → FormFieldInputSelect-CmGuSZoU.js} +5 -5
  59. package/chunk/{FormFieldInputSelect-DWcxK7De.js.map → FormFieldInputSelect-CmGuSZoU.js.map} +1 -1
  60. package/chunk/FormFieldLayout-KJilu-sR.js +4 -4
  61. package/chunk/FormFieldLayout-UCIBwDRH.js +4 -4
  62. package/chunk/FormFieldText-B_2IOFED.js +4 -4
  63. package/chunk/FormFieldText-CkPmuIPf.js +4 -4
  64. package/chunk/{FormFieldTypeahead-ChDQLWgJ.js → FormFieldTypeahead-0YtLKYp9.js} +85 -83
  65. package/chunk/{FormFieldTypeahead-ChDQLWgJ.js.map → FormFieldTypeahead-0YtLKYp9.js.map} +1 -1
  66. package/chunk/{FormFieldTypeahead-D_061VBz.js → FormFieldTypeahead-Bn4oW-PC.js} +90 -88
  67. package/chunk/{FormFieldTypeahead-D_061VBz.js.map → FormFieldTypeahead-Bn4oW-PC.js.map} +1 -1
  68. package/chunk/{FormFooterComponent-D3c-ewUT.js → FormFooterComponent-Brab2xcp.js} +319 -319
  69. package/chunk/{FormFooterComponent-D3c-ewUT.js.map → FormFooterComponent-Brab2xcp.js.map} +1 -1
  70. package/chunk/{FormFooterComponent-Cpzral2z.js → FormFooterComponent-he4l6p39.js} +8 -8
  71. package/chunk/{FormFooterComponent-Cpzral2z.js.map → FormFooterComponent-he4l6p39.js.map} +1 -1
  72. package/chunk/{FormSelectChoice-BQ03wMOm.js → FormSelectChoice-CSGgtlv8.js} +6 -6
  73. package/chunk/{FormSelectChoice-BQ03wMOm.js.map → FormSelectChoice-CSGgtlv8.js.map} +1 -1
  74. package/chunk/{FormSelectChoice-C_d5rhmo.js → FormSelectChoice-D5wZk7cJ.js} +6 -6
  75. package/chunk/{FormSelectChoice-C_d5rhmo.js.map → FormSelectChoice-D5wZk7cJ.js.map} +1 -1
  76. package/chunk/InputText-Bvj815Th.js +4 -4
  77. package/chunk/InputText-C2qEtF0t.js +4 -4
  78. package/chunk/{LicensedProfessionalOrganizationComponent-C4XcmGi5.js → LicensedProfessionalOrganizationComponent-CCx7V-Xr.js} +8 -8
  79. package/chunk/{LicensedProfessionalOrganizationComponent-C4XcmGi5.js.map → LicensedProfessionalOrganizationComponent-CCx7V-Xr.js.map} +1 -1
  80. package/chunk/{LicensedProfessionalOrganizationComponent-DOWP33a5.js → LicensedProfessionalOrganizationComponent-Dja--YUF.js} +8 -8
  81. package/chunk/{LicensedProfessionalOrganizationComponent-DOWP33a5.js.map → LicensedProfessionalOrganizationComponent-Dja--YUF.js.map} +1 -1
  82. package/chunk/{LogoComponent-CsyobiEt.js → LogoComponent-C4UN1JY9.js} +5 -5
  83. package/chunk/{LogoComponent-CsyobiEt.js.map → LogoComponent-C4UN1JY9.js.map} +1 -1
  84. package/chunk/{LogoComponent-DYr4prM9.js → LogoComponent-C9UuIyxD.js} +5 -5
  85. package/chunk/{LogoComponent-DYr4prM9.js.map → LogoComponent-C9UuIyxD.js.map} +1 -1
  86. package/chunk/{LowIncomeOrganizationComponent-vsoeNFLK.js → LowIncomeOrganizationComponent-BCi1j6_X.js} +9 -9
  87. package/chunk/{LowIncomeOrganizationComponent-vsoeNFLK.js.map → LowIncomeOrganizationComponent-BCi1j6_X.js.map} +1 -1
  88. package/chunk/{LowIncomeOrganizationComponent-Bt68GVWp.js → LowIncomeOrganizationComponent-CX8q3MDL.js} +9 -9
  89. package/chunk/{LowIncomeOrganizationComponent-Bt68GVWp.js.map → LowIncomeOrganizationComponent-CX8q3MDL.js.map} +1 -1
  90. package/chunk/{MedicalProfessionalOrganizationComponent-CaGfdO6x.js → MedicalProfessionalOrganizationComponent-CVig_7kH.js} +8 -8
  91. package/chunk/{MedicalProfessionalOrganizationComponent-CaGfdO6x.js.map → MedicalProfessionalOrganizationComponent-CVig_7kH.js.map} +1 -1
  92. package/chunk/{MedicalProfessionalOrganizationComponent-CZolO1PW.js → MedicalProfessionalOrganizationComponent-go1qSqrP.js} +8 -8
  93. package/chunk/{MedicalProfessionalOrganizationComponent-CZolO1PW.js.map → MedicalProfessionalOrganizationComponent-go1qSqrP.js.map} +1 -1
  94. package/chunk/{MemberIdComponent-Chbh019E.js → MemberIdComponent-BABnLSRG.js} +5 -5
  95. package/chunk/{MemberIdComponent-C7dBdn_t.js.map → MemberIdComponent-BABnLSRG.js.map} +1 -1
  96. package/chunk/{MemberIdComponent-C7dBdn_t.js → MemberIdComponent-CDJ_XPc-.js} +5 -5
  97. package/chunk/{MemberIdComponent-Chbh019E.js.map → MemberIdComponent-CDJ_XPc-.js.map} +1 -1
  98. package/chunk/{MembershipOrganizationComponent-D-ZH4peG.js → MembershipOrganizationComponent-BX7n9J08.js} +8 -8
  99. package/chunk/{MembershipOrganizationComponent-D-ZH4peG.js.map → MembershipOrganizationComponent-BX7n9J08.js.map} +1 -1
  100. package/chunk/{MembershipOrganizationComponent-Di6mpKm2.js → MembershipOrganizationComponent-Dm6IXak0.js} +8 -8
  101. package/chunk/{MembershipOrganizationComponent-Di6mpKm2.js.map → MembershipOrganizationComponent-Dm6IXak0.js.map} +1 -1
  102. package/chunk/{Message-CT7bGfqP.js → Message-C6bKPcuM.js} +5 -5
  103. package/chunk/{Message-CT7bGfqP.js.map → Message-C6bKPcuM.js.map} +1 -1
  104. package/chunk/{Message-DgJ0fCH2.js → Message-D2kP5FCJ.js} +324 -324
  105. package/chunk/{Message-DgJ0fCH2.js.map → Message-D2kP5FCJ.js.map} +1 -1
  106. package/chunk/Onfido-CTCgAwnB.js +4 -4
  107. package/chunk/{PersonalInfoStepSubmitButton-DmouLI73.js → PersonalInfoStepSubmitButton-Cz5Ik4p9.js} +5 -5
  108. package/chunk/{PersonalInfoStepSubmitButton-DmouLI73.js.map → PersonalInfoStepSubmitButton-Cz5Ik4p9.js.map} +1 -1
  109. package/chunk/{PersonalInfoStepSubmitButton-C7SSnJjv.js → PersonalInfoStepSubmitButton-DJ7FqfAK.js} +5 -5
  110. package/chunk/{PersonalInfoStepSubmitButton-C7SSnJjv.js.map → PersonalInfoStepSubmitButton-DJ7FqfAK.js.map} +1 -1
  111. package/chunk/{PersonalInfoStepWrapper-vV6StMJO.js → PersonalInfoStepWrapper-C4g9QHwO.js} +6 -6
  112. package/chunk/{PersonalInfoStepWrapper-vV6StMJO.js.map → PersonalInfoStepWrapper-C4g9QHwO.js.map} +1 -1
  113. package/chunk/{PersonalInfoStepWrapper-DK0ZWU67.js → PersonalInfoStepWrapper-Fjv1zouY.js} +7 -7
  114. package/chunk/{PersonalInfoStepWrapper-DK0ZWU67.js.map → PersonalInfoStepWrapper-Fjv1zouY.js.map} +1 -1
  115. package/chunk/{PostalCodeComponent-BgHVeMZc.js → PostalCodeComponent-B1MM4Jgt.js} +5 -5
  116. package/chunk/{PostalCodeComponent-BgHVeMZc.js.map → PostalCodeComponent-B1MM4Jgt.js.map} +1 -1
  117. package/chunk/{PostalCodeComponent-DKc1T76y.js → PostalCodeComponent-BrHnEVhq.js} +5 -5
  118. package/chunk/{PostalCodeComponent-DKc1T76y.js.map → PostalCodeComponent-BrHnEVhq.js.map} +1 -1
  119. package/chunk/{SSN-JKqxx-pg.js → SSN-CgB4E28t.js} +5 -5
  120. package/chunk/{SSN-JKqxx-pg.js.map → SSN-CgB4E28t.js.map} +1 -1
  121. package/chunk/{SSN-Bcd5widF.js → SSN-DkEJjIbj.js} +5 -5
  122. package/chunk/{SSN-Bcd5widF.js.map → SSN-DkEJjIbj.js.map} +1 -1
  123. package/chunk/{StateSelectComponent-DCTvDI_B.js → StateSelectComponent-CQqOuxkD.js} +6 -6
  124. package/chunk/{StateSelectComponent-DCTvDI_B.js.map → StateSelectComponent-CQqOuxkD.js.map} +1 -1
  125. package/chunk/{StateSelectComponent-CTZt_g4q.js → StateSelectComponent-DtQwQzeh.js} +6 -6
  126. package/chunk/{StateSelectComponent-CTZt_g4q.js.map → StateSelectComponent-DtQwQzeh.js.map} +1 -1
  127. package/chunk/{StatusComponent-DYnHvCJZ.js → StatusComponent-9j39XhzT.js} +6 -6
  128. package/chunk/{StatusComponent-BBBHt-HS.js.map → StatusComponent-9j39XhzT.js.map} +1 -1
  129. package/chunk/{StatusComponent-BBBHt-HS.js → StatusComponent-rLMrqvfx.js} +6 -6
  130. package/chunk/{StatusComponent-DYnHvCJZ.js.map → StatusComponent-rLMrqvfx.js.map} +1 -1
  131. package/chunk/{StepAgePersonalInfo-CKm4ynml.js → StepAgePersonalInfo-3pMQ5xmu.js} +17 -17
  132. package/chunk/{StepAgePersonalInfo-CKm4ynml.js.map → StepAgePersonalInfo-3pMQ5xmu.js.map} +1 -1
  133. package/chunk/{StepAgePersonalInfo-DhiZP74A.js → StepAgePersonalInfo-BpWfNhEv.js} +18 -18
  134. package/chunk/{StepAgePersonalInfo-DhiZP74A.js.map → StepAgePersonalInfo-BpWfNhEv.js.map} +1 -1
  135. package/chunk/StepCard-BEucy3JJ.js +4 -4
  136. package/chunk/StepCard-Blp7ZcI-.js +4 -4
  137. package/chunk/{StepCollectIdentifier-Bfdatx2N.js → StepCollectIdentifier-D3JteRRF.js} +6 -6
  138. package/chunk/{StepCollectIdentifier-Bfdatx2N.js.map → StepCollectIdentifier-D3JteRRF.js.map} +1 -1
  139. package/chunk/{StepCollectIdentifier-CXxpJaSk.js → StepCollectIdentifier-Df1zQTCd.js} +6 -6
  140. package/chunk/{StepCollectIdentifier-CXxpJaSk.js.map → StepCollectIdentifier-Df1zQTCd.js.map} +1 -1
  141. package/chunk/{StepCollectMilitaryPersonalInfoComponent-B-iduusm.js → StepCollectMilitaryPersonalInfoComponent-CB3PLlYb.js} +22 -22
  142. package/chunk/{StepCollectMilitaryPersonalInfoComponent-B-iduusm.js.map → StepCollectMilitaryPersonalInfoComponent-CB3PLlYb.js.map} +1 -1
  143. package/chunk/{StepCollectMilitaryPersonalInfoComponent-S-2NcxN5.js → StepCollectMilitaryPersonalInfoComponent-D5fEULP8.js} +22 -22
  144. package/chunk/{StepCollectMilitaryPersonalInfoComponent-S-2NcxN5.js.map → StepCollectMilitaryPersonalInfoComponent-D5fEULP8.js.map} +1 -1
  145. package/chunk/{StepCollectPersonalInfo-DNcGTdm7.js → StepCollectPersonalInfo-CX8h-lLL.js} +31 -31
  146. package/chunk/{StepCollectPersonalInfo-DNcGTdm7.js.map → StepCollectPersonalInfo-CX8h-lLL.js.map} +1 -1
  147. package/chunk/{StepCollectPersonalInfo-BFLzAzj_.js → StepCollectPersonalInfo-Dht8LiHk.js} +34 -34
  148. package/chunk/{StepCollectPersonalInfo-BFLzAzj_.js.map → StepCollectPersonalInfo-Dht8LiHk.js.map} +1 -1
  149. package/chunk/StepCompleteAuthentication-B_0EZ3mH.js +4 -4
  150. package/chunk/StepCompleteAuthentication-Ds3ieihr.js +4 -4
  151. package/chunk/{StepConsolation-D80IJyD-.js → StepConsolation-C0N1GRlI.js} +6 -6
  152. package/chunk/{StepConsolation-D80IJyD-.js.map → StepConsolation-C0N1GRlI.js.map} +1 -1
  153. package/chunk/{StepConsolation-DHZgZ028.js → StepConsolation-wLDs-0mg.js} +6 -6
  154. package/chunk/{StepConsolation-DHZgZ028.js.map → StepConsolation-wLDs-0mg.js.map} +1 -1
  155. package/chunk/{StepDocUpload-B4kgRTLT.js → StepDocUpload-BGvgOCT5.js} +8 -8
  156. package/chunk/{StepDocUpload-B4kgRTLT.js.map → StepDocUpload-BGvgOCT5.js.map} +1 -1
  157. package/chunk/{StepDocUpload-DHAALHxe.js → StepDocUpload-DssMCn-U.js} +8 -8
  158. package/chunk/{StepDocUpload-DHAALHxe.js.map → StepDocUpload-DssMCn-U.js.map} +1 -1
  159. package/chunk/{StepDriverLicensePersonalInfoComponent-BYYs2jVK.js → StepDriverLicensePersonalInfoComponent-5h_59-g_.js} +13 -13
  160. package/chunk/{StepDriverLicensePersonalInfoComponent-BYYs2jVK.js.map → StepDriverLicensePersonalInfoComponent-5h_59-g_.js.map} +1 -1
  161. package/chunk/{StepDriverLicensePersonalInfoComponent-C3M98kBD.js → StepDriverLicensePersonalInfoComponent-CedsuuPs.js} +13 -13
  162. package/chunk/{StepDriverLicensePersonalInfoComponent-C3M98kBD.js.map → StepDriverLicensePersonalInfoComponent-CedsuuPs.js.map} +1 -1
  163. package/chunk/{StepEmailLoop-DzEVO6kL.js → StepEmailLoop-BgyTBu-u.js} +7 -7
  164. package/chunk/{StepEmailLoop-DzEVO6kL.js.map → StepEmailLoop-BgyTBu-u.js.map} +1 -1
  165. package/chunk/{StepEmailLoop-DepeMN4x.js → StepEmailLoop-pva3laoI.js} +7 -7
  166. package/chunk/{StepEmailLoop-DepeMN4x.js.map → StepEmailLoop-pva3laoI.js.map} +1 -1
  167. package/chunk/{StepEmploymentPersonalInfo-2v-7N8Ko.js → StepEmploymentPersonalInfo-DZA-WCNB.js} +18 -18
  168. package/chunk/{StepEmploymentPersonalInfo-2v-7N8Ko.js.map → StepEmploymentPersonalInfo-DZA-WCNB.js.map} +1 -1
  169. package/chunk/{StepEmploymentPersonalInfo-CixC7iay.js → StepEmploymentPersonalInfo-Dfp9QW8-.js} +18 -18
  170. package/chunk/{StepEmploymentPersonalInfo-CixC7iay.js.map → StepEmploymentPersonalInfo-Dfp9QW8-.js.map} +1 -1
  171. package/chunk/{StepFirstResponderPersonalInfo--sNboMKr.js → StepFirstResponderPersonalInfo-BnZfWlpa.js} +19 -19
  172. package/chunk/{StepFirstResponderPersonalInfo--sNboMKr.js.map → StepFirstResponderPersonalInfo-BnZfWlpa.js.map} +1 -1
  173. package/chunk/{StepFirstResponderPersonalInfo-CQlS7pI9.js → StepFirstResponderPersonalInfo-DlDcx7Yv.js} +19 -19
  174. package/chunk/{StepFirstResponderPersonalInfo-CQlS7pI9.js.map → StepFirstResponderPersonalInfo-DlDcx7Yv.js.map} +1 -1
  175. package/chunk/{StepGeneralIdentityPersonalInfoComponent-BBZ4swGc.js → StepGeneralIdentityPersonalInfoComponent-Bv8tMoOR.js} +16 -16
  176. package/chunk/{StepGeneralIdentityPersonalInfoComponent-BBZ4swGc.js.map → StepGeneralIdentityPersonalInfoComponent-Bv8tMoOR.js.map} +1 -1
  177. package/chunk/{StepGeneralIdentityPersonalInfoComponent-DXGHUC97.js → StepGeneralIdentityPersonalInfoComponent-SCTgUH4L.js} +16 -16
  178. package/chunk/{StepGeneralIdentityPersonalInfoComponent-DXGHUC97.js.map → StepGeneralIdentityPersonalInfoComponent-SCTgUH4L.js.map} +1 -1
  179. package/chunk/{StepHybridIdentityPersonalInfoComponent-C-W_X47Y.js → StepHybridIdentityPersonalInfoComponent-C7pMYvY6.js} +17 -17
  180. package/chunk/{StepHybridIdentityPersonalInfoComponent-C-W_X47Y.js.map → StepHybridIdentityPersonalInfoComponent-C7pMYvY6.js.map} +1 -1
  181. package/chunk/{StepHybridIdentityPersonalInfoComponent-4YJXpGjE.js → StepHybridIdentityPersonalInfoComponent-Cxl0Wslc.js} +17 -17
  182. package/chunk/{StepHybridIdentityPersonalInfoComponent-4YJXpGjE.js.map → StepHybridIdentityPersonalInfoComponent-Cxl0Wslc.js.map} +1 -1
  183. package/chunk/{StepIDCheckLoop-BcK9rvfx.js → StepIDCheckLoop-CLO_MLrV.js} +5 -5
  184. package/chunk/{StepIDCheckLoop-BcK9rvfx.js.map → StepIDCheckLoop-CLO_MLrV.js.map} +1 -1
  185. package/chunk/{StepIDCheckLoop-qn08Isgj.js → StepIDCheckLoop-DXEqOxvC.js} +5 -5
  186. package/chunk/{StepIDCheckLoop-qn08Isgj.js.map → StepIDCheckLoop-DXEqOxvC.js.map} +1 -1
  187. package/chunk/{StepIDCheckLoopOnfido-C7K-XD9W.js → StepIDCheckLoopOnfido-ZLbrVHIN.js} +8 -8
  188. package/chunk/{StepIDCheckLoopOnfido-C7K-XD9W.js.map → StepIDCheckLoopOnfido-ZLbrVHIN.js.map} +1 -1
  189. package/chunk/{StepIDCheckLoopOnfido-CgYMCEU2.js → StepIDCheckLoopOnfido-yilH13Ng.js} +8 -8
  190. package/chunk/{StepIDCheckLoopOnfido-CgYMCEU2.js.map → StepIDCheckLoopOnfido-yilH13Ng.js.map} +1 -1
  191. package/chunk/{StepIDCheckLoopRegula-Bn4FDSrN.js → StepIDCheckLoopRegula-CFVUDpKU.js} +7 -7
  192. package/chunk/{StepIDCheckLoopRegula-Bn4FDSrN.js.map → StepIDCheckLoopRegula-CFVUDpKU.js.map} +1 -1
  193. package/chunk/{StepIDCheckLoopRegula-DUzU25W4.js → StepIDCheckLoopRegula-hP3n4GeO.js} +7 -7
  194. package/chunk/{StepIDCheckLoopRegula-DUzU25W4.js.map → StepIDCheckLoopRegula-hP3n4GeO.js.map} +1 -1
  195. package/chunk/{StepLicensedProfessionalPersonalInfo-B5tOSzBR.js → StepLicensedProfessionalPersonalInfo-LYFcQDpP.js} +19 -19
  196. package/chunk/{StepLicensedProfessionalPersonalInfo-B5tOSzBR.js.map → StepLicensedProfessionalPersonalInfo-LYFcQDpP.js.map} +1 -1
  197. package/chunk/{StepLicensedProfessionalPersonalInfo-jTZrj1Cy.js → StepLicensedProfessionalPersonalInfo-oemUzTIe.js} +19 -19
  198. package/chunk/{StepLicensedProfessionalPersonalInfo-jTZrj1Cy.js.map → StepLicensedProfessionalPersonalInfo-oemUzTIe.js.map} +1 -1
  199. package/chunk/{StepLowIncomePersonalInfo-HWLNrKzs.js → StepLowIncomePersonalInfo-B-DGFkrI.js} +21 -21
  200. package/chunk/{StepLowIncomePersonalInfo-HWLNrKzs.js.map → StepLowIncomePersonalInfo-B-DGFkrI.js.map} +1 -1
  201. package/chunk/{StepLowIncomePersonalInfo-DuoWo6b_.js → StepLowIncomePersonalInfo-SmoWqnNE.js} +24 -24
  202. package/chunk/{StepLowIncomePersonalInfo-DuoWo6b_.js.map → StepLowIncomePersonalInfo-SmoWqnNE.js.map} +1 -1
  203. package/chunk/{StepMedicalProfessionalPersonalInfo-gWyABlRt.js → StepMedicalProfessionalPersonalInfo-DKA5np85.js} +20 -20
  204. package/chunk/{StepMedicalProfessionalPersonalInfo-gWyABlRt.js.map → StepMedicalProfessionalPersonalInfo-DKA5np85.js.map} +1 -1
  205. package/chunk/{StepMedicalProfessionalPersonalInfo-6bfBdUoS.js → StepMedicalProfessionalPersonalInfo-Dom3M0nW.js} +20 -20
  206. package/chunk/{StepMedicalProfessionalPersonalInfo-6bfBdUoS.js.map → StepMedicalProfessionalPersonalInfo-Dom3M0nW.js.map} +1 -1
  207. package/chunk/{StepMemberPersonalInfo-CmJqrGta.js → StepMemberPersonalInfo-CvATZvNo.js} +15 -15
  208. package/chunk/{StepMemberPersonalInfo-CmJqrGta.js.map → StepMemberPersonalInfo-CvATZvNo.js.map} +1 -1
  209. package/chunk/{StepMemberPersonalInfo-BprECp9N.js → StepMemberPersonalInfo-DNhZGs2f.js} +15 -15
  210. package/chunk/{StepMemberPersonalInfo-BprECp9N.js.map → StepMemberPersonalInfo-DNhZGs2f.js.map} +1 -1
  211. package/chunk/{StepMoverPersonalInfo-CcaJgChc.js → StepMoverPersonalInfo-BLqEaySL.js} +13 -13
  212. package/chunk/{StepMoverPersonalInfo-CcaJgChc.js.map → StepMoverPersonalInfo-BLqEaySL.js.map} +1 -1
  213. package/chunk/{StepMoverPersonalInfo-DCTVw2gn.js → StepMoverPersonalInfo-DbSAn1aA.js} +13 -13
  214. package/chunk/{StepMoverPersonalInfo-DCTVw2gn.js.map → StepMoverPersonalInfo-DbSAn1aA.js.map} +1 -1
  215. package/chunk/{StepOverrideComponent-DZOhA9ul.js → StepOverrideComponent-C9h9fP27.js} +7 -7
  216. package/chunk/{StepOverrideComponent-DZOhA9ul.js.map → StepOverrideComponent-C9h9fP27.js.map} +1 -1
  217. package/chunk/{StepOverrideComponent-C5Y13rbf.js → StepOverrideComponent-ghp8yoRN.js} +7 -7
  218. package/chunk/{StepOverrideComponent-C5Y13rbf.js.map → StepOverrideComponent-ghp8yoRN.js.map} +1 -1
  219. package/chunk/{StepSMSLoop-CkjhIae7.js → StepSMSLoop-CDRG7-3o.js} +5 -5
  220. package/chunk/{StepSMSLoop-CkjhIae7.js.map → StepSMSLoop-CDRG7-3o.js.map} +1 -1
  221. package/chunk/{StepSMSLoop-CRBDFQdo.js → StepSMSLoop-wiA0rt4U.js} +5 -5
  222. package/chunk/{StepSMSLoop-CRBDFQdo.js.map → StepSMSLoop-wiA0rt4U.js.map} +1 -1
  223. package/chunk/StepSSO-Bx1gQq5b.js +4 -4
  224. package/chunk/StepSSO-Cy9ViRyN.js +4 -4
  225. package/chunk/{StepSocialSecurityNumber-DApTJdb-.js → StepSocialSecurityNumber-CGZhAqYm.js} +8 -8
  226. package/chunk/{StepSocialSecurityNumber-DApTJdb-.js.map → StepSocialSecurityNumber-CGZhAqYm.js.map} +1 -1
  227. package/chunk/{StepSocialSecurityNumber-BLIZfrFZ.js → StepSocialSecurityNumber-ZJ1ZNHjg.js} +8 -8
  228. package/chunk/{StepSocialSecurityNumber-BLIZfrFZ.js.map → StepSocialSecurityNumber-ZJ1ZNHjg.js.map} +1 -1
  229. package/chunk/{StepStudentPersonalInfo-B50F4cXq.js → StepStudentPersonalInfo-B8QwLWUK.js} +18 -18
  230. package/chunk/{StepStudentPersonalInfo-B50F4cXq.js.map → StepStudentPersonalInfo-B8QwLWUK.js.map} +1 -1
  231. package/chunk/{StepStudentPersonalInfo-BpjQ8PhZ.js → StepStudentPersonalInfo-BXWQv_JA.js} +18 -18
  232. package/chunk/{StepStudentPersonalInfo-BpjQ8PhZ.js.map → StepStudentPersonalInfo-BXWQv_JA.js.map} +1 -1
  233. package/chunk/{StepSuccess-CgUgnT8d.js → StepSuccess-DZ-fwvIw.js} +6 -6
  234. package/chunk/{StepSuccess-CgUgnT8d.js.map → StepSuccess-DZ-fwvIw.js.map} +1 -1
  235. package/chunk/{StepSuccess-55Pbqvdo.js → StepSuccess-DmWCexUW.js} +6 -6
  236. package/chunk/{StepSuccess-55Pbqvdo.js.map → StepSuccess-DmWCexUW.js.map} +1 -1
  237. package/chunk/{StepTeacherPersonalInfo-DFsX9TOF.js → StepTeacherPersonalInfo-BRTHwZ0Z.js} +16 -16
  238. package/chunk/{StepTeacherPersonalInfo-DFsX9TOF.js.map → StepTeacherPersonalInfo-BRTHwZ0Z.js.map} +1 -1
  239. package/chunk/{StepTeacherPersonalInfo-DyuI8uXC.js → StepTeacherPersonalInfo-BcCWpqUN.js} +16 -16
  240. package/chunk/{StepTeacherPersonalInfo-DyuI8uXC.js.map → StepTeacherPersonalInfo-BcCWpqUN.js.map} +1 -1
  241. package/chunk/StepThirdPartyLoop-BFizJiyZ.js +4 -4
  242. package/chunk/StepThirdPartyLoop-C9d7QWS3.js +4 -4
  243. package/chunk/{TeacherSchoolComponent-8sLi650G.js → TeacherSchoolComponent-DLxAYJLl.js} +8 -8
  244. package/chunk/{TeacherSchoolComponent-8sLi650G.js.map → TeacherSchoolComponent-DLxAYJLl.js.map} +1 -1
  245. package/chunk/{TeacherSchoolComponent-ndTw5jmt.js → TeacherSchoolComponent-aOI2VcI5.js} +8 -8
  246. package/chunk/{TeacherSchoolComponent-ndTw5jmt.js.map → TeacherSchoolComponent-aOI2VcI5.js.map} +1 -1
  247. package/chunk/TestingRouteOverrides-DXjtFZZd.js +4 -4
  248. package/chunk/TestingRouteOverrides-fnlJLg1Z.js +4 -4
  249. package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
  250. package/chunk/ar-D5CO913q.js +4 -4
  251. package/chunk/bg-1mhA5kYF.js +4 -4
  252. package/chunk/bn-IN-CpDqyRb_.js +4 -4
  253. package/chunk/clsx-DC8twM4t.js +4 -4
  254. package/chunk/countryUtils-D1471i0b.js +12 -0
  255. package/chunk/{countryUtils-CuD8ii9W.js.map → countryUtils-D1471i0b.js.map} +1 -1
  256. package/chunk/{countryUtils-qQluGFWF.js → countryUtils-KL2KBMOv.js} +5 -5
  257. package/chunk/{countryUtils-qQluGFWF.js.map → countryUtils-KL2KBMOv.js.map} +1 -1
  258. package/chunk/cs-Chh7FAGt.js +4 -4
  259. package/chunk/da-DwrVoxto.js +4 -4
  260. package/chunk/de-IWGZLhgY.js +4 -4
  261. package/chunk/{downshift.esm-D6vAwNly.js → downshift.esm-3XGVdV4K.js} +5 -5
  262. package/chunk/{downshift.esm-D6vAwNly.js.map → downshift.esm-3XGVdV4K.js.map} +1 -1
  263. package/chunk/{downshift.esm-IbJIH7kK.js → downshift.esm-DmlDHS_b.js} +5 -5
  264. package/chunk/{downshift.esm-IbJIH7kK.js.map → downshift.esm-DmlDHS_b.js.map} +1 -1
  265. package/chunk/el-DbDcvSPJ.js +4 -4
  266. package/chunk/empties-BBKd53_B.js +4 -4
  267. package/chunk/empties-DcQjcgEV.js +4 -4
  268. package/chunk/en-GB-CNQ8Ww2j.js +4 -4
  269. package/chunk/es-ES-DWimqEZ_.js +4 -4
  270. package/chunk/es-qhC-seq5.js +4 -4
  271. package/chunk/et-yF9G-Mym.js +4 -4
  272. package/chunk/eventEmitter-CSG6jR7V.js +4 -4
  273. package/chunk/fa-BcdSf7og.js +4 -4
  274. package/chunk/fi-D-IP_KHm.js +4 -4
  275. package/chunk/fr-BmUuYxk0.js +4 -4
  276. package/chunk/fr-CA-DVQ4xmzZ.js +4 -4
  277. package/chunk/ga-DuZycND3.js +4 -4
  278. package/chunk/getInstallType-BRxisNNY.js +4 -4
  279. package/chunk/getInstallType-DlS_DNKt.js +4 -4
  280. package/chunk/hi-IN-l6Rn5Ewm.js +4 -4
  281. package/chunk/hooks-B7aeAwHn.js +4 -4
  282. package/chunk/hooks-D0X_qdc-.js +4 -4
  283. package/chunk/hr-BtqyDzDB.js +4 -4
  284. package/chunk/hu-C6syKJfb.js +4 -4
  285. package/chunk/i18next-iyVj5hRL.js +4 -4
  286. package/chunk/id-GgI-Z2a5.js +4 -4
  287. package/chunk/intl-BK4prEGw.js +4 -4
  288. package/chunk/is-CvmKEON9.js +4 -4
  289. package/chunk/it-CnmveGgC.js +4 -4
  290. package/chunk/iw-DFUYHkxF.js +4 -4
  291. package/chunk/ja-CjVb2tWW.js +4 -4
  292. package/chunk/jsx-runtime-BUMIo32n.js +4 -4
  293. package/chunk/jsx-runtime-DwmrsRqi.js +4 -4
  294. package/chunk/kk-Dvz4nK6K.js +4 -4
  295. package/chunk/ko-DzOqBMGC.js +4 -4
  296. package/chunk/lo-C2WPq55d.js +4 -4
  297. package/chunk/lt-BSDYvjTF.js +4 -4
  298. package/chunk/lv-CefDPT-M.js +4 -4
  299. package/chunk/mockProgramBranding-C9Ysu3Mp.js +4 -4
  300. package/chunk/mockProgramConfiguration-YBQMVL51.js +4 -4
  301. package/chunk/mockProgramI18n-CgYx_1_a.js +4 -4
  302. package/chunk/mockProgramTheme-Cfk2dzF3.js +4 -4
  303. package/chunk/mocks-DV23paUj.js +4 -4
  304. package/chunk/mocks-R-p7VtJz.js +4 -4
  305. package/chunk/ms-BjestZxy.js +4 -4
  306. package/chunk/nl-B1FyUfCT.js +4 -4
  307. package/chunk/nl-BE-CbeAd3nq.js +4 -4
  308. package/chunk/no-Dr633Ddi.js +4 -4
  309. package/chunk/pl-UYTjMIq_.js +4 -4
  310. package/chunk/{programThemeGetters-B9wBX-xJ.js → programThemeGetters-C8JS1yEr.js} +5 -5
  311. package/chunk/{programThemeGetters-B9wBX-xJ.js.map → programThemeGetters-C8JS1yEr.js.map} +1 -1
  312. package/chunk/{programThemeGetters-Bzh-58Ge.js → programThemeGetters-DXn-alcY.js} +6 -6
  313. package/chunk/{programThemeGetters-Bzh-58Ge.js.map → programThemeGetters-DXn-alcY.js.map} +1 -1
  314. package/chunk/pt-BR-C8SYMT-J.js +4 -4
  315. package/chunk/pt-uH-M3GdN.js +4 -4
  316. package/chunk/refs-Mq0rtW9K.js +4 -4
  317. package/chunk/ro-CAOSXZ7h.js +4 -4
  318. package/chunk/ru-iwYoEydL.js +4 -4
  319. package/chunk/runtimeTypes-B2AGNJMT.js +4 -4
  320. package/chunk/sk-DYYNV3zw.js +4 -4
  321. package/chunk/sl-D_-eeM5N.js +4 -4
  322. package/chunk/sr-BTi9_anL.js +4 -4
  323. package/chunk/stepComponentHelpers-CyqXTDdj.js +4 -4
  324. package/chunk/stepComponentHelpers-Dztw-HNP.js +4 -4
  325. package/chunk/strings-DWLVdUcm.js +4 -4
  326. package/chunk/sv-DRwY4shG.js +4 -4
  327. package/chunk/sw-Bvj2mYmM.js +4 -4
  328. package/chunk/ta-CmtaYoNe.js +4 -4
  329. package/chunk/th-12r2yKkJ.js +4 -4
  330. package/chunk/tl-BGNfO7md.js +4 -4
  331. package/chunk/tr-DH2ZSJhs.js +4 -4
  332. package/chunk/uk-CELBZlTd.js +4 -4
  333. package/chunk/ur-MR8DTbmd.js +4 -4
  334. package/chunk/{useCollectFieldsEndpoint-CDurKyGC.js → useCollectFieldsEndpoint-84_Wz8sd.js} +13 -13
  335. package/chunk/{useCollectFieldsEndpoint-CDurKyGC.js.map → useCollectFieldsEndpoint-84_Wz8sd.js.map} +1 -1
  336. package/chunk/{useCollectFieldsEndpoint-BsZtszzj.js → useCollectFieldsEndpoint-CXmPHndq.js} +6 -6
  337. package/chunk/{useCollectFieldsEndpoint-BsZtszzj.js.map → useCollectFieldsEndpoint-CXmPHndq.js.map} +1 -1
  338. package/chunk/useMetrics-C13Ap129.js +4 -4
  339. package/chunk/useMetrics-O66_lNx5.js +4 -4
  340. package/chunk/vi-DtZ-SqD5.js +4 -4
  341. package/chunk/zh-DjyVyYac.js +4 -4
  342. package/chunk/zh-HK-CN1HarHq.js +4 -4
  343. package/chunk/zu-DPhgIh1z.js +4 -4
  344. package/package.json +1 -1
  345. package/sheerid-install.css +4 -4
  346. package/sheerid-install.js +4 -4
  347. package/sheerid.css +4 -4
  348. package/sheerid.js +37 -37
  349. package/chunk/countryUtils-CuD8ii9W.js +0 -12
@@ -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.311.0
8
- * BUILD_TIMESTAMP: 1793640334956
9
- * BUILD_DATE: Mon Nov 02 2026 17:25:34 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 776e6da2b784d1da6b1de14b7ee019e118e6db8c
7
+ * VERSION: 2.312.0
8
+ * BUILD_TIMESTAMP: 1793657708319
9
+ * BUILD_DATE: Mon Nov 02 2026 22:15:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: d28d18cf826fdda5ef438b299140b7946082d830
11
11
  */
12
12
  import { B as e } from "./intl-BK4prEGw.js";
13
13
  import { n as t, t as n } from "./jsx-runtime-BUMIo32n.js";
14
- import { n as r } from "./Message-DgJ0fCH2.js";
15
- import { o as i } from "./programThemeGetters-Bzh-58Ge.js";
16
- import { g as a } from "./FormFooterComponent-D3c-ewUT.js";
17
- import { t as o } from "./downshift.esm-D6vAwNly.js";
14
+ import { n as r } from "./Message-D2kP5FCJ.js";
15
+ import { o as i } from "./programThemeGetters-DXn-alcY.js";
16
+ import { v as a } from "./FormFooterComponent-Brab2xcp.js";
17
+ import { t as o } from "./downshift.esm-3XGVdV4K.js";
18
18
  import { t as s } from "./clsx-DC8twM4t.js";
19
19
  //#region src/components/FormInputs/Select/SelectList/SelectListComponent.tsx
20
20
  var c = n(), l = 42, u = ({ getItemProps: e, highlightedIndex: n, options: r, itemToString: i }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"ChangeLocaleComponent-DJ-OCTQZ.js","names":["DEFAULT_LOCALE","FormattedHTMLMessage","require_jsx_runtime","useMessage","useProgramConfiguration","getAvailableLocales","useCombobox","clsx","import_jsx_runtime","ROW_HEIGHT","SelectListComponent","fullHeight","options","optionWithItemProps","highlightedIndex","index","getItemProps","itemToString","option","SelectButtonComponent","getToggleButtonProps","isOpen","item","SelectComponent","newSelectedItem","onChange","value","displayValue","className","getInputProps","overrideInputClassName","isErrored","DisplayValueDecorator","getMenuProps","LocaleSymbol","ChangeLocaleComponent","newOptions","msg","id","locale","ChangeLocaleV2Component","programConfiguration","localeChoices","updateLocale","localeChoice","verificationService","defaultLocaleChoice"],"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/ProgramConfiguration/programConfigurationGetters\";\nimport { useProgramConfiguration } 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 programConfiguration = useProgramConfiguration();\n const localeChoices: FormSelectChoice<Locale, string>[] = getAvailableLocales(\n programConfiguration,\n ).map((locale) => ({\n value: locale,\n label: msg({ id: `locales.${locale}` }),\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":";;;;;;;;A,aAWMS,IAAa,IAoCNC,KAlCO,EAAE,iBAAc,qBAAkB,YAAS,sBAAoC;CACjG,IAAMC,IAAaC,EAAQ,SAASH,GAE9BI,KAAuB,GAAwB,MACnD,iBAAA,GAAAL,EAAA,IAAA,CAAC,OAAD;EACE,WAAW,yBACTM,MAAqBC,IAAQ,uCAAuC;EAItE,GAAIC,EAAa;GACf;GACA;EACF,CAAC;EAEA,UAAAC,EAAaL,EAAQG,EAAM;CACzB,GAREA,CAQF;CAWP,OARI,CAACH,KAAWA,EAAQ,WAAW,IAE/B,iBAAA,GA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mB,CAAA;EACzE,CAAA,GACL,iBAAA,GAAAO,EAAA,IAAA,CAACe,GAAD;GACE,WAAU;GACV,SAASa;GACT,WAAW,MAA6BX,EAASc,CAAM;GACvD,uBAAuB,iBAAA,GAAA/B,EAAA,IAAA,CAAC0B,GAAD,CAAe,CAAA;GACtC,wBAAuB;GACvB,OAAOE,EAAW,MAAM,MAAWlB,EAAO,WAAWQ,KAASA,EAAM,MAAM;GACtE;EACL,CAAA,CACE;;AAET,GAUac,KAA2B,EAAE,6BAA+C;CACvF,IAAM,EAAE,WAAQrC,EAAW,GACrBsC,IAAuBrC,EAAwB,GAC/CsC,IAAoDrC,EACxDoC,CACF,CAAC,CAAC,KAAK,OAAY;EACjB,OAAOF;EACP,OAAOF,EAAI,EAAE,IAAI,WAAWE,IAAS,CAAC;CACxC,EAAE,GAEII,KAAgB,MAAmD;EACvE,AAAKC,GAAc,SACfC,EAAoB,UAAU,aAAa,UAAUD,EAAa,SAEtEC,EAAoB,aAClBD,EAAa,OACbC,EAAoB,qBAAqB,OAC3C;CACF;CAEA,IAAIH,EAAc,UAAU,GAC1B,OAAO;CAGT,IAAMI,IAAwD;EAC5D,OAAO9C;EACP,OAAO;CACT;CAEA,OACE,iBAAA,GAAAQ,EAAA,IAAA,CAAC2B,GAAD;EACE,SAASO;EACT,OAAOG,EAAoB,UAAU,gBAAgBC;EACrD,WAAW,MAAmDH,EAAaC,CAAY;CACxF,CAAA;AAEL"}
1
+ {"version":3,"file":"ChangeLocaleComponent-AKQ7gIkP.js","names":["DEFAULT_LOCALE","FormattedHTMLMessage","require_jsx_runtime","useMessage","useProgramConfiguration","getAvailableLocales","useCombobox","clsx","import_jsx_runtime","ROW_HEIGHT","SelectListComponent","fullHeight","options","optionWithItemProps","highlightedIndex","index","getItemProps","itemToString","option","SelectButtonComponent","getToggleButtonProps","isOpen","item","SelectComponent","newSelectedItem","onChange","value","displayValue","className","getInputProps","overrideInputClassName","isErrored","DisplayValueDecorator","getMenuProps","LocaleSymbol","ChangeLocaleComponent","newOptions","msg","id","locale","ChangeLocaleV2Component","programConfiguration","localeChoices","updateLocale","localeChoice","verificationService","defaultLocaleChoice"],"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/ProgramConfiguration/programConfigurationGetters\";\nimport { useProgramConfiguration } 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 programConfiguration = useProgramConfiguration();\n const localeChoices: FormSelectChoice<Locale, string>[] = getAvailableLocales(\n programConfiguration,\n ).map((locale) => ({\n value: locale,\n label: msg({ id: `locales.${locale}` }),\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":";;;;;;;;A,aAWMS,IAAa,IAoCNC,KAlCO,EAAE,iBAAc,qBAAkB,YAAS,sBAAoC;CACjG,IAAMC,IAAaC,EAAQ,SAASH,GAE9BI,KAAuB,GAAwB,MACnD,iBAAA,GAAAL,EAAA,IAAA,CAAC,OAAD;EACE,WAAW,yBACTM,MAAqBC,IAAQ,uCAAuC;EAItE,GAAIC,EAAa;GACf;GACA;EACF,CAAC;EAEA,UAAAC,EAAaL,EAAQG,EAAM;CACzB,GAREA,CAQF;CAWP,OARI,CAACH,KAAWA,EAAQ,WAAW,IAE/B,iBAAA,GAAAJ,EAAA,IAAA,CAAC,OA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iBAAA,GAAAO,EAAA,IAAA,CAACe,GAAD;GACE,WAAU;GACV,SAASa;GACT,WAAW,MAA6BX,EAASc,CAAM;GACvD,uBAAuB,iBAAA,GAAA/B,EAAA,IAAA,CAAC0B,GAAD,CAAe,CAAA;GACtC,wBAAuB;GACvB,OAAOE,EAAW,MAAM,MAAWlB,EAAO,WAAWQ,KAASA,EAAM,MAAM;GACtE;EACL,CAAA,CACE;;AAET,GAUac,KAA2B,EAAE,6BAA+C;CACvF,IAAM,EAAE,WAAQrC,EAAW,GACrBsC,IAAuBrC,EAAwB,GAC/CsC,IAAoDrC,EACxDoC,CACF,CAAC,CAAC,KAAK,OAAY;EACjB,OAAOF;EACP,OAAOF,EAAI,EAAE,IAAI,WAAWE,IAAS,CAAC;CACxC,EAAE,GAEII,KAAgB,MAAmD;EACvE,AAAKC,GAAc,SACfC,EAAoB,UAAU,aAAa,UAAUD,EAAa,SAEtEC,EAAoB,aAClBD,EAAa,OACbC,EAAoB,qBAAqB,OAC3C;CACF;CAEA,IAAIH,EAAc,UAAU,GAC1B,OAAO;CAGT,IAAMI,IAAwD;EAC5D,OAAO9C;EACP,OAAO;CACT;CAEA,OACE,iBAAA,GAAAQ,EAAA,IAAA,CAAC2B,GAAD;EACE,SAASO;EACT,OAAOG,EAAoB,UAAU,gBAAgBC;EACrD,WAAW,MAAmDH,EAAaC,CAAY;CACxF,CAAA;AAEL"}
@@ -1,16 +1,16 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.311.0
4
- * BUILD_TIMESTAMP: 1793640327724
5
- * BUILD_DATE: Mon Nov 02 2026 17:25:27 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 776e6da2b784d1da6b1de14b7ee019e118e6db8c
3
+ * VERSION: 2.312.0
4
+ * BUILD_TIMESTAMP: 1793657704084
5
+ * BUILD_DATE: Mon Nov 02 2026 22:15:04 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d28d18cf826fdda5ef438b299140b7946082d830
7
7
  */
8
8
  import { M as e } from "./i18next-iyVj5hRL.js";
9
9
  import { n as t, t as n } from "./jsx-runtime-DwmrsRqi.js";
10
- import { o as r } from "./programThemeGetters-B9wBX-xJ.js";
11
- import { n as i } from "./Message-CT7bGfqP.js";
12
- import { x as a } from "./FormFooterComponent-Cpzral2z.js";
13
- import { t as o } from "./downshift.esm-IbJIH7kK.js";
10
+ import { o as r } from "./programThemeGetters-C8JS1yEr.js";
11
+ import { n as i } from "./Message-C6bKPcuM.js";
12
+ import { x as a } from "./FormFooterComponent-he4l6p39.js";
13
+ import { t as o } from "./downshift.esm-DmlDHS_b.js";
14
14
  import { t as s } from "./clsx-DC8twM4t.js";
15
15
  //#region src/components/FormInputs/Select/SelectList/SelectListComponent.tsx
16
16
  var c = n(), l = 42, u = ({ getItemProps: e, highlightedIndex: n, options: r, itemToString: i }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"ChangeLocaleComponent-DP6rvRFM.js","names":["DEFAULT_LOCALE","FormattedHTMLMessage","require_jsx_runtime","useProgramConfiguration","useMessage","getAvailableLocales","useCombobox","clsx","import_jsx_runtime","ROW_HEIGHT","SelectListComponent","fullHeight","options","optionWithItemProps","highlightedIndex","index","getItemProps","itemToString","option","SelectButtonComponent","getToggleButtonProps","isOpen","item","SelectComponent","newSelectedItem","onChange","value","displayValue","className","getInputProps","overrideInputClassName","isErrored","DisplayValueDecorator","getMenuProps","LocaleSymbol","ChangeLocaleComponent","newOptions","msg","id","locale","ChangeLocaleV2Component","programConfiguration","localeChoices","updateLocale","localeChoice","verificationService","defaultLocaleChoice"],"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/ProgramConfiguration/programConfigurationGetters\";\nimport { useProgramConfiguration } 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 programConfiguration = useProgramConfiguration();\n const localeChoices: FormSelectChoice<Locale, string>[] = getAvailableLocales(\n programConfiguration,\n ).map((locale) => ({\n value: locale,\n label: msg({ id: `locales.${locale}` }),\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":";;;;;;;;A,aAWMS,IAAa,IAoCNC,KAlCO,EAAE,iBAAc,qBAAkB,YAAS,sBAAoC;CACjG,IAAMC,IAAaC,EAAQ,SAASH,GAE9BI,KAAuB,GAAwB,MACnD,iBAAA,GAAAL,EAAA,IAAA,CAAC,OAAD;EACE,WAAW,yBACTM,MAAqBC,IAAQ,uCAAuC;EAItE,GAAIC,EAAa;GACf;GACA;EACF,CAAC;EAEA,UAAAC,EAAaL,EAAQG,EAAM;CACzB,GAREA,CAQF;CAWP,OARI,CAACH,KAAWA,EAAQ,WAAW,IAE/B,iBAAA,GAAAJ,EAAA,IAAA,CAAC,OAAD;EAAK,WAAU;EACb,UAAA,iBAAA,GAAAA,EAAA,IAAA,CAACP,GAAD;GAAsB,IAAG;GAAY,gBAAe;EAAc,CAAA;CAC/D,CAAA,IAKP,iBAAA,GAAAO,EAAA,IAAA,CAAC,OAAD;EAAK,WAAU;EAA8B,OAAO,EAAE,QAAQ,KAAK,IAAIG,GAAY,GAAG,EAAE;EACrF,UAAAC,EAAQ,KAAK,GAAQ,MAAUC,EAAoBK,GAAQH,CAAK,CAAC;CAC/D,CAAA;AAET,GCvBaI,KAjBS,EAAE,yBAAsB,gB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AwB,GAC/CuC,IAAoDrC,EACxDoC,CACF,CAAC,CAAC,KAAK,OAAY;EACjB,OAAOF;EACP,OAAOF,EAAI,EAAE,IAAI,WAAWE,IAAS,CAAC;CACxC,EAAE,GAEII,KAAgB,MAAmD;EACvE,AAAKC,GAAc,SACfC,EAAoB,UAAU,aAAa,UAAUD,EAAa,SAEtEC,EAAoB,aAClBD,EAAa,OACbC,EAAoB,qBAAqB,OAC3C;CACF;CAEA,IAAIH,EAAc,UAAU,GAC1B,OAAO;CAGT,IAAMI,IAAwD;EAC5D,OAAO9C;EACP,OAAO;CACT;CAEA,OACE,iBAAA,GAAAQ,EAAA,IAAA,CAAC2B,GAAD;EACE,SAASO;EACT,OAAOG,EAAoB,UAAU,gBAAgBC;EACrD,WAAW,MAAmDH,EAAaC,CAAY;CACxF,CAAA;AAEL"}
1
+ {"version":3,"file":"ChangeLocaleComponent-BOFrHFyG.js","names":["DEFAULT_LOCALE","FormattedHTMLMessage","require_jsx_runtime","useProgramConfiguration","useMessage","getAvailableLocales","useCombobox","clsx","import_jsx_runtime","ROW_HEIGHT","SelectListComponent","fullHeight","options","optionWithItemProps","highlightedIndex","index","getItemProps","itemToString","option","SelectButtonComponent","getToggleButtonProps","isOpen","item","SelectComponent","newSelectedItem","onChange","value","displayValue","className","getInputProps","overrideInputClassName","isErrored","DisplayValueDecorator","getMenuProps","LocaleSymbol","ChangeLocaleComponent","newOptions","msg","id","locale","ChangeLocaleV2Component","programConfiguration","localeChoices","updateLocale","localeChoice","verificationService","defaultLocaleChoice"],"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/ProgramConfiguration/programConfigurationGetters\";\nimport { useProgramConfiguration } 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 programConfiguration = useProgramConfiguration();\n const localeChoices: FormSelectChoice<Locale, string>[] = getAvailableLocales(\n programConfiguration,\n ).map((locale) => ({\n value: locale,\n label: msg({ id: `locales.${locale}` }),\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":";;;;;;;;A,aAWMS,IAAa,IAoCNC,KAlCO,EAAE,iBAAc,qBAAkB,YAAS,sBAAoC;CACjG,IAAMC,IAAaC,EAAQ,SAASH,GAE9BI,KAAuB,GAAwB,MACnD,iBAAA,GAAAL,EAAA,IAAA,CAAC,OAAD;EACE,WAAW,yBACTM,MAAqBC,IAAQ,uCAAuC;EAItE,GAAIC,EAAa;GACf;GACA;EACF,CAAC;EAEA,UAAAC,EAAaL,EAAQG,EAAM;CACzB,GAREA,CAQF;CAWP,OARI,CAACH,KAAWA,EAAQ,WAAW,IAE/B,iBAAA,GAAAJ,EAAA,IAAA,CAAC,OAAD;EAAK,WAAU;EACb,UAAA,iBAAA,GAAAA,EAAA,IAAA,CAACP,GAAD;GAAsB,IAAG;GAAY,gBAAe;EAAc,CAAA;CAC/D,CAAA,IAKP,iBAAA,GAAAO,EAAA,IAAA,CAAC,OAAD;EAAK,WAAU;EAA8B,OAAO,EAAE,QAAQ,KAAK,IAAIG,GAAY,GAAG,EAAE;EACrF,UAAAC,EAAQ,KAAK,GAAQ,MAAUC,EAAoBK,GAAQH,CAAK,CAAC;CAC/D,CAAA;AAET,GCvBaI,KAjBS,EAAE,yBAAsB,gBAE5C,iBAAA,GAAAX,EAAA,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xDoC,CACF,CAAC,CAAC,KAAK,OAAY;EACjB,OAAOF;EACP,OAAOF,EAAI,EAAE,IAAI,WAAWE,IAAS,CAAC;CACxC,EAAE,GAEII,KAAgB,MAAmD;EACvE,AAAKC,GAAc,SACfC,EAAoB,UAAU,aAAa,UAAUD,EAAa,SAEtEC,EAAoB,aAClBD,EAAa,OACbC,EAAoB,qBAAqB,OAC3C;CACF;CAEA,IAAIH,EAAc,UAAU,GAC1B,OAAO;CAGT,IAAMI,IAAwD;EAC5D,OAAO9C;EACP,OAAO;CACT;CAEA,OACE,iBAAA,GAAAQ,EAAA,IAAA,CAAC2B,GAAD;EACE,SAASO;EACT,OAAOG,EAAoB,UAAU,gBAAgBC;EACrD,WAAW,MAAmDH,EAAaC,CAAY;CACxF,CAAA;AAEL"}
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.311.0
4
- * BUILD_TIMESTAMP: 1793640327724
5
- * BUILD_DATE: Mon Nov 02 2026 17:25:27 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 776e6da2b784d1da6b1de14b7ee019e118e6db8c
3
+ * VERSION: 2.312.0
4
+ * BUILD_TIMESTAMP: 1793657704084
5
+ * BUILD_DATE: Mon Nov 02 2026 22:15:04 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d28d18cf826fdda5ef438b299140b7946082d830
7
7
  */
8
8
  import { n as e, t } from "./jsx-runtime-DwmrsRqi.js";
9
- import { n } from "./Message-CT7bGfqP.js";
9
+ import { n } from "./Message-C6bKPcuM.js";
10
10
  import { t as r } from "./stepComponentHelpers-CyqXTDdj.js";
11
11
  import { t as i } from "./FormFieldText-CkPmuIPf.js";
12
12
  //#region src/components/FormFields/City/City.tsx
@@ -1 +1 @@
1
- {"version":3,"file":"City-BENIBYvt.js","names":["FormattedHTMLMessage","getFieldConfigByFieldId","FormFieldText","import_jsx_runtime","require_jsx_runtime","CityComponent","useMessage","placeholder","msg","isErrored","isRequired","onKeyDown"],"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":";;;;;A,aAaaK,KAAiB,EAC5B,UACA,cACA,aACA,gBAAa,IACb,eAAY,KAAA,GACZ,iBAAc,IACd,cAAW,SACgC;CAC3C,IAAM,EAAE,WAAQC,EAAW;CAO3B,OANsBL,EAAwB,MAAM,CAAC,EAAE,SAG9C,OAIP,iBAAA,GAAAE,EAAA,IAAA,CAACD,GAAD;EACE,SAAQ;EACD;EACG;EACV,aAAaK,KAAeC,EAAI,EAAE,IAAI,kBAAkB,CAAC;EACzD,OAAO,iBAAA,GAAAL,EAAA,IAAA,CAACH,GAAD;GAAsB,IAAG;GAAO,gBAAe;EAAQ,CAAA;EAC9D,cACES,KAAa,iBAAA,GAAAN,EAAA,IAAA,CAACH,GAAD;GAAsB,IAAG;GAAsB,gBAAe;EAAgB,CAAA;EAE7F,6BAA6B,CAAC,CAACO;EAC/B,UAAUG;EACV,WAAW,OAAOC,KAAc,cAAc,MAAMA,EAAU,CAAC,IAAI,KAAA;EACzD;EACV,cAAa;CACd,CAAA;AAEL"}
1
+ {"version":3,"file":"City-D4to8D65.js","names":["FormattedHTMLMessage","getFieldConfigByFieldId","FormFieldText","import_jsx_runtime","require_jsx_runtime","CityComponent","useMessage","placeholder","msg","isErrored","isRequired","onKeyDown"],"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":";;;;;A,aAaaK,KAAiB,EAC5B,UACA,cACA,aACA,gBAAa,IACb,eAAY,KAAA,GACZ,iBAAc,IACd,cAAW,SACgC;CAC3C,IAAM,EAAE,WAAQC,EAAW;CAO3B,OANsBL,EAAwB,MAAM,CAAC,EAAE,SAG9C,OAIP,iBAAA,GAAAE,EAAA,IAAA,CAACD,GAAD;EACE,SAAQ;EACD;EACG;EACV,aAAaK,KAAeC,EAAI,EAAE,IAAI,kBAAkB,CAAC;EACzD,OAAO,iBAAA,GAAAL,EAAA,IAAA,CAACH,GAAD;GAAsB,IAAG;GAAO,gBAAe;EAAQ,CAAA;EAC9D,cACES,KAAa,iBAAA,GAAAN,EAAA,IAAA,CAACH,GAAD;GAAsB,IAAG;GAAsB,gBAAe;EAAgB,CAAA;EAE7F,6BAA6B,CAAC,CAACO;EAC/B,UAAUG;EACV,WAAW,OAAOC,KAAc,cAAc,MAAMA,EAAU,CAAC,IAAI,KAAA;EACzD;EACV,cAAa;CACd,CAAA;AAEL"}
@@ -4,13 +4,13 @@
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.311.0
8
- * BUILD_TIMESTAMP: 1793640334956
9
- * BUILD_DATE: Mon Nov 02 2026 17:25:34 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 776e6da2b784d1da6b1de14b7ee019e118e6db8c
7
+ * VERSION: 2.312.0
8
+ * BUILD_TIMESTAMP: 1793657708319
9
+ * BUILD_DATE: Mon Nov 02 2026 22:15:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: d28d18cf826fdda5ef438b299140b7946082d830
11
11
  */
12
12
  import { n as e, t } from "./jsx-runtime-BUMIo32n.js";
13
- import { n } from "./Message-DgJ0fCH2.js";
13
+ import { n } from "./Message-D2kP5FCJ.js";
14
14
  import { t as r } from "./stepComponentHelpers-Dztw-HNP.js";
15
15
  import { t as i } from "./FormFieldText-B_2IOFED.js";
16
16
  //#region src/components/FormFields/City/City.tsx
@@ -1 +1 @@
1
- {"version":3,"file":"City-C_ojHI8D.js","names":["FormattedHTMLMessage","getFieldConfigByFieldId","FormFieldText","import_jsx_runtime","require_jsx_runtime","CityComponent","useMessage","placeholder","msg","isErrored","isRequired","onKeyDown"],"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":";;;;;A,aAaaK,KAAiB,EAC5B,UACA,cACA,aACA,gBAAa,IACb,eAAY,KAAA,GACZ,iBAAc,IACd,cAAW,SACgC;CAC3C,IAAM,EAAE,WAAQC,EAAW;CAO3B,OANsBL,EAAwB,MAAM,CAAC,EAAE,SAG9C,OAIP,iBAAA,GAAAE,EAAA,IAAA,CAACD,GAAD;EACE,SAAQ;EACD;EACG;EACV,aAAaK,KAAeC,EAAI,EAAE,IAAI,kBAAkB,CAAC;EACzD,OAAO,iBAAA,GAAAL,EAAA,IAAA,CAACH,GAAD;GAAsB,IAAG;GAAO,gBAAe;EAAQ,CAAA;EAC9D,cACES,KAAa,iBAAA,GAAAN,EAAA,IAAA,CAACH,GAAD;GAAsB,IAAG;GAAsB,gBAAe;EAAgB,CAAA;EAE7F,6BAA6B,CAAC,CAACO;EAC/B,UAAUG;EACV,WAAW,OAAOC,KAAc,cAAc,MAAMA,EAAU,CAAC,IAAI,KAAA;EACzD;EACV,cAAa;CACd,CAAA;AAEL"}
1
+ {"version":3,"file":"City-D6VlEIOj.js","names":["FormattedHTMLMessage","getFieldConfigByFieldId","FormFieldText","import_jsx_runtime","require_jsx_runtime","CityComponent","useMessage","placeholder","msg","isErrored","isRequired","onKeyDown"],"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":";;;;;A,aAaaK,KAAiB,EAC5B,UACA,cACA,aACA,gBAAa,IACb,eAAY,KAAA,GACZ,iBAAc,IACd,cAAW,SACgC;CAC3C,IAAM,EAAE,WAAQC,EAAW;CAO3B,OANsBL,EAAwB,MAAM,CAAC,EAAE,SAG9C,OAIP,iBAAA,GAAAE,EAAA,IAAA,CAACD,GAAD;EACE,SAAQ;EACD;EACG;EACV,aAAaK,KAAeC,EAAI,EAAE,IAAI,kBAAkB,CAAC;EACzD,OAAO,iBAAA,GAAAL,EAAA,IAAA,CAACH,GAAD;GAAsB,IAAG;GAAO,gBAAe;EAAQ,CAAA;EAC9D,cACES,KAAa,iBAAA,GAAAN,EAAA,IAAA,CAACH,GAAD;GAAsB,IAAG;GAAsB,gBAAe;EAAgB,CAAA;EAE7F,6BAA6B,CAAC,CAACO;EAC/B,UAAUG;EACV,WAAW,OAAOC,KAAc,cAAc,MAAMA,EAAU,CAAC,IAAI,KAAA;EACzD;EACV,cAAa;CACd,CAAA;AAEL"}
@@ -1,17 +1,17 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.311.0
4
- * BUILD_TIMESTAMP: 1793640327724
5
- * BUILD_DATE: Mon Nov 02 2026 17:25:27 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 776e6da2b784d1da6b1de14b7ee019e118e6db8c
3
+ * VERSION: 2.312.0
4
+ * BUILD_TIMESTAMP: 1793657704084
5
+ * BUILD_DATE: Mon Nov 02 2026 22:15:04 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d28d18cf826fdda5ef438b299140b7946082d830
7
7
  */
8
8
  import { u as e } from "./i18next-iyVj5hRL.js";
9
9
  import { n as t, t as n } from "./jsx-runtime-DwmrsRqi.js";
10
- import { o as r } from "./programThemeGetters-B9wBX-xJ.js";
11
- import { n as i } from "./Message-CT7bGfqP.js";
12
- import { w as a } from "./FormFooterComponent-Cpzral2z.js";
10
+ import { o as r } from "./programThemeGetters-C8JS1yEr.js";
11
+ import { n as i } from "./Message-C6bKPcuM.js";
12
+ import { w as a } from "./FormFooterComponent-he4l6p39.js";
13
13
  import { t as o } from "./stepComponentHelpers-CyqXTDdj.js";
14
- import { t as s } from "./FormFieldTypeahead-D_061VBz.js";
14
+ import { t as s } from "./FormFieldTypeahead-Bn4oW-PC.js";
15
15
  //#region src/components/FormFields/CollegeName/CollegeNameComponent.tsx
16
16
  var c = n(), l = ({ value: n, isErrored: l, onChange: u, verificationService: d, placeholder: f = "", isRequired: p = !0, disabled: m = !1 }) => {
17
17
  let h = r(), { msg: g } = i(), _ = (e().urlAddSchoolForm || "").trim();
@@ -1 +1 @@
1
- {"version":3,"file":"CollegeNameComponent-DEGHGVMH.js","names":["getOptions","FormattedHTMLMessage","require_jsx_runtime","useProgramConfiguration","useMessage","getOrgSearchUrl","getFieldConfigByFieldId","FormFieldTypeahead","import_jsx_runtime","CollegeNameComponent","programConfiguration","urlAddSchoolForm","onChange","choice","placeholder","msg","isErrored","verificationService"],"sources":["../../src/components/FormFields/CollegeName/CollegeNameComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\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/ProgramConfiguration/programConfigurationGetters\";\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 programConfiguration = useProgramConfiguration();\n const { msg } = useMessage();\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\" })}\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(verificationService.viewModel, programConfiguration)}\n urlAddSchoolForm={urlAddSchoolForm}\n disabled={disabled}\n />\n );\n};\n"],"mappings":";;;;;;;;A,aAgBaS,KAAwB,EACnC,UACA,cACA,aACA,wBACA,iBAAc,IACd,gBAAa,IACb,cAAW,SAC2D;CACtE,IAAMC,IAAuBP,EAAwB,GAC/C,EAAE,WAAQC,EAAW,GACrBO,KAAoBX,EAAW,CAAC,CAAC,oBAAoB,GAAA,CAAI,KAAK;CAQpE,OANsBM,EAAwB,cAAc,CAAC,EAAE,SAGtD,OAIP,iBAAA,GAAAE,EAAA,IAAA,CAACD,GAAD;EACE,SAAQ;EACD;EACc;EACrB,WAAW,MAAyBK,EAASC,CAAM;EACnD,aAAaC,KAAeC,EAAI,EAAE,IAAI,wBAAwB,CAAC;EAC/D,OAAO,iBAAA,GAAAP,EAAA,IAAA,CAACP,GAAD;GAAsB,IAAG;GAAa,gBAAe;EAA6B,CAAA;EACzF,cACEe,KACE,iBAAA,GAAAR,EAAA,IAAA,CAACP,GAAD;GACE,IAAG;GACH,gBAAe;EAChB,CAAA;EAGO;EACZ,6BAA6B,CAAC,CAACa;EAC/B,cAAcT,EAAgBY,EAAoB,WAAWP,CAAoB;EAC/D;EACR;CACX,CAAA;AAEL"}
1
+ {"version":3,"file":"CollegeNameComponent-882Xs3gD.js","names":["getOptions","FormattedHTMLMessage","require_jsx_runtime","useProgramConfiguration","useMessage","getOrgSearchUrl","getFieldConfigByFieldId","FormFieldTypeahead","import_jsx_runtime","CollegeNameComponent","programConfiguration","urlAddSchoolForm","onChange","choice","placeholder","msg","isErrored","verificationService"],"sources":["../../src/components/FormFields/CollegeName/CollegeNameComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\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/ProgramConfiguration/programConfigurationGetters\";\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 programConfiguration = useProgramConfiguration();\n const { msg } = useMessage();\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\" })}\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(verificationService.viewModel, programConfiguration)}\n urlAddSchoolForm={urlAddSchoolForm}\n disabled={disabled}\n />\n );\n};\n"],"mappings":";;;;;;;;A,aAgBaS,KAAwB,EACnC,UACA,cACA,aACA,wBACA,iBAAc,IACd,gBAAa,IACb,cAAW,SAC2D;CACtE,IAAMC,IAAuBP,EAAwB,GAC/C,EAAE,WAAQC,EAAW,GACrBO,KAAoBX,EAAW,CAAC,CAAC,oBAAoB,GAAA,CAAI,KAAK;CAQpE,OANsBM,EAAwB,cAAc,CAAC,EAAE,SAGtD,OAIP,iBAAA,GAAAE,EAAA,IAAA,CAACD,GAAD;EACE,SAAQ;EACD;EACc;EACrB,WAAW,MAAyBK,EAASC,CAAM;EACnD,aAAaC,KAAeC,EAAI,EAAE,IAAI,wBAAwB,CAAC;EAC/D,OAAO,iBAAA,GAAAP,EAAA,IAAA,CAACP,GAAD;GAAsB,IAAG;GAAa,gBAAe;EAA6B,CAAA;EACzF,cACEe,KACE,iBAAA,GAAAR,EAAA,IAAA,CAACP,GAAD;GACE,IAAG;GACH,gBAAe;EAChB,CAAA;EAGO;EACZ,6BAA6B,CAAC,CAACa;EAC/B,cAAcT,EAAgBY,EAAoB,WAAWP,CAAoB;EAC/D;EACR;CACX,CAAA;AAEL"}
@@ -4,18 +4,18 @@
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.311.0
8
- * BUILD_TIMESTAMP: 1793640334956
9
- * BUILD_DATE: Mon Nov 02 2026 17:25:34 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 776e6da2b784d1da6b1de14b7ee019e118e6db8c
7
+ * VERSION: 2.312.0
8
+ * BUILD_TIMESTAMP: 1793657708319
9
+ * BUILD_DATE: Mon Nov 02 2026 22:15:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: d28d18cf826fdda5ef438b299140b7946082d830
11
11
  */
12
12
  import { s as e } from "./intl-BK4prEGw.js";
13
13
  import { n as t, t as n } from "./jsx-runtime-BUMIo32n.js";
14
- import { n as r } from "./Message-DgJ0fCH2.js";
15
- import { o as i } from "./programThemeGetters-Bzh-58Ge.js";
16
- import { y as a } from "./FormFooterComponent-D3c-ewUT.js";
14
+ import { n as r } from "./Message-D2kP5FCJ.js";
15
+ import { o as i } from "./programThemeGetters-DXn-alcY.js";
16
+ import { x as a } from "./FormFooterComponent-Brab2xcp.js";
17
17
  import { t as o } from "./stepComponentHelpers-Dztw-HNP.js";
18
- import { t as s } from "./FormFieldTypeahead-ChDQLWgJ.js";
18
+ import { t as s } from "./FormFieldTypeahead-0YtLKYp9.js";
19
19
  //#region src/components/FormFields/CollegeName/CollegeNameComponent.tsx
20
20
  var c = n(), l = ({ value: n, isErrored: l, onChange: u, verificationService: d, placeholder: f = "", isRequired: p = !0, disabled: m = !1 }) => {
21
21
  let h = i(), { msg: g } = r(), _ = (e().urlAddSchoolForm || "").trim();
@@ -1 +1 @@
1
- {"version":3,"file":"CollegeNameComponent-BObW76RR.js","names":["getOptions","FormattedHTMLMessage","require_jsx_runtime","useMessage","useProgramConfiguration","getOrgSearchUrl","getFieldConfigByFieldId","FormFieldTypeahead","import_jsx_runtime","CollegeNameComponent","programConfiguration","urlAddSchoolForm","onChange","choice","placeholder","msg","isErrored","verificationService"],"sources":["../../src/components/FormFields/CollegeName/CollegeNameComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\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/ProgramConfiguration/programConfigurationGetters\";\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 programConfiguration = useProgramConfiguration();\n const { msg } = useMessage();\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\" })}\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(verificationService.viewModel, programConfiguration)}\n urlAddSchoolForm={urlAddSchoolForm}\n disabled={disabled}\n />\n );\n};\n"],"mappings":";;;;;;;;A,aAgBaS,KAAwB,EACnC,UACA,cACA,aACA,wBACA,iBAAc,IACd,gBAAa,IACb,cAAW,SAC2D;CACtE,IAAMC,IAAuBN,EAAwB,GAC/C,EAAE,WAAQD,EAAW,GACrBQ,KAAoBX,EAAW,CAAC,CAAC,oBAAoB,GAAA,CAAI,KAAK;CAQpE,OANsBM,EAAwB,cAAc,CAAC,EAAE,SAGtD,OAIP,iBAAA,GAAAE,EAAA,IAAA,CAACD,GAAD;EACE,SAAQ;EACD;EACc;EACrB,WAAW,MAAyBK,EAASC,CAAM;EACnD,aAAaC,KAAeC,EAAI,EAAE,IAAI,wBAAwB,CAAC;EAC/D,OAAO,iBAAA,GAAAP,EAAA,IAAA,CAACP,GAAD;GAAsB,IAAG;GAAa,gBAAe;EAA6B,CAAA;EACzF,cACEe,KACE,iBAAA,GAAAR,EAAA,IAAA,CAACP,GAAD;GACE,IAAG;GACH,gBAAe;EAChB,CAAA;EAGO;EACZ,6BAA6B,CAAC,CAACa;EAC/B,cAAcT,EAAgBY,EAAoB,WAAWP,CAAoB;EAC/D;EACR;CACX,CAAA;AAEL"}
1
+ {"version":3,"file":"CollegeNameComponent-kUPYCkq1.js","names":["getOptions","FormattedHTMLMessage","require_jsx_runtime","useMessage","useProgramConfiguration","getOrgSearchUrl","getFieldConfigByFieldId","FormFieldTypeahead","import_jsx_runtime","CollegeNameComponent","programConfiguration","urlAddSchoolForm","onChange","choice","placeholder","msg","isErrored","verificationService"],"sources":["../../src/components/FormFields/CollegeName/CollegeNameComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\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/ProgramConfiguration/programConfigurationGetters\";\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 programConfiguration = useProgramConfiguration();\n const { msg } = useMessage();\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\" })}\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(verificationService.viewModel, programConfiguration)}\n urlAddSchoolForm={urlAddSchoolForm}\n disabled={disabled}\n />\n );\n};\n"],"mappings":";;;;;;;;A,aAgBaS,KAAwB,EACnC,UACA,cACA,aACA,wBACA,iBAAc,IACd,gBAAa,IACb,cAAW,SAC2D;CACtE,IAAMC,IAAuBN,EAAwB,GAC/C,EAAE,WAAQD,EAAW,GACrBQ,KAAoBX,EAAW,CAAC,CAAC,oBAAoB,GAAA,CAAI,KAAK;CAQpE,OANsBM,EAAwB,cAAc,CAAC,EAAE,SAGtD,OAIP,iBAAA,GAAAE,EAAA,IAAA,CAACD,GAAD;EACE,SAAQ;EACD;EACc;EACrB,WAAW,MAAyBK,EAASC,CAAM;EACnD,aAAaC,KAAeC,EAAI,EAAE,IAAI,wBAAwB,CAAC;EAC/D,OAAO,iBAAA,GAAAP,EAAA,IAAA,CAACP,GAAD;GAAsB,IAAG;GAAa,gBAAe;EAA6B,CAAA;EACzF,cACEe,KACE,iBAAA,GAAAR,EAAA,IAAA,CAACP,GAAD;GACE,IAAG;GACH,gBAAe;EAChB,CAAA;EAGO;EACZ,6BAA6B,CAAC,CAACa;EAC/B,cAAcT,EAAgBY,EAAoB,WAAWP,CAAoB;EAC/D;EACR;CACX,CAAA;AAEL"}
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.311.0
4
- * BUILD_TIMESTAMP: 1793640327724
5
- * BUILD_DATE: Mon Nov 02 2026 17:25:27 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 776e6da2b784d1da6b1de14b7ee019e118e6db8c
3
+ * VERSION: 2.312.0
4
+ * BUILD_TIMESTAMP: 1793657704084
5
+ * BUILD_DATE: Mon Nov 02 2026 22:15:04 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d28d18cf826fdda5ef438b299140b7946082d830
7
7
  */
8
8
  import { At as e, Ot as t } from "./i18next-iyVj5hRL.js";
9
9
  import { s as n, t as r } from "./jsx-runtime-DwmrsRqi.js";
@@ -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.311.0
8
- * BUILD_TIMESTAMP: 1793640334956
9
- * BUILD_DATE: Mon Nov 02 2026 17:25:34 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 776e6da2b784d1da6b1de14b7ee019e118e6db8c
7
+ * VERSION: 2.312.0
8
+ * BUILD_TIMESTAMP: 1793657708319
9
+ * BUILD_DATE: Mon Nov 02 2026 22:15:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: d28d18cf826fdda5ef438b299140b7946082d830
11
11
  */
12
12
  import { At as e, Ot as t } from "./intl-BK4prEGw.js";
13
13
  import { s as n, t as r } from "./jsx-runtime-BUMIo32n.js";
@@ -1,19 +1,19 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.311.0
4
- * BUILD_TIMESTAMP: 1793640327724
5
- * BUILD_DATE: Mon Nov 02 2026 17:25:27 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 776e6da2b784d1da6b1de14b7ee019e118e6db8c
3
+ * VERSION: 2.312.0
4
+ * BUILD_TIMESTAMP: 1793657704084
5
+ * BUILD_DATE: Mon Nov 02 2026 22:15:04 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d28d18cf826fdda5ef438b299140b7946082d830
7
7
  */
8
8
  import { At as e, dt as t } from "./i18next-iyVj5hRL.js";
9
9
  import { n, s as r, t as i } from "./jsx-runtime-DwmrsRqi.js";
10
- import { o as a } from "./programThemeGetters-B9wBX-xJ.js";
11
- import { n as o } from "./Message-CT7bGfqP.js";
10
+ import { o as a } from "./programThemeGetters-C8JS1yEr.js";
11
+ import { n as o } from "./Message-C6bKPcuM.js";
12
12
  import { a as s } from "./empties-BBKd53_B.js";
13
- import { S as c } from "./FormFooterComponent-Cpzral2z.js";
13
+ import { S as c } from "./FormFooterComponent-he4l6p39.js";
14
14
  import { u as l } from "./hooks-D0X_qdc-.js";
15
15
  import { d as u, o as d, t as f, u as p } from "./stepComponentHelpers-CyqXTDdj.js";
16
- import { t as m } from "./FormFieldInputSelect-BdcFitQM.js";
16
+ import { t as m } from "./FormFieldInputSelect-7FX3KIMN.js";
17
17
  //#region src/components/FormFields/Country/CountryComponent.tsx
18
18
  var h = /* @__PURE__ */ e(r(), 1), g = i(), _ = ({ value: e, isErrored: t, options: r, onChange: i, onKeyDown: a, placeholder: s = "", isRequired: c = !0, suppressPlaceholder: l = !1, disabled: u = !1 }) => {
19
19
  let { msg: d } = o();
@@ -1 +1 @@
1
- {"version":3,"file":"CountryComponentWrapper-BD-OFB7m.js","names":["produce","__toESM","fn","require_react","require_jsx_runtime","useProgramConfiguration","useMessage","blankOrganization","getConfiguredCountries","validateFieldById","updateFieldValidationErrorsByFieldId","produceDraftViewModel","getFieldConfigByFieldId","updateFieldValidationErrors","FormFieldInputSelect","import_react","import_jsx_runtime","CountryComponent","onChange","country","placeholder","msg","options","option","value","FormattedHTMLMessage","isErrored","CountryComponentWrapper","programConfiguration","countryChoices","countryCode","i18n","a","b","verificationService","hasMultipleCountries","isFieldHidden","updateCountryChoice","nextState","countryChoice","viewModelDraftDecorator","draft","includesUS","choice","fieldsToSkip","updatedFieldValidationErrors","fieldValidationErrors","countryValue"],"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 { useProgramConfiguration } from \"@/lib/state/contextHooks\";\nimport { getConfiguredCountries } from \"@/lib/ProgramConfiguration/programConfigurationGetters\";\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 programConfiguration = useProgramConfiguration();\n const { i18n, msg } = useMessage();\n\n const availableCountries: Country[] = getConfiguredCountries(programConfiguration);\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":";;;;;;;;;;A,4CAMaiB,KAAoB,EAC/B,UACA,cACA,YACA,aACA,cACA,iBAAc,IACd,gBAAa,IACb,yBAAsB,IACtB,cAAW,SACoB;CAC/B,IAAM,EAAE,WAAQX,EAAW;CAE3B,OACE,iBAAA,GAAAU,EAAA,IAAA,CAACF,GAAD;EACE,SAAS;EACA;EACT,WAAW,MAA8BI,EAASC,CAAO;EAC9C;EACX,aAAaC,KAAeC,EAAI,EAAE,IAAI,qBAAqB,CAAC;EAC5D,OAAOC,EAAQ,MAAM,MAAWC,EAAO,WAAWC,KAASA,EAAM,MAAM;EAC3D;EACZ,OAAO,iBAAA,GAAAR,EAAA,IAAA,CAACS,GAAD;GAAsB,IAAG;GAAU,gBAAe;EAAW,CAAA;EACpE,cACEC,KACE,iBAAA,GAAAV,EAAA,IAAA,CAACS,GAA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+B7C,EACnCkC,EAAoB,wBACnB,MAAU;GAQT,AAPA,AACEO,EAAM,YAAUhC,EACd,WACAyB,EAAoB,UAAU,eAC9BA,EAAoB,qBACtB,GAGA,gBAAgBA,EAAoB,aACpCA,EAAoB,UAAU,eAE9B,EAAM,aAAazB,EACjB,cACAyB,EAAoB,UAAU,YAC9BA,EAAoB,qBACtB;EAEJ,CACF;EACA,EAA4BW,GAA8BX,CAAmB;CAC/E,GAAG,CAACA,EAAoB,UAAU,aAAa,CAAC,GAE5C,CAACC,KAAwBC,IACpB,OAIP,iBAAA,GAAApB,EAAA,IAAA,CAACC,GAAD;EACE,YAAA;EACA,SAASY;EACT,OAAOK,EAAoB,UAAU;EACrC,WAAW,EAAQY,EAAsB;EAC/B;EACV,UAAU,OAAO,MAAqD;GACpE,IAAMC,IAAeR,IAAgBA,EAAc,QAAQ,KAAA;GAE3D,AADAF,EAAoBE,CAAa,GACjC7B,EAAqC,WAAWqC,GAAcb,CAAmB;EACnF;CACD,CAAA;AAEL"}
1
+ {"version":3,"file":"CountryComponentWrapper-DN99F8hI.js","names":["produce","__toESM","fn","require_react","require_jsx_runtime","useProgramConfiguration","useMessage","blankOrganization","getConfiguredCountries","validateFieldById","updateFieldValidationErrorsByFieldId","produceDraftViewModel","getFieldConfigByFieldId","updateFieldValidationErrors","FormFieldInputSelect","import_react","import_jsx_runtime","CountryComponent","onChange","country","placeholder","msg","options","option","value","FormattedHTMLMessage","isErrored","CountryComponentWrapper","programConfiguration","countryChoices","countryCode","i18n","a","b","verificationService","hasMultipleCountries","isFieldHidden","updateCountryChoice","nextState","countryChoice","viewModelDraftDecorator","draft","includesUS","choice","fieldsToSkip","updatedFieldValidationErrors","fieldValidationErrors","countryValue"],"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 { useProgramConfiguration } from \"@/lib/state/contextHooks\";\nimport { getConfiguredCountries } from \"@/lib/ProgramConfiguration/programConfigurationGetters\";\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 programConfiguration = useProgramConfiguration();\n const { i18n, msg } = useMessage();\n\n const availableCountries: Country[] = getConfiguredCountries(programConfiguration);\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":";;;;;;;;;;A,4CAMaiB,KAAoB,EAC/B,UACA,cACA,YACA,aACA,cACA,iBAAc,IACd,gBAAa,IACb,yBAAsB,IACtB,cAAW,SACoB;CAC/B,IAAM,EAAE,WAAQX,EAAW;CAE3B,OACE,iBAAA,GAAAU,EAAA,IAAA,CAACF,GAAD;EACE,SAAS;EACA;EACT,WAAW,MAA8BI,EAASC,CAAO;EAC9C;EACX,aAAaC,KAAeC,EAAI,EAAE,IAAI,qBAAqB,CAAC;EAC5D,OAAOC,EAAQ,MAAM,MAAWC,EAAO,WAAWC,KAASA,EAAM,MAAM;EAC3D;EACZ,OAAO,iBAAA,GAAAR,EAAA,IAAA,CAACS,GAAD;GAAsB,IAAG;GAAU,gBAAe;EAAW,CAAA;EACpE,cACEC,KACE,iBAAA,GAAAV,EAAA,IAAA,CAACS,GAAD;GAAsB,IAAG;GAAyB,gBAAe;EAAmB,CAAA;EAGxF,6BAA6B,CAAC,CAACL;EACV;EACX;CACX,CAAA;AAEL,GCJaO,KAA2B,EACtC,wBACA,6BAA0B,KAAA,GAC1B,cAAW,SACuB;CAClC,IAAMC,IAAuBvB,EAAwB,GAC/C,EAAE,SAAM,W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C9BA,EAAoB,qBACtB;EAEJ,CACF;EACA,EAA4BW,GAA8BX,CAAmB;CAC/E,GAAG,CAACA,EAAoB,UAAU,aAAa,CAAC,GAE5C,CAACC,KAAwBC,IACpB,OAIP,iBAAA,GAAApB,EAAA,IAAA,CAACC,GAAD;EACE,YAAA;EACA,SAASY;EACT,OAAOK,EAAoB,UAAU;EACrC,WAAW,EAAQY,EAAsB;EAC/B;EACV,UAAU,OAAO,MAAqD;GACpE,IAAMC,IAAeR,IAAgBA,EAAc,QAAQ,KAAA;GAE3D,AADAF,EAAoBE,CAAa,GACjC7B,EAAqC,WAAWqC,GAAcb,CAAmB;EACnF;CACD,CAAA;AAEL"}
@@ -4,20 +4,20 @@
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.311.0
8
- * BUILD_TIMESTAMP: 1793640334956
9
- * BUILD_DATE: Mon Nov 02 2026 17:25:34 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 776e6da2b784d1da6b1de14b7ee019e118e6db8c
7
+ * VERSION: 2.312.0
8
+ * BUILD_TIMESTAMP: 1793657708319
9
+ * BUILD_DATE: Mon Nov 02 2026 22:15:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: d28d18cf826fdda5ef438b299140b7946082d830
11
11
  */
12
12
  import { At as e, p as t } from "./intl-BK4prEGw.js";
13
13
  import { n, s as r, t as i } from "./jsx-runtime-BUMIo32n.js";
14
- import { n as a } from "./Message-DgJ0fCH2.js";
15
- import { o } from "./programThemeGetters-Bzh-58Ge.js";
14
+ import { n as a } from "./Message-D2kP5FCJ.js";
15
+ import { o } from "./programThemeGetters-DXn-alcY.js";
16
16
  import { a as s } from "./empties-DcQjcgEV.js";
17
- import { _ as c } from "./FormFooterComponent-D3c-ewUT.js";
17
+ import { y as c } from "./FormFooterComponent-Brab2xcp.js";
18
18
  import { u as l } from "./hooks-B7aeAwHn.js";
19
19
  import { d as u, o as d, t as f, u as p } from "./stepComponentHelpers-Dztw-HNP.js";
20
- import { t as m } from "./FormFieldInputSelect-DWcxK7De.js";
20
+ import { t as m } from "./FormFieldInputSelect-CmGuSZoU.js";
21
21
  //#region src/components/FormFields/Country/CountryComponent.tsx
22
22
  var h = /* @__PURE__ */ e(r(), 1), g = i(), _ = ({ value: e, isErrored: t, options: r, onChange: i, onKeyDown: o, placeholder: s = "", isRequired: c = !0, suppressPlaceholder: l = !1, disabled: u = !1 }) => {
23
23
  let { msg: d } = a();
@@ -1 +1 @@
1
- {"version":3,"file":"CountryComponentWrapper-B3pZNlgz.js","names":["produce","__toESM","fn","require_react","require_jsx_runtime","useMessage","blankOrganization","getConfiguredCountries","validateFieldById","updateFieldValidationErrorsByFieldId","produceDraftViewModel","getFieldConfigByFieldId","updateFieldValidationErrors","FormFieldInputSelect","import_react","import_jsx_runtime","CountryComponent","onChange","country","placeholder","msg","options","option","value","FormattedHTMLMessage","isErrored","CountryComponentWrapper","programConfiguration","useProgramConfiguration","countryChoices","countryCode","i18n","a","b","verificationService","hasMultipleCountries","isFieldHidden","updateCountryChoice","nextState","countryChoice","viewModelDraftDecorator","draft","includesUS","choice","fieldsToSkip","updatedFieldValidationErrors","fieldValidationErrors","countryValue"],"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 { useProgramConfiguration } from \"@/lib/state/contextHooks\";\nimport { getConfiguredCountries } from \"@/lib/ProgramConfiguration/programConfigurationGetters\";\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 programConfiguration = useProgramConfiguration();\n const { i18n, msg } = useMessage();\n\n const availableCountries: Country[] = getConfiguredCountries(programConfiguration);\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":";;;;;;;;;;A,4CAMagB,KAAoB,EAC/B,UACA,cACA,YACA,aACA,cACA,iBAAc,IACd,gBAAa,IACb,yBAAsB,IACtB,cAAW,SACoB;CAC/B,IAAM,EAAE,WAAQX,EAAW;CAE3B,OACE,iBAAA,GAAAU,EAAA,IAAA,CAACF,GAAD;EACE,SAAS;EACA;EACT,WAAW,MAA8BI,EAASC,CAAO;EAC9C;EACX,aAAaC,KAAeC,EAAI,EAAE,IAAI,qBAAqB,CAAC;EAC5D,OAAOC,EAAQ,MAAM,MAAWC,EAAO,WAAWC,KAASA,EAAM,MAAM;EAC3D;EACZ,OAAO,iBAAA,GAAAR,EAAA,IAAA,CAACS,GAAD;GAAsB,IAAG;GAAU,gBAAe;EAAW,CAAA;EACpE,cACEC,KACE,iBAAA,GAAAV,EAAA,IAAA,CAACS,GAAD;GAAsB,IAAG;GAAyB,gBAAe;EAAmB,CAAA;EAGxF,6BAA6B,CAAC,CAACL;EACV;EACX;CACX,CAAA;AAEL,GCJaO,KAA2B,EACtC,wBACA,6BAA0B,KAAA,GAC1B,cAAW,SACuB;CAClC,IAAMC,IAAuBC,EAAwB,GAC/C,EAAE,SAAM,WAAQvB,EAAW,GAI3BwB,IAFgCtB,EAAuBoB,CAEtC,CAAA,CACpB,KAAK,OAAiB;EACrB,OAAOG;EACP,OAAOV,EAAI,EAAE,IAAI,aAAaU,IAAc,CAAC;CAC/C,EAAE,CAAC,CACF,MANwB,GAAG,MAAM,KAAK,SAASC,EAAK,QAAQ,CAAC,CAAC,QAAQC,EAAE,OAAOC,EAAE,KAAK,CAMhE,GAEnB,EAAE,6BAA0BC,GAC5BC,I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E,IAAMC,IAAeR,IAAgBA,EAAc,QAAQ,KAAA;GAE3D,AADAF,EAAoBE,CAAa,GACjC9B,EAAqC,WAAWsC,GAAcb,CAAmB;EACnF;CACD,CAAA;AAEL"}
1
+ {"version":3,"file":"CountryComponentWrapper-DNNtLmuf.js","names":["produce","__toESM","fn","require_react","require_jsx_runtime","useMessage","blankOrganization","getConfiguredCountries","validateFieldById","updateFieldValidationErrorsByFieldId","produceDraftViewModel","getFieldConfigByFieldId","updateFieldValidationErrors","FormFieldInputSelect","import_react","import_jsx_runtime","CountryComponent","onChange","country","placeholder","msg","options","option","value","FormattedHTMLMessage","isErrored","CountryComponentWrapper","programConfiguration","useProgramConfiguration","countryChoices","countryCode","i18n","a","b","verificationService","hasMultipleCountries","isFieldHidden","updateCountryChoice","nextState","countryChoice","viewModelDraftDecorator","draft","includesUS","choice","fieldsToSkip","updatedFieldValidationErrors","fieldValidationErrors","countryValue"],"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 { useProgramConfiguration } from \"@/lib/state/contextHooks\";\nimport { getConfiguredCountries } from \"@/lib/ProgramConfiguration/programConfigurationGetters\";\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 programConfiguration = useProgramConfiguration();\n const { i18n, msg } = useMessage();\n\n const availableCountries: Country[] = getConfiguredCountries(programConfiguration);\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 );\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