@sheerid/jslib 2.232.0 → 2.233.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 (253) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +25 -25
  3. package/chunk/{ActiveDutyStartDateComponent-BNwC2c3Y.js → ActiveDutyStartDateComponent-Bva1jSuC.js} +6 -6
  4. package/chunk/{ActiveDutyStartDateComponent-BNwC2c3Y.js.map → ActiveDutyStartDateComponent-Bva1jSuC.js.map} +1 -1
  5. package/chunk/{ActiveDutyStartDateComponent-CF9c-0bL.js → ActiveDutyStartDateComponent-DjLuLM5N.js} +6 -6
  6. package/chunk/{ActiveDutyStartDateComponent-CF9c-0bL.js.map → ActiveDutyStartDateComponent-DjLuLM5N.js.map} +1 -1
  7. package/chunk/AddressComponent-AiyIPiCz.js +4 -4
  8. package/chunk/AddressComponent-DV2Wsw6k.js +4 -4
  9. package/chunk/{CaptchaComponent-CnWyxiTy.js → CaptchaComponent-Blq_Is9l.js} +471 -470
  10. package/chunk/CaptchaComponent-Blq_Is9l.js.map +1 -0
  11. package/chunk/{CaptchaComponent-SmUa6m52.js → CaptchaComponent-Ch8H0h-Q.js} +471 -470
  12. package/chunk/CaptchaComponent-Ch8H0h-Q.js.map +1 -0
  13. package/chunk/ChangeLocaleComponent-Cu2DR-Q3.js +4 -4
  14. package/chunk/ChangeLocaleComponent-DUnfgQuX.js +4 -4
  15. package/chunk/City-BmrJpnS6.js +4 -4
  16. package/chunk/City-yVVnZQTP.js +4 -4
  17. package/chunk/{CollegeNameComponent-DtKPZHb-.js → CollegeNameComponent-DE9SHF1U.js} +5 -5
  18. package/chunk/{CollegeNameComponent-DaTimEqC.js.map → CollegeNameComponent-DE9SHF1U.js.map} +1 -1
  19. package/chunk/{CollegeNameComponent-DaTimEqC.js → CollegeNameComponent-Ds6XzZ97.js} +5 -5
  20. package/chunk/{CollegeNameComponent-DtKPZHb-.js.map → CollegeNameComponent-Ds6XzZ97.js.map} +1 -1
  21. package/chunk/CopyToClipboardComponent-9hyfSMC0.js +4 -4
  22. package/chunk/CopyToClipboardComponent-H3bJGcOM.js +4 -4
  23. package/chunk/{CountryComponentWrapper-Ceq-eink.js → CountryComponentWrapper-Bm0vWZt6.js} +5 -5
  24. package/chunk/{CountryComponentWrapper--2UQ7mXP.js.map → CountryComponentWrapper-Bm0vWZt6.js.map} +1 -1
  25. package/chunk/{CountryComponentWrapper--2UQ7mXP.js → CountryComponentWrapper-Cd8jQ2X0.js} +5 -5
  26. package/chunk/{CountryComponentWrapper-Ceq-eink.js.map → CountryComponentWrapper-Cd8jQ2X0.js.map} +1 -1
  27. package/chunk/DriverLicenseNumberComponent-D9cakdvU.js +4 -4
  28. package/chunk/DriverLicenseNumberComponent-ziLNYB8e.js +4 -4
  29. package/chunk/{EBTCardNumberComponent-oYQJ_tP7.js → EBTCardNumberComponent-B0FU-ZTo.js} +6 -6
  30. package/chunk/{EBTCardNumberComponent-B1kv4R4G.js.map → EBTCardNumberComponent-B0FU-ZTo.js.map} +1 -1
  31. package/chunk/{EBTCardNumberComponent-B1kv4R4G.js → EBTCardNumberComponent-CIs3mn52.js} +6 -6
  32. package/chunk/{EBTCardNumberComponent-oYQJ_tP7.js.map → EBTCardNumberComponent-CIs3mn52.js.map} +1 -1
  33. package/chunk/EmailLoopPending-In0FH-Ap.js +4 -4
  34. package/chunk/EmailLoopPending-lxRF0bx8.js +4 -4
  35. package/chunk/{FirstResponderOrganizationComponent-fPxZFdpO.js → FirstResponderOrganizationComponent-BpreqGNN.js} +5 -5
  36. package/chunk/{FirstResponderOrganizationComponent-Bru1a0U7.js.map → FirstResponderOrganizationComponent-BpreqGNN.js.map} +1 -1
  37. package/chunk/{FirstResponderOrganizationComponent-Bru1a0U7.js → FirstResponderOrganizationComponent-pU8-QJb-.js} +5 -5
  38. package/chunk/{FirstResponderOrganizationComponent-fPxZFdpO.js.map → FirstResponderOrganizationComponent-pU8-QJb-.js.map} +1 -1
  39. package/chunk/{FormFieldInputSelect-o7QZaYhS.js → FormFieldInputSelect-CqYEnYU4.js} +5 -5
  40. package/chunk/{FormFieldInputSelect-CjWY_ush.js.map → FormFieldInputSelect-CqYEnYU4.js.map} +1 -1
  41. package/chunk/{FormFieldInputSelect-CjWY_ush.js → FormFieldInputSelect-dcrJSfDS.js} +5 -5
  42. package/chunk/{FormFieldInputSelect-o7QZaYhS.js.map → FormFieldInputSelect-dcrJSfDS.js.map} +1 -1
  43. package/chunk/FormFieldLayout-DDEEmlGC.js +4 -4
  44. package/chunk/FormFieldLayout-DEVPpEyA.js +4 -4
  45. package/chunk/FormFieldText-CJ-GVpZE.js +4 -4
  46. package/chunk/FormFieldText-CaWtYVur.js +4 -4
  47. package/chunk/{FormFieldTypeahead-C6eS7yJg.js → FormFieldTypeahead-8We95dMu.js} +5 -5
  48. package/chunk/{FormFieldTypeahead-C6eS7yJg.js.map → FormFieldTypeahead-8We95dMu.js.map} +1 -1
  49. package/chunk/{FormFieldTypeahead-CyKKVK89.js → FormFieldTypeahead-D10k5Acd.js} +5 -5
  50. package/chunk/{FormFieldTypeahead-CyKKVK89.js.map → FormFieldTypeahead-D10k5Acd.js.map} +1 -1
  51. package/chunk/{FormSelectChoice-C-rIlDKl.js → FormSelectChoice-BvS7u8GG.js} +11 -11
  52. package/chunk/{FormSelectChoice-BahCx4wG.js.map → FormSelectChoice-BvS7u8GG.js.map} +1 -1
  53. package/chunk/{FormSelectChoice-BahCx4wG.js → FormSelectChoice-T5Js-Kan.js} +11 -11
  54. package/chunk/{FormSelectChoice-C-rIlDKl.js.map → FormSelectChoice-T5Js-Kan.js.map} +1 -1
  55. package/chunk/InputText-CCNbZmMe.js +4 -4
  56. package/chunk/InputText-PEiatRRJ.js +4 -4
  57. package/chunk/{LicensedProfessionalOrganizationComponent-CnR_qF3r.js → LicensedProfessionalOrganizationComponent-CKUKnIOk.js} +5 -5
  58. package/chunk/{LicensedProfessionalOrganizationComponent-C5pc7hVJ.js.map → LicensedProfessionalOrganizationComponent-CKUKnIOk.js.map} +1 -1
  59. package/chunk/{LicensedProfessionalOrganizationComponent-C5pc7hVJ.js → LicensedProfessionalOrganizationComponent-DNaPYuVS.js} +5 -5
  60. package/chunk/{LicensedProfessionalOrganizationComponent-CnR_qF3r.js.map → LicensedProfessionalOrganizationComponent-DNaPYuVS.js.map} +1 -1
  61. package/chunk/{MedicalProfessionalOrganizationComponent-DBf6V49M.js → MedicalProfessionalOrganizationComponent-Cvx-Z96q.js} +5 -5
  62. package/chunk/{MedicalProfessionalOrganizationComponent-CXHX25GN.js.map → MedicalProfessionalOrganizationComponent-Cvx-Z96q.js.map} +1 -1
  63. package/chunk/{MedicalProfessionalOrganizationComponent-CXHX25GN.js → MedicalProfessionalOrganizationComponent-DRiEzR_D.js} +5 -5
  64. package/chunk/{MedicalProfessionalOrganizationComponent-DBf6V49M.js.map → MedicalProfessionalOrganizationComponent-DRiEzR_D.js.map} +1 -1
  65. package/chunk/MemberIdComponent-C8mVSo9m.js +4 -4
  66. package/chunk/MemberIdComponent-oanWSvQh.js +4 -4
  67. package/chunk/{MembershipOrganizationComponent-CN6_d_Fk.js → MembershipOrganizationComponent-CwkwDdwd.js} +5 -5
  68. package/chunk/{MembershipOrganizationComponent-CN6_d_Fk.js.map → MembershipOrganizationComponent-CwkwDdwd.js.map} +1 -1
  69. package/chunk/{MembershipOrganizationComponent-yu-UNXIK.js → MembershipOrganizationComponent-DTCpEuqR.js} +5 -5
  70. package/chunk/{MembershipOrganizationComponent-yu-UNXIK.js.map → MembershipOrganizationComponent-DTCpEuqR.js.map} +1 -1
  71. package/chunk/Onfido-BG8cDEVW.js +4 -4
  72. package/chunk/PersonalInfoStepSubmitButton-j44RdZDq.js +4 -4
  73. package/chunk/PersonalInfoStepSubmitButton-v_kWLmEw.js +4 -4
  74. package/chunk/PersonalInfoStepWrapper-BOBNCgik.js +4 -4
  75. package/chunk/PersonalInfoStepWrapper-PV06WMKL.js +4 -4
  76. package/chunk/PostalCodeComponent-DrCcV90W.js +4 -4
  77. package/chunk/PostalCodeComponent-KXVfZkLx.js +4 -4
  78. package/chunk/SSN-B_z2R4Bx.js +4 -4
  79. package/chunk/SSN-Hb1lTx8A.js +4 -4
  80. package/chunk/{StateSelectComponent-CIpB-Rh1.js → StateSelectComponent-B8ImFN5o.js} +5 -5
  81. package/chunk/{StateSelectComponent-CChSqKXz.js.map → StateSelectComponent-B8ImFN5o.js.map} +1 -1
  82. package/chunk/{StateSelectComponent-CChSqKXz.js → StateSelectComponent-BJvkEwls.js} +5 -5
  83. package/chunk/{StateSelectComponent-CIpB-Rh1.js.map → StateSelectComponent-BJvkEwls.js.map} +1 -1
  84. package/chunk/{StatusComponent-pmuIhuXi.js → StatusComponent-C3iIOm56.js} +5 -5
  85. package/chunk/{StatusComponent-C6J1B7Tl.js.map → StatusComponent-C3iIOm56.js.map} +1 -1
  86. package/chunk/{StatusComponent-C6J1B7Tl.js → StatusComponent-DBpJ4nvX.js} +5 -5
  87. package/chunk/{StatusComponent-pmuIhuXi.js.map → StatusComponent-DBpJ4nvX.js.map} +1 -1
  88. package/chunk/{StepCard-CIfaQVu-.js → StepCard-CRczNQ4p.js} +6 -6
  89. package/chunk/{StepCard-CIfaQVu-.js.map → StepCard-CRczNQ4p.js.map} +1 -1
  90. package/chunk/{StepCard-dcwCtPrW.js → StepCard-DFC9lqEv.js} +6 -6
  91. package/chunk/{StepCard-dcwCtPrW.js.map → StepCard-DFC9lqEv.js.map} +1 -1
  92. package/chunk/{StepCollectMilitaryStatusComponent-7aKgQ9Sj.js → StepCollectMilitaryStatusComponent-C-p6hVeK.js} +9 -9
  93. package/chunk/{StepCollectMilitaryStatusComponent-7aKgQ9Sj.js.map → StepCollectMilitaryStatusComponent-C-p6hVeK.js.map} +1 -1
  94. package/chunk/{StepCollectMilitaryStatusComponent-BRimaaXv.js → StepCollectMilitaryStatusComponent-DSzS9kou.js} +9 -9
  95. package/chunk/{StepCollectMilitaryStatusComponent-BRimaaXv.js.map → StepCollectMilitaryStatusComponent-DSzS9kou.js.map} +1 -1
  96. package/chunk/{StepDriverLicensePersonalInfoComponent-BwVtnrmJ.js → StepDriverLicensePersonalInfoComponent-COgZtQdB.js} +6 -6
  97. package/chunk/{StepDriverLicensePersonalInfoComponent-2TPYKvF4.js.map → StepDriverLicensePersonalInfoComponent-COgZtQdB.js.map} +1 -1
  98. package/chunk/{StepDriverLicensePersonalInfoComponent-2TPYKvF4.js → StepDriverLicensePersonalInfoComponent-DXvRC1J2.js} +6 -6
  99. package/chunk/{StepDriverLicensePersonalInfoComponent-BwVtnrmJ.js.map → StepDriverLicensePersonalInfoComponent-DXvRC1J2.js.map} +1 -1
  100. package/chunk/{StepGeneralIdentityPersonalInfoComponent-B_GAU5ZU.js → StepGeneralIdentityPersonalInfoComponent-BAwhyp5h.js} +7 -7
  101. package/chunk/{StepGeneralIdentityPersonalInfoComponent-B_GAU5ZU.js.map → StepGeneralIdentityPersonalInfoComponent-BAwhyp5h.js.map} +1 -1
  102. package/chunk/{StepGeneralIdentityPersonalInfoComponent-D51YIuCd.js → StepGeneralIdentityPersonalInfoComponent-DDsA_aGz.js} +7 -7
  103. package/chunk/{StepGeneralIdentityPersonalInfoComponent-D51YIuCd.js.map → StepGeneralIdentityPersonalInfoComponent-DDsA_aGz.js.map} +1 -1
  104. package/chunk/{StepHybridIdentityPersonalInfoComponent-kap6IZbx.js → StepHybridIdentityPersonalInfoComponent-BLS7aKEN.js} +7 -7
  105. package/chunk/{StepHybridIdentityPersonalInfoComponent-kap6IZbx.js.map → StepHybridIdentityPersonalInfoComponent-BLS7aKEN.js.map} +1 -1
  106. package/chunk/{StepHybridIdentityPersonalInfoComponent-zAjPWGNG.js → StepHybridIdentityPersonalInfoComponent-DxYqr80H.js} +7 -7
  107. package/chunk/{StepHybridIdentityPersonalInfoComponent-zAjPWGNG.js.map → StepHybridIdentityPersonalInfoComponent-DxYqr80H.js.map} +1 -1
  108. package/chunk/{StepIDCheckLoopOnfido-djTS20UT.js → StepIDCheckLoopOnfido-B9YZcPBj.js} +6 -6
  109. package/chunk/{StepIDCheckLoopOnfido-Sg4a19wV.js.map → StepIDCheckLoopOnfido-B9YZcPBj.js.map} +1 -1
  110. package/chunk/{StepIDCheckLoopOnfido-Sg4a19wV.js → StepIDCheckLoopOnfido-DGrckStv.js} +6 -6
  111. package/chunk/{StepIDCheckLoopOnfido-djTS20UT.js.map → StepIDCheckLoopOnfido-DGrckStv.js.map} +1 -1
  112. package/chunk/{StepIDCheckLoopRegula-B5I-ojjy.js → StepIDCheckLoopRegula-DjF8ZDnp.js} +5 -5
  113. package/chunk/{StepIDCheckLoopRegula-B5I-ojjy.js.map → StepIDCheckLoopRegula-DjF8ZDnp.js.map} +1 -1
  114. package/chunk/{StepIDCheckLoopRegula-DZA5G1Z6.js → StepIDCheckLoopRegula-tRWeYsEe.js} +5 -5
  115. package/chunk/{StepIDCheckLoopRegula-DZA5G1Z6.js.map → StepIDCheckLoopRegula-tRWeYsEe.js.map} +1 -1
  116. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Bieu_7kd.js → StepInactiveMilitaryPersonalInfoComponent-DJAAzlTP.js} +10 -10
  117. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Bieu_7kd.js.map → StepInactiveMilitaryPersonalInfoComponent-DJAAzlTP.js.map} +1 -1
  118. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Czd3ecq6.js → StepInactiveMilitaryPersonalInfoComponent-dNU8MQlk.js} +10 -10
  119. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Czd3ecq6.js.map → StepInactiveMilitaryPersonalInfoComponent-dNU8MQlk.js.map} +1 -1
  120. package/chunk/{TeacherSchoolComponent-Bf3ZhJ_c.js → TeacherSchoolComponent-CrNBGA88.js} +5 -5
  121. package/chunk/{TeacherSchoolComponent-BSHPjiwQ.js.map → TeacherSchoolComponent-CrNBGA88.js.map} +1 -1
  122. package/chunk/{TeacherSchoolComponent-BSHPjiwQ.js → TeacherSchoolComponent-D7tRXy1z.js} +5 -5
  123. package/chunk/{TeacherSchoolComponent-Bf3ZhJ_c.js.map → TeacherSchoolComponent-D7tRXy1z.js.map} +1 -1
  124. package/chunk/ar-DRRl0F7-.js +4 -4
  125. package/chunk/bg-F0WsRCx8.js +4 -4
  126. package/chunk/bn-IN-CMjQj55J.js +4 -4
  127. package/chunk/cs-fNk_NoQI.js +4 -4
  128. package/chunk/da-KMILteCO.js +4 -4
  129. package/chunk/de-CWVNPgGa.js +4 -4
  130. package/chunk/downshift.esm-CtrbqQGL.js +4 -4
  131. package/chunk/downshift.esm-huKBwB2d.js +4 -4
  132. package/chunk/el-Cwv4peel.js +4 -4
  133. package/chunk/en-GB-Dqonxi7-.js +4 -4
  134. package/chunk/es-ES-C4H8ciVZ.js +4 -4
  135. package/chunk/es-hn_UHPBI.js +4 -4
  136. package/chunk/fi-CYcXXvjq.js +4 -4
  137. package/chunk/fr-CA-CGAQ-6AP.js +4 -4
  138. package/chunk/fr-D_IYCyUP.js +4 -4
  139. package/chunk/ga-45LsHAEB.js +4 -4
  140. package/chunk/hi-IN-ChuePzRc.js +4 -4
  141. package/chunk/hr-CX75fSnP.js +4 -4
  142. package/chunk/hu-BaLNR_Fx.js +4 -4
  143. package/chunk/id-BuJILOHQ.js +4 -4
  144. package/chunk/{index-brtM2eoI.js → index-8Pv9mAlU.js} +8 -8
  145. package/chunk/{index-brtM2eoI.js.map → index-8Pv9mAlU.js.map} +1 -1
  146. package/chunk/index-B0SBEWOf.js +4 -4
  147. package/chunk/index-B4FcNhzB.js +4 -4
  148. package/chunk/index-BA3bE-f-.js +4 -4
  149. package/chunk/{index-D62LImgf.js → index-BG38FvB_.js} +8 -8
  150. package/chunk/{index-CfHHbJNm.js.map → index-BG38FvB_.js.map} +1 -1
  151. package/chunk/index-BZ1nv-sB.js +4 -4
  152. package/chunk/index-BbOCWcRK.js +4 -4
  153. package/chunk/{index-DGCqI3ez.js → index-BgDTx15o.js} +9 -9
  154. package/chunk/{index-Ccp2Exqo.js.map → index-BgDTx15o.js.map} +1 -1
  155. package/chunk/{index-Blxi9-p3.js → index-BhTi8pBC.js} +5 -5
  156. package/chunk/{index-Blxi9-p3.js.map → index-BhTi8pBC.js.map} +1 -1
  157. package/chunk/index-Bn00xQJF.js +4 -4
  158. package/chunk/{index-DsIG7oZ5.js → index-Bo42CUOf.js} +17 -17
  159. package/chunk/{index-CO75J-sD.js.map → index-Bo42CUOf.js.map} +1 -1
  160. package/chunk/{index-CMYxhs0t.js → index-BqorOxSL.js} +9 -9
  161. package/chunk/{index-CMYxhs0t.js.map → index-BqorOxSL.js.map} +1 -1
  162. package/chunk/index-Brpm5gN6.js +4 -4
  163. package/chunk/{index-CTjvQpKK.js → index-C3qLWNqJ.js} +7 -7
  164. package/chunk/{index-CTjvQpKK.js.map → index-C3qLWNqJ.js.map} +1 -1
  165. package/chunk/index-CHDBBfsg.js +4 -4
  166. package/chunk/{index-BDfHyxH2.js → index-COkTEkcG.js} +9 -9
  167. package/chunk/{index-BDfHyxH2.js.map → index-COkTEkcG.js.map} +1 -1
  168. package/chunk/index-CR19uOwz.js +4 -4
  169. package/chunk/index-CTGY1a4m.js +4 -4
  170. package/chunk/index-CaBrLsal.js +4 -4
  171. package/chunk/{index-B6DSPaeb.js → index-CaUGE60w.js} +9 -9
  172. package/chunk/{index-B6DSPaeb.js.map → index-CaUGE60w.js.map} +1 -1
  173. package/chunk/{index-BKpiJJJ9.js → index-CnoZPKNq.js} +9 -9
  174. package/chunk/{index-BKpiJJJ9.js.map → index-CnoZPKNq.js.map} +1 -1
  175. package/chunk/index-CrPc1exn.js +4 -4
  176. package/chunk/{index-4SoX7nBO.js → index-Ctt3OBcG.js} +8 -8
  177. package/chunk/{index-DM6d_MOp.js.map → index-Ctt3OBcG.js.map} +1 -1
  178. package/chunk/{index-CfHHbJNm.js → index-CuIn9psY.js} +8 -8
  179. package/chunk/{index-D62LImgf.js.map → index-CuIn9psY.js.map} +1 -1
  180. package/chunk/index-CwaTj-69.js +4 -4
  181. package/chunk/index-D2d6x5LN.js +4 -4
  182. package/chunk/index-D7Mqx5na.js +4 -4
  183. package/chunk/{index-yLck7gVG.js → index-DDOie7I6.js} +8 -8
  184. package/chunk/{index-yLck7gVG.js.map → index-DDOie7I6.js.map} +1 -1
  185. package/chunk/index-DFoMYB8K.js +4 -4
  186. package/chunk/{index-CMwYcIy7.js → index-DG51xMuU.js} +10 -10
  187. package/chunk/{index-B0gkU4sD.js.map → index-DG51xMuU.js.map} +1 -1
  188. package/chunk/index-DIkWpujR.js +4 -4
  189. package/chunk/{index-DM6d_MOp.js → index-DJu2A0Dj.js} +8 -8
  190. package/chunk/{index-4SoX7nBO.js.map → index-DJu2A0Dj.js.map} +1 -1
  191. package/chunk/{index-Di4VOQ0c.js → index-DQXlORPg.js} +9 -9
  192. package/chunk/{index-Di4VOQ0c.js.map → index-DQXlORPg.js.map} +1 -1
  193. package/chunk/{index-CO75J-sD.js → index-DfWrK5cl.js} +17 -17
  194. package/chunk/{index-DsIG7oZ5.js.map → index-DfWrK5cl.js.map} +1 -1
  195. package/chunk/{index-XxwXcW8j.js → index-Dj6o39Jh.js} +7 -7
  196. package/chunk/{index-XxwXcW8j.js.map → index-Dj6o39Jh.js.map} +1 -1
  197. package/chunk/{index-B0gkU4sD.js → index-DlYU3RMt.js} +10 -10
  198. package/chunk/{index-CMwYcIy7.js.map → index-DlYU3RMt.js.map} +1 -1
  199. package/chunk/index-EUJqfdiJ.js +4 -4
  200. package/chunk/{index-Cgw-oCXC.js → index-Fn3AJ3YB.js} +5 -5
  201. package/chunk/{index-Cgw-oCXC.js.map → index-Fn3AJ3YB.js.map} +1 -1
  202. package/chunk/{index-Ccp2Exqo.js → index-XS4CFK0d.js} +9 -9
  203. package/chunk/{index-DGCqI3ez.js.map → index-XS4CFK0d.js.map} +1 -1
  204. package/chunk/index-dTu4ORna.js +4 -4
  205. package/chunk/{index-Tt8XFCKg.js → index-kUVTGFsl.js} +9 -9
  206. package/chunk/{index-Tt8XFCKg.js.map → index-kUVTGFsl.js.map} +1 -1
  207. package/chunk/is-B3D8NTKa.js +4 -4
  208. package/chunk/it-CzAy2lzA.js +4 -4
  209. package/chunk/iw-C9nimuXe.js +4 -4
  210. package/chunk/ja-BEXgm7zu.js +4 -4
  211. package/chunk/ko-Ct-zPR2E.js +4 -4
  212. package/chunk/lo-Di9C_kLP.js +4 -4
  213. package/chunk/lt-CEBQxuWT.js +4 -4
  214. package/chunk/{militaryStepHelpers-jW2_4c1l.js → militaryStepHelpers-BINEywf8.js} +5 -5
  215. package/chunk/{militaryStepHelpers-0OUuQpBw.js.map → militaryStepHelpers-BINEywf8.js.map} +1 -1
  216. package/chunk/{militaryStepHelpers-0OUuQpBw.js → militaryStepHelpers-CqXwxXhq.js} +5 -5
  217. package/chunk/{militaryStepHelpers-jW2_4c1l.js.map → militaryStepHelpers-CqXwxXhq.js.map} +1 -1
  218. package/chunk/mocks-CeAm-JFs.js +4 -4
  219. package/chunk/mocks-ClJ0M6QH.js +4 -4
  220. package/chunk/ms-CxGIGN7C.js +4 -4
  221. package/chunk/nl-BE-DPBUnfk6.js +4 -4
  222. package/chunk/nl-BIm7MF9X.js +4 -4
  223. package/chunk/no-BmBisNVx.js +4 -4
  224. package/chunk/pl-BOGNzi_o.js +4 -4
  225. package/chunk/pt-BR-uABX_syI.js +4 -4
  226. package/chunk/pt-MSESKPWr.js +4 -4
  227. package/chunk/ro-DoSzUhte.js +4 -4
  228. package/chunk/ru-_re-OOAp.js +4 -4
  229. package/chunk/sk-BS3zToE5.js +4 -4
  230. package/chunk/sl-CVBUMpyN.js +4 -4
  231. package/chunk/sr-Cmqfavur.js +4 -4
  232. package/chunk/sv-BzRp9aoC.js +4 -4
  233. package/chunk/sw-C4I4Ivyc.js +4 -4
  234. package/chunk/th-SsMlrFQN.js +4 -4
  235. package/chunk/tr-i4hcCWIF.js +4 -4
  236. package/chunk/uk-CLl1S03h.js +4 -4
  237. package/chunk/ur-CfVN1Pr2.js +4 -4
  238. package/chunk/useCollectFieldsEndpoint-Cd6d_u47.js +4 -4
  239. package/chunk/useCollectFieldsEndpoint-DqTjyVEr.js +4 -4
  240. package/chunk/useMetrics-D2fG6cgw.js +4 -4
  241. package/chunk/useMetrics-wq7yrL0b.js +4 -4
  242. package/chunk/vi-STS0AV-q.js +4 -4
  243. package/chunk/zh-HK-DGm6tmJZ.js +4 -4
  244. package/chunk/zh-rPW1DJOh.js +4 -4
  245. package/chunk/zu-D7Vc6viT.js +4 -4
  246. package/package.json +1 -1
  247. package/sheerid-install.css +4 -4
  248. package/sheerid-install.js +36 -36
  249. package/sheerid-install.js.map +1 -1
  250. package/sheerid.css +5 -5
  251. package/sheerid.js +25 -25
  252. package/chunk/CaptchaComponent-CnWyxiTy.js.map +0 -1
  253. package/chunk/CaptchaComponent-SmUa6m52.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index-XxwXcW8j.js","sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type AgePersonalInfoViewModel,\n type AgePersonalInfoResponse,\n type FormSelectChoice,\n type Country,\n type FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\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 { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.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 updateAgeViewModel(\"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 updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"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 updateAgeViewModel(\"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 <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"names":["StepAgePersonalInfo","verificationService","intl","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","countryChoices","getAvailableCountryChoices","defaultCountryChoice","getDefaultCountryChoice","safeCountryValue","getSafe","defaultRequiredFields","showPhoneNumber","phoneNumberRequired","locale","options","getOptions","updateAgeViewModel","key","value","nextState","produceDraftViewModel","isFieldRequired","useCollectFieldsEndpoint","React","updateFieldValidationErrorsByFieldId","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","FirstName","newValue","LastName","BirthDate","CityComponent","AddressComponent","PostalCode","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepAgePersonalInfoComponent","injectIntl"],"mappings":";;;;;;;;;;;AAqDA,MAAMA,IAAsB,CAAC,EAAE,qBAAAC,GAAqB,MAAAC,QAA8C;AAChG,QAAMC,IAAYF,EAAoB,WAChC,EAAE,uBAAAG,MAA0BH,GAC5BI,IAAuBJ,EAAoB,sBAC3CK,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAsDC;AAAA,IAC1DR,EAAoB;AAAA,IACpBC;AAAA,EAAA,GAEIQ,IACJC,EAAwBH,CAAc,GAClCI,IAAmBC,EAAQ,MAAMV,EAAU,cAAc,OAAOO,EAAqB,KAAK,GAC1FI,IACJF,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAA,CAAc,IAAI,CAAA,GAGlDG,IACJH,MAAqB,QACrBX,EAAoB,aAAa,2BACjCA,EAAoB,aAAa,gBAC7Be,IACJJ,MAAqB,QAAQX,EAAoB,aAAa,gBAE1DgB,IAASd,EAAU,aAAa,OAChCe,IAAUC,EAAA;AAEhB,EACE,CAACf,EAAsB,eACvBC,EAAqB,YACrBA,EAAqB,SAAS,SAAS,oBAAoB,KAE3DJ,EAAoB,4BAA4B;AAAA,IAC9C,GAAGG;AAAA,IACH,aAAa;AAAA,EAAA,CACd;AAGH,QAAMgB,IAAqB,C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BAAA/C,EAAA,CAA0C,CAC5E;AAAA,QAED8B,gBAAAA,EAAAA;AAAAA,UAACmB;AAAAA,UAAA;AAAA,YACC,qBAAAjD;AAAA,YACA,WAAW,CAAC,CAACG,EAAsB;AAAA,YACnC,UAAU,CAACiC,MAAa;AACtB,cAAAjB,EAAmB,YAAY;AAAA,gBAC7B,GAAGnB,EAAoB,UAAU;AAAA,gBACjC,oBAAoBoC;AAAA,cAAA,CACrB,GACDT,EAAqC,sBAAsBS,GAAUpC,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAE;AAAA,YACA,UAAUgC,EAAwB,oBAAoB,GAAG;AAAA,UAAA;AAAA,QAAA;AAAA,QAG3DJ,gBAAAA,EAAAA,IAACoB,GAAA,EAAa,qBAAAlD,GAA0C,QAAO,qBAAA,CAAqB;AAAA,QAEpF8B,gBAAAA,EAAAA;AAAAA,UAACqB;AAAA,UAAA;AAAA,YACC,qBAAAnD;AAAA,YACA,WAAW,CAAC,CAACG,EAAsB;AAAA,UAAA;AAAA,QAAA;AAAA,QAErC2B,gBAAAA,EAAAA;AAAAA,UAACsB;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAArD;AAAA,YACA,WAAAE;AAAA,YACA,oBAAAG;AAAA,YACA,YACEyB,gBAAAA,EAAAA;AAAAA,cAACa;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaW,KAA+BC,EAAWxD,CAAmB;"}
1
+ {"version":3,"file":"index-Dj6o39Jh.js","sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type AgePersonalInfoViewModel,\n type AgePersonalInfoResponse,\n type FormSelectChoice,\n type Country,\n type FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\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 { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.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 updateAgeViewModel(\"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 updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"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 updateAgeViewModel(\"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 <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"names":["StepAgePersonalInfo","verificationService","intl","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","countryChoices","getAvailableCountryChoices","defaultCountryChoice","getDefaultCountryChoice","safeCountryValue","getSafe","defaultRequiredFields","showPhoneNumber","phoneNumberRequired","locale","options","getOptions","updateAgeViewModel","key","value","nextState","produceDraftViewModel","isFieldRequired","useCollectFieldsEndpoint","React","updateFieldValidationErrorsByFieldId","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","FirstName","newValue","LastName","BirthDate","CityComponent","AddressComponent","PostalCode","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepAgePersonalInfoComponent","injectIntl"],"mappings":";;;;;;;;;;;AAqDA,MAAMA,IAAsB,CAAC,EAAE,qBAAAC,GAAqB,MAAAC,QAA8C;AAChG,QAAMC,IAAYF,EAAoB,WAChC,EAAE,uBAAAG,MAA0BH,GAC5BI,IAAuBJ,EAAoB,sBAC3CK,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAsDC;AAAA,IAC1DR,EAAoB;AAAA,IACpBC;AAAA,EAAA,GAEIQ,IACJC,EAAwBH,CAAc,GAClCI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,oBAAAG;AAAA,YACA,YACEyB,gBAAAA,EAAAA;AAAAA,cAACa;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaW,KAA+BC,EAAWxD,CAAmB;"}
@@ -1,22 +1,22 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.232.0
4
- * BUILD_TIMESTAMP: 1779230139589
5
- * BUILD_DATE: Tue May 19 2026 22:35:39 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5a2425d625d875ef656bb4cf2539177a8f02c67d
3
+ * VERSION: 2.233.0
4
+ * BUILD_TIMESTAMP: 1779293745497
5
+ * BUILD_DATE: Wed May 20 2026 16:15:45 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: af3eefec141e5dda945559406ba048843622f3b9
7
7
  */
8
8
  import { i as M, B as h, l as x, m as L, R as y, J as P, j as o, P as T, g as d, p as E, A as f, o as n, a9 as w, a2 as F, D as V, _ as B, F as b, Y as R, n as O, V as z, e as D, aa as A } from "../sheerid.js";
9
- import { B as k } from "./militaryStepHelpers-0OUuQpBw.js";
9
+ import { B as k } from "./militaryStepHelpers-CqXwxXhq.js";
10
10
  import { E as _, P as q } from "./PersonalInfoStepSubmitButton-j44RdZDq.js";
11
- import { F as H, L as W, P as Y, a as c, M as G, C as K } from "./CaptchaComponent-SmUa6m52.js";
12
- import { S as U } from "./StatusComponent-C6J1B7Tl.js";
13
- import { E as J, L as S } from "./EBTCardNumberComponent-B1kv4R4G.js";
11
+ import { F as H, L as W, P as Y, a as c, M as G, C as K } from "./CaptchaComponent-Ch8H0h-Q.js";
12
+ import { S as U } from "./StatusComponent-DBpJ4nvX.js";
13
+ import { E as J, L as S } from "./EBTCardNumberComponent-CIs3mn52.js";
14
14
  import { P as Q } from "./PostalCodeComponent-DrCcV90W.js";
15
15
  import { C as X } from "./ChangeLocaleComponent-DUnfgQuX.js";
16
- import { C as Z } from "./CountryComponentWrapper-Ceq-eink.js";
16
+ import { C as Z } from "./CountryComponentWrapper-Bm0vWZt6.js";
17
17
  import { A as $ } from "./AddressComponent-AiyIPiCz.js";
18
18
  import { C as v } from "./City-yVVnZQTP.js";
19
- import { S as ss } from "./StateSelectComponent-CChSqKXz.js";
19
+ import { S as ss } from "./StateSelectComponent-BJvkEwls.js";
20
20
  import { P as es } from "./PersonalInfoStepWrapper-PV06WMKL.js";
21
21
  const as = ({
22
22
  intl: u,
@@ -1 +1 @@
1
- {"version":3,"file":"index-CMwYcIy7.js","sources":["../../src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport {\n LowIncomeStatusDefaultMessagesEnum,\n VerificationStepsEnum,\n} 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 getAvailableLowIncomeStatuses,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n getStatusLabel,\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 { setViewModel } from \"../../lib/VerificationService/ViewModel\";\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 { isLowIncomeVM } from \"./lowIncomeTypes\";\n\ninterface StepLowIncomePersonalInfoComponentProps {\n verificationService: VerificationService<LowIncomePersonalInfoViewModel>;\n intl: any;\n}\n\ntype DefaultStatusMessages = {\n [key in LowIncomeStatus]: string;\n};\n\nexport const defaultStatusMessages: DefaultStatusMessages = {\n SNAP_BENEFITS: \"Snap Benefits Recipient\",\n OTHER_GOVERNMENT_ASSISTANCE: \"Other Government Assistance Recipient\",\n COMMUNITY_ELIGIBILITY_PROVISION: \"CEP (Community Eligibility Provision, Title 1/LAP)\",\n};\n\nconst StepLowIncomePersonalInfo = ({\n intl,\n verificationService,\n}: StepLowIncomePersonalInfoComponentProps) => {\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 } = verificationService;\n const failedInstantMatch = hasFailedInstantMatch(\n verificationResponse as LowIncomePersonalInfoResponse,\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 draft[key] = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n if (isSelectedStatusSnapBenefits) {\n const updatedViewModel = { fieldsToSkipValidation: [\"organization\"] };\n setViewModel(updatedViewModel);\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={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses\n ? getStatusLabel(intl, viewModel.statuses[0], LowIncomeStatusDefaultMessagesEnum)\n : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n options={getAvailableLowIncomeStatuses(\n intl,\n (verificationResponse as LowIncomePersonalInfoResponse).availableStatuses,\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 options={getAvailableStateChoices(verificationService.programTheme, intl)}\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 {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.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\nexport const StepLowIncomePersonalInfoComponent = injectIntl(StepLowIncomePersonalInfo);\n"],"names":["StepLowIncomePersonalInfo","intl","verificationService","viewModel","options","getOptions","isLowIncomeVM","logger","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","locale","selectedStatus","isSelectedStatusSnapBenefits","updateLowIncomeViewModel","key","value","nextState","produce","draft","React","setViewModel","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","StatusComponent","getStatusLabel","LowIncomeStatusDefaultMessagesEnum","getAvailableLowIncomeStatuses","status","updatedStatuses","blankOrganization","updateFieldValidationErrorsByFieldId","EBTCardNumberComponent","newValue","LowIncomeOrganization","choice","updateViewModelOrganization","orgToOption","FirstName","LastName","BirthDate","AddressComponent","FormattedHTMLMessage","CityComponent","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","PostalCodeComponent","Email","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepLowIncomePersonalInfoComponent","injectIntl"],"mappings":";;;;;;;;;;;;;AAwEA,MAAMA,KAA4B,CAAC;AAAA,EACjC,MAAAC;AAAA,EACA,qBAAAC;AACF,MAA+C;AAC7C,QAAM,EAAE,WAAAC,MAAcD,GAChBE,IAAUC,EAAA;AAEhB,MAAI,CAACC,EAAcH,CAAS;AAC1B,WAAAI,EAAO,MAAM,yCAAyC,GAC/C;AAGT,QAAM,EAAE,uBAAAC,MAA0BN,GAC5B,EAAE,sBAAAO,MAA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,CAC5E;AAAA,QAAG;AAAA,QACJuB,gBAAAA,EAAAA;AAAAA,UAACoC;AAAAA,UAAA;AAAA,YACC,qBAAA3D;AAAA,YACA,WAAW,CAAC,CAACM,EAAsB;AAAA,YACnC,UAAU,CAAC+B,MAAa;AACtB,cAAAxB,EAAyB,YAAY;AAAA,gBACnC,GAAGb,EAAoB,UAAU;AAAA,gBACjC,oBAAoBqC;AAAA,cAAA,CACrB,GACDF,EAAqC,sBAAsBE,GAAUrC,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAC;AAAA,YACA,UAAU0B,EAAwB,oBAAoB,GAAG;AAAA,UAAA;AAAA,QAAA;AAAA,QAE3DJ,gBAAAA,EAAAA;AAAAA,UAACqC;AAAA,UAAA;AAAA,YACC,qBAAA5D;AAAA,YACA,WAAW,CAAC,CAACM,EAAsB;AAAA,UAAA;AAAA,QAAA;AAAA,QAErCiB,gBAAAA,EAAAA;AAAAA,UAACsC;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAA9D;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAO;AAAA,YACA,YACEe,gBAAAA,EAAAA;AAAAA,cAACuB;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaiB,KAAqCC,EAAWlE,EAAyB;"}
1
+ {"version":3,"file":"index-DlYU3RMt.js","sources":["../../src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport {\n LowIncomeStatusDefaultMessagesEnum,\n VerificationStepsEnum,\n} 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 getAvailableLowIncomeStatuses,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n getStatusLabel,\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 { setViewModel } from \"../../lib/VerificationService/ViewModel\";\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 { isLowIncomeVM } from \"./lowIncomeTypes\";\n\ninterface StepLowIncomePersonalInfoComponentProps {\n verificationService: VerificationService<LowIncomePersonalInfoViewModel>;\n intl: any;\n}\n\ntype DefaultStatusMessages = {\n [key in LowIncomeStatus]: string;\n};\n\nexport const defaultStatusMessages: DefaultStatusMessages = {\n SNAP_BENEFITS: \"Snap Benefits Recipient\",\n OTHER_GOVERNMENT_ASSISTANCE: \"Other Government Assistance Recipient\",\n COMMUNITY_ELIGIBILITY_PROVISION: \"CEP (Community Eligibility Provision, Title 1/LAP)\",\n};\n\nconst StepLowIncomePersonalInfo = ({\n intl,\n verificationService,\n}: StepLowIncomePersonalInfoComponentProps) => {\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 } = verificationService;\n const failedInstantMatch = hasFailedInstantMatch(\n verificationResponse as LowIncomePersonalInfoResponse,\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 draft[key] = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n if (isSelectedStatusSnapBenefits) {\n const updatedViewModel = { fieldsToSkipValidation: [\"organization\"] };\n setViewModel(updatedViewModel);\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={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses\n ? getStatusLabel(intl, viewModel.statuses[0], LowIncomeStatusDefaultMessagesEnum)\n : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n options={getAvailableLowIncomeStatuses(\n intl,\n (verificationResponse as LowIncomePersonalInfoResponse).availableStatuses,\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 options={getAvailableStateChoices(verificationService.programTheme, intl)}\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 {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.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\nexport const StepLowIncomePersonalInfoComponent = injectIntl(StepLowIncomePersonalInfo);\n"],"names":["StepLowIncomePersonalInfo","intl","verificationService","viewModel","options","getOptions","isLowIncomeVM","logger","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","locale","selectedStatus","isSelectedStatusSnapBenefits","updateLowIncomeViewModel","key","value","nextState","produce","draft","React","setViewModel","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","StatusComponent","getStatusLabel","LowIncomeStatusDefaultMessagesEnum","getAvailableLowIncomeStatuses","status","updatedStatuses","blankOrganization","updateFieldValidationErrorsByFieldId","EBTCardNumberComponent","newValue","LowIncomeOrganization","choice","updateViewModelOrganization","orgToOption","FirstName","LastName","BirthDate","AddressComponent","FormattedHTMLMessage","CityComponent","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","PostalCodeComponent","Email","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepLowIncomePersonalInfoComponent","injectIntl"],"mappings":";;;;;;;;;;;;;AAwEA,MAAMA,KAA4B,CAAC;AAAA,EACjC,MAAAC;AAAA,EACA,qBAAAC;AACF,MAA+C;AAC7C,QAAM,EAAE,WAAAC,MAAcD,GAChBE,IAAUC,EAAA;AAEhB,MAAI,CAACC,EAAcH,CAAS;AAC1B,WAAAI,EAAO,MAAM,yCAAyC,GAC/C;AAGT,QAAM,EAAE,uBAAAC,MAA0BN,GAC5B,EAAE,sBAAAO,MAAyBP,GAC3BQ,IAAqBC;AAAA,IACzBF;AAAA,EAAA,GAGIG,IAAST,EAAU,aAAa,OAEhCU,IAAiBV,EAAU,SAAS,CAAC,IAAIA,EAAU,SAAS,CAAC,IAAI,QACjEW,IAA+BD,MAAmB,iBAClDE,IAA2B,CAACC,GAA2CC,MAAe;AAC1F,QAAI,CAACX,EAAcH,CAAS,GAAG;AAC7B,MAAAI,EAAO,MAAM,yCAAyC;AACtD;AAAA,IACF;AACA,UAAMW,IAA4CC;AAAAA,MAChDhB;AAAA,MACA,CAACiB,MAA0C;AACzC,QAAAA,EAAMJ,CAAG,IAAIC;AAAA,MACf;AAAA,IAAA;AAEF,IAAAf,EAAoB,gBAAgBgB,CAAS;AAAA,EAC/C;AAEA,SAAAG,EAAM,UAAU,MAAM;AACpB,IAAIP,KAEFQ,EADyB,EAAE,wBAAwB,CAAC,cAAc,EAAA,CACrC;AAAA,EAEjC,GAAG,CAACR,CAA4B,CAAC,GAG/BS,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,qBAAAtB;AAAA,MACA,MAAMO,EAA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AAA,YACA,YACEe,gBAAAA,EAAAA;AAAAA,cAACuB;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaiB,KAAqCC,EAAWlE,EAAyB;"}
@@ -4,10 +4,10 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.232.0
8
- * BUILD_TIMESTAMP: 1779230152926
9
- * BUILD_DATE: Tue May 19 2026 22:35:52 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 5a2425d625d875ef656bb4cf2539177a8f02c67d
7
+ * VERSION: 2.233.0
8
+ * BUILD_TIMESTAMP: 1779293766865
9
+ * BUILD_DATE: Wed May 20 2026 16:16:06 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: af3eefec141e5dda945559406ba048843622f3b9
11
11
  */
12
12
  import { j as s, L as m, F as a, I as c, M as p, V as t, a as g, o as u, l as x, p as j, i as b } from "../_mysheerid-preview.js";
13
13
  import { F as h } from "./FormFieldText-CJ-GVpZE.js";
@@ -4,13 +4,13 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.232.0
8
- * BUILD_TIMESTAMP: 1779230152926
9
- * BUILD_DATE: Tue May 19 2026 22:35:52 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 5a2425d625d875ef656bb4cf2539177a8f02c67d
7
+ * VERSION: 2.233.0
8
+ * BUILD_TIMESTAMP: 1779293766865
9
+ * BUILD_DATE: Wed May 20 2026 16:16:06 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: af3eefec141e5dda945559406ba048843622f3b9
11
11
  */
12
12
  import { i as h, m as N, b as g, j as a, P as j, o as n, g as l, F as m, n as E, U as M, V as f, p as i, e as I } from "../_mysheerid-preview.js";
13
- import { F, L as P, P as y, a as T, M as k, C as L } from "./CaptchaComponent-CnWyxiTy.js";
13
+ import { F, L as P, P as y, a as T, M as k, C as L } from "./CaptchaComponent-Blq_Is9l.js";
14
14
  import { A as R } from "./AddressComponent-DV2Wsw6k.js";
15
15
  import { P as A } from "./PostalCodeComponent-KXVfZkLx.js";
16
16
  import { E as V, P as B } from "./PersonalInfoStepSubmitButton-v_kWLmEw.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index-Cgw-oCXC.js","sources":["../../src/components/StepMoverPersonalInfo/StepMoverPersonalInfoComponent.tsx"],"sourcesContent":["import { useEffect } from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n type VerificationService,\n type MoverPersonalInfoViewModel,\n type MoverPersonalInfoResponse,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\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 { AddressComponent as Address } from \"../FormFields/Address/AddressComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepMoverPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepMoverPersonalInfo = ({ verificationService }: StepMoverPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MoverPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MoverPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const updateMoverViewModel = (key: keyof MoverPersonalInfoViewModel, value: any) => {\n const nextState: MoverPersonalInfoViewModel = produce(\n viewModel,\n (draft: MoverPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n // We do not want a drop down list, just apply available statuses to the viewModel\n useEffect(() => {\n updateMoverViewModel(\"statuses\", verificationResponse.availableStatuses);\n }, []);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"mover-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\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 updateMoverViewModel(\"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 updateMoverViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Address\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateMoverViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"streetAddress\" defaultMessage=\"Street Address\" />}\n isRequired\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n />\n\n <PostalCode\n value={viewModel.postalCode}\n isErrored={!!fieldValidationErrors.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n onChange={(newValue) => {\n updateMoverViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\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 updateMoverViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMoverViewModel(\"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 updateMoverViewModel(\"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.collectMoverPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Recent Mover Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMoverPersonalInfoComponent = injectIntl(StepMoverPersonalInfo);\n"],"names":["StepMoverPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","updateMoverViewModel","key","value","nextState","produce","draft","useEffect","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","FirstName","getFieldConfigByFieldId","newValue","updateFieldValidationErrorsByFieldId","LastName","Address","FormattedHTMLMessage","PostalCode","Email","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepMoverPersonalInfoComponent","injectIntl"],"mappings":";;;;;;;AAqCA,MAAMA,IAAwB,CAAC,EAAE,qBAAAC,QAA+D;AAC9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A,YACC,qBAAApC;AAAA,YACA,WAAW,CAAC,CAACE,EAAsB;AAAA,UAAA;AAAA,QAAA;AAAA,QAGrCe,gBAAAA,EAAAA;AAAAA,UAACoB;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAtC;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAG;AAAA,YACA,YACEa,gBAAAA,EAAAA;AAAAA,cAACS;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaa,IAAiCC,EAAWzC,CAAqB;"}
1
+ {"version":3,"file":"index-Fn3AJ3YB.js","sources":["../../src/components/StepMoverPersonalInfo/StepMoverPersonalInfoComponent.tsx"],"sourcesContent":["import { useEffect } from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n type VerificationService,\n type MoverPersonalInfoViewModel,\n type MoverPersonalInfoResponse,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\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 { AddressComponent as Address } from \"../FormFields/Address/AddressComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepMoverPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepMoverPersonalInfo = ({ verificationService }: StepMoverPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MoverPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MoverPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const updateMoverViewModel = (key: keyof MoverPersonalInfoViewModel, value: any) => {\n const nextState: MoverPersonalInfoViewModel = produce(\n viewModel,\n (draft: MoverPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n // We do not want a drop down list, just apply available statuses to the viewModel\n useEffect(() => {\n updateMoverViewModel(\"statuses\", verificationResponse.availableStatuses);\n }, []);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"mover-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\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 updateMoverViewModel(\"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 updateMoverViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Address\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateMoverViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"streetAddress\" defaultMessage=\"Street Address\" />}\n isRequired\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n />\n\n <PostalCode\n value={viewModel.postalCode}\n isErrored={!!fieldValidationErrors.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n onChange={(newValue) => {\n updateMoverViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\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 updateMoverViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMoverViewModel(\"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 updateMoverViewModel(\"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.collectMoverPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Recent Mover Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMoverPersonalInfoComponent = injectIntl(StepMoverPersonalInfo);\n"],"names":["StepMoverPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","updateMoverViewModel","key","value","nextState","produce","draft","useEffect","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","FirstName","getFieldConfigByFieldId","newValue","updateFieldValidationErrorsByFieldId","LastName","Address","FormattedHTMLMessage","PostalCode","Email","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaCompon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AAAA,EAAAA,IAACkB,GAAA,EAAa,qBAAAnC,GAA0C,QAAO,qBAAA,CAAqB;AAAA,QAEpFiB,gBAAAA,EAAAA;AAAAA,UAACmB;AAAA,UAAA;AAAA,YACC,qBAAApC;AAAA,YACA,WAAW,CAAC,CAACE,EAAsB;AAAA,UAAA;AAAA,QAAA;AAAA,QAGrCe,gBAAAA,EAAAA;AAAAA,UAACoB;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAtC;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAG;AAAA,YACA,YACEa,gBAAAA,EAAAA;AAAAA,cAACS;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaa,IAAiCC,EAAWzC,CAAqB;"}
@@ -1,18 +1,18 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.232.0
4
- * BUILD_TIMESTAMP: 1779230139589
5
- * BUILD_DATE: Tue May 19 2026 22:35:39 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5a2425d625d875ef656bb4cf2539177a8f02c67d
3
+ * VERSION: 2.233.0
4
+ * BUILD_TIMESTAMP: 1779293745497
5
+ * BUILD_DATE: Wed May 20 2026 16:15:45 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: af3eefec141e5dda945559406ba048843622f3b9
7
7
  */
8
8
  import { i as j, m as F, j as o, P as N, g as n, o as d, a1 as M, a2 as I, A as z, p as g, h as m, n as y, F as i, U as P, V as R, e as f, a3 as D } from "../sheerid.js";
9
- import { F as T, L as k, P as L, a as B, M as O, C as V } from "./CaptchaComponent-SmUa6m52.js";
9
+ import { F as T, L as k, P as L, a as B, M as O, C as V } from "./CaptchaComponent-Ch8H0h-Q.js";
10
10
  import { E as A, P as W } from "./PersonalInfoStepSubmitButton-j44RdZDq.js";
11
- import { B as q } from "./militaryStepHelpers-0OUuQpBw.js";
12
- import { S as w } from "./StatusComponent-C6J1B7Tl.js";
13
- import { F as H } from "./FirstResponderOrganizationComponent-Bru1a0U7.js";
11
+ import { B as q } from "./militaryStepHelpers-CqXwxXhq.js";
12
+ import { S as w } from "./StatusComponent-DBpJ4nvX.js";
13
+ import { F as H } from "./FirstResponderOrganizationComponent-pU8-QJb-.js";
14
14
  import { P as K } from "./PostalCodeComponent-DrCcV90W.js";
15
- import { C as U } from "./CountryComponentWrapper-Ceq-eink.js";
15
+ import { C as U } from "./CountryComponentWrapper-Bm0vWZt6.js";
16
16
  import { C as G } from "./ChangeLocaleComponent-DUnfgQuX.js";
17
17
  import { P as J } from "./PersonalInfoStepWrapper-PV06WMKL.js";
18
18
  const Q = ({
@@ -1 +1 @@
1
- {"version":3,"file":"index-DGCqI3ez.js","sources":["../../src/components/StepFirstResponderPersonalInfo/StepFirstResponderPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n FirstResponderStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n FirstResponderPersonalInfoViewModel,\n FirstResponderPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableFirstResponderStatuses,\n getFieldConfigByFieldId,\n getStatusLabel,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\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 { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { StatusComponent as FirstResponderStatus } from \"../FormFields/Status/StatusComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { blankOrganization } from \"../../lib/types/empties\";\n\ninterface StepFirstResponderPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\nexport const StepFirstResponderPersonalInfo = ({\n intl,\n verificationService,\n}: StepFirstResponderPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as FirstResponderPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as FirstResponderPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateFirstResponderViewModel = (\n key: keyof FirstResponderPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: FirstResponderPersonalInfoViewModel = produce(\n viewModel,\n (draft: FirstResponderPersonalInfoViewModel) => {\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=\"first-responder\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <FirstResponderStatus\n segmentId=\"first-responder\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, FirstResponderStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidFirstResponderStatus\"\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n options={getAvailableFirstResponderStatuses(intl, verificationResponse.availableStatuses)}\n onChange={(status: FormSelectChoice) => {\n updateFirstResponderViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization = blankOrganization.organization) => {\n const nextState = produce(viewModel, (draft) => {\n draft.organization = {\n id: choice.id,\n idExtended: choice.idExtended,\n name: choice.name,\n source: choice.source,\n };\n\n if (viewModel.organization && viewModel.organization.source !== undefined) {\n draft.organization.source = viewModel.organization.source;\n }\n\n if (\n getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => choice.id) === 0 &&\n getSafe(() => choice.name, \"\").length > 0\n ) {\n draft.postalCode = viewModel.postalCode ? viewModel.postalCode : \"\";\n } else if (viewModel.postalCode || viewModel.postalCode === \"\") {\n delete draft.postalCode;\n }\n });\n\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as FirstResponderPersonalInfoViewModel).organization}\n verificationService={verificationService}\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 updateFirstResponderViewModel(\"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 updateFirstResponderViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\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 updateFirstResponderViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => viewModel.organization.id) === 0 &&\n getSafe(() => viewModel.organization.name, \"\").length > 0 && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\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 updateFirstResponderViewModel(\"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.collectFirstResponderPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My First Responder Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepFirstResponderPersonalInfoComponent = injectIntl(StepFirstResponderPersonalInfo);\n"],"names":["StepFirstResponderPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","locale","updateFirstResponderViewModel","key","value","nextState","produce","draft","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","FirstResponderStatus","getStatusLabel","FirstResponderStatusDefaultMessagesEnum","getAvailableFirstResponderStatuses","status","updateFieldValidationErrorsByFieldId","FirstResponderOrganization","choice","blankOrganization","getSafe","FirstName","newValue","LastName","BirthDate","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","PhoneNumber","PostalCodeComponent","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepFirstResponderPersonalInfoComponent","injectIntl"],"mappings":";;;;;;;;;;AAuDO,MAAMA,IAAiC,CAAC;AAAA,EAC7C,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAoD;AAClD,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAA,GAEVC,IAASP,EAAU,aAAa,OAEhCQ,IAAgC,CACpCC,GACAC,MACG;AACH,UAAMC,IAAiDC;AAAAA,MACrDZ;AAAA,MACA,CAACa,MAA+C;AAC7C,QAAAA,EAAMJ,CAAG,IAAYC;AAAA,MACxB;AAAA,IAAA;AAEF,IAAAX,EAAoB,gBAAgBY,CAAS;AAAA,EAC/C;AAEA,SACEG,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,qBAAAhB;AAAA,MACA,MAAMG,EAAqB;AAAA,MAE3B,UAAA;AAAA,QAAAc,gBAAAA,EAAAA;AAAAA,UAACC;AAAA,UAAA;AAAA,YACC,qBAAAlB;AAAA,YACA,qBAAoB;AAAA,UAAA;AAAA,QAAA;A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BACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaY,KAA0CC,EAAWpD,CAA8B;"}
1
+ {"version":3,"file":"index-XS4CFK0d.js","sources":["../../src/components/StepFirstResponderPersonalInfo/StepFirstResponderPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n FirstResponderStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n FirstResponderPersonalInfoViewModel,\n FirstResponderPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableFirstResponderStatuses,\n getFieldConfigByFieldId,\n getStatusLabel,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\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 { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { StatusComponent as FirstResponderStatus } from \"../FormFields/Status/StatusComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { blankOrganization } from \"../../lib/types/empties\";\n\ninterface StepFirstResponderPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\nexport const StepFirstResponderPersonalInfo = ({\n intl,\n verificationService,\n}: StepFirstResponderPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as FirstResponderPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as FirstResponderPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateFirstResponderViewModel = (\n key: keyof FirstResponderPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: FirstResponderPersonalInfoViewModel = produce(\n viewModel,\n (draft: FirstResponderPersonalInfoViewModel) => {\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=\"first-responder\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <FirstResponderStatus\n segmentId=\"first-responder\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, FirstResponderStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidFirstResponderStatus\"\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n options={getAvailableFirstResponderStatuses(intl, verificationResponse.availableStatuses)}\n onChange={(status: FormSelectChoice) => {\n updateFirstResponderViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization = blankOrganization.organization) => {\n const nextState = produce(viewModel, (draft) => {\n draft.organization = {\n id: choice.id,\n idExtended: choice.idExtended,\n name: choice.name,\n source: choice.source,\n };\n\n if (viewModel.organization && viewModel.organization.source !== undefined) {\n draft.organization.source = viewModel.organization.source;\n }\n\n if (\n getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => choice.id) === 0 &&\n getSafe(() => choice.name, \"\").length > 0\n ) {\n draft.postalCode = viewModel.postalCode ? viewModel.postalCode : \"\";\n } else if (viewModel.postalCode || viewModel.postalCode === \"\") {\n delete draft.postalCode;\n }\n });\n\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as FirstResponderPersonalInfoViewModel).organization}\n verificationService={verificationService}\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 updateFirstResponderViewModel(\"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 updateFirstResponderViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\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 updateFirstResponderViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => viewModel.organization.id) === 0 &&\n getSafe(() => viewModel.organization.name, \"\").length > 0 && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\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 updateFirstResponderViewModel(\"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.collectFirstResponderPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My First Responder Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepFirstResponderPersonalInfoComponent = injectIntl(StepFirstResponderPersonalInfo);\n"],"names":["StepFirstResponderPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","locale","updateFirstResponderViewModel","key","value","nextState","produce","draft","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","FirstResponderStatus","getStatusLabel","FirstResponderStatusDefaultMessagesEnum","getAvailableFirstResponderStatuses","status","updateFieldValidationErrorsByFieldId","FirstResponderOrganization","choice","blankOrganization","getSafe","FirstName","newValue","LastName","BirthDate","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","PhoneNumber","PostalCodeComponent","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepFirstResponderPersonalInfoComponent","injectIntl"],"mappings":";;;;;;;;;;AAuDO,MAAMA,IAAiC,CAAC;AAAA,EAC7C,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAoD;AAClD,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAA,GAEVC,IAASP,EAAU,aAAa,OAEhCQ,IAAgC,CACpCC,GACAC,MACG;AACH,UAAMC,IAAiDC;AAAAA,MACrDZ;AAAA,MACA,CAACa,MAA+C;AAC7C,QAAAA,EAAMJ,CAAG,IAAYC;AAAA,MACxB;AAAA,IAAA;AAEF,IAAAX,EAAoB,gBAAgBY,CAAS;AAAA,EAC/C;AAEA,SACEG,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,qBAAAhB;AAAA,MACA,MAAMG,EAAqB;AAAA,MAE3B,UAAA;AAAA,QAAAc,gBAAAA,EAAAA;AAAAA,UAACC;AAAA,UAAA;AAAA,YACC,qBAAAlB;AAAA,YACA,qBAAoB;AAAA,UAAA;AAAA,QAAA;AAAA,QAGtBiB,gBAAAA,MAACE,KAAwB,qBAAAnB,GAA0C;AAAA,QACnEiB,gBAAAA,EAAAA;AAAAA,UAACG;AAAA,UAAA;AAAA,YACC,qBAAApB;AAAA,YACA,UAAUqB,EAAwB,SAAS,GAAG;AAAA,UAAA;AAAA,QAAA;AAAA,QAEhDJ,gBAAAA,EAAAA;AAAAA,UAACK;AAAAA,UAAA;AAAA,YACC,WAAU;AAAA,YACV,OAAO;AAAA,cACL,OAAOrB,EAAU;AAAA,cACjB,OAAOsB,EAAexB,GAAME,EAA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AC0B,GAAA,EAAgB,QAAAD,GAAgB,qBAAA1C,EAAA,CAA0C,CAC5E;AAAA,QAEDiB,gBAAAA,EAAAA;AAAAA,UAAC2B;AAAAA,UAAA;AAAA,YACC,qBAAA5C;AAAA,YACA,WAAW,CAAC,CAACE,EAAsB;AAAA,YACnC,UAAU,CAAC+B,MAAa;AACtB,cAAAxB,EAA8B,YAAY;AAAA,gBACxC,GAAGT,EAAoB,UAAU;AAAA,gBACjC,oBAAoBiC;AAAA,cAAA,CACrB,GACDN,EAAqC,sBAAsBM,GAAUjC,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAC;AAAA,YACA,UAAUoB,EAAwB,oBAAoB,GAAG;AAAA,UAAA;AAAA,QAAA;AAAA,QAG3DJ,gBAAAA,EAAAA,IAAC4B,GAAA,EAAa,qBAAA7C,GAA0C,QAAO,qBAAA,CAAqB;AAAA,QAEpFiB,gBAAAA,EAAAA;AAAAA,UAAC6B;AAAA,UAAA;AAAA,YACC,qBAAA9C;AAAA,YACA,WAAW,CAAC,CAACE,EAAsB;AAAA,UAAA;AAAA,QAAA;AAAA,QAGrCe,gBAAAA,EAAAA;AAAAA,UAAC8B;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAhD;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAG;AAAA,YACA,YACEa,gBAAAA,EAAAA;AAAAA,cAACoB;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaY,KAA0CC,EAAWpD,CAA8B;"}
@@ -4,10 +4,10 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.232.0
8
- * BUILD_TIMESTAMP: 1779230152926
9
- * BUILD_DATE: Tue May 19 2026 22:35:52 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 5a2425d625d875ef656bb4cf2539177a8f02c67d
7
+ * VERSION: 2.233.0
8
+ * BUILD_TIMESTAMP: 1779293766865
9
+ * BUILD_DATE: Wed May 20 2026 16:16:06 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: af3eefec141e5dda945559406ba048843622f3b9
11
11
  */
12
12
  import { m, j as e, P as u, n as x, o as f, F as o, V as I, a as j, p as E } from "../_mysheerid-preview.js";
13
13
  import { E as M, P as h } from "./PersonalInfoStepSubmitButton-v_kWLmEw.js";
@@ -4,20 +4,20 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.232.0
8
- * BUILD_TIMESTAMP: 1779230152926
9
- * BUILD_DATE: Tue May 19 2026 22:35:52 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 5a2425d625d875ef656bb4cf2539177a8f02c67d
7
+ * VERSION: 2.233.0
8
+ * BUILD_TIMESTAMP: 1779293766865
9
+ * BUILD_DATE: Wed May 20 2026 16:16:06 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: af3eefec141e5dda945559406ba048843622f3b9
11
11
  */
12
12
  import { i as I, m as f, R as N, j as s, P as E, g as t, o as n, a6 as j, a2 as y, _ as P, F as m, n as F, U as T, V as D, x as V, e as R, a7 as k } from "../_mysheerid-preview.js";
13
13
  import { u as K } from "./useCollectFieldsEndpoint-Cd6d_u47.js";
14
- import { F as L, L as c, P as B, a as w, M as z, C as O } from "./CaptchaComponent-CnWyxiTy.js";
14
+ import { F as L, L as c, P as B, a as w, M as z, C as O } from "./CaptchaComponent-Blq_Is9l.js";
15
15
  import { E as q, P as A } from "./PersonalInfoStepSubmitButton-v_kWLmEw.js";
16
- import { B as H } from "./militaryStepHelpers-jW2_4c1l.js";
16
+ import { B as H } from "./militaryStepHelpers-BINEywf8.js";
17
17
  import { P as W } from "./PostalCodeComponent-KXVfZkLx.js";
18
- import { S as U } from "./StatusComponent-pmuIhuXi.js";
19
- import { M as $ } from "./MedicalProfessionalOrganizationComponent-CXHX25GN.js";
20
- import { C as G } from "./CountryComponentWrapper--2UQ7mXP.js";
18
+ import { S as U } from "./StatusComponent-C3iIOm56.js";
19
+ import { M as $ } from "./MedicalProfessionalOrganizationComponent-DRiEzR_D.js";
20
+ import { C as G } from "./CountryComponentWrapper-Cd8jQ2X0.js";
21
21
  import { M as Y } from "./MemberIdComponent-oanWSvQh.js";
22
22
  import { C as _ } from "./ChangeLocaleComponent-Cu2DR-Q3.js";
23
23
  import { P as J } from "./PersonalInfoStepWrapper-BOBNCgik.js";