@sheerid/jslib 2.166.0 → 2.167.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 (234) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +751 -750
  3. package/_mysheerid-preview.js.map +1 -1
  4. package/chunk/EmailLoopPending-ZOpr2Sd2.js +4 -4
  5. package/chunk/EmailLoopPending-pdu6KCZh.js +4 -4
  6. package/chunk/LicensedProfessionalOrganizationComponent-C8XqJ4_r.js +4 -4
  7. package/chunk/LicensedProfessionalOrganizationComponent-D-jfKTb1.js +4 -4
  8. package/chunk/Onfido-BG8cDEVW.js +4 -4
  9. package/chunk/StepIDCheckLoopOnfido-CoJSZ_N5.js +4 -4
  10. package/chunk/StepIDCheckLoopOnfido-DW5cbtuV.js +4 -4
  11. package/chunk/StepIDCheckLoopRegula-D231p_SV.js +4 -4
  12. package/chunk/StepIDCheckLoopRegula-WzqEOMN0.js +4 -4
  13. package/chunk/StepInactiveMilitaryPersonalInfoComponent-BiQXgrYi.js +4 -4
  14. package/chunk/StepInactiveMilitaryPersonalInfoComponent-e9f3r88m.js +4 -4
  15. package/chunk/ar-CcGzwFbJ.js +4 -4
  16. package/chunk/bg-C5zBut2N.js +4 -4
  17. package/chunk/bn-IN-W9kqontB.js +4 -4
  18. package/chunk/cs-CzUBPHhz.js +4 -4
  19. package/chunk/da-XGziWZSd.js +4 -4
  20. package/chunk/de-txB_l_df.js +4 -4
  21. package/chunk/el-DjSRagbo.js +4 -4
  22. package/chunk/en-GB-Dw9CvZ9z.js +4 -4
  23. package/chunk/es-ES-Be9ew3Fd.js +4 -4
  24. package/chunk/es-LzpyOS5X.js +4 -4
  25. package/chunk/fi-C4K7PiS2.js +4 -4
  26. package/chunk/fr-BoZAgkGQ.js +4 -4
  27. package/chunk/fr-CA-DhY-_Jx8.js +4 -4
  28. package/chunk/ga-BnNgwoaC.js +4 -4
  29. package/chunk/hi-IN-Cfm3hqE3.js +4 -4
  30. package/chunk/hr-6vo-aLba.js +4 -4
  31. package/chunk/hu-Div2g3nw.js +4 -4
  32. package/chunk/id-BpsfMtcQ.js +4 -4
  33. package/chunk/index-0Cdci3C8.js +4 -4
  34. package/chunk/index-2LiqR-HS.js +4 -4
  35. package/chunk/index-52Y0IU2Z.js +4 -4
  36. package/chunk/index-9HH2EZs3.js +4 -4
  37. package/chunk/index-9x3wrv0j.js +4 -4
  38. package/chunk/index-BAHIZ4mf.js +4 -4
  39. package/chunk/index-BCRglqv5.js +4 -4
  40. package/chunk/index-BFbpUbk0.js +4 -4
  41. package/chunk/index-BGcK4jIu.js +4 -4
  42. package/chunk/index-BGyQS1iv.js +4 -4
  43. package/chunk/index-BIzw9-LN.js +4 -4
  44. package/chunk/index-BPSsj5IJ.js +4 -4
  45. package/chunk/index-BaYzA81F.js +4 -4
  46. package/chunk/index-BarFYoJQ.js +4 -4
  47. package/chunk/index-Bf1rcOpS.js +4 -4
  48. package/chunk/index-BhD930o4.js +4 -4
  49. package/chunk/index-Bi5MVuN2.js +4 -4
  50. package/chunk/index-BmbOVduk.js +4 -4
  51. package/chunk/index-C-nBGyBN.js +4 -4
  52. package/chunk/index-C1RsiZ-I.js +4 -4
  53. package/chunk/index-C3puJbMQ.js +4 -4
  54. package/chunk/index-CExoDEku.js +4 -4
  55. package/chunk/index-COLP4SMl.js +4 -4
  56. package/chunk/index-Cgu2R8Lx.js +4 -4
  57. package/chunk/index-Cjq7_N7I.js +4 -4
  58. package/chunk/index-Crb7Nhvh.js +4 -4
  59. package/chunk/index-CwENnkXc.js +4 -4
  60. package/chunk/index-CxDG_VxT.js +4 -4
  61. package/chunk/index-DCyWqpgt.js +4 -4
  62. package/chunk/index-DDeFftQQ.js +4 -4
  63. package/chunk/index-DIkWpujR.js +4 -4
  64. package/chunk/index-DJ04MFZD.js +4 -4
  65. package/chunk/index-DMztrPpo.js +4 -4
  66. package/chunk/index-DP88H7RY.js +4 -4
  67. package/chunk/index-D_vy-x3C.js +4 -4
  68. package/chunk/index-Dbh2iG5X.js +4 -4
  69. package/chunk/index-Dkc0kgAx.js +4 -4
  70. package/chunk/index-sM-2pVfx.js +4 -4
  71. package/chunk/index-z2oAhMO1.js +4 -4
  72. package/chunk/is-C_bjct0v.js +4 -4
  73. package/chunk/it-B9VrNovd.js +4 -4
  74. package/chunk/iw-BWDXpPu_.js +4 -4
  75. package/chunk/ja-RMjRFKdJ.js +4 -4
  76. package/chunk/ko-CQjw0OOV.js +4 -4
  77. package/chunk/lo-B-mGFPWm.js +4 -4
  78. package/chunk/lt-Fq7dwTeb.js +4 -4
  79. package/chunk/ms-3-83GPm3.js +4 -4
  80. package/chunk/nl-BE-N9Zf-IfW.js +4 -4
  81. package/chunk/nl-CnVpWkL_.js +4 -4
  82. package/chunk/no-DqVphX43.js +4 -4
  83. package/chunk/pl-o0Oq6e0t.js +4 -4
  84. package/chunk/pt-BR-DRnRb2TJ.js +4 -4
  85. package/chunk/pt-DlzBzbs7.js +4 -4
  86. package/chunk/ro-CA7JhXGr.js +4 -4
  87. package/chunk/ru-DHC9n7Eu.js +4 -4
  88. package/chunk/sk-_p5l_8U1.js +4 -4
  89. package/chunk/sl-BXWDcoAC.js +4 -4
  90. package/chunk/sr-BvtLlSw_.js +4 -4
  91. package/chunk/sv-Cj-TIufh.js +4 -4
  92. package/chunk/sw-DcBeh-DX.js +4 -4
  93. package/chunk/th-Den6YuuF.js +4 -4
  94. package/chunk/tr-CVooXFLx.js +4 -4
  95. package/chunk/uk-DkEwO21M.js +4 -4
  96. package/chunk/ur-DUlop2j8.js +4 -4
  97. package/chunk/useCollectFieldsEndpoint-D0VXzWyt.js +4 -4
  98. package/chunk/useCollectFieldsEndpoint-DIzHv7w9.js +4 -4
  99. package/chunk/vi-BiBnrFh_.js +4 -4
  100. package/chunk/zh-HK-DPvvlZbJ.js +4 -4
  101. package/chunk/zh-QjMHzCyM.js +4 -4
  102. package/chunk/zu-BpouTmcz.js +4 -4
  103. package/es6.css +4 -4
  104. package/jslib.js +5 -5
  105. package/lib/{EmailLoopPending-OpYlTclJ.js → EmailLoopPending-CpFlpmW2.js} +5 -5
  106. package/lib/{EmailLoopPending-OpYlTclJ.js.map → EmailLoopPending-CpFlpmW2.js.map} +1 -1
  107. package/lib/{LicensedProfessionalOrganizationComponent-BMRtFHsG.js → LicensedProfessionalOrganizationComponent-BVB5f96o.js} +5 -5
  108. package/lib/{LicensedProfessionalOrganizationComponent-BMRtFHsG.js.map → LicensedProfessionalOrganizationComponent-BVB5f96o.js.map} +1 -1
  109. package/lib/Onfido-BG8cDEVW.js +4 -4
  110. package/lib/StepCollectMilitaryStatusComponent-A6lOGD7_.js +11 -0
  111. package/lib/{StepCollectMilitaryStatusComponent-B45XUBB4.js.map → StepCollectMilitaryStatusComponent-A6lOGD7_.js.map} +1 -1
  112. package/lib/{StepIDCheckLoopOnfido-FRF-5WzK.js → StepIDCheckLoopOnfido-CzTrxtUb.js} +5 -5
  113. package/lib/{StepIDCheckLoopOnfido-FRF-5WzK.js.map → StepIDCheckLoopOnfido-CzTrxtUb.js.map} +1 -1
  114. package/lib/{StepIDCheckLoopRegula-3Qp2jv-C.js → StepIDCheckLoopRegula-dSZd8Zir.js} +5 -5
  115. package/lib/{StepIDCheckLoopRegula-3Qp2jv-C.js.map → StepIDCheckLoopRegula-dSZd8Zir.js.map} +1 -1
  116. package/lib/{StepInactiveMilitaryPersonalInfoComponent-BrUxxlog.js → StepInactiveMilitaryPersonalInfoComponent-VG3aqONc.js} +6 -6
  117. package/lib/{StepInactiveMilitaryPersonalInfoComponent-BrUxxlog.js.map → StepInactiveMilitaryPersonalInfoComponent-VG3aqONc.js.map} +1 -1
  118. package/lib/{VerificationApiUtils-VweeSXcU.js → VerificationApiUtils-BwSyZ4ng.js} +5 -5
  119. package/lib/{VerificationApiUtils-VweeSXcU.js.map → VerificationApiUtils-BwSyZ4ng.js.map} +1 -1
  120. package/lib/ar-CcGzwFbJ.js +4 -4
  121. package/lib/bg-C5zBut2N.js +4 -4
  122. package/lib/bn-IN-W9kqontB.js +4 -4
  123. package/lib/cs-CzUBPHhz.js +4 -4
  124. package/lib/da-XGziWZSd.js +4 -4
  125. package/lib/de-txB_l_df.js +4 -4
  126. package/lib/el-DjSRagbo.js +4 -4
  127. package/lib/en-GB-Dw9CvZ9z.js +4 -4
  128. package/lib/es-ES-Be9ew3Fd.js +4 -4
  129. package/lib/es-LzpyOS5X.js +4 -4
  130. package/lib/{es6-B_1EiCNJ.js → es6-DsKtvQIF.js} +458 -457
  131. package/lib/{es6-B_1EiCNJ.js.map → es6-DsKtvQIF.js.map} +1 -1
  132. package/lib/fi-C4K7PiS2.js +4 -4
  133. package/lib/fr-BoZAgkGQ.js +4 -4
  134. package/lib/fr-CA-DhY-_Jx8.js +4 -4
  135. package/lib/ga-BnNgwoaC.js +4 -4
  136. package/lib/hi-IN-Cfm3hqE3.js +4 -4
  137. package/lib/hr-6vo-aLba.js +4 -4
  138. package/lib/hu-Div2g3nw.js +4 -4
  139. package/lib/id-BpsfMtcQ.js +4 -4
  140. package/lib/{index-LvsyHrOG.js → index-B4JJPV8k.js} +5 -5
  141. package/lib/{index-LvsyHrOG.js.map → index-B4JJPV8k.js.map} +1 -1
  142. package/lib/{index-BaJajj1E.js → index-BI83rTMV.js} +5 -5
  143. package/lib/{index-BaJajj1E.js.map → index-BI83rTMV.js.map} +1 -1
  144. package/lib/index-BJ64a9a3.js +11 -0
  145. package/lib/index-BJ64a9a3.js.map +1 -0
  146. package/lib/index-BLXD5tiV.js +11 -0
  147. package/lib/index-BLXD5tiV.js.map +1 -0
  148. package/lib/{index-B50o_Qhy.js → index-BPzm8FU3.js} +5 -5
  149. package/lib/{index-B50o_Qhy.js.map → index-BPzm8FU3.js.map} +1 -1
  150. package/lib/{index-D244qO-2.js → index-Bdvl8ZSI.js} +5 -5
  151. package/lib/{index-D244qO-2.js.map → index-Bdvl8ZSI.js.map} +1 -1
  152. package/lib/{index-DPtIIxdz.js → index-BeMcFA0y.js} +7 -7
  153. package/lib/{index-DPtIIxdz.js.map → index-BeMcFA0y.js.map} +1 -1
  154. package/lib/{index-D6CsDRJP.js → index-BzsBzSbp.js} +5 -5
  155. package/lib/{index-D6CsDRJP.js.map → index-BzsBzSbp.js.map} +1 -1
  156. package/lib/{index-BmRvOB_n.js → index-C3ejR2N0.js} +6 -6
  157. package/lib/{index-BmRvOB_n.js.map → index-C3ejR2N0.js.map} +1 -1
  158. package/lib/index-C6pWdPUG.js +11 -0
  159. package/lib/index-C6pWdPUG.js.map +1 -0
  160. package/lib/{index-Bia-TOpT.js → index-CFISSG1P.js} +5 -5
  161. package/lib/{index-Bia-TOpT.js.map → index-CFISSG1P.js.map} +1 -1
  162. package/lib/{index-nqkMXpNG.js → index-CK-6koDJ.js} +5 -5
  163. package/lib/{index-nqkMXpNG.js.map → index-CK-6koDJ.js.map} +1 -1
  164. package/lib/{index-nzujyYBW.js → index-CNDXbjPf.js} +6 -6
  165. package/lib/{index-nzujyYBW.js.map → index-CNDXbjPf.js.map} +1 -1
  166. package/lib/{index-CMSrkfKN.js → index-CxgEF6Zv.js} +6 -6
  167. package/lib/{index-CMSrkfKN.js.map → index-CxgEF6Zv.js.map} +1 -1
  168. package/lib/{index-CQBSgXp6.js → index-D22Z-ZUg.js} +5 -5
  169. package/lib/{index-CQBSgXp6.js.map → index-D22Z-ZUg.js.map} +1 -1
  170. package/lib/index-DIkWpujR.js +4 -4
  171. package/lib/{index-DFc6xaz5.js → index-DWIIFKCt.js} +6 -6
  172. package/lib/{index-DFc6xaz5.js.map → index-DWIIFKCt.js.map} +1 -1
  173. package/lib/{index-cnrqVDX3.js → index-FbqCAhY9.js} +5 -5
  174. package/lib/{index-cnrqVDX3.js.map → index-FbqCAhY9.js.map} +1 -1
  175. package/lib/{index-B7SvE_Sy.js → index-GTztpi_I.js} +5 -5
  176. package/lib/{index-B7SvE_Sy.js.map → index-GTztpi_I.js.map} +1 -1
  177. package/lib/{index-BqO9xj3C.js → index-Leqwa6cM.js} +5 -5
  178. package/lib/{index-BqO9xj3C.js.map → index-Leqwa6cM.js.map} +1 -1
  179. package/lib/{index-D0PmYvUb.js → index-PyqWnjQq.js} +5 -5
  180. package/lib/{index-D0PmYvUb.js.map → index-PyqWnjQq.js.map} +1 -1
  181. package/lib/{index-BdPvkjPc.js → index-RKzTnyDK.js} +5 -5
  182. package/lib/{index-BdPvkjPc.js.map → index-RKzTnyDK.js.map} +1 -1
  183. package/lib/{index-DCjA_QuI.js → index-daEBXC0l.js} +6 -6
  184. package/lib/{index-DCjA_QuI.js.map → index-daEBXC0l.js.map} +1 -1
  185. package/lib/index-qPEQATrJ.js +11 -0
  186. package/lib/index-qPEQATrJ.js.map +1 -0
  187. package/lib/is-C_bjct0v.js +4 -4
  188. package/lib/it-B9VrNovd.js +4 -4
  189. package/lib/iw-BWDXpPu_.js +4 -4
  190. package/lib/ja-RMjRFKdJ.js +4 -4
  191. package/lib/ko-CQjw0OOV.js +4 -4
  192. package/lib/lo-B-mGFPWm.js +4 -4
  193. package/lib/lt-Fq7dwTeb.js +4 -4
  194. package/lib/ms-3-83GPm3.js +4 -4
  195. package/lib/nl-BE-N9Zf-IfW.js +4 -4
  196. package/lib/nl-CnVpWkL_.js +4 -4
  197. package/lib/no-DqVphX43.js +4 -4
  198. package/lib/pl-o0Oq6e0t.js +4 -4
  199. package/lib/pt-BR-DRnRb2TJ.js +4 -4
  200. package/lib/pt-DlzBzbs7.js +4 -4
  201. package/lib/ro-CA7JhXGr.js +4 -4
  202. package/lib/ru-DHC9n7Eu.js +4 -4
  203. package/lib/sk-_p5l_8U1.js +4 -4
  204. package/lib/sl-BXWDcoAC.js +4 -4
  205. package/lib/sr-BvtLlSw_.js +4 -4
  206. package/lib/sv-Cj-TIufh.js +4 -4
  207. package/lib/sw-DcBeh-DX.js +4 -4
  208. package/lib/th-Den6YuuF.js +4 -4
  209. package/lib/tr-CVooXFLx.js +4 -4
  210. package/lib/uk-DkEwO21M.js +4 -4
  211. package/lib/ur-DUlop2j8.js +4 -4
  212. package/lib/{useCollectFieldsEndpoint-x3P3CNle.js → useCollectFieldsEndpoint-C3SdKl6S.js} +6 -6
  213. package/lib/{useCollectFieldsEndpoint-x3P3CNle.js.map → useCollectFieldsEndpoint-C3SdKl6S.js.map} +1 -1
  214. package/lib/vi-BiBnrFh_.js +4 -4
  215. package/lib/zh-HK-DPvvlZbJ.js +4 -4
  216. package/lib/zh-QjMHzCyM.js +4 -4
  217. package/lib/zu-BpouTmcz.js +4 -4
  218. package/package.json +1 -1
  219. package/sheerid-install.css +4 -4
  220. package/sheerid-install.js +5 -5
  221. package/sheerid.css +4 -4
  222. package/sheerid.js +742 -741
  223. package/sheerid.js.map +1 -1
  224. package/src/components/FeatureFlags/useMetrics.d.ts +1 -0
  225. package/types-reference.zip +0 -0
  226. package/lib/StepCollectMilitaryStatusComponent-B45XUBB4.js +0 -11
  227. package/lib/index-B2zrFD-O.js +0 -11
  228. package/lib/index-B2zrFD-O.js.map +0 -1
  229. package/lib/index-Bmv0_JCf.js +0 -11
  230. package/lib/index-Bmv0_JCf.js.map +0 -1
  231. package/lib/index-CIk0iH6W.js +0 -11
  232. package/lib/index-CIk0iH6W.js.map +0 -1
  233. package/lib/index-DUZ1nz7H.js +0 -11
  234. package/lib/index-DUZ1nz7H.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index-D6CsDRJP.js","sources":["../../src/components/StepConsolation/StepConsolationComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { VerificationService, ConsolationResponse } from \"../../lib/types/types\";\n\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { CopyToClipboard } from \"../CopyToClipboard/CopyToClipboardComponent\";\nimport { RewardDisplayEnum } from \"../../lib/types/runtimeTypes\";\nimport { getBarcodeUrl } from \"../../lib/ServerApi/ApiUrls\";\n\ninterface StepConsolationProps {\n verificationService: VerificationService;\n}\n\nconst StepConsolation = ({ verificationService }: StepConsolationProps) => {\n const consolationRewardCode =\n (verificationService.verificationResponse as ConsolationResponse).consolationRewardCode ||\n \"${consolationRewardCode}\"; // eslint-disable-line no-template-curly-in-string\n\n const noCodeType = verificationService.programTheme.config.offerType === \"noCode\";\n const { verificationId } = verificationService.verificationResponse;\n\n const { rewardDisplay } = verificationService.programTheme.config;\n const showReward = !noCodeType && !!rewardDisplay.length;\n\n return (\n <div id=\"sid-step-consolation\" className=\"sid-l-container\">\n <div className=\"sid-header sid-l-horz-center sid-l-space-top-md\">\n <div className=\"sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n\n <div\n className=\"sid-header__title sid-l-horz-center sid-l-space-top-md\"\n id=\"consolation-status\"\n role=\"alertdialog\"\n >\n <FormattedHTMLMessage\n id=\"step.consolation.title\"\n defaultMessage=\"Claim your offer\"\n tagName=\"h1\"\n />\n </div>\n\n <div className=\"sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.consolation.subtitle\"\n defaultMessage=\"Unfortunately we could not verify your status, but we value your interest and are offering this promo code as a thank you. It is unique to you and can only be used once.\"\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={consolationRewardCode}\n src={getBarcodeUrl(verificationId, \"consolationRewardCode\", displayType)}\n />\n );\n return (\n <>\n <div\n className=\"sid-reward-code sid-l-space-top-lg sid-h-jumbo-text sid-l-horz-center\"\n role=\"region\"\n >\n {consolationRewardCode}\n </div>\n <div className=\"sid-l-space-top-md sid-h-bold-text sid-l-horz-center\">\n <CopyToClipboard\n textToCopy={consolationRewardCode}\n notificationText={<FormattedHTMLMessage id=\"copied\" defaultMessage=\"Copied\" />}\n >\n <FormattedHTMLMessage\n id=\"step.success.copyCouponCode\"\n defaultMessage=\"Copy Coupon code\"\n />\n </CopyToClipboard>\n </div>\n </>\n );\n })}\n </div>\n )}\n\n <div className=\"sid-footer sid-l-horz-center sid-l-space-top-lg\">\n <FormattedHTMLMessage\n id=\"rewardCodeEmailNotification\"\n defaultMessage=\"We have emailed you a copy so you can use your new code now or later. Look for the email from verify@sheerid.com.\"\n />\n </div>\n\n <div\n className=\"sid-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.consolation.verificationOnly\"\n defaultMessage=\"Please direct any and all questions about this offer to {companyName}.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n </div>\n </div>\n );\n};\n\nexport const StepConsolationComponent = StepConsolation;\n"],"names":["StepConsolation","verificationService","consolationRewardCode","noCodeType","verificationId","rewardDisplay","showReward","jsxs","jsx","LogoComponent","FormattedHTMLMessage","displayType","RewardDisplayEnum","getBarcodeUrl","Fragment","CopyToClipboard","companyName","StepConsolationComponent"],"mappings":";;AAcA,MAAMA,IAAkB,CAAC,EAAE,qBAAAC,QAAgD;AACzE,QAAMC,IACHD,EAAoB,qBAA6C,yBAClE,4BAEIE,IAAaF,EAAoB,aAAa,OAAO,cAAc,UACnE,EAAE,gBAAAG,MAAmBH,EAAoB,sBAEzC,EAAE,eAAAI,EAAA,IAAkBJ,EAAoB,aAAa,QACrDK,IAAa,CAACH,KAAc,CAAC,CAACE,EAAc;AAElD,SACEE,gBAAAA,EAAAA,KAAC,OAAA,EAAI,IAAG,wBAAuB,WAAU,mBACvC,UAAA;AAAA,IAAAA,gBAAAA,EAAAA,KAAC,OAAA,EAAI,WAAU,mDACb,UAAA;AAAA,MAAAC,gBAAAA,EAAAA,IAAC,SAAI,WAAU,qBACb,UAAAA,gBAAAA,EAAAA,IAACC,GAAA,EAAc,qBAAAR,GAA0C,GAC3D;AAAA,MAEAO,gBAAAA,EAAAA;AAAAA,QAAC;AAAA,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CAEH,EAAA,CACH;AAAA,IAGFF,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,mDACb,UAAAA,gBAAAA,EAAAA;AAAAA,MAACE;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH,gBAAe;AAAA,MAAA;AAAA,IAAA,GAEnB;AAAA,IAEAF,gBAAAA,EAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,MAAK;AAAA,QAEL,gCAACE,GAAA,EAAqB,IAAG,eAAc,gBAAe,aACnD,WAACM,MACAR,gBAAAA,EAAAA;AAAAA,UAACE;AAAA,UAAA;AAAA,YACC,IAAG;AAAA,YACH,gBAAe;AAAA,YACf,QAAQ,EAAE,aAAAM,EAAA;AAAA,UAAY;AAAA,QAAA,EACxB,CAEJ;AAAA,MAAA;AAAA,IAAA;AAAA,EACF,GACF;AAEJ,GAEaC,IAA2BjB;"}
