@sheerid/jslib 2.310.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 (374) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +1310 -1258
  3. package/_mysheerid-preview.js.map +1 -1
  4. package/chunk/{AddressComponent-CA5Jlokr.js → AddressComponent-BoIXEkQ1.js} +6 -6
  5. package/chunk/{AddressComponent-CA5Jlokr.js.map → AddressComponent-BoIXEkQ1.js.map} +1 -1
  6. package/chunk/{AddressComponent-CDrwwuUJ.js → AddressComponent-DeEEaX9k.js} +6 -6
  7. package/chunk/{AddressComponent-CDrwwuUJ.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-yEKEOgR4.js → BirthDateComponent-D7BbQdeu.js} +6 -6
  11. package/chunk/{BirthDateComponent-BC0V70wK.js.map → BirthDateComponent-D7BbQdeu.js.map} +1 -1
  12. package/chunk/{BirthDateComponent-BC0V70wK.js → BirthDateComponent-Dwfl6tYR.js} +6 -6
  13. package/chunk/{BirthDateComponent-yEKEOgR4.js.map → BirthDateComponent-Dwfl6tYR.js.map} +1 -1
  14. package/chunk/{CaptchaComponent-DllbmDK0.js → CaptchaComponent-BbQTpmWe.js} +10 -10
  15. package/chunk/{CaptchaComponent-DllbmDK0.js.map → CaptchaComponent-BbQTpmWe.js.map} +1 -1
  16. package/chunk/{CaptchaComponent-DD3afqj9.js → CaptchaComponent-DMFt9cDO.js} +17 -17
  17. package/chunk/{CaptchaComponent-DD3afqj9.js.map → CaptchaComponent-DMFt9cDO.js.map} +1 -1
  18. package/chunk/{ChangeLocaleComponent-CZIXysUs.js → ChangeLocaleComponent-AKQ7gIkP.js} +8 -8
  19. package/chunk/{ChangeLocaleComponent-CZIXysUs.js.map → ChangeLocaleComponent-AKQ7gIkP.js.map} +1 -1
  20. package/chunk/{ChangeLocaleComponent-DPFet-3o.js → ChangeLocaleComponent-BOFrHFyG.js} +8 -8
  21. package/chunk/{ChangeLocaleComponent-DPFet-3o.js.map → ChangeLocaleComponent-BOFrHFyG.js.map} +1 -1
  22. package/chunk/{City-vvOBoUFQ.js → City-D4to8D65.js} +6 -6
  23. package/chunk/{City-BmHGcOfW.js.map → City-D4to8D65.js.map} +1 -1
  24. package/chunk/{City-BmHGcOfW.js → City-D6VlEIOj.js} +6 -6
  25. package/chunk/{City-vvOBoUFQ.js.map → City-D6VlEIOj.js.map} +1 -1
  26. package/chunk/{CollegeNameComponent-DJOrJnLR.js → CollegeNameComponent-882Xs3gD.js} +9 -9
  27. package/chunk/{CollegeNameComponent-DJOrJnLR.js.map → CollegeNameComponent-882Xs3gD.js.map} +1 -1
  28. package/chunk/{CollegeNameComponent-C9nkGO5e.js → CollegeNameComponent-kUPYCkq1.js} +9 -9
  29. package/chunk/{CollegeNameComponent-C9nkGO5e.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-DOF9-DPR.js → CountryComponentWrapper-DN99F8hI.js} +11 -11
  33. package/chunk/{CountryComponentWrapper-DOF9-DPR.js.map → CountryComponentWrapper-DN99F8hI.js.map} +1 -1
  34. package/chunk/{CountryComponentWrapper-nEV1lfX2.js → CountryComponentWrapper-DNNtLmuf.js} +11 -11
  35. package/chunk/{CountryComponentWrapper-nEV1lfX2.js.map → CountryComponentWrapper-DNNtLmuf.js.map} +1 -1
  36. package/chunk/{DischargeDateComponent-ksjLguz4.js → DischargeDateComponent-CbU9Hmdp.js} +10 -10
  37. package/chunk/{DischargeDateComponent-ksjLguz4.js.map → DischargeDateComponent-CbU9Hmdp.js.map} +1 -1
  38. package/chunk/{DischargeDateComponent-DYvLJwpw.js → DischargeDateComponent-DON4nxw_.js} +10 -10
  39. package/chunk/{DischargeDateComponent-DYvLJwpw.js.map → DischargeDateComponent-DON4nxw_.js.map} +1 -1
  40. package/chunk/{DriverLicenseNumberComponent-DGpqJpL5.js → DriverLicenseNumberComponent-DRiQa6Ga.js} +6 -6
  41. package/chunk/{DriverLicenseNumberComponent-CRhCxL68.js.map → DriverLicenseNumberComponent-DRiQa6Ga.js.map} +1 -1
  42. package/chunk/{DriverLicenseNumberComponent-CRhCxL68.js → DriverLicenseNumberComponent-DhfLaFR5.js} +6 -6
  43. package/chunk/{DriverLicenseNumberComponent-DGpqJpL5.js.map → DriverLicenseNumberComponent-DhfLaFR5.js.map} +1 -1
  44. package/chunk/{EmailLoopPending-DT9iYVy1.js → EmailLoopPending-DDfDm16i.js} +8 -8
  45. package/chunk/{EmailLoopPending-DT9iYVy1.js.map → EmailLoopPending-DDfDm16i.js.map} +1 -1
  46. package/chunk/{EmailLoopPending-LIPLNEou.js → EmailLoopPending-DXsNsJrc.js} +8 -8
  47. package/chunk/{EmailLoopPending-LIPLNEou.js.map → EmailLoopPending-DXsNsJrc.js.map} +1 -1
  48. package/chunk/{ExtraMessage-D7iqKQh4.js → ExtraMessage-CYfaHVd1.js} +5 -5
  49. package/chunk/{ExtraMessage-CreEN83x.js.map → ExtraMessage-CYfaHVd1.js.map} +1 -1
  50. package/chunk/{ExtraMessage-CreEN83x.js → ExtraMessage-DeGK3KwO.js} +5 -5
  51. package/chunk/{ExtraMessage-D7iqKQh4.js.map → ExtraMessage-DeGK3KwO.js.map} +1 -1
  52. package/chunk/{FirstResponderOrganizationComponent-CO5Rbiyg.js → FirstResponderOrganizationComponent-CEJ4sBZm.js} +9 -9
  53. package/chunk/{FirstResponderOrganizationComponent-CO5Rbiyg.js.map → FirstResponderOrganizationComponent-CEJ4sBZm.js.map} +1 -1
  54. package/chunk/{FirstResponderOrganizationComponent-D7APONNn.js → FirstResponderOrganizationComponent-GbRQ8ejW.js} +9 -9
  55. package/chunk/{FirstResponderOrganizationComponent-D7APONNn.js.map → FirstResponderOrganizationComponent-GbRQ8ejW.js.map} +1 -1
  56. package/chunk/{FormFieldInputSelect-Cmb-cNuJ.js → FormFieldInputSelect-7FX3KIMN.js} +5 -5
  57. package/chunk/{FormFieldInputSelect-C5eFGFHW.js.map → FormFieldInputSelect-7FX3KIMN.js.map} +1 -1
  58. package/chunk/{FormFieldInputSelect-C5eFGFHW.js → FormFieldInputSelect-CmGuSZoU.js} +5 -5
  59. package/chunk/{FormFieldInputSelect-Cmb-cNuJ.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-BQPF0pJC.js → FormFieldTypeahead-0YtLKYp9.js} +88 -86
  65. package/chunk/{FormFieldTypeahead-BQPF0pJC.js.map → FormFieldTypeahead-0YtLKYp9.js.map} +1 -1
  66. package/chunk/{FormFieldTypeahead-m1BQ6dRR.js → FormFieldTypeahead-Bn4oW-PC.js} +93 -91
  67. package/chunk/{FormFieldTypeahead-m1BQ6dRR.js.map → FormFieldTypeahead-Bn4oW-PC.js.map} +1 -1
  68. package/chunk/{FormFooterComponent-CHMM9xXM.js → FormFooterComponent-Brab2xcp.js} +331 -331
  69. package/chunk/{FormFooterComponent-CHMM9xXM.js.map → FormFooterComponent-Brab2xcp.js.map} +1 -1
  70. package/chunk/{FormFooterComponent-BaO1YAjx.js → FormFooterComponent-he4l6p39.js} +104 -104
  71. package/chunk/{FormFooterComponent-BaO1YAjx.js.map → FormFooterComponent-he4l6p39.js.map} +1 -1
  72. package/chunk/{FormSelectChoice-Cj8dBkIe.js → FormSelectChoice-CSGgtlv8.js} +6 -6
  73. package/chunk/{FormSelectChoice-Cj8dBkIe.js.map → FormSelectChoice-CSGgtlv8.js.map} +1 -1
  74. package/chunk/{FormSelectChoice-CHdts_po.js → FormSelectChoice-D5wZk7cJ.js} +6 -6
  75. package/chunk/{FormSelectChoice-CHdts_po.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-CvEYI4fg.js → LicensedProfessionalOrganizationComponent-CCx7V-Xr.js} +9 -9
  79. package/chunk/{LicensedProfessionalOrganizationComponent-CvEYI4fg.js.map → LicensedProfessionalOrganizationComponent-CCx7V-Xr.js.map} +1 -1
  80. package/chunk/{LicensedProfessionalOrganizationComponent-Ii7qB1KH.js → LicensedProfessionalOrganizationComponent-Dja--YUF.js} +9 -9
  81. package/chunk/{LicensedProfessionalOrganizationComponent-Ii7qB1KH.js.map → LicensedProfessionalOrganizationComponent-Dja--YUF.js.map} +1 -1
  82. package/chunk/{LogoComponent-COor2zpj.js → LogoComponent-C4UN1JY9.js} +5 -5
  83. package/chunk/{LogoComponent-CFElMGvH.js.map → LogoComponent-C4UN1JY9.js.map} +1 -1
  84. package/chunk/{LogoComponent-CFElMGvH.js → LogoComponent-C9UuIyxD.js} +5 -5
  85. package/chunk/{LogoComponent-COor2zpj.js.map → LogoComponent-C9UuIyxD.js.map} +1 -1
  86. package/chunk/{LowIncomeOrganizationComponent-CkCiLDt0.js → LowIncomeOrganizationComponent-BCi1j6_X.js} +10 -10
  87. package/chunk/{LowIncomeOrganizationComponent-CkCiLDt0.js.map → LowIncomeOrganizationComponent-BCi1j6_X.js.map} +1 -1
  88. package/chunk/{LowIncomeOrganizationComponent-BUUFcO8z.js → LowIncomeOrganizationComponent-CX8q3MDL.js} +10 -10
  89. package/chunk/{LowIncomeOrganizationComponent-BUUFcO8z.js.map → LowIncomeOrganizationComponent-CX8q3MDL.js.map} +1 -1
  90. package/chunk/{MedicalProfessionalOrganizationComponent-fHnvPaDU.js → MedicalProfessionalOrganizationComponent-CVig_7kH.js} +9 -9
  91. package/chunk/{MedicalProfessionalOrganizationComponent-fHnvPaDU.js.map → MedicalProfessionalOrganizationComponent-CVig_7kH.js.map} +1 -1
  92. package/chunk/{MedicalProfessionalOrganizationComponent-CImYz1vZ.js → MedicalProfessionalOrganizationComponent-go1qSqrP.js} +9 -9
  93. package/chunk/{MedicalProfessionalOrganizationComponent-CImYz1vZ.js.map → MedicalProfessionalOrganizationComponent-go1qSqrP.js.map} +1 -1
  94. package/chunk/{MemberIdComponent-DkCrb8sm.js → MemberIdComponent-BABnLSRG.js} +6 -6
  95. package/chunk/{MemberIdComponent-CiyaUSIN.js.map → MemberIdComponent-BABnLSRG.js.map} +1 -1
  96. package/chunk/{MemberIdComponent-CiyaUSIN.js → MemberIdComponent-CDJ_XPc-.js} +6 -6
  97. package/chunk/{MemberIdComponent-DkCrb8sm.js.map → MemberIdComponent-CDJ_XPc-.js.map} +1 -1
  98. package/chunk/{MembershipOrganizationComponent-Dh39caqm.js → MembershipOrganizationComponent-BX7n9J08.js} +9 -9
  99. package/chunk/{MembershipOrganizationComponent-Dh39caqm.js.map → MembershipOrganizationComponent-BX7n9J08.js.map} +1 -1
  100. package/chunk/{MembershipOrganizationComponent-G9l5YJAV.js → MembershipOrganizationComponent-Dm6IXak0.js} +9 -9
  101. package/chunk/{MembershipOrganizationComponent-G9l5YJAV.js.map → MembershipOrganizationComponent-Dm6IXak0.js.map} +1 -1
  102. package/chunk/{Message-B_RKEVv2.js → Message-C6bKPcuM.js} +408 -394
  103. package/chunk/Message-C6bKPcuM.js.map +1 -0
  104. package/chunk/{Message-jhvpcui8.js → Message-D2kP5FCJ.js} +390 -376
  105. package/chunk/Message-D2kP5FCJ.js.map +1 -0
  106. package/chunk/Onfido-CTCgAwnB.js +4 -4
  107. package/chunk/{PersonalInfoStepSubmitButton-CzetrMl4.js → PersonalInfoStepSubmitButton-Cz5Ik4p9.js} +8 -8
  108. package/chunk/{PersonalInfoStepSubmitButton-CzetrMl4.js.map → PersonalInfoStepSubmitButton-Cz5Ik4p9.js.map} +1 -1
  109. package/chunk/{PersonalInfoStepSubmitButton-XKbJpeBB.js → PersonalInfoStepSubmitButton-DJ7FqfAK.js} +8 -8
  110. package/chunk/{PersonalInfoStepSubmitButton-XKbJpeBB.js.map → PersonalInfoStepSubmitButton-DJ7FqfAK.js.map} +1 -1
  111. package/chunk/{PersonalInfoStepWrapper-Cnse8JAf.js → PersonalInfoStepWrapper-C4g9QHwO.js} +6 -6
  112. package/chunk/{PersonalInfoStepWrapper-Cnse8JAf.js.map → PersonalInfoStepWrapper-C4g9QHwO.js.map} +1 -1
  113. package/chunk/{PersonalInfoStepWrapper-C72GphtU.js → PersonalInfoStepWrapper-Fjv1zouY.js} +7 -7
  114. package/chunk/{PersonalInfoStepWrapper-C72GphtU.js.map → PersonalInfoStepWrapper-Fjv1zouY.js.map} +1 -1
  115. package/chunk/{PostalCodeComponent-DzKFsVmZ.js → PostalCodeComponent-B1MM4Jgt.js} +6 -6
  116. package/chunk/{PostalCodeComponent-Bhq1Okl6.js.map → PostalCodeComponent-B1MM4Jgt.js.map} +1 -1
  117. package/chunk/{PostalCodeComponent-Bhq1Okl6.js → PostalCodeComponent-BrHnEVhq.js} +6 -6
  118. package/chunk/{PostalCodeComponent-DzKFsVmZ.js.map → PostalCodeComponent-BrHnEVhq.js.map} +1 -1
  119. package/chunk/{SSN-B2n_Gvf5.js → SSN-CgB4E28t.js} +6 -6
  120. package/chunk/{SSN-B2n_Gvf5.js.map → SSN-CgB4E28t.js.map} +1 -1
  121. package/chunk/{SSN-DwwJu9GH.js → SSN-DkEJjIbj.js} +6 -6
  122. package/chunk/{SSN-DwwJu9GH.js.map → SSN-DkEJjIbj.js.map} +1 -1
  123. package/chunk/{StateSelectComponent-D6kAZHc6.js → StateSelectComponent-CQqOuxkD.js} +6 -6
  124. package/chunk/{StateSelectComponent-D6kAZHc6.js.map → StateSelectComponent-CQqOuxkD.js.map} +1 -1
  125. package/chunk/{StateSelectComponent-2j4YT_bB.js → StateSelectComponent-DtQwQzeh.js} +6 -6
  126. package/chunk/{StateSelectComponent-2j4YT_bB.js.map → StateSelectComponent-DtQwQzeh.js.map} +1 -1
  127. package/chunk/{StatusComponent-DdTGrsZl.js → StatusComponent-9j39XhzT.js} +7 -7
  128. package/chunk/{StatusComponent-CK6ZFKRm.js.map → StatusComponent-9j39XhzT.js.map} +1 -1
  129. package/chunk/{StatusComponent-CK6ZFKRm.js → StatusComponent-rLMrqvfx.js} +7 -7
  130. package/chunk/{StatusComponent-DdTGrsZl.js.map → StatusComponent-rLMrqvfx.js.map} +1 -1
  131. package/chunk/{StepAgePersonalInfo-CwM7MLuH.js → StepAgePersonalInfo-3pMQ5xmu.js} +18 -18
  132. package/chunk/{StepAgePersonalInfo-CwM7MLuH.js.map → StepAgePersonalInfo-3pMQ5xmu.js.map} +1 -1
  133. package/chunk/{StepAgePersonalInfo-BHilnYDQ.js → StepAgePersonalInfo-BpWfNhEv.js} +19 -19
  134. package/chunk/{StepAgePersonalInfo-BHilnYDQ.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-BPOXGTRD.js → StepCollectIdentifier-D3JteRRF.js} +7 -7
  138. package/chunk/{StepCollectIdentifier-BPOXGTRD.js.map → StepCollectIdentifier-D3JteRRF.js.map} +1 -1
  139. package/chunk/{StepCollectIdentifier-B8oHm4pY.js → StepCollectIdentifier-Df1zQTCd.js} +7 -7
  140. package/chunk/{StepCollectIdentifier-B8oHm4pY.js.map → StepCollectIdentifier-Df1zQTCd.js.map} +1 -1
  141. package/chunk/{StepCollectMilitaryPersonalInfoComponent-CRvS_5S3.js → StepCollectMilitaryPersonalInfoComponent-CB3PLlYb.js} +23 -23
  142. package/chunk/{StepCollectMilitaryPersonalInfoComponent-CRvS_5S3.js.map → StepCollectMilitaryPersonalInfoComponent-CB3PLlYb.js.map} +1 -1
  143. package/chunk/{StepCollectMilitaryPersonalInfoComponent-GnvZysih.js → StepCollectMilitaryPersonalInfoComponent-D5fEULP8.js} +23 -23
  144. package/chunk/{StepCollectMilitaryPersonalInfoComponent-GnvZysih.js.map → StepCollectMilitaryPersonalInfoComponent-D5fEULP8.js.map} +1 -1
  145. package/chunk/{StepCollectPersonalInfo-BwD7UzHh.js → StepCollectPersonalInfo-CX8h-lLL.js} +32 -32
  146. package/chunk/{StepCollectPersonalInfo-BwD7UzHh.js.map → StepCollectPersonalInfo-CX8h-lLL.js.map} +1 -1
  147. package/chunk/{StepCollectPersonalInfo-Bv-SCda7.js → StepCollectPersonalInfo-Dht8LiHk.js} +35 -35
  148. package/chunk/{StepCollectPersonalInfo-Bv-SCda7.js.map → StepCollectPersonalInfo-Dht8LiHk.js.map} +1 -1
  149. package/chunk/{StepCompleteAuthentication-BBeoOSVF.js → StepCompleteAuthentication-B_0EZ3mH.js} +6 -6
  150. package/chunk/{StepCompleteAuthentication-BBeoOSVF.js.map → StepCompleteAuthentication-B_0EZ3mH.js.map} +1 -1
  151. package/chunk/{StepCompleteAuthentication-BMe7s_qR.js → StepCompleteAuthentication-Ds3ieihr.js} +6 -6
  152. package/chunk/{StepCompleteAuthentication-BMe7s_qR.js.map → StepCompleteAuthentication-Ds3ieihr.js.map} +1 -1
  153. package/chunk/{StepConsolation-Caze5btr.js → StepConsolation-C0N1GRlI.js} +6 -6
  154. package/chunk/{StepConsolation-Caze5btr.js.map → StepConsolation-C0N1GRlI.js.map} +1 -1
  155. package/chunk/{StepConsolation-BGOrLbzH.js → StepConsolation-wLDs-0mg.js} +6 -6
  156. package/chunk/{StepConsolation-BGOrLbzH.js.map → StepConsolation-wLDs-0mg.js.map} +1 -1
  157. package/chunk/{StepDocUpload-D0IxmE0P.js → StepDocUpload-BGvgOCT5.js} +11 -11
  158. package/chunk/{StepDocUpload-D0IxmE0P.js.map → StepDocUpload-BGvgOCT5.js.map} +1 -1
  159. package/chunk/{StepDocUpload-nT8znx0P.js → StepDocUpload-DssMCn-U.js} +11 -11
  160. package/chunk/{StepDocUpload-nT8znx0P.js.map → StepDocUpload-DssMCn-U.js.map} +1 -1
  161. package/chunk/{StepDriverLicensePersonalInfoComponent-CM5IRlqu.js → StepDriverLicensePersonalInfoComponent-5h_59-g_.js} +14 -14
  162. package/chunk/{StepDriverLicensePersonalInfoComponent-CM5IRlqu.js.map → StepDriverLicensePersonalInfoComponent-5h_59-g_.js.map} +1 -1
  163. package/chunk/{StepDriverLicensePersonalInfoComponent-wvW59Tge.js → StepDriverLicensePersonalInfoComponent-CedsuuPs.js} +14 -14
  164. package/chunk/{StepDriverLicensePersonalInfoComponent-wvW59Tge.js.map → StepDriverLicensePersonalInfoComponent-CedsuuPs.js.map} +1 -1
  165. package/chunk/{StepEmailLoop-DidYd6Jn.js → StepEmailLoop-BgyTBu-u.js} +9 -9
  166. package/chunk/{StepEmailLoop-DidYd6Jn.js.map → StepEmailLoop-BgyTBu-u.js.map} +1 -1
  167. package/chunk/{StepEmailLoop-Do1RGSWH.js → StepEmailLoop-pva3laoI.js} +9 -9
  168. package/chunk/{StepEmailLoop-Do1RGSWH.js.map → StepEmailLoop-pva3laoI.js.map} +1 -1
  169. package/chunk/{StepEmploymentPersonalInfo-ePSayAaT.js → StepEmploymentPersonalInfo-DZA-WCNB.js} +19 -19
  170. package/chunk/{StepEmploymentPersonalInfo-ePSayAaT.js.map → StepEmploymentPersonalInfo-DZA-WCNB.js.map} +1 -1
  171. package/chunk/{StepEmploymentPersonalInfo-B-8A3qdb.js → StepEmploymentPersonalInfo-Dfp9QW8-.js} +19 -19
  172. package/chunk/{StepEmploymentPersonalInfo-B-8A3qdb.js.map → StepEmploymentPersonalInfo-Dfp9QW8-.js.map} +1 -1
  173. package/chunk/{StepFirstResponderPersonalInfo-DcFARvoh.js → StepFirstResponderPersonalInfo-BnZfWlpa.js} +21 -21
  174. package/chunk/{StepFirstResponderPersonalInfo-DcFARvoh.js.map → StepFirstResponderPersonalInfo-BnZfWlpa.js.map} +1 -1
  175. package/chunk/{StepFirstResponderPersonalInfo-DFuqzNs3.js → StepFirstResponderPersonalInfo-DlDcx7Yv.js} +21 -21
  176. package/chunk/{StepFirstResponderPersonalInfo-DFuqzNs3.js.map → StepFirstResponderPersonalInfo-DlDcx7Yv.js.map} +1 -1
  177. package/chunk/{StepGeneralIdentityPersonalInfoComponent-DOTlWwFp.js → StepGeneralIdentityPersonalInfoComponent-Bv8tMoOR.js} +17 -17
  178. package/chunk/{StepGeneralIdentityPersonalInfoComponent-DOTlWwFp.js.map → StepGeneralIdentityPersonalInfoComponent-Bv8tMoOR.js.map} +1 -1
  179. package/chunk/{StepGeneralIdentityPersonalInfoComponent-CxiV3C3o.js → StepGeneralIdentityPersonalInfoComponent-SCTgUH4L.js} +17 -17
  180. package/chunk/{StepGeneralIdentityPersonalInfoComponent-CxiV3C3o.js.map → StepGeneralIdentityPersonalInfoComponent-SCTgUH4L.js.map} +1 -1
  181. package/chunk/{StepHybridIdentityPersonalInfoComponent-e9EsweLX.js → StepHybridIdentityPersonalInfoComponent-C7pMYvY6.js} +18 -18
  182. package/chunk/{StepHybridIdentityPersonalInfoComponent-e9EsweLX.js.map → StepHybridIdentityPersonalInfoComponent-C7pMYvY6.js.map} +1 -1
  183. package/chunk/{StepHybridIdentityPersonalInfoComponent-BFEiAsZN.js → StepHybridIdentityPersonalInfoComponent-Cxl0Wslc.js} +18 -18
  184. package/chunk/{StepHybridIdentityPersonalInfoComponent-BFEiAsZN.js.map → StepHybridIdentityPersonalInfoComponent-Cxl0Wslc.js.map} +1 -1
  185. package/chunk/{StepIDCheckLoop-CXeoR-Ja.js → StepIDCheckLoop-CLO_MLrV.js} +6 -6
  186. package/chunk/{StepIDCheckLoop-CXeoR-Ja.js.map → StepIDCheckLoop-CLO_MLrV.js.map} +1 -1
  187. package/chunk/{StepIDCheckLoop-Dxs0LQVC.js → StepIDCheckLoop-DXEqOxvC.js} +6 -6
  188. package/chunk/{StepIDCheckLoop-Dxs0LQVC.js.map → StepIDCheckLoop-DXEqOxvC.js.map} +1 -1
  189. package/chunk/{StepIDCheckLoopOnfido-DQGqtIzk.js → StepIDCheckLoopOnfido-ZLbrVHIN.js} +8 -8
  190. package/chunk/{StepIDCheckLoopOnfido-DQGqtIzk.js.map → StepIDCheckLoopOnfido-ZLbrVHIN.js.map} +1 -1
  191. package/chunk/{StepIDCheckLoopOnfido-CBXReFo-.js → StepIDCheckLoopOnfido-yilH13Ng.js} +8 -8
  192. package/chunk/{StepIDCheckLoopOnfido-CBXReFo-.js.map → StepIDCheckLoopOnfido-yilH13Ng.js.map} +1 -1
  193. package/chunk/{StepIDCheckLoopRegula-BhCTKXX5.js → StepIDCheckLoopRegula-CFVUDpKU.js} +7 -7
  194. package/chunk/{StepIDCheckLoopRegula-BhCTKXX5.js.map → StepIDCheckLoopRegula-CFVUDpKU.js.map} +1 -1
  195. package/chunk/{StepIDCheckLoopRegula-B_ChARZG.js → StepIDCheckLoopRegula-hP3n4GeO.js} +7 -7
  196. package/chunk/{StepIDCheckLoopRegula-B_ChARZG.js.map → StepIDCheckLoopRegula-hP3n4GeO.js.map} +1 -1
  197. package/chunk/{StepLicensedProfessionalPersonalInfo-7X6Ug5e6.js → StepLicensedProfessionalPersonalInfo-LYFcQDpP.js} +20 -20
  198. package/chunk/{StepLicensedProfessionalPersonalInfo-7X6Ug5e6.js.map → StepLicensedProfessionalPersonalInfo-LYFcQDpP.js.map} +1 -1
  199. package/chunk/{StepLicensedProfessionalPersonalInfo-DWFV8fJX.js → StepLicensedProfessionalPersonalInfo-oemUzTIe.js} +20 -20
  200. package/chunk/{StepLicensedProfessionalPersonalInfo-DWFV8fJX.js.map → StepLicensedProfessionalPersonalInfo-oemUzTIe.js.map} +1 -1
  201. package/chunk/{StepLowIncomePersonalInfo-lxsM0k2r.js → StepLowIncomePersonalInfo-B-DGFkrI.js} +23 -23
  202. package/chunk/{StepLowIncomePersonalInfo-lxsM0k2r.js.map → StepLowIncomePersonalInfo-B-DGFkrI.js.map} +1 -1
  203. package/chunk/{StepLowIncomePersonalInfo-7M5oYf-0.js → StepLowIncomePersonalInfo-SmoWqnNE.js} +26 -26
  204. package/chunk/{StepLowIncomePersonalInfo-7M5oYf-0.js.map → StepLowIncomePersonalInfo-SmoWqnNE.js.map} +1 -1
  205. package/chunk/{StepMedicalProfessionalPersonalInfo-Bxd0ubJR.js → StepMedicalProfessionalPersonalInfo-DKA5np85.js} +21 -21
  206. package/chunk/{StepMedicalProfessionalPersonalInfo-Bxd0ubJR.js.map → StepMedicalProfessionalPersonalInfo-DKA5np85.js.map} +1 -1
  207. package/chunk/{StepMedicalProfessionalPersonalInfo-BRAHgo2q.js → StepMedicalProfessionalPersonalInfo-Dom3M0nW.js} +21 -21
  208. package/chunk/{StepMedicalProfessionalPersonalInfo-BRAHgo2q.js.map → StepMedicalProfessionalPersonalInfo-Dom3M0nW.js.map} +1 -1
  209. package/chunk/{StepMemberPersonalInfo-VDTyExYV.js → StepMemberPersonalInfo-CvATZvNo.js} +16 -16
  210. package/chunk/{StepMemberPersonalInfo-VDTyExYV.js.map → StepMemberPersonalInfo-CvATZvNo.js.map} +1 -1
  211. package/chunk/{StepMemberPersonalInfo-kcXiXhpq.js → StepMemberPersonalInfo-DNhZGs2f.js} +16 -16
  212. package/chunk/{StepMemberPersonalInfo-kcXiXhpq.js.map → StepMemberPersonalInfo-DNhZGs2f.js.map} +1 -1
  213. package/chunk/{StepMoverPersonalInfo-DmIFOPh5.js → StepMoverPersonalInfo-BLqEaySL.js} +14 -14
  214. package/chunk/{StepMoverPersonalInfo-DmIFOPh5.js.map → StepMoverPersonalInfo-BLqEaySL.js.map} +1 -1
  215. package/chunk/{StepMoverPersonalInfo-l87LesOl.js → StepMoverPersonalInfo-DbSAn1aA.js} +14 -14
  216. package/chunk/{StepMoverPersonalInfo-l87LesOl.js.map → StepMoverPersonalInfo-DbSAn1aA.js.map} +1 -1
  217. package/chunk/{StepOverrideComponent-z1Ikjz0f.js → StepOverrideComponent-C9h9fP27.js} +8 -8
  218. package/chunk/{StepOverrideComponent-z1Ikjz0f.js.map → StepOverrideComponent-C9h9fP27.js.map} +1 -1
  219. package/chunk/{StepOverrideComponent-CW4VkCwi.js → StepOverrideComponent-ghp8yoRN.js} +8 -8
  220. package/chunk/{StepOverrideComponent-CW4VkCwi.js.map → StepOverrideComponent-ghp8yoRN.js.map} +1 -1
  221. package/chunk/{StepSMSLoop-Dyl0Ff91.js → StepSMSLoop-CDRG7-3o.js} +5 -5
  222. package/chunk/{StepSMSLoop-Dyl0Ff91.js.map → StepSMSLoop-CDRG7-3o.js.map} +1 -1
  223. package/chunk/{StepSMSLoop-C0JrQqS1.js → StepSMSLoop-wiA0rt4U.js} +5 -5
  224. package/chunk/{StepSMSLoop-C0JrQqS1.js.map → StepSMSLoop-wiA0rt4U.js.map} +1 -1
  225. package/chunk/StepSSO-Bx1gQq5b.js +4 -4
  226. package/chunk/StepSSO-Cy9ViRyN.js +4 -4
  227. package/chunk/{StepSocialSecurityNumber-CUSbn9ky.js → StepSocialSecurityNumber-CGZhAqYm.js} +9 -9
  228. package/chunk/{StepSocialSecurityNumber-CUSbn9ky.js.map → StepSocialSecurityNumber-CGZhAqYm.js.map} +1 -1
  229. package/chunk/{StepSocialSecurityNumber-O5fPKiI9.js → StepSocialSecurityNumber-ZJ1ZNHjg.js} +9 -9
  230. package/chunk/{StepSocialSecurityNumber-O5fPKiI9.js.map → StepSocialSecurityNumber-ZJ1ZNHjg.js.map} +1 -1
  231. package/chunk/{StepStudentPersonalInfo-BAQArfCf.js → StepStudentPersonalInfo-B8QwLWUK.js} +20 -20
  232. package/chunk/{StepStudentPersonalInfo-BAQArfCf.js.map → StepStudentPersonalInfo-B8QwLWUK.js.map} +1 -1
  233. package/chunk/{StepStudentPersonalInfo-Bamp_lx6.js → StepStudentPersonalInfo-BXWQv_JA.js} +20 -20
  234. package/chunk/{StepStudentPersonalInfo-Bamp_lx6.js.map → StepStudentPersonalInfo-BXWQv_JA.js.map} +1 -1
  235. package/chunk/{StepSuccess-DKEVbl6y.js → StepSuccess-DZ-fwvIw.js} +9 -9
  236. package/chunk/{StepSuccess-DKEVbl6y.js.map → StepSuccess-DZ-fwvIw.js.map} +1 -1
  237. package/chunk/{StepSuccess-CyJo0wX0.js → StepSuccess-DmWCexUW.js} +9 -9
  238. package/chunk/{StepSuccess-CyJo0wX0.js.map → StepSuccess-DmWCexUW.js.map} +1 -1
  239. package/chunk/{StepTeacherPersonalInfo-B0HB_FxE.js → StepTeacherPersonalInfo-BRTHwZ0Z.js} +17 -17
  240. package/chunk/{StepTeacherPersonalInfo-B0HB_FxE.js.map → StepTeacherPersonalInfo-BRTHwZ0Z.js.map} +1 -1
  241. package/chunk/{StepTeacherPersonalInfo-BEucyFHS.js → StepTeacherPersonalInfo-BcCWpqUN.js} +17 -17
  242. package/chunk/{StepTeacherPersonalInfo-BEucyFHS.js.map → StepTeacherPersonalInfo-BcCWpqUN.js.map} +1 -1
  243. package/chunk/StepThirdPartyLoop-BFizJiyZ.js +4 -4
  244. package/chunk/StepThirdPartyLoop-C9d7QWS3.js +4 -4
  245. package/chunk/{TeacherSchoolComponent-BMr7mVpV.js → TeacherSchoolComponent-DLxAYJLl.js} +9 -9
  246. package/chunk/{TeacherSchoolComponent-BMr7mVpV.js.map → TeacherSchoolComponent-DLxAYJLl.js.map} +1 -1
  247. package/chunk/{TeacherSchoolComponent-V4lovHE4.js → TeacherSchoolComponent-aOI2VcI5.js} +9 -9
  248. package/chunk/{TeacherSchoolComponent-V4lovHE4.js.map → TeacherSchoolComponent-aOI2VcI5.js.map} +1 -1
  249. package/chunk/{TestingRouteOverrides-CuWxA5IP.js → TestingRouteOverrides-DXjtFZZd.js} +5 -5
  250. package/chunk/{TestingRouteOverrides-CuWxA5IP.js.map → TestingRouteOverrides-DXjtFZZd.js.map} +1 -1
  251. package/chunk/{TestingRouteOverrides-CeN5B954.js → TestingRouteOverrides-fnlJLg1Z.js} +5 -5
  252. package/chunk/{TestingRouteOverrides-CeN5B954.js.map → TestingRouteOverrides-fnlJLg1Z.js.map} +1 -1
  253. package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
  254. package/chunk/ar-D5CO913q.js +4 -4
  255. package/chunk/bg-1mhA5kYF.js +4 -4
  256. package/chunk/bn-IN-CpDqyRb_.js +4 -4
  257. package/chunk/clsx-DC8twM4t.js +4 -4
  258. package/chunk/countryUtils-D1471i0b.js +12 -0
  259. package/chunk/{countryUtils-C_UVEq-E.js.map → countryUtils-D1471i0b.js.map} +1 -1
  260. package/chunk/{countryUtils-y0ivUOdj.js → countryUtils-KL2KBMOv.js} +5 -5
  261. package/chunk/{countryUtils-y0ivUOdj.js.map → countryUtils-KL2KBMOv.js.map} +1 -1
  262. package/chunk/cs-Chh7FAGt.js +4 -4
  263. package/chunk/da-DwrVoxto.js +4 -4
  264. package/chunk/de-IWGZLhgY.js +4 -4
  265. package/chunk/{downshift.esm-DLWkU0ic.js → downshift.esm-3XGVdV4K.js} +121 -121
  266. package/chunk/{downshift.esm-DLWkU0ic.js.map → downshift.esm-3XGVdV4K.js.map} +1 -1
  267. package/chunk/{downshift.esm-YF8KQ2l_.js → downshift.esm-DmlDHS_b.js} +5 -5
  268. package/chunk/{downshift.esm-YF8KQ2l_.js.map → downshift.esm-DmlDHS_b.js.map} +1 -1
  269. package/chunk/el-DbDcvSPJ.js +4 -4
  270. package/chunk/{empties-CIHgi5OO.js → empties-BBKd53_B.js} +12 -5
  271. package/chunk/empties-BBKd53_B.js.map +1 -0
  272. package/chunk/{empties-CT4nwqif.js → empties-DcQjcgEV.js} +12 -5
  273. package/chunk/empties-DcQjcgEV.js.map +1 -0
  274. package/chunk/en-GB-CNQ8Ww2j.js +4 -4
  275. package/chunk/es-ES-DWimqEZ_.js +4 -4
  276. package/chunk/es-qhC-seq5.js +4 -4
  277. package/chunk/et-yF9G-Mym.js +4 -4
  278. package/chunk/eventEmitter-CSG6jR7V.js +4 -4
  279. package/chunk/fa-BcdSf7og.js +4 -4
  280. package/chunk/fi-D-IP_KHm.js +4 -4
  281. package/chunk/fr-BmUuYxk0.js +4 -4
  282. package/chunk/fr-CA-DVQ4xmzZ.js +4 -4
  283. package/chunk/ga-DuZycND3.js +4 -4
  284. package/chunk/getInstallType-BRxisNNY.js +4 -4
  285. package/chunk/getInstallType-DlS_DNKt.js +4 -4
  286. package/chunk/hi-IN-l6Rn5Ewm.js +4 -4
  287. package/chunk/{hooks-CzvMG3Q7.js → hooks-B7aeAwHn.js} +6 -6
  288. package/chunk/hooks-B7aeAwHn.js.map +1 -0
  289. package/chunk/{hooks-Dc2ICkLE.js → hooks-D0X_qdc-.js} +6 -6
  290. package/chunk/hooks-D0X_qdc-.js.map +1 -0
  291. package/chunk/hr-BtqyDzDB.js +4 -4
  292. package/chunk/hu-C6syKJfb.js +4 -4
  293. package/chunk/i18next-iyVj5hRL.js +4 -4
  294. package/chunk/id-GgI-Z2a5.js +4 -4
  295. package/chunk/intl-BK4prEGw.js +4 -4
  296. package/chunk/is-CvmKEON9.js +4 -4
  297. package/chunk/it-CnmveGgC.js +4 -4
  298. package/chunk/iw-DFUYHkxF.js +4 -4
  299. package/chunk/ja-CjVb2tWW.js +4 -4
  300. package/chunk/jsx-runtime-BUMIo32n.js +4 -4
  301. package/chunk/jsx-runtime-DwmrsRqi.js +4 -4
  302. package/chunk/kk-Dvz4nK6K.js +4 -4
  303. package/chunk/ko-DzOqBMGC.js +4 -4
  304. package/chunk/lo-C2WPq55d.js +4 -4
  305. package/chunk/lt-BSDYvjTF.js +4 -4
  306. package/chunk/lv-CefDPT-M.js +4 -4
  307. package/chunk/mockProgramBranding-C9Ysu3Mp.js +26 -0
  308. package/chunk/mockProgramBranding-C9Ysu3Mp.js.map +1 -0
  309. package/chunk/mockProgramConfiguration-YBQMVL51.js +4 -4
  310. package/chunk/mockProgramI18n-CgYx_1_a.js +4 -4
  311. package/chunk/mockProgramTheme-Cfk2dzF3.js +4 -4
  312. package/chunk/mockProgramTheme-Cfk2dzF3.js.map +1 -1
  313. package/chunk/{mocks-aAiSx13N.js → mocks-DV23paUj.js} +5 -5
  314. package/chunk/{mocks-aAiSx13N.js.map → mocks-DV23paUj.js.map} +1 -1
  315. package/chunk/{mocks-Dbbpa-PB.js → mocks-R-p7VtJz.js} +5 -5
  316. package/chunk/{mocks-Dbbpa-PB.js.map → mocks-R-p7VtJz.js.map} +1 -1
  317. package/chunk/ms-BjestZxy.js +4 -4
  318. package/chunk/nl-B1FyUfCT.js +4 -4
  319. package/chunk/nl-BE-CbeAd3nq.js +4 -4
  320. package/chunk/no-Dr633Ddi.js +4 -4
  321. package/chunk/pl-UYTjMIq_.js +4 -4
  322. package/chunk/{programThemeGetters-r4JxFjsB.js → programThemeGetters-C8JS1yEr.js} +1707 -1700
  323. package/chunk/programThemeGetters-C8JS1yEr.js.map +1 -0
  324. package/chunk/{programThemeGetters-CGPGlO7Q.js → programThemeGetters-DXn-alcY.js} +77 -58
  325. package/chunk/programThemeGetters-DXn-alcY.js.map +1 -0
  326. package/chunk/pt-BR-C8SYMT-J.js +4 -4
  327. package/chunk/pt-uH-M3GdN.js +4 -4
  328. package/chunk/refs-Mq0rtW9K.js +4 -4
  329. package/chunk/ro-CAOSXZ7h.js +4 -4
  330. package/chunk/ru-iwYoEydL.js +4 -4
  331. package/chunk/runtimeTypes-B2AGNJMT.js +4 -4
  332. package/chunk/sk-DYYNV3zw.js +4 -4
  333. package/chunk/sl-D_-eeM5N.js +4 -4
  334. package/chunk/sr-BTi9_anL.js +4 -4
  335. package/chunk/{stepComponentHelpers-CeJt7-iZ.js → stepComponentHelpers-CyqXTDdj.js} +6 -6
  336. package/chunk/{stepComponentHelpers-CeJt7-iZ.js.map → stepComponentHelpers-CyqXTDdj.js.map} +1 -1
  337. package/chunk/{stepComponentHelpers-Djs_ph7X.js → stepComponentHelpers-Dztw-HNP.js} +6 -6
  338. package/chunk/{stepComponentHelpers-Djs_ph7X.js.map → stepComponentHelpers-Dztw-HNP.js.map} +1 -1
  339. package/chunk/strings-DWLVdUcm.js +4 -4
  340. package/chunk/sv-DRwY4shG.js +4 -4
  341. package/chunk/sw-Bvj2mYmM.js +4 -4
  342. package/chunk/ta-CmtaYoNe.js +4 -4
  343. package/chunk/th-12r2yKkJ.js +4 -4
  344. package/chunk/tl-BGNfO7md.js +4 -4
  345. package/chunk/tr-DH2ZSJhs.js +4 -4
  346. package/chunk/uk-CELBZlTd.js +4 -4
  347. package/chunk/ur-MR8DTbmd.js +4 -4
  348. package/chunk/{useCollectFieldsEndpoint-NVMDQMeW.js → useCollectFieldsEndpoint-84_Wz8sd.js} +6 -6
  349. package/chunk/{useCollectFieldsEndpoint-NVMDQMeW.js.map → useCollectFieldsEndpoint-84_Wz8sd.js.map} +1 -1
  350. package/chunk/{useCollectFieldsEndpoint-6IQu9HGj.js → useCollectFieldsEndpoint-CXmPHndq.js} +6 -6
  351. package/chunk/{useCollectFieldsEndpoint-6IQu9HGj.js.map → useCollectFieldsEndpoint-CXmPHndq.js.map} +1 -1
  352. package/chunk/{useMetrics-CWz02hZz.js → useMetrics-C13Ap129.js} +5 -5
  353. package/chunk/{useMetrics-CWz02hZz.js.map → useMetrics-C13Ap129.js.map} +1 -1
  354. package/chunk/{useMetrics-D-HTNFpy.js → useMetrics-O66_lNx5.js} +5 -5
  355. package/chunk/{useMetrics-D-HTNFpy.js.map → useMetrics-O66_lNx5.js.map} +1 -1
  356. package/chunk/vi-DtZ-SqD5.js +4 -4
  357. package/chunk/zh-DjyVyYac.js +4 -4
  358. package/chunk/zh-HK-CN1HarHq.js +4 -4
  359. package/chunk/zu-DPhgIh1z.js +4 -4
  360. package/package.json +1 -1
  361. package/sheerid-install.css +4 -4
  362. package/sheerid-install.js +4 -4
  363. package/sheerid.css +4 -4
  364. package/sheerid.js +896 -885
  365. package/sheerid.js.map +1 -1
  366. package/chunk/Message-B_RKEVv2.js.map +0 -1
  367. package/chunk/Message-jhvpcui8.js.map +0 -1
  368. package/chunk/countryUtils-C_UVEq-E.js +0 -12
  369. package/chunk/empties-CIHgi5OO.js.map +0 -1
  370. package/chunk/empties-CT4nwqif.js.map +0 -1
  371. package/chunk/hooks-CzvMG3Q7.js.map +0 -1
  372. package/chunk/hooks-Dc2ICkLE.js.map +0 -1
  373. package/chunk/programThemeGetters-CGPGlO7Q.js.map +0 -1
  374. package/chunk/programThemeGetters-r4JxFjsB.js.map +0 -1
