@sheerid/jslib-nightly 2.112.0-alpha.3 → 2.112.0-alpha.4
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 +9 -8
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/EmailLoopPending-Dtf0p85F.js +4 -4
- package/chunk/EmailLoopPending-Dy8mLFvV.js +4 -4
- package/chunk/LicensedProfessionalOrganizationComponent-BYijEfDT.js +4 -4
- package/chunk/LicensedProfessionalOrganizationComponent-CiYU-2dW.js +4 -4
- package/chunk/Onfido-AyvUk6wg.js +4 -4
- package/chunk/StepIDCheckLoopOnfido-CmNwFqjD.js +4 -4
- package/chunk/StepIDCheckLoopOnfido-DtbplNxs.js +4 -4
- package/chunk/StepIDCheckLoopRegula-RoX971sR.js +4 -4
- package/chunk/StepIDCheckLoopRegula-oqf-QxHT.js +4 -4
- package/chunk/StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js +4 -4
- package/chunk/StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js +4 -4
- package/chunk/ar-CTZ8n_FV.js +4 -4
- package/chunk/bg-B1tbUffD.js +4 -4
- package/chunk/bn-IN-BA_ZFkiC.js +4 -4
- package/chunk/cs-_sREQ07E.js +4 -4
- package/chunk/da-DPi7xGRT.js +4 -4
- package/chunk/de-Cdu4F7oz.js +4 -4
- package/chunk/el-Csc8XB1z.js +4 -4
- package/chunk/en-GB-CDsqsXSF.js +4 -4
- package/chunk/es-BgNy3pMu.js +4 -4
- package/chunk/es-ES-HVAL-fE7.js +4 -4
- package/chunk/fi-CCyjkr-W.js +4 -4
- package/chunk/fr-CA-DwRs4Got.js +4 -4
- package/chunk/fr-alhQlPBO.js +4 -4
- package/chunk/ga-DfyMbfDn.js +4 -4
- package/chunk/hi-IN-CnIX7S9Z.js +4 -4
- package/chunk/hr-HChVQ_Sw.js +4 -4
- package/chunk/hu-CWN1WU0a.js +4 -4
- package/chunk/id-C1Ck0Iu_.js +4 -4
- package/chunk/index-4APUDd8S.js +4 -4
- package/chunk/index-9OD0Bw98.js +4 -4
- package/chunk/index-B-PpnUEO.js +4 -4
- package/chunk/index-B8F8N-JM.js +4 -4
- package/chunk/index-B8KPM--K.js +4 -4
- package/chunk/index-BD2bjH-C.js +4 -4
- package/chunk/index-BD_a0MZT.js +4 -4
- package/chunk/index-BDrKYann.js +4 -4
- package/chunk/{index-UDwOiPQx.js → index-BORxVuto.js} +293 -260
- package/chunk/{index-DVmKzrKI.js.map → index-BORxVuto.js.map} +1 -1
- package/chunk/index-BTMETMEE.js +4 -4
- package/chunk/index-Bi9QXN5x.js +4 -4
- package/chunk/index-Bmq6cJ3F.js +4 -4
- package/chunk/index-BpZoH-Wz.js +4 -4
- package/chunk/index-BuX76GyE.js +4 -4
- package/chunk/index-C2h0Wj84.js +4 -4
- package/chunk/index-C8MQD8EK.js +4 -4
- package/chunk/index-C8u9IJUa.js +4 -4
- package/chunk/index-C96ntS0u.js +4 -4
- package/chunk/index-CHK5i4jj.js +4 -4
- package/chunk/index-CTb96lOK.js +4 -4
- package/chunk/{index-DVmKzrKI.js → index-CU0rkVHP.js} +293 -260
- package/chunk/{index-UDwOiPQx.js.map → index-CU0rkVHP.js.map} +1 -1
- package/chunk/index-CcRowarb.js +4 -4
- package/chunk/index-CeHu2Npu.js +4 -4
- package/chunk/index-DIkWpujR.js +4 -4
- package/chunk/index-DKWjcFJK.js +4 -4
- package/chunk/index-DLz31Fzh.js +4 -4
- package/chunk/index-DO5Z3e-E.js +4 -4
- package/chunk/index-DRlGAW07.js +4 -4
- package/chunk/index-DVynViqA.js +4 -4
- package/chunk/index-D_9J6arc.js +4 -4
- package/chunk/index-Dg8t7-dm.js +4 -4
- package/chunk/index-DhGg9lvf.js +4 -4
- package/chunk/index-DsgCNIS5.js +4 -4
- package/chunk/index-DvQoVn8P.js +4 -4
- package/chunk/index-DzqRsB7_.js +4 -4
- package/chunk/index-FjzhfDlx.js +4 -4
- package/chunk/index-Gfy-1H7s.js +4 -4
- package/chunk/index-YSVzGeq_.js +4 -4
- package/chunk/index-_t8SsXjy.js +4 -4
- package/chunk/is-Bf2mOiIg.js +4 -4
- package/chunk/it-IMkNWYOG.js +4 -4
- package/chunk/iw-BuDnLn5x.js +4 -4
- package/chunk/ja-DdM1Ym9C.js +4 -4
- package/chunk/ko-B01TPi1c.js +4 -4
- package/chunk/lo-CDeDGaKo.js +4 -4
- package/chunk/lt-DyBa0gOR.js +4 -4
- package/chunk/ms-LqU5Yd8l.js +4 -4
- package/chunk/nl-BE-BFg3IyDd.js +4 -4
- package/chunk/nl-kMVLoHoM.js +4 -4
- package/chunk/no-BAFfWVPm.js +4 -4
- package/chunk/pl-Cxz2q367.js +4 -4
- package/chunk/pt-BR-CgWnbrVG.js +4 -4
- package/chunk/pt-ClU8GfPr.js +4 -4
- package/chunk/ro-CjVQ_Zpn.js +4 -4
- package/chunk/ru-BdRZQIfm.js +4 -4
- package/chunk/sk-C-xR48Aj.js +4 -4
- package/chunk/sl-CImZBWQa.js +4 -4
- package/chunk/sr-CZdt5Aa4.js +4 -4
- package/chunk/sv-BclJkJLk.js +4 -4
- package/chunk/sw-BMcrEvkG.js +4 -4
- package/chunk/th-Dl_Lc--C.js +4 -4
- package/chunk/tr-CL17frp4.js +4 -4
- package/chunk/uk-zgBsQ3Tg.js +4 -4
- package/chunk/ur-DJP0igA6.js +4 -4
- package/chunk/useCollectFieldsEndpoint-C5fsaYJe.js +4 -4
- package/chunk/useCollectFieldsEndpoint-kmLFyUA-.js +4 -4
- package/chunk/useEmailFirstExperiment-BbDrKQEs.js +4 -4
- package/chunk/useEmailFirstExperiment-CgU-itQI.js +4 -4
- package/chunk/vi-B1t3wnVe.js +4 -4
- package/chunk/zh-B1K_f766.js +4 -4
- package/chunk/zh-HK-B7LwDNgi.js +4 -4
- package/chunk/zu-DXIuiqYP.js +4 -4
- package/es6.css +4 -4
- package/jslib.js +5 -5
- package/lib/{EmailLoopPending-BeJUiPMH.js → EmailLoopPending-DrisvsNk.js} +5 -5
- package/lib/{EmailLoopPending-BeJUiPMH.js.map → EmailLoopPending-DrisvsNk.js.map} +1 -1
- package/lib/{LicensedProfessionalOrganizationComponent-S-xIPKxp.js → LicensedProfessionalOrganizationComponent-CFEiKHMr.js} +5 -5
- package/lib/{LicensedProfessionalOrganizationComponent-S-xIPKxp.js.map → LicensedProfessionalOrganizationComponent-CFEiKHMr.js.map} +1 -1
- package/lib/Onfido-AyvUk6wg.js +4 -4
- package/lib/StepCollectMilitaryStatusComponent-Dm84F8Ui.js +11 -0
- package/lib/{StepCollectMilitaryStatusComponent-DSd-4dlg.js.map → StepCollectMilitaryStatusComponent-Dm84F8Ui.js.map} +1 -1
- package/lib/{StepIDCheckLoopOnfido-tEmV3au4.js → StepIDCheckLoopOnfido-BeLzOKOj.js} +5 -5
- package/lib/{StepIDCheckLoopOnfido-tEmV3au4.js.map → StepIDCheckLoopOnfido-BeLzOKOj.js.map} +1 -1
- package/lib/{StepIDCheckLoopRegula-rYljXjJy.js → StepIDCheckLoopRegula-CIrXQIVn.js} +5 -5
- package/lib/{StepIDCheckLoopRegula-rYljXjJy.js.map → StepIDCheckLoopRegula-CIrXQIVn.js.map} +1 -1
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-Da9LuC7c.js → StepInactiveMilitaryPersonalInfoComponent-DzWkTTsC.js} +6 -6
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-Da9LuC7c.js.map → StepInactiveMilitaryPersonalInfoComponent-DzWkTTsC.js.map} +1 -1
- package/lib/{VerificationApiUtils-hDGZYHka.js → VerificationApiUtils-0LG5zgCj.js} +5 -5
- package/lib/{VerificationApiUtils-hDGZYHka.js.map → VerificationApiUtils-0LG5zgCj.js.map} +1 -1
- package/lib/ar-CTZ8n_FV.js +4 -4
- package/lib/bg-B1tbUffD.js +4 -4
- package/lib/bn-IN-BA_ZFkiC.js +4 -4
- package/lib/cs-_sREQ07E.js +4 -4
- package/lib/da-DPi7xGRT.js +4 -4
- package/lib/de-Cdu4F7oz.js +4 -4
- package/lib/el-Csc8XB1z.js +4 -4
- package/lib/en-GB-CDsqsXSF.js +4 -4
- package/lib/es-BgNy3pMu.js +4 -4
- package/lib/es-ES-HVAL-fE7.js +4 -4
- package/lib/{es6-KhXNMYV_.js → es6-BGT6VLRG.js} +35 -34
- package/lib/{es6-KhXNMYV_.js.map → es6-BGT6VLRG.js.map} +1 -1
- package/lib/fi-CCyjkr-W.js +4 -4
- package/lib/fr-CA-DwRs4Got.js +4 -4
- package/lib/fr-alhQlPBO.js +4 -4
- package/lib/ga-DfyMbfDn.js +4 -4
- package/lib/hi-IN-CnIX7S9Z.js +4 -4
- package/lib/hr-HChVQ_Sw.js +4 -4
- package/lib/hu-CWN1WU0a.js +4 -4
- package/lib/id-C1Ck0Iu_.js +4 -4
- package/lib/{index-CBBA8sP2.js → index-9RUq5Tvc.js} +7 -7
- package/lib/{index-CBBA8sP2.js.map → index-9RUq5Tvc.js.map} +1 -1
- package/lib/{index-lDEw1J0m.js → index-BANwQk4U.js} +6 -6
- package/lib/{index-lDEw1J0m.js.map → index-BANwQk4U.js.map} +1 -1
- package/lib/{index-CTtuP6jY.js → index-BXMOCIdp.js} +7 -7
- package/lib/{index-CTtuP6jY.js.map → index-BXMOCIdp.js.map} +1 -1
- package/lib/{index-CD3R6OZt.js → index-Bs78W4Se.js} +6 -6
- package/lib/{index-CD3R6OZt.js.map → index-Bs78W4Se.js.map} +1 -1
- package/lib/index-BtVZojxO.js +11 -0
- package/lib/index-BtVZojxO.js.map +1 -0
- package/lib/{index-Dfgag9mZ.js → index-BzjahvnA.js} +5 -5
- package/lib/{index-Dfgag9mZ.js.map → index-BzjahvnA.js.map} +1 -1
- package/lib/{index-D7ipykP_.js → index-CD9Szi3E.js} +6 -6
- package/lib/{index-D7ipykP_.js.map → index-CD9Szi3E.js.map} +1 -1
- package/lib/index-CH2g0Pj-.js +11 -0
- package/lib/index-CH2g0Pj-.js.map +1 -0
- package/lib/{index-Bv4DelIv.js → index-CXwdeDor.js} +5 -5
- package/lib/{index-Bv4DelIv.js.map → index-CXwdeDor.js.map} +1 -1
- package/lib/index-C_CvQ7wV.js +11 -0
- package/lib/index-C_CvQ7wV.js.map +1 -0
- package/lib/{index-DLJsTHPd.js → index-CbyZWnr5.js} +6 -6
- package/lib/{index-DLJsTHPd.js.map → index-CbyZWnr5.js.map} +1 -1
- package/lib/{index-CnOalzf1.js → index-D5MR-f4E.js} +6 -6
- package/lib/{index-CnOalzf1.js.map → index-D5MR-f4E.js.map} +1 -1
- package/lib/index-DIkWpujR.js +4 -4
- package/lib/{index-Drq5-wd7.js → index-DKruKnPT.js} +563 -530
- package/lib/{index-Drq5-wd7.js.map → index-DKruKnPT.js.map} +1 -1
- package/lib/{index-BR9ZztS0.js → index-DbVU1s8G.js} +6 -6
- package/lib/{index-BR9ZztS0.js.map → index-DbVU1s8G.js.map} +1 -1
- package/lib/{index-BQyKaQQW.js → index-Dcasc8R1.js} +5 -5
- package/lib/{index-BQyKaQQW.js.map → index-Dcasc8R1.js.map} +1 -1
- package/lib/{index-DWK9HNsu.js → index-DgN2jNLf.js} +5 -5
- package/lib/{index-DWK9HNsu.js.map → index-DgN2jNLf.js.map} +1 -1
- package/lib/{index-C48TEqxJ.js → index-DlXSe7zO.js} +5 -5
- package/lib/{index-C48TEqxJ.js.map → index-DlXSe7zO.js.map} +1 -1
- package/lib/{index-K_9NzcEJ.js → index-DqfO09tu.js} +5 -5
- package/lib/{index-K_9NzcEJ.js.map → index-DqfO09tu.js.map} +1 -1
- package/lib/{index-BU5z1K62.js → index-DvHnBvUt.js} +5 -5
- package/lib/{index-BU5z1K62.js.map → index-DvHnBvUt.js.map} +1 -1
- package/lib/{index-CcN7_Mqp.js → index-OIwocGgH.js} +5 -5
- package/lib/{index-CcN7_Mqp.js.map → index-OIwocGgH.js.map} +1 -1
- package/lib/{index-DXNAoJPm.js → index-RTyDygJA.js} +6 -6
- package/lib/{index-DXNAoJPm.js.map → index-RTyDygJA.js.map} +1 -1
- package/lib/{index-D_u1txPV.js → index-jZ_zLZvH.js} +5 -5
- package/lib/{index-D_u1txPV.js.map → index-jZ_zLZvH.js.map} +1 -1
- package/lib/index-uz9w2o_u.js +11 -0
- package/lib/index-uz9w2o_u.js.map +1 -0
- package/lib/is-Bf2mOiIg.js +4 -4
- package/lib/it-IMkNWYOG.js +4 -4
- package/lib/iw-BuDnLn5x.js +4 -4
- package/lib/ja-DdM1Ym9C.js +4 -4
- package/lib/ko-B01TPi1c.js +4 -4
- package/lib/lo-CDeDGaKo.js +4 -4
- package/lib/lt-DyBa0gOR.js +4 -4
- package/lib/ms-LqU5Yd8l.js +4 -4
- package/lib/nl-BE-BFg3IyDd.js +4 -4
- package/lib/nl-kMVLoHoM.js +4 -4
- package/lib/no-BAFfWVPm.js +4 -4
- package/lib/pl-Cxz2q367.js +4 -4
- package/lib/pt-BR-CgWnbrVG.js +4 -4
- package/lib/pt-ClU8GfPr.js +4 -4
- package/lib/ro-CjVQ_Zpn.js +4 -4
- package/lib/ru-BdRZQIfm.js +4 -4
- package/lib/sk-C-xR48Aj.js +4 -4
- package/lib/sl-CImZBWQa.js +4 -4
- package/lib/sr-CZdt5Aa4.js +4 -4
- package/lib/sv-BclJkJLk.js +4 -4
- package/lib/sw-BMcrEvkG.js +4 -4
- package/lib/th-Dl_Lc--C.js +4 -4
- package/lib/tr-CL17frp4.js +4 -4
- package/lib/uk-zgBsQ3Tg.js +4 -4
- package/lib/ur-DJP0igA6.js +4 -4
- package/lib/{useCollectFieldsEndpoint-HydTA0X4.js → useCollectFieldsEndpoint-B61_DguV.js} +6 -6
- package/lib/{useCollectFieldsEndpoint-HydTA0X4.js.map → useCollectFieldsEndpoint-B61_DguV.js.map} +1 -1
- package/lib/{useEmailFirstExperiment-Ctpd0_YT.js → useEmailFirstExperiment-CQta_14_.js} +5 -5
- package/lib/{useEmailFirstExperiment-Ctpd0_YT.js.map → useEmailFirstExperiment-CQta_14_.js.map} +1 -1
- package/lib/vi-B1t3wnVe.js +4 -4
- package/lib/zh-B1K_f766.js +4 -4
- package/lib/zh-HK-B7LwDNgi.js +4 -4
- package/lib/zu-DXIuiqYP.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +5 -5
- package/sheerid.css +4 -4
- package/sheerid.js +9 -8
- package/sheerid.js.map +1 -1
- package/src/components/FeatureFlags/flags.d.ts +1 -0
- package/src/components/FormFields/MarketConsentWrapper/MarketConsentWrapperComponent.d.ts +1 -1
- package/src/components/FormFields/MarketConsentWrapper/MarketConsentWrapperComponent.test.d.ts +1 -0
- package/types-reference.zip +0 -0
- package/lib/StepCollectMilitaryStatusComponent-DSd-4dlg.js +0 -11
- package/lib/index-B6J5Y6k7.js +0 -11
- package/lib/index-B6J5Y6k7.js.map +0 -1
- package/lib/index-CYDQx-7z.js +0 -11
- package/lib/index-CYDQx-7z.js.map +0 -1
- package/lib/index-F9_JZqNB.js +0 -11
- package/lib/index-F9_JZqNB.js.map +0 -1
- package/lib/index-iWnLDGcn.js +0 -11
- package/lib/index-iWnLDGcn.js.map +0 -1
@@ -1,20 +1,20 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.112.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
6
|
-
* BUILD_COMMIT:
|
3
|
+
* VERSION: 2.112.0-alpha.4
|
4
|
+
* BUILD_TIMESTAMP: 1749596571746
|
5
|
+
* BUILD_DATE: Tue Jun 10 2025 23:02:51 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: f4ba2ded1f8d08fc71867122ea5facb3f85d0d30
|
7
7
|
*/
|
8
|
-
import { m as
|
9
|
-
const Lt = (e, a, o) =>
|
10
|
-
Object.keys(e).filter((s) => !!e[s] && s.includes("file")).map((s) => e[s]).concat(a, Array(
|
8
|
+
import { m as Ee, aU as Be, aV as K, aW as q, aX as gt, s as f, R as xt, aY as g, j as t, aZ as n, aL as u, b as h, i as bt, ai as be, as as yt, aH as It, a_ as Et, d as vt, a$ as ze, L as Ut, A as jt, b0 as Dt, af as _t, J as At, b1 as wt, b2 as Rt, b3 as Ft, k as Nt, l as Oe, V as ye, ah as Ct, b4 as Tt, b5 as Ot, b6 as St } from "../sheerid.js";
|
9
|
+
const Lt = (e, a, o) => Ee(e, (r) => {
|
10
|
+
Object.keys(e).filter((s) => !!e[s] && s.includes("file")).map((s) => e[s]).concat(a, Array(Be).fill(void 0)).splice(0, 3).forEach((s, d) => r[`file${d + 1}`] = s), o ? r.erroredFileNames = o : r.erroredFileNames = void 0;
|
11
11
|
}), Mt = (e, a) => {
|
12
12
|
if (![1, 2, 3].includes(a))
|
13
13
|
throw new Error(
|
14
14
|
`Expected either 1, 2 or 3 for argument "fileNumber", but received ${a}`
|
15
15
|
);
|
16
|
-
return
|
17
|
-
Object.keys(e).filter((r) => r.includes("file") && !r.includes(a.toString())).map((r) => e[r]).concat(Array(
|
16
|
+
return Ee(e, (o) => {
|
17
|
+
Object.keys(e).filter((r) => r.includes("file") && !r.includes(a.toString())).map((r) => e[r]).concat(Array(Be).fill(void 0)).splice(0, 3).forEach((r, s) => o[`file${s + 1}`] = r);
|
18
18
|
});
|
19
19
|
};
|
20
20
|
var kt = /* @__PURE__ */ new Map([
|
@@ -132,32 +132,32 @@ var Bt = [
|
|
132
132
|
// Windows
|
133
133
|
];
|
134
134
|
function Yt(e) {
|
135
|
-
return
|
136
|
-
return
|
137
|
-
return
|
135
|
+
return K(this, void 0, void 0, function() {
|
136
|
+
return q(this, function(a) {
|
137
|
+
return ve(e) && Ht(e) ? [2, Gt(e.dataTransfer, e.type)] : zt(e) ? [2, Vt(e)] : Array.isArray(e) && e.every(function(o) {
|
138
138
|
return "getFile" in o && typeof o.getFile == "function";
|
139
139
|
}) ? [2, Wt(e)] : [2, []];
|
140
140
|
});
|
141
141
|
});
|
142
142
|
}
|
143
143
|
function Ht(e) {
|
144
|
-
return
|
144
|
+
return ve(e.dataTransfer);
|
145
145
|
}
|
146
146
|
function zt(e) {
|
147
|
-
return
|
147
|
+
return ve(e) && ve(e.target);
|
148
148
|
}
|
149
|
-
function
|
149
|
+
function ve(e) {
|
150
150
|
return typeof e == "object" && e !== null;
|
151
151
|
}
|
152
152
|
function Vt(e) {
|
153
|
-
return
|
153
|
+
return Le(e.target.files).map(function(a) {
|
154
154
|
return ne(a);
|
155
155
|
});
|
156
156
|
}
|
157
157
|
function Wt(e) {
|
158
|
-
return
|
158
|
+
return K(this, void 0, void 0, function() {
|
159
159
|
var a;
|
160
|
-
return
|
160
|
+
return q(this, function(o) {
|
161
161
|
switch (o.label) {
|
162
162
|
case 0:
|
163
163
|
return [4, Promise.all(e.map(function(r) {
|
@@ -172,18 +172,18 @@ function Wt(e) {
|
|
172
172
|
});
|
173
173
|
}
|
174
174
|
function Gt(e, a) {
|
175
|
-
return
|
175
|
+
return K(this, void 0, void 0, function() {
|
176
176
|
var o, r;
|
177
|
-
return
|
177
|
+
return q(this, function(s) {
|
178
178
|
switch (s.label) {
|
179
179
|
case 0:
|
180
|
-
return e === null ? [2, []] : e.items ? (o =
|
180
|
+
return e === null ? [2, []] : e.items ? (o = Le(e.items).filter(function(d) {
|
181
181
|
return d.kind === "file";
|
182
182
|
}), a !== "drop" ? [2, o] : [4, Promise.all(o.map($t))]) : [3, 2];
|
183
183
|
case 1:
|
184
184
|
return r = s.sent(), [2, Ve(rt(r))];
|
185
185
|
case 2:
|
186
|
-
return [2, Ve(
|
186
|
+
return [2, Ve(Le(e.files).map(function(d) {
|
187
187
|
return ne(d);
|
188
188
|
}))];
|
189
189
|
}
|
@@ -195,7 +195,7 @@ function Ve(e) {
|
|
195
195
|
return Bt.indexOf(a.name) === -1;
|
196
196
|
});
|
197
197
|
}
|
198
|
-
function
|
198
|
+
function Le(e) {
|
199
199
|
if (e === null)
|
200
200
|
return [];
|
201
201
|
for (var a = [], o = 0; o < e.length; o++) {
|
@@ -223,8 +223,8 @@ function We(e) {
|
|
223
223
|
return Promise.resolve(o);
|
224
224
|
}
|
225
225
|
function Kt(e) {
|
226
|
-
return
|
227
|
-
return
|
226
|
+
return K(this, void 0, void 0, function() {
|
227
|
+
return q(this, function(a) {
|
228
228
|
return [2, e.isDirectory ? nt(e) : qt(e)];
|
229
229
|
});
|
230
230
|
});
|
@@ -236,23 +236,23 @@ function nt(e) {
|
|
236
236
|
function d() {
|
237
237
|
var m = this;
|
238
238
|
a.readEntries(function(c) {
|
239
|
-
return
|
240
|
-
var v, x,
|
241
|
-
return
|
242
|
-
switch (
|
239
|
+
return K(m, void 0, void 0, function() {
|
240
|
+
var v, x, w;
|
241
|
+
return q(this, function(D) {
|
242
|
+
switch (D.label) {
|
243
243
|
case 0:
|
244
244
|
if (c.length) return [3, 5];
|
245
|
-
|
245
|
+
D.label = 1;
|
246
246
|
case 1:
|
247
|
-
return
|
247
|
+
return D.trys.push([1, 3, , 4]), [4, Promise.all(s)];
|
248
248
|
case 2:
|
249
|
-
return v =
|
249
|
+
return v = D.sent(), o(v), [3, 4];
|
250
250
|
case 3:
|
251
|
-
return x =
|
251
|
+
return x = D.sent(), r(x), [3, 4];
|
252
252
|
case 4:
|
253
253
|
return [3, 6];
|
254
254
|
case 5:
|
255
|
-
|
255
|
+
w = Promise.all(c.map(Kt)), s.push(w), d(), D.label = 6;
|
256
256
|
case 6:
|
257
257
|
return [
|
258
258
|
2
|
@@ -269,8 +269,8 @@ function nt(e) {
|
|
269
269
|
});
|
270
270
|
}
|
271
271
|
function qt(e) {
|
272
|
-
return
|
273
|
-
return
|
272
|
+
return K(this, void 0, void 0, function() {
|
273
|
+
return q(this, function(a) {
|
274
274
|
return [2, new Promise(function(o, r) {
|
275
275
|
e.file(function(s) {
|
276
276
|
var d = ne(s, e.fullPath);
|
@@ -388,30 +388,30 @@ function it(e, a) {
|
|
388
388
|
return [o, o ? null : na(a)];
|
389
389
|
}
|
390
390
|
function lt(e, a, o) {
|
391
|
-
if (
|
392
|
-
if (
|
391
|
+
if (oe(e.size))
|
392
|
+
if (oe(a) && oe(o)) {
|
393
393
|
if (e.size > o) return [!1, Ze(o)];
|
394
394
|
if (e.size < a) return [!1, Qe(a)];
|
395
395
|
} else {
|
396
|
-
if (
|
397
|
-
if (
|
396
|
+
if (oe(a) && e.size < a) return [!1, Qe(a)];
|
397
|
+
if (oe(o) && e.size > o) return [!1, Ze(o)];
|
398
398
|
}
|
399
399
|
return [!0, null];
|
400
400
|
}
|
401
|
-
function
|
401
|
+
function oe(e) {
|
402
402
|
return e != null;
|
403
403
|
}
|
404
404
|
function ia(e) {
|
405
405
|
var a = e.files, o = e.accept, r = e.minSize, s = e.maxSize, d = e.multiple, m = e.maxFiles;
|
406
406
|
return !d && a.length > 1 || d && m >= 1 && a.length > m ? !1 : a.every(function(c) {
|
407
|
-
var v = it(c, o), x = Ke(v, 1),
|
408
|
-
return
|
407
|
+
var v = it(c, o), x = Ke(v, 1), w = x[0], D = lt(c, r, s), C = Ke(D, 1), L = C[0];
|
408
|
+
return w && L;
|
409
409
|
});
|
410
410
|
}
|
411
|
-
function
|
411
|
+
function Ue(e) {
|
412
412
|
return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
|
413
413
|
}
|
414
|
-
function
|
414
|
+
function Ie(e) {
|
415
415
|
return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(a) {
|
416
416
|
return a === "Files" || a === "application/x-moz-file";
|
417
417
|
}) : !!e.target && !!e.target.files;
|
@@ -429,14 +429,14 @@ function ca() {
|
|
429
429
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
430
430
|
return la(e) || da(e);
|
431
431
|
}
|
432
|
-
function
|
432
|
+
function O() {
|
433
433
|
for (var e = arguments.length, a = new Array(e), o = 0; o < e; o++)
|
434
434
|
a[o] = arguments[o];
|
435
435
|
return function(r) {
|
436
436
|
for (var s = arguments.length, d = new Array(s > 1 ? s - 1 : 0), m = 1; m < s; m++)
|
437
437
|
d[m - 1] = arguments[m];
|
438
438
|
return a.some(function(c) {
|
439
|
-
return !
|
439
|
+
return !Ue(r) && c && c.apply(void 0, [r].concat(d)), Ue(r);
|
440
440
|
});
|
441
441
|
};
|
442
442
|
}
|
@@ -466,9 +466,9 @@ function ba(e) {
|
|
466
466
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
467
467
|
}
|
468
468
|
function ya(e) {
|
469
|
-
if (Array.isArray(e)) return
|
469
|
+
if (Array.isArray(e)) return Me(e);
|
470
470
|
}
|
471
|
-
function
|
471
|
+
function Se(e, a) {
|
472
472
|
return va(e) || Ea(e, a) || dt(e, a) || Ia();
|
473
473
|
}
|
474
474
|
function Ia() {
|
@@ -477,13 +477,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
477
477
|
}
|
478
478
|
function dt(e, a) {
|
479
479
|
if (e) {
|
480
|
-
if (typeof e == "string") return
|
480
|
+
if (typeof e == "string") return Me(e, a);
|
481
481
|
var o = Object.prototype.toString.call(e).slice(8, -1);
|
482
482
|
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set") return Array.from(e);
|
483
|
-
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return
|
483
|
+
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return Me(e, a);
|
484
484
|
}
|
485
485
|
}
|
486
|
-
function
|
486
|
+
function Me(e, a) {
|
487
487
|
(a == null || a > e.length) && (a = e.length);
|
488
488
|
for (var o = 0, r = new Array(a); o < a; o++)
|
489
489
|
r[o] = e[o];
|
@@ -525,17 +525,17 @@ function b(e) {
|
|
525
525
|
for (var a = 1; a < arguments.length; a++) {
|
526
526
|
var o = arguments[a] != null ? arguments[a] : {};
|
527
527
|
a % 2 ? et(Object(o), !0).forEach(function(r) {
|
528
|
-
|
528
|
+
ke(e, r, o[r]);
|
529
529
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : et(Object(o)).forEach(function(r) {
|
530
530
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(o, r));
|
531
531
|
});
|
532
532
|
}
|
533
533
|
return e;
|
534
534
|
}
|
535
|
-
function
|
535
|
+
function ke(e, a, o) {
|
536
536
|
return a in e ? Object.defineProperty(e, a, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[a] = o, e;
|
537
537
|
}
|
538
|
-
function
|
538
|
+
function je(e, a) {
|
539
539
|
if (e == null) return {};
|
540
540
|
var o = Ua(e, a), r, s;
|
541
541
|
if (Object.getOwnPropertySymbols) {
|
@@ -553,7 +553,7 @@ function Ua(e, a) {
|
|
553
553
|
return o;
|
554
554
|
}
|
555
555
|
var se = /* @__PURE__ */ f.forwardRef(function(e, a) {
|
556
|
-
var o = e.children, r =
|
556
|
+
var o = e.children, r = je(e, ua), s = ja(r), d = s.open, m = je(s, fa);
|
557
557
|
return f.useImperativeHandle(a, function() {
|
558
558
|
return {
|
559
559
|
open: d
|
@@ -739,7 +739,7 @@ se.propTypes = {
|
|
739
739
|
*/
|
740
740
|
validator: g.func
|
741
741
|
};
|
742
|
-
var
|
742
|
+
var Pe = {
|
743
743
|
isFocused: !1,
|
744
744
|
isFileDialogActive: !1,
|
745
745
|
isDragActive: !1,
|
@@ -750,97 +750,97 @@ var ke = {
|
|
750
750
|
fileRejections: []
|
751
751
|
};
|
752
752
|
function ja() {
|
753
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = b(b({}, ct), e), o = a.accept, r = a.disabled, s = a.getFilesFromEvent, d = a.maxSize, m = a.minSize, c = a.multiple, v = a.maxFiles, x = a.onDragEnter,
|
754
|
-
return typeof z == "function" ? z : tt;
|
755
|
-
}, [z]), H = f.useMemo(function() {
|
753
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = b(b({}, ct), e), o = a.accept, r = a.disabled, s = a.getFilesFromEvent, d = a.maxSize, m = a.minSize, c = a.multiple, v = a.maxFiles, x = a.onDragEnter, w = a.onDragLeave, D = a.onDragOver, C = a.onDrop, L = a.onDropAccepted, S = a.onDropRejected, H = a.onFileDialogCancel, B = a.onFileDialogOpen, Y = a.useFsAccessApi, Z = a.preventDropOnDocument, ie = a.noClick, I = a.noKeyboard, le = a.noDrag, U = a.noDragEventsBubbling, de = a.validator, T = f.useMemo(function() {
|
756
754
|
return typeof B == "function" ? B : tt;
|
757
|
-
}, [B]),
|
758
|
-
|
759
|
-
|
760
|
-
|
755
|
+
}, [B]), M = f.useMemo(function() {
|
756
|
+
return typeof H == "function" ? H : tt;
|
757
|
+
}, [H]), j = f.useRef(null), R = f.useRef(null), ce = f.useReducer(Da, Pe), De = Se(ce, 2), z = De[0], _ = De[1], _e = z.isFocused, Q = z.isFileDialogActive, X = z.draggedFiles, pe = function() {
|
758
|
+
Q && setTimeout(function() {
|
759
|
+
if (R.current) {
|
760
|
+
var p = R.current.files;
|
761
761
|
p.length || (_({
|
762
762
|
type: "closeDialog"
|
763
|
-
}),
|
763
|
+
}), M());
|
764
764
|
}
|
765
765
|
}, 300);
|
766
766
|
};
|
767
767
|
f.useEffect(function() {
|
768
|
-
return
|
769
|
-
} : (window.addEventListener("focus",
|
770
|
-
window.removeEventListener("focus",
|
768
|
+
return Y && Je() ? function() {
|
769
|
+
} : (window.addEventListener("focus", pe, !1), function() {
|
770
|
+
window.removeEventListener("focus", pe, !1);
|
771
771
|
});
|
772
|
-
}, [
|
773
|
-
var
|
774
|
-
j.current && j.current.contains(p.target) || (p.preventDefault(),
|
772
|
+
}, [R, Q, M, Y]);
|
773
|
+
var k = f.useRef([]), V = function(p) {
|
774
|
+
j.current && j.current.contains(p.target) || (p.preventDefault(), k.current = []);
|
775
775
|
};
|
776
776
|
f.useEffect(function() {
|
777
|
-
return
|
778
|
-
|
777
|
+
return Z && (document.addEventListener("dragover", Xe, !1), document.addEventListener("drop", V, !1)), function() {
|
778
|
+
Z && (document.removeEventListener("dragover", Xe), document.removeEventListener("drop", V));
|
779
779
|
};
|
780
|
-
}, [j,
|
780
|
+
}, [j, Z]);
|
781
781
|
var ue = f.useCallback(function(l) {
|
782
|
-
l.preventDefault(), l.persist(),
|
783
|
-
|
782
|
+
l.preventDefault(), l.persist(), ge(l), k.current = [].concat(ga(k.current), [l.target]), Ie(l) && Promise.resolve(s(l)).then(function(p) {
|
783
|
+
Ue(l) && !U || (_({
|
784
784
|
draggedFiles: p,
|
785
785
|
isDragActive: !0,
|
786
786
|
type: "setDraggedFiles"
|
787
787
|
}), x && x(l));
|
788
788
|
});
|
789
|
-
}, [s, x,
|
790
|
-
l.preventDefault(), l.persist(),
|
791
|
-
var p =
|
789
|
+
}, [s, x, U]), fe = f.useCallback(function(l) {
|
790
|
+
l.preventDefault(), l.persist(), ge(l);
|
791
|
+
var p = Ie(l);
|
792
792
|
if (p && l.dataTransfer)
|
793
793
|
try {
|
794
794
|
l.dataTransfer.dropEffect = "copy";
|
795
795
|
} catch {
|
796
796
|
}
|
797
|
-
return p &&
|
798
|
-
}, [
|
799
|
-
l.preventDefault(), l.persist(),
|
800
|
-
var p =
|
797
|
+
return p && D && D(l), !1;
|
798
|
+
}, [D, U]), me = f.useCallback(function(l) {
|
799
|
+
l.preventDefault(), l.persist(), ge(l);
|
800
|
+
var p = k.current.filter(function(A) {
|
801
801
|
return j.current && j.current.contains(A);
|
802
802
|
}), E = p.indexOf(l.target);
|
803
|
-
E !== -1 && p.splice(E, 1),
|
803
|
+
E !== -1 && p.splice(E, 1), k.current = p, !(p.length > 0) && (_({
|
804
804
|
isDragActive: !1,
|
805
805
|
type: "setDraggedFiles",
|
806
806
|
draggedFiles: []
|
807
|
-
}),
|
808
|
-
}, [j,
|
807
|
+
}), Ie(l) && w && w(l));
|
808
|
+
}, [j, w, U]), P = f.useCallback(function(l, p) {
|
809
809
|
var E = [], A = [];
|
810
|
-
l.forEach(function(
|
811
|
-
var
|
812
|
-
if (
|
813
|
-
E.push(
|
810
|
+
l.forEach(function(N) {
|
811
|
+
var ae = it(N, o), $ = Se(ae, 2), Ae = $[0], we = $[1], Re = lt(N, m, d), xe = Se(Re, 2), Fe = xe[0], Ne = xe[1], Ce = de ? de(N) : null;
|
812
|
+
if (Ae && Fe && !Ce)
|
813
|
+
E.push(N);
|
814
814
|
else {
|
815
|
-
var
|
816
|
-
|
817
|
-
file:
|
818
|
-
errors:
|
815
|
+
var Te = [we, Ne];
|
816
|
+
Ce && (Te = Te.concat(Ce)), A.push({
|
817
|
+
file: N,
|
818
|
+
errors: Te.filter(function(ht) {
|
819
819
|
return ht;
|
820
820
|
})
|
821
821
|
});
|
822
822
|
}
|
823
|
-
}), (!c && E.length > 1 || c && v >= 1 && E.length > v) && (E.forEach(function(
|
823
|
+
}), (!c && E.length > 1 || c && v >= 1 && E.length > v) && (E.forEach(function(N) {
|
824
824
|
A.push({
|
825
|
-
file:
|
825
|
+
file: N,
|
826
826
|
errors: [sa]
|
827
827
|
});
|
828
828
|
}), E.splice(0)), _({
|
829
829
|
acceptedFiles: E,
|
830
830
|
fileRejections: A,
|
831
831
|
type: "setFiles"
|
832
|
-
}),
|
833
|
-
}, [_, c, o, m, d, v,
|
834
|
-
l.preventDefault(), l.persist(),
|
835
|
-
|
832
|
+
}), C && C(E, A, p), A.length > 0 && S && S(A, p), E.length > 0 && L && L(E, p);
|
833
|
+
}, [_, c, o, m, d, v, C, L, S, de]), i = f.useCallback(function(l) {
|
834
|
+
l.preventDefault(), l.persist(), ge(l), k.current = [], Ie(l) && Promise.resolve(s(l)).then(function(p) {
|
835
|
+
Ue(l) && !U || P(p, l);
|
836
836
|
}), _({
|
837
837
|
type: "reset"
|
838
838
|
});
|
839
|
-
}, [s,
|
840
|
-
if (
|
839
|
+
}, [s, P, U]), y = f.useCallback(function() {
|
840
|
+
if (Y && Je()) {
|
841
841
|
_({
|
842
842
|
type: "openDialog"
|
843
|
-
}),
|
843
|
+
}), T();
|
844
844
|
var l = {
|
845
845
|
multiple: c,
|
846
846
|
types: pa(o)
|
@@ -848,9 +848,9 @@ function ja() {
|
|
848
848
|
window.showOpenFilePicker(l).then(function(p) {
|
849
849
|
return s(p);
|
850
850
|
}).then(function(p) {
|
851
|
-
return
|
851
|
+
return P(p, null);
|
852
852
|
}).catch(function(p) {
|
853
|
-
return
|
853
|
+
return M(p);
|
854
854
|
}).finally(function() {
|
855
855
|
return _({
|
856
856
|
type: "closeDialog"
|
@@ -858,81 +858,81 @@ function ja() {
|
|
858
858
|
});
|
859
859
|
return;
|
860
860
|
}
|
861
|
-
|
861
|
+
R.current && (_({
|
862
862
|
type: "openDialog"
|
863
|
-
}),
|
864
|
-
}, [_,
|
865
|
-
!j.current || !j.current.isEqualNode(l.target) || (l.keyCode === 32 || l.keyCode === 13) && (l.preventDefault(),
|
866
|
-
}, [j,
|
863
|
+
}), T(), R.current.value = null, R.current.click());
|
864
|
+
}, [_, T, M, Y, P, o, c]), J = f.useCallback(function(l) {
|
865
|
+
!j.current || !j.current.isEqualNode(l.target) || (l.keyCode === 32 || l.keyCode === 13) && (l.preventDefault(), y());
|
866
|
+
}, [j, R, y]), W = f.useCallback(function() {
|
867
867
|
_({
|
868
868
|
type: "focus"
|
869
869
|
});
|
870
|
-
}, []),
|
870
|
+
}, []), ee = f.useCallback(function() {
|
871
871
|
_({
|
872
872
|
type: "blur"
|
873
873
|
});
|
874
|
-
}, []),
|
875
|
-
|
876
|
-
}, [
|
874
|
+
}, []), te = f.useCallback(function() {
|
875
|
+
ie || (ca() ? setTimeout(y, 0) : y());
|
876
|
+
}, [R, ie, y]), F = function(p) {
|
877
877
|
return r ? null : p;
|
878
|
-
},
|
879
|
-
return
|
880
|
-
}, me = function(p) {
|
881
|
-
return C ? null : k(p);
|
878
|
+
}, G = function(p) {
|
879
|
+
return I ? null : F(p);
|
882
880
|
}, he = function(p) {
|
883
|
-
|
881
|
+
return le ? null : F(p);
|
882
|
+
}, ge = function(p) {
|
883
|
+
U && p.stopPropagation();
|
884
884
|
}, pt = f.useMemo(function() {
|
885
885
|
return function() {
|
886
|
-
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = l.refKey, E = p === void 0 ? "ref" : p, A = l.role,
|
887
|
-
return b(b(
|
888
|
-
onKeyDown:
|
889
|
-
onFocus:
|
890
|
-
onBlur:
|
891
|
-
onClick:
|
892
|
-
onDragEnter:
|
893
|
-
onDragOver:
|
894
|
-
onDragLeave:
|
895
|
-
onDrop:
|
886
|
+
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = l.refKey, E = p === void 0 ? "ref" : p, A = l.role, N = l.onKeyDown, ae = l.onFocus, $ = l.onBlur, Ae = l.onClick, we = l.onDragEnter, Re = l.onDragOver, xe = l.onDragLeave, Fe = l.onDrop, Ne = je(l, ma);
|
887
|
+
return b(b(ke({
|
888
|
+
onKeyDown: G(O(N, J)),
|
889
|
+
onFocus: G(O(ae, W)),
|
890
|
+
onBlur: G(O($, ee)),
|
891
|
+
onClick: F(O(Ae, te)),
|
892
|
+
onDragEnter: he(O(we, ue)),
|
893
|
+
onDragOver: he(O(Re, fe)),
|
894
|
+
onDragLeave: he(O(xe, me)),
|
895
|
+
onDrop: he(O(Fe, i)),
|
896
896
|
role: typeof A == "string" && A !== "" ? A : "button"
|
897
|
-
}, E, j), !r && !
|
897
|
+
}, E, j), !r && !I ? {
|
898
898
|
tabIndex: 0
|
899
|
-
} : {}),
|
899
|
+
} : {}), Ne);
|
900
900
|
};
|
901
|
-
}, [j,
|
901
|
+
}, [j, J, W, ee, te, ue, fe, me, i, I, le, r]), ut = f.useCallback(function(l) {
|
902
902
|
l.stopPropagation();
|
903
903
|
}, []), ft = f.useMemo(function() {
|
904
904
|
return function() {
|
905
|
-
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = l.refKey, E = p === void 0 ? "ref" : p, A = l.onChange,
|
905
|
+
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = l.refKey, E = p === void 0 ? "ref" : p, A = l.onChange, N = l.onClick, ae = je(l, ha), $ = ke({
|
906
906
|
accept: o,
|
907
907
|
multiple: c,
|
908
908
|
type: "file",
|
909
909
|
style: {
|
910
910
|
display: "none"
|
911
911
|
},
|
912
|
-
onChange:
|
913
|
-
onClick:
|
912
|
+
onChange: F(O(A, i)),
|
913
|
+
onClick: F(O(N, ut)),
|
914
914
|
autoComplete: "off",
|
915
915
|
tabIndex: -1
|
916
|
-
}, E,
|
917
|
-
return b(b({},
|
916
|
+
}, E, R);
|
917
|
+
return b(b({}, $), ae);
|
918
918
|
};
|
919
|
-
}, [
|
920
|
-
files:
|
919
|
+
}, [R, o, c, i, r]), Ye = X.length, He = Ye > 0 && ia({
|
920
|
+
files: X,
|
921
921
|
accept: o,
|
922
922
|
minSize: m,
|
923
923
|
maxSize: d,
|
924
924
|
multiple: c,
|
925
925
|
maxFiles: v
|
926
926
|
}), mt = Ye > 0 && !He;
|
927
|
-
return b(b({},
|
927
|
+
return b(b({}, z), {}, {
|
928
928
|
isDragAccept: He,
|
929
929
|
isDragReject: mt,
|
930
|
-
isFocused:
|
930
|
+
isFocused: _e && !r,
|
931
931
|
getRootProps: pt,
|
932
932
|
getInputProps: ft,
|
933
933
|
rootRef: j,
|
934
|
-
inputRef:
|
935
|
-
open:
|
934
|
+
inputRef: R,
|
935
|
+
open: F(y)
|
936
936
|
});
|
937
937
|
}
|
938
938
|
function Da(e, a) {
|
@@ -946,7 +946,7 @@ function Da(e, a) {
|
|
946
946
|
isFocused: !1
|
947
947
|
});
|
948
948
|
case "openDialog":
|
949
|
-
return b(b({},
|
949
|
+
return b(b({}, Pe), {}, {
|
950
950
|
isFileDialogActive: !0
|
951
951
|
});
|
952
952
|
case "closeDialog":
|
@@ -965,14 +965,14 @@ function Da(e, a) {
|
|
965
965
|
fileRejections: a.fileRejections
|
966
966
|
});
|
967
967
|
case "reset":
|
968
|
-
return b({},
|
968
|
+
return b({}, Pe);
|
969
969
|
default:
|
970
970
|
return e;
|
971
971
|
}
|
972
972
|
}
|
973
973
|
function tt() {
|
974
974
|
}
|
975
|
-
function
|
975
|
+
function re({
|
976
976
|
title: e,
|
977
977
|
children: a,
|
978
978
|
id: o,
|
@@ -1134,7 +1134,7 @@ const _a = {
|
|
1134
1134
|
[n.NUTRITION_PROFESSIONAL]: [
|
1135
1135
|
"step.docUpload.acceptableUploads.licensedProfessional.license"
|
1136
1136
|
]
|
1137
|
-
},
|
1137
|
+
}, wa = {
|
1138
1138
|
[u.STUDENT]: [
|
1139
1139
|
"step.docUpload.uploadInfo.fullName",
|
1140
1140
|
"step.docUpload.uploadInfo.institutionName",
|
@@ -1192,7 +1192,7 @@ const _a = {
|
|
1192
1192
|
"step.docUpload.uploadInfo.fullName",
|
1193
1193
|
"step.docUpload.uploadInfo.lowIncome.validDate"
|
1194
1194
|
]
|
1195
|
-
},
|
1195
|
+
}, Ra = {
|
1196
1196
|
[n.ACTIVE_DUTY]: ["step.docUpload.uploadInfo.military.activeDuty.status"],
|
1197
1197
|
[n.VETERAN]: ["step.docUpload.uploadInfo.military.veteran.status"],
|
1198
1198
|
[n.RESERVIST]: ["step.docUpload.uploadInfo.military.reservist.status"],
|
@@ -1239,12 +1239,12 @@ function Na(e, a) {
|
|
1239
1239
|
function Ca(e, a) {
|
1240
1240
|
return Fa[a] || [
|
1241
1241
|
.../* @__PURE__ */ new Set([
|
1242
|
-
...
|
1243
|
-
...
|
1242
|
+
...Ra[a] || [],
|
1243
|
+
...wa[e] || []
|
1244
1244
|
])
|
1245
1245
|
];
|
1246
1246
|
}
|
1247
|
-
const
|
1247
|
+
const Ta = ({
|
1248
1248
|
options: e,
|
1249
1249
|
selected: a,
|
1250
1250
|
onChange: o,
|
@@ -1289,7 +1289,7 @@ const Oa = ({
|
|
1289
1289
|
] })
|
1290
1290
|
)) })
|
1291
1291
|
] });
|
1292
|
-
},
|
1292
|
+
}, Oa = ({ children: e }) => /* @__PURE__ */ t.jsxs("div", { className: "sid-named-divider", children: [
|
1293
1293
|
/* @__PURE__ */ t.jsx("hr", { className: "sid-named-divider__rule" }),
|
1294
1294
|
/* @__PURE__ */ t.jsx("p", { className: "sid-named-divider__text", children: e })
|
1295
1295
|
] });
|
@@ -1757,98 +1757,98 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1757
1757
|
),
|
1758
1758
|
a ? a.map((r) => /* @__PURE__ */ t.jsx("div", { className: "sid-field-error-redesign__doc-upload__span", children: r }, `error-${r}`)) : null
|
1759
1759
|
] }) : null, $a = ({ verificationService: e, intl: a }) => {
|
1760
|
-
const [o, r] = f.useState(!1), s = e.verificationResponse, { rejectionReasons: d, segment: m, subSegment: c } = s, { programTheme: v } = e, x = e.viewModel, { fieldValidationErrors:
|
1760
|
+
const [o, r] = f.useState(!1), s = e.verificationResponse, { rejectionReasons: d, segment: m, subSegment: c } = s, { programTheme: v } = e, x = e.viewModel, { fieldValidationErrors: w } = e, { overrideEnabled: D } = e.programTheme, C = be("doc-upload-redesign-use-legacy-message-keys"), L = be("doc-upload-considerations"), S = (C ? Ga : Ca)(
|
1761
1761
|
m,
|
1762
1762
|
c
|
1763
|
-
),
|
1763
|
+
), H = e.verificationResponse.country === "US", B = (i) => ({
|
1764
1764
|
name: i.name,
|
1765
1765
|
url: i.type.includes("image") ? URL.createObjectURL(i) : ""
|
1766
|
-
}), [
|
1767
|
-
It(Et) &&
|
1766
|
+
}), [Y, Z] = f.useState({}), { userDidConvert: ie } = yt(m), I = [], le = be("doc-upload-may24"), U = s.segment === "student" && s.locale === "en-US" ? le : "default", T = be("docUpload-assertion-checklist") === "checklist", [M, j] = f.useState([]), [R, ce] = f.useState(!1);
|
1767
|
+
It(Et) && I.push({
|
1768
1768
|
name: "myFile.png",
|
1769
1769
|
url: ""
|
1770
1770
|
});
|
1771
|
-
const
|
1771
|
+
const z = a.formatMessage({
|
1772
1772
|
id: "step.docUpload.addFile",
|
1773
1773
|
defaultMessage: "Add documents"
|
1774
1774
|
});
|
1775
|
-
x.file1 && x.file1.name &&
|
1776
|
-
const
|
1777
|
-
r(!1), e.updateViewModel(Lt(x, i,
|
1778
|
-
},
|
1779
|
-
const
|
1780
|
-
r(!1),
|
1781
|
-
},
|
1782
|
-
const
|
1783
|
-
for (const
|
1784
|
-
const
|
1785
|
-
|
1786
|
-
|
1775
|
+
x.file1 && x.file1.name && I.push(B(x.file1)), x.file2 && x.file2.name && I.push(B(x.file2)), x.file3 && x.file3.name && I.push(B(x.file3));
|
1776
|
+
const _ = I.map((i) => Y[i.name]), _e = (i, y) => {
|
1777
|
+
r(!1), e.updateViewModel(Lt(x, i, y));
|
1778
|
+
}, Q = (i) => {
|
1779
|
+
const y = i + 1;
|
1780
|
+
r(!1), j([]), ce(!1), e.updateViewModel(Mt(x, y));
|
1781
|
+
}, X = w.docUpload || vt(() => e.verificationResponse.errorIds[0], void 0), pe = (i, y) => {
|
1782
|
+
const J = [], W = [], ee = [];
|
1783
|
+
for (const F of i) {
|
1784
|
+
const G = St(
|
1785
|
+
ye.docUpload,
|
1786
|
+
F,
|
1787
1787
|
e.formValidationOptions
|
1788
1788
|
);
|
1789
|
-
|
1789
|
+
G === void 0 ? (y && Z({ ...Y, [F.name]: y }), J.push(F)) : (ee.push(F.name), W.push(G));
|
1790
1790
|
}
|
1791
|
-
let
|
1792
|
-
|
1793
|
-
|
1794
|
-
})), e.updateFieldValidationErrors(
|
1795
|
-
},
|
1796
|
-
Oe.info("StepDocUploadComponent submitting form"),
|
1797
|
-
|
1791
|
+
let te;
|
1792
|
+
W && (te = Ee(w, (F) => {
|
1793
|
+
F.docUpload = W[0];
|
1794
|
+
})), e.updateFieldValidationErrors(te), _e(J, ee);
|
1795
|
+
}, k = () => {
|
1796
|
+
Oe.info("StepDocUploadComponent submitting form"), ce(!0), (T && S.every((i) => M.includes(i)) || !T) && (e.submitStep(
|
1797
|
+
ye.docUpload,
|
1798
1798
|
x,
|
1799
1799
|
e.verificationResponse
|
1800
|
-
),
|
1801
|
-
},
|
1802
|
-
i.length > 0 ?
|
1800
|
+
), ie(Tt, Ot));
|
1801
|
+
}, V = (i, y) => {
|
1802
|
+
i.length > 0 ? pe(i, y) : i.length <= 0 && Oe.error(
|
1803
1803
|
"No files were accepted or rejected. Unknown error.",
|
1804
|
-
|
1804
|
+
ye.docUpload
|
1805
1805
|
);
|
1806
|
-
}, pe = (i) => {
|
1807
|
-
T(Array.from(i.target.files));
|
1808
1806
|
}, ue = (i) => {
|
1809
|
-
|
1810
|
-
|
1811
|
-
|
1807
|
+
V(Array.from(i.target.files));
|
1808
|
+
}, fe = (i) => {
|
1809
|
+
const y = Ct("addFile");
|
1810
|
+
(i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), y.click());
|
1811
|
+
}, me = async () => {
|
1812
1812
|
Oe.info("StepDocUploadComponent submitting form after skipping document upload");
|
1813
|
-
const i =
|
1813
|
+
const i = Ee(x, () => {
|
1814
1814
|
});
|
1815
1815
|
e.submitStep(
|
1816
|
-
|
1816
|
+
ye.cancelDocUpload,
|
1817
1817
|
i,
|
1818
1818
|
e.verificationResponse
|
1819
1819
|
);
|
1820
|
-
},
|
1821
|
-
(i) => !
|
1820
|
+
}, P = /* @__PURE__ */ t.jsx("div", { className: "sid-upload-wrap sid-l-space-top-md sid-l-space-btm-md", children: U === "doc-type-icons" ? /* @__PURE__ */ t.jsx(t.Fragment, { children: Ba.map(
|
1821
|
+
(i) => !_.includes(i) && /* @__PURE__ */ t.jsx(
|
1822
1822
|
Ha,
|
1823
1823
|
{
|
1824
|
-
onFileDrop:
|
1824
|
+
onFileDrop: V,
|
1825
1825
|
type: i,
|
1826
|
-
style: i === "ID_CARD" &&
|
1826
|
+
style: i === "ID_CARD" && I.length === 0 ? "large" : "small"
|
1827
1827
|
}
|
1828
1828
|
)
|
1829
1829
|
) }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
1830
1830
|
/* @__PURE__ */ t.jsx(
|
1831
1831
|
ot,
|
1832
1832
|
{
|
1833
|
-
fieldValidationErrors:
|
1834
|
-
errorId:
|
1833
|
+
fieldValidationErrors: w,
|
1834
|
+
errorId: X,
|
1835
1835
|
erroredFileNames: x.erroredFileNames
|
1836
1836
|
}
|
1837
1837
|
),
|
1838
|
-
/* @__PURE__ */ t.jsx("div", { className: "sid-docdrop-wrap", children: /* @__PURE__ */ t.jsx(se, { onDrop: (i) =>
|
1838
|
+
/* @__PURE__ */ t.jsx("div", { className: "sid-docdrop-wrap", children: /* @__PURE__ */ t.jsx(se, { onDrop: (i) => V(i), accept: ze.join(","), children: ({ getRootProps: i, getInputProps: y }) => /* @__PURE__ */ t.jsxs(
|
1839
1839
|
"div",
|
1840
1840
|
{
|
1841
1841
|
...i(),
|
1842
1842
|
className: "sid-docdrop-wrap__dropzone sid-docdrop-wrap__dropzone_height",
|
1843
1843
|
children: [
|
1844
|
-
/* @__PURE__ */ t.jsx("input", { ...
|
1844
|
+
/* @__PURE__ */ t.jsx("input", { ...y({ accept: ze.join(",") }) }),
|
1845
1845
|
/* @__PURE__ */ t.jsx(
|
1846
1846
|
"button",
|
1847
1847
|
{
|
1848
1848
|
tabIndex: -1,
|
1849
1849
|
className: "sid-btn sid-btn--dark sid-doc-upload-submit-btn sid-submit__continue border-radius",
|
1850
1850
|
type: "button",
|
1851
|
-
"aria-label":
|
1851
|
+
"aria-label": z,
|
1852
1852
|
children: /* @__PURE__ */ t.jsx(
|
1853
1853
|
h,
|
1854
1854
|
{
|
@@ -1866,7 +1866,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1866
1866
|
"div",
|
1867
1867
|
{
|
1868
1868
|
id: "sid-step-doc-upload",
|
1869
|
-
className: `sid-doc-upload-redesign-container sid-l-container sid-may24-variation__${
|
1869
|
+
className: `sid-doc-upload-redesign-container sid-l-container sid-may24-variation__${U}`,
|
1870
1870
|
children: [
|
1871
1871
|
/* @__PURE__ */ t.jsxs("div", { role: "main", children: [
|
1872
1872
|
/* @__PURE__ */ t.jsxs("div", { className: "sid-header sid-l-space-top-md", children: [
|
@@ -1897,21 +1897,21 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1897
1897
|
) })
|
1898
1898
|
] })
|
1899
1899
|
] }),
|
1900
|
-
|
1901
|
-
(
|
1900
|
+
U === "doc-type-icons" && /* @__PURE__ */ t.jsx("p", { children: "Documents must be dated within the current academic year OR no more than 90 days from today" }),
|
1901
|
+
(T && I.length === 0 || !T) && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
1902
1902
|
/* @__PURE__ */ t.jsx("h2", { className: "sid-header__subtitle sid-l-space-btm-md sid-l-space-top-md", children: /* @__PURE__ */ t.jsx(
|
1903
1903
|
h,
|
1904
1904
|
{
|
1905
|
-
id:
|
1905
|
+
id: C ? "step.docUpload.uploadInstructions" : "step.docUpload.documentsMustInclude",
|
1906
1906
|
defaultMessage: "Your documents must include:"
|
1907
1907
|
}
|
1908
1908
|
) }),
|
1909
|
-
/* @__PURE__ */ t.jsx("ul", { className: "sid-doc-upload-requirements", children:
|
1909
|
+
/* @__PURE__ */ t.jsx("ul", { className: "sid-doc-upload-requirements", children: S.map((i) => /* @__PURE__ */ t.jsx("li", { className: "sid-doc-upload-requirements__definition", children: /* @__PURE__ */ t.jsx(h, { id: i }) }, i)) })
|
1910
1910
|
] }),
|
1911
|
-
|
1912
|
-
|
1911
|
+
I.length === 0 && P,
|
1912
|
+
I.length > 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
1913
1913
|
/* @__PURE__ */ t.jsxs("div", { className: "sid-file-list sid-l-space-top-md", children: [
|
1914
|
-
|
1914
|
+
I.map((i, y) => /* @__PURE__ */ t.jsxs("div", { className: "sid-file-list__file", children: [
|
1915
1915
|
/* @__PURE__ */ t.jsx("div", { className: "sid-file-list__thumbnail-wrapper", children: i.url ? /* @__PURE__ */ t.jsx(
|
1916
1916
|
"img",
|
1917
1917
|
{
|
@@ -1935,19 +1935,19 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1935
1935
|
tabIndex: 0,
|
1936
1936
|
"aria-label": `Remove file ${i.name}`,
|
1937
1937
|
className: "sid-file-list__remove-btn",
|
1938
|
-
onClick: () =>
|
1939
|
-
onKeyPress: () =>
|
1938
|
+
onClick: () => Q(y),
|
1939
|
+
onKeyPress: () => Q(y)
|
1940
1940
|
}
|
1941
1941
|
)
|
1942
1942
|
] })
|
1943
1943
|
] }, i.name)),
|
1944
|
-
|
1944
|
+
I.length < Be && U !== "doc-type-icons" && /* @__PURE__ */ t.jsx(t.Fragment, { children: o ? /* @__PURE__ */ t.jsx("div", { className: "sid-add-more-files", children: P }) : /* @__PURE__ */ t.jsx("div", { className: "sid-file-list__file", children: /* @__PURE__ */ t.jsx("div", { className: "sid-file-list__thumbnail-wrapper thumbnail_wrapper_width", children: /* @__PURE__ */ t.jsxs(
|
1945
1945
|
"label",
|
1946
1946
|
{
|
1947
1947
|
className: "sid-docdrop-wrap__dropzone thumbnail_wrapper",
|
1948
1948
|
htmlFor: "sid-take-photo-input",
|
1949
1949
|
role: "button",
|
1950
|
-
onKeyUp: (i) =>
|
1950
|
+
onKeyUp: (i) => fe(i),
|
1951
1951
|
tabIndex: 0,
|
1952
1952
|
children: [
|
1953
1953
|
/* @__PURE__ */ t.jsx(_t, { className: "sid-uploadzone__icon", width: "16px" }),
|
@@ -1961,7 +1961,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1961
1961
|
/* @__PURE__ */ t.jsx(
|
1962
1962
|
"input",
|
1963
1963
|
{
|
1964
|
-
onChange:
|
1964
|
+
onChange: ue,
|
1965
1965
|
type: "file",
|
1966
1966
|
id: "sid-take-photo-input",
|
1967
1967
|
hidden: !0,
|
@@ -1977,29 +1977,29 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1977
1977
|
/* @__PURE__ */ t.jsx(
|
1978
1978
|
ot,
|
1979
1979
|
{
|
1980
|
-
fieldValidationErrors:
|
1981
|
-
errorId:
|
1980
|
+
fieldValidationErrors: w,
|
1981
|
+
errorId: X,
|
1982
1982
|
erroredFileNames: x.erroredFileNames
|
1983
1983
|
}
|
1984
1984
|
),
|
1985
|
-
|
1986
|
-
|
1985
|
+
T && I.length >= 1 && /* @__PURE__ */ t.jsx(
|
1986
|
+
Ta,
|
1987
1987
|
{
|
1988
|
-
options:
|
1989
|
-
selected:
|
1990
|
-
onChange:
|
1991
|
-
showError:
|
1988
|
+
options: S,
|
1989
|
+
selected: M,
|
1990
|
+
onChange: j,
|
1991
|
+
showError: R
|
1992
1992
|
}
|
1993
1993
|
),
|
1994
1994
|
/* @__PURE__ */ t.jsx("div", { className: "sid-submit sid-doc-upload-submit sid-l-space-top-md sid-submit-doc-upload_pb", children: /* @__PURE__ */ t.jsx(
|
1995
1995
|
"button",
|
1996
1996
|
{
|
1997
1997
|
id: "sid-submit-doc-upload",
|
1998
|
-
onClick:
|
1998
|
+
onClick: k,
|
1999
1999
|
type: "submit",
|
2000
2000
|
className: "sid-btn sid-btn--dark sid-doc-upload-submit-btn sid-submit__continue border-radius",
|
2001
|
-
"aria-disabled":
|
2002
|
-
children:
|
2001
|
+
"aria-disabled": I.length <= 0 || T && !S.every((i) => M.includes(i)),
|
2002
|
+
children: U === "doc-type-icons" ? /* @__PURE__ */ t.jsx(
|
2003
2003
|
h,
|
2004
2004
|
{
|
2005
2005
|
id: "_EXPERIMENTAL-VARIATION.step.docUpload.submitButtonLabel",
|
@@ -2008,55 +2008,48 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2008
2008
|
two {documents}
|
2009
2009
|
other {documents}
|
2010
2010
|
}`,
|
2011
|
-
values: { count:
|
2011
|
+
values: { count: I.length }
|
2012
2012
|
}
|
2013
2013
|
) : /* @__PURE__ */ t.jsx(
|
2014
2014
|
h,
|
2015
2015
|
{
|
2016
2016
|
id: "step.docUpload.submitButtonLabel",
|
2017
2017
|
defaultMessage: "Submit",
|
2018
|
-
values: { count:
|
2018
|
+
values: { count: I.length }
|
2019
2019
|
}
|
2020
2020
|
)
|
2021
2021
|
}
|
2022
2022
|
) })
|
2023
2023
|
] }) : null,
|
2024
|
-
|
2025
|
-
|
2026
|
-
/* @__PURE__ */ t.jsx(
|
2027
|
-
|
2024
|
+
U === "doc-type-icons" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2025
|
+
I.length > 0 && I.length < 2 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2026
|
+
/* @__PURE__ */ t.jsx(Oa, { children: "Add another document" }),
|
2027
|
+
P
|
2028
2028
|
] }),
|
2029
2029
|
/* @__PURE__ */ t.jsx("h3", { children: "FAQ" }),
|
2030
|
-
/* @__PURE__ */ t.jsx(
|
2031
|
-
] }) : /* @__PURE__ */ t.jsxs(
|
2032
|
-
|
2033
|
-
|
2034
|
-
|
2035
|
-
|
2036
|
-
|
2037
|
-
|
2038
|
-
|
2039
|
-
|
2040
|
-
|
2041
|
-
|
2042
|
-
|
2043
|
-
|
2044
|
-
|
2045
|
-
|
2046
|
-
(N ? Rt : Na)(
|
2047
|
-
m,
|
2048
|
-
c
|
2049
|
-
).map((i) => /* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(h, { id: i }) }, i)),
|
2050
|
-
/* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(h, { id: "step.docUpload.acceptedTypes" }) })
|
2051
|
-
] }),
|
2052
|
-
Q && (c === "activeDuty" || c === "reservist") && /* @__PURE__ */ t.jsx("div", { className: "sid-acceptable-document-types", children: /* @__PURE__ */ t.jsxs("p", { children: [
|
2053
|
-
/* @__PURE__ */ t.jsx("span", { className: "display-block", children: /* @__PURE__ */ t.jsx("strong", { children: /* @__PURE__ */ t.jsx(
|
2030
|
+
/* @__PURE__ */ t.jsx(re, { id: "suggestedDocs", title: "What information is needed?", children: /* @__PURE__ */ t.jsx("ul", { className: "sid-doc-upload-requirements", children: S.map((i) => /* @__PURE__ */ t.jsx("li", { className: "sid-doc-upload-requirements__definition", children: /* @__PURE__ */ t.jsx(h, { id: i }) }, i)) }) })
|
2031
|
+
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2032
|
+
L === "add-doc-considerations" && H && (c === "activeDuty" || c === "reservist") && /* @__PURE__ */ t.jsx(
|
2033
|
+
re,
|
2034
|
+
{
|
2035
|
+
id: "docConsiderations",
|
2036
|
+
title: /* @__PURE__ */ t.jsx(
|
2037
|
+
h,
|
2038
|
+
{
|
2039
|
+
id: "experiment.step.docUpload.documentConsiderations",
|
2040
|
+
defaultMessage: "Document considerations"
|
2041
|
+
}
|
2042
|
+
),
|
2043
|
+
defaultState: "open",
|
2044
|
+
children: /* @__PURE__ */ t.jsx("span", { className: "sid-doc-upload-considerations", children: /* @__PURE__ */ t.jsxs("p", { children: [
|
2045
|
+
/* @__PURE__ */ t.jsx("strong", { children: /* @__PURE__ */ t.jsx(
|
2054
2046
|
h,
|
2055
2047
|
{
|
2056
2048
|
id: "step.docUpload.acceptableUploads.doNotUploadMilitaryIdTitle",
|
2057
2049
|
defaultMessage: "Do not upload a photo of your military ID."
|
2058
2050
|
}
|
2059
|
-
) })
|
2051
|
+
) }),
|
2052
|
+
" ",
|
2060
2053
|
/* @__PURE__ */ t.jsx(
|
2061
2054
|
h,
|
2062
2055
|
{
|
@@ -2065,11 +2058,51 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2065
2058
|
}
|
2066
2059
|
)
|
2067
2060
|
] }) })
|
2068
|
-
|
2069
|
-
|
2070
|
-
|
2061
|
+
}
|
2062
|
+
),
|
2063
|
+
/* @__PURE__ */ t.jsxs(
|
2064
|
+
re,
|
2065
|
+
{
|
2066
|
+
id: "suggestedDocs",
|
2067
|
+
title: /* @__PURE__ */ t.jsx(
|
2068
|
+
h,
|
2069
|
+
{
|
2070
|
+
id: "step.docUpload.suggestedDocumentTypes",
|
2071
|
+
defaultMessage: "Suggested document types"
|
2072
|
+
}
|
2073
|
+
),
|
2074
|
+
defaultState: U === "checkbox-requirements" ? "closed" : "open",
|
2075
|
+
children: [
|
2076
|
+
C && /* @__PURE__ */ t.jsx(h, { id: "step.docUpload.acceptableUploadExamples" }),
|
2077
|
+
/* @__PURE__ */ t.jsxs("ul", { className: "sid-acceptable-document-types", children: [
|
2078
|
+
(C ? wt : Na)(
|
2079
|
+
m,
|
2080
|
+
c
|
2081
|
+
).map((i) => /* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(h, { id: i }) }, i)),
|
2082
|
+
/* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(h, { id: "step.docUpload.acceptedTypes" }) })
|
2083
|
+
] }),
|
2084
|
+
L !== "add-doc-considerations" && H && (c === "activeDuty" || c === "reservist") && /* @__PURE__ */ t.jsx("div", { className: "sid-acceptable-document-types", children: /* @__PURE__ */ t.jsxs("p", { children: [
|
2085
|
+
/* @__PURE__ */ t.jsx("span", { className: "display-block", children: /* @__PURE__ */ t.jsx("strong", { children: /* @__PURE__ */ t.jsx(
|
2086
|
+
h,
|
2087
|
+
{
|
2088
|
+
id: "step.docUpload.acceptableUploads.doNotUploadMilitaryIdTitle",
|
2089
|
+
defaultMessage: "Do not upload a photo of your military ID."
|
2090
|
+
}
|
2091
|
+
) }) }),
|
2092
|
+
/* @__PURE__ */ t.jsx(
|
2093
|
+
h,
|
2094
|
+
{
|
2095
|
+
id: "step.docUpload.acceptableUploads.doNotUploadMilitaryIdContent",
|
2096
|
+
defaultMessage: "In accordance with federal law, SheerID does not accept submissions of active duty/reservist military ID cards."
|
2097
|
+
}
|
2098
|
+
)
|
2099
|
+
] }) })
|
2100
|
+
]
|
2101
|
+
}
|
2102
|
+
)
|
2103
|
+
] }),
|
2071
2104
|
/* @__PURE__ */ t.jsxs(
|
2072
|
-
|
2105
|
+
re,
|
2073
2106
|
{
|
2074
2107
|
id: "whatHappensNext",
|
2075
2108
|
title: /* @__PURE__ */ t.jsx(
|
@@ -2101,7 +2134,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2101
2134
|
id: "step.docUpload.reviewTime",
|
2102
2135
|
defaultMessage: "Expected review time is {estimatedWaitTime}.",
|
2103
2136
|
values: {
|
2104
|
-
estimatedWaitTime:
|
2137
|
+
estimatedWaitTime: Rt(s, v, a).estReviewTime
|
2105
2138
|
}
|
2106
2139
|
}
|
2107
2140
|
) }),
|
@@ -2110,7 +2143,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2110
2143
|
}
|
2111
2144
|
),
|
2112
2145
|
/* @__PURE__ */ t.jsx(
|
2113
|
-
|
2146
|
+
re,
|
2114
2147
|
{
|
2115
2148
|
id: "canIFinishLater",
|
2116
2149
|
title: /* @__PURE__ */ t.jsx(
|
@@ -2129,12 +2162,12 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2129
2162
|
) })
|
2130
2163
|
}
|
2131
2164
|
),
|
2132
|
-
|
2165
|
+
D && /* @__PURE__ */ t.jsx("div", { className: "sid-submit sid-override-submit sid-l-space-top-sm", children: /* @__PURE__ */ t.jsx(
|
2133
2166
|
"a",
|
2134
2167
|
{
|
2135
2168
|
href: "#",
|
2136
2169
|
className: "sid-link sid-override-link",
|
2137
|
-
onClick: () =>
|
2170
|
+
onClick: () => me(),
|
2138
2171
|
role: "button",
|
2139
2172
|
children: /* @__PURE__ */ t.jsx(
|
2140
2173
|
h,
|