1
+ {"version":3,"file":"index-BzsBzSbp.js","sources":["../../src/components/StepConsolation/StepConsolationComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { VerificationService, ConsolationResponse } from \"../../lib/types/types\";\n\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { CopyToClipboard } from \"../CopyToClipboard/CopyToClipboardComponent\";\nimport { RewardDisplayEnum } from \"../../lib/types/runtimeTypes\";\nimport { getBarcodeUrl } from \"../../lib/ServerApi/ApiUrls\";\n\ninterface StepConsolationProps {\n verificationService: VerificationService;\n}\n\nconst StepConsolation = ({ verificationService }: StepConsolationProps) => {\n const consolationRewardCode =\n (verificationService.verificationResponse as ConsolationResponse).consolationRewardCode ||\n \"${consolationRewardCode}\"; // eslint-disable-line no-template-curly-in-string\n\n const noCodeType = verificationService.programTheme.config.offerType === \"noCode\";\n const { verificationId } = verificationService.verificationResponse;\n\n const { rewardDisplay } = verificationService.programTheme.config;\n const showReward = !noCodeType && !!rewardDisplay.length;\n\n return (\n <div id=\"sid-step-consolation\" className=\"sid-l-container\">\n <div className=\"sid-header sid-l-horz-center sid-l-space-top-md\">\n <div className=\"sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n\n <div\n className=\"sid-header__title sid-l-horz-center sid-l-space-top-md\"\n id=\"consolation-status\"\n role=\"alertdialog\"\n >\n <FormattedHTMLMessage\n id=\"step.consolation.title\"\n defaultMessage=\"Claim your offer\"\n tagName=\"h1\"\n />\n </div>\n\n <div className=\"sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.consolation.subtitle\"\n defaultMessage=\"Unfortunately we could not verify your status, but we value your interest and are offering this promo code as a thank you. It is unique to you and can only be used once.\"\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={consolationRewardCode}\n src={getBarcodeUrl(verificationId, \"consolationRewardCode\", displayType)}\n />\n );\n return (\n <>\n <div\n className=\"sid-reward-code sid-l-space-top-lg sid-h-jumbo-text sid-l-horz-center\"\n role=\"region\"\n >\n {consolationRewardCode}\n </div>\n <div className=\"sid-l-space-top-md sid-h-bold-text sid-l-horz-center\">\n <CopyToClipboard\n textToCopy={consolationRewardCode}\n notificationText={<FormattedHTMLMessage id=\"copied\" defaultMessage=\"Copied\" />}\n >\n <FormattedHTMLMessage\n id=\"step.success.copyCouponCode\"\n defaultMessage=\"Copy Coupon code\"\n />\n </CopyToClipboard>\n </div>\n </>\n );\n })}\n </div>\n )}\n\n <div className=\"sid-footer sid-l-horz-center sid-l-space-top-lg\">\n <FormattedHTMLMessage\n id=\"rewardCodeEmailNotification\"\n defaultMessage=\"We have emailed you a copy so you can use your new code now or later. Look for the email from verify@sheerid.com.\"\n />\n </div>\n\n <div\n className=\"sid-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.consolation.verificationOnly\"\n defaultMessage=\"Please direct any and all questions about this offer to {companyName}.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n </div>\n </div>\n );\n};\n\nexport const StepConsolationComponent = StepConsolation;\n"],"names":["StepConsolation","verificationService","consolationRewardCode","noCodeType","verificationId","rewardDisplay","showReward","jsxs","jsx","LogoComponent","FormattedHTMLMessage","displayType","RewardDisplayEnum","getBarcodeUrl","Fragment","CopyToClipboard","companyName","StepConsolationComponent"],"mappings":";;AAcA,MAAMA,IAAkB,CAAC,EAAE,qBAAAC,QAAgD;AACzE,QAAMC,IACHD,EAAoB,qBAA6C,yBAClE,4BAEIE,IAAaF,EAAoB,aAAa,OAAO,cAAc,UACnE,EAAE,gBAAAG,MAAmBH,EAAoB,sBAEzC,EAAE,eAAAI,EAAA,IAAkBJ,EAAoB,aAAa,QACrDK,IAAa,CAACH,KAAc,CAAC,CAACE,EAAc;AAElD,SACEE,gBAAAA,EAAAA,KAAC,OAAA,EAAI,IAAG,wBAAuB,WAAU,mBACvC,UAAA;AAAA,IAAAA,gBAAAA,EAAAA,KAAC,OAAA,EAAI,WAAU,mDACb,UAAA;AAAA,MAAAC,gBAAAA,EAAAA,IAAC,SAAI,WAAU,qBACb,UAAAA,gBAAAA,EAAAA,IAACC,GAAA,EAAc,qBAAAR,GAA0C,GAC3D;AAAA,MAEAO,gBAAAA,EAAAA;AAAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,IAAG;AAAA,UACH,MAAK;AAAA,UAEL,UAAAA,gBAAAA,EAAAA;AAAAA,YAACE;AAAA,YAAA;AAAA,cACC,IAAG;AAAA,cACH,gBAAe;AAAA,cACf,SAAQ;AAAA,YAAA;AAAA,UAAA;AAAA,QACV;AAAA,MAAA;AAAA,MAGFF,gBAAAA,EAAAA,IAAC,OAAA,EA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;AAAA,QACV,MAAK;AAAA,QAEL,gCAACE,GAAA,EAAqB,IAAG,eAAc,gBAAe,aACnD,WAACM,MACAR,gBAAAA,EAAAA;AAAAA,UAACE;AAAA,UAAA;AAAA,YACC,IAAG;AAAA,YACH,gBAAe;AAAA,YACf,QAAQ,EAAE,aAAAM,EAAA;AAAA,UAAY;AAAA,QAAA,EACxB,CAEJ;AAAA,MAAA;AAAA,IAAA;AAAA,EACF,GACF;AAEJ,GAEaC,IAA2BjB;"}
@@ -1,14 +1,14 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.166.0
4
- * BUILD_TIMESTAMP: 1769197166286
5
- * BUILD_DATE: Fri Jan 23 2026 19:39:26 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: cde9aefc9a9384be0c907749794641b455da4365
3
+ * VERSION: 2.167.0
4
+ * BUILD_TIMESTAMP: 1769453193982
5
+ * BUILD_DATE: Mon Jan 26 2026 18:46:33 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 3a1c44e88767f1f45b836003ddfd4780909d1865
7
7
  */