@@ -4,31 +4,31 @@
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.310.0
8
- * BUILD_TIMESTAMP: 1793209397347
9
- * BUILD_DATE: Wed Oct 28 2026 17:43:17 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 18cd51e1767c98bc1025777900967b8509cccd99
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 { p as e, s as t } from "./intl-BK4prEGw.js";
13
13
  import { b as n } from "./runtimeTypes-B2AGNJMT.js";
14
14
  import { n as r, t as i } from "./jsx-runtime-BUMIo32n.js";
15
- import { o as a } from "./programThemeGetters-CGPGlO7Q.js";
16
- import { p as o } from "./FormFooterComponent-CHMM9xXM.js";
15
+ import { o as a } from "./programThemeGetters-DXn-alcY.js";
16
+ import { m as o } from "./FormFooterComponent-Brab2xcp.js";
17
17
  import { t as s } from "../_mysheerid-preview.js";
18
- import { t as c } from "./useCollectFieldsEndpoint-NVMDQMeW.js";
19
- import { d as l, f as u, r as d, t as f } from "./stepComponentHelpers-Djs_ph7X.js";
20
- import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-DD3afqj9.js";
21
- import { n as y, t as b } from "./PersonalInfoStepSubmitButton-XKbJpeBB.js";
22
- import { i as x } from "./FormSelectChoice-CHdts_po.js";
23
- import { t as S } from "./BirthDateComponent-BC0V70wK.js";
24
- import { t as C } from "./PostalCodeComponent-DzKFsVmZ.js";
25
- import { t as w } from "./CountryComponentWrapper-nEV1lfX2.js";
26
- import { t as T } from "./ExtraMessage-D7iqKQh4.js";
27
- import { t as E } from "./ChangeLocaleComponent-CZIXysUs.js";
28
- import { t as D } from "./PersonalInfoStepWrapper-C72GphtU.js";
29
- import { t as O } from "./countryUtils-y0ivUOdj.js";
30
- import { t as k } from "./StatusComponent-CK6ZFKRm.js";
31
- import { t as A } from "./LicensedProfessionalOrganizationComponent-CvEYI4fg.js";
18
+ import { t as c } from "./useCollectFieldsEndpoint-84_Wz8sd.js";
19
+ import { d as l, f as u, r as d, t as f } from "./stepComponentHelpers-Dztw-HNP.js";
20
+ import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-DMFt9cDO.js";
21
+ import { n as y, t as b } from "./PersonalInfoStepSubmitButton-DJ7FqfAK.js";
22
+ import { i as x } from "./FormSelectChoice-D5wZk7cJ.js";
23
+ import { t as S } from "./BirthDateComponent-Dwfl6tYR.js";
24
+ import { t as C } from "./PostalCodeComponent-B1MM4Jgt.js";
25
+ import { t as w } from "./CountryComponentWrapper-DNNtLmuf.js";
26
+ import { t as T } from "./ExtraMessage-CYfaHVd1.js";
27
+ import { t as E } from "./ChangeLocaleComponent-AKQ7gIkP.js";
28
+ import { t as D } from "./PersonalInfoStepWrapper-Fjv1zouY.js";
29
+ import { t as O } from "./countryUtils-KL2KBMOv.js";
30
+ import { t as k } from "./StatusComponent-rLMrqvfx.js";
31
+ import { t as A } from "./LicensedProfessionalOrganizationComponent-CCx7V-Xr.js";
32
32
  //#region src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx
