@sheerid/jslib 2.283.0 → 2.285.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 (402) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +1019 -1011
  3. package/_mysheerid-preview.js.map +1 -1
  4. package/chunk/{AddressComponent-Bo0ARZTC.js → AddressComponent-AhF3KEK9.js} +8 -8
  5. package/chunk/{AddressComponent-Bo0ARZTC.js.map → AddressComponent-AhF3KEK9.js.map} +1 -1
  6. package/chunk/{AddressComponent-DjdU1avW.js → AddressComponent-DRJOaV3f.js} +8 -8
  7. package/chunk/{AddressComponent-DjdU1avW.js.map → AddressComponent-DRJOaV3f.js.map} +1 -1
  8. package/chunk/{AnnouncingHeader-B84Vw5oF.js → AnnouncingHeader-Cm6ysN0V.js} +6 -6
  9. package/chunk/{AnnouncingHeader-B84Vw5oF.js.map → AnnouncingHeader-Cm6ysN0V.js.map} +1 -1
  10. package/chunk/{AnnouncingHeader-BJHHK6ve.js → AnnouncingHeader-yslSIrZR.js} +6 -6
  11. package/chunk/{AnnouncingHeader-BJHHK6ve.js.map → AnnouncingHeader-yslSIrZR.js.map} +1 -1
  12. package/chunk/ApiUrls-C3f7roDX.js +51 -0
  13. package/chunk/{ApiUrls-MtK1lfo-.js.map → ApiUrls-C3f7roDX.js.map} +1 -1
  14. package/chunk/ApiUrls-DYdhTPZr.js +45 -0
  15. package/chunk/{ApiUrls-XBNB9DI6.js.map → ApiUrls-DYdhTPZr.js.map} +1 -1
  16. package/chunk/{BirthDateComponent-Bc9jwV4J.js → BirthDateComponent-DGw_8Een.js} +8 -8
  17. package/chunk/{BirthDateComponent-Bc9jwV4J.js.map → BirthDateComponent-DGw_8Een.js.map} +1 -1
  18. package/chunk/{BirthDateComponent-DhSXxwAN.js → BirthDateComponent-pBpi_kdr.js} +8 -8
  19. package/chunk/{BirthDateComponent-DhSXxwAN.js.map → BirthDateComponent-pBpi_kdr.js.map} +1 -1
  20. package/chunk/{CaptchaComponent-f5RlyrJ_.js → CaptchaComponent-B7svAHl1.js} +63 -62
  21. package/chunk/{CaptchaComponent-BFnSDutX.js.map → CaptchaComponent-B7svAHl1.js.map} +1 -1
  22. package/chunk/{CaptchaComponent-BFnSDutX.js → CaptchaComponent-BEfo71Yw.js} +111 -110
  23. package/chunk/{CaptchaComponent-f5RlyrJ_.js.map → CaptchaComponent-BEfo71Yw.js.map} +1 -1
  24. package/chunk/{ChangeLocaleComponent-BfLianBY.js → ChangeLocaleComponent-BeG42YoS.js} +9 -9
  25. package/chunk/{ChangeLocaleComponent-BfLianBY.js.map → ChangeLocaleComponent-BeG42YoS.js.map} +1 -1
  26. package/chunk/{ChangeLocaleComponent-DRzH3cx2.js → ChangeLocaleComponent-C0bratCZ.js} +9 -9
  27. package/chunk/{ChangeLocaleComponent-DRzH3cx2.js.map → ChangeLocaleComponent-C0bratCZ.js.map} +1 -1
  28. package/chunk/{City-CfHBaCRV.js → City-CfHPoYH0.js} +8 -8
  29. package/chunk/{City-CfHBaCRV.js.map → City-CfHPoYH0.js.map} +1 -1
  30. package/chunk/{City-Cua_6h5H.js → City-CtOxrYoa.js} +8 -8
  31. package/chunk/{City-Cua_6h5H.js.map → City-CtOxrYoa.js.map} +1 -1
  32. package/chunk/{CollegeNameComponent-B8zeKprU.js → CollegeNameComponent-C9NzDPDJ.js} +10 -10
  33. package/chunk/{CollegeNameComponent-B8zeKprU.js.map → CollegeNameComponent-C9NzDPDJ.js.map} +1 -1
  34. package/chunk/{CollegeNameComponent-hl37XhAk.js → CollegeNameComponent-CetdW3-d.js} +10 -10
  35. package/chunk/{CollegeNameComponent-hl37XhAk.js.map → CollegeNameComponent-CetdW3-d.js.map} +1 -1
  36. package/chunk/{CopyToClipboardComponent-Hd6_alz8.js → CopyToClipboardComponent-BvzDoXkd.js} +9 -9
  37. package/chunk/{CopyToClipboardComponent-Cx3fFPKm.js.map → CopyToClipboardComponent-BvzDoXkd.js.map} +1 -1
  38. package/chunk/{CopyToClipboardComponent-Cx3fFPKm.js → CopyToClipboardComponent-CHdDPJEa.js} +9 -9
  39. package/chunk/{CopyToClipboardComponent-Hd6_alz8.js.map → CopyToClipboardComponent-CHdDPJEa.js.map} +1 -1
  40. package/chunk/{CountryComponentWrapper-CbB9XMJq.js → CountryComponentWrapper-BbCIPEWt.js} +12 -12
  41. package/chunk/{CountryComponentWrapper-CbB9XMJq.js.map → CountryComponentWrapper-BbCIPEWt.js.map} +1 -1
  42. package/chunk/{CountryComponentWrapper-cqOW7qGW.js → CountryComponentWrapper-D957aXLD.js} +12 -12
  43. package/chunk/{CountryComponentWrapper-cqOW7qGW.js.map → CountryComponentWrapper-D957aXLD.js.map} +1 -1
  44. package/chunk/{DischargeDateComponent-ChQ9YmFw.js → DischargeDateComponent-BdEtcjOX.js} +14 -13
  45. package/chunk/{DischargeDateComponent-D5nNSGFi.js.map → DischargeDateComponent-BdEtcjOX.js.map} +1 -1
  46. package/chunk/{DischargeDateComponent-D5nNSGFi.js → DischargeDateComponent-D6d07Y7U.js} +32 -31
  47. package/chunk/{DischargeDateComponent-ChQ9YmFw.js.map → DischargeDateComponent-D6d07Y7U.js.map} +1 -1
  48. package/chunk/{DriverLicenseNumberComponent-Bio6Kdhd.js → DriverLicenseNumberComponent-CRY3e00p.js} +8 -8
  49. package/chunk/{DriverLicenseNumberComponent-Bio6Kdhd.js.map → DriverLicenseNumberComponent-CRY3e00p.js.map} +1 -1
  50. package/chunk/{DriverLicenseNumberComponent-DYuTSEww.js → DriverLicenseNumberComponent-Cgf1zKU-.js} +8 -8
  51. package/chunk/{DriverLicenseNumberComponent-DYuTSEww.js.map → DriverLicenseNumberComponent-Cgf1zKU-.js.map} +1 -1
  52. package/chunk/{EmailLoopPending-ec5_gIpD.js → EmailLoopPending-B2jrXclB.js} +29 -28
  53. package/chunk/{EmailLoopPending-BkFpbhow.js.map → EmailLoopPending-B2jrXclB.js.map} +1 -1
  54. package/chunk/{EmailLoopPending-BkFpbhow.js → EmailLoopPending-DD6hDThz.js} +20 -19
  55. package/chunk/{EmailLoopPending-ec5_gIpD.js.map → EmailLoopPending-DD6hDThz.js.map} +1 -1
  56. package/chunk/{ExtraMessage--Hy3tDVD.js → ExtraMessage-Cr9XimhR.js} +7 -7
  57. package/chunk/{ExtraMessage--Hy3tDVD.js.map → ExtraMessage-Cr9XimhR.js.map} +1 -1
  58. package/chunk/{ExtraMessage-BYCsMo2w.js → ExtraMessage-GKGPl4bB.js} +7 -7
  59. package/chunk/{ExtraMessage-BYCsMo2w.js.map → ExtraMessage-GKGPl4bB.js.map} +1 -1
  60. package/chunk/{FirstResponderOrganizationComponent-c-CvVWYr.js → FirstResponderOrganizationComponent-ChLlLtyw.js} +9 -9
  61. package/chunk/{FirstResponderOrganizationComponent-DqK6E_Dy.js.map → FirstResponderOrganizationComponent-ChLlLtyw.js.map} +1 -1
  62. package/chunk/{FirstResponderOrganizationComponent-DqK6E_Dy.js → FirstResponderOrganizationComponent-cDV4htmr.js} +9 -9
  63. package/chunk/{FirstResponderOrganizationComponent-c-CvVWYr.js.map → FirstResponderOrganizationComponent-cDV4htmr.js.map} +1 -1
  64. package/chunk/{FormFieldInputSelect-Ct5xyQT1.js → FormFieldInputSelect-C_fKn8g6.js} +7 -7
  65. package/chunk/{FormFieldInputSelect-Ct5xyQT1.js.map → FormFieldInputSelect-C_fKn8g6.js.map} +1 -1
  66. package/chunk/{FormFieldInputSelect-D7Iqh5xe.js → FormFieldInputSelect-CveDYDkJ.js} +7 -7
  67. package/chunk/{FormFieldInputSelect-D7Iqh5xe.js.map → FormFieldInputSelect-CveDYDkJ.js.map} +1 -1
  68. package/chunk/{FormFieldLayout-CsDsfcRv.js → FormFieldLayout-C6rbRhh0.js} +6 -6
  69. package/chunk/{FormFieldLayout-CfcTWF4b.js.map → FormFieldLayout-C6rbRhh0.js.map} +1 -1
  70. package/chunk/{FormFieldLayout-CfcTWF4b.js → FormFieldLayout-Ci7MzpgW.js} +6 -6
  71. package/chunk/{FormFieldLayout-CsDsfcRv.js.map → FormFieldLayout-Ci7MzpgW.js.map} +1 -1
  72. package/chunk/{FormFieldText-CoWhLvws.js → FormFieldText-Dx92JsxR.js} +7 -7
  73. package/chunk/{FormFieldText-Cba-r9FE.js.map → FormFieldText-Dx92JsxR.js.map} +1 -1
  74. package/chunk/{FormFieldText-Cba-r9FE.js → FormFieldText-blykeSRX.js} +7 -7
  75. package/chunk/{FormFieldText-CoWhLvws.js.map → FormFieldText-blykeSRX.js.map} +1 -1
  76. package/chunk/{FormFieldTypeahead-Ld5ptYlw.js → FormFieldTypeahead-CQlvCbvG.js} +113 -112
  77. package/chunk/{FormFieldTypeahead-BOhc30Sb.js.map → FormFieldTypeahead-CQlvCbvG.js.map} +1 -1
  78. package/chunk/{FormFieldTypeahead-BOhc30Sb.js → FormFieldTypeahead-JB0oar0o.js} +98 -97
  79. package/chunk/{FormFieldTypeahead-Ld5ptYlw.js.map → FormFieldTypeahead-JB0oar0o.js.map} +1 -1
  80. package/chunk/{FormFooterComponent-ijH3vfAe.js → FormFooterComponent-Bop5AKfY.js} +397 -396
  81. package/chunk/{FormFooterComponent-ijH3vfAe.js.map → FormFooterComponent-Bop5AKfY.js.map} +1 -1
  82. package/chunk/{FormFooterComponent-DABEABHp.js → FormFooterComponent-zJwpluGY.js} +294 -293
  83. package/chunk/{FormFooterComponent-DABEABHp.js.map → FormFooterComponent-zJwpluGY.js.map} +1 -1
  84. package/chunk/{FormSelectChoice-BDUwdX08.js → FormSelectChoice-DHfe2_vB.js} +27 -26
  85. package/chunk/{FormSelectChoice-BDUwdX08.js.map → FormSelectChoice-DHfe2_vB.js.map} +1 -1
  86. package/chunk/{FormSelectChoice-C0Gq1MNt.js → FormSelectChoice-DU2O04yX.js} +10 -9
  87. package/chunk/{FormSelectChoice-C0Gq1MNt.js.map → FormSelectChoice-DU2O04yX.js.map} +1 -1
  88. package/chunk/{InputText-CQYoeUfw.js → InputText-C79edroa.js} +7 -7
  89. package/chunk/{InputText-C4PEMeZJ.js.map → InputText-C79edroa.js.map} +1 -1
  90. package/chunk/{InputText-C4PEMeZJ.js → InputText-GzAnMGCC.js} +7 -7
  91. package/chunk/{InputText-CQYoeUfw.js.map → InputText-GzAnMGCC.js.map} +1 -1
  92. package/chunk/{LicensedProfessionalOrganizationComponent-Cnl2Kcme.js → LicensedProfessionalOrganizationComponent-D0nTYzOR.js} +9 -9
  93. package/chunk/{LicensedProfessionalOrganizationComponent-BNX5v_8u.js.map → LicensedProfessionalOrganizationComponent-D0nTYzOR.js.map} +1 -1
  94. package/chunk/{LicensedProfessionalOrganizationComponent-BNX5v_8u.js → LicensedProfessionalOrganizationComponent-DVkv7OsN.js} +9 -9
  95. package/chunk/{LicensedProfessionalOrganizationComponent-Cnl2Kcme.js.map → LicensedProfessionalOrganizationComponent-DVkv7OsN.js.map} +1 -1
  96. package/chunk/{LogoComponent-DKi0XFRw.js → LogoComponent-88BDkLwD.js} +6 -6
  97. package/chunk/{LogoComponent-Cq0AZvcg.js.map → LogoComponent-88BDkLwD.js.map} +1 -1
  98. package/chunk/{LogoComponent-Cq0AZvcg.js → LogoComponent-EBhWWnBF.js} +6 -6
  99. package/chunk/{LogoComponent-DKi0XFRw.js.map → LogoComponent-EBhWWnBF.js.map} +1 -1
  100. package/chunk/{LowIncomeOrganizationComponent-To36ITLd.js → LowIncomeOrganizationComponent-BGZPYy94.js} +30 -29
  101. package/chunk/{LowIncomeOrganizationComponent-BCYDmHXb.js.map → LowIncomeOrganizationComponent-BGZPYy94.js.map} +1 -1
  102. package/chunk/{LowIncomeOrganizationComponent-BCYDmHXb.js → LowIncomeOrganizationComponent-DbVcnpE7.js} +16 -15
  103. package/chunk/{LowIncomeOrganizationComponent-To36ITLd.js.map → LowIncomeOrganizationComponent-DbVcnpE7.js.map} +1 -1
  104. package/chunk/{MedicalProfessionalOrganizationComponent-kRth84cD.js → MedicalProfessionalOrganizationComponent-B103HFiT.js} +9 -9
  105. package/chunk/{MedicalProfessionalOrganizationComponent-D0rex1Cj.js.map → MedicalProfessionalOrganizationComponent-B103HFiT.js.map} +1 -1
  106. package/chunk/{MedicalProfessionalOrganizationComponent-D0rex1Cj.js → MedicalProfessionalOrganizationComponent-CqaGlMha.js} +9 -9
  107. package/chunk/{MedicalProfessionalOrganizationComponent-kRth84cD.js.map → MedicalProfessionalOrganizationComponent-CqaGlMha.js.map} +1 -1
  108. package/chunk/{MemberIdComponent-0zKmOZHd.js → MemberIdComponent-D4Vzwef3.js} +8 -8
  109. package/chunk/{MemberIdComponent-0zKmOZHd.js.map → MemberIdComponent-D4Vzwef3.js.map} +1 -1
  110. package/chunk/{MemberIdComponent-DGbmoRTz.js → MemberIdComponent-Wg-YKPkO.js} +8 -8
  111. package/chunk/{MemberIdComponent-DGbmoRTz.js.map → MemberIdComponent-Wg-YKPkO.js.map} +1 -1
  112. package/chunk/{MembershipOrganizationComponent-3xdgFJrW.js → MembershipOrganizationComponent-AjSt0Jta.js} +9 -9
  113. package/chunk/{MembershipOrganizationComponent-3xdgFJrW.js.map → MembershipOrganizationComponent-AjSt0Jta.js.map} +1 -1
  114. package/chunk/{MembershipOrganizationComponent-s9OK5To3.js → MembershipOrganizationComponent-CYf8D71-.js} +9 -9
  115. package/chunk/{MembershipOrganizationComponent-s9OK5To3.js.map → MembershipOrganizationComponent-CYf8D71-.js.map} +1 -1
  116. package/chunk/{Message-Co4QmwXx.js → Message-CgvEiTBA.js} +852 -831
  117. package/chunk/Message-CgvEiTBA.js.map +1 -0
  118. package/chunk/{Message-EAQGVvfk.js → Message-DfC_AQ1s.js} +1313 -1294
  119. package/chunk/Message-DfC_AQ1s.js.map +1 -0
  120. package/chunk/Onfido-CTCgAwnB.js +4 -4
  121. package/chunk/{PersonalInfoStepSubmitButton-CmRtqNBy.js → PersonalInfoStepSubmitButton-CGgVYLFr.js} +23 -22
  122. package/chunk/{PersonalInfoStepSubmitButton-CmRtqNBy.js.map → PersonalInfoStepSubmitButton-CGgVYLFr.js.map} +1 -1
  123. package/chunk/{PersonalInfoStepSubmitButton-DkAmox9o.js → PersonalInfoStepSubmitButton-CwyLvkol.js} +37 -36
  124. package/chunk/{PersonalInfoStepSubmitButton-DkAmox9o.js.map → PersonalInfoStepSubmitButton-CwyLvkol.js.map} +1 -1
  125. package/chunk/{PersonalInfoStepWrapper-tb87u2Px.js → PersonalInfoStepWrapper-DO8bzIxN.js} +26 -25
  126. package/chunk/{PersonalInfoStepWrapper-tb87u2Px.js.map → PersonalInfoStepWrapper-DO8bzIxN.js.map} +1 -1
  127. package/chunk/{PersonalInfoStepWrapper-IBhUSq4D.js → PersonalInfoStepWrapper-DQDT-IR5.js} +16 -15
  128. package/chunk/{PersonalInfoStepWrapper-IBhUSq4D.js.map → PersonalInfoStepWrapper-DQDT-IR5.js.map} +1 -1
  129. package/chunk/{PostalCodeComponent-Q9b6xN4f.js → PostalCodeComponent-D2-q-VEe.js} +8 -8
  130. package/chunk/{PostalCodeComponent-Bl4nrcsZ.js.map → PostalCodeComponent-D2-q-VEe.js.map} +1 -1
  131. package/chunk/{PostalCodeComponent-Bl4nrcsZ.js → PostalCodeComponent-gMvQyiOc.js} +8 -8
  132. package/chunk/{PostalCodeComponent-Q9b6xN4f.js.map → PostalCodeComponent-gMvQyiOc.js.map} +1 -1
  133. package/chunk/{SSN-BNFXeqIA.js → SSN-BSxHJCwe.js} +15 -15
  134. package/chunk/{SSN-BNFXeqIA.js.map → SSN-BSxHJCwe.js.map} +1 -1
  135. package/chunk/{SSN-CfhYWsyu.js → SSN-DeWO2GAh.js} +9 -9
  136. package/chunk/{SSN-CfhYWsyu.js.map → SSN-DeWO2GAh.js.map} +1 -1
  137. package/chunk/{StateSelectComponent-BfEcXNlZ.js → StateSelectComponent-BDbpCFQ3.js} +7 -7
  138. package/chunk/{StateSelectComponent-6gMrhpQH.js.map → StateSelectComponent-BDbpCFQ3.js.map} +1 -1
  139. package/chunk/{StateSelectComponent-6gMrhpQH.js → StateSelectComponent-BFVlF1ZN.js} +7 -7
  140. package/chunk/{StateSelectComponent-BfEcXNlZ.js.map → StateSelectComponent-BFVlF1ZN.js.map} +1 -1
  141. package/chunk/{StatusComponent-BqF3LPIF.js → StatusComponent-C6ZTAeQw.js} +9 -9
  142. package/chunk/{StatusComponent-BqF3LPIF.js.map → StatusComponent-C6ZTAeQw.js.map} +1 -1
  143. package/chunk/{StatusComponent-1cKx-egQ.js → StatusComponent-DvOf8ss6.js} +9 -9
  144. package/chunk/{StatusComponent-1cKx-egQ.js.map → StatusComponent-DvOf8ss6.js.map} +1 -1
  145. package/chunk/{StepAgePersonalInfo-DSLcdxcb.js → StepAgePersonalInfo-CYWrAof9.js} +54 -53
  146. package/chunk/{StepAgePersonalInfo-DSLcdxcb.js.map → StepAgePersonalInfo-CYWrAof9.js.map} +1 -1
  147. package/chunk/{StepAgePersonalInfo-ZFHSY4Fe.js → StepAgePersonalInfo-D66av7Pj.js} +22 -21
  148. package/chunk/{StepAgePersonalInfo-ZFHSY4Fe.js.map → StepAgePersonalInfo-D66av7Pj.js.map} +1 -1
  149. package/chunk/{StepCard-5V1_mxeM.js → StepCard-D3V6UR1D.js} +5 -5
  150. package/chunk/{StepCard-5V1_mxeM.js.map → StepCard-D3V6UR1D.js.map} +1 -1
  151. package/chunk/{StepCard-BPyR9qva.js → StepCard-DXc8h6Xb.js} +5 -5
  152. package/chunk/{StepCard-BPyR9qva.js.map → StepCard-DXc8h6Xb.js.map} +1 -1
  153. package/chunk/StepCollectIdentifier-DLdrh-7w.js +60 -0
  154. package/chunk/{StepCollectIdentifier-CLtTpkgH.js.map → StepCollectIdentifier-DLdrh-7w.js.map} +1 -1
  155. package/chunk/{StepCollectIdentifier-CnT0J7Aj.js → StepCollectIdentifier-ZJ7D-WjU.js} +14 -13
  156. package/chunk/{StepCollectIdentifier-CnT0J7Aj.js.map → StepCollectIdentifier-ZJ7D-WjU.js.map} +1 -1
  157. package/chunk/StepCollectMilitaryPersonalInfoComponent-DJbGWS4M.js +246 -0
  158. package/chunk/{StepCollectMilitaryPersonalInfoComponent-DFcB0eRp.js.map → StepCollectMilitaryPersonalInfoComponent-DJbGWS4M.js.map} +1 -1
  159. package/chunk/{StepCollectMilitaryPersonalInfoComponent-DFcB0eRp.js → StepCollectMilitaryPersonalInfoComponent-DSmwSqbc.js} +35 -34
  160. package/chunk/{StepCollectMilitaryPersonalInfoComponent-DZEJALRJ.js.map → StepCollectMilitaryPersonalInfoComponent-DSmwSqbc.js.map} +1 -1
  161. package/chunk/StepCollectPersonalInfo-CeG8fVhF.js +373 -0
  162. package/chunk/{StepCollectPersonalInfo-Do2Oo3al.js.map → StepCollectPersonalInfo-CeG8fVhF.js.map} +1 -1
  163. package/chunk/{StepCollectPersonalInfo-BZNpqvPl.js → StepCollectPersonalInfo-DdRWfrYV.js} +115 -118
  164. package/chunk/{StepCollectPersonalInfo-BZNpqvPl.js.map → StepCollectPersonalInfo-DdRWfrYV.js.map} +1 -1
  165. package/chunk/{StepCompleteAuthentication-CAXDVjfM.js → StepCompleteAuthentication-D1IWfsjs.js} +27 -26
  166. package/chunk/{StepCompleteAuthentication-CAXDVjfM.js.map → StepCompleteAuthentication-D1IWfsjs.js.map} +1 -1
  167. package/chunk/{StepCompleteAuthentication-fSePWmI2.js → StepCompleteAuthentication-DBHCZhGq.js} +17 -16
  168. package/chunk/{StepCompleteAuthentication-fSePWmI2.js.map → StepCompleteAuthentication-DBHCZhGq.js.map} +1 -1
  169. package/chunk/{StepConsolation-C0CDNg9g.js → StepConsolation-CPFYcoOc.js} +25 -25
  170. package/chunk/{StepConsolation-C0CDNg9g.js.map → StepConsolation-CPFYcoOc.js.map} +1 -1
  171. package/chunk/{StepConsolation-CW3bbf0v.js → StepConsolation-NABOH3lO.js} +9 -9
  172. package/chunk/{StepConsolation-CW3bbf0v.js.map → StepConsolation-NABOH3lO.js.map} +1 -1
  173. package/chunk/{StepDocUpload-BUA9g9FU.js → StepDocUpload-DqOUvNSg.js} +629 -628
  174. package/chunk/{StepDocUpload-BUA9g9FU.js.map → StepDocUpload-DqOUvNSg.js.map} +1 -1
  175. package/chunk/{StepDocUpload-B8UhnURU.js → StepDocUpload-fczs8kQA.js} +616 -615
  176. package/chunk/{StepDocUpload-B8UhnURU.js.map → StepDocUpload-fczs8kQA.js.map} +1 -1
  177. package/chunk/{StepDriverLicensePersonalInfoComponent-xbgdkdJ9.js → StepDriverLicensePersonalInfoComponent-88Y9Uwcu.js} +46 -45
  178. package/chunk/{StepDriverLicensePersonalInfoComponent-QHUPNwTm.js.map → StepDriverLicensePersonalInfoComponent-88Y9Uwcu.js.map} +1 -1
  179. package/chunk/{StepDriverLicensePersonalInfoComponent-QHUPNwTm.js → StepDriverLicensePersonalInfoComponent-CPSiN_5O.js} +21 -20
  180. package/chunk/{StepDriverLicensePersonalInfoComponent-xbgdkdJ9.js.map → StepDriverLicensePersonalInfoComponent-CPSiN_5O.js.map} +1 -1
  181. package/chunk/{StepEmailLoop-DBvLdmaS.js → StepEmailLoop-BIes4Svu.js} +17 -16
  182. package/chunk/{StepEmailLoop-CYEaZvkL.js.map → StepEmailLoop-BIes4Svu.js.map} +1 -1
  183. package/chunk/{StepEmailLoop-CYEaZvkL.js → StepEmailLoop-Dr_sA3k6.js} +34 -33
  184. package/chunk/{StepEmailLoop-DBvLdmaS.js.map → StepEmailLoop-Dr_sA3k6.js.map} +1 -1
  185. package/chunk/{StepEmploymentPersonalInfo-CHxuA3-F.js → StepEmploymentPersonalInfo-CTU21uI0.js} +25 -24
  186. package/chunk/{StepEmploymentPersonalInfo-CHxuA3-F.js.map → StepEmploymentPersonalInfo-CTU21uI0.js.map} +1 -1
  187. package/chunk/StepEmploymentPersonalInfo-WLDtUzKI.js +217 -0
  188. package/chunk/{StepEmploymentPersonalInfo-DBPw56cH.js.map → StepEmploymentPersonalInfo-WLDtUzKI.js.map} +1 -1
  189. package/chunk/StepFirstResponderPersonalInfo-AZz9AX5N.js +183 -0
  190. package/chunk/{StepFirstResponderPersonalInfo-CXAzena6.js.map → StepFirstResponderPersonalInfo-AZz9AX5N.js.map} +1 -1
  191. package/chunk/{StepFirstResponderPersonalInfo-CXAzena6.js → StepFirstResponderPersonalInfo-C1pT5hMm.js} +37 -36
  192. package/chunk/{StepFirstResponderPersonalInfo-CgdMFdXw.js.map → StepFirstResponderPersonalInfo-C1pT5hMm.js.map} +1 -1
  193. package/chunk/{StepGeneralIdentityPersonalInfoComponent-OPtG-bjj.js → StepGeneralIdentityPersonalInfoComponent-B0StDsQE.js} +24 -23
  194. package/chunk/{StepGeneralIdentityPersonalInfoComponent-BmQhE_2E.js.map → StepGeneralIdentityPersonalInfoComponent-B0StDsQE.js.map} +1 -1
  195. package/chunk/{StepGeneralIdentityPersonalInfoComponent-BmQhE_2E.js → StepGeneralIdentityPersonalInfoComponent-BSMCEmW0.js} +51 -50
  196. package/chunk/{StepGeneralIdentityPersonalInfoComponent-OPtG-bjj.js.map → StepGeneralIdentityPersonalInfoComponent-BSMCEmW0.js.map} +1 -1
  197. package/chunk/{StepHybridIdentityPersonalInfoComponent-C3dF2yNR.js → StepHybridIdentityPersonalInfoComponent-DNd9-nsf.js} +25 -24
  198. package/chunk/{StepHybridIdentityPersonalInfoComponent-B-lMMGHk.js.map → StepHybridIdentityPersonalInfoComponent-DNd9-nsf.js.map} +1 -1
  199. package/chunk/{StepHybridIdentityPersonalInfoComponent-B-lMMGHk.js → StepHybridIdentityPersonalInfoComponent-KZEsUdBS.js} +53 -52
  200. package/chunk/{StepHybridIdentityPersonalInfoComponent-C3dF2yNR.js.map → StepHybridIdentityPersonalInfoComponent-KZEsUdBS.js.map} +1 -1
  201. package/chunk/{StepIDCheckLoop-BgH_F8HE.js → StepIDCheckLoop-3UnEqheX.js} +9 -8
  202. package/chunk/{StepIDCheckLoop-BgH_F8HE.js.map → StepIDCheckLoop-3UnEqheX.js.map} +1 -1
  203. package/chunk/StepIDCheckLoop-d2z-7jqP.js +25 -0
  204. package/chunk/{StepIDCheckLoop-CO3AmYRx.js.map → StepIDCheckLoop-d2z-7jqP.js.map} +1 -1
  205. package/chunk/{StepIDCheckLoopOnfido-BA0RF4kB.js → StepIDCheckLoopOnfido-Cb7XYikH.js} +72 -71
  206. package/chunk/{StepIDCheckLoopOnfido-BA0RF4kB.js.map → StepIDCheckLoopOnfido-Cb7XYikH.js.map} +1 -1
  207. package/chunk/{StepIDCheckLoopOnfido-BB6qeJxs.js → StepIDCheckLoopOnfido-DJ9ZYh_P.js} +41 -40
  208. package/chunk/{StepIDCheckLoopOnfido-BB6qeJxs.js.map → StepIDCheckLoopOnfido-DJ9ZYh_P.js.map} +1 -1
  209. package/chunk/{StepIDCheckLoopRegula-CP4kyaPE.js → StepIDCheckLoopRegula-3H6XKEwZ.js} +17 -16
  210. package/chunk/{StepIDCheckLoopRegula-CP4kyaPE.js.map → StepIDCheckLoopRegula-3H6XKEwZ.js.map} +1 -1
  211. package/chunk/{StepIDCheckLoopRegula-gCWjFZ1c.js → StepIDCheckLoopRegula-CdWCtRwC.js} +53 -52
  212. package/chunk/{StepIDCheckLoopRegula-gCWjFZ1c.js.map → StepIDCheckLoopRegula-CdWCtRwC.js.map} +1 -1
  213. package/chunk/{StepLicensedProfessionalPersonalInfo-CtiRAu5Q.js → StepLicensedProfessionalPersonalInfo-BNGRltVQ.js} +26 -25
  214. package/chunk/{StepLicensedProfessionalPersonalInfo-CtiRAu5Q.js.map → StepLicensedProfessionalPersonalInfo-BNGRltVQ.js.map} +1 -1
  215. package/chunk/{StepLicensedProfessionalPersonalInfo-D5w28Ml7.js → StepLicensedProfessionalPersonalInfo-CWA8p6QL.js} +57 -56
  216. package/chunk/{StepLicensedProfessionalPersonalInfo-D5w28Ml7.js.map → StepLicensedProfessionalPersonalInfo-CWA8p6QL.js.map} +1 -1
  217. package/chunk/{StepLowIncomePersonalInfo-B_ICi1vE.js → StepLowIncomePersonalInfo-0AEz1E3R.js} +35 -34
  218. package/chunk/{StepLowIncomePersonalInfo-B_ICi1vE.js.map → StepLowIncomePersonalInfo-0AEz1E3R.js.map} +1 -1
  219. package/chunk/StepLowIncomePersonalInfo-D2UJLR9o.js +235 -0
  220. package/chunk/{StepLowIncomePersonalInfo-CxLlkaQI.js.map → StepLowIncomePersonalInfo-D2UJLR9o.js.map} +1 -1
  221. package/chunk/{StepMedicalProfessionalPersonalInfo-DyruYiy2.js → StepMedicalProfessionalPersonalInfo-CpKegh4O.js} +24 -23
  222. package/chunk/{StepMedicalProfessionalPersonalInfo-DI80bZwP.js.map → StepMedicalProfessionalPersonalInfo-CpKegh4O.js.map} +1 -1
  223. package/chunk/StepMedicalProfessionalPersonalInfo-Dc-Wso4H.js +209 -0
  224. package/chunk/{StepMedicalProfessionalPersonalInfo-DyruYiy2.js.map → StepMedicalProfessionalPersonalInfo-Dc-Wso4H.js.map} +1 -1
  225. package/chunk/{StepMemberPersonalInfo-6gRdCmdv.js → StepMemberPersonalInfo-BIIEM6Rx.js} +43 -42
  226. package/chunk/{StepMemberPersonalInfo-6gRdCmdv.js.map → StepMemberPersonalInfo-BIIEM6Rx.js.map} +1 -1
  227. package/chunk/{StepMemberPersonalInfo-D4RikSDS.js → StepMemberPersonalInfo-kbLGDech.js} +22 -21
  228. package/chunk/{StepMemberPersonalInfo-D4RikSDS.js.map → StepMemberPersonalInfo-kbLGDech.js.map} +1 -1
  229. package/chunk/{StepMoverPersonalInfo-DmXIiQlP.js → StepMoverPersonalInfo-BL_OK75c.js} +20 -19
  230. package/chunk/{StepMoverPersonalInfo-C_lyCZpB.js.map → StepMoverPersonalInfo-BL_OK75c.js.map} +1 -1
  231. package/chunk/{StepMoverPersonalInfo-C_lyCZpB.js → StepMoverPersonalInfo-BnYow0pF.js} +44 -43
  232. package/chunk/{StepMoverPersonalInfo-DmXIiQlP.js.map → StepMoverPersonalInfo-BnYow0pF.js.map} +1 -1
  233. package/chunk/{StepOverrideComponent-Cp4RzSKA.js → StepOverrideComponent-C--TkJYC.js} +15 -14
  234. package/chunk/{StepOverrideComponent-Cp4RzSKA.js.map → StepOverrideComponent-C--TkJYC.js.map} +1 -1
  235. package/chunk/{StepOverrideComponent-D5izbAc2.js → StepOverrideComponent-DSQige76.js} +28 -27
  236. package/chunk/{StepOverrideComponent-D5izbAc2.js.map → StepOverrideComponent-DSQige76.js.map} +1 -1
  237. package/chunk/{StepSMSLoop-B5BkTp8F.js → StepSMSLoop-DL8ykQVV.js} +36 -35
  238. package/chunk/{StepSMSLoop-B5BkTp8F.js.map → StepSMSLoop-DL8ykQVV.js.map} +1 -1
  239. package/chunk/{StepSMSLoop-CKMnnm4p.js → StepSMSLoop-Dv4c6g17.js} +18 -17
  240. package/chunk/{StepSMSLoop-CKMnnm4p.js.map → StepSMSLoop-Dv4c6g17.js.map} +1 -1
  241. package/chunk/StepSSO-BGHCbduX.js +4 -4
  242. package/chunk/StepSSO-ZHByQpHa.js +4 -4
  243. package/chunk/{StepSocialSecurityNumber-CW4kSRvC.js → StepSocialSecurityNumber-DKN79kyV.js} +38 -37
  244. package/chunk/{StepSocialSecurityNumber-CGXxgJoR.js.map → StepSocialSecurityNumber-DKN79kyV.js.map} +1 -1
  245. package/chunk/{StepSocialSecurityNumber-CGXxgJoR.js → StepSocialSecurityNumber-ldF9x3AT.js} +18 -17
  246. package/chunk/{StepSocialSecurityNumber-CW4kSRvC.js.map → StepSocialSecurityNumber-ldF9x3AT.js.map} +1 -1
  247. package/chunk/{StepStudentPersonalInfo-Cw1sTkMu.js → StepStudentPersonalInfo-BY_hL5ag.js} +51 -50
  248. package/chunk/{StepStudentPersonalInfo-Cw1sTkMu.js.map → StepStudentPersonalInfo-BY_hL5ag.js.map} +1 -1
  249. package/chunk/{StepStudentPersonalInfo-DCa9wle2.js → StepStudentPersonalInfo-hDeAUeLR.js} +29 -28
  250. package/chunk/{StepStudentPersonalInfo-DCa9wle2.js.map → StepStudentPersonalInfo-hDeAUeLR.js.map} +1 -1
  251. package/chunk/{StepSuccess-DBgN-lHs.js → StepSuccess-9Zl2xqPT.js} +36 -35
  252. package/chunk/{StepSuccess-BxjVpHbu.js.map → StepSuccess-9Zl2xqPT.js.map} +1 -1
  253. package/chunk/{StepSuccess-BxjVpHbu.js → StepSuccess-Doxwozey.js} +49 -48
  254. package/chunk/{StepSuccess-DBgN-lHs.js.map → StepSuccess-Doxwozey.js.map} +1 -1
  255. package/chunk/{StepTeacherPersonalInfo-CHdZA3pG.js → StepTeacherPersonalInfo-B_0Cphn0.js} +21 -20
  256. package/chunk/{StepTeacherPersonalInfo-BUuP8L15.js.map → StepTeacherPersonalInfo-B_0Cphn0.js.map} +1 -1
  257. package/chunk/{StepTeacherPersonalInfo-BUuP8L15.js → StepTeacherPersonalInfo-CvTvwZBF.js} +43 -42
  258. package/chunk/{StepTeacherPersonalInfo-CHdZA3pG.js.map → StepTeacherPersonalInfo-CvTvwZBF.js.map} +1 -1
  259. package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
  260. package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
  261. package/chunk/{TeacherSchoolComponent-DdqM9CAG.js → TeacherSchoolComponent-B2KYlln4.js} +10 -10
  262. package/chunk/{TeacherSchoolComponent-DI51ulSO.js.map → TeacherSchoolComponent-B2KYlln4.js.map} +1 -1
  263. package/chunk/{TeacherSchoolComponent-DI51ulSO.js → TeacherSchoolComponent-awkajwun.js} +10 -10
  264. package/chunk/{TeacherSchoolComponent-DdqM9CAG.js.map → TeacherSchoolComponent-awkajwun.js.map} +1 -1
  265. package/chunk/TestingRouteOverrides-BJ6TzzV2.js +82 -0
  266. package/chunk/{TestingRouteOverrides-D4n0RZk2.js.map → TestingRouteOverrides-BJ6TzzV2.js.map} +1 -1
  267. package/chunk/TestingRouteOverrides-g0sNWumM.js +78 -0
  268. package/chunk/{TestingRouteOverrides-uUJqRbL9.js.map → TestingRouteOverrides-g0sNWumM.js.map} +1 -1
  269. package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
  270. package/chunk/ar-D5CO913q.js +4 -4
  271. package/chunk/bg-1mhA5kYF.js +4 -4
  272. package/chunk/bn-IN-CpDqyRb_.js +4 -4
  273. package/chunk/clsx-CB5rauS5.js +4 -4
  274. package/chunk/{countryUtils-_E2yHebn.js → countryUtils-2xROZ0HR.js} +5 -5
  275. package/chunk/{countryUtils-D0YJQD1a.js.map → countryUtils-2xROZ0HR.js.map} +1 -1
  276. package/chunk/countryUtils-BrbLtF3F.js +12 -0
  277. package/chunk/{countryUtils-_E2yHebn.js.map → countryUtils-BrbLtF3F.js.map} +1 -1
  278. package/chunk/cs-Chh7FAGt.js +4 -4
  279. package/chunk/da-DwrVoxto.js +4 -4
  280. package/chunk/de-IWGZLhgY.js +4 -4
  281. package/chunk/{downshift.esm--vh-uk_K.js → downshift.esm-BuTrnTuC.js} +7 -7
  282. package/chunk/{downshift.esm--vh-uk_K.js.map → downshift.esm-BuTrnTuC.js.map} +1 -1
  283. package/chunk/{downshift.esm-ykrV7LvO.js → downshift.esm-CZhMr0dQ.js} +7 -7
  284. package/chunk/{downshift.esm-ykrV7LvO.js.map → downshift.esm-CZhMr0dQ.js.map} +1 -1
  285. package/chunk/el-DbDcvSPJ.js +4 -4
  286. package/chunk/{empties-zYUS2tEa.js → empties-CrGLsC5v.js} +5 -5
  287. package/chunk/{empties-BOZDJKb1.js.map → empties-CrGLsC5v.js.map} +1 -1
  288. package/chunk/{empties-BOZDJKb1.js → empties-DVYWFiU4.js} +5 -5
  289. package/chunk/{empties-zYUS2tEa.js.map → empties-DVYWFiU4.js.map} +1 -1
  290. package/chunk/en-GB-BBkjjtqq.js +4 -4
  291. package/chunk/es-ES-DWimqEZ_.js +4 -4
  292. package/chunk/es-qhC-seq5.js +4 -4
  293. package/chunk/et-yF9G-Mym.js +4 -4
  294. package/chunk/eventEmitter-CSG6jR7V.js +4 -4
  295. package/chunk/fa-BcdSf7og.js +4 -4
  296. package/chunk/fi-D-IP_KHm.js +4 -4
  297. package/chunk/fr-BmUuYxk0.js +4 -4
  298. package/chunk/fr-CA-DVQ4xmzZ.js +4 -4
  299. package/chunk/ga-DuZycND3.js +4 -4
  300. package/chunk/hi-IN-l6Rn5Ewm.js +4 -4
  301. package/chunk/{hooks-DPmC5aMQ.js → hooks-Bl6VU6hP.js} +72 -71
  302. package/chunk/{hooks-DPmC5aMQ.js.map → hooks-Bl6VU6hP.js.map} +1 -1
  303. package/chunk/{hooks-DY9jekmV.js → hooks-j2dPIOl1.js} +60 -59
  304. package/chunk/{hooks-DY9jekmV.js.map → hooks-j2dPIOl1.js.map} +1 -1
  305. package/chunk/hr-BtqyDzDB.js +4 -4
  306. package/chunk/hu-C6syKJfb.js +4 -4
  307. package/chunk/id-GgI-Z2a5.js +4 -4
  308. package/chunk/{options-kkjACM14.js → intl-D0f52P7V.js} +2102 -2275
  309. package/chunk/intl-D0f52P7V.js.map +1 -0
  310. package/chunk/is-CvmKEON9.js +4 -4
  311. package/chunk/it-CnmveGgC.js +4 -4
  312. package/chunk/iw-DFUYHkxF.js +4 -4
  313. package/chunk/ja-CjVb2tWW.js +4 -4
  314. package/chunk/{jsx-runtime-n0jD1uEy.js → jsx-runtime-ClghfwTa.js} +18 -18
  315. package/chunk/{jsx-runtime-DmTh-fvV.js.map → jsx-runtime-ClghfwTa.js.map} +1 -1
  316. package/chunk/{jsx-runtime-DmTh-fvV.js → jsx-runtime-FfARtXk2.js} +18 -18
  317. package/chunk/{jsx-runtime-n0jD1uEy.js.map → jsx-runtime-FfARtXk2.js.map} +1 -1
  318. package/chunk/kk-Dvz4nK6K.js +4 -4
  319. package/chunk/ko-DzOqBMGC.js +4 -4
  320. package/chunk/lo-C2WPq55d.js +4 -4
  321. package/chunk/lt-BSDYvjTF.js +4 -4
  322. package/chunk/lv-CefDPT-M.js +4 -4
  323. package/chunk/mockProgramTheme-CBqgtg7A.js +65 -0
  324. package/chunk/mockProgramTheme-CBqgtg7A.js.map +1 -0
  325. package/chunk/{mocks-C69Rqq8D.js → mocks-Baq-FHji.js} +9 -9
  326. package/chunk/{mocks-C69Rqq8D.js.map → mocks-Baq-FHji.js.map} +1 -1
  327. package/chunk/{mocks-CvUvRHV_.js → mocks-DLTwXwzM.js} +9 -9
  328. package/chunk/{mocks-CvUvRHV_.js.map → mocks-DLTwXwzM.js.map} +1 -1
  329. package/chunk/ms-BjestZxy.js +4 -4
  330. package/chunk/nl-B1FyUfCT.js +4 -4
  331. package/chunk/nl-BE-CbeAd3nq.js +4 -4
  332. package/chunk/no-Dr633Ddi.js +4 -4
  333. package/chunk/{intl-DwZU2l1o.js → options-CvRaXPRs.js} +1112 -1293
  334. package/chunk/options-CvRaXPRs.js.map +1 -0
  335. package/chunk/pl-UYTjMIq_.js +4 -4
  336. package/chunk/programThemeGetters-Bhp4oSEn.js +150 -0
  337. package/chunk/{programThemeGetters-CZMLVLDB.js.map → programThemeGetters-Bhp4oSEn.js.map} +1 -1
  338. package/chunk/{programThemeGetters-rty9XxxN.js → programThemeGetters-CQmR9Vit.js} +51 -46
  339. package/chunk/{programThemeGetters-rty9XxxN.js.map → programThemeGetters-CQmR9Vit.js.map} +1 -1
  340. package/chunk/pt-BR-C8SYMT-J.js +4 -4
  341. package/chunk/pt-uH-M3GdN.js +4 -4
  342. package/chunk/{refs-DC2-V94e.js → refs-Mq0rtW9K.js} +5 -5
  343. package/chunk/{refs-D3MifwJO.js.map → refs-Mq0rtW9K.js.map} +1 -1
  344. package/chunk/ro-CAOSXZ7h.js +4 -4
  345. package/chunk/ru-iwYoEydL.js +4 -4
  346. package/chunk/runtimeTypes-B2AGNJMT.js +193 -0
  347. package/chunk/runtimeTypes-B2AGNJMT.js.map +1 -0
  348. package/chunk/sk-DYYNV3zw.js +4 -4
  349. package/chunk/sl-D_-eeM5N.js +4 -4
  350. package/chunk/sr-BTi9_anL.js +4 -4
  351. package/chunk/{stepComponentHelpers-BhSQbOUm.js → stepComponentHelpers-BaQqHci7.js} +43 -42
  352. package/chunk/{stepComponentHelpers-BhSQbOUm.js.map → stepComponentHelpers-BaQqHci7.js.map} +1 -1
  353. package/chunk/{stepComponentHelpers-DN6dYb4A.js → stepComponentHelpers-MbfsqlvF.js} +31 -30
  354. package/chunk/{stepComponentHelpers-DN6dYb4A.js.map → stepComponentHelpers-MbfsqlvF.js.map} +1 -1
  355. package/chunk/strings-DWLVdUcm.js +4 -4
  356. package/chunk/sv-DRwY4shG.js +4 -4
  357. package/chunk/sw-Bvj2mYmM.js +4 -4
  358. package/chunk/ta-CmtaYoNe.js +4 -4
  359. package/chunk/th-12r2yKkJ.js +4 -4
  360. package/chunk/tl-BGNfO7md.js +4 -4
  361. package/chunk/tr-DH2ZSJhs.js +4 -4
  362. package/chunk/uk-CELBZlTd.js +4 -4
  363. package/chunk/ur-MR8DTbmd.js +4 -4
  364. package/chunk/useCollectFieldsEndpoint-DEgkDOiB.js +62 -0
  365. package/chunk/{useCollectFieldsEndpoint-CN2icks6.js.map → useCollectFieldsEndpoint-DEgkDOiB.js.map} +1 -1
  366. package/chunk/{useCollectFieldsEndpoint-CkXsQoYj.js → useCollectFieldsEndpoint-Dj6ahj-p.js} +17 -16
  367. package/chunk/{useCollectFieldsEndpoint-CkXsQoYj.js.map → useCollectFieldsEndpoint-Dj6ahj-p.js.map} +1 -1
  368. package/chunk/{useMetrics-Bd0EhnNL.js → useMetrics-BEoV8Edp.js} +14 -13
  369. package/chunk/{useMetrics-Bd0EhnNL.js.map → useMetrics-BEoV8Edp.js.map} +1 -1
  370. package/chunk/{useMetrics-h8PVjepD.js → useMetrics-CRK2aOGa.js} +20 -19
  371. package/chunk/{useMetrics-h8PVjepD.js.map → useMetrics-CRK2aOGa.js.map} +1 -1
  372. package/chunk/vi-DtZ-SqD5.js +4 -4
  373. package/chunk/zh-DjyVyYac.js +4 -4
  374. package/chunk/zh-HK-CN1HarHq.js +4 -4
  375. package/chunk/zu-DPhgIh1z.js +4 -4
  376. package/package.json +1 -1
  377. package/sheerid-install.css +4 -4
  378. package/sheerid-install.js +4 -4
  379. package/sheerid.css +4 -4
  380. package/sheerid.js +814 -813
  381. package/sheerid.js.map +1 -1
  382. package/chunk/ApiUrls-MtK1lfo-.js +0 -50
  383. package/chunk/ApiUrls-XBNB9DI6.js +0 -44
  384. package/chunk/Message-Co4QmwXx.js.map +0 -1
  385. package/chunk/Message-EAQGVvfk.js.map +0 -1
  386. package/chunk/StepCollectIdentifier-CLtTpkgH.js +0 -59
  387. package/chunk/StepCollectMilitaryPersonalInfoComponent-DZEJALRJ.js +0 -245
  388. package/chunk/StepCollectPersonalInfo-Do2Oo3al.js +0 -368
  389. package/chunk/StepEmploymentPersonalInfo-DBPw56cH.js +0 -216
  390. package/chunk/StepFirstResponderPersonalInfo-CgdMFdXw.js +0 -182
  391. package/chunk/StepIDCheckLoop-CO3AmYRx.js +0 -24
  392. package/chunk/StepLowIncomePersonalInfo-CxLlkaQI.js +0 -234
  393. package/chunk/StepMedicalProfessionalPersonalInfo-DI80bZwP.js +0 -208
  394. package/chunk/TestingRouteOverrides-D4n0RZk2.js +0 -81
  395. package/chunk/TestingRouteOverrides-uUJqRbL9.js +0 -77
  396. package/chunk/countryUtils-D0YJQD1a.js +0 -12
  397. package/chunk/intl-DwZU2l1o.js.map +0 -1
  398. package/chunk/options-kkjACM14.js.map +0 -1
  399. package/chunk/programThemeGetters-CZMLVLDB.js +0 -153
  400. package/chunk/refs-D3MifwJO.js +0 -29
  401. package/chunk/refs-DC2-V94e.js.map +0 -1
  402. package/chunk/useCollectFieldsEndpoint-CN2icks6.js +0 -61