8
- import { k as f, aa as F, ab as c, i as M, o as d, j as a, N as P, O as D, m as R, x as T, a2 as V, f as l, T as k, U as A, a5 as q, ac as B, W as L, X as U, E as W, n as O, Y as _, Z as w, _ as H, $ as K, p as X, V as Y, ad as Z } from "./es6-B_1EiCNJ.js";
8
+ import { k as f, aa as F, ab as c, i as M, o as d, j as a, N as P, O as D, m as R, x as T, a2 as V, f as l, T as k, U as A, a5 as q, ac as B, W as L, X as U, E as W, n as O, Y as _, Z as w, _ as H, $ as K, p as X, V as Y, ad as Z } from "./es6-DsKtvQIF.js";
9
9
  import $ from "react";
10
10
  import { injectIntl as z, FormattedHTMLMessage as p } from "react-intl";
11
- import { u as G } from "./useCollectFieldsEndpoint-x3P3CNle.js";
11
+ import { u as G } from "./useCollectFieldsEndpoint-C3SdKl6S.js";
12
12
  const J = ({ verificationService: s, intl: C }) => {
13
13
  const o = s.viewModel, { fieldValidationErrors: t } = s, r = s.verificationResponse, h = f(r), b = F(
14
14
  s.programTheme,
@@ -1 +1 @@
1
- {"version":3,"file":"index-BmRvOB_n.js","sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport {\n VerificationService,\n AgePersonalInfoViewModel,\n AgePersonalInfoResponse,\n FormSelectChoice,\n Country,\n FieldDescription,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"names":["StepAgePersonalInfo","verificationService","intl","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","countryChoices","getAvailableCountryChoices","defaultCountryChoice","getDefaultCountryChoice","safeCountryValue","getSafe","defaultRequiredFields","showPhoneNumber","phoneNumberRequired","locale","options","getOptions","updateAgeViewModel","key","value","nextState","produceDraftViewModel","isFieldRequired","useCollectFieldsEndpoint","React","updateFieldValidationErrorsByFieldId","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","FirstName","newValue","LastName","BirthDate","CityComponent","AddressComponent","PostalCode","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepAgePersonalInfoComponent","injectIntl"],"mappings":";;;;AAqDA,MAAMA,IAAsB,CAAC,EAAE,qBAAAC,GAAqB,MAAAC,QAA8C;AAChG,QAAMC,IAAYF,EAAoB,WAChC,EAAE,uBAAAG,MAA0BH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A,YACA,WAAAE;AAAA,YACA,oBAAAG;AAAA,YACA,YACEyB,gBAAAA,EAAAA;AAAAA,cAACa;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaU,KAA+BC,EAAWvD,CAAmB;"}
1
+ {"version":3,"file":"index-C3ejR2N0.js","sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport {\n VerificationService,\n AgePersonalInfoViewModel,\n AgePersonalInfoResponse,\n FormSelectChoice,\n Country,\n FieldDescription,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"names":["StepAgePersonalInfo","verificationService","intl","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","countryChoices","getAvailableCountryChoices","defaultCountryChoice","getDefaultCountryChoice","safeCountryValue","getSafe","defaultRequiredFields","showPhoneNumber","phoneNumberRequired","locale","options","getOptions","updateAgeViewModel","key","value","nextState","produceDraftViewModel","isFieldRequired","useCollectFieldsEndpoint","React","updateFieldValidationErrorsByFieldId","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","FirstName","newValue","LastName","BirthDate","CityComponent","AddressComponent","PostalCode","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","P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G3DJ,gBAAAA,EAAAA,IAACoB,GAAA,EAAa,qBAAAlD,GAA0C,QAAO,qBAAA,CAAqB;AAAA,QAEpF8B,gBAAAA,EAAAA;AAAAA,UAACqB;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAApD;AAAA,YACA,WAAAE;AAAA,YACA,oBAAAG;AAAA,YACA,YACEyB,gBAAAA,EAAAA;AAAAA,cAACa;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaU,KAA+BC,EAAWvD,CAAmB;"}
@@ -0,0 +1,11 @@
1
+
2
+ /**
3
+ * VERSION: 2.167.0
4
+ * BUILD_TIMESTAMP: 1769453193982
5
+ * BUILD_DATE: Mon Jan 26 2026 18:46:33 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 3a1c44e88767f1f45b836003ddfd4780909d1865
7
+ */
8
+ import { d as e } from "./es6-DsKtvQIF.js";
9
+ export {
10
+ e as default
11
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-C6pWdPUG.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,11 +1,11 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.166.0
4
- * BUILD_TIMESTAMP: 1769197166286
5
- * BUILD_DATE: Fri Jan 23 2026 19:39:26 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: cde9aefc9a9384be0c907749794641b455da4365
3
+ * VERSION: 2.167.0
4
+ * BUILD_TIMESTAMP: 1769453193982
5
+ * BUILD_DATE: Mon Jan 26 2026 18:46:33 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 3a1c44e88767f1f45b836003ddfd4780909d1865
7
7
  */
8
- import { i as l, j as e, A as S, a0 as R, r as E, l as V, V as w, M as y } from "./es6-B_1EiCNJ.js";
8
+ import { i as l, j as e, A as S, a0 as R, r as E, l as V, V as w, M as y } from "./es6-DsKtvQIF.js";
9
9
  import c from "react";
10
10
  import { injectIntl as _, FormattedHTMLMessage as t } from "react-intl";
11
11
  const k = ({ intl: i, verificationService: s }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"index-Bia-TOpT.js","sources":["../../src/components/StepSMSLoop/StepSMSLoopComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { injectIntl, FormattedHTMLMessage, InjectedIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n SMSLoopResponse,\n SMSLoopViewModel,\n} from \"../../lib/types/types\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\n\nimport { SMSCodeComponent } from \"../FormFields/SMSCode/SMSCodeComponent\";\n\nimport { VerificationApiClient } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepSMSLoopProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepSMSLoop = ({ intl, verificationService }: StepSMSLoopProps) => {\n const viewModel = verificationService.viewModel as SMSLoopViewModel;\n const verificationResponse = verificationService.verificationResponse as SMSLoopResponse;\n const isErrored = Boolean(verificationService.fieldValidationErrors.smsCode);\n const previousViewModel =\n (verificationService.previousViewModel as StudentPersonalInfoViewModel) || undefined;\n\n const [stepResultMessage, setStepResultMessage] = React.useState(\"\");\n const [isAttemptLimitExceeded, setAttemptLimitExceeded] = React.useState(\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"incorrectSMSCodeAttemptLimitExceeded\"),\n );\n\n const stepSuccessMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.successResend\",\n defaultMessage: \"SMS message re-sent successfully\",\n });\n const maxTotalRetriesMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.codeResendLimit\",\n defaultMessage: \"Maximum number of re-tries has been reached.\",\n });\n const maxRetriesPerCodeMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.codeResendLimit\",\n defaultMessage: \"Maximum number of re-tries has been reached.\",\n });\n const errorResendingSMSMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.resend\",\n defaultMessage: \"Error sending the SMS message\",\n });\n\n React.useEffect(() => {\n if (isAttemptLimitExceeded) {\n setStepResultMessage(maxRetriesPerCodeMessage);\n }\n }, []);\n\n if (\n getSafe(() => verificationResponse.errorIds.length) &&\n !verificationService.fieldValidationErrors.smsCode\n ) {\n verificationService.updateFieldValidationErrors({\n ...verificationService.fieldValidationErrors,\n smsCode: verificationResponse.errorIds[0],\n });\n }\n\n const updateSmsCode = (value) => {\n const nextState: SMSLoopViewModel = produce(viewModel, (draft: SMSLoopViewModel) => {\n draft.smsCode = value;\n draft.phoneNumber = previousViewModel && previousViewModel.phoneNumber;\n });\n verificationService.updateViewModel(nextState);\n };\n\n const submitForm = () => {\n logger.info(\"StepSMSLoop submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.smsLoop,\n viewModel,\n verificationService.verificationResponse,\n );\n };\n\n const resendSmsCode = async (verificationId) => {\n const response = await VerificationApiClient.getResendNewSmsCode(verificationId);\n if (response) {\n setAttemptLimitExceeded(false);\n setStepResultMessage(response.status === 204 ? stepSuccessMessage : maxTotalRetriesMessage);\n } else {\n setStepResultMessage(errorResendingSMSMessage);\n }\n };\n\n return (\n <div id=\"sid-step-sms-loop\" className=\"sid-sms-loop-container sid-l-container\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.smsLoop.verificationCode\"\n defaultMessage=\"Verification Code\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n\n <div className=\"sid-header__subtitle\">\n {getSafe(() => previousViewModel.phoneNumber) ? (\n <FormattedHTMLMessage\n id=\"step.smsLoop.titleWithNumber\"\n defaultMessage=\"We've sent an SMS message to the mobile number ending in {number}. Enter your code here.\"\n values={{\n number: getSafe(() => previousViewModel.phoneNumber.slice(-4), \"\"),\n }}\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.smsLoop.titleWithoutNumber\"\n defaultMessage=\"We've sent an SMS to your mobile number. Please enter the code here.\"\n />\n )}\n </div>\n\n <div className=\"sid-sms-code-id-wrapper sid-l-horz-center\">\n <SMSCodeComponent\n onChange={updateSmsCode}\n value={viewModel.smsCode}\n isErrored={isErrored}\n errorId={verificationService.fieldValidationErrors.smsCode}\n />\n </div>\n\n {stepResultMessage && (\n <div>\n <p>{stepResultMessage}</p>\n </div>\n )}\n\n <div className=\"sid-submit sid-sms-loop-submit sid-l-space-top-md sid-l-horz-center\">\n <button\n id=\"sid-submit-sms-code\"\n onClick={submitForm}\n type=\"button\"\n className=\"sid-btn sid-sms-loop-submit-btn sid-btn--dark sid-submit__continue\"\n aria-label=\"submit\"\n disabled={\n !!(!viewModel.smsCode || viewModel.smsCode.length <= 0 || isAttemptLimitExceeded)\n }\n >\n <FormattedHTMLMessage id=\"step.smsLoop.submitButton\" defaultMessage=\"Submit\" />\n </button>\n\n <div className=\"sid-l-space-left-sm\">&nbsp;</div>\n\n <button\n id=\"sid-resend-sms-code\"\n onClick={() => resendSmsCode(verificationResponse.verificationId)}\n type=\"submit\"\n className=\"sid-btn sid-resend-sms-code-btn sid-btn--light sid-submit__cancel\"\n aria-label=\"re-send\"\n >\n <FormattedHTMLMessage id=\"step.smsLoop.resendButton\" defaultMessage=\"Re-send\" />\n </button>\n </div>\n\n <div className=\"sid-incorrect-number sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber1\"\n defaultMessage=\"Incorrect number? Click\"\n />\n &nbsp;\n <button\n type=\"button\"\n onClick={() => window.location.reload()}\n className=\"sid-incorrect-number__refresh-link sid-h-btn-link-like\"\n >\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber2\"\n defaultMessage=\"here\"\n />\n &nbsp;\n </button>\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber3\"\n defaultMessage=\"to return to {companyName}\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n </div>\n </div>\n );\n};\n\nexport const StepSMSLoopComponent = injectIntl(StepSMSLoop);\n"],"names":["StepSMSLoop","intl","verificationService","viewModel","verificationResponse","isErrored","previousViewModel","stepResultMessage","setStepResultMessage","React","isAttemptLimitExceeded","setAttemptLimitExceeded","stepSuccessMessage","maxTotalRetriesMessage","maxRetriesPerCodeMessage","errorResendingSMSMessage","getSafe","updateSmsCode","value","nextState","produce","draft","submitForm","logger","VerificationStepsEnum","resendSmsCode","verificationId","response","VerificationApiClient","jsxs","jsx","AnnouncingHeader","FormattedHTMLMessage","SMSCodeComponent","companyName","StepSMSLoopComponent","injectIntl"],"mappings":";;;AAwBA,MAAMA,IAAc,CAAC,EAAE,MAAAC,GAAM,qBAAAC,QAA4C;AACvE,QAAMC,IAAYD,EAAoB,WAChCE,IAAuBF,EAAoB,sBAC3CG,IAAY,EAAQH,EAAoB,sBAAsB,SAC9DI,IACHJ,EAAoB,qBAAsD,QAEvE,CAACK,GAAmBC,CAAoB,IAAIC,EAAM,SAAS,EAAE,GAC7D,CAACC,GAAwBC,CAAuB,IAAIF,EAAM;AAAA,IAC9DL,EAAqB,YACnBA,EAAqB,SAAS,SAAS,sCAAsC;AAAA,EAAA,GAG3EQ,IAAqBX,EAAK,kBAAkB;AAAA,IAChD,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA,CACjB,GACKY,IAAyBZ,EAAK,kBAAkB;AAAA,IACpD,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA,CACjB,GACKa,IAA2Bb,EAAK,kBAAkB;AAAA,IACtD,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA,CACjB,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AAA;AAAA,UACC,IAAG;AAAA,UACH,SAAS,MAAML,EAAcrB,EAAqB,cAAc;AAAA,UAChE,MAAK;AAAA,UACL,WAAU;AAAA,UACV,cAAW;AAAA,UAEX,UAAA0B,gBAAAA,EAAAA,IAACE,GAAA,EAAqB,IAAG,6BAA4B,gBAAe,UAAA,CAAU;AAAA,QAAA;AAAA,MAAA;AAAA,IAChF,GACF;AAAA,IAEAH,gBAAAA,EAAAA,KAAC,OAAA,EAAI,WAAU,0CACb,UAAA;AAAA,MAAAC,gBAAAA,EAAAA;AAAAA,QAACE;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,QAAA;AAAA,MAAA;AAAA,MACf;AAAA,MAEFH,gBAAAA,EAAAA;AAAAA,QAAC;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,SAAS,MAAM,OAAO,SAAS,OAAA;AAAA,UAC/B,WAAU;AAAA,UAEV,UAAA;AAAA,YAAAC,gBAAAA,EAAAA;AAAAA,cAACE;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,YACf;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,4BAGHA,GAAA,EAAqB,IAAG,eAAc,gBAAe,aACnD,WAACE,MACAJ,gBAAAA,EAAAA;AAAAA,QAACE;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,UACf,QAAQ,EAAE,aAAAE,EAAA;AAAA,QAAY;AAAA,MAAA,EACxB,CAEJ;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,GACF;AAEJ,GAEaC,IAAuBC,EAAWpC,CAAW;"}
1
+ {"version":3,"file":"index-CFISSG1P.js","sources":["../../src/components/StepSMSLoop/StepSMSLoopComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { injectIntl, FormattedHTMLMessage, InjectedIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n SMSLoopResponse,\n SMSLoopViewModel,\n} from \"../../lib/types/types\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\n\nimport { SMSCodeComponent } from \"../FormFields/SMSCode/SMSCodeComponent\";\n\nimport { VerificationApiClient } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepSMSLoopProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepSMSLoop = ({ intl, verificationService }: StepSMSLoopProps) => {\n const viewModel = verificationService.viewModel as SMSLoopViewModel;\n const verificationResponse = verificationService.verificationResponse as SMSLoopResponse;\n const isErrored = Boolean(verificationService.fieldValidationErrors.smsCode);\n const previousViewModel =\n (verificationService.previousViewModel as StudentPersonalInfoViewModel) || undefined;\n\n const [stepResultMessage, setStepResultMessage] = React.useState(\"\");\n const [isAttemptLimitExceeded, setAttemptLimitExceeded] = React.useState(\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"incorrectSMSCodeAttemptLimitExceeded\"),\n );\n\n const stepSuccessMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.successResend\",\n defaultMessage: \"SMS message re-sent successfully\",\n });\n const maxTotalRetriesMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.codeResendLimit\",\n defaultMessage: \"Maximum number of re-tries has been reached.\",\n });\n const maxRetriesPerCodeMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.codeResendLimit\",\n defaultMessage: \"Maximum number of re-tries has been reached.\",\n });\n const errorResendingSMSMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.resend\",\n defaultMessage: \"Error sending the SMS message\",\n });\n\n React.useEffect(() => {\n if (isAttemptLimitExceeded) {\n setStepResultMessage(maxRetriesPerCodeMessage);\n }\n }, []);\n\n if (\n getSafe(() => verificationResponse.errorIds.length) &&\n !verificationService.fieldValidationErrors.smsCode\n ) {\n verificationService.updateFieldValidationErrors({\n ...verificationService.fieldValidationErrors,\n smsCode: verificationResponse.errorIds[0],\n });\n }\n\n const updateSmsCode = (value) => {\n const nextState: SMSLoopViewModel = produce(viewModel, (draft: SMSLoopViewModel) => {\n draft.smsCode = value;\n draft.phoneNumber = previousViewModel && previousViewModel.phoneNumber;\n });\n verificationService.updateViewModel(nextState);\n };\n\n const submitForm = () => {\n logger.info(\"StepSMSLoop submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.smsLoop,\n viewModel,\n verificationService.verificationResponse,\n );\n };\n\n const resendSmsCode = async (verificationId) => {\n const response = await VerificationApiClient.getResendNewSmsCode(verificationId);\n if (response) {\n setAttemptLimitExceeded(false);\n setStepResultMessage(response.status === 204 ? stepSuccessMessage : maxTotalRetriesMessage);\n } else {\n setStepResultMessage(errorResendingSMSMessage);\n }\n };\n\n return (\n <div id=\"sid-step-sms-loop\" className=\"sid-sms-loop-container sid-l-container\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.smsLoop.verificationCode\"\n defaultMessage=\"Verification Code\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n\n <div className=\"sid-header__subtitle\">\n {getSafe(() => previousViewModel.phoneNumber) ? (\n <FormattedHTMLMessage\n id=\"step.smsLoop.titleWithNumber\"\n defaultMessage=\"We've sent an SMS message to the mobile number ending in {number}. Enter your code here.\"\n values={{\n number: getSafe(() => previousViewModel.phoneNumber.slice(-4), \"\"),\n }}\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.smsLoop.titleWithoutNumber\"\n defaultMessage=\"We've sent an SMS to your mobile number. Please enter the code here.\"\n />\n )}\n </div>\n\n <div className=\"sid-sms-code-id-wrapper sid-l-horz-center\">\n <SMSCodeComponent\n onChange={updateSmsCode}\n value={viewModel.smsCode}\n isErrored={isErrored}\n errorId={verificationService.fieldValidationErrors.smsCode}\n />\n </div>\n\n {stepResultMessage && (\n <div>\n <p>{stepResultMessage}</p>\n </div>\n )}\n\n <div className=\"sid-submit sid-sms-loop-submit sid-l-space-top-md sid-l-horz-center\">\n <button\n id=\"sid-submit-sms-code\"\n onClick={submitForm}\n type=\"button\"\n className=\"sid-btn sid-sms-loop-submit-btn sid-btn--dark sid-submit__continue\"\n aria-label=\"submit\"\n disabled={\n !!(!viewModel.smsCode || viewModel.smsCode.length <= 0 || isAttemptLimitExceeded)\n }\n >\n <FormattedHTMLMessage id=\"step.smsLoop.submitButton\" defaultMessage=\"Submit\" />\n </button>\n\n <div className=\"sid-l-space-left-sm\">&nbsp;</div>\n\n <button\n id=\"sid-resend-sms-code\"\n onClick={() => resendSmsCode(verificationResponse.verificationId)}\n type=\"submit\"\n className=\"sid-btn sid-resend-sms-code-btn sid-btn--light sid-submit__cancel\"\n aria-label=\"re-send\"\n >\n <FormattedHTMLMessage id=\"step.smsLoop.resendButton\" defaultMessage=\"Re-send\" />\n </button>\n </div>\n\n <div className=\"sid-incorrect-number sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber1\"\n defaultMessage=\"Incorrect number? Click\"\n />\n &nbsp;\n <button\n type=\"button\"\n onClick={() => window.location.reload()}\n className=\"sid-incorrect-number__refresh-link sid-h-btn-link-like\"\n >\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber2\"\n defaultMessage=\"here\"\n />\n &nbsp;\n </button>\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber3\"\n defaultMessage=\"to return to {companyName}\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n </div>\n </div>\n );\n};\n\nexport const StepSMSLoopComponent = injectIntl(StepSMSLoop);\n"],"names":["StepSMSLoop","intl","verificationService","viewModel","verificationResponse","isErrored","previousViewModel","stepResultMessage","setStepResultMessage","React","isAttemptLimitExceeded","setAttemptLimitExceeded","stepSuccessMessage","maxTotalRetriesMessage","maxRetriesPerCodeMessage","errorResendingSMSMessage","getSafe","updateSmsCode","value","nextState","produce","draft","submitForm","logger","VerificationStepsEnum","resendSmsCode","verificationId","response","VerificationApiClient","jsxs","jsx","AnnouncingHeader","FormattedHTMLMessage","SMSCodeComponent","companyName","StepSMSLoopComponent","injectIntl"],"mappings":";;;AAwBA,MAAMA,IAAc,CAAC,EAAE,MAAAC,GAAM,qBAAAC,QAA4C;AACvE,QAAMC,IAAYD,EAAoB,WAChCE,IAAuBF,EAAoB,sBAC3CG,IAAY,EAAQH,EAAoB,sBAAsB,SAC9DI,IACHJ,EAAoB,qBAAsD,QAEvE,CAACK,GAAmBC,CAAoB,IAAIC,EAAM,SAAS,EAAE,GAC7D,CAACC,GAAwBC,CAAuB,IAAIF,EAAM;AAAA,IAC9DL,EAAqB,YACnBA,EAAqB,SAAS,SAAS,sCAAsC;AAAA,EAAA,GAG3EQ,IAAqBX,EAAK,kBAAkB;AAAA,IAChD,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA,CACjB,GACKY,IAAyBZ,EAAK,kBAAkB;AAAA,IACpD,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA,CACjB,GACKa,IAA2Bb,EAAK,kBAAkB;AAAA,IACtD,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA,CACjB,GACKc,IAA2Bd,EAAK,kBAAkB;AAAA,IACtD,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA,CACjB;AAEDQ,EAAAA,EAAM,UAAU,MAAM;AACpB,IAAIC,KACFF,EAAqBM,CAAwB;AAAA,EAEjD,GAAG,CAAA,CAAE,GAGHE,EAAQ,MAAMZ,EAAqB,SAAS,MAAM,KAClD,CAACF,EAAoB,sBAAsB,WAE3CA,EAAoB,4BAA4B;AAAA,IAC9C,GAAGA,EAAoB;AAAA,IACvB,SAASE,EAAqB,SAAS,CAAC;AAAA,EAAA,CAC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,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,QAAA;AAAA,MAAA;AAAA,MACf;AAAA,MAEFH,gBAAAA,EAAAA;AAAAA,QAAC;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,SAAS,MAAM,OAAO,SAAS,OAAA;AAAA,UAC/B,WAAU;AAAA,UAEV,UAAA;AAAA,YAAAC,gBAAAA,EAAAA;AAAAA,cAACE;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,YACf;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,4BAGHA,GAAA,EAAqB,IAAG,eAAc,gBAAe,aACnD,WAACE,MACAJ,gBAAAA,EAAAA;AAAAA,QAACE;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,UACf,QAAQ,EAAE,aAAAE,EAAA;AAAA,QAAY;AAAA,MAAA,EACxB,CAEJ;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,GACF;AAEJ,GAEaC,IAAuBC,EAAWpC,CAAW;"}
@@ -1,11 +1,11 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.166.0
4
- * BUILD_TIMESTAMP: 1769197166286
5
- * BUILD_DATE: Fri Jan 23 2026 19:39:26 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: cde9aefc9a9384be0c907749794641b455da4365
3
+ * VERSION: 2.167.0
4
+ * BUILD_TIMESTAMP: 1769453193982
5
+ * BUILD_DATE: Mon Jan 26 2026 18:46:33 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 3a1c44e88767f1f45b836003ddfd4780909d1865
7
7
  */
8
- import { k as g, j as e, N as x, O as E, m as N, x as j, a2 as T, f as d, a7 as M, a4 as I, o as n, T as y, U as i, a5 as k, E as F, n as D, Y as P, a8 as V, X as f, Z as O, _ as z, $ as B, p as L, V as A } from "./es6-B_1EiCNJ.js";
8
+ import { k as g, j as e, N as x, O as E, m as N, x as j, a2 as T, f as d, a7 as M, a4 as I, o as n, T as y, U as i, a5 as k, E as F, n as D, Y as P, a8 as V, X as f, Z as O, _ as z, $ as B, p as L, V as A } from "./es6-DsKtvQIF.js";
9
9
  import { useEffect as R } from "react";
10
10
  import { FormattedHTMLMessage as r } from "react-intl";
11
11
  const W = ({
@@ -1 +1 @@
1
- {"version":3,"file":"index-nqkMXpNG.js","sources":["../../src/components/StepTeacherPersonalInfo/StepTeacherPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\nimport React, { useEffect } from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { shouldCollectPostalCode } from \"../../lib/organization/organization\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n CustomFormFieldConfig,\n Organization,\n TeacherPersonalInfoResponse,\n TeacherPersonalInfoViewModel,\n VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\n\nimport { getOptions } from \"../../options/options\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { TeacherSchoolComponent } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepTeacherPersonalInfoComponentProps {\n verificationService: VerificationService<TeacherPersonalInfoViewModel>;\n}\n\nconst StepTeacherPersonalInfo = ({\n verificationService,\n}: StepTeacherPersonalInfoComponentProps) => {\n const { viewModel } = verificationService;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as TeacherPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n const locale = viewModel.localeChoice.value;\n const updateTeacherViewModel = (key: keyof TeacherPersonalInfoViewModel, value: any) => {\n const nextState = {\n [key]: value,\n };\n verificationService.updateViewModel(nextState, { partial: true });\n };\n\n // Don't validate DOB if ID Check is not enabled\n useEffect(() => {\n if (!verificationService.programTheme.idCheckAddOnEnabled) {\n updateTeacherViewModel(\"birthDate\", \"\");\n updateTeacherViewModel(\"fieldsToSkipValidation\", [\"birthDate\"]);\n } else {\n updateTeacherViewModel(\"fieldsToSkipValidation\", []);\n }\n }, [verificationService.programTheme.idCheckAddOnEnabled]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"teacher-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <TeacherSchoolComponent\n value={verificationService.viewModel.organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateTeacherViewModel(\"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 updateTeacherViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n {verificationService.programTheme.idCheckAddOnEnabled ? (\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateTeacherViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Must be your school-issued email address\"\n />\n }\n onChange={(newValue) => {\n updateTeacherViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateTeacherViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {shouldCollectPostalCode(verificationService.programTheme, viewModel) ? (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateTeacherViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n ) : null}\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateTeacherViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectTeacherPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Teacher Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepTeacherPersonalInfoComponent = StepTeacherPersonalInfo;\nfunction userDidConvert(COLLECT_INFO_SUBMIT: any, COLLECT_INFO_SUBMISSION_TIME: any) {\n throw new Error(\"Function not implemented.\");\n}\n"],"names":["StepTeacherPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","locale","updateTeacherViewModel","key","value","nextState","useEffect","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","TeacherSchoolComponent","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","newValue","LastName","BirthDate","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","PhoneNumber","shouldCollectPostalCode","PostalCodeComponent","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepTeacherPersonalInfoComponent"],"mappings":";;;AA0CA,MAAMA,IAA0B,CAAC;AAAA,EAC/B,qBAAAC;AACF,MAA6C;AAC3C,QAAM,EAAE,WAAAC,MAAcD,GAChB,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAA,GACVC,IAASP,EAAU,aAAa,OAChCQ,IAAyB,CAACC,GAAyCC,MAAe;AACtF,UAAMC,IAAY;AAAA,MAChB,CAACF,CAAG,GAAGC;AAAA,IAAA;AAET,IAAAX,EAAoB,gBAAgBY,GAAW,EAAE,SAAS,IAAM;AAAA,EAClE;AAGA,SAAAC,EAAU,MAAM;AACd,IAAKb,EAAoB,aAAa,sBAIpCS,EAAuB,0BAA0B,EAAE,KAHnDA,EAAuB,aAAa,EAAE,GACtCA,EAAuB,0BAA0B,CAAC,WAAW,CAAC;AAAA,EAIlE,GAAG,CAACT,EAAoB,aAAa,mBAAmB,CAAC,GAGvDc,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,qBAAAf;AAAA,MACA,MAAMG,EAAqB;AAAA,MAE3B,UAAA;AAAA,QAAAa,gBAAAA,EAAAA;AAAAA,UAACC;AAAA,UAAA;AAAA,YACC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AAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaY,IAAmC3C;"}
1
+ {"version":3,"file":"index-CK-6koDJ.js","sources":["../../src/components/StepTeacherPersonalInfo/StepTeacherPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\nimport React, { useEffect } from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { shouldCollectPostalCode } from \"../../lib/organization/organization\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n CustomFormFieldConfig,\n Organization,\n TeacherPersonalInfoResponse,\n TeacherPersonalInfoViewModel,\n VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\n\nimport { getOptions } from \"../../options/options\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { TeacherSchoolComponent } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepTeacherPersonalInfoComponentProps {\n verificationService: VerificationService<TeacherPersonalInfoViewModel>;\n}\n\nconst StepTeacherPersonalInfo = ({\n verificationService,\n}: StepTeacherPersonalInfoComponentProps) => {\n const { viewModel } = verificationService;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as TeacherPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n const locale = viewModel.localeChoice.value;\n const updateTeacherViewModel = (key: keyof TeacherPersonalInfoViewModel, value: any) => {\n const nextState = {\n [key]: value,\n };\n verificationService.updateViewModel(nextState, { partial: true });\n };\n\n // Don't validate DOB if ID Check is not enabled\n useEffect(() => {\n if (!verificationService.programTheme.idCheckAddOnEnabled) {\n updateTeacherViewModel(\"birthDate\", \"\");\n updateTeacherViewModel(\"fieldsToSkipValidation\", [\"birthDate\"]);\n } else {\n updateTeacherViewModel(\"fieldsToSkipValidation\", []);\n }\n }, [verificationService.programTheme.idCheckAddOnEnabled]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"teacher-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <TeacherSchoolComponent\n value={verificationService.viewModel.organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateTeacherViewModel(\"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 updateTeacherViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n {verificationService.programTheme.idCheckAddOnEnabled ? (\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateTeacherViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Must be your school-issued email address\"\n />\n }\n onChange={(newValue) => {\n updateTeacherViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateTeacherViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {shouldCollectPostalCode(verificationService.programTheme, viewModel) ? (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateTeacherViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n ) : null}\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateTeacherViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectTeacherPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Teacher Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepTeacherPersonalInfoComponent = StepTeacherPersonalInfo;\nfunction userDidConvert(COLLECT_INFO_SUBMIT: any, COLLECT_INFO_SUBMISSION_TIME: any) {\n throw new Error(\"Function not implemented.\");\n}\n"],"names":["StepTeacherPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","locale","updateTeacherViewModel","key","value","nextState","useEffect","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","TeacherSchoolComponent","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","newValue","LastName","BirthDate","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","PhoneNumber","shouldCollectPostalCode","PostalCodeComponent","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepTeacherPersonalInfoComponent"],"mappings":";;;AA0CA,MAAMA,IAA0B,CAAC;AAAA,EAC/B,qBAAAC;AACF,MAA6C;AAC3C,QAAM,EAAE,WAAAC,MAAcD,GAChB,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAA,GACVC,IAASP,EAAU,aAAa,OAChCQ,IAAyB,CAACC,GAAyCC,MAAe;AACtF,UAAMC,IAAY;AAAA,MAChB,CAACF,CAAG,GAAGC;AAAA,IAAA;AAET,IAAAX,EAAoB,gBAAgBY,GAAW,EAAE,SAAS,IAAM;AAAA,EAClE;AAGA,SAAAC,EAAU,MAAM;AACd,IAAKb,EAAoB,aAAa,sBAIpCS,EAAuB,0BAA0B,EAAE,KAHnDA,EAAuB,aAAa,EAAE,GACtCA,EAAuB,0BAA0B,CAAC,WAAW,CAAC;AAAA,EAIlE,GAAG,CAACT,EAAoB,aAAa,mBAAmB,CAAC,GAGvDc,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,qBAAAf;AAAA,MACA,MAAMG,EAAqB;AAAA,MAE3B,UAAA;AAAA,QAAAa,gBAAAA,EAAAA;AAAAA,UAACC;AAAA,UAAA;AAAA,YACC,qBAAAjB;AAAA,YACA,qBAAoB;AAAA,UAAA;AAAA,QAAA;AAAA,QAGtBgB,gBAAAA,MAACE,KAAwB,qBAAAlB,GAA0C;AAAA,QACnEgB,gBAAA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
  /**
3
- * VERSION: 2.166.0
4
- * BUILD_TIMESTAMP: 1769197166286
5
- * BUILD_DATE: Fri Jan 23 2026 19:39:26 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: cde9aefc9a9384be0c907749794641b455da4365
3
+ * VERSION: 2.167.0
4
+ * BUILD_TIMESTAMP: 1769453193982
5
+ * BUILD_DATE: Mon Jan 26 2026 18:46:33 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 3a1c44e88767f1f45b836003ddfd4780909d1865
7
7
  */
8
- import { j as s, t as m, A as c, a1 as p, D as g, V as t, q as u, o as x, l as j, r as b } from "./es6-B_1EiCNJ.js";
8
+ import { j as s, t as m, A as c, a1 as p, D as g, V as t, q as u, o as x, l as j, r as b } from "./es6-DsKtvQIF.js";
9
9
  import { FormattedHTMLMessage as a, injectIntl as h } from "react-intl";
10
- import { EmailLoopPendingComponent as E } from "./EmailLoopPending-OpYlTclJ.js";
10
+ import { EmailLoopPendingComponent as E } from "./EmailLoopPending-CpFlpmW2.js";
11
11
  const f = ({
12
12
  verificationService: e
13
13
  }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"index-nzujyYBW.js","sources":["../../src/components/StepEmailLoop/EmailLoopCollectOrganizationEmail.tsx","../../src/components/StepEmailLoop/StepEmailLoopComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\n\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { FormFieldText } from \"../FormFields/FormFieldText/FormFieldText\";\nimport {\n updateFieldValidationErrorsByFieldId,\n submitForm,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport {\n EmailLoopCollectOrganizationEmailViewModel,\n VerificationService,\n} from \"../../lib/types/types\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\nexport const EmailLoopCollectOrganizationEmail = ({\n verificationService,\n}: {\n verificationService: VerificationService;\n}) => {\n const viewModel = verificationService.viewModel as EmailLoopCollectOrganizationEmailViewModel;\n const fieldValidationErrors = verificationService.fieldValidationErrors;\n const isInvalidOrgEmail = (verificationService.verificationResponse?.errorIds || []).includes(\n \"invalidEmail\",\n );\n\n const setEmailValue = (organizationEmail: string) => {\n verificationService.updateViewModel({ ...viewModel, organizationEmail });\n updateFieldValidationErrorsByFieldId(\n \"organizationEmail\",\n organizationEmail,\n verificationService,\n );\n };\n\n const cancelEmailLoop = async () => {\n logger.info(\"StepEmailLoopComponent submitting form after skipping email loop\");\n const nextState = produce(viewModel, () => {});\n return verificationService.submitStep(\n VerificationStepsEnum.cancelEmailLoop,\n nextState,\n verificationService.verificationResponse,\n );\n };\n\n return (\n <>\n <div className=\"sid-header sid-l-horz-center\">\n <div role=\"main\">\n <div className=\"sid-sso-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n <img\n className=\"sid-sso-logo-default sid-l-lead-image\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/doc-pending.svg\"\n />\n }\n />\n </div>\n <div className=\"sid-preheader-label sid-l-space-top-md\">\n <span className=\"sid-h-label\">\n <FormattedHTMLMessage id=\"instant\" defaultMessage=\"Instant\" />\n </span>\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.title\"\n defaultMessage=\"Verify using your work email address\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle-one\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.subtitle\"\n defaultMessage=\"Enter the email address provided by your employer and we'll send you a verification link\"\n />\n </div>\n </div>\n\n <div className=\"sid-form-region sid-email-submit sid-submit-wrapper sid-l-space-top-md\">\n <FormFieldText\n fieldId=\"emailOverride\"\n value={viewModel.organizationEmail}\n onChange={setEmailValue}\n placeholder=\"\"\n label={\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.email.label\"\n defaultMessage=\"Work email address\"\n />\n }\n errorMessage={\n (isInvalidOrgEmail && (\n <FormattedHTMLMessage\n id=\"step.emailLoop.errors.invalidEmail\"\n defaultMessage=\"This email address is not valid for instant verification. Please use an email address provided by your employer or upload documentation below.\"\n />\n )) ||\n (fieldValidationErrors.organizationEmail && (\n <FormattedHTMLMessage id=\"emailIds.invalidEmail\" defaultMessage=\"Invalid email\" />\n ))\n }\n />\n <div className=\"sid-l-space-top-sm\">\n <button\n id=\"sid-submit-btn-sso\"\n type=\"submit\"\n disabled={!!fieldValidationErrors.organizationEmail}\n onClick={() =>\n submitForm(\n viewModel,\n verificationService,\n VerificationStepsEnum.emailLoopCollectOrganizationEmail,\n )\n }\n className=\"sid-btn sid-sso-submit-btn sid-btn--dark sid-l-full-width \"\n aria-label=\"submit\"\n >\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.email.send\"\n defaultMessage=\"Send Email\"\n />\n </button>\n </div>\n\n <div className=\"sid-form-region sid-l-space-top-lg sid-l-horz-center\">\n <div className=\"sid-header__subtitle-two sid-h-bold-text\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.alternative\"\n defaultMessage=\"Unable to access a work email address?\"\n />\n </div>\n <div className=\"sid-form-region sid-l-space-btm-sm sid-l-space-top-sm\">\n <FormattedHTMLMessage\n id=\"step.sso.alternative\"\n defaultMessage=\"You can also verify by uploading proof of eligibility\"\n />\n </div>\n <div className=\"sid-l-space-top-sm\">\n <button\n onClick={cancelEmailLoop}\n className=\"sid-h-btn-link-like sid-link sid-h-bold-text\"\n type=\"button\"\n >\n <FormattedHTMLMessage\n id=\"step.sso.cancel\"\n defaultMessage=\"Upload Proof of Enrollment\"\n />\n </button>\n </div>\n </div>\n\n <div className=\"sid-l-space-top-lg\" />\n </div>\n </div>\n <FormFooter verificationService={verificationService} />\n </>\n );\n};\n","import React from \"react\";\nimport { injectIntl, InjectedIntl } from \"react-intl\";\n\nimport { EmailLoopResponse, VerificationService } from \"../../lib/types/types\";\n\nimport { EmailLoopCollectOrganizationEmail } from \"./EmailLoopCollectOrganizationEmail\";\nimport { EmailLoopPendingComponent } from \"./EmailLoopPending\";\n\nexport interface StepEmailLoopComponentProps {\n // eslint-disable-next-line react/no-unused-prop-types -- this prop type is reused in the sub components\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepEmailLoop = ({ verificationService }: StepEmailLoopComponentProps) => {\n const isCollectOrgEmailState =\n (verificationService.verificationResponse as EmailLoopResponse).currentState ===\n \"collectOrganizationEmail\";\n return (\n <div id=\"sid-step-email-loop\" className=\"sid-step-email-loop-container sid-l-container\">\n {isCollectOrgEmailState ? (\n <EmailLoopCollectOrganizationEmail verificationService={verificationService} />\n ) : (\n <EmailLoopPendingComponent verificationService={verificationService} />\n )}\n </div>\n );\n};\n\nexport const StepEmailLoopComponent = injectIntl(StepEmailLoop);\n"],"names":["EmailLoopCollectOrganizationEmail","verificationService","viewModel","fieldValidationErrors","isInvalidOrgEmail","setEmailValue","organizationEmail","updateFieldValidationErrorsByFieldId","cancelEmailLoop","logger","nextState","produce","VerificationStepsEnum","jsxs","Fragment","jsx","LogoComponent","FormattedHTMLMessage","AnnouncingHeader","FormFieldText","submitForm","FormFooter","StepEmailLoop","isCollectOrgEmailState","EmailLoopPendingComponent","StepEmailLoopComponent","injectIntl"],"mappings":";;;AAoBO,MAAMA,IAAoC,CAAC;AAAA,EAChD,qBAAAC;AACF,MAEM;AACJ,QAAMC,IAAYD,EAAoB,WAChCE,IAAwBF,EAAoB,uBAC5CG,KAAqBH,EAAoB,sBAAsB,YAAY,CAAA,GAAI;AAAA,IACnF;AAAA,EAAA,GAGII,IAAgB,CAACC,MAA8B;AACnD,IAAAL,EAAoB,gBAAgB,EAAE,G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,EAAAA;AAAAA,YAACE;AAAA,YAAA;AAAA,cACC,IAAG;AAAA,cACH,gBAAe;AAAA,YAAA;AAAA,UAAA,GAEnB;AAAA,UACAF,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,yDACb,UAAAA,gBAAAA,EAAAA;AAAAA,YAACE;AAAA,YAAA;AAAA,cACC,IAAG;AAAA,cACH,gBAAe;AAAA,YAAA;AAAA,UAAA,GAEnB;AAAA,UACAF,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,sBACb,UAAAA,gBAAAA,EAAAA;AAAAA,YAAC;AAAA,YAAA;AAAA,cACC,SAASP;AAAA,cACT,WAAU;AAAA,cACV,MAAK;AAAA,cAEL,UAAAO,gBAAAA,EAAAA;AAAAA,gBAACE;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA,EACF,CACF;AAAA,QAAA,GACF;AAAA,QAEAF,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,qBAAA,CAAqB;AAAA,MAAA,EAAA,CACtC;AAAA,IAAA,GACF;AAAA,IACAA,gBAAAA,MAACM,KAAW,qBAAApB,EAAA,CAA0C;AAAA,EAAA,GACxD;AAEJ,GCvJaqB,IAAgB,CAAC,EAAE,qBAAArB,QAAuD;AACrF,QAAMsB,IACHtB,EAAoB,qBAA2C,iBAChE;AACF,SACEc,gBAAAA,EAAAA,IAAC,OAAA,EAAI,IAAG,uBAAsB,WAAU,iDACrC,UAAAQ,IACCR,gBAAAA,EAAAA,IAACf,GAAA,EAAkC,qBAAAC,EAAA,CAA0C,IAE7Ec,gBAAAA,EAAAA,IAACS,GAAA,EAA0B,qBAAAvB,GAA0C,GAEzE;AAEJ,GAEawB,IAAyBC,EAAWJ,CAAa;"}
1
+ {"version":3,"file":"index-CNDXbjPf.js","sources":["../../src/components/StepEmailLoop/EmailLoopCollectOrganizationEmail.tsx","../../src/components/StepEmailLoop/StepEmailLoopComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\n\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { FormFieldText } from \"../FormFields/FormFieldText/FormFieldText\";\nimport {\n updateFieldValidationErrorsByFieldId,\n submitForm,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport {\n EmailLoopCollectOrganizationEmailViewModel,\n VerificationService,\n} from \"../../lib/types/types\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\nexport const EmailLoopCollectOrganizationEmail = ({\n verificationService,\n}: {\n verificationService: VerificationService;\n}) => {\n const viewModel = verificationService.viewModel as EmailLoopCollectOrganizationEmailViewModel;\n const fieldValidationErrors = verificationService.fieldValidationErrors;\n const isInvalidOrgEmail = (verificationService.verificationResponse?.errorIds || []).includes(\n \"invalidEmail\",\n );\n\n const setEmailValue = (organizationEmail: string) => {\n verificationService.updateViewModel({ ...viewModel, organizationEmail });\n updateFieldValidationErrorsByFieldId(\n \"organizationEmail\",\n organizationEmail,\n verificationService,\n );\n };\n\n const cancelEmailLoop = async () => {\n logger.info(\"StepEmailLoopComponent submitting form after skipping email loop\");\n const nextState = produce(viewModel, () => {});\n return verificationService.submitStep(\n VerificationStepsEnum.cancelEmailLoop,\n nextState,\n verificationService.verificationResponse,\n );\n };\n\n return (\n <>\n <div className=\"sid-header sid-l-horz-center\">\n <div role=\"main\">\n <div className=\"sid-sso-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n <img\n className=\"sid-sso-logo-default sid-l-lead-image\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/doc-pending.svg\"\n />\n }\n />\n </div>\n <div className=\"sid-preheader-label sid-l-space-top-md\">\n <span className=\"sid-h-label\">\n <FormattedHTMLMessage id=\"instant\" defaultMessage=\"Instant\" />\n </span>\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.title\"\n defaultMessage=\"Verify using your work email address\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle-one\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.subtitle\"\n defaultMessage=\"Enter the email address provided by your employer and we'll send you a verification link\"\n />\n </div>\n </div>\n\n <div className=\"sid-form-region sid-email-submit sid-submit-wrapper sid-l-space-top-md\">\n <FormFieldText\n fieldId=\"emailOverride\"\n value={viewModel.organizationEmail}\n onChange={setEmailValue}\n placeholder=\"\"\n label={\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.email.label\"\n defaultMessage=\"Work email address\"\n />\n }\n errorMessage={\n (isInvalidOrgEmail && (\n <FormattedHTMLMessage\n id=\"step.emailLoop.errors.invalidEmail\"\n defaultMessage=\"This email address is not valid for instant verification. Please use an email address provided by your employer or upload documentation below.\"\n />\n )) ||\n (fieldValidationErrors.organizationEmail && (\n <FormattedHTMLMessage id=\"emailIds.invalidEmail\" defaultMessage=\"Invalid email\" />\n ))\n }\n />\n <div className=\"sid-l-space-top-sm\">\n <button\n id=\"sid-submit-btn-sso\"\n type=\"submit\"\n disabled={!!fieldValidationErrors.organizationEmail}\n onClick={() =>\n submitForm(\n viewModel,\n verificationService,\n VerificationStepsEnum.emailLoopCollectOrganizationEmail,\n )\n }\n className=\"sid-btn sid-sso-submit-btn sid-btn--dark sid-l-full-width \"\n aria-label=\"submit\"\n >\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.email.send\"\n defaultMessage=\"Send Email\"\n />\n </button>\n </div>\n\n <div className=\"sid-form-region sid-l-space-top-lg sid-l-horz-center\">\n <div className=\"sid-header__subtitle-two sid-h-bold-text\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.alternative\"\n defaultMessage=\"Unable to access a work email address?\"\n />\n </div>\n <div className=\"sid-form-region sid-l-space-btm-sm sid-l-space-top-sm\">\n <FormattedHTMLMessage\n id=\"step.sso.alternative\"\n defaultMessage=\"You can also verify by uploading proof of eligibility\"\n />\n </div>\n <div className=\"sid-l-space-top-sm\">\n <button\n onClick={cancelEmailLoop}\n className=\"sid-h-btn-link-like sid-link sid-h-bold-text\"\n type=\"button\"\n >\n <FormattedHTMLMessage\n id=\"step.sso.cancel\"\n defaultMessage=\"Upload Proof of Enrollment\"\n />\n </button>\n </div>\n </div>\n\n <div className=\"sid-l-space-top-lg\" />\n </div>\n </div>\n <FormFooter verificationService={verificationService} />\n </>\n );\n};\n","import React from \"react\";\nimport { injectIntl, InjectedIntl } from \"react-intl\";\n\nimport { EmailLoopResponse, VerificationService } from \"../../lib/types/types\";\n\nimport { EmailLoopCollectOrganizationEmail } from \"./EmailLoopCollectOrganizationEmail\";\nimport { EmailLoopPendingComponent } from \"./EmailLoopPending\";\n\nexport interface StepEmailLoopComponentProps {\n // eslint-disable-next-line react/no-unused-prop-types -- this prop type is reused in the sub components\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepEmailLoop = ({ verificationService }: StepEmailLoopComponentProps) => {\n const isCollectOrgEmailState =\n (verificationService.verificationResponse as EmailLoopResponse).currentState ===\n \"collectOrganizationEmail\";\n return (\n <div id=\"sid-step-email-loop\" className=\"sid-step-email-loop-container sid-l-container\">\n {isCollectOrgEmailState ? (\n <EmailLoopCollectOrganizationEmail verificationService={verificationService} />\n ) : (\n <EmailLoopPendingComponent verificationService={verificationService} />\n )}\n </div>\n );\n};\n\nexport const StepEmailLoopComponent = injectIntl(StepEmailLoop);\n"],"names":["EmailLoopCollectOrganizationEmail","verificationService","viewModel","fieldValidationErrors","isInvalidOrgEmail","setEmailValue","organizationEmail","updateFieldValidationErrorsByFieldId","cancelEmailLoop","logger","nextState","produce","VerificationStepsEnum","jsxs","Fragment","jsx","LogoComponent","FormattedHTMLMessage","AnnouncingHeader","FormFieldText","submitForm","FormFooter","StepEmailLoop","isCollectOrgEmailState","EmailLoopPendingComponent","StepEmailLoopComponent","injectIntl"],"mappings":";;;AAoBO,MAAMA,IAAoC,CAAC;AAAA,EAChD,qBAAAC;AACF,MAEM;AACJ,QAAMC,IAAYD,EAAoB,WAChCE,IAAwBF,EAAoB,uBAC5CG,KAAqBH,EAAoB,sBAAsB,YAAY,CAAA,GAAI;AAAA,IACnF;AAAA,EAAA,GAGII,IAAgB,CAACC,MAA8B;AACnD,IAAAL,EAAoB,gBAAgB,EAAE,GAAGC,GAAW,mBAAAI,GAAmB,GACvEC;AAAA,MACE;AAAA,MACAD;AAAA,MACAL;AAAA,IAAA;AAAA,EAEJ,GAEMO,IAAkB,YAAY;AAClC,IAAAC,EAAO,KAAK,kEAAkE;AAC9E,UAAMC,IAAYC,EAAQT,GAAW,MAAM;AAAA,IAAC,CAAC;AAC7C,WAAOD,EAAoB;AAAA,MACzBW,EAAsB;AAAA,MACtBF;AAAA,MACAT,EAAoB;AAAA,IAAA;AAAA,EAExB;AAEA,SACEY,gBAAAA,EAAAA,KAAAC,YAAA,EACE,UAAA;AAAA,IAAAD,gBAAAA,EAAAA,KAAC,OAAA,EAAI,WAAU,gCACb,UAAA;AAAA,MAAAA,gBAAAA,EAAAA,KAAC,OAAA,EAAI,MAAK,QACR,UAAA;AAAA,QAAAE,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,4CACb,UAAAA,gBAAAA,EAAAA;AAAAA,UAACC;AAAA,UAAA;AAAA,YACC,qBAAAf;AAAA,YACA,cACEc,gBAAAA,EAAAA;AAAAA,cAAC;AAAA,cAAA;AAAA,gBACC,WAAU;AAAA,gBACV,KAAI;AAAA,gBACJ,KAAI;AAAA,cAAA;AAAA,YAAA;AAAA,UACN;AAAA,QAAA,GAGN;AAAA,QACAA,gBAAA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qB,IAAgB,CAAC,EAAE,qBAAArB,QAAuD;AACrF,QAAMsB,IACHtB,EAAoB,qBAA2C,iBAChE;AACF,SACEc,gBAAAA,EAAAA,IAAC,OAAA,EAAI,IAAG,uBAAsB,WAAU,iDACrC,UAAAQ,IACCR,gBAAAA,EAAAA,IAACf,GAAA,EAAkC,qBAAAC,EAAA,CAA0C,IAE7Ec,gBAAAA,EAAAA,IAACS,GAAA,EAA0B,qBAAAvB,GAA0C,GAEzE;AAEJ,GAEawB,IAAyBC,EAAWJ,CAAa;"}
@@ -1,14 +1,14 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.166.0
4
- * BUILD_TIMESTAMP: 1769197166286
5
- * BUILD_DATE: Fri Jan 23 2026 19:39:26 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: cde9aefc9a9384be0c907749794641b455da4365
3
+ * VERSION: 2.167.0
4
+ * BUILD_TIMESTAMP: 1769453193982
5
+ * BUILD_DATE: Mon Jan 26 2026 18:46:33 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 3a1c44e88767f1f45b836003ddfd4780909d1865
7
7
  */
8
- import { k as w, aH as u, aI as _, D as k, V as y, j as s, O as B, m as W, a2 as Y, f as d, ae as H, aJ as V, ag as K, o as n, T as U, U as $, a5 as J, E as X, n as Z, Y as G, W as Q, ac as c, aE as f, aK as S, aL as v, a6 as aa, X as ea, y as sa, z as ta, au as oa, av as da, aD as na, Z as ra, _ as la, $ as ua, p as ma, q as ia, aM as ba, i as M, l as ga, aN as Ca, aO as pa, a4 as b, ay as ha, ah as Ea, aC as Na, a3 as Ia, a7 as xa, al as Ma, r as za, aP as Da } from "./es6-B_1EiCNJ.js";
8
+ import { k as w, aH as u, aI as _, D as k, V as y, j as s, O as B, m as W, a2 as Y, f as d, ae as H, aJ as V, ag as K, o as n, T as U, U as $, a5 as J, E as X, n as Z, Y as G, W as Q, ac as c, aE as f, aK as S, aL as v, a6 as aa, X as ea, y as sa, z as ta, au as oa, av as da, aD as na, Z as ra, _ as la, $ as ua, p as ma, q as ia, aM as ba, i as M, l as ga, aN as Ca, aO as pa, a4 as b, ay as ha, ah as Ea, aC as Na, a3 as Ia, a7 as xa, al as Ma, r as za, aP as Da } from "./es6-DsKtvQIF.js";
9
9
  import h from "react";
10
10
  import { injectIntl as ja, FormattedHTMLMessage as z } from "react-intl";
11
- import { L as ya } from "./LicensedProfessionalOrganizationComponent-BMRtFHsG.js";
11
+ import { L as ya } from "./LicensedProfessionalOrganizationComponent-BVB5f96o.js";
12
12
  const Ra = ({
13
13
  intl: E,
14
14
  verificationService: e