33
33
  var j = i(), M = ({ verificationService: i }) => {
34
34
  let M = a(), N = i.viewModel, { fieldValidationErrors: P } = i, F = i.verificationResponse, I = o(F), L = N.localeChoice.value, R = t(), { availableStatuses: z } = c({
@@ -1 +1 @@
1
- {"version":3,"file":"StepLicensedProfessionalPersonalInfo-7X6Ug5e6.js","names":["produce","LicensedProfessionalStatusComponent","LicensedProfessionalOrganization","FirstName","LastName","BirthDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","VerificationStepsEnum","FormattedHTMLMessage","require_jsx_runtime","useProgramConfiguration","hasFailedInstantMatch","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","ExtraMessage","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StatusComponent","LicensedProfessionalOrganizationComponent","import_jsx_runtime","StepLicensedProfessionalPersonalInfoComponent","programConfiguration","viewModel","verificationService","verificationResponse","failedInstantMatch","locale","options","dynamicStatuses","statusOptions","countryChoiceValue","needToPickCountry","updateLicensedProfessionalViewModel","nextState","key","value","option","fieldValidationErrors","updatedStatuses","status","choice","newValue","event"],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type LicensedProfessionalStatus,\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type LicensedProfessionalPersonalInfoResponse,\n type LicensedProfessionalPersonalInfoViewModel,\n type Organization,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport const StepLicensedProfessionalPersonalInfoComponent = ({\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const programConfiguration = useProgramConfiguration();\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as LicensedProfessionalStatus[],\n );\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programConfiguration, countryChoiceValue);\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={statusOptions.find((option) => option.value === viewModel.statuses[0])}\n isErrored={!!fieldValidationErrors.statuses}\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;A,aAgDayC,KAAiD,EAC5D,6BACwD;CACxD,IAAMC,IAAuB5B,EAAwB,GAC/C6B,IAAYC,EAAoB,WAChC,EAAE,6BAA0BA,GAC5BC,IACJD,EAAoB,sBAChBE,IAAqB/B,EAAsB8B,CAAoB,GAE/DE,IAASJ,EAAU,aAAa,OAChCK,IAAUtC,EAAW,GAErB,EAAE,mBAAmBuC,MAAoBhC,EAAyB;EACtE,gBAAgB4B,EAAqB;EACrC,aAAaA,EAAqB;EAClC;CACF,CAAC,GAEKK,IAAgBpB,EACnBmB,KAAmBJ,EAAqB,iBAC3C,GAEMM,IAAqBR,EAAU,eAAe,OAC9CS,IAAoBf,EAAyBK,GAAsBS,CAAkB,GAErFE,KACJ,GACA,MACG;EACH,IAAMC,IAAuDtD,EAC3D2C,IACC,MAAqD;GACpD,EAAOY,KAAeC;EACxB,CACF;EACA,EAAoB,gBAAgBF,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAAd,EAAA,KAAA,CAACJ,GAAD;EACuB;EACrB,MAAMS,EAAqB;EAF7B,UAAA;GAIE,iBAAA,GAAAL,EAAA,IAAA,CAACxB,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAAwB,EAAA,IAAA,CAACL,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,GAAAK,EAAA,IAAA,CAACP,GAAD;IACuB;IACrB,UAAUZ,EAAwB,SAAS,CAAC,EAAE;GAC/C,CAAA;GAED,iBAAA,GAAAmB,EAAA,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S,CAAQ,GAC3D5C,EAAqC,eAAe4C,GAAUlB,CAAmB;IACnF;IACA,qBAAqBD,EAAU,iBAAiBA,EAAU,cAAc;IACxE,UAAUtB,EAAwB,aAAa,CAAC,EAAE;GACnD,CAAA,IACC;GAEH2B,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAAR,EAAA,IAAA,CAAChB,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAAgB,EAAA,IAAA,CAAChC,GAAD;IACuB;IACrB,WAAW,CAAC,CAACkD,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJAL,EAAoC,YAAY;MAC9C,GAAGT,EAAoB,UAAU;MACjC,oBAAoBkB;KACtB,CAAC,GACD5C,EAAqC,sBAAsB4C,GAAUlB,CAAmB;IAC1F;IACW;IACX,UAAUvB,EAAwB,oBAAoB,CAAC,EAAE;GAC1D,CAAA;GAED,iBAAA,GAAAmB,EAAA,IAAA,CAACN,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAAM,EAAA,IAAA,CAACb,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC+B,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAAlB,EAAA,IAAA,CAACX,GAAD;IACE,MAAMlB,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA6B,EAAA,IAAA,CAAC5B,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
1
+ {"version":3,"file":"StepLicensedProfessionalPersonalInfo-LYFcQDpP.js","names":["produce","LicensedProfessionalStatusComponent","LicensedProfessionalOrganization","FirstName","LastName","BirthDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","VerificationStepsEnum","FormattedHTMLMessage","require_jsx_runtime","useProgramConfiguration","hasFailedInstantMatch","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","ExtraMessage","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StatusComponent","LicensedProfessionalOrganizationComponent","import_jsx_runtime","StepLicensedProfessionalPersonalInfoComponent","programConfiguration","viewModel","verificationService","verificationResponse","failedInstantMatch","locale","options","dynamicStatuses","statusOptions","countryChoiceValue","needToPickCountry","updateLicensedProfessionalViewModel","nextState","key","value","option","fieldValidationErrors","updatedStatuses","status","choice","newValue","event"],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type LicensedProfessionalStatus,\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type LicensedProfessionalPersonalInfoResponse,\n type LicensedProfessionalPersonalInfoViewModel,\n type Organization,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport const StepLicensedProfessionalPersonalInfoComponent = ({\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const programConfiguration = useProgramConfiguration();\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as LicensedProfessionalStatus[],\n );\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programConfiguration, countryChoiceValue);\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={statusOptions.find((option) => option.value === viewModel.statuses[0])}\n isErrored={!!fieldValidationErrors.statuses}\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;A,aAgDayC,KAAiD,EAC5D,6BACwD;CACxD,IAAMC,IAAuB5B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C,WAAW,MAAa;KAKtB,AAJAL,EAAoC,YAAY;MAC9C,GAAGT,EAAoB,UAAU;MACjC,oBAAoBkB;KACtB,CAAC,GACD5C,EAAqC,sBAAsB4C,GAAUlB,CAAmB;IAC1F;IACW;IACX,UAAUvB,EAAwB,oBAAoB,CAAC,EAAE;GAC1D,CAAA;GAED,iBAAA,GAAAmB,EAAA,IAAA,CAACN,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAAM,EAAA,IAAA,CAACb,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC+B,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAAlB,EAAA,IAAA,CAACX,GAAD;IACE,MAAMlB,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA6B,EAAA,IAAA,CAAC5B,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
@@ -1,30 +1,30 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.310.0
4
- * BUILD_TIMESTAMP: 1793209392260
5
- * BUILD_DATE: Wed Oct 28 2026 17:43:12 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 18cd51e1767c98bc1025777900967b8509cccd99
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 { dt as e, u as t } from "./i18next-iyVj5hRL.js";
9
9
  import { n, t as r } from "./jsx-runtime-DwmrsRqi.js";
10
- import { o as i } from "./programThemeGetters-r4JxFjsB.js";
10
+ import { o as i } from "./programThemeGetters-C8JS1yEr.js";
11
11
  import { b as a } from "./runtimeTypes-B2AGNJMT.js";
12
- import { h as o } from "./FormFooterComponent-BaO1YAjx.js";
12
+ import { h as o } from "./FormFooterComponent-he4l6p39.js";
13
13
  import { n as s } from "../sheerid.js";
14
- import { t as c } from "./useCollectFieldsEndpoint-6IQu9HGj.js";
15
- import { d as l, f as u, r as d, t as f } from "./stepComponentHelpers-CeJt7-iZ.js";
16
- import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-DllbmDK0.js";
17
- import { n as y, t as b } from "./PersonalInfoStepSubmitButton-CzetrMl4.js";
18
- import { i as x } from "./FormSelectChoice-Cj8dBkIe.js";
19
- import { t as S } from "./BirthDateComponent-yEKEOgR4.js";
20
- import { t as C } from "./PostalCodeComponent-Bhq1Okl6.js";
21
- import { t as w } from "./CountryComponentWrapper-DOF9-DPR.js";
22
- import { t as T } from "./ExtraMessage-CreEN83x.js";
23
- import { t as E } from "./ChangeLocaleComponent-DPFet-3o.js";
24
- import { t as D } from "./PersonalInfoStepWrapper-Cnse8JAf.js";
25
- import { t as O } from "./countryUtils-C_UVEq-E.js";
26
- import { t as k } from "./StatusComponent-DdTGrsZl.js";
27
- import { t as A } from "./LicensedProfessionalOrganizationComponent-Ii7qB1KH.js";
14
+ import { t as c } from "./useCollectFieldsEndpoint-CXmPHndq.js";
15
+ import { d as l, f as u, r as d, t as f } from "./stepComponentHelpers-CyqXTDdj.js";
16
+ import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-BbQTpmWe.js";
17
+ import { n as y, t as b } from "./PersonalInfoStepSubmitButton-Cz5Ik4p9.js";
18
+ import { i as x } from "./FormSelectChoice-CSGgtlv8.js";
19
+ import { t as S } from "./BirthDateComponent-D7BbQdeu.js";
20
+ import { t as C } from "./PostalCodeComponent-BrHnEVhq.js";
21
+ import { t as w } from "./CountryComponentWrapper-DN99F8hI.js";
22
+ import { t as T } from "./ExtraMessage-DeGK3KwO.js";
23
+ import { t as E } from "./ChangeLocaleComponent-BOFrHFyG.js";
24
+ import { t as D } from "./PersonalInfoStepWrapper-C4g9QHwO.js";
25
+ import { t as O } from "./countryUtils-D1471i0b.js";
26
+ import { t as k } from "./StatusComponent-9j39XhzT.js";
27
+ import { t as A } from "./LicensedProfessionalOrganizationComponent-Dja--YUF.js";
28
28
  //#region src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx
29
29
  var j = r(), M = ({ verificationService: r }) => {
30
30
  let M = i(), N = r.viewModel, { fieldValidationErrors: P } = r, F = r.verificationResponse, I = o(F), L = N.localeChoice.value, R = t(), { availableStatuses: z } = c({
@@ -1 +1 @@
1
- {"version":3,"file":"StepLicensedProfessionalPersonalInfo-DWFV8fJX.js","names":["produce","LicensedProfessionalStatusComponent","LicensedProfessionalOrganization","FirstName","LastName","BirthDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","require_jsx_runtime","useProgramConfiguration","VerificationStepsEnum","hasFailedInstantMatch","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","ExtraMessage","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StatusComponent","LicensedProfessionalOrganizationComponent","import_jsx_runtime","StepLicensedProfessionalPersonalInfoComponent","programConfiguration","viewModel","verificationService","verificationResponse","failedInstantMatch","locale","options","dynamicStatuses","statusOptions","countryChoiceValue","needToPickCountry","updateLicensedProfessionalViewModel","nextState","key","value","option","fieldValidationErrors","FormattedHTMLMessage","updatedStatuses","status","choice","newValue","event"],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type LicensedProfessionalStatus,\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type LicensedProfessionalPersonalInfoResponse,\n type LicensedProfessionalPersonalInfoViewModel,\n type Organization,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport const StepLicensedProfessionalPersonalInfoComponent = ({\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const programConfiguration = useProgramConfiguration();\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as LicensedProfessionalStatus[],\n );\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programConfiguration, countryChoiceValue);\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={statusOptions.find((option) => option.value === viewModel.statuses[0])}\n isErrored={!!fieldValidationErrors.statuses}\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;A,aAgDawC,KAAiD,EAC5D,6BACwD;CACxD,IAAMC,IAAuB7B,EAAwB,GAC/C8B,IAAYC,EAAoB,WAChC,EAAE,6BAA0BA,GAC5BC,IACJD,EAAoB,sBAChBE,IAAqB/B,EAAsB8B,CAAoB,GAE/DE,IAASJ,EAAU,aAAa,OAChCK,IAAUrC,EAAW,GAErB,EAAE,mBAAmBsC,MAAoBhC,EAAyB;EACtE,gBAAgB4B,EAAqB;EACrC,aAAaA,EAAqB;EAClC;CACF,CAAC,GAEKK,IAAgBpB,EACnBmB,KAAmBJ,EAAqB,iBAC3C,GAEMM,IAAqBR,EAAU,eAAe,OAC9CS,IAAoBf,EAAyBK,GAAsBS,CAAkB,GAErFE,KACJ,GACA,MACG;EACH,IAAMC,IAAuDrD,EAC3D0C,IACC,MAAqD;GACpD,EAAOY,KAAeC;EACxB,CACF;EACA,EAAoB,gBAAgBF,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAAd,EAAA,KAAA,CAACJ,GAAD;EACuB;EACrB,MAAMS,EAAqB;EAF7B,UAAA;GAIE,iBAAA,GAAAL,EAAA,IAAA,CAACxB,GAAD;IACuB;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;GAC7C,CAAA;GACAqB,EAAqB,2BAA2BA,EAAqB,iBACpE,iBAAA,GAAAF,EAAA,IAAA,CAAChC,GAAD;IACE,YAAY,CAAC,CAACkC,EAAqB;IACnC,OAAOC,EAAU;IACjB,WAAW,CAAC,CAACe,EAAsB;IACnC,WAAW,MAAa;KAEtB,AADAL,EAAoC,eAAeU,CAAQ,GAC3D7C,EAAqC,eAAe6C,GAAUnB,CAAmB;IACnF;IACA,qBAAqBD,EAAU,iBAAiBA,EAAU,cAAc;IACxE,UAAUtB,EAAwB,aAAa,CAAC,EAAE;GACnD,CAAA,IACC;GAEH2B,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAAR,EAAA,IAAA,CAAChB,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAAgB,EAAA,IAAA,CAAC/B,GAAD;IACuB;IACrB,WAAW,CAAC,CAACiD,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJAL,EAAoC,YAAY;MAC9C,GAAGT,EAAoB,UAAU;MACjC,oBAAoBmB;KACtB,CAAC,GACD7C,EAAqC,sBAAsB6C,GAAUnB,CAAmB;IAC1F;IACW;IACX,UAAUvB,EAAwB,oBAAoB,CAAC,EAAE;GAC1D,CAAA;GAED,iBAAA,GAAAmB,EAAA,IAAA,CAACN,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAAM,EAAA,IAAA,CAACb,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC+B,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAAlB,EAAA,IAAA,CAACX,GAAD;IACE,MAAMf,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA0B,EAAA,IAAA,CAACmB,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
1
+ {"version":3,"file":"StepLicensedProfessionalPersonalInfo-oemUzTIe.js","names":["produce","LicensedProfessionalStatusComponent","LicensedProfessionalOrganization","FirstName","LastName","BirthDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","require_jsx_runtime","useProgramConfiguration","VerificationStepsEnum","hasFailedInstantMatch","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","ExtraMessage","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StatusComponent","LicensedProfessionalOrganizationComponent","import_jsx_runtime","StepLicensedProfessionalPersonalInfoComponent","programConfiguration","viewModel","verificationService","verificationResponse","failedInstantMatch","locale","options","dynamicStatuses","statusOptions","countryChoiceValue","needToPickCountry","updateLicensedProfessionalViewModel","nextState","key","value","option","fieldValidationErrors","FormattedHTMLMessage","updatedStatuses","status","choice","newValue","event"],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type LicensedProfessionalStatus,\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type LicensedProfessionalPersonalInfoResponse,\n type LicensedProfessionalPersonalInfoViewModel,\n type Organization,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport const StepLicensedProfessionalPersonalInfoComponent = ({\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const programConfiguration = useProgramConfiguration();\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as LicensedProfessionalStatus[],\n );\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programConfiguration, countryChoiceValue);\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={statusOptions.find((option) => option.value === viewModel.statuses[0])}\n isErrored={!!fieldValidationErrors.statuses}\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;A,aAgDawC,KAAiD,EAC5D,6BACwD;CACxD,IAAMC,IAAuB7B,EAAwB,GAC/C8B,IAAYC,EAAoB,WAChC,EAAE,6BAA0BA,GAC5BC,IACJD,EAAoB,sBAChBE,IAAqB/B,EAAsB8B,CAAoB,GAE/DE,IAASJ,EAAU,aAAa,OAChCK,IAAUrC,EAAW,GAErB,EAAE,mBAAmBsC,MAAoBhC,EAAyB;EACtE,gBAAgB4B,EAAqB;EACrC,aAAaA,EAAqB;EAClC;CACF,CAAC,GAEKK,IAAgBpB,EACnBmB,KAAmBJ,EAAqB,iBAC3C,GAEMM,IAAqBR,EAAU,eAAe,OAC9CS,IAAoBf,EAAyBK,GAAsBS,CAAkB,GAErFE,KACJ,GACA,MACG;EACH,IAAMC,IAAuDrD,EAC3D0C,IACC,MAAqD;GACpD,EAAOY,KAAeC;EACxB,CACF;EACA,EAAoB,gBAAgBF,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAAd,EAAA,KAAA,CAACJ,GAAD;EACuB;EACrB,MAAMS,EAAqB;EAF7B,UAAA;GAIE,iBAAA,GAAAL,EAAA,IAAA,CAACxB,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAAwB,EAAA,IAAA,CAACL,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,GAAAK,EAAA,IAAA,CAACP,GAAD;IACuB;IACrB,UAAUZ,EAAwB,SAAS,CAAC,EAAE;GAC/C,CAAA;GAED,iBAAA,GAAAmB,EAAA,IAAA,CAACtC,GAAD;IACE,WAAU;IACV,OAAOgD,EAAc,MAAM,MAAWO,EAAO,UAAUd,EAAU,SAAS,EAAE;IAC5E,WAAW,CAAC,CAACe,EAAsB;IACnC,SAASR;I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CAAA,IACC;GAEH2B,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAAR,EAAA,IAAA,CAAChB,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAAgB,EAAA,IAAA,CAAC/B,GAAD;IACuB;IACrB,WAAW,CAAC,CAACiD,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJAL,EAAoC,YAAY;MAC9C,GAAGT,EAAoB,UAAU;MACjC,oBAAoBmB;KACtB,CAAC,GACD7C,EAAqC,sBAAsB6C,GAAUnB,CAAmB;IAC1F;IACW;IACX,UAAUvB,EAAwB,oBAAoB,CAAC,EAAE;GAC1D,CAAA;GAED,iBAAA,GAAAmB,EAAA,IAAA,CAACN,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAAM,EAAA,IAAA,CAACb,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC+B,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAAlB,EAAA,IAAA,CAACX,GAAD;IACE,MAAMf,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA0B,EAAA,IAAA,CAACmB,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
@@ -1,33 +1,33 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.310.0
4
- * BUILD_TIMESTAMP: 1793209392260
5
- * BUILD_DATE: Wed Oct 28 2026 17:43:12 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 18cd51e1767c98bc1025777900967b8509cccd99
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, u as n } from "./i18next-iyVj5hRL.js";
9
9
  import { n as r, s as i, t as a } from "./jsx-runtime-DwmrsRqi.js";
10
- import { o } from "./programThemeGetters-r4JxFjsB.js";
10
+ import { o } from "./programThemeGetters-C8JS1yEr.js";
11
11
  import { S as s, b as c } from "./runtimeTypes-B2AGNJMT.js";
12
- import { i as l } from "./empties-CIHgi5OO.js";
13
- import { E as u, h as d } from "./FormFooterComponent-BaO1YAjx.js";
12
+ import { a as l } from "./empties-BBKd53_B.js";
13
+ import { E as u, h as d } from "./FormFooterComponent-he4l6p39.js";
14
14
  import { n as f } from "../sheerid.js";
15
- import { t as p } from "./useCollectFieldsEndpoint-6IQu9HGj.js";
16
- import { d as m, f as h, i as g, r as _, t as v } from "./stepComponentHelpers-CeJt7-iZ.js";
17
- import { a as y, i as b, n as x, o as S, s as C, t as w } from "./CaptchaComponent-DllbmDK0.js";
18
- import { n as T, t as E } from "./PersonalInfoStepSubmitButton-CzetrMl4.js";
19
- import { i as D } from "./FormSelectChoice-Cj8dBkIe.js";
20
- import { t as O } from "./BirthDateComponent-yEKEOgR4.js";
21
- import { t as k } from "./PostalCodeComponent-Bhq1Okl6.js";
22
- import { t as A } from "./CountryComponentWrapper-DOF9-DPR.js";
23
- import { t as j } from "./City-vvOBoUFQ.js";
24
- import { t as M } from "./AddressComponent-CDrwwuUJ.js";
25
- import { t as N } from "./ChangeLocaleComponent-DPFet-3o.js";
26
- import { t as P } from "./PersonalInfoStepWrapper-Cnse8JAf.js";
27
- import { t as F } from "./countryUtils-C_UVEq-E.js";
28
- import { t as I } from "./StateSelectComponent-D6kAZHc6.js";
29
- import { n as L, t as R } from "./LowIncomeOrganizationComponent-CkCiLDt0.js";
30
- import { t as z } from "./StatusComponent-DdTGrsZl.js";
15
+ import { t as p } from "./useCollectFieldsEndpoint-CXmPHndq.js";
16
+ import { d as m, f as h, i as g, r as _, t as v } from "./stepComponentHelpers-CyqXTDdj.js";
17
+ import { a as y, i as b, n as x, o as S, s as C, t as w } from "./CaptchaComponent-BbQTpmWe.js";
18
+ import { n as T, t as E } from "./PersonalInfoStepSubmitButton-Cz5Ik4p9.js";
19
+ import { i as D } from "./FormSelectChoice-CSGgtlv8.js";
20
+ import { t as O } from "./BirthDateComponent-D7BbQdeu.js";
21
+ import { t as k } from "./PostalCodeComponent-BrHnEVhq.js";
22
+ import { t as A } from "./CountryComponentWrapper-DN99F8hI.js";
23
+ import { t as j } from "./City-D4to8D65.js";
24
+ import { t as M } from "./AddressComponent-DeEEaX9k.js";
25
+ import { t as N } from "./ChangeLocaleComponent-BOFrHFyG.js";
26
+ import { t as P } from "./PersonalInfoStepWrapper-C4g9QHwO.js";
27
+ import { t as F } from "./countryUtils-D1471i0b.js";
28
+ import { t as I } from "./StateSelectComponent-CQqOuxkD.js";
29
+ import { n as L, t as R } from "./LowIncomeOrganizationComponent-BCi1j6_X.js";
30
+ import { t as z } from "./StatusComponent-9j39XhzT.js";
31
31
  //#region src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx
32
32
  var B = /* @__PURE__ */ e(i(), 1), V = a(), H = ({ verificationService: e }) => {
33
33
  let i = o(), { viewModel: a } = e, H = n();
@@ -1 +1 @@
1
- {"version":3,"file":"StepLowIncomePersonalInfo-lxsM0k2r.js","names":["produce","LowIncomeOrganization","FirstName","LastName","BirthDate","Email","PhoneNumber","MarketConsentWrapper","__toESM","fn","getOptions","FormattedHTMLMessage","require_react","require_jsx_runtime","logger","VerificationStepsEnum","blankOrganization","isLowIncomeVM","hasFailedInstantMatch","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","orgToOption","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","CityComponent","AddressComponent","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StateSelectComponent","EBTCardNumberComponent","LowIncomeOrganizationComponent","StatusComponent","import_react","import_jsx_runtime","StepLowIncomePersonalInfoComponent","programConfiguration","useProgramConfiguration","verificationService","options","viewModel","verificationResponse","failedInstantMatch","dynamicStatuses","countryChoiceValue","needToPickCountry","statusOptions","locale","selectedStatus","isSelectedStatusSnapBenefits","updateLowIncomeViewModel","nextState","key","value","remaining","id","option","fieldValidationErrors","updatedStatuses","status","newValue","choice","stateValue","stateChoice","event"],"sources":["../../src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type FormSelectChoice,\n type LowIncomePersonalInfoResponse,\n type LowIncomePersonalInfoViewModel,\n type LowIncomeStatus,\n type Organization,\n type State,\n type VerificationService,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n orgToOption,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { StatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { blankOrganization } from \"../../lib/types/empties\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\n\nimport { isLowIncomeVM } from \"./lowIncomeTypes\";\n\ninterface StepLowIncomePersonalInfoComponentProps {\n verificationService: VerificationService<LowIncomePersonalInfoViewModel>;\n}\nexport const StepLowIncomePersonalInfoComponent = ({\n verificationService,\n}: StepLowIncomePersonalInfoComponentProps) => {\n const programConfiguration = useProgramConfiguration();\n const { viewModel } = verificationService;\n const options = getOptions();\n\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return null;\n }\n\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LowIncomePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programConfiguration, countryChoiceValue);\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as LowIncomeStatus[],\n );\n\n const locale = viewModel.localeChoice.value;\n\n const selectedStatus = viewModel.statuses[0] ? viewModel.statuses[0] : undefined;\n const isSelectedStatusSnapBenefits = selectedStatus === \"SNAP_BENEFITS\";\n const updateLowIncomeViewModel = (key: keyof LowIncomePersonalInfoViewModel, value: any) => {\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return;\n }\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n // SNAP recipients get the EBT card number field instead of an organization\n // picker, so organization cannot be validated for them. Preserve entries\n // other fields own, and drop ours again once the picker comes back.\n // A partial update cannot do this: it deep merges, which concatenates\n // arrays rather than replacing them, so entries could never be removed.\n const remaining = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => id !== \"organization\",\n );\n updateLowIncomeViewModel(\n \"fieldsToSkipValidation\",\n isSelectedStatusSnapBenefits ? [...remaining, \"organization\"] : remaining,\n );\n }, [isSelectedStatusSnapBenefits]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"low-income\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <StatusComponent\n segmentId=\"low-income\"\n value={statusOptions.find((option) => option.value === viewModel.statuses[0])}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n options={statusOptions}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice<LowIncomeStatus>) => {\n const updatedStatuses = status ? [status.value as LowIncomeStatus] : [];\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n if (viewModel.statuses[0] !== updatedStatuses[0]) {\n draft.organization = blankOrganization.organization; // Clear out the org b/c they're of different kind\n }\n draft.statuses = updatedStatuses;\n },\n );\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? status.value : \"\",\n verificationService,\n );\n }}\n />\n {selectedStatus === \"SNAP_BENEFITS\" && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n {(selectedStatus === \"OTHER_GOVERNMENT_ASSISTANCE\" ||\n selectedStatus === \"COMMUNITY_ELIGIBILITY_PROVISION\") && (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(verificationService.viewModel.organization)}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n )}\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n value={viewModel.address1}\n isRequired\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n <div className=\"sid-address-extra-fields sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateLowIncomeViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLowIncomePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;A,4CA2DaiD,KAAsC,EACjD,6BAC6C;CAC7C,IAAMC,IAAuBC,EAAwB,GAC/C,EAAE,iBAAcC,GAChBC,IAAU3C,EAAW;CAE3B,IAAI,CAACO,EAAcqC,CAAS,GAE1B,OADAxC,EAAO,MAAM,yCAAyC,GAC/C;CAGT,IAAM,EAAE,6BAA0BsC,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBtC,EAAsBqC,CAAoB,GAE/D,EAAE,mBAAmBE,MAAoBrC,EAAyB;EACtE,gBAAgBmC,EAAqB;EACrC,aAAaA,EAAqB;EAClC;CACF,CAAC,GAEKG,IAAqBJ,EAAU,eAAe,OAC9CK,IAAoBjB,EAAyBQ,GAAsBQ,CAAkB,GAErFE,IAAgB1B,EACnBuB,KAAmBF,EAAqB,iBAC3C,GAEMM,IAASP,EAAU,aAAa,OAEhCQ,IAAiBR,EAAU,SAAS,KAAKA,EAAU,SAAS,KAAK,KAAA,GACjES,IAA+BD,MAAmB,iBAClDE,KAA4B,GAA2C,MAAe;EAC1F,IAAI,CAAC/C,EAAcqC,CAAS,GAAG;GAC7B,EAAO,MAAM,yCAAyC;GACtD;EACF;EACA,IAAMW,IAA4CjE,EAChDsD,IACC,MAA0C;GAEzC,EAAOY,KAAeC;EACxB,CACF;EACA,EAAoB,gBAAgBF,CAAS;CAC/C;CAiBA,OAfAlB,EAAM,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AqC,sBAAsBqD,GAAUtB,CAAmB;IAC1F;IACW;IACX,UAAU3B,EAAwB,oBAAoB,CAAC,EAAE;GAC1D,CAAA;GACD,iBAAA,GAAAuB,EAAA,IAAA,CAACjB,GAAD;IACuB;IACrB,WAAW,CAAC,CAACwC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAAvB,EAAA,IAAA,CAACf,GAAD;IACE,MAAMlB,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAAiC,EAAA,IAAA,CAACrC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
1
+ {"version":3,"file":"StepLowIncomePersonalInfo-B-DGFkrI.js","names":["produce","LowIncomeOrganization","FirstName","LastName","BirthDate","Email","PhoneNumber","MarketConsentWrapper","__toESM","fn","getOptions","FormattedHTMLMessage","require_react","require_jsx_runtime","logger","VerificationStepsEnum","blankOrganization","isLowIncomeVM","hasFailedInstantMatch","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","orgToOption","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","CityComponent","AddressComponent","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StateSelectComponent","EBTCardNumberComponent","LowIncomeOrganizationComponent","StatusComponent","import_react","import_jsx_runtime","StepLowIncomePersonalInfoComponent","programConfiguration","useProgramConfiguration","verificationService","options","viewModel","verificationResponse","failedInstantMatch","dynamicStatuses","countryChoiceValue","needToPickCountry","statusOptions","locale","selectedStatus","isSelectedStatusSnapBenefits","updateLowIncomeViewModel","nextState","key","value","remaining","id","option","fieldValidationErrors","updatedStatuses","status","newValue","choice","stateValue","stateChoice","event"],"sources":["../../src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type FormSelectChoice,\n type LowIncomePersonalInfoResponse,\n type LowIncomePersonalInfoViewModel,\n type LowIncomeStatus,\n type Organization,\n type State,\n type VerificationService,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n orgToOption,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { StatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { blankOrganization } from \"../../lib/types/empties\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\n\nimport { isLowIncomeVM } from \"./lowIncomeTypes\";\n\ninterface StepLowIncomePersonalInfoComponentProps {\n verificationService: VerificationService<LowIncomePersonalInfoViewModel>;\n}\nexport const StepLowIncomePersonalInfoComponent = ({\n verificationService,\n}: StepLowIncomePersonalInfoComponentProps) => {\n const programConfiguration = useProgramConfiguration();\n const { viewModel } = verificationService;\n const options = getOptions();\n\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return null;\n }\n\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LowIncomePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programConfiguration, countryChoiceValue);\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as LowIncomeStatus[],\n );\n\n const locale = viewModel.localeChoice.value;\n\n const selectedStatus = viewModel.statuses[0] ? viewModel.statuses[0] : undefined;\n const isSelectedStatusSnapBenefits = selectedStatus === \"SNAP_BENEFITS\";\n const updateLowIncomeViewModel = (key: keyof LowIncomePersonalInfoViewModel, value: any) => {\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return;\n }\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n // SNAP recipients get the EBT card number field instead of an organization\n // picker, so organization cannot be validated for them. Preserve entries\n // other fields own, and drop ours again once the picker comes back.\n // A partial update cannot do this: it deep merges, which concatenates\n // arrays rather than replacing them, so entries could never be removed.\n const remaining = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => id !== \"organization\",\n );\n updateLowIncomeViewModel(\n \"fieldsToSkipValidation\",\n isSelectedStatusSnapBenefits ? [...remaining, \"organization\"] : remaining,\n );\n }, [isSelectedStatusSnapBenefits]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"low-income\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <StatusComponent\n segmentId=\"low-income\"\n value={statusOptions.find((option) => option.value === viewModel.statuses[0])}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n options={statusOptions}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice<LowIncomeStatus>) => {\n const updatedStatuses = status ? [status.value as LowIncomeStatus] : [];\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n if (viewModel.statuses[0] !== updatedStatuses[0]) {\n draft.organization = blankOrganization.organization; // Clear out the org b/c they're of different kind\n }\n draft.statuses = updatedStatuses;\n },\n );\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? status.value : \"\",\n verificationService,\n );\n }}\n />\n {selectedStatus === \"SNAP_BENEFITS\" && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n {(selectedStatus === \"OTHER_GOVERNMENT_ASSISTANCE\" ||\n selectedStatus === \"COMMUNITY_ELIGIBILITY_PROVISION\") && (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(verificationService.viewModel.organization)}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n )}\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n value={viewModel.address1}\n isRequired\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n <div className=\"sid-address-extra-fields sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateLowIncomeViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLowIncomePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButt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AA,GAAAiC,EAAA,IAAA,CAACrC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
@@ -4,44 +4,44 @@
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.310.0
8
- * BUILD_TIMESTAMP: 1793209397347
9
- * BUILD_DATE: Wed Oct 28 2026 17:43:17 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 18cd51e1767c98bc1025777900967b8509cccd99
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, s as n } from "./intl-BK4prEGw.js";
13
13
  import { S as r, b as i } from "./runtimeTypes-B2AGNJMT.js";
14
14
  import { n as a, s as o, t as s } from "./jsx-runtime-BUMIo32n.js";
15
- import { o as c } from "./programThemeGetters-CGPGlO7Q.js";
16
- import { i as l } from "./empties-CT4nwqif.js";
17
- import { p as u, x as d } from "./FormFooterComponent-CHMM9xXM.js";
15
+ import { o as c } from "./programThemeGetters-DXn-alcY.js";
16
+ import { a as l } from "./empties-DcQjcgEV.js";
17
+ import { C as u, m as d } from "./FormFooterComponent-Brab2xcp.js";
18
18
  import { t as f } from "../_mysheerid-preview.js";
19
- import { t as p } from "./useCollectFieldsEndpoint-NVMDQMeW.js";
20
- import { d as m, f as h, i as g, r as _, t as v } from "./stepComponentHelpers-Djs_ph7X.js";
21
- import { a as y, i as b, n as x, o as S, s as C, t as w } from "./CaptchaComponent-DD3afqj9.js";
22
- import { n as T, t as E } from "./PersonalInfoStepSubmitButton-XKbJpeBB.js";
23
- import { i as D } from "./FormSelectChoice-CHdts_po.js";
24
- import { t as O } from "./BirthDateComponent-BC0V70wK.js";
25
- import { t as k } from "./PostalCodeComponent-DzKFsVmZ.js";
26
- import { t as A } from "./CountryComponentWrapper-nEV1lfX2.js";
27
- import { t as j } from "./City-BmHGcOfW.js";
28
- import { t as M } from "./AddressComponent-CA5Jlokr.js";
29
- import { t as N } from "./ChangeLocaleComponent-CZIXysUs.js";
30
- import { t as P } from "./PersonalInfoStepWrapper-C72GphtU.js";
31
- import { t as F } from "./countryUtils-y0ivUOdj.js";
32
- import { t as I } from "./StateSelectComponent-2j4YT_bB.js";
33
- import { n as L, t as R } from "./LowIncomeOrganizationComponent-BUUFcO8z.js";
34
- import { t as z } from "./StatusComponent-CK6ZFKRm.js";
19
+ import { t as p } from "./useCollectFieldsEndpoint-84_Wz8sd.js";
20
+ import { d as m, f as h, i as g, r as _, t as v } from "./stepComponentHelpers-Dztw-HNP.js";
21
+ import { a as y, i as b, n as x, o as S, s as C, t as w } from "./CaptchaComponent-DMFt9cDO.js";
22
+ import { n as T, t as E } from "./PersonalInfoStepSubmitButton-DJ7FqfAK.js";
23
+ import { i as D } from "./FormSelectChoice-D5wZk7cJ.js";
24
+ import { t as O } from "./BirthDateComponent-Dwfl6tYR.js";
25
+ import { t as k } from "./PostalCodeComponent-B1MM4Jgt.js";
26
+ import { t as A } from "./CountryComponentWrapper-DNNtLmuf.js";
27
+ import { t as j } from "./City-D6VlEIOj.js";
28
+ import { t as M } from "./AddressComponent-BoIXEkQ1.js";
29
+ import { t as N } from "./ChangeLocaleComponent-AKQ7gIkP.js";
30
+ import { t as P } from "./PersonalInfoStepWrapper-Fjv1zouY.js";
31
+ import { t as F } from "./countryUtils-KL2KBMOv.js";
32
+ import { t as I } from "./StateSelectComponent-DtQwQzeh.js";
33
+ import { n as L, t as R } from "./LowIncomeOrganizationComponent-CX8q3MDL.js";
34
+ import { t as z } from "./StatusComponent-rLMrqvfx.js";
35
35
  //#region src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx
36
36
  var B = /* @__PURE__ */ e(o(), 1), V = s(), H = ({ verificationService: e }) => {
37
37
  let o = c(), { viewModel: s } = e, H = n();
38
- if (!d(s)) return r.error("Expected LowIncomePersonalInfoViewModel"), null;
39
- let { fieldValidationErrors: U } = e, W = e.verificationResponse, G = u(W), { availableStatuses: K } = p({
38
+ if (!u(s)) return r.error("Expected LowIncomePersonalInfoViewModel"), null;
39
+ let { fieldValidationErrors: U } = e, W = e.verificationResponse, G = d(W), { availableStatuses: K } = p({
40
40
  verificationId: W.verificationId,
41
41
  currentStep: W.currentStep,
42
42
  viewModel: s
43
43
  }), q = s.countryChoice?.value, J = F(o, q), Y = D(K ?? W.availableStatuses), X = s.localeChoice.value, Z = s.statuses[0] ? s.statuses[0] : void 0, Q = Z === "SNAP_BENEFITS", $ = (n, i) => {
44
- if (!d(s)) {
44
+ if (!u(s)) {
45
45
  r.error("Expected LowIncomePersonalInfoViewModel");
46
46
  return;
47
47
  }