@sheerid/jslib-nightly 2.113.0-alpha.0 → 2.113.0-alpha.1
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.
- package/_mysheerid-preview.css +4 -4
- package/_mysheerid-preview.js +1580 -1575
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/EmailLoopPending-Dtf0p85F.js +3 -3
- package/chunk/EmailLoopPending-Dy8mLFvV.js +3 -3
- package/chunk/LicensedProfessionalOrganizationComponent-BYijEfDT.js +3 -3
- package/chunk/LicensedProfessionalOrganizationComponent-CiYU-2dW.js +3 -3
- package/chunk/Onfido-AyvUk6wg.js +3 -3
- package/chunk/StepIDCheckLoopOnfido-CmNwFqjD.js +3 -3
- package/chunk/StepIDCheckLoopOnfido-DtbplNxs.js +3 -3
- package/chunk/StepIDCheckLoopRegula-RoX971sR.js +3 -3
- package/chunk/StepIDCheckLoopRegula-oqf-QxHT.js +3 -3
- package/chunk/StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js +3 -3
- package/chunk/StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js +3 -3
- package/chunk/ar-CTZ8n_FV.js +3 -3
- package/chunk/bg-B1tbUffD.js +3 -3
- package/chunk/bn-IN-BA_ZFkiC.js +3 -3
- package/chunk/cs-_sREQ07E.js +3 -3
- package/chunk/da-DPi7xGRT.js +3 -3
- package/chunk/de-Cdu4F7oz.js +3 -3
- package/chunk/el-Csc8XB1z.js +3 -3
- package/chunk/en-GB-CDsqsXSF.js +3 -3
- package/chunk/es-BgNy3pMu.js +3 -3
- package/chunk/es-ES-HVAL-fE7.js +3 -3
- package/chunk/fi-CCyjkr-W.js +3 -3
- package/chunk/fr-CA-DwRs4Got.js +3 -3
- package/chunk/fr-alhQlPBO.js +3 -3
- package/chunk/ga-DfyMbfDn.js +3 -3
- package/chunk/hi-IN-CnIX7S9Z.js +3 -3
- package/chunk/hr-HChVQ_Sw.js +3 -3
- package/chunk/hu-CWN1WU0a.js +3 -3
- package/chunk/id-C1Ck0Iu_.js +3 -3
- package/chunk/index-4APUDd8S.js +3 -3
- package/chunk/index-9OD0Bw98.js +3 -3
- package/chunk/index-B-PpnUEO.js +3 -3
- package/chunk/index-B8F8N-JM.js +3 -3
- package/chunk/index-B8KPM--K.js +3 -3
- package/chunk/index-BD2bjH-C.js +3 -3
- package/chunk/index-BD_a0MZT.js +3 -3
- package/chunk/index-BDrKYann.js +3 -3
- package/chunk/index-BORxVuto.js +3 -3
- package/chunk/index-BTMETMEE.js +3 -3
- package/chunk/index-Bi9QXN5x.js +3 -3
- package/chunk/index-Bmq6cJ3F.js +3 -3
- package/chunk/index-BpZoH-Wz.js +3 -3
- package/chunk/index-BuX76GyE.js +3 -3
- package/chunk/index-C2h0Wj84.js +3 -3
- package/chunk/index-C8MQD8EK.js +3 -3
- package/chunk/index-C8u9IJUa.js +3 -3
- package/chunk/index-C96ntS0u.js +3 -3
- package/chunk/index-CHK5i4jj.js +3 -3
- package/chunk/index-CTb96lOK.js +3 -3
- package/chunk/index-CU0rkVHP.js +3 -3
- package/chunk/index-CcRowarb.js +3 -3
- package/chunk/index-CeHu2Npu.js +3 -3
- package/chunk/index-DIkWpujR.js +3 -3
- package/chunk/index-DKWjcFJK.js +3 -3
- package/chunk/index-DLz31Fzh.js +3 -3
- package/chunk/index-DO5Z3e-E.js +3 -3
- package/chunk/index-DRlGAW07.js +3 -3
- package/chunk/index-DVynViqA.js +3 -3
- package/chunk/index-D_9J6arc.js +3 -3
- package/chunk/index-Dg8t7-dm.js +3 -3
- package/chunk/index-DhGg9lvf.js +3 -3
- package/chunk/index-DsgCNIS5.js +3 -3
- package/chunk/index-DvQoVn8P.js +3 -3
- package/chunk/index-DzqRsB7_.js +3 -3
- package/chunk/index-FjzhfDlx.js +3 -3
- package/chunk/index-Gfy-1H7s.js +3 -3
- package/chunk/index-YSVzGeq_.js +3 -3
- package/chunk/index-_t8SsXjy.js +3 -3
- package/chunk/is-Bf2mOiIg.js +3 -3
- package/chunk/it-IMkNWYOG.js +3 -3
- package/chunk/iw-BuDnLn5x.js +3 -3
- package/chunk/ja-DdM1Ym9C.js +3 -3
- package/chunk/ko-B01TPi1c.js +3 -3
- package/chunk/lo-CDeDGaKo.js +3 -3
- package/chunk/lt-DyBa0gOR.js +3 -3
- package/chunk/ms-LqU5Yd8l.js +3 -3
- package/chunk/nl-BE-BFg3IyDd.js +3 -3
- package/chunk/nl-kMVLoHoM.js +3 -3
- package/chunk/no-BAFfWVPm.js +3 -3
- package/chunk/pl-Cxz2q367.js +3 -3
- package/chunk/pt-BR-CgWnbrVG.js +3 -3
- package/chunk/pt-ClU8GfPr.js +3 -3
- package/chunk/ro-CjVQ_Zpn.js +3 -3
- package/chunk/ru-BdRZQIfm.js +3 -3
- package/chunk/sk-C-xR48Aj.js +3 -3
- package/chunk/sl-CImZBWQa.js +3 -3
- package/chunk/sr-CZdt5Aa4.js +3 -3
- package/chunk/sv-BclJkJLk.js +3 -3
- package/chunk/sw-BMcrEvkG.js +3 -3
- package/chunk/th-Dl_Lc--C.js +3 -3
- package/chunk/tr-CL17frp4.js +3 -3
- package/chunk/uk-zgBsQ3Tg.js +3 -3
- package/chunk/ur-DJP0igA6.js +3 -3
- package/chunk/useCollectFieldsEndpoint-C5fsaYJe.js +3 -3
- package/chunk/useCollectFieldsEndpoint-kmLFyUA-.js +3 -3
- package/chunk/useEmailFirstExperiment-BbDrKQEs.js +3 -3
- package/chunk/useEmailFirstExperiment-CgU-itQI.js +3 -3
- package/chunk/vi-B1t3wnVe.js +3 -3
- package/chunk/zh-B1K_f766.js +3 -3
- package/chunk/zh-HK-B7LwDNgi.js +3 -3
- package/chunk/zu-DXIuiqYP.js +3 -3
- package/es6.css +4 -4
- package/jslib.js +4 -4
- package/lib/{EmailLoopPending-CDvXBLwm.js → EmailLoopPending-B1jISe7A.js} +4 -4
- package/lib/{EmailLoopPending-CDvXBLwm.js.map → EmailLoopPending-B1jISe7A.js.map} +1 -1
- package/lib/{LicensedProfessionalOrganizationComponent-H9w53uDB.js → LicensedProfessionalOrganizationComponent-BwrumJhz.js} +4 -4
- package/lib/{LicensedProfessionalOrganizationComponent-H9w53uDB.js.map → LicensedProfessionalOrganizationComponent-BwrumJhz.js.map} +1 -1
- package/lib/Onfido-AyvUk6wg.js +3 -3
- package/lib/StepCollectMilitaryStatusComponent-B1EhKxR4.js +11 -0
- package/lib/{StepCollectMilitaryStatusComponent-DRROyvH5.js.map → StepCollectMilitaryStatusComponent-B1EhKxR4.js.map} +1 -1
- package/lib/{StepIDCheckLoopOnfido-CNFYYWIB.js → StepIDCheckLoopOnfido-M2e4hS7o.js} +4 -4
- package/lib/{StepIDCheckLoopOnfido-CNFYYWIB.js.map → StepIDCheckLoopOnfido-M2e4hS7o.js.map} +1 -1
- package/lib/{StepIDCheckLoopRegula-BepNk6Gr.js → StepIDCheckLoopRegula-DvRryGGo.js} +4 -4
- package/lib/{StepIDCheckLoopRegula-BepNk6Gr.js.map → StepIDCheckLoopRegula-DvRryGGo.js.map} +1 -1
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-BO_LBRwo.js → StepInactiveMilitaryPersonalInfoComponent-DOsq8tPC.js} +5 -5
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-BO_LBRwo.js.map → StepInactiveMilitaryPersonalInfoComponent-DOsq8tPC.js.map} +1 -1
- package/lib/{VerificationApiUtils-BRTuXm1B.js → VerificationApiUtils-Ctw2s7oI.js} +4 -4
- package/lib/{VerificationApiUtils-BRTuXm1B.js.map → VerificationApiUtils-Ctw2s7oI.js.map} +1 -1
- package/lib/ar-CTZ8n_FV.js +3 -3
- package/lib/bg-B1tbUffD.js +3 -3
- package/lib/bn-IN-BA_ZFkiC.js +3 -3
- package/lib/cs-_sREQ07E.js +3 -3
- package/lib/da-DPi7xGRT.js +3 -3
- package/lib/de-Cdu4F7oz.js +3 -3
- package/lib/el-Csc8XB1z.js +3 -3
- package/lib/en-GB-CDsqsXSF.js +3 -3
- package/lib/es-BgNy3pMu.js +3 -3
- package/lib/es-ES-HVAL-fE7.js +3 -3
- package/lib/{es6-B9qAIX4x.js → es6-Frx81Nad.js} +1666 -1661
- package/lib/{es6-B9qAIX4x.js.map → es6-Frx81Nad.js.map} +1 -1
- package/lib/fi-CCyjkr-W.js +3 -3
- package/lib/fr-CA-DwRs4Got.js +3 -3
- package/lib/fr-alhQlPBO.js +3 -3
- package/lib/ga-DfyMbfDn.js +3 -3
- package/lib/hi-IN-CnIX7S9Z.js +3 -3
- package/lib/hr-HChVQ_Sw.js +3 -3
- package/lib/hu-CWN1WU0a.js +3 -3
- package/lib/id-C1Ck0Iu_.js +3 -3
- package/lib/{index-D80FuDeb.js → index-0mwIOlG3.js} +5 -5
- package/lib/{index-D80FuDeb.js.map → index-0mwIOlG3.js.map} +1 -1
- package/lib/index-AuCyxwBh.js +11 -0
- package/lib/index-AuCyxwBh.js.map +1 -0
- package/lib/{index-V4Ce6ja4.js → index-B2LBFQvR.js} +5 -5
- package/lib/{index-V4Ce6ja4.js.map → index-B2LBFQvR.js.map} +1 -1
- package/lib/index-BICWRbhN.js +11 -0
- package/lib/index-BICWRbhN.js.map +1 -0
- package/lib/index-BMjKXbT6.js +11 -0
- package/lib/index-BMjKXbT6.js.map +1 -0
- package/lib/{index-485dLkVR.js → index-BNy8Po47.js} +6 -6
- package/lib/{index-485dLkVR.js.map → index-BNy8Po47.js.map} +1 -1
- package/lib/{index-B6sR8La4.js → index-BctCzBRJ.js} +4 -4
- package/lib/{index-B6sR8La4.js.map → index-BctCzBRJ.js.map} +1 -1
- package/lib/{index-D0Yty3Kd.js → index-BmpHlDpc.js} +4 -4
- package/lib/{index-D0Yty3Kd.js.map → index-BmpHlDpc.js.map} +1 -1
- package/lib/index-Bv7ign_r.js +11 -0
- package/lib/index-Bv7ign_r.js.map +1 -0
- package/lib/{index-DiC9gEz8.js → index-C4mg80K7.js} +4 -4
- package/lib/{index-DiC9gEz8.js.map → index-C4mg80K7.js.map} +1 -1
- package/lib/{index-DN0MUiTN.js → index-CFK3j1Ps.js} +4 -4
- package/lib/{index-DN0MUiTN.js.map → index-CFK3j1Ps.js.map} +1 -1
- package/lib/{index-Bs_Zeni2.js → index-CGkp5tkF.js} +5 -5
- package/lib/{index-Bs_Zeni2.js.map → index-CGkp5tkF.js.map} +1 -1
- package/lib/{index-DVfzhcnQ.js → index-CfmuUZKQ.js} +5 -5
- package/lib/{index-DVfzhcnQ.js.map → index-CfmuUZKQ.js.map} +1 -1
- package/lib/{index-OFvhK0tQ.js → index-Cr71_X7L.js} +4 -4
- package/lib/{index-OFvhK0tQ.js.map → index-Cr71_X7L.js.map} +1 -1
- package/lib/{index-GN0bBJB5.js → index-D3Pmdfiq.js} +5 -5
- package/lib/{index-GN0bBJB5.js.map → index-D3Pmdfiq.js.map} +1 -1
- package/lib/{index-Cijb2NkO.js → index-DAAuuSzj.js} +5 -5
- package/lib/{index-Cijb2NkO.js.map → index-DAAuuSzj.js.map} +1 -1
- package/lib/index-DIkWpujR.js +3 -3
- package/lib/{index-DnZbkXyk.js → index-DIvQlc1E.js} +4 -4
- package/lib/{index-DnZbkXyk.js.map → index-DIvQlc1E.js.map} +1 -1
- package/lib/{index-D61N1Jyq.js → index-DJzOeTQw.js} +5 -5
- package/lib/{index-D61N1Jyq.js.map → index-DJzOeTQw.js.map} +1 -1
- package/lib/{index-Ba7VG1-x.js → index-DmbNaSyn.js} +4 -4
- package/lib/{index-Ba7VG1-x.js.map → index-DmbNaSyn.js.map} +1 -1
- package/lib/{index-DL4_VnMC.js → index-ICoXk8t6.js} +6 -6
- package/lib/{index-DL4_VnMC.js.map → index-ICoXk8t6.js.map} +1 -1
- package/lib/{index-B_B3i9Pn.js → index-JfVCFctc.js} +4 -4
- package/lib/{index-B_B3i9Pn.js.map → index-JfVCFctc.js.map} +1 -1
- package/lib/{index-MMI4ImqT.js → index-Wd5cmT1h.js} +4 -4
- package/lib/{index-MMI4ImqT.js.map → index-Wd5cmT1h.js.map} +1 -1
- package/lib/{index-CGU27x9g.js → index-o_ero_WP.js} +4 -4
- package/lib/{index-CGU27x9g.js.map → index-o_ero_WP.js.map} +1 -1
- package/lib/is-Bf2mOiIg.js +3 -3
- package/lib/it-IMkNWYOG.js +3 -3
- package/lib/iw-BuDnLn5x.js +3 -3
- package/lib/ja-DdM1Ym9C.js +3 -3
- package/lib/ko-B01TPi1c.js +3 -3
- package/lib/lo-CDeDGaKo.js +3 -3
- package/lib/lt-DyBa0gOR.js +3 -3
- package/lib/ms-LqU5Yd8l.js +3 -3
- package/lib/nl-BE-BFg3IyDd.js +3 -3
- package/lib/nl-kMVLoHoM.js +3 -3
- package/lib/no-BAFfWVPm.js +3 -3
- package/lib/pl-Cxz2q367.js +3 -3
- package/lib/pt-BR-CgWnbrVG.js +3 -3
- package/lib/pt-ClU8GfPr.js +3 -3
- package/lib/ro-CjVQ_Zpn.js +3 -3
- package/lib/ru-BdRZQIfm.js +3 -3
- package/lib/sk-C-xR48Aj.js +3 -3
- package/lib/sl-CImZBWQa.js +3 -3
- package/lib/sr-CZdt5Aa4.js +3 -3
- package/lib/sv-BclJkJLk.js +3 -3
- package/lib/sw-BMcrEvkG.js +3 -3
- package/lib/th-Dl_Lc--C.js +3 -3
- package/lib/tr-CL17frp4.js +3 -3
- package/lib/uk-zgBsQ3Tg.js +3 -3
- package/lib/ur-DJP0igA6.js +3 -3
- package/lib/{useCollectFieldsEndpoint-Df4fm8kA.js → useCollectFieldsEndpoint-DblGgLbe.js} +5 -5
- package/lib/{useCollectFieldsEndpoint-Df4fm8kA.js.map → useCollectFieldsEndpoint-DblGgLbe.js.map} +1 -1
- package/lib/{useEmailFirstExperiment-BOHCZCqy.js → useEmailFirstExperiment-B9ujoMIi.js} +4 -4
- package/lib/{useEmailFirstExperiment-BOHCZCqy.js.map → useEmailFirstExperiment-B9ujoMIi.js.map} +1 -1
- package/lib/vi-B1t3wnVe.js +3 -3
- package/lib/zh-B1K_f766.js +3 -3
- package/lib/zh-HK-B7LwDNgi.js +3 -3
- package/lib/zu-DXIuiqYP.js +3 -3
- package/package.json +1 -1
- package/sheerid-install.css +3 -3
- package/sheerid-install.js +4 -4
- package/sheerid.css +4 -4
- package/sheerid.js +1580 -1575
- package/sheerid.js.map +1 -1
- package/src/components/FormInputs/Typeahead/TypeaheadClearButton/TypeaheadClearButtonComponent.d.ts +3 -2
- package/types-reference.zip +0 -0
- package/lib/StepCollectMilitaryStatusComponent-DRROyvH5.js +0 -11
- package/lib/index-B7vWda54.js +0 -11
- package/lib/index-B7vWda54.js.map +0 -1
- package/lib/index-BfLH0Ewz.js +0 -11
- package/lib/index-BfLH0Ewz.js.map +0 -1
- package/lib/index-Bu52dUKa.js +0 -11
- package/lib/index-Bu52dUKa.js.map +0 -1
- package/lib/index-M7ft39-8.js +0 -11
- package/lib/index-M7ft39-8.js.map +0 -1
package/lib/fi-CCyjkr-W.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.113.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
3
|
+
* VERSION: 2.113.0-alpha.1
|
4
|
+
* BUILD_TIMESTAMP: 1750285707774
|
5
|
+
* BUILD_DATE: Wed Jun 18 2025 22:28:27 GMT+0000 (Coordinated Universal Time)
|
6
6
|
* BUILD_COMMIT: 896154e79f58fffa6d52f3ed37f2db760a63df88
|
7
7
|
*/
|
8
8
|
const e = {
|
package/lib/fr-CA-DwRs4Got.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.113.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
3
|
+
* VERSION: 2.113.0-alpha.1
|
4
|
+
* BUILD_TIMESTAMP: 1750285707774
|
5
|
+
* BUILD_DATE: Wed Jun 18 2025 22:28:27 GMT+0000 (Coordinated Universal Time)
|
6
6
|
* BUILD_COMMIT: 896154e79f58fffa6d52f3ed37f2db760a63df88
|
7
7
|
*/
|
8
8
|
const e = {
|
package/lib/fr-alhQlPBO.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.113.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
3
|
+
* VERSION: 2.113.0-alpha.1
|
4
|
+
* BUILD_TIMESTAMP: 1750285707774
|
5
|
+
* BUILD_DATE: Wed Jun 18 2025 22:28:27 GMT+0000 (Coordinated Universal Time)
|
6
6
|
* BUILD_COMMIT: 896154e79f58fffa6d52f3ed37f2db760a63df88
|
7
7
|
*/
|
8
8
|
const e = {
|
package/lib/ga-DfyMbfDn.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.113.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
3
|
+
* VERSION: 2.113.0-alpha.1
|
4
|
+
* BUILD_TIMESTAMP: 1750285707774
|
5
|
+
* BUILD_DATE: Wed Jun 18 2025 22:28:27 GMT+0000 (Coordinated Universal Time)
|
6
6
|
* BUILD_COMMIT: 896154e79f58fffa6d52f3ed37f2db760a63df88
|
7
7
|
*/
|
8
8
|
const e = {
|
package/lib/hi-IN-CnIX7S9Z.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.113.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
3
|
+
* VERSION: 2.113.0-alpha.1
|
4
|
+
* BUILD_TIMESTAMP: 1750285707774
|
5
|
+
* BUILD_DATE: Wed Jun 18 2025 22:28:27 GMT+0000 (Coordinated Universal Time)
|
6
6
|
* BUILD_COMMIT: 896154e79f58fffa6d52f3ed37f2db760a63df88
|
7
7
|
*/
|
8
8
|
const e = {
|
package/lib/hr-HChVQ_Sw.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.113.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
3
|
+
* VERSION: 2.113.0-alpha.1
|
4
|
+
* BUILD_TIMESTAMP: 1750285707774
|
5
|
+
* BUILD_DATE: Wed Jun 18 2025 22:28:27 GMT+0000 (Coordinated Universal Time)
|
6
6
|
* BUILD_COMMIT: 896154e79f58fffa6d52f3ed37f2db760a63df88
|
7
7
|
*/
|
8
8
|
const e = {
|
package/lib/hu-CWN1WU0a.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.113.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
3
|
+
* VERSION: 2.113.0-alpha.1
|
4
|
+
* BUILD_TIMESTAMP: 1750285707774
|
5
|
+
* BUILD_DATE: Wed Jun 18 2025 22:28:27 GMT+0000 (Coordinated Universal Time)
|
6
6
|
* BUILD_COMMIT: 896154e79f58fffa6d52f3ed37f2db760a63df88
|
7
7
|
*/
|
8
8
|
const e = {
|
package/lib/id-C1Ck0Iu_.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.113.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
3
|
+
* VERSION: 2.113.0-alpha.1
|
4
|
+
* BUILD_TIMESTAMP: 1750285707774
|
5
|
+
* BUILD_DATE: Wed Jun 18 2025 22:28:27 GMT+0000 (Coordinated Universal Time)
|
6
6
|
* BUILD_COMMIT: 896154e79f58fffa6d52f3ed37f2db760a63df88
|
7
7
|
*/
|
8
8
|
const a = {
|
@@ -1,13 +1,13 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.113.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
3
|
+
* VERSION: 2.113.0-alpha.1
|
4
|
+
* BUILD_TIMESTAMP: 1750285707774
|
5
|
+
* BUILD_DATE: Wed Jun 18 2025 22:28:27 GMT+0000 (Coordinated Universal Time)
|
6
6
|
* BUILD_COMMIT: 896154e79f58fffa6d52f3ed37f2db760a63df88
|
7
7
|
*/
|
8
|
-
import { j as s, r as c, A as p, a0 as g, B as u, V as d, p as x, u as j, l as b, q as h } from "./es6-
|
8
|
+
import { j as s, r as c, A as p, a0 as g, B as u, V as d, p as x, u as j, l as b, q as h } from "./es6-Frx81Nad.js";
|
9
9
|
import { FormattedHTMLMessage as a, injectIntl as E } from "react-intl";
|
10
|
-
import { EmailLoopPendingComponent as f } from "./EmailLoopPending-
|
10
|
+
import { EmailLoopPendingComponent as f } from "./EmailLoopPending-B1jISe7A.js";
|
11
11
|
const L = ({
|
12
12
|
verificationService: e
|
13
13
|
}) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-D80FuDeb.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","_a","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,OAAqBC,IAAAJ,EAAoB,yBAApB,gBAAAI,EAA0C,aAAY,CAAI,GAAA;AAAA,IACnF;AAAA,EACF,GAEMC,IAAgB,CAACC,MAA8B;AACnD,IAAAN,EAAoB,gBAAgB,EAAE,GAAGC,GAAW,mBAAAK,GAAmB,GACvEC;AAAA,MACE;AAAA,MACAD;AAAA,MACAN;AAAA,IACF;A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AF,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,yDACb,UAAAA,gBAAAA,EAAA;AAAA,YAACE;AAAA,YAAA;AAAA,cACC,IAAG;AAAA,cACH,gBAAe;AAAA,YAAA;AAAA,UAAA,GAEnB;AAAA,UACAF,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,sBACb,UAAAA,gBAAAA,EAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,SAASP;AAAA,cACT,WAAU;AAAA,cACV,MAAK;AAAA,cAEL,UAAAO,gBAAAA,EAAA;AAAA,gBAACE;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA,EAEJ,CAAA;AAAA,QAAA,GACF;AAAA,QAEAF,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,qBAAqB,CAAA;AAAA,MAAA,EACtC,CAAA;AAAA,IAAA,GACF;AAAA,IACAA,gBAAAA,MAACM,KAAW,qBAAArB,EAA0C,CAAA;AAAA,EAAA,GACxD;AAEJ,GCvJasB,IAAgB,CAAC,EAAE,qBAAAtB,QAAuD;AAC/E,QAAAuB,IACHvB,EAAoB,qBAA2C,iBAChE;AACF,SACGe,gBAAAA,EAAA,IAAA,OAAA,EAAI,IAAG,uBAAsB,WAAU,iDACrC,UAAAQ,IACER,gBAAAA,EAAA,IAAAhB,GAAA,EAAkC,qBAAAC,EAA0C,CAAA,IAE5Ee,gBAAAA,EAAAA,IAAAS,GAAA,EAA0B,qBAAAxB,EAA0C,CAAA,GAEzE;AAEJ,GAEayB,IAAyBC,EAAWJ,CAAa;"}
|
1
|
+
{"version":3,"file":"index-0mwIOlG3.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","_a","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,OAAqBC,IAAAJ,EAAoB,yBAApB,gBAAAI,EAA0C,aAAY,CAAI,GAAA;AAAA,IACnF;AAAA,EACF,GAEMC,IAAgB,CAACC,MAA8B;AACnD,IAAAN,EAAoB,gBAAgB,EAAE,GAAGC,GAAW,mBAAAK,GAAmB,GACvEC;AAAA,MACE;AAAA,MACAD;AAAA,MACAN;AAAA,IACF;AAAA,EACF,GAEMQ,IAAkB,YAAY;AAClC,IAAAC,EAAO,KAAK,kEAAkE;AACxE,UAAAC,IAAYC,EAAQV,GAAW,MAAM;AAAA,IAAA,CAAE;AAC7C,WAAOD,EAAoB;AAAA,MACzBY,EAAsB;AAAA,MACtBF;AAAA,MACAV,EAAoB;AAAA,IACtB;AAAA,EACF;AAEA,SAEIa,gBAAAA,EAAA,KAAAC,YAAA,EAAA,UAAA;AAAA,IAACD,gBAAAA,EAAAA,KAAA,OAAA,EAAI,WAAU,gCACb,UAAA;AAAA,MAACA,gBAAAA,EAAAA,KAAA,OAAA,EAAI,MAAK,QACR,UAAA;AAAA,QAACE,gBAAAA,EAAAA,IAAA,OAAA,EAAI,WAAU,4CACb,UAAAA,gBAAAA,EAAA;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,qBAAAhB;AAAA,YACA,cACEe,gBAAAA,EAAA;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,WAAU;AAAA,gBACV,KAAI;AAAA,gBACJ,KAAI;AAAA,cAAA;AAAA,YAAA;AAAA,UACN;AAAA,QAAA,GAGN;AAAA,QACCA,gBAAAA,MAAA,OAAA,EAAI,WAAU,0CACb,gCAAC,QAAK,EAAA,WAAU,eACd,UAAAA,gBAAAA,EAAA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,EAAA,IAAA,OAAA,EAAI,IAAG,uBAAsB,WAAU,iDACrC,UAAAQ,IACER,gBAAAA,EAAA,IAAAhB,GAAA,EAAkC,qBAAAC,EAA0C,CAAA,IAE5Ee,gBAAAA,EAAAA,IAAAS,GAAA,EAA0B,qBAAAxB,EAA0C,CAAA,GAEzE;AAEJ,GAEayB,IAAyBC,EAAWJ,CAAa;"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
|
2
|
+
/**
|
3
|
+
* VERSION: 2.113.0-alpha.1
|
4
|
+
* BUILD_TIMESTAMP: 1750285707774
|
5
|
+
* BUILD_DATE: Wed Jun 18 2025 22:28:27 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: 896154e79f58fffa6d52f3ed37f2db760a63df88
|
7
|
+
*/
|
8
|
+
import { c as f } from "./es6-Frx81Nad.js";
|
9
|
+
export {
|
10
|
+
f as default
|
11
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index-AuCyxwBh.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
@@ -1,14 +1,14 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.113.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
3
|
+
* VERSION: 2.113.0-alpha.1
|
4
|
+
* BUILD_TIMESTAMP: 1750285707774
|
5
|
+
* BUILD_DATE: Wed Jun 18 2025 22:28:27 GMT+0000 (Coordinated Universal Time)
|
6
6
|
* BUILD_COMMIT: 896154e79f58fffa6d52f3ed37f2db760a63df88
|
7
7
|
*/
|
8
|
-
import { k as V, a7 as k, a8 as A, i as q, u as d, j as o, M as B, N as L, m as U, w as W, a1 as w, f as r, O, T as _, a4 as H, a9 as K, U as X, W as Y, E as Z, n as z, X as G, Y as J, Z as Q, _ as $, o as S, V as v, aa as ee } from "./es6-
|
8
|
+
import { k as V, a7 as k, a8 as A, i as q, u as d, j as o, M as B, N as L, m as U, w as W, a1 as w, f as r, O, T as _, a4 as H, a9 as K, U as X, W as Y, E as Z, n as z, X as G, Y as J, Z as Q, _ as $, o as S, V as v, aa as ee } from "./es6-Frx81Nad.js";
|
9
9
|
import se from "react";
|
10
10
|
import { injectIntl as ae, FormattedHTMLMessage as oe } from "react-intl";
|
11
|
-
import { u as te } from "./useCollectFieldsEndpoint-
|
11
|
+
import { u as te } from "./useCollectFieldsEndpoint-DblGgLbe.js";
|
12
12
|
const de = ({ verificationService: s, intl: j }) => {
|
13
13
|
var p, C, h, b, i, N, g, x, y;
|
14
14
|
const a = s.viewModel, { fieldValidationErrors: t } = s, l = s.verificationResponse, E = V(l), I = k(
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-V4Ce6ja4.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 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","_a","getFieldConfigByFieldId","FirstName","_b","newValue","LastName","_c","BirthDate","_d","CityComponent","_e","AddressComponent","PostalCode","_f","Email","event","handleEmailOnKeyDown","_g","PhoneNumber","_h","config","FormFieldCustom","MarketConsentWrapper","_i","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","FormattedHTMLMessage","StepAgePersonalInfoComponent","injectIntl"],"mappings":";;;;AAqDA,MAAMA,KAAsB,CAAC,EAAE,qBAAAC,GAAqB,MAAAC,QAA8C;;AAChG,QAAMC,IAAYF,EAAoB,WAChC,EAAE,uBAAAG,MAA0BH,GAC5BI,IAAuBJ,EAAoB,sBAC3CK,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAsDC;AAAA,IAC1DR,EAAoB;AAAA,IACpBC;AAAA,EACF,GACMQ,IACJC,EAAwBH,CAAc,GAClCI,IAAmBC,EAAQ,MAAMV,EAAU,cAAc,OAAOO,EAAqB,KAAK,GAC1FI,IACJF,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAc,CAAA,IAAI,CAAC,GAGnDG,IACJH,MAAqB,QACrBX,EAAoB,aAAa,2BACjCA,EAAoB,aAAa,gBAC7Be,IACJJ,MAAqB,QAAQX,EAAoB,aAAa,gBAE1DgB,IAASd,EAAU,aAAa,OAChCe,IAAUC,EAAW;AAGzB,EAAA,CAACf,EAAsB,eACvBC,EAAqB,YACrBA,EAAqB,SAAS,SAAS,oBAAoB,KAE3DJ,EAAoB,4BAA4B;AAAA,IAC9C,GAAGG;AAAA,IACH,aAAa;AAAA,EAAA,CACd;AAGG,QAAAgB,IAAqB,CAACC,GAAqCC,MAAe;AAC9E,UAAMC,IAAsCC,GAAsBrB,GAAWkB,GAAKC,CAAK;AACvF,IAAArB,EAAoB,gBAAgBsB,CAAS;AAAA,EAC/C,GAEM,EAAE,iBAAAE,EAAgB,IAAIC,GAAyB;AAAA,IACnD,gBAAgBrB,EAAqB;AAAA,IACrC,aAAaA,EAAqB;AAAA,IAClC,WAAAF;AAAA,IACA,uBAAAW;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;AAAA,gBAC7B,GAAGnB,EAAoB,UAAU;AAAA,gBACjC,oBAAoBsC;AAAA,cAAA,CACrB,GACoCX,EAAA,sBAAsBW,GAAUtC,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAE;AAAA,YACA,WAAUuD,IAAAtB,EAAwB,oBAAoB,MAA5C,gBAAAsB,EAA+C;AAAA,UAAA;AAAA,QAC3D;AAAA,QAEC3B,gBAAAA,EAAAA,IAAA4B,GAAA,EAAa,qBAAA1D,GAA0C,QAAO,qBAAqB,CAAA;AAAA,QAEpF8B,gBAAAA,EAAA;AAAA,UAAC6B;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAA5D;AAAA,YACA,WAAAE;AAAA,YACA,oBAAAG;AAAA,YACA,YACEyB,gBAAAA,EAAA;AAAA,cAAC+B;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAEaC,KAA+BC,GAAWhE,EAAmB;"}
|
1
|
+
{"version":3,"file":"index-B2LBFQvR.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 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","_a","getFieldConfigByFieldId","FirstName","_b","newValue","LastName","_c","BirthDate","_d","CityComponent","_e","AddressComponent","PostalCode","_f","Email","event","handleEmailOnKeyDown","_g","PhoneNumber","_h","config","FormFieldCustom","MarketConsentWrapper","_i","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","FormattedHTMLMessage","StepAgePersonalInfoComponent","injectIntl"],"mappings":";;;;AAqDA,MAAMA,KAAsB,CAAC,EAAE,qBAAAC,GAAqB,MAAAC,QAA8C;;AAChG,QAAMC,IAAYF,EAAoB,WAChC,EAAE,uBAAAG,MAA0BH,GAC5BI,IAAuBJ,EAAoB,sBAC3CK,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAsDC;AAAA,IAC1DR,EAAoB;AAAA,IACpBC;AAAA,EACF,GACMQ,IACJC,EAAwBH,CAAc,GAClCI,IAAmBC,EAAQ,MAAMV,EAAU,cAAc,OAAOO,EAAqB,KAAK,GAC1FI,IACJF,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAc,CAAA,IAAI,CAAC,GAGnDG,IACJH,MAAqB,QACrBX,EAAoB,aAAa,2BACjCA,EAAoB,aAAa,gBAC7Be,IACJJ,MAAqB,QAAQX,EAAoB,aAAa,gBAE1DgB,IAASd,EAAU,aAAa,OAChCe,IAAUC,EAAW;AAGzB,EAAA,CAACf,EAAsB,eACvBC,EAAqB,YACrBA,EAAqB,SAAS,SAAS,oBAAoB,KAE3DJ,EAAoB,4BAA4B;AAAA,IAC9C,GAAGG;AAAA,IACH,aAAa;AAAA,EAAA,CACd;AAGG,QAAAgB,IAAqB,CA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AACqC,MAC5BxB,gBAAAA,MAAAyB,GAAA,EAAgB,QAAAD,GAAgB,qBAAAtD,EAAA,CAA0C,CAC5E;AAAA,QAED8B,gBAAAA,EAAA;AAAA,UAAC0B;AAAAA,UAAA;AAAA,YACC,qBAAAxD;AAAA,YACA,WAAW,CAAC,CAACG,EAAsB;AAAA,YACnC,UAAU,CAACmC,MAAa;AACtB,cAAAnB,EAAmB,YAAY;AAAA,gBAC7B,GAAGnB,EAAoB,UAAU;AAAA,gBACjC,oBAAoBsC;AAAA,cAAA,CACrB,GACoCX,EAAA,sBAAsBW,GAAUtC,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAE;AAAA,YACA,WAAUuD,IAAAtB,EAAwB,oBAAoB,MAA5C,gBAAAsB,EAA+C;AAAA,UAAA;AAAA,QAC3D;AAAA,QAEC3B,gBAAAA,EAAAA,IAAA4B,GAAA,EAAa,qBAAA1D,GAA0C,QAAO,qBAAqB,CAAA;AAAA,QAEpF8B,gBAAAA,EAAA;AAAA,UAAC6B;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAA5D;AAAA,YACA,WAAAE;AAAA,YACA,oBAAAG;AAAA,YACA,YACEyB,gBAAAA,EAAA;AAAA,cAAC+B;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAEaC,KAA+BC,GAAWhE,EAAmB;"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
|
2
|
+
/**
|
3
|
+
* VERSION: 2.113.0-alpha.1
|
4
|
+
* BUILD_TIMESTAMP: 1750285707774
|
5
|
+
* BUILD_DATE: Wed Jun 18 2025 22:28:27 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: 896154e79f58fffa6d52f3ed37f2db760a63df88
|
7
|
+
*/
|
8
|
+
import { b as f } from "./es6-Frx81Nad.js";
|
9
|
+
export {
|
10
|
+
f as default
|
11
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index-BICWRbhN.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
|
2
|
+
/**
|
3
|
+
* VERSION: 2.113.0-alpha.1
|
4
|
+
* BUILD_TIMESTAMP: 1750285707774
|
5
|
+
* BUILD_DATE: Wed Jun 18 2025 22:28:27 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: 896154e79f58fffa6d52f3ed37f2db760a63df88
|
7
|
+
*/
|
8
|
+
import { d as e } from "./es6-Frx81Nad.js";
|
9
|
+
export {
|
10
|
+
e as default
|
11
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index-BMjKXbT6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
@@ -1,16 +1,16 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.113.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
3
|
+
* VERSION: 2.113.0-alpha.1
|
4
|
+
* BUILD_TIMESTAMP: 1750285707774
|
5
|
+
* BUILD_DATE: Wed Jun 18 2025 22:28:27 GMT+0000 (Coordinated Universal Time)
|
6
6
|
* BUILD_COMMIT: 896154e79f58fffa6d52f3ed37f2db760a63df88
|
7
7
|
*/
|
8
|
-
import { e as t, Q as n, j as e, I as r, L as i } from "./es6-
|
8
|
+
import { e as t, Q as n, j as e, I as r, L as i } from "./es6-Frx81Nad.js";
|
9
9
|
import { Suspense as C, lazy as p } from "react";
|
10
10
|
const a = p(
|
11
|
-
() => import("./StepIDCheckLoopOnfido-
|
11
|
+
() => import("./StepIDCheckLoopOnfido-M2e4hS7o.js")
|
12
12
|
), d = p(
|
13
|
-
() => import("./StepIDCheckLoopRegula-
|
13
|
+
() => import("./StepIDCheckLoopRegula-DvRryGGo.js")
|
14
14
|
), h = ({ verificationService: o }) => {
|
15
15
|
const s = o.verificationResponse, c = t(
|
16
16
|
n
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-
|
1
|
+
{"version":3,"file":"index-BNy8Po47.js","sources":["../../src/components/StepIDCheckLoop/StepIDCheckLoopComponent.tsx"],"sourcesContent":["import React, { Suspense, lazy } from \"react\";\nimport { IdCheckLoopServiceType } from \"../../lib/types/runtimeTypes\";\n\nimport { IDCheckLoopResponse, VerificationService } from \"../../lib/types/types\";\n\nimport { QUERY_STRING_ID_CHECK_LOOP_SERVICE_TYPE_OVERRIDE } from \"../../constants\";\nimport { getQueryOrOption } from \"../../lib/ServerApi/TestingRouteOverrides\";\nimport { LoadingScreenComponent } from \"../LoadingScreen/LoadingScreenComponent\";\n\nconst StepIDCheckLoopOnfido = lazy(\n () => import(\"./Onfido/StepIDCheckLoopOnfido/StepIDCheckLoopOnfido\"),\n);\nconst StepIDCheckLoopRegula = lazy(\n () => import(\"./Regula/StepIDCheckLoopRegulaComponent/StepIDCheckLoopRegula\"),\n);\n\nexport interface StepIDCheckLoopComponentProps {\n verificationService: VerificationService;\n}\n\n/**\n * The idCheckLoop step consists of two 3rd party identity verification services. One is `Onfido`, which performs a\n * governemnt ID based identity confirmation, in addition to a liveness check. The other is `Regula`, which only\n * performs identity confirmation without a liveness check. The verification API's serviceType property denotes\n * them as such.\n */\nconst StepIDCheckLoop = ({ verificationService }: StepIDCheckLoopComponentProps) => {\n const verificationResponse = verificationService.verificationResponse as IDCheckLoopResponse;\n const mockIdCheckLoopServiceType = getQueryOrOption(\n QUERY_STRING_ID_CHECK_LOOP_SERVICE_TYPE_OVERRIDE,\n );\n\n const idCheckServiceType = mockIdCheckLoopServiceType || verificationResponse.idCheckServiceType;\n\n return (\n <Suspense\n fallback={\n <div className=\"sid-l-horz-center\">\n <LoadingScreenComponent step=\"idCheckLoop\" />\n </div>\n }\n >\n {idCheckServiceType === IdCheckLoopServiceType.ID_CHECK ? (\n <StepIDCheckLoopRegula verificationService={verificationService} />\n ) : (\n <StepIDCheckLoopOnfido verificationService={verificationService} />\n )}\n </Suspense>\n );\n};\n\nexport const StepIDCheckLoopComponent = StepIDCheckLoop;\n"],"names":["StepIDCheckLoopOnfido","lazy","StepIDCheckLoopRegula","StepIDCheckLoop","verificationService","verificationResponse","idCheckServiceType","getQueryOrOption","QUERY_STRING_ID_CHECK_LOOP_SERVICE_TYPE_OVERRIDE","jsx","Suspense","LoadingScreenComponent","IdCheckLoopServiceType","StepIDCheckLoopComponent"],"mappings":";;AASA,MAAMA,IAAwBC;AAAA,EAC5B,MAAM,OAAO,qCAAsD;AACrE,GACMC,IAAwBD;AAAA,EAC5B,MAAM,OAAO,qCAA+D;AAC9E,GAYME,IAAkB,CAAC,EAAE,qBAAAC,QAAyD;AAClF,QAAMC,IAAuBD,EAAoB,sBAK3CE,IAJ6BC;AAAA,IACjCC;AAAA,EACF,KAEyDH,EAAqB;AAG5E,SAAAI,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,gCACG,OAAI,EAAA,WAAU,qBACb,UAACD,gBAAAA,EAAA,IAAAE,GAAA,EAAuB,MAAK,cAAA,CAAc,EAC7C,CAAA;AAAA,MAGD,UAAAL,MAAuBM,EAAuB,WAC7CH,gBAAAA,EAAAA,IAACP,KAAsB,qBAAAE,EAA0C,CAAA,IAEhEK,gBAAAA,EAAAA,IAAAT,GAAA,EAAsB,qBAAAI,EAA0C,CAAA;AAAA,IAAA;AAAA,EAErE;AAEJ,GAEaS,IAA2BV;"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.113.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
3
|
+
* VERSION: 2.113.0-alpha.1
|
4
|
+
* BUILD_TIMESTAMP: 1750285707774
|
5
|
+
* BUILD_DATE: Wed Jun 18 2025 22:28:27 GMT+0000 (Coordinated Universal Time)
|
6
6
|
* BUILD_COMMIT: 896154e79f58fffa6d52f3ed37f2db760a63df88
|
7
7
|
*/
|
8
|
-
import { i as l, j as e, A as S, $ as R, q as E, l as V, V as w, K as y } from "./es6-
|
8
|
+
import { i as l, j as e, A as S, $ as R, q as E, l as V, V as w, K as y } from "./es6-Frx81Nad.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-B6sR8La4.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\"> </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 \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 \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,EACjF,GAEMQ,IAAqBX,EAAK,kBAAkB;AAAA,IAChD,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA,CACjB,GACKY,IAAyBZ,EAAK,kBAAkB;AAA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],"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\"> </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 \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 \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,EACjF,GAEMQ,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,EAAE,GAGHE,EAAQ,MAAMZ,EAAqB,SAAS,MAAM,KAClD,CAACF,EAAoB,sBAAsB,WAE3CA,EAAoB,4B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A,WAAU,0CACb,UAAA;AAAA,MAAAC,gBAAAA,EAAA;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,QAAA;AAAA,MACjB;AAAA,MAAE;AAAA,MAEFH,gBAAAA,EAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,SAAS,MAAM,OAAO,SAAS,OAAO;AAAA,UACtC,WAAU;AAAA,UAEV,UAAA;AAAA,YAAAC,gBAAAA,EAAA;AAAA,cAACE;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YACjB;AAAA,YAAE;AAAA,UAAA;AAAA,QAAA;AAAA,MAEJ;AAAA,4BACCA,GAAqB,EAAA,IAAG,eAAc,gBAAe,aACnD,WAACE,MACAJ,gBAAAA,EAAA;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,UACf,QAAQ,EAAE,aAAAE,EAAY;AAAA,QAAA;AAAA,MAAA,EAG5B,CAAA;AAAA,IAAA,EACF,CAAA;AAAA,EAAA,GACF;AAEJ,GAEaC,IAAuBC,EAAWpC,CAAW;"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.113.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
3
|
+
* VERSION: 2.113.0-alpha.1
|
4
|
+
* BUILD_TIMESTAMP: 1750285707774
|
5
|
+
* BUILD_DATE: Wed Jun 18 2025 22:28:27 GMT+0000 (Coordinated Universal Time)
|
6
6
|
* BUILD_COMMIT: 896154e79f58fffa6d52f3ed37f2db760a63df88
|
7
7
|
*/
|
8
|
-
import { k as T, f as t, j as s, M as k, N as R, m as q, w as O, a1 as P, a2 as z, a3 as w, u as n, O as B, T as L, E as W, n as _, a4 as H, a5 as K, X as A, Y as X, Z as Y, _ as Z, o as G, V as J, q as Q } from "./es6-
|
8
|
+
import { k as T, f as t, j as s, M as k, N as R, m as q, w as O, a1 as P, a2 as z, a3 as w, u as n, O as B, T as L, E as W, n as _, a4 as H, a5 as K, X as A, Y as X, Z as Y, _ as Z, o as G, V as J, q as Q } from "./es6-Frx81Nad.js";
|
9
9
|
import U from "react";
|
10
10
|
import { FormattedHTMLMessage as j } from "react-intl";
|
11
11
|
const $ = ({ verificationService: e }) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-D0Yty3Kd.js","sources":["../../src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n Organization,\n MemberPersonalInfoViewModel,\n MemberPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MembershipOrganizationComponent } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { MarketConsentWrapperComponent } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepMemberPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepMemberPersonalInfo = ({ verificationService }: StepMemberPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MemberPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MemberPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n const isMemberIdRequired = getFieldConfigByFieldId(\"memberId\")?.requireIfOptional;\n\n const locale = viewModel.localeChoice.value;\n\n const updateMemberViewModel = (key: keyof MemberPersonalInfoViewModel, value: any) => {\n const nextState: MemberPersonalInfoViewModel = produce(\n viewModel,\n (draft: MemberPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n if (!isMemberIdRequired) {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [\"memberId\"] },\n { partial: true },\n );\n } else {\n verificationService.updateViewModel({ fieldsToSkipValidation: [] }, { partial: true });\n }\n }, [isMemberIdRequired]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"member-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <MembershipOrganizationComponent\n value={(verificationService.viewModel as MemberPersonalInfoViewModel).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\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"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 updateMemberViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateMemberViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired={getFieldConfigByFieldId(\"birthDate\")?.requireIfOptional}\n onChange={(newValue) => {\n updateMemberViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={isMemberIdRequired}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMemberViewModel(\"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 <MarketConsentWrapperComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMemberViewModel(\"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.collectMemberPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Membership Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMemberPersonalInfoComponent = StepMemberPersonalInfo;\n"],"names":["StepMemberPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","isMemberIdRequired","_a","getFieldConfigByFieldId","locale","updateMemberViewModel","key","value","nextState","produce","draft","React","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_b","MembershipOrganizationComponent","_c","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","_d","newValue","LastName","_e","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","_f","BirthDate","_g","_h","MemberId","_i","PhoneNumber","_j","config","FormFieldCustom","MarketConsentWrapperComponent","_k","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepMemberPersonalInfoComponent"],"mappings":";;;AAyCA,MAAMA,IAAyB,CAAC,EAAE,qBAAAC,QAAgE;;AAChG,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAW,GACrBC,KAAqBC,IAAAC,EAAwB,UAAU,MAAlC,gBAAAD,EAAqC,mBAE1DE,IAASV,EAAU,aAAa,OAEhCW,IAAwB,CAACC,GAAwCC,MAAe;AACpF,UAAMC,IAAyCC;AAAAA,MAC7Cf;AAAA,MACA,CAACgB,MAAuC;AACrC,QAAAA,EAAMJ,CAAG,IAAYC;AAAA,MAAA;AAAA,IAE1B;AACA,IAAAd,EAAoB,gBAAgBe,CAAS;AAAA,EAC/C;AAEAG,SAAAA,EAAM,UAAU,MAAM;AACpB,IAAKV,IAMiBR,EAAA,gBAAgB,EAAE,wBAAwB,MAAM,EAAE,SAAS,IAAM,IALjEA,EAAA;AAAA,MAClB,EAAE,wBAAwB,CAAC,UAAU,EAAE;AAAA,MACvC,EAAE,SAAS,GAAK;AAAA,IAClB;AAAA,EAGF,GACC,CAACQ,CAAkB,CAAC,GAGrBW,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,qBAAApB;AAAA,MACA,MAAMG,EAAq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qB,CAAA;AAAA,QAEpFqB,gBAAAA,EAAA;AAAA,UAACgC;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAtD;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAG;AAAA,YACA,YACEiB,gBAAAA,EAAA;AAAA,cAACgB;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAEakB,KAAkCxD;"}
|
1
|
+
{"version":3,"file":"index-BmpHlDpc.js","sources":["../../src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n Organization,\n MemberPersonalInfoViewModel,\n MemberPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MembershipOrganizationComponent } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { MarketConsentWrapperComponent } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepMemberPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepMemberPersonalInfo = ({ verificationService }: StepMemberPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MemberPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MemberPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n const isMemberIdRequired = getFieldConfigByFieldId(\"memberId\")?.requireIfOptional;\n\n const locale = viewModel.localeChoice.value;\n\n const updateMemberViewModel = (key: keyof MemberPersonalInfoViewModel, value: any) => {\n const nextState: MemberPersonalInfoViewModel = produce(\n viewModel,\n (draft: MemberPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n if (!isMemberIdRequired) {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [\"memberId\"] },\n { partial: true },\n );\n } else {\n verificationService.updateViewModel({ fieldsToSkipValidation: [] }, { partial: true });\n }\n }, [isMemberIdRequired]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"member-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <MembershipOrganizationComponent\n value={(verificationService.viewModel as MemberPersonalInfoViewModel).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\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"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 updateMemberViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateMemberViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired={getFieldConfigByFieldId(\"birthDate\")?.requireIfOptional}\n onChange={(newValue) => {\n updateMemberViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={isMemberIdRequired}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMemberViewModel(\"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 <MarketConsentWrapperComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMemberViewModel(\"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.collectMemberPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Membership Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMemberPersonalInfoComponent = StepMemberPersonalInfo;\n"],"names":["StepMemberPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","isMemberIdRequired","_a","getFieldConfigByFieldId","locale","updateMemberViewModel","key","value","nextState","produce","draft","React","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_b","MembershipOrganizationComponent","_c","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","_d","newValue","LastName","_e","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","_f","BirthDate","_g","_h","MemberId","_i","PhoneNumber","_j","config","FormFieldCustom","MarketConsentWrapperComponent","_k","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepMemberPersonalInfoComponent"],"mappings":";;;AAyCA,MAAMA,IAAyB,CAAC,EAAE,qBAAAC,QAAgE;;AAChG,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAW,GACrBC,KAAqBC,IAAAC,EAAwB,UAAU,MAAlC,gBAAAD,EAAqC,mBAE1DE,IAASV,EAAU,aAAa,OAEhCW,IAAwB,CAACC,GAAwCC,MAAe;AACpF,UAAMC,IAAyCC;AAAAA,MAC7Cf;AAAA,MACA,CAACgB,MAAuC;AACrC,QAAAA,EAAMJ,CAAG,IAAYC;AAAA,MAAA;AAAA,IAE1B;AACA,IAAAd,EAAoB,gBAAgBe,CAAS;AAAA,EAC/C;AAEAG,SAAAA,EAAM,UAAU,MAAM;AACpB,IAAKV,IAMiBR,EAAA,gBAAgB,EAAE,wBAAwB,MAAM,EAAE,SAAS,IAAM,IALjEA,EAAA;AAAA,MAClB,EAAE,wBAAwB,CAAC,UAAU,EAAE;AAAA,MACvC,EAAE,SAAS,GAAK;AAAA,IAClB;AAAA,EAGF,GACC,CAACQ,CAAkB,CAAC,GAGrBW,gB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;AAAA,QAEC9B,gBAAAA,EAAAA,IAAA+B,GAAA,EAAa,qBAAApD,GAA0C,QAAO,qBAAqB,CAAA;AAAA,QAEpFqB,gBAAAA,EAAA;AAAA,UAACgC;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAtD;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAG;AAAA,YACA,YACEiB,gBAAAA,EAAA;AAAA,cAACgB;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAEakB,KAAkCxD;"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
|
2
|
+
/**
|
3
|
+
* VERSION: 2.113.0-alpha.1
|
4
|
+
* BUILD_TIMESTAMP: 1750285707774
|
5
|
+
* BUILD_DATE: Wed Jun 18 2025 22:28:27 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: 896154e79f58fffa6d52f3ed37f2db760a63df88
|
7
|
+
*/
|
8
|
+
import { S as f } from "./es6-Frx81Nad.js";
|
9
|
+
export {
|
10
|
+
f as default
|
11
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index-Bv7ign_r.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.113.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
3
|
+
* VERSION: 2.113.0-alpha.1
|
4
|
+
* BUILD_TIMESTAMP: 1750285707774
|
5
|
+
* BUILD_DATE: Wed Jun 18 2025 22:28:27 GMT+0000 (Coordinated Universal Time)
|
6
6
|
* BUILD_COMMIT: 896154e79f58fffa6d52f3ed37f2db760a63df88
|
7
7
|
*/
|
8
|
-
import { k as m, j as e, m as u, E as x, n as f, u as I, o as j, V as E, p as M, q as h } from "./es6-
|
8
|
+
import { k as m, j as e, m as u, E as x, n as f, u as I, o as j, V as E, p as M, q as h } from "./es6-Frx81Nad.js";
|
9
9
|
import { FormattedHTMLMessage as o } from "react-intl";
|
10
10
|
const C = ({ verificationService: t }) => {
|
11
11
|
const s = t.viewModel, { fieldValidationErrors: a } = t, l = t.verificationResponse, d = m(l), i = (n, r) => {
|