@@ -1 +1 @@
1
- {"version":3,"file":"StepStudentPersonalInfo-Cw1sTkMu.js","names":[],"sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\nimport { useFlag } from \"../../FeatureFlags/hooks\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element;\n}\n\nexport const CVECNumberComponent = ({\n value,\n isErrored,\n onChange,\n explanation,\n placeholder = \"\",\n isRequired = false,\n}: FormFieldComponentProps & PassedProps) => {\n const { msg } = useMessage();\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n\n const getDefaultExplanation = () =>\n showCvecInputVariation === \"labeled-optional\" ? (\n <FormattedHTMLMessage\n id=\"cvecNumberExplanation\"\n defaultMessage=\"Optional - Add your CVEC number to increase your chances of being verified instantly.\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"_EXPERIMENTAL.cvecNumberExplanation\"\n defaultMessage=\"Add your CVEC number to increase your chances of being verified instantly.\"\n />\n );\n // #endregion include-cvec-field-france-student\n\n const isFieldHidden = getFieldConfigByFieldId(\"cvecNumber\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"cvecNumber\"\n value={value}\n onChange={onChange}\n placeholder={placeholder || msg({ id: \"cvecNumber\" })}\n label={<FormattedHTMLMessage id=\"cvecNumber\" defaultMessage=\"CVEC certificate number\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidCvecNumber\"\n defaultMessage=\"Invalid CVEC certificate number\"\n />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n explanation={explanation || getDefaultExplanation()}\n />\n );\n};\n","/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useMessage } from \"@/components/Message\";\n\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n Organization,\n StudentPersonalInfoResponse,\n CustomFormFieldConfig,\n type FieldId,\n type FormSelectChoice,\n type StudentStatusSelection,\n} from \"@/lib/types/types\";\n\nimport { StudentStatusDefaultMessagesEnum, VerificationStepsEnum } from \"@/lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"@/lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\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 { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\nimport { CVECNumberComponent } from \"../FormFields/CVECNumber/CVECNumberComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\n\n// Graduation status dropdown is only Student/Graduate options, not the raw `availableStatuses`\nconst STATUS_SELECTIONS = Object.keys(StudentStatusDefaultMessagesEnum) as StudentStatusSelection[];\n\ninterface StepStudentPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport const StepStudentPersonalInfoComponent = ({\n verificationService,\n}: StepStudentPersonalInfoComponentProps) => {\n const { msg } = useMessage();\n const viewModel = verificationService.viewModel as StudentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as StudentPersonalInfoResponse;\n const options = getOptions();\n\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n const showCvecInput =\n showCvecInputVariation !== \"control\" &&\n showCvecInputVariation !== \"default\" &&\n viewModel?.countryChoice?.value === \"FR\";\n // #endregion include-cvec-field-france-student\n\n // The \"Graduation Status\" input applies only when the program offers a genuine\n // Student or Graduate choice: GRADUATE and at least one non-graduate student status\n // The \"Student\" option includes all program configured non-graduate statuses\n const availableStatuses = verificationResponse.availableStatuses ?? [];\n const showGraduateStatusInput =\n availableStatuses.includes(\"GRADUATE\") && availableStatuses.some((s) => s !== \"GRADUATE\");\n\n React.useEffect(() => {\n let skip: FieldId[] = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"cvecNumber\" && id !== \"status\",\n );\n if (!showCvecInput) {\n // Don't validate CVEC number if country is not France\n skip = [...skip, \"cvecNumber\"];\n }\n if (!showGraduateStatusInput) {\n // Only require a graduation status when the program offers the Student/Graduate choice.\n skip = [...skip, \"status\"];\n }\n updateStudentViewModel(\"fieldsToSkipValidation\", skip);\n }, [showCvecInput, showGraduateStatusInput]);\n\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateStudentViewModel = (key: keyof StudentPersonalInfoViewModel, value: any) => {\n const nextState: StudentPersonalInfoViewModel = produce(\n viewModel,\n (draft: StudentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n\n const getStatusChoice = (status?: StudentStatusSelection): FormSelectChoice =>\n status\n ? {\n value: status,\n label: msg({ id: status }),\n }\n : { value: \"\", label: \"\" };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"student-personal-info\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {showGraduateStatusInput && (\n <Status\n segmentId=\"student\"\n label={<FormattedHTMLMessage id=\"graduationStatus\" defaultMessage=\"Graduation Status\" />}\n value={getStatusChoice(viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n options={STATUS_SELECTIONS.map(getStatusChoice)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n const value = status ? (status.value as StudentStatusSelection) : undefined;\n updateStudentViewModel(\"status\", value);\n updateFieldValidationErrorsByFieldId(\"status\", value ?? \"\", verificationService);\n }}\n />\n )}\n <CollegeName\n value={(verificationService.viewModel as StudentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n {showCvecInput && (\n <CVECNumberComponent\n isRequired={getFieldConfigByFieldId(\"cvecNumber\")?.requireIfOptional}\n value={viewModel.cvecNumber}\n isErrored={!!fieldValidationErrors.cvecNumber}\n disabled={getFieldConfigByFieldId(\"cvecNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"cvecNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"cvecNumber\", newValue, verificationService);\n }}\n />\n )}\n <div className=\"sid-names-explanation sid-l-space-top-md\">\n <FormattedHTMLMessage\n id=\"step.personalInfo.nameInstructions\"\n defaultMessage=\"Personal or school email is fine\"\n />\n </div>\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"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 updateStudentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"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 disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\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 disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectStudentPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Student Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;4CAaA,KAAA,EAAA,UAAA,cAAA,aAAA,gBAAA,iBAAA,IAAA,gBAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;AAoDA,GCdM,IAAoB,OAAO,KAAK,CAAgC,GAMzD,KAAoC,EAC/C,6BAC2C;CAC3C,IAAM,EAAE,WAAQ,EAAW,GACrB,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAU,EAAW,GAGrB,IAAyB,EAAQ,mCAAmC,GACpE,IACJ,MAA2B,aAC3B,MAA2B,aAC3B,GAAW,eAAe,UAAU,MAMhC,IAAoB,EAAqB,qBAAqB,CAAC,GAC/D,IACJ,EAAkB,SAAS,UAAU,KAAK,EAAkB,MAAM,MAAM,MAAM,UAAU;CAE1F,EAAM,gBAAgB;E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AAqB,QAAO;GAAsB,CAAA;GACrF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
1
+ {"version":3,"file":"StepStudentPersonalInfo-BY_hL5ag.js","names":[],"sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\nimport { useFlag } from \"../../FeatureFlags/hooks\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element;\n}\n\nexport const CVECNumberComponent = ({\n value,\n isErrored,\n onChange,\n explanation,\n placeholder = \"\",\n isRequired = false,\n}: FormFieldComponentProps & PassedProps) => {\n const { msg } = useMessage();\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n\n const getDefaultExplanation = () =>\n showCvecInputVariation === \"labeled-optional\" ? (\n <FormattedHTMLMessage\n id=\"cvecNumberExplanation\"\n defaultMessage=\"Optional - Add your CVEC number to increase your chances of being verified instantly.\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"_EXPERIMENTAL.cvecNumberExplanation\"\n defaultMessage=\"Add your CVEC number to increase your chances of being verified instantly.\"\n />\n );\n // #endregion include-cvec-field-france-student\n\n const isFieldHidden = getFieldConfigByFieldId(\"cvecNumber\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"cvecNumber\"\n value={value}\n onChange={onChange}\n placeholder={placeholder || msg({ id: \"cvecNumber\" })}\n label={<FormattedHTMLMessage id=\"cvecNumber\" defaultMessage=\"CVEC certificate number\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidCvecNumber\"\n defaultMessage=\"Invalid CVEC certificate number\"\n />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n explanation={explanation || getDefaultExplanation()}\n />\n );\n};\n","/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useMessage } from \"@/components/Message\";\n\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n Organization,\n StudentPersonalInfoResponse,\n CustomFormFieldConfig,\n type FieldId,\n type FormSelectChoice,\n type StudentStatusSelection,\n} from \"@/lib/types/types\";\n\nimport { StudentStatusDefaultMessagesEnum, VerificationStepsEnum } from \"@/lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"@/lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\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 { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\nimport { CVECNumberComponent } from \"../FormFields/CVECNumber/CVECNumberComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\n\n// Graduation status dropdown is only Student/Graduate options, not the raw `availableStatuses`\nconst STATUS_SELECTIONS = Object.keys(StudentStatusDefaultMessagesEnum) as StudentStatusSelection[];\n\ninterface StepStudentPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport const StepStudentPersonalInfoComponent = ({\n verificationService,\n}: StepStudentPersonalInfoComponentProps) => {\n const { msg } = useMessage();\n const viewModel = verificationService.viewModel as StudentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as StudentPersonalInfoResponse;\n const options = getOptions();\n\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n const showCvecInput =\n showCvecInputVariation !== \"control\" &&\n showCvecInputVariation !== \"default\" &&\n viewModel?.countryChoice?.value === \"FR\";\n // #endregion include-cvec-field-france-student\n\n // The \"Graduation Status\" input applies only when the program offers a genuine\n // Student or Graduate choice: GRADUATE and at least one non-graduate student status\n // The \"Student\" option includes all program configured non-graduate statuses\n const availableStatuses = verificationResponse.availableStatuses ?? [];\n const showGraduateStatusInput =\n availableStatuses.includes(\"GRADUATE\") && availableStatuses.some((s) => s !== \"GRADUATE\");\n\n React.useEffect(() => {\n let skip: FieldId[] = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"cvecNumber\" && id !== \"status\",\n );\n if (!showCvecInput) {\n // Don't validate CVEC number if country is not France\n skip = [...skip, \"cvecNumber\"];\n }\n if (!showGraduateStatusInput) {\n // Only require a graduation status when the program offers the Student/Graduate choice.\n skip = [...skip, \"status\"];\n }\n updateStudentViewModel(\"fieldsToSkipValidation\", skip);\n }, [showCvecInput, showGraduateStatusInput]);\n\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateStudentViewModel = (key: keyof StudentPersonalInfoViewModel, value: any) => {\n const nextState: StudentPersonalInfoViewModel = produce(\n viewModel,\n (draft: StudentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n\n const getStatusChoice = (status?: StudentStatusSelection): FormSelectChoice =>\n status\n ? {\n value: status,\n label: msg({ id: status }),\n }\n : { value: \"\", label: \"\" };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"student-personal-info\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {showGraduateStatusInput && (\n <Status\n segmentId=\"student\"\n label={<FormattedHTMLMessage id=\"graduationStatus\" defaultMessage=\"Graduation Status\" />}\n value={getStatusChoice(viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n options={STATUS_SELECTIONS.map(getStatusChoice)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n const value = status ? (status.value as StudentStatusSelection) : undefined;\n updateStudentViewModel(\"status\", value);\n updateFieldValidationErrorsByFieldId(\"status\", value ?? \"\", verificationService);\n }}\n />\n )}\n <CollegeName\n value={(verificationService.viewModel as StudentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n {showCvecInput && (\n <CVECNumberComponent\n isRequired={getFieldConfigByFieldId(\"cvecNumber\")?.requireIfOptional}\n value={viewModel.cvecNumber}\n isErrored={!!fieldValidationErrors.cvecNumber}\n disabled={getFieldConfigByFieldId(\"cvecNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"cvecNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"cvecNumber\", newValue, verificationService);\n }}\n />\n )}\n <div className=\"sid-names-explanation sid-l-space-top-md\">\n <FormattedHTMLMessage\n id=\"step.personalInfo.nameInstructions\"\n defaultMessage=\"Personal or school email is fine\"\n />\n </div>\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"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 updateStudentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"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 disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\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 disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectStudentPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Student Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;4CAaA,KAAA,EAAA,UAAA,cAAA,aAAA,gBAAA,iBAAA,IAAA,gBAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;AAoDA,GCdM,IAAoB,OAAO,KAAK,CAAgC,GAMzD,KAAoC,EAC/C,6BAC2C;CAC3C,IAAM,EAAE,WAAQ,EAAW,GACrB,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAU,EAAW,GAGrB,IAAyB,EAAQ,mCAAmC,GACpE,IACJ,MAA2B,aAC3B,MAA2B,aAC3B,GAAW,eAAe,UAAU,MAMhC,IAAoB,EAAqB,qBAAqB,CAAC,GAC/D,IACJ,EAAkB,SAAS,UAAU,KAAK,EAAkB,MAAM,MAAM,MAAM,UAAU;CAE1F,EAAM,gBAAgB;EACpB,IAAI,KAAmB,EAAoB,WAAW,0BAA0B,CAAC,GAAG,QACjF,MAAO,MAAO,gBAAgB,MAAO,QACxC;EASA,AARK,MAEH,IAAO,CAAC,GAAG,GAAM,YAAY,IAE1B,MAEH,IAAO,CAAC,GAAG,GAAM,QAAQ,IAE3B,EAAuB,0BAA0B,CAAI;CACvD,GAAG,CAAC,GAAe,CAAuB,CAAC;CAE3C,IAAM,IAAqB,EAAsB,CAAoB,GAE/D,KAA0B,GAAyC,MAAe;EACtF,IAAM,IAA0C,EAC9C,IACC,MAAwC;GACvC,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C,GAEM,IAAS,EAAU,aAAa,OAEhC,KAAmB,MACvB,IACI;EACE,OAAO;EACP,OAAO,EAAI,EAAE,IAAI,EAAO,CAAC;CAC3B,IACA;EAAE,OAAO;EAAI,OAAO;CAAG;CAE7B,OACE,i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EAAoB,aAAa;IAC/C,OAAO,EAAU;IACjB,WAAW,CAAC,CAAC,EAAsB;IACnC,UAAU,EAAwB,aAAa,GAAG;IAClD,WAAW,MAAa;KAEtB,AADA,EAAuB,eAAe,CAAQ,GAC9C,EAAqC,eAAe,GAAU,CAAmB;IACnF;IACA,qBAAqB,EAAU,iBAAiB,EAAU,cAAc;GACzE,CAAA,IACC;IACF,EAAQ,oBAAoB,CAAC,GAAG,KAAK,MACrC,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAAG;GACJ,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,UAAU,EAAwB,oBAAoB,GAAG;IACzD,WAAW,MAAa;KAKtB,AAJA,EAAuB,YAAY;MACjC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;GACZ,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GACrF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
@@ -4,30 +4,31 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.283.0
8
- * BUILD_TIMESTAMP: 1789491616257
9
- * BUILD_DATE: Tue Sep 15 2026 17:00:16 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 3d15a02db4caf4d52123bea847235a8fe8f053dd
7
+ * VERSION: 2.285.0
8
+ * BUILD_TIMESTAMP: 1789509918822
9
+ * BUILD_DATE: Tue Sep 15 2026 22:05:18 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: 58cd071e490202b546ec8addac4434c422af952d
11
11
  */
12
- import { At as e, Gt as t, Pt as n, p as r, s as i } from "./intl-DwZU2l1o.js";
13
- import { c as a, n as o, t as s } from "./jsx-runtime-DmTh-fvV.js";
14
- import { n as c } from "./Message-Co4QmwXx.js";
15
- import { p as l } from "./FormFooterComponent-DABEABHp.js";
16
- import { t as u } from "./hooks-DY9jekmV.js";
12
+ import { Ot as e, p as t, s as n } from "./intl-D0f52P7V.js";
13
+ import { b as r, p as i } from "./runtimeTypes-B2AGNJMT.js";
14
+ import { c as a, n as o, t as s } from "./jsx-runtime-FfARtXk2.js";
15
+ import { n as c } from "./Message-CgvEiTBA.js";
16
+ import { p as l } from "./FormFooterComponent-zJwpluGY.js";
17
+ import { t as u } from "./hooks-j2dPIOl1.js";
17
18
  import { t as d } from "../_mysheerid-preview.js";
18
- import { _ as f, c as p, g as m, i as h } from "./stepComponentHelpers-DN6dYb4A.js";
19
- import { a as g, i as _, n as v, o as y, s as b, t as x } from "./CaptchaComponent-f5RlyrJ_.js";
20
- import { t as S } from "./FormFieldText-CoWhLvws.js";
21
- import { n as C, t as w } from "./PersonalInfoStepSubmitButton-CmRtqNBy.js";
22
- import { t as T } from "./BirthDateComponent-Bc9jwV4J.js";
23
- import { t as E } from "./CountryComponentWrapper-cqOW7qGW.js";
24
- import { t as D } from "./ExtraMessage-BYCsMo2w.js";
25
- import { t as O } from "./ChangeLocaleComponent-DRzH3cx2.js";
26
- import { t as k } from "./PersonalInfoStepWrapper-tb87u2Px.js";
27
- import { t as A } from "./CollegeNameComponent-B8zeKprU.js";
28
- import { t as j } from "./StatusComponent-BqF3LPIF.js";
19
+ import { _ as f, c as p, g as m, i as h } from "./stepComponentHelpers-MbfsqlvF.js";
20
+ import { a as g, i as _, n as v, o as y, s as b, t as x } from "./CaptchaComponent-B7svAHl1.js";
21
+ import { t as S } from "./FormFieldText-Dx92JsxR.js";
22
+ import { n as C, t as w } from "./PersonalInfoStepSubmitButton-CGgVYLFr.js";
23
+ import { t as T } from "./BirthDateComponent-DGw_8Een.js";
24
+ import { t as E } from "./CountryComponentWrapper-D957aXLD.js";
25
+ import { t as D } from "./ExtraMessage-GKGPl4bB.js";
26
+ import { t as O } from "./ChangeLocaleComponent-C0bratCZ.js";
27
+ import { t as k } from "./PersonalInfoStepWrapper-DO8bzIxN.js";
28
+ import { t as A } from "./CollegeNameComponent-C9NzDPDJ.js";
29
+ import { t as j } from "./StatusComponent-C6ZTAeQw.js";
29
30
  //#region src/components/FormFields/CVECNumber/CVECNumberComponent.tsx
30
- var M = /* @__PURE__ */ t(a(), 1), N = s(), P = ({ value: e, isErrored: t, onChange: n, explanation: r, placeholder: i = "", isRequired: a = !1 }) => {
31
+ var M = /* @__PURE__ */ e(a(), 1), N = s(), P = ({ value: e, isErrored: t, onChange: n, explanation: r, placeholder: i = "", isRequired: a = !1 }) => {
31
32
  let { msg: s } = c(), l = u("include-cvec-field-france-student");
32
33
  return h("cvecNumber")?.hidden ? null : /* @__PURE__ */ (0, N.jsx)(S, {
33
34
  fieldId: "cvecNumber",
@@ -52,20 +53,20 @@ var M = /* @__PURE__ */ t(a(), 1), N = s(), P = ({ value: e, isErrored: t, onCha
52
53
  defaultMessage: "Add your CVEC number to increase your chances of being verified instantly."
53
54
  }))
54
55
  });
55
- }, F = Object.keys(e), I = ({ verificationService: e }) => {
56
- let { msg: t } = c(), a = e.viewModel, { fieldValidationErrors: s } = e, S = e.verificationResponse, I = i(), L = u("include-cvec-field-france-student"), R = L !== "control" && L !== "default" && a?.countryChoice?.value === "FR", z = S.availableStatuses ?? [], B = z.includes("GRADUATE") && z.some((e) => e !== "GRADUATE");
56
+ }, F = Object.keys(i), I = ({ verificationService: e }) => {
57
+ let { msg: i } = c(), a = e.viewModel, { fieldValidationErrors: s } = e, S = e.verificationResponse, I = n(), L = u("include-cvec-field-france-student"), R = L !== "control" && L !== "default" && a?.countryChoice?.value === "FR", z = S.availableStatuses ?? [], B = z.includes("GRADUATE") && z.some((e) => e !== "GRADUATE");
57
58
  M.useEffect(() => {
58
59
  let t = (e.viewModel?.fieldsToSkipValidation || []).filter((e) => e !== "cvecNumber" && e !== "status");
59
60
  R || (t = [...t, "cvecNumber"]), B || (t = [...t, "status"]), H("fieldsToSkipValidation", t);
60
61
  }, [R, B]);
61
- let V = l(S), H = (t, n) => {
62
- let i = r(a, (e) => {
63
- e[t] = n;
62
+ let V = l(S), H = (n, r) => {
63
+ let i = t(a, (e) => {
64
+ e[n] = r;
64
65
  });
65
66
  e.updateViewModel(i);
66
67
  }, U = a.localeChoice.value, W = (e) => e ? {
67
68
  value: e,
68
- label: t({ id: e })
69
+ label: i({ id: e })
69
70
  } : {
70
71
  value: "",
71
72
  label: ""
@@ -201,7 +202,7 @@ var M = /* @__PURE__ */ t(a(), 1), N = s(), P = ({ value: e, isErrored: t, onCha
201
202
  isErrored: !!s.captchaToken
202
203
  }),
203
204
  /* @__PURE__ */ (0, N.jsx)(w, {
204
- step: n.collectStudentPersonalInfo,
205
+ step: r.collectStudentPersonalInfo,
205
206
  verificationService: e,
206
207
  viewModel: a,
207
208
  failedInstantMatch: V,
@@ -1 +1 @@
1
- {"version":3,"file":"StepStudentPersonalInfo-DCa9wle2.js","names":[],"sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\nimport { useFlag } from \"../../FeatureFlags/hooks\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element;\n}\n\nexport const CVECNumberComponent = ({\n value,\n isErrored,\n onChange,\n explanation,\n placeholder = \"\",\n isRequired = false,\n}: FormFieldComponentProps & PassedProps) => {\n const { msg } = useMessage();\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n\n const getDefaultExplanation = () =>\n showCvecInputVariation === \"labeled-optional\" ? (\n <FormattedHTMLMessage\n id=\"cvecNumberExplanation\"\n defaultMessage=\"Optional - Add your CVEC number to increase your chances of being verified instantly.\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"_EXPERIMENTAL.cvecNumberExplanation\"\n defaultMessage=\"Add your CVEC number to increase your chances of being verified instantly.\"\n />\n );\n // #endregion include-cvec-field-france-student\n\n const isFieldHidden = getFieldConfigByFieldId(\"cvecNumber\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"cvecNumber\"\n value={value}\n onChange={onChange}\n placeholder={placeholder || msg({ id: \"cvecNumber\" })}\n label={<FormattedHTMLMessage id=\"cvecNumber\" defaultMessage=\"CVEC certificate number\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidCvecNumber\"\n defaultMessage=\"Invalid CVEC certificate number\"\n />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n explanation={explanation || getDefaultExplanation()}\n />\n );\n};\n","/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useMessage } from \"@/components/Message\";\n\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n Organization,\n StudentPersonalInfoResponse,\n CustomFormFieldConfig,\n type FieldId,\n type FormSelectChoice,\n type StudentStatusSelection,\n} from \"@/lib/types/types\";\n\nimport { StudentStatusDefaultMessagesEnum, VerificationStepsEnum } from \"@/lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"@/lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\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 { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\nimport { CVECNumberComponent } from \"../FormFields/CVECNumber/CVECNumberComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\n\n// Graduation status dropdown is only Student/Graduate options, not the raw `availableStatuses`\nconst STATUS_SELECTIONS = Object.keys(StudentStatusDefaultMessagesEnum) as StudentStatusSelection[];\n\ninterface StepStudentPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport const StepStudentPersonalInfoComponent = ({\n verificationService,\n}: StepStudentPersonalInfoComponentProps) => {\n const { msg } = useMessage();\n const viewModel = verificationService.viewModel as StudentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as StudentPersonalInfoResponse;\n const options = getOptions();\n\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n const showCvecInput =\n showCvecInputVariation !== \"control\" &&\n showCvecInputVariation !== \"default\" &&\n viewModel?.countryChoice?.value === \"FR\";\n // #endregion include-cvec-field-france-student\n\n // The \"Graduation Status\" input applies only when the program offers a genuine\n // Student or Graduate choice: GRADUATE and at least one non-graduate student status\n // The \"Student\" option includes all program configured non-graduate statuses\n const availableStatuses = verificationResponse.availableStatuses ?? [];\n const showGraduateStatusInput =\n availableStatuses.includes(\"GRADUATE\") && availableStatuses.some((s) => s !== \"GRADUATE\");\n\n React.useEffect(() => {\n let skip: FieldId[] = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"cvecNumber\" && id !== \"status\",\n );\n if (!showCvecInput) {\n // Don't validate CVEC number if country is not France\n skip = [...skip, \"cvecNumber\"];\n }\n if (!showGraduateStatusInput) {\n // Only require a graduation status when the program offers the Student/Graduate choice.\n skip = [...skip, \"status\"];\n }\n updateStudentViewModel(\"fieldsToSkipValidation\", skip);\n }, [showCvecInput, showGraduateStatusInput]);\n\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateStudentViewModel = (key: keyof StudentPersonalInfoViewModel, value: any) => {\n const nextState: StudentPersonalInfoViewModel = produce(\n viewModel,\n (draft: StudentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n\n const getStatusChoice = (status?: StudentStatusSelection): FormSelectChoice =>\n status\n ? {\n value: status,\n label: msg({ id: status }),\n }\n : { value: \"\", label: \"\" };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"student-personal-info\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {showGraduateStatusInput && (\n <Status\n segmentId=\"student\"\n label={<FormattedHTMLMessage id=\"graduationStatus\" defaultMessage=\"Graduation Status\" />}\n value={getStatusChoice(viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n options={STATUS_SELECTIONS.map(getStatusChoice)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n const value = status ? (status.value as StudentStatusSelection) : undefined;\n updateStudentViewModel(\"status\", value);\n updateFieldValidationErrorsByFieldId(\"status\", value ?? \"\", verificationService);\n }}\n />\n )}\n <CollegeName\n value={(verificationService.viewModel as StudentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n {showCvecInput && (\n <CVECNumberComponent\n isRequired={getFieldConfigByFieldId(\"cvecNumber\")?.requireIfOptional}\n value={viewModel.cvecNumber}\n isErrored={!!fieldValidationErrors.cvecNumber}\n disabled={getFieldConfigByFieldId(\"cvecNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"cvecNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"cvecNumber\", newValue, verificationService);\n }}\n />\n )}\n <div className=\"sid-names-explanation sid-l-space-top-md\">\n <FormattedHTMLMessage\n id=\"step.personalInfo.nameInstructions\"\n defaultMessage=\"Personal or school email is fine\"\n />\n </div>\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"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 updateStudentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"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 disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\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 disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectStudentPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Student Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;4CAaA,KAAA,EAAA,UAAA,cAAA,aAAA,gBAAA,iBAAA,IAAA,gBAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;AAoDA,GCdM,IAAoB,OAAO,KAAK,CAAgC,GAMzD,KAAoC,EAC/C,6BAC2C;CAC3C,IAAM,EAAE,WAAQ,EAAW,GACrB,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAU,EAAW,GAGrB,IAAyB,EAAQ,mCAAmC,GACpE,IACJ,MAA2B,aAC3B,MAA2B,aAC3B,GAAW,eAAe,UAAU,MAMhC,IAAoB,EAAqB,qBAAqB,CAAC,GAC/D,IACJ,EAAkB,SAAS,UAAU,KAAK,EAAkB,MAAM,MAAM,MAAM,UAAU;CAE1F,EAAM,gBAAgB;EACpB,IAAI,KAAmB,EAAoB,WAAW,0BAA0B,CAAC,GAA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,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
1
+ {"version":3,"file":"StepStudentPersonalInfo-hDeAUeLR.js","names":[],"sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\nimport { useFlag } from \"../../FeatureFlags/hooks\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element;\n}\n\nexport const CVECNumberComponent = ({\n value,\n isErrored,\n onChange,\n explanation,\n placeholder = \"\",\n isRequired = false,\n}: FormFieldComponentProps & PassedProps) => {\n const { msg } = useMessage();\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n\n const getDefaultExplanation = () =>\n showCvecInputVariation === \"labeled-optional\" ? (\n <FormattedHTMLMessage\n id=\"cvecNumberExplanation\"\n defaultMessage=\"Optional - Add your CVEC number to increase your chances of being verified instantly.\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"_EXPERIMENTAL.cvecNumberExplanation\"\n defaultMessage=\"Add your CVEC number to increase your chances of being verified instantly.\"\n />\n );\n // #endregion include-cvec-field-france-student\n\n const isFieldHidden = getFieldConfigByFieldId(\"cvecNumber\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"cvecNumber\"\n value={value}\n onChange={onChange}\n placeholder={placeholder || msg({ id: \"cvecNumber\" })}\n label={<FormattedHTMLMessage id=\"cvecNumber\" defaultMessage=\"CVEC certificate number\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidCvecNumber\"\n defaultMessage=\"Invalid CVEC certificate number\"\n />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n explanation={explanation || getDefaultExplanation()}\n />\n );\n};\n","/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useMessage } from \"@/components/Message\";\n\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n Organization,\n StudentPersonalInfoResponse,\n CustomFormFieldConfig,\n type FieldId,\n type FormSelectChoice,\n type StudentStatusSelection,\n} from \"@/lib/types/types\";\n\nimport { StudentStatusDefaultMessagesEnum, VerificationStepsEnum } from \"@/lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"@/lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\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 { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\nimport { CVECNumberComponent } from \"../FormFields/CVECNumber/CVECNumberComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\n\n// Graduation status dropdown is only Student/Graduate options, not the raw `availableStatuses`\nconst STATUS_SELECTIONS = Object.keys(StudentStatusDefaultMessagesEnum) as StudentStatusSelection[];\n\ninterface StepStudentPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport const StepStudentPersonalInfoComponent = ({\n verificationService,\n}: StepStudentPersonalInfoComponentProps) => {\n const { msg } = useMessage();\n const viewModel = verificationService.viewModel as StudentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as StudentPersonalInfoResponse;\n const options = getOptions();\n\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n const showCvecInput =\n showCvecInputVariation !== \"control\" &&\n showCvecInputVariation !== \"default\" &&\n viewModel?.countryChoice?.value === \"FR\";\n // #endregion include-cvec-field-france-student\n\n // The \"Graduation Status\" input applies only when the program offers a genuine\n // Student or Graduate choice: GRADUATE and at least one non-graduate student status\n // The \"Student\" option includes all program configured non-graduate statuses\n const availableStatuses = verificationResponse.availableStatuses ?? [];\n const showGraduateStatusInput =\n availableStatuses.includes(\"GRADUATE\") && availableStatuses.some((s) => s !== \"GRADUATE\");\n\n React.useEffect(() => {\n let skip: FieldId[] = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"cvecNumber\" && id !== \"status\",\n );\n if (!showCvecInput) {\n // Don't validate CVEC number if country is not France\n skip = [...skip, \"cvecNumber\"];\n }\n if (!showGraduateStatusInput) {\n // Only require a graduation status when the program offers the Student/Graduate choice.\n skip = [...skip, \"status\"];\n }\n updateStudentViewModel(\"fieldsToSkipValidation\", skip);\n }, [showCvecInput, showGraduateStatusInput]);\n\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateStudentViewModel = (key: keyof StudentPersonalInfoViewModel, value: any) => {\n const nextState: StudentPersonalInfoViewModel = produce(\n viewModel,\n (draft: StudentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n\n const getStatusChoice = (status?: StudentStatusSelection): FormSelectChoice =>\n status\n ? {\n value: status,\n label: msg({ id: status }),\n }\n : { value: \"\", label: \"\" };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"student-personal-info\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {showGraduateStatusInput && (\n <Status\n segmentId=\"student\"\n label={<FormattedHTMLMessage id=\"graduationStatus\" defaultMessage=\"Graduation Status\" />}\n value={getStatusChoice(viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n options={STATUS_SELECTIONS.map(getStatusChoice)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n const value = status ? (status.value as StudentStatusSelection) : undefined;\n updateStudentViewModel(\"status\", value);\n updateFieldValidationErrorsByFieldId(\"status\", value ?? \"\", verificationService);\n }}\n />\n )}\n <CollegeName\n value={(verificationService.viewModel as StudentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n {showCvecInput && (\n <CVECNumberComponent\n isRequired={getFieldConfigByFieldId(\"cvecNumber\")?.requireIfOptional}\n value={viewModel.cvecNumber}\n isErrored={!!fieldValidationErrors.cvecNumber}\n disabled={getFieldConfigByFieldId(\"cvecNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"cvecNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"cvecNumber\", newValue, verificationService);\n }}\n />\n )}\n <div className=\"sid-names-explanation sid-l-space-top-md\">\n <FormattedHTMLMessage\n id=\"step.personalInfo.nameInstructions\"\n defaultMessage=\"Personal or school email is fine\"\n />\n </div>\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"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 updateStudentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"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 disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\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 disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectStudentPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=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,CAAC,EAAsB;IACnC,UAAU,EAAwB,aAAa,GAAG;IAClD,WAAW,MAAa;KAEtB,AADA,EAAuB,eAAe,CAAQ,GAC9C,EAAqC,eAAe,GAAU,CAAmB;IACnF;IACA,qBAAqB,EAAU,iBAAiB,EAAU,cAAc;GACzE,CAAA,IACC;IACF,EAAQ,oBAAoB,CAAC,GAAG,KAAK,MACrC,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAAG;GACJ,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,UAAU,EAAwB,oBAAoB,GAAG;IACzD,WAAW,MAAa;KAKtB,AAJA,EAAuB,YAAY;MACjC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;GACZ,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GACrF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
@@ -4,21 +4,22 @@
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.283.0
8
- * BUILD_TIMESTAMP: 1789491616257
9
- * BUILD_DATE: Tue Sep 15 2026 17:00:16 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 3d15a02db4caf4d52123bea847235a8fe8f053dd
7
+ * VERSION: 2.285.0
8
+ * BUILD_TIMESTAMP: 1789509918822
9
+ * BUILD_DATE: Tue Sep 15 2026 22:05:18 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: 58cd071e490202b546ec8addac4434c422af952d
11
11
  */
12
- import { Et as e, Gt as t, J as n, Vt as r, Y as i, g as a, s as o, t as s, y as c } from "./intl-DwZU2l1o.js";
13
- import { f as l, t as u } from "./ApiUrls-MtK1lfo-.js";
14
- import { c as d, n as f, t as p } from "./jsx-runtime-DmTh-fvV.js";
15
- import { i as m } from "./TestingRouteOverrides-D4n0RZk2.js";
12
+ import { J as e, Ot as t, Y as n, g as r, s as i, t as a, y as o } from "./intl-D0f52P7V.js";
13
+ import { S as s, l as c } from "./runtimeTypes-B2AGNJMT.js";
14
+ import { f as l, t as u } from "./ApiUrls-C3f7roDX.js";
15
+ import { c as d, n as f, t as p } from "./jsx-runtime-FfARtXk2.js";
16
+ import { i as m } from "./TestingRouteOverrides-BJ6TzzV2.js";
16
17
  import { t as h } from "./eventEmitter-CSG6jR7V.js";
17
- import { t as g } from "./hooks-DY9jekmV.js";
18
- import { t as _ } from "./LogoComponent-Cq0AZvcg.js";
19
- import { t as v } from "./AnnouncingHeader-B84Vw5oF.js";
20
- import { a as y } from "./stepComponentHelpers-DN6dYb4A.js";
21
- import { t as b } from "./CopyToClipboardComponent-Hd6_alz8.js";
18
+ import { t as g } from "./hooks-j2dPIOl1.js";
19
+ import { t as _ } from "./LogoComponent-EBhWWnBF.js";
20
+ import { t as v } from "./AnnouncingHeader-Cm6ysN0V.js";
21
+ import { a as y } from "./stepComponentHelpers-MbfsqlvF.js";
22
+ import { t as b } from "./CopyToClipboardComponent-BvzDoXkd.js";
22
23
  //#region src/lib/installScript/utils.ts
23
24
  var x = /* @__PURE__ */ t(d(), 1), S = (e) => {
24
25
  let t = new URL(e);
@@ -42,7 +43,7 @@ var x = /* @__PURE__ */ t(d(), 1), S = (e) => {
42
43
  title: "SheerID Verification Form"
43
44
  }, w = (e) => {
44
45
  if (typeof e != "function") throw Error(`Expected type "function", but received ${typeof e}`);
45
- }, T = class e extends h {
46
+ }, T = class t extends h {
46
47
  containerElement;
47
48
  verificationUrl;
48
49
  isMobileDevice;
@@ -53,8 +54,8 @@ var x = /* @__PURE__ */ t(d(), 1), S = (e) => {
53
54
  onLoadEvents = [];
54
55
  onCleanupEvents = [];
55
56
  installType = l.cdnInlineIframe;
56
- constructor(t, n) {
57
- super(), e.isValidHttpUrl(n) ? (this.containerElement = t, this.verificationUrl = new URL(S(n)), this.verificationIframeUid = e.createUniqueId()) : r.error("Invalid URL. Provide a proper URL: https://example.com/", "iframe url");
57
+ constructor(e, n) {
58
+ super(), t.isValidHttpUrl(n) ? (this.containerElement = e, this.verificationUrl = new URL(S(n)), this.verificationIframeUid = t.createUniqueId()) : s.error("Invalid URL. Provide a proper URL: https://example.com/", "iframe url");
58
59
  }
59
60
  cleanup() {
60
61
  this.onCleanupEvents.forEach((e) => e());
@@ -74,14 +75,14 @@ var x = /* @__PURE__ */ t(d(), 1), S = (e) => {
74
75
  return this.iframe = document.createElement("iframe"), this.iframe.classList.add(e.className), this.iframe.title = e.title, this.iframe.src = this.getIframeUrl(), this.iframe.allow = "camera *;microphone *;geolocation *;clipboard-read *;clipboard-write *", this.iframe.onload = () => this.onLoad(), this.iframe;
75
76
  }
76
77
  getIframeUrl() {
77
- let e = new URL(this.verificationUrl);
78
- return e.searchParams.set("verificationIframeUid", this.verificationIframeUid), e.searchParams.set(n, window.location.href), e.searchParams.set(i, this.installType), this.locale && e.searchParams.set("locale", this.locale), e.toString();
78
+ let t = new URL(this.verificationUrl);
79
+ return t.searchParams.set("verificationIframeUid", this.verificationIframeUid), t.searchParams.set(e, window.location.href), t.searchParams.set(n, this.installType), this.locale && t.searchParams.set("locale", this.locale), t.toString();
79
80
  }
80
81
  addOnLoadEvent(e) {
81
82
  try {
82
83
  w(e);
83
84
  } catch {
84
- r.error("Invalid callback provided to iFrame.onLoad()", "iframe addOnLoadEvent");
85
+ s.error("Invalid callback provided to iFrame.onLoad()", "iframe addOnLoadEvent");
85
86
  return;
86
87
  }
87
88
  this.hasLoaded ? e() : this.onLoadEvents.push(e);
@@ -165,16 +166,16 @@ function D(e, t) {
165
166
  var O = p(), k = (e, t = "_top") => {
166
167
  window.open(e, t).focus();
167
168
  }, A = () => {
168
- let e = o().restApi.serviceUrl;
169
+ let e = i().restApi.serviceUrl;
169
170
  return e.includes("services.sheerid.com") || e.includes("my.sheerid.com") ? "https://shr-id.com" : "https://aa-preview.sheerid.net";
170
- }, j = ({ verificationService: t }) => {
171
- let { verificationResponse: n, programId: r, viewModel: i } = t, { verificationId: o, redirectUrl: l } = n, { config: d } = t.programTheme, p = x.useRef(null), h = g("hc-my-sheer-id-theme-builder"), S = !!l, C = n.rewardCode || "{rewardCode}", w = d.offerType === "noCode", { rewardDisplay: T } = d, E = !w && !!T.length, j = m("mockConsumerInfoState") || n.consumerInfoState, M = j === "consumerNotFound" || j === "consumerFoundNewFieldsAvailable", N = s(i, n);
171
+ }, j = ({ verificationService: e }) => {
172
+ let { verificationResponse: t, programId: n, viewModel: i } = e, { verificationId: s, redirectUrl: l } = t, { config: d } = e.programTheme, p = x.useRef(null), h = g("hc-my-sheer-id-theme-builder"), S = !!l, C = t.rewardCode || "{rewardCode}", w = d.offerType === "noCode", { rewardDisplay: T } = d, E = !w && !!T.length, j = m("mockConsumerInfoState") || t.consumerInfoState, M = j === "consumerNotFound" || j === "consumerFoundNewFieldsAvailable", N = a(i, t);
172
173
  return x.useEffect(() => {
173
- p.current && (p.current.innerHTML = "", D(p.current, `${A()}/affinity/${N}/${r}/${o}`));
174
+ p.current && (p.current.innerHTML = "", D(p.current, `${A()}/affinity/${N}/${n}/${s}`));
174
175
  }, [
175
176
  p,
176
- r,
177
- o,
177
+ n,
178
+ s,
178
179
  N
179
180
  ]), /* @__PURE__ */ (0, O.jsxs)("div", {
180
181
  id: "sid-step-success",
@@ -189,7 +190,7 @@ var O = p(), k = (e, t = "_top") => {
189
190
  /* @__PURE__ */ (0, O.jsx)("div", {
190
191
  className: "sid-success-logo-container sid-l-horz-center",
191
192
  children: /* @__PURE__ */ (0, O.jsx)(_, {
192
- verificationService: t,
193
+ verificationService: e,
193
194
  fallbackLogo: !h && /* @__PURE__ */ (0, O.jsx)("img", {
194
195
  className: "sid-success-logo-default sid-l-lead-image",
195
196
  alt: "",
@@ -217,7 +218,7 @@ var O = p(), k = (e, t = "_top") => {
217
218
  }),
218
219
  E && /* @__PURE__ */ (0, O.jsx)("div", {
219
220
  className: "sid-l-horz-center sid-reward-container sid-l-space-top-md",
220
- children: T.map((t) => t === e.TEXT ? /* @__PURE__ */ (0, O.jsxs)("div", { children: [/* @__PURE__ */ (0, O.jsx)("div", {
221
+ children: T.map((e) => e === c.TEXT ? /* @__PURE__ */ (0, O.jsxs)("div", { children: [/* @__PURE__ */ (0, O.jsx)("div", {
221
222
  className: "sid-reward-code sid-l-space-top-md sid-h-jumbo-text sid-l-horz-center",
222
223
  role: "region",
223
224
  children: C
@@ -234,11 +235,11 @@ var O = p(), k = (e, t = "_top") => {
234
235
  defaultMessage: "Copy coupon code"
235
236
  })
236
237
  })
237
- })] }, t) : /* @__PURE__ */ (0, O.jsx)("img", {
238
+ })] }, e) : /* @__PURE__ */ (0, O.jsx)("img", {
238
239
  className: "sid-l-space-top-md sid-barcode",
239
240
  alt: C,
240
- src: u(o, "rewardCode", t)
241
- }, t))
241
+ src: u(s, "rewardCode", e)
242
+ }, e))
242
243
  }),
243
244
  /* @__PURE__ */ (0, O.jsx)("div", {
244
245
  className: `sid-footer sid-success-footer sid-l-horz-center ${w ? "sid-l-space-top-md" : "sid-l-space-top-lg"}`,
@@ -277,7 +278,7 @@ var O = p(), k = (e, t = "_top") => {
277
278
  })
278
279
  })
279
280
  }),
280
- t.programTheme.affinityProgramEnabled && /* @__PURE__ */ (0, O.jsx)("div", {
281
+ e.programTheme.affinityProgramEnabled && /* @__PURE__ */ (0, O.jsx)("div", {
281
282
  ref: p,
282
283
  id: "sid-affinity-iframe",
283
284
  className: "sid-affinity-container sid-l-full-width sid-l-space-top-lg"
@@ -318,11 +319,11 @@ var O = p(), k = (e, t = "_top") => {
318
319
  /* @__PURE__ */ (0, O.jsx)("button", {
319
320
  type: "button",
320
321
  onClick: () => {
321
- c(a.SUCCESS_REDIRECT_CLICKED, {
322
- programId: r,
322
+ o(r.SUCCESS_REDIRECT_CLICKED, {
323
+ programId: n,
323
324
  locale: N,
324
- verificationId: o
325
- }), k(y(N, r, o), "_blank");
325
+ verificationId: s
326
+ }), k(y(N, n, s), "_blank");
326
327
  },
327
328
  className: "sid-btn sid-remember-me-redirect-btn",
328
329
  children: j === "consumerNotFound" ? /* @__PURE__ */ (0, O.jsx)(f, {
@@ -1 +1 @@
1
- {"version":3,"file":"StepSuccess-BxjVpHbu.js","names":[],"sources":["../../src/lib/installScript/utils.ts","../../src/lib/installScript/constants.ts","../../src/lib/installScript/iframe.ts","../../src/lib/installScript/affinity.ts","../../src/components/StepSuccess/StepSuccessComponent.tsx"],"sourcesContent":["export const fadeInElements = (elements: HTMLElement[]) => {\n elements.forEach((element: HTMLElement) => {\n element.classList.add(\"fade-in\");\n });\n};\n\nexport const removeElement = (element: HTMLElement, transitionTimeout: number) => {\n element.classList.remove(\"fade-in\");\n window.setTimeout(() => {\n document.body.style.overflow = \"\";\n element.parentNode.removeChild(element);\n }, transitionTimeout);\n};\n\nexport const getVerificationUrl = (url: string): string => {\n const newUrl = new URL(url);\n const parentUrl = new URL(window.location.href);\n\n // Combine query parameters from parent window and provided url.\n // If duplicates, provided url parameters supercede.\n parentUrl.searchParams.forEach((value, key) => {\n if (!newUrl.searchParams.has(key)) {\n newUrl.searchParams.set(key, value);\n }\n });\n\n return newUrl.href;\n};\n","const iframeClassNames = {\n INLINE_IFRAME_CONTENT: \"sid-inline-iframe\",\n MODAL_WRAPPER: \"sid-modal__wrapper\",\n MODAL_IFRAME: \"sid-modal__iframe\",\n OVERLAY: \"sid-modal__overlay\",\n CLOSE_BUTTON: \"sid-modal__close-button\",\n CLOSE_TEXT: \"sid-modal__close-text\",\n CLOSE_ICON: \"sid-modal__close-icon\",\n};\n\nexport const iframeTitle = \"SheerID Verification Form\";\n\nexport const iframeConstants = {\n CLASS_NAMES: iframeClassNames,\n DEFAULT_MOBILE_THRESHOLD_WIDTH: 620,\n MODAL_OPACITY_TRANSITION_PERIOD: 300,\n};\n","import { logger } from \"@jslib/shared/utils/logger\";\nimport { InstallTypes, type InstallType } from \"@jslib/shared/utils/getInstallType\";\n\nimport { QUERY_STRING_INSTALL_PAGE_URL, QUERY_STRING_INSTALL_TYPE } from \"../../constants\";\nimport { type InstallPageEvent } from \"../frames/frameMessages\";\nimport type { HookEvents, Options, PostMessageAction, ViewModel } from \"../types/types\";\nimport { EventEmitter } from \"../hooks/eventEmitter\";\n\nimport { getVerificationUrl } from \"./utils\";\nimport { iframeConstants as constants, iframeTitle } from \"./constants\";\n\nexport type IframeOptions = {\n className: string;\n title: string;\n};\n\nexport const DEFAULT_OPTIONS: IframeOptions = {\n className: constants.CLASS_NAMES.INLINE_IFRAME_CONTENT,\n title: iframeTitle,\n};\n\nexport const assertValidFunction = (candidate: Function) => {\n if (typeof candidate !== \"function\") {\n throw new Error(`Expected type \"function\", but received ${typeof candidate}`);\n }\n};\n\nclass Iframe extends EventEmitter<HookEvents> {\n containerElement: HTMLElement;\n\n verificationUrl: URL;\n\n isMobileDevice: boolean;\n\n iframe: HTMLIFrameElement;\n\n verificationIframeUid: string;\n\n locale: string;\n\n hasLoaded: boolean = false;\n\n onLoadEvents: Function[] = [];\n\n onCleanupEvents: (() => void)[] = [];\n\n installType: InstallType = InstallTypes.cdnInlineIframe;\n\n constructor(containerElement: HTMLElement, url: string) {\n super();\n\n if (Iframe.isValidHttpUrl(url)) {\n this.containerElement = containerElement;\n this.verificationUrl = new URL(getVerificationUrl(url));\n this.verificationIframeUid = Iframe.createUniqueId();\n } else {\n logger.error(\"Invalid URL. Provide a proper URL: https://example.com/\", \"iframe url\");\n }\n }\n\n cleanup(): void {\n this.onCleanupEvents.forEach((callback) => callback());\n }\n\n static createUniqueId(): string {\n return Math.random().toString(36).substr(2, 9);\n }\n\n static isValidHttpUrl(urlString: string): boolean {\n try {\n const url = new URL(urlString);\n return url.protocol === \"http:\" || url.protocol === \"https:\";\n } catch {\n return false;\n }\n }\n\n createIframe(options: IframeOptions): HTMLIFrameElement {\n this.iframe = document.createElement(\"iframe\");\n this.iframe.classList.add(options.className);\n this.iframe.title = options.title;\n this.iframe.src = this.getIframeUrl();\n this.iframe.allow = \"camera *;microphone *;geolocation *;clipboard-read *;clipboard-write *\";\n this.iframe.onload = () => this.onLoad();\n return this.iframe;\n }\n\n getIframeUrl(): string {\n const url = new URL(this.verificationUrl);\n url.searchParams.set(\"verificationIframeUid\", this.verificationIframeUid);\n url.searchParams.set(QUERY_STRING_INSTALL_PAGE_URL, window.location.href);\n url.searchParams.set(QUERY_STRING_INSTALL_TYPE, this.installType);\n if (this.locale) {\n url.searchParams.set(\"locale\", this.locale);\n }\n return url.toString();\n }\n\n // If iFrame hasn't loaded yet, queue up the callback\n // otherwise call it immediately\n addOnLoadEvent(callback: Function) {\n try {\n assertValidFunction(callback);\n } catch (e) {\n logger.error(\"Invalid callback provided to iFrame.onLoad()\", \"iframe addOnLoadEvent\");\n return;\n }\n if (this.hasLoaded) {\n callback();\n } else {\n this.onLoadEvents.push(callback);\n }\n }\n\n onLoad() {\n this.hasLoaded = true;\n this.onLoadEvents.forEach((callback) => callback());\n }\n\n /**\n * Using this to add parent window message listeners gives us\n * - Event Cleanup for modals\n * - verification of origin, verificationIframeUid, and message data structure\n */\n addWindowMessageListener(actionCb: (action: PostMessageAction) => void): void {\n const listener = (ev: MessageEvent) => {\n if (this.verificationUrl.origin !== ev.origin) {\n return;\n }\n\n if (ev.data.verificationIframeUid !== this.verificationIframeUid) {\n return;\n }\n\n if (ev.data.action && ev.data.action.type) {\n actionCb(ev.data.action);\n } else if (ev.data.action && ev.data.height) {\n // Older versions of the jslib send the full action object as the message\n actionCb(ev.data);\n }\n };\n\n window.addEventListener(\"message\", listener);\n this.onCleanupEvents.push(() => window.removeEventListener(\"message\", listener));\n }\n\n addActionListener() {\n this.addWindowMessageListener((messageAction) => {\n if (messageAction.type === \"hook\") {\n this.emit(messageAction.hook.name, messageAction.hook.data);\n }\n\n if (\n (messageAction.action && messageAction.action === \"updateHeight\") ||\n messageAction.type === \"updateHeight\"\n ) {\n // UX-1129: If we are getting height updates, turn off scrolling for\n // the iframe. This prevents browsers (Safari in particular) from\n // re-wrapping because of different widths and constantly changing\n // it's own height. `scrolling = \"no\"` is deprecated, but supported in\n // all browsers and fixes the problem well.\n this.iframe.scrolling = \"no\";\n this.iframe.style.height = `${messageAction.height}px`;\n }\n });\n }\n\n setViewModel(viewModel: Partial<ViewModel> | ViewModel) {\n const message: InstallPageEvent = {\n action: \"setViewModel\",\n viewModel,\n };\n\n this.addOnLoadEvent(() => {\n this.iframe.contentWindow.postMessage(message, this.verificationUrl.origin);\n });\n }\n\n setOptions(options: Options) {\n const message: InstallPageEvent = {\n action: \"setOptions\",\n options,\n };\n\n // HC-1181: Special casing options.locale to set locale as as QSP if the frame hasn't fully loaded yet.\n // This causes a re-load, but in most cases would happen within milliseconds of the frame initialization.\n // It prevents the race conditions that were failing to set the locale properly on load.\n // If the associated playwright tests passes without this is can be removed.\n if (!this.hasLoaded && options.locale) {\n this.locale = options.locale;\n const newUrl = this.getIframeUrl();\n if (newUrl !== this.iframe.src) {\n this.iframe.src = newUrl;\n }\n }\n\n this.addOnLoadEvent(() => {\n this.iframe.contentWindow.postMessage(message, this.verificationUrl.origin);\n });\n }\n\n setInstallType(installType: InstallType) {\n this.installType = installType;\n }\n\n init(createIframe: boolean = true): void {\n if (createIframe) {\n this.createIframe(DEFAULT_OPTIONS);\n }\n\n this.addActionListener();\n this.containerElement.appendChild(this.iframe);\n }\n}\n\nexport default Iframe;\n","import type { PostMessageAction } from \"../types/types\";\n\nimport Iframe, { DEFAULT_OPTIONS, type IframeOptions } from \"./iframe\";\n\nexport const assertValidFunction = (candidate: Function) => {\n if (typeof candidate !== \"function\") {\n throw new Error(`Expected type \"function\", but received ${typeof candidate}`);\n }\n};\n\nclass AffinityIFrame extends Iframe {\n constructor(containerElement: HTMLElement, url: string) {\n super(containerElement, url);\n this.verificationUrl = new URL(this.getAffinityUrlWithUID(url));\n }\n\n static createUniqueId() {\n return Math.random().toString(36).substr(2, 9);\n }\n\n getAffinityUrlWithUID(url: string): string {\n const urlObj = new URL(url);\n urlObj.searchParams.set(\"affinityIframeUid\", this.verificationIframeUid);\n return urlObj.toString();\n }\n\n override addWindowMessageListener(actionCb: (action: PostMessageAction) => void): void {\n const listener = (ev: MessageEvent) => {\n if (this.verificationUrl.origin !== ev.origin) {\n return;\n }\n\n if (ev.data.affinityIframeUid !== this.verificationIframeUid) {\n return;\n }\n\n if (ev.data.action && ev.data.action.type) {\n actionCb(ev.data.action);\n }\n };\n\n window.addEventListener(\"message\", listener);\n this.onCleanupEvents.push(() => window.removeEventListener(\"message\", listener));\n }\n\n override createIframe(options: IframeOptions): HTMLIFrameElement {\n this.iframe = document.createElement(\"iframe\");\n this.iframe.classList.add(options.className);\n this.iframe.title = options.title;\n this.iframe.src = this.verificationUrl.href;\n this.iframe.allow = \"camera;microphone\";\n this.iframe.onload = () => this.onLoad();\n return this.iframe;\n }\n\n override init() {\n this.createIframe({ ...DEFAULT_OPTIONS, title: \"SheerID Affinity Offers\" });\n this.addActionListener();\n this.containerElement.appendChild(this.iframe);\n }\n}\n\nexport function loadAffinityIFrame(containerElement: HTMLElement, url: string): AffinityIFrame {\n const affinity = new AffinityIFrame(containerElement, url);\n affinity.init();\n return affinity;\n}\n\nexport default AffinityIFrame;\n","import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { loadAffinityIFrame } from \"@/lib/installScript/affinity\";\n\nimport {\n type VerificationService,\n type SuccessResponse,\n type ConsumerInfoState,\n} from \"../../lib/types/types\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { CopyToClipboard } from \"../CopyToClipboard/CopyToClipboardComponent\";\nimport { getBarcodeUrl } from \"../../lib/ServerApi/ApiUrls\";\nimport { RewardDisplayEnum } from \"../../lib/types/runtimeTypes\";\nimport { getLocaleSafely } from \"../../lib/intl/intl\";\nimport { getRememberMeRedirectDestination } from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { getQueryOrOption } from \"../../lib/ServerApi/TestingRouteOverrides\";\nimport { QUERY_STRING_REMEMBER_ME_OVERRIDE } from \"../../constants\";\nimport { getOptions } from \"../../options/options\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\nimport { EventName, recordCTAClickEvent } from \"../../lib/GoogleAnalytics/ga\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\n\ninterface StepSuccessProps {\n verificationService: VerificationService;\n}\n\nconst redirect = (redirectDestination: string, target: string = \"_top\") => {\n const win = window.open(redirectDestination, target);\n win.focus();\n};\n\nconst getAffinityBaseUrl = () => {\n const options = getOptions();\n const apiBaseUrl = options.restApi.serviceUrl;\n\n if (apiBaseUrl.includes(\"services.sheerid.com\") || apiBaseUrl.includes(\"my.sheerid.com\")) {\n return \"https://shr-id.com\";\n }\n\n return \"https://aa-preview.sheerid.net\";\n};\n\nconst StepSuccess = ({ verificationService }: StepSuccessProps) => {\n const { verificationResponse, programId, viewModel } = verificationService;\n const { verificationId, redirectUrl } = verificationResponse as SuccessResponse;\n const { config } = verificationService.programTheme;\n const affinityRef = React.useRef<HTMLDivElement>(null);\n const shouldHideIcon = useFlag(\"hc-my-sheer-id-theme-builder\");\n\n const showRedirect = Boolean(redirectUrl);\n const rewardCode = (verificationResponse as SuccessResponse).rewardCode || \"{rewardCode}\";\n const noCodeType = config.offerType === \"noCode\";\n\n const { rewardDisplay } = config;\n const showReward = !noCodeType && !!rewardDisplay.length;\n\n const mockConsumerInfoState = getQueryOrOption(\n QUERY_STRING_REMEMBER_ME_OVERRIDE,\n ) as ConsumerInfoState;\n const consumerInfoState: ConsumerInfoState =\n mockConsumerInfoState || (verificationResponse as SuccessResponse).consumerInfoState;\n const showRememberMeFooter =\n consumerInfoState === \"consumerNotFound\" ||\n consumerInfoState === \"consumerFoundNewFieldsAvailable\";\n\n const locale = getLocaleSafely(viewModel, verificationResponse);\n\n const handleOnRedirect = () => {\n recordCTAClickEvent(EventName.SUCCESS_REDIRECT_CLICKED, {\n programId,\n locale,\n verificationId,\n });\n\n redirect(getRememberMeRedirectDestination(locale, programId, verificationId), \"_blank\");\n };\n\n React.useEffect(() => {\n // Load the affinity widget if enabled\n if (affinityRef.current) {\n affinityRef.current.innerHTML = \"\";\n loadAffinityIFrame(\n affinityRef.current,\n `${getAffinityBaseUrl()}/affinity/${locale}/${programId}/${verificationId}`,\n );\n }\n }, [affinityRef, programId, verificationId, locale]);\n\n return (\n <div id=\"sid-step-success\" className=\"sid-success-container sid-l-container\">\n <div role=\"main\">\n <div className=\"sid-header sid-l-horz-center sid-l-space-top-md\">\n <div className=\"sid-success-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n !shouldHideIcon && (\n <img\n className=\"sid-success-logo-default sid-l-lead-image\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/circle-check.svg\"\n />\n )\n }\n />\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.success.title\"\n defaultMessage=\"Success! You've been verified.\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.success.subtitle\"\n defaultMessage=\"You are now eligible for this special offer.\"\n tagName=\"p\"\n />\n </div>\n </div>\n\n {showReward && (\n <div className=\"sid-l-horz-center sid-reward-container sid-l-space-top-md\">\n {rewardDisplay.map((displayType) => {\n if (displayType !== RewardDisplayEnum.TEXT)\n return (\n <img\n key={displayType}\n className=\"sid-l-space-top-md sid-barcode\"\n alt={rewardCode}\n src={getBarcodeUrl(verificationId, \"rewardCode\", displayType)}\n />\n );\n return (\n <div key={displayType}>\n <div\n className=\"sid-reward-code sid-l-space-top-md sid-h-jumbo-text sid-l-horz-center\"\n role=\"region\"\n >\n {rewardCode}\n </div>\n <div className=\"sid-l-space-top-md sid-h-bold-text sid-l-horz-center\">\n <CopyToClipboard\n textToCopy={rewardCode}\n notificationText={\n <FormattedHTMLMessage id=\"copied\" defaultMessage=\"Copied\" />\n }\n >\n <FormattedHTMLMessage\n id=\"step.success.copyCouponCode\"\n defaultMessage=\"Copy coupon code\"\n />\n </CopyToClipboard>\n </div>\n </div>\n );\n })}\n </div>\n )}\n\n <div\n className={`sid-footer sid-success-footer sid-l-horz-center ${\n noCodeType ? \"sid-l-space-top-md\" : \"sid-l-space-top-lg\"\n }`}\n >\n <FormattedHTMLMessage\n id=\"step.success.emailNotification\"\n defaultMessage=\"We have sent you a confirmation email with redemption instructions. Look for the email from {email}.\"\n tagName=\"p\"\n values={{ email: \"verify@sheerid.com\" }}\n />\n </div>\n\n {showRedirect ? (\n <div className=\"sid-submit sid-success-submit sid-l-space-top-md\">\n <button\n type=\"button\"\n onClick={() => redirect(redirectUrl)}\n className=\"sid-btn sid-success-redirect-btn sid-btn--dark\"\n >\n <FormattedHTMLMessage\n id=\"step.success.redirectButtonText\"\n defaultMessage=\"Continue\"\n />\n </button>\n </div>\n ) : (\n \"\"\n )}\n </div>\n\n <div\n className=\"sid-footer sid-success-verification-only-footer sid-l-horz-center sid-l-space-top-lg sid-h-small-text\"\n role=\"contentinfo\"\n >\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.verificationOnly\"\n defaultMessage={`\n SheerID handles verification only.\n Now that you've been approved, please direct all questions about the\n promotion terms to {companyName} customer service.\n `}\n values={{ companyName }}\n tagName=\"p\"\n />\n )}\n </FormattedHTMLMessage>\n </div>\n\n {verificationService.programTheme.affinityProgramEnabled && (\n <div\n ref={affinityRef}\n id=\"sid-affinity-iframe\"\n className=\"sid-affinity-container sid-l-full-width sid-l-space-top-lg\"\n />\n )}\n\n {showRememberMeFooter && (\n <div className=\"sid-remember-me-footer-container\">\n <div className=\"sid-remember-me-title\">\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.title\"\n defaultMessage=\"Save your info for 1-click verification\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.title\"\n defaultMessage=\"Update Your Profile\"\n />\n )}\n </div>\n <div className=\"sid-remember-me-description\">\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.description\"\n defaultMessage=\"Get faster access to future offers with {companyName} and other brands using SheerID's Remember Me service.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n ) : (\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.description\"\n defaultMessage=\"Save new info for future offers with {companyName} and other brands using SheerID's Remember Me service.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n )}\n </div>\n <button\n type=\"button\"\n onClick={handleOnRedirect}\n className=\"sid-btn sid-remember-me-redirect-btn\"\n >\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.button\"\n defaultMessage=\"Enroll Now\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.button\"\n defaultMessage=\"Save to Remember Me\"\n />\n )}\n </button>\n </div>\n )}\n </div>\n );\n};\n\nexport const StepSuccessComponent = StepSuccess;\n"],"mappings":";;;;;;;;;;;mCAcA,KAAA,MAAA;;;;;AAaA,GEXa,IAAiC;CAC5C,WAAW;EDJX,aAAa;GAZb,uBAAuB;GACvB,e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ACE,IAAG;OACH,gBAAe;MAChB,CAAA;KAEA,CAAA;KACL,iBAAA,GAAA,EAAA,KAAC,OAAD;MAAK,WAAU;gBACZ,MAAsB,qBACrB,iBAAA,GAAA,EAAA,KAAC,GAAD;OAAsB,IAAG;OAAc,gBAAe;kBAClD,MACA,iBAAA,GAAA,EAAA,KAAC,GAAD;QACE,IAAG;QACH,gBAAe;QACf,QAAQ,EAAE,eAAY;OACvB,CAAA;MAEiB,CAAA,IAEtB,iBAAA,GAAA,EAAA,KAAC,GAAD;OAAsB,IAAG;OAAc,gBAAe;kBAClD,MACA,iBAAA,GAAA,EAAA,KAAC,GAAD;QACE,IAAG;QACH,gBAAe;QACf,QAAQ,EAAE,eAAY;OACvB,CAAA;MAEiB,CAAA;KAErB,CAAA;KACL,iBAAA,GAAA,EAAA,KAAC,UAAD;MACE,MAAK;MACL,eAjMqB;OAO7B,AANA,EAAoB,EAAU,0BAA0B;QACtD;QACA;QACA;OACF,CAAC,GAED,EAAS,EAAiC,GAAQ,GAAW,CAAc,GAAG,QAAQ;MACxF;MA0LU,WAAU;gBAET,MAAsB,qBACrB,iBAAA,GAAA,EAAA,KAAC,GAAD;OACE,IAAG;OACH,gBAAe;MAChB,CAAA,IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;OACE,IAAG;OACH,gBAAe;MAChB,CAAA;KAEG,CAAA;IACL;;EAEJ;;AAET"}
1
+ {"version":3,"file":"StepSuccess-9Zl2xqPT.js","names":[],"sources":["../../src/lib/installScript/utils.ts","../../src/lib/installScript/constants.ts","../../src/lib/installScript/iframe.ts","../../src/lib/installScript/affinity.ts","../../src/components/StepSuccess/StepSuccessComponent.tsx"],"sourcesContent":["export const fadeInElements = (elements: HTMLElement[]) => {\n elements.forEach((element: HTMLElement) => {\n element.classList.add(\"fade-in\");\n });\n};\n\nexport const removeElement = (element: HTMLElement, transitionTimeout: number) => {\n element.classList.remove(\"fade-in\");\n window.setTimeout(() => {\n document.body.style.overflow = \"\";\n element.parentNode.removeChild(element);\n }, transitionTimeout);\n};\n\nexport const getVerificationUrl = (url: string): string => {\n const newUrl = new URL(url);\n const parentUrl = new URL(window.location.href);\n\n // Combine query parameters from parent window and provided url.\n // If duplicates, provided url parameters supercede.\n parentUrl.searchParams.forEach((value, key) => {\n if (!newUrl.searchParams.has(key)) {\n newUrl.searchParams.set(key, value);\n }\n });\n\n return newUrl.href;\n};\n","const iframeClassNames = {\n INLINE_IFRAME_CONTENT: \"sid-inline-iframe\",\n MODAL_WRAPPER: \"sid-modal__wrapper\",\n MODAL_IFRAME: \"sid-modal__iframe\",\n OVERLAY: \"sid-modal__overlay\",\n CLOSE_BUTTON: \"sid-modal__close-button\",\n CLOSE_TEXT: \"sid-modal__close-text\",\n CLOSE_ICON: \"sid-modal__close-icon\",\n};\n\nexport const iframeTitle = \"SheerID Verification Form\";\n\nexport const iframeConstants = {\n CLASS_NAMES: iframeClassNames,\n DEFAULT_MOBILE_THRESHOLD_WIDTH: 620,\n MODAL_OPACITY_TRANSITION_PERIOD: 300,\n};\n","import { logger } from \"@jslib/shared/utils/logger\";\nimport { InstallTypes, type InstallType } from \"@jslib/shared/utils/getInstallType\";\n\nimport { QUERY_STRING_INSTALL_PAGE_URL, QUERY_STRING_INSTALL_TYPE } from \"../../constants\";\nimport { type InstallPageEvent } from \"../frames/frameMessages\";\nimport type { HookEvents, Options, PostMessageAction, ViewModel } from \"../types/types\";\nimport { EventEmitter } from \"../hooks/eventEmitter\";\n\nimport { getVerificationUrl } from \"./utils\";\nimport { iframeConstants as constants, iframeTitle } from \"./constants\";\n\nexport type IframeOptions = {\n className: string;\n title: string;\n};\n\nexport const DEFAULT_OPTIONS: IframeOptions = {\n className: constants.CLASS_NAMES.INLINE_IFRAME_CONTENT,\n title: iframeTitle,\n};\n\nexport const assertValidFunction = (candidate: Function) => {\n if (typeof candidate !== \"function\") {\n throw new Error(`Expected type \"function\", but received ${typeof candidate}`);\n }\n};\n\nclass Iframe extends EventEmitter<HookEvents> {\n containerElement: HTMLElement;\n\n verificationUrl: URL;\n\n isMobileDevice: boolean;\n\n iframe: HTMLIFrameElement;\n\n verificationIframeUid: string;\n\n locale: string;\n\n hasLoaded: boolean = false;\n\n onLoadEvents: Function[] = [];\n\n onCleanupEvents: (() => void)[] = [];\n\n installType: InstallType = InstallTypes.cdnInlineIframe;\n\n constructor(containerElement: HTMLElement, url: string) {\n super();\n\n if (Iframe.isValidHttpUrl(url)) {\n this.containerElement = containerElement;\n this.verificationUrl = new URL(getVerificationUrl(url));\n this.verificationIframeUid = Iframe.createUniqueId();\n } else {\n logger.error(\"Invalid URL. Provide a proper URL: https://example.com/\", \"iframe url\");\n }\n }\n\n cleanup(): void {\n this.onCleanupEvents.forEach((callback) => callback());\n }\n\n static createUniqueId(): string {\n return Math.random().toString(36).substr(2, 9);\n }\n\n static isValidHttpUrl(urlString: string): boolean {\n try {\n const url = new URL(urlString);\n return url.protocol === \"http:\" || url.protocol === \"https:\";\n } catch {\n return false;\n }\n }\n\n createIframe(options: IframeOptions): HTMLIFrameElement {\n this.iframe = document.createElement(\"iframe\");\n this.iframe.classList.add(options.className);\n this.iframe.title = options.title;\n this.iframe.src = this.getIframeUrl();\n this.iframe.allow = \"camera *;microphone *;geolocation *;clipboard-read *;clipboard-write *\";\n this.iframe.onload = () => this.onLoad();\n return this.iframe;\n }\n\n getIframeUrl(): string {\n const url = new URL(this.verificationUrl);\n url.searchParams.set(\"verificationIframeUid\", this.verificationIframeUid);\n url.searchParams.set(QUERY_STRING_INSTALL_PAGE_URL, window.location.href);\n url.searchParams.set(QUERY_STRING_INSTALL_TYPE, this.installType);\n if (this.locale) {\n url.searchParams.set(\"locale\", this.locale);\n }\n return url.toString();\n }\n\n // If iFrame hasn't loaded yet, queue up the callback\n // otherwise call it immediately\n addOnLoadEvent(callback: Function) {\n try {\n assertValidFunction(callback);\n } catch (e) {\n logger.error(\"Invalid callback provided to iFrame.onLoad()\", \"iframe addOnLoadEvent\");\n return;\n }\n if (this.hasLoaded) {\n callback();\n } else {\n this.onLoadEvents.push(callback);\n }\n }\n\n onLoad() {\n this.hasLoaded = true;\n this.onLoadEvents.forEach((callback) => callback());\n }\n\n /**\n * Using this to add parent window message listeners gives us\n * - Event Cleanup for modals\n * - verification of origin, verificationIframeUid, and message data structure\n */\n addWindowMessageListener(actionCb: (action: PostMessageAction) => void): void {\n const listener = (ev: MessageEvent) => {\n if (this.verificationUrl.origin !== ev.origin) {\n return;\n }\n\n if (ev.data.verificationIframeUid !== this.verificationIframeUid) {\n return;\n }\n\n if (ev.data.action && ev.data.action.type) {\n actionCb(ev.data.action);\n } else if (ev.data.action && ev.data.height) {\n // Older versions of the jslib send the full action object as the message\n actionCb(ev.data);\n }\n };\n\n window.addEventListener(\"message\", listener);\n this.onCleanupEvents.push(() => window.removeEventListener(\"message\", listener));\n }\n\n addActionListener() {\n this.addWindowMessageListener((messageAction) => {\n if (messageAction.type === \"hook\") {\n this.emit(messageAction.hook.name, messageAction.hook.data);\n }\n\n if (\n (messageAction.action && messageAction.action === \"updateHeight\") ||\n messageAction.type === \"updateHeight\"\n ) {\n // UX-1129: If we are getting height updates, turn off scrolling for\n // the iframe. This prevents browsers (Safari in particular) from\n // re-wrapping because of different widths and constantly changing\n // it's own height. `scrolling = \"no\"` is deprecated, but supported in\n // all browsers and fixes the problem well.\n this.iframe.scrolling = \"no\";\n this.iframe.style.height = `${messageAction.height}px`;\n }\n });\n }\n\n setViewModel(viewModel: Partial<ViewModel> | ViewModel) {\n const message: InstallPageEvent = {\n action: \"setViewModel\",\n viewModel,\n };\n\n this.addOnLoadEvent(() => {\n this.iframe.contentWindow.postMessage(message, this.verificationUrl.origin);\n });\n }\n\n setOptions(options: Options) {\n const message: InstallPageEvent = {\n action: \"setOptions\",\n options,\n };\n\n // HC-1181: Special casing options.locale to set locale as as QSP if the frame hasn't fully loaded yet.\n // This causes a re-load, but in most cases would happen within milliseconds of the frame initialization.\n // It prevents the race conditions that were failing to set the locale properly on load.\n // If the associated playwright tests passes without this is can be removed.\n if (!this.hasLoaded && options.locale) {\n this.locale = options.locale;\n const newUrl = this.getIframeUrl();\n if (newUrl !== this.iframe.src) {\n this.iframe.src = newUrl;\n }\n }\n\n this.addOnLoadEvent(() => {\n this.iframe.contentWindow.postMessage(message, this.verificationUrl.origin);\n });\n }\n\n setInstallType(installType: InstallType) {\n this.installType = installType;\n }\n\n init(createIframe: boolean = true): void {\n if (createIframe) {\n this.createIframe(DEFAULT_OPTIONS);\n }\n\n this.addActionListener();\n this.containerElement.appendChild(this.iframe);\n }\n}\n\nexport default Iframe;\n","import type { PostMessageAction } from \"../types/types\";\n\nimport Iframe, { DEFAULT_OPTIONS, type IframeOptions } from \"./iframe\";\n\nexport const assertValidFunction = (candidate: Function) => {\n if (typeof candidate !== \"function\") {\n throw new Error(`Expected type \"function\", but received ${typeof candidate}`);\n }\n};\n\nclass AffinityIFrame extends Iframe {\n constructor(containerElement: HTMLElement, url: string) {\n super(containerElement, url);\n this.verificationUrl = new URL(this.getAffinityUrlWithUID(url));\n }\n\n static createUniqueId() {\n return Math.random().toString(36).substr(2, 9);\n }\n\n getAffinityUrlWithUID(url: string): string {\n const urlObj = new URL(url);\n urlObj.searchParams.set(\"affinityIframeUid\", this.verificationIframeUid);\n return urlObj.toString();\n }\n\n override addWindowMessageListener(actionCb: (action: PostMessageAction) => void): void {\n const listener = (ev: MessageEvent) => {\n if (this.verificationUrl.origin !== ev.origin) {\n return;\n }\n\n if (ev.data.affinityIframeUid !== this.verificationIframeUid) {\n return;\n }\n\n if (ev.data.action && ev.data.action.type) {\n actionCb(ev.data.action);\n }\n };\n\n window.addEventListener(\"message\", listener);\n this.onCleanupEvents.push(() => window.removeEventListener(\"message\", listener));\n }\n\n override createIframe(options: IframeOptions): HTMLIFrameElement {\n this.iframe = document.createElement(\"iframe\");\n this.iframe.classList.add(options.className);\n this.iframe.title = options.title;\n this.iframe.src = this.verificationUrl.href;\n this.iframe.allow = \"camera;microphone\";\n this.iframe.onload = () => this.onLoad();\n return this.iframe;\n }\n\n override init() {\n this.createIframe({ ...DEFAULT_OPTIONS, title: \"SheerID Affinity Offers\" });\n this.addActionListener();\n this.containerElement.appendChild(this.iframe);\n }\n}\n\nexport function loadAffinityIFrame(containerElement: HTMLElement, url: string): AffinityIFrame {\n const affinity = new AffinityIFrame(containerElement, url);\n affinity.init();\n return affinity;\n}\n\nexport default AffinityIFrame;\n","import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { loadAffinityIFrame } from \"@/lib/installScript/affinity\";\n\nimport {\n type VerificationService,\n type SuccessResponse,\n type ConsumerInfoState,\n} from \"../../lib/types/types\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { CopyToClipboard } from \"../CopyToClipboard/CopyToClipboardComponent\";\nimport { getBarcodeUrl } from \"../../lib/ServerApi/ApiUrls\";\nimport { RewardDisplayEnum } from \"../../lib/types/runtimeTypes\";\nimport { getLocaleSafely } from \"../../lib/intl/intl\";\nimport { getRememberMeRedirectDestination } from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { getQueryOrOption } from \"../../lib/ServerApi/TestingRouteOverrides\";\nimport { QUERY_STRING_REMEMBER_ME_OVERRIDE } from \"../../constants\";\nimport { getOptions } from \"../../options/options\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\nimport { EventName, recordCTAClickEvent } from \"../../lib/GoogleAnalytics/ga\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\n\ninterface StepSuccessProps {\n verificationService: VerificationService;\n}\n\nconst redirect = (redirectDestination: string, target: string = \"_top\") => {\n const win = window.open(redirectDestination, target);\n win.focus();\n};\n\nconst getAffinityBaseUrl = () => {\n const options = getOptions();\n const apiBaseUrl = options.restApi.serviceUrl;\n\n if (apiBaseUrl.includes(\"services.sheerid.com\") || apiBaseUrl.includes(\"my.sheerid.com\")) {\n return \"https://shr-id.com\";\n }\n\n return \"https://aa-preview.sheerid.net\";\n};\n\nconst StepSuccess = ({ verificationService }: StepSuccessProps) => {\n const { verificationResponse, programId, viewModel } = verificationService;\n const { verificationId, redirectUrl } = verificationResponse as SuccessResponse;\n const { config } = verificationService.programTheme;\n const affinityRef = React.useRef<HTMLDivElement>(null);\n const shouldHideIcon = useFlag(\"hc-my-sheer-id-theme-builder\");\n\n const showRedirect = Boolean(redirectUrl);\n const rewardCode = (verificationResponse as SuccessResponse).rewardCode || \"{rewardCode}\";\n const noCodeType = config.offerType === \"noCode\";\n\n const { rewardDisplay } = config;\n const showReward = !noCodeType && !!rewardDisplay.length;\n\n const mockConsumerInfoState = getQueryOrOption(\n QUERY_STRING_REMEMBER_ME_OVERRIDE,\n ) as ConsumerInfoState;\n const consumerInfoState: ConsumerInfoState =\n mockConsumerInfoState || (verificationResponse as SuccessResponse).consumerInfoState;\n const showRememberMeFooter =\n consumerInfoState === \"consumerNotFound\" ||\n consumerInfoState === \"consumerFoundNewFieldsAvailable\";\n\n const locale = getLocaleSafely(viewModel, verificationResponse);\n\n const handleOnRedirect = () => {\n recordCTAClickEvent(EventName.SUCCESS_REDIRECT_CLICKED, {\n programId,\n locale,\n verificationId,\n });\n\n redirect(getRememberMeRedirectDestination(locale, programId, verificationId), \"_blank\");\n };\n\n React.useEffect(() => {\n // Load the affinity widget if enabled\n if (affinityRef.current) {\n affinityRef.current.innerHTML = \"\";\n loadAffinityIFrame(\n affinityRef.current,\n `${getAffinityBaseUrl()}/affinity/${locale}/${programId}/${verificationId}`,\n );\n }\n }, [affinityRef, programId, verificationId, locale]);\n\n return (\n <div id=\"sid-step-success\" className=\"sid-success-container sid-l-container\">\n <div role=\"main\">\n <div className=\"sid-header sid-l-horz-center sid-l-space-top-md\">\n <div className=\"sid-success-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n !shouldHideIcon && (\n <img\n className=\"sid-success-logo-default sid-l-lead-image\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/circle-check.svg\"\n />\n )\n }\n />\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.success.title\"\n defaultMessage=\"Success! You've been verified.\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.success.subtitle\"\n defaultMessage=\"You are now eligible for this special offer.\"\n tagName=\"p\"\n />\n </div>\n </div>\n\n {showReward && (\n <div className=\"sid-l-horz-center sid-reward-container sid-l-space-top-md\">\n {rewardDisplay.map((displayType) => {\n if (displayType !== RewardDisplayEnum.TEXT)\n return (\n <img\n key={displayType}\n className=\"sid-l-space-top-md sid-barcode\"\n alt={rewardCode}\n src={getBarcodeUrl(verificationId, \"rewardCode\", displayType)}\n />\n );\n return (\n <div key={displayType}>\n <div\n className=\"sid-reward-code sid-l-space-top-md sid-h-jumbo-text sid-l-horz-center\"\n role=\"region\"\n >\n {rewardCode}\n </div>\n <div className=\"sid-l-space-top-md sid-h-bold-text sid-l-horz-center\">\n <CopyToClipboard\n textToCopy={rewardCode}\n notificationText={\n <FormattedHTMLMessage id=\"copied\" defaultMessage=\"Copied\" />\n }\n >\n <FormattedHTMLMessage\n id=\"step.success.copyCouponCode\"\n defaultMessage=\"Copy coupon code\"\n />\n </CopyToClipboard>\n </div>\n </div>\n );\n })}\n </div>\n )}\n\n <div\n className={`sid-footer sid-success-footer sid-l-horz-center ${\n noCodeType ? \"sid-l-space-top-md\" : \"sid-l-space-top-lg\"\n }`}\n >\n <FormattedHTMLMessage\n id=\"step.success.emailNotification\"\n defaultMessage=\"We have sent you a confirmation email with redemption instructions. Look for the email from {email}.\"\n tagName=\"p\"\n values={{ email: \"verify@sheerid.com\" }}\n />\n </div>\n\n {showRedirect ? (\n <div className=\"sid-submit sid-success-submit sid-l-space-top-md\">\n <button\n type=\"button\"\n onClick={() => redirect(redirectUrl)}\n className=\"sid-btn sid-success-redirect-btn sid-btn--dark\"\n >\n <FormattedHTMLMessage\n id=\"step.success.redirectButtonText\"\n defaultMessage=\"Continue\"\n />\n </button>\n </div>\n ) : (\n \"\"\n )}\n </div>\n\n <div\n className=\"sid-footer sid-success-verification-only-footer sid-l-horz-center sid-l-space-top-lg sid-h-small-text\"\n role=\"contentinfo\"\n >\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.verificationOnly\"\n defaultMessage={`\n SheerID handles verification only.\n Now that you've been approved, please direct all questions about the\n promotion terms to {companyName} customer service.\n `}\n values={{ companyName }}\n tagName=\"p\"\n />\n )}\n </FormattedHTMLMessage>\n </div>\n\n {verificationService.programTheme.affinityProgramEnabled && (\n <div\n ref={affinityRef}\n id=\"sid-affinity-iframe\"\n className=\"sid-affinity-container sid-l-full-width sid-l-space-top-lg\"\n />\n )}\n\n {showRememberMeFooter && (\n <div className=\"sid-remember-me-footer-container\">\n <div className=\"sid-remember-me-title\">\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.title\"\n defaultMessage=\"Save your info for 1-click verification\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.title\"\n defaultMessage=\"Update Your Profile\"\n />\n )}\n </div>\n <div className=\"sid-remember-me-description\">\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.description\"\n defaultMessage=\"Get faster access to future offers with {companyName} and other brands using SheerID's Remember Me service.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n ) : (\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.description\"\n defaultMessage=\"Save new info for future offers with {companyName} and other brands using SheerID's Remember Me service.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n )}\n </div>\n <button\n type=\"button\"\n onClick={handleOnRedirect}\n className=\"sid-btn sid-remember-me-redirect-btn\"\n >\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.button\"\n defaultMessage=\"Enroll Now\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.button\"\n defaultMessage=\"Save to Remember Me\"\n />\n )}\n </button>\n </div>\n )}\n </div>\n );\n};\n\nexport const StepSuccessComponent = StepSuccess;\n"],"mappings":";;;;;;;;;;;;mCAcA,KAAA,MAAA;;;;;AAaA,GEXa,IAAiC;CAC5C,WAAW;EDJX,aAAa;GAZb,uBAAuB;GACvB,eAAe;GACf,cAAc;GACd,SAAS;GACT,cAAc;GACd,YAAY;GACZ,YAAY;EAMC;EACb,gCAAgC;EAChC,iCAAiC;CCEtB,EAAU,YAAY;CACjC,OAAO;AACT,GAEa,KAAuB,MAAwB;CAC1D,IAAI,OAAO,KAAc,YACvB,MAAU,MAAM,0CAA0C,OAAO,GAAW;AAEhF,GAEM,IAAN,MAAM,UAAe,EAAyB;CAC5C;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA,YAAqB;CAErB,eAA2B,CAAC;CAE5B,kBAAkC,CAAC;CAEnC,cAA2B,EAAa;CAExC,YAAY,GAA+B,GAAa;EAGtD,AAFA,MAAM,GAEF,EAAO,eAAe,CAAG,KAC3B,KAAK,mBAAmB,GACxB,KAAK,kBAAkB,IAAI,IAAI,EAAmB,CAAG,CAAC,GACtD,KAAK,wBAAwB,EAAO,eAAe,KAEnD,EAAO,MAAM,2DAA2D,YAAY;CAExF;CAEA,UAAgB;EACd,KAAK,gBAAgB,SAAS,MAAa,EAAS,CAAC;CACvD;CAEA,OAAO,iBAAyB;EAC9B,OAAO,KAAK,OAAO,EAAE,SAAS,EAAE,EAAE,OAAO,GAAG,CAAC;CAC/C;CAEA,OAAO,eAAe,GAA4B;EAChD,IAAI;GACF,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