@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
@@ -4,21 +4,21 @@
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
5
5
|
*/
|
6
6
|
/**
|
7
|
-
* VERSION: 2.112.0-alpha.
|
8
|
-
* BUILD_TIMESTAMP:
|
9
|
-
* BUILD_DATE:
|
10
|
-
* BUILD_COMMIT:
|
7
|
+
* VERSION: 2.112.0-alpha.4
|
8
|
+
* BUILD_TIMESTAMP: 1749596622203
|
9
|
+
* BUILD_DATE: Tue Jun 10 2025 23:03:42 GMT+0000 (Coordinated Universal Time)
|
10
|
+
* BUILD_COMMIT: f4ba2ded1f8d08fc71867122ea5facb3f85d0d30
|
11
11
|
*/
|
12
|
-
import { m as
|
13
|
-
const Lt = (e, a, o) =>
|
14
|
-
Object.keys(e).filter((s) => !!e[s] && s.includes("file")).map((s) => e[s]).concat(a, Array(
|
12
|
+
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 "../_mysheerid-preview.js";
|
13
|
+
const Lt = (e, a, o) => Ee(e, (r) => {
|
14
|
+
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;
|
15
15
|
}), Mt = (e, a) => {
|
16
16
|
if (![1, 2, 3].includes(a))
|
17
17
|
throw new Error(
|
18
18
|
`Expected either 1, 2 or 3 for argument "fileNumber", but received ${a}`
|
19
19
|
);
|
20
|
-
return
|
21
|
-
Object.keys(e).filter((r) => r.includes("file") && !r.includes(a.toString())).map((r) => e[r]).concat(Array(
|
20
|
+
return Ee(e, (o) => {
|
21
|
+
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);
|
22
22
|
});
|
23
23
|
};
|
24
24
|
var kt = /* @__PURE__ */ new Map([
|
@@ -136,32 +136,32 @@ var Bt = [
|
|
136
136
|
// Windows
|
137
137
|
];
|
138
138
|
function Yt(e) {
|
139
|
-
return
|
140
|
-
return
|
141
|
-
return
|
139
|
+
return K(this, void 0, void 0, function() {
|
140
|
+
return q(this, function(a) {
|
141
|
+
return ve(e) && Ht(e) ? [2, Gt(e.dataTransfer, e.type)] : zt(e) ? [2, Vt(e)] : Array.isArray(e) && e.every(function(o) {
|
142
142
|
return "getFile" in o && typeof o.getFile == "function";
|
143
143
|
}) ? [2, Wt(e)] : [2, []];
|
144
144
|
});
|
145
145
|
});
|
146
146
|
}
|
147
147
|
function Ht(e) {
|
148
|
-
return
|
148
|
+
return ve(e.dataTransfer);
|
149
149
|
}
|
150
150
|
function zt(e) {
|
151
|
-
return
|
151
|
+
return ve(e) && ve(e.target);
|
152
152
|
}
|
153
|
-
function
|
153
|
+
function ve(e) {
|
154
154
|
return typeof e == "object" && e !== null;
|
155
155
|
}
|
156
156
|
function Vt(e) {
|
157
|
-
return
|
157
|
+
return Le(e.target.files).map(function(a) {
|
158
158
|
return ne(a);
|
159
159
|
});
|
160
160
|
}
|
161
161
|
function Wt(e) {
|
162
|
-
return
|
162
|
+
return K(this, void 0, void 0, function() {
|
163
163
|
var a;
|
164
|
-
return
|
164
|
+
return q(this, function(o) {
|
165
165
|
switch (o.label) {
|
166
166
|
case 0:
|
167
167
|
return [4, Promise.all(e.map(function(r) {
|
@@ -176,18 +176,18 @@ function Wt(e) {
|
|
176
176
|
});
|
177
177
|
}
|
178
178
|
function Gt(e, a) {
|
179
|
-
return
|
179
|
+
return K(this, void 0, void 0, function() {
|
180
180
|
var o, r;
|
181
|
-
return
|
181
|
+
return q(this, function(s) {
|
182
182
|
switch (s.label) {
|
183
183
|
case 0:
|
184
|
-
return e === null ? [2, []] : e.items ? (o =
|
184
|
+
return e === null ? [2, []] : e.items ? (o = Le(e.items).filter(function(d) {
|
185
185
|
return d.kind === "file";
|
186
186
|
}), a !== "drop" ? [2, o] : [4, Promise.all(o.map($t))]) : [3, 2];
|
187
187
|
case 1:
|
188
188
|
return r = s.sent(), [2, Ve(rt(r))];
|
189
189
|
case 2:
|
190
|
-
return [2, Ve(
|
190
|
+
return [2, Ve(Le(e.files).map(function(d) {
|
191
191
|
return ne(d);
|
192
192
|
}))];
|
193
193
|
}
|
@@ -199,7 +199,7 @@ function Ve(e) {
|
|
199
199
|
return Bt.indexOf(a.name) === -1;
|
200
200
|
});
|
201
201
|
}
|
202
|
-
function
|
202
|
+
function Le(e) {
|
203
203
|
if (e === null)
|
204
204
|
return [];
|
205
205
|
for (var a = [], o = 0; o < e.length; o++) {
|
@@ -227,8 +227,8 @@ function We(e) {
|
|
227
227
|
return Promise.resolve(o);
|
228
228
|
}
|
229
229
|
function Kt(e) {
|
230
|
-
return
|
231
|
-
return
|
230
|
+
return K(this, void 0, void 0, function() {
|
231
|
+
return q(this, function(a) {
|
232
232
|
return [2, e.isDirectory ? nt(e) : qt(e)];
|
233
233
|
});
|
234
234
|
});
|
@@ -240,23 +240,23 @@ function nt(e) {
|
|
240
240
|
function d() {
|
241
241
|
var m = this;
|
242
242
|
a.readEntries(function(c) {
|
243
|
-
return
|
244
|
-
var v, x,
|
245
|
-
return
|
246
|
-
switch (
|
243
|
+
return K(m, void 0, void 0, function() {
|
244
|
+
var v, x, w;
|
245
|
+
return q(this, function(D) {
|
246
|
+
switch (D.label) {
|
247
247
|
case 0:
|
248
248
|
if (c.length) return [3, 5];
|
249
|
-
|
249
|
+
D.label = 1;
|
250
250
|
case 1:
|
251
|
-
return
|
251
|
+
return D.trys.push([1, 3, , 4]), [4, Promise.all(s)];
|
252
252
|
case 2:
|
253
|
-
return v =
|
253
|
+
return v = D.sent(), o(v), [3, 4];
|
254
254
|
case 3:
|
255
|
-
return x =
|
255
|
+
return x = D.sent(), r(x), [3, 4];
|
256
256
|
case 4:
|
257
257
|
return [3, 6];
|
258
258
|
case 5:
|
259
|
-
|
259
|
+
w = Promise.all(c.map(Kt)), s.push(w), d(), D.label = 6;
|
260
260
|
case 6:
|
261
261
|
return [
|
262
262
|
2
|
@@ -273,8 +273,8 @@ function nt(e) {
|
|
273
273
|
});
|
274
274
|
}
|
275
275
|
function qt(e) {
|
276
|
-
return
|
277
|
-
return
|
276
|
+
return K(this, void 0, void 0, function() {
|
277
|
+
return q(this, function(a) {
|
278
278
|
return [2, new Promise(function(o, r) {
|
279
279
|
e.file(function(s) {
|
280
280
|
var d = ne(s, e.fullPath);
|
@@ -392,30 +392,30 @@ function it(e, a) {
|
|
392
392
|
return [o, o ? null : na(a)];
|
393
393
|
}
|
394
394
|
function lt(e, a, o) {
|
395
|
-
if (
|
396
|
-
if (
|
395
|
+
if (oe(e.size))
|
396
|
+
if (oe(a) && oe(o)) {
|
397
397
|
if (e.size > o) return [!1, Ze(o)];
|
398
398
|
if (e.size < a) return [!1, Qe(a)];
|
399
399
|
} else {
|
400
|
-
if (
|
401
|
-
if (
|
400
|
+
if (oe(a) && e.size < a) return [!1, Qe(a)];
|
401
|
+
if (oe(o) && e.size > o) return [!1, Ze(o)];
|
402
402
|
}
|
403
403
|
return [!0, null];
|
404
404
|
}
|
405
|
-
function
|
405
|
+
function oe(e) {
|
406
406
|
return e != null;
|
407
407
|
}
|
408
408
|
function ia(e) {
|
409
409
|
var a = e.files, o = e.accept, r = e.minSize, s = e.maxSize, d = e.multiple, m = e.maxFiles;
|
410
410
|
return !d && a.length > 1 || d && m >= 1 && a.length > m ? !1 : a.every(function(c) {
|
411
|
-
var v = it(c, o), x = Ke(v, 1),
|
412
|
-
return
|
411
|
+
var v = it(c, o), x = Ke(v, 1), w = x[0], D = lt(c, r, s), C = Ke(D, 1), L = C[0];
|
412
|
+
return w && L;
|
413
413
|
});
|
414
414
|
}
|
415
|
-
function
|
415
|
+
function Ue(e) {
|
416
416
|
return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
|
417
417
|
}
|
418
|
-
function
|
418
|
+
function Ie(e) {
|
419
419
|
return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(a) {
|
420
420
|
return a === "Files" || a === "application/x-moz-file";
|
421
421
|
}) : !!e.target && !!e.target.files;
|
@@ -433,14 +433,14 @@ function ca() {
|
|
433
433
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
434
434
|
return la(e) || da(e);
|
435
435
|
}
|
436
|
-
function
|
436
|
+
function O() {
|
437
437
|
for (var e = arguments.length, a = new Array(e), o = 0; o < e; o++)
|
438
438
|
a[o] = arguments[o];
|
439
439
|
return function(r) {
|
440
440
|
for (var s = arguments.length, d = new Array(s > 1 ? s - 1 : 0), m = 1; m < s; m++)
|
441
441
|
d[m - 1] = arguments[m];
|
442
442
|
return a.some(function(c) {
|
443
|
-
return !
|
443
|
+
return !Ue(r) && c && c.apply(void 0, [r].concat(d)), Ue(r);
|
444
444
|
});
|
445
445
|
};
|
446
446
|
}
|
@@ -470,9 +470,9 @@ function ba(e) {
|
|
470
470
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
471
471
|
}
|
472
472
|
function ya(e) {
|
473
|
-
if (Array.isArray(e)) return
|
473
|
+
if (Array.isArray(e)) return Me(e);
|
474
474
|
}
|
475
|
-
function
|
475
|
+
function Se(e, a) {
|
476
476
|
return va(e) || Ea(e, a) || dt(e, a) || Ia();
|
477
477
|
}
|
478
478
|
function Ia() {
|
@@ -481,13 +481,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
481
481
|
}
|
482
482
|
function dt(e, a) {
|
483
483
|
if (e) {
|
484
|
-
if (typeof e == "string") return
|
484
|
+
if (typeof e == "string") return Me(e, a);
|
485
485
|
var o = Object.prototype.toString.call(e).slice(8, -1);
|
486
486
|
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set") return Array.from(e);
|
487
|
-
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return
|
487
|
+
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return Me(e, a);
|
488
488
|
}
|
489
489
|
}
|
490
|
-
function
|
490
|
+
function Me(e, a) {
|
491
491
|
(a == null || a > e.length) && (a = e.length);
|
492
492
|
for (var o = 0, r = new Array(a); o < a; o++)
|
493
493
|
r[o] = e[o];
|
@@ -529,17 +529,17 @@ function b(e) {
|
|
529
529
|
for (var a = 1; a < arguments.length; a++) {
|
530
530
|
var o = arguments[a] != null ? arguments[a] : {};
|
531
531
|
a % 2 ? et(Object(o), !0).forEach(function(r) {
|
532
|
-
|
532
|
+
ke(e, r, o[r]);
|
533
533
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : et(Object(o)).forEach(function(r) {
|
534
534
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(o, r));
|
535
535
|
});
|
536
536
|
}
|
537
537
|
return e;
|
538
538
|
}
|
539
|
-
function
|
539
|
+
function ke(e, a, o) {
|
540
540
|
return a in e ? Object.defineProperty(e, a, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[a] = o, e;
|
541
541
|
}
|
542
|
-
function
|
542
|
+
function je(e, a) {
|
543
543
|
if (e == null) return {};
|
544
544
|
var o = Ua(e, a), r, s;
|
545
545
|
if (Object.getOwnPropertySymbols) {
|
@@ -557,7 +557,7 @@ function Ua(e, a) {
|
|
557
557
|
return o;
|
558
558
|
}
|
559
559
|
var se = /* @__PURE__ */ f.forwardRef(function(e, a) {
|
560
|
-
var o = e.children, r =
|
560
|
+
var o = e.children, r = je(e, ua), s = ja(r), d = s.open, m = je(s, fa);
|
561
561
|
return f.useImperativeHandle(a, function() {
|
562
562
|
return {
|
563
563
|
open: d
|
@@ -743,7 +743,7 @@ se.propTypes = {
|
|
743
743
|
*/
|
744
744
|
validator: g.func
|
745
745
|
};
|
746
|
-
var
|
746
|
+
var Pe = {
|
747
747
|
isFocused: !1,
|
748
748
|
isFileDialogActive: !1,
|
749
749
|
isDragActive: !1,
|
@@ -754,97 +754,97 @@ var ke = {
|
|
754
754
|
fileRejections: []
|
755
755
|
};
|
756
756
|
function ja() {
|
757
|
-
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,
|
758
|
-
return typeof z == "function" ? z : tt;
|
759
|
-
}, [z]), H = f.useMemo(function() {
|
757
|
+
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() {
|
760
758
|
return typeof B == "function" ? B : tt;
|
761
|
-
}, [B]),
|
762
|
-
|
763
|
-
|
764
|
-
|
759
|
+
}, [B]), M = f.useMemo(function() {
|
760
|
+
return typeof H == "function" ? H : tt;
|
761
|
+
}, [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() {
|
762
|
+
Q && setTimeout(function() {
|
763
|
+
if (R.current) {
|
764
|
+
var p = R.current.files;
|
765
765
|
p.length || (_({
|
766
766
|
type: "closeDialog"
|
767
|
-
}),
|
767
|
+
}), M());
|
768
768
|
}
|
769
769
|
}, 300);
|
770
770
|
};
|
771
771
|
f.useEffect(function() {
|
772
|
-
return
|
773
|
-
} : (window.addEventListener("focus",
|
774
|
-
window.removeEventListener("focus",
|
772
|
+
return Y && Je() ? function() {
|
773
|
+
} : (window.addEventListener("focus", pe, !1), function() {
|
774
|
+
window.removeEventListener("focus", pe, !1);
|
775
775
|
});
|
776
|
-
}, [
|
777
|
-
var
|
778
|
-
j.current && j.current.contains(p.target) || (p.preventDefault(),
|
776
|
+
}, [R, Q, M, Y]);
|
777
|
+
var k = f.useRef([]), V = function(p) {
|
778
|
+
j.current && j.current.contains(p.target) || (p.preventDefault(), k.current = []);
|
779
779
|
};
|
780
780
|
f.useEffect(function() {
|
781
|
-
return
|
782
|
-
|
781
|
+
return Z && (document.addEventListener("dragover", Xe, !1), document.addEventListener("drop", V, !1)), function() {
|
782
|
+
Z && (document.removeEventListener("dragover", Xe), document.removeEventListener("drop", V));
|
783
783
|
};
|
784
|
-
}, [j,
|
784
|
+
}, [j, Z]);
|
785
785
|
var ue = f.useCallback(function(l) {
|
786
|
-
l.preventDefault(), l.persist(),
|
787
|
-
|
786
|
+
l.preventDefault(), l.persist(), ge(l), k.current = [].concat(ga(k.current), [l.target]), Ie(l) && Promise.resolve(s(l)).then(function(p) {
|
787
|
+
Ue(l) && !U || (_({
|
788
788
|
draggedFiles: p,
|
789
789
|
isDragActive: !0,
|
790
790
|
type: "setDraggedFiles"
|
791
791
|
}), x && x(l));
|
792
792
|
});
|
793
|
-
}, [s, x,
|
794
|
-
l.preventDefault(), l.persist(),
|
795
|
-
var p =
|
793
|
+
}, [s, x, U]), fe = f.useCallback(function(l) {
|
794
|
+
l.preventDefault(), l.persist(), ge(l);
|
795
|
+
var p = Ie(l);
|
796
796
|
if (p && l.dataTransfer)
|
797
797
|
try {
|
798
798
|
l.dataTransfer.dropEffect = "copy";
|
799
799
|
} catch {
|
800
800
|
}
|
801
|
-
return p &&
|
802
|
-
}, [
|
803
|
-
l.preventDefault(), l.persist(),
|
804
|
-
var p =
|
801
|
+
return p && D && D(l), !1;
|
802
|
+
}, [D, U]), me = f.useCallback(function(l) {
|
803
|
+
l.preventDefault(), l.persist(), ge(l);
|
804
|
+
var p = k.current.filter(function(A) {
|
805
805
|
return j.current && j.current.contains(A);
|
806
806
|
}), E = p.indexOf(l.target);
|
807
|
-
E !== -1 && p.splice(E, 1),
|
807
|
+
E !== -1 && p.splice(E, 1), k.current = p, !(p.length > 0) && (_({
|
808
808
|
isDragActive: !1,
|
809
809
|
type: "setDraggedFiles",
|
810
810
|
draggedFiles: []
|
811
|
-
}),
|
812
|
-
}, [j,
|
811
|
+
}), Ie(l) && w && w(l));
|
812
|
+
}, [j, w, U]), P = f.useCallback(function(l, p) {
|
813
813
|
var E = [], A = [];
|
814
|
-
l.forEach(function(
|
815
|
-
var
|
816
|
-
if (
|
817
|
-
E.push(
|
814
|
+
l.forEach(function(N) {
|
815
|
+
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;
|
816
|
+
if (Ae && Fe && !Ce)
|
817
|
+
E.push(N);
|
818
818
|
else {
|
819
|
-
var
|
820
|
-
|
821
|
-
file:
|
822
|
-
errors:
|
819
|
+
var Te = [we, Ne];
|
820
|
+
Ce && (Te = Te.concat(Ce)), A.push({
|
821
|
+
file: N,
|
822
|
+
errors: Te.filter(function(ht) {
|
823
823
|
return ht;
|
824
824
|
})
|
825
825
|
});
|
826
826
|
}
|
827
|
-
}), (!c && E.length > 1 || c && v >= 1 && E.length > v) && (E.forEach(function(
|
827
|
+
}), (!c && E.length > 1 || c && v >= 1 && E.length > v) && (E.forEach(function(N) {
|
828
828
|
A.push({
|
829
|
-
file:
|
829
|
+
file: N,
|
830
830
|
errors: [sa]
|
831
831
|
});
|
832
832
|
}), E.splice(0)), _({
|
833
833
|
acceptedFiles: E,
|
834
834
|
fileRejections: A,
|
835
835
|
type: "setFiles"
|
836
|
-
}),
|
837
|
-
}, [_, c, o, m, d, v,
|
838
|
-
l.preventDefault(), l.persist(),
|
839
|
-
|
836
|
+
}), C && C(E, A, p), A.length > 0 && S && S(A, p), E.length > 0 && L && L(E, p);
|
837
|
+
}, [_, c, o, m, d, v, C, L, S, de]), i = f.useCallback(function(l) {
|
838
|
+
l.preventDefault(), l.persist(), ge(l), k.current = [], Ie(l) && Promise.resolve(s(l)).then(function(p) {
|
839
|
+
Ue(l) && !U || P(p, l);
|
840
840
|
}), _({
|
841
841
|
type: "reset"
|
842
842
|
});
|
843
|
-
}, [s,
|
844
|
-
if (
|
843
|
+
}, [s, P, U]), y = f.useCallback(function() {
|
844
|
+
if (Y && Je()) {
|
845
845
|
_({
|
846
846
|
type: "openDialog"
|
847
|
-
}),
|
847
|
+
}), T();
|
848
848
|
var l = {
|
849
849
|
multiple: c,
|
850
850
|
types: pa(o)
|
@@ -852,9 +852,9 @@ function ja() {
|
|
852
852
|
window.showOpenFilePicker(l).then(function(p) {
|
853
853
|
return s(p);
|
854
854
|
}).then(function(p) {
|
855
|
-
return
|
855
|
+
return P(p, null);
|
856
856
|
}).catch(function(p) {
|
857
|
-
return
|
857
|
+
return M(p);
|
858
858
|
}).finally(function() {
|
859
859
|
return _({
|
860
860
|
type: "closeDialog"
|
@@ -862,81 +862,81 @@ function ja() {
|
|
862
862
|
});
|
863
863
|
return;
|
864
864
|
}
|
865
|
-
|
865
|
+
R.current && (_({
|
866
866
|
type: "openDialog"
|
867
|
-
}),
|
868
|
-
}, [_,
|
869
|
-
!j.current || !j.current.isEqualNode(l.target) || (l.keyCode === 32 || l.keyCode === 13) && (l.preventDefault(),
|
870
|
-
}, [j,
|
867
|
+
}), T(), R.current.value = null, R.current.click());
|
868
|
+
}, [_, T, M, Y, P, o, c]), J = f.useCallback(function(l) {
|
869
|
+
!j.current || !j.current.isEqualNode(l.target) || (l.keyCode === 32 || l.keyCode === 13) && (l.preventDefault(), y());
|
870
|
+
}, [j, R, y]), W = f.useCallback(function() {
|
871
871
|
_({
|
872
872
|
type: "focus"
|
873
873
|
});
|
874
|
-
}, []),
|
874
|
+
}, []), ee = f.useCallback(function() {
|
875
875
|
_({
|
876
876
|
type: "blur"
|
877
877
|
});
|
878
|
-
}, []),
|
879
|
-
|
880
|
-
}, [
|
878
|
+
}, []), te = f.useCallback(function() {
|
879
|
+
ie || (ca() ? setTimeout(y, 0) : y());
|
880
|
+
}, [R, ie, y]), F = function(p) {
|
881
881
|
return r ? null : p;
|
882
|
-
},
|
883
|
-
return
|
884
|
-
}, me = function(p) {
|
885
|
-
return C ? null : k(p);
|
882
|
+
}, G = function(p) {
|
883
|
+
return I ? null : F(p);
|
886
884
|
}, he = function(p) {
|
887
|
-
|
885
|
+
return le ? null : F(p);
|
886
|
+
}, ge = function(p) {
|
887
|
+
U && p.stopPropagation();
|
888
888
|
}, pt = f.useMemo(function() {
|
889
889
|
return function() {
|
890
|
-
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = l.refKey, E = p === void 0 ? "ref" : p, A = l.role,
|
891
|
-
return b(b(
|
892
|
-
onKeyDown:
|
893
|
-
onFocus:
|
894
|
-
onBlur:
|
895
|
-
onClick:
|
896
|
-
onDragEnter:
|
897
|
-
onDragOver:
|
898
|
-
onDragLeave:
|
899
|
-
onDrop:
|
890
|
+
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);
|
891
|
+
return b(b(ke({
|
892
|
+
onKeyDown: G(O(N, J)),
|
893
|
+
onFocus: G(O(ae, W)),
|
894
|
+
onBlur: G(O($, ee)),
|
895
|
+
onClick: F(O(Ae, te)),
|
896
|
+
onDragEnter: he(O(we, ue)),
|
897
|
+
onDragOver: he(O(Re, fe)),
|
898
|
+
onDragLeave: he(O(xe, me)),
|
899
|
+
onDrop: he(O(Fe, i)),
|
900
900
|
role: typeof A == "string" && A !== "" ? A : "button"
|
901
|
-
}, E, j), !r && !
|
901
|
+
}, E, j), !r && !I ? {
|
902
902
|
tabIndex: 0
|
903
|
-
} : {}),
|
903
|
+
} : {}), Ne);
|
904
904
|
};
|
905
|
-
}, [j,
|
905
|
+
}, [j, J, W, ee, te, ue, fe, me, i, I, le, r]), ut = f.useCallback(function(l) {
|
906
906
|
l.stopPropagation();
|
907
907
|
}, []), ft = f.useMemo(function() {
|
908
908
|
return function() {
|
909
|
-
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = l.refKey, E = p === void 0 ? "ref" : p, A = l.onChange,
|
909
|
+
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({
|
910
910
|
accept: o,
|
911
911
|
multiple: c,
|
912
912
|
type: "file",
|
913
913
|
style: {
|
914
914
|
display: "none"
|
915
915
|
},
|
916
|
-
onChange:
|
917
|
-
onClick:
|
916
|
+
onChange: F(O(A, i)),
|
917
|
+
onClick: F(O(N, ut)),
|
918
918
|
autoComplete: "off",
|
919
919
|
tabIndex: -1
|
920
|
-
}, E,
|
921
|
-
return b(b({},
|
920
|
+
}, E, R);
|
921
|
+
return b(b({}, $), ae);
|
922
922
|
};
|
923
|
-
}, [
|
924
|
-
files:
|
923
|
+
}, [R, o, c, i, r]), Ye = X.length, He = Ye > 0 && ia({
|
924
|
+
files: X,
|
925
925
|
accept: o,
|
926
926
|
minSize: m,
|
927
927
|
maxSize: d,
|
928
928
|
multiple: c,
|
929
929
|
maxFiles: v
|
930
930
|
}), mt = Ye > 0 && !He;
|
931
|
-
return b(b({},
|
931
|
+
return b(b({}, z), {}, {
|
932
932
|
isDragAccept: He,
|
933
933
|
isDragReject: mt,
|
934
|
-
isFocused:
|
934
|
+
isFocused: _e && !r,
|
935
935
|
getRootProps: pt,
|
936
936
|
getInputProps: ft,
|
937
937
|
rootRef: j,
|
938
|
-
inputRef:
|
939
|
-
open:
|
938
|
+
inputRef: R,
|
939
|
+
open: F(y)
|
940
940
|
});
|
941
941
|
}
|
942
942
|
function Da(e, a) {
|
@@ -950,7 +950,7 @@ function Da(e, a) {
|
|
950
950
|
isFocused: !1
|
951
951
|
});
|
952
952
|
case "openDialog":
|
953
|
-
return b(b({},
|
953
|
+
return b(b({}, Pe), {}, {
|
954
954
|
isFileDialogActive: !0
|
955
955
|
});
|
956
956
|
case "closeDialog":
|
@@ -969,14 +969,14 @@ function Da(e, a) {
|
|
969
969
|
fileRejections: a.fileRejections
|
970
970
|
});
|
971
971
|
case "reset":
|
972
|
-
return b({},
|
972
|
+
return b({}, Pe);
|
973
973
|
default:
|
974
974
|
return e;
|
975
975
|
}
|
976
976
|
}
|
977
977
|
function tt() {
|
978
978
|
}
|
979
|
-
function
|
979
|
+
function re({
|
980
980
|
title: e,
|
981
981
|
children: a,
|
982
982
|
id: o,
|
@@ -1138,7 +1138,7 @@ const _a = {
|
|
1138
1138
|
[n.NUTRITION_PROFESSIONAL]: [
|
1139
1139
|
"step.docUpload.acceptableUploads.licensedProfessional.license"
|
1140
1140
|
]
|
1141
|
-
},
|
1141
|
+
}, wa = {
|
1142
1142
|
[u.STUDENT]: [
|
1143
1143
|
"step.docUpload.uploadInfo.fullName",
|
1144
1144
|
"step.docUpload.uploadInfo.institutionName",
|
@@ -1196,7 +1196,7 @@ const _a = {
|
|
1196
1196
|
"step.docUpload.uploadInfo.fullName",
|
1197
1197
|
"step.docUpload.uploadInfo.lowIncome.validDate"
|
1198
1198
|
]
|
1199
|
-
},
|
1199
|
+
}, Ra = {
|
1200
1200
|
[n.ACTIVE_DUTY]: ["step.docUpload.uploadInfo.military.activeDuty.status"],
|
1201
1201
|
[n.VETERAN]: ["step.docUpload.uploadInfo.military.veteran.status"],
|
1202
1202
|
[n.RESERVIST]: ["step.docUpload.uploadInfo.military.reservist.status"],
|
@@ -1243,12 +1243,12 @@ function Na(e, a) {
|
|
1243
1243
|
function Ca(e, a) {
|
1244
1244
|
return Fa[a] || [
|
1245
1245
|
.../* @__PURE__ */ new Set([
|
1246
|
-
...
|
1247
|
-
...
|
1246
|
+
...Ra[a] || [],
|
1247
|
+
...wa[e] || []
|
1248
1248
|
])
|
1249
1249
|
];
|
1250
1250
|
}
|
1251
|
-
const
|
1251
|
+
const Ta = ({
|
1252
1252
|
options: e,
|
1253
1253
|
selected: a,
|
1254
1254
|
onChange: o,
|
@@ -1293,7 +1293,7 @@ const Oa = ({
|
|
1293
1293
|
] })
|
1294
1294
|
)) })
|
1295
1295
|
] });
|
1296
|
-
},
|
1296
|
+
}, Oa = ({ children: e }) => /* @__PURE__ */ t.jsxs("div", { className: "sid-named-divider", children: [
|
1297
1297
|
/* @__PURE__ */ t.jsx("hr", { className: "sid-named-divider__rule" }),
|
1298
1298
|
/* @__PURE__ */ t.jsx("p", { className: "sid-named-divider__text", children: e })
|
1299
1299
|
] });
|
@@ -1761,98 +1761,98 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1761
1761
|
),
|
1762
1762
|
a ? a.map((r) => /* @__PURE__ */ t.jsx("div", { className: "sid-field-error-redesign__doc-upload__span", children: r }, `error-${r}`)) : null
|
1763
1763
|
] }) : null, $a = ({ verificationService: e, intl: a }) => {
|
1764
|
-
const [o, r] = f.useState(!1), s = e.verificationResponse, { rejectionReasons: d, segment: m, subSegment: c } = s, { programTheme: v } = e, x = e.viewModel, { fieldValidationErrors:
|
1764
|
+
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)(
|
1765
1765
|
m,
|
1766
1766
|
c
|
1767
|
-
),
|
1767
|
+
), H = e.verificationResponse.country === "US", B = (i) => ({
|
1768
1768
|
name: i.name,
|
1769
1769
|
url: i.type.includes("image") ? URL.createObjectURL(i) : ""
|
1770
|
-
}), [
|
1771
|
-
It(Et) &&
|
1770
|
+
}), [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);
|
1771
|
+
It(Et) && I.push({
|
1772
1772
|
name: "myFile.png",
|
1773
1773
|
url: ""
|
1774
1774
|
});
|
1775
|
-
const
|
1775
|
+
const z = a.formatMessage({
|
1776
1776
|
id: "step.docUpload.addFile",
|
1777
1777
|
defaultMessage: "Add documents"
|
1778
1778
|
});
|
1779
|
-
x.file1 && x.file1.name &&
|
1780
|
-
const
|
1781
|
-
r(!1), e.updateViewModel(Lt(x, i,
|
1782
|
-
},
|
1783
|
-
const
|
1784
|
-
r(!1),
|
1785
|
-
},
|
1786
|
-
const
|
1787
|
-
for (const
|
1788
|
-
const
|
1789
|
-
|
1790
|
-
|
1779
|
+
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));
|
1780
|
+
const _ = I.map((i) => Y[i.name]), _e = (i, y) => {
|
1781
|
+
r(!1), e.updateViewModel(Lt(x, i, y));
|
1782
|
+
}, Q = (i) => {
|
1783
|
+
const y = i + 1;
|
1784
|
+
r(!1), j([]), ce(!1), e.updateViewModel(Mt(x, y));
|
1785
|
+
}, X = w.docUpload || vt(() => e.verificationResponse.errorIds[0], void 0), pe = (i, y) => {
|
1786
|
+
const J = [], W = [], ee = [];
|
1787
|
+
for (const F of i) {
|
1788
|
+
const G = St(
|
1789
|
+
ye.docUpload,
|
1790
|
+
F,
|
1791
1791
|
e.formValidationOptions
|
1792
1792
|
);
|
1793
|
-
|
1793
|
+
G === void 0 ? (y && Z({ ...Y, [F.name]: y }), J.push(F)) : (ee.push(F.name), W.push(G));
|
1794
1794
|
}
|
1795
|
-
let
|
1796
|
-
|
1797
|
-
|
1798
|
-
})), e.updateFieldValidationErrors(
|
1799
|
-
},
|
1800
|
-
Oe.info("StepDocUploadComponent submitting form"),
|
1801
|
-
|
1795
|
+
let te;
|
1796
|
+
W && (te = Ee(w, (F) => {
|
1797
|
+
F.docUpload = W[0];
|
1798
|
+
})), e.updateFieldValidationErrors(te), _e(J, ee);
|
1799
|
+
}, k = () => {
|
1800
|
+
Oe.info("StepDocUploadComponent submitting form"), ce(!0), (T && S.every((i) => M.includes(i)) || !T) && (e.submitStep(
|
1801
|
+
ye.docUpload,
|
1802
1802
|
x,
|
1803
1803
|
e.verificationResponse
|
1804
|
-
),
|
1805
|
-
},
|
1806
|
-
i.length > 0 ?
|
1804
|
+
), ie(Tt, Ot));
|
1805
|
+
}, V = (i, y) => {
|
1806
|
+
i.length > 0 ? pe(i, y) : i.length <= 0 && Oe.error(
|
1807
1807
|
"No files were accepted or rejected. Unknown error.",
|
1808
|
-
|
1808
|
+
ye.docUpload
|
1809
1809
|
);
|
1810
|
-
}, pe = (i) => {
|
1811
|
-
T(Array.from(i.target.files));
|
1812
1810
|
}, ue = (i) => {
|
1813
|
-
|
1814
|
-
|
1815
|
-
|
1811
|
+
V(Array.from(i.target.files));
|
1812
|
+
}, fe = (i) => {
|
1813
|
+
const y = Ct("addFile");
|
1814
|
+
(i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), y.click());
|
1815
|
+
}, me = async () => {
|
1816
1816
|
Oe.info("StepDocUploadComponent submitting form after skipping document upload");
|
1817
|
-
const i =
|
1817
|
+
const i = Ee(x, () => {
|
1818
1818
|
});
|
1819
1819
|
e.submitStep(
|
1820
|
-
|
1820
|
+
ye.cancelDocUpload,
|
1821
1821
|
i,
|
1822
1822
|
e.verificationResponse
|
1823
1823
|
);
|
1824
|
-
},
|
1825
|
-
(i) => !
|
1824
|
+
}, 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(
|
1825
|
+
(i) => !_.includes(i) && /* @__PURE__ */ t.jsx(
|
1826
1826
|
Ha,
|
1827
1827
|
{
|
1828
|
-
onFileDrop:
|
1828
|
+
onFileDrop: V,
|
1829
1829
|
type: i,
|
1830
|
-
style: i === "ID_CARD" &&
|
1830
|
+
style: i === "ID_CARD" && I.length === 0 ? "large" : "small"
|
1831
1831
|
}
|
1832
1832
|
)
|
1833
1833
|
) }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
1834
1834
|
/* @__PURE__ */ t.jsx(
|
1835
1835
|
ot,
|
1836
1836
|
{
|
1837
|
-
fieldValidationErrors:
|
1838
|
-
errorId:
|
1837
|
+
fieldValidationErrors: w,
|
1838
|
+
errorId: X,
|
1839
1839
|
erroredFileNames: x.erroredFileNames
|
1840
1840
|
}
|
1841
1841
|
),
|
1842
|
-
/* @__PURE__ */ t.jsx("div", { className: "sid-docdrop-wrap", children: /* @__PURE__ */ t.jsx(se, { onDrop: (i) =>
|
1842
|
+
/* @__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(
|
1843
1843
|
"div",
|
1844
1844
|
{
|
1845
1845
|
...i(),
|
1846
1846
|
className: "sid-docdrop-wrap__dropzone sid-docdrop-wrap__dropzone_height",
|
1847
1847
|
children: [
|
1848
|
-
/* @__PURE__ */ t.jsx("input", { ...
|
1848
|
+
/* @__PURE__ */ t.jsx("input", { ...y({ accept: ze.join(",") }) }),
|
1849
1849
|
/* @__PURE__ */ t.jsx(
|
1850
1850
|
"button",
|
1851
1851
|
{
|
1852
1852
|
tabIndex: -1,
|
1853
1853
|
className: "sid-btn sid-btn--dark sid-doc-upload-submit-btn sid-submit__continue border-radius",
|
1854
1854
|
type: "button",
|
1855
|
-
"aria-label":
|
1855
|
+
"aria-label": z,
|
1856
1856
|
children: /* @__PURE__ */ t.jsx(
|
1857
1857
|
h,
|
1858
1858
|
{
|
@@ -1870,7 +1870,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1870
1870
|
"div",
|
1871
1871
|
{
|
1872
1872
|
id: "sid-step-doc-upload",
|
1873
|
-
className: `sid-doc-upload-redesign-container sid-l-container sid-may24-variation__${
|
1873
|
+
className: `sid-doc-upload-redesign-container sid-l-container sid-may24-variation__${U}`,
|
1874
1874
|
children: [
|
1875
1875
|
/* @__PURE__ */ t.jsxs("div", { role: "main", children: [
|
1876
1876
|
/* @__PURE__ */ t.jsxs("div", { className: "sid-header sid-l-space-top-md", children: [
|
@@ -1901,21 +1901,21 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1901
1901
|
) })
|
1902
1902
|
] })
|
1903
1903
|
] }),
|
1904
|
-
|
1905
|
-
(
|
1904
|
+
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" }),
|
1905
|
+
(T && I.length === 0 || !T) && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
1906
1906
|
/* @__PURE__ */ t.jsx("h2", { className: "sid-header__subtitle sid-l-space-btm-md sid-l-space-top-md", children: /* @__PURE__ */ t.jsx(
|
1907
1907
|
h,
|
1908
1908
|
{
|
1909
|
-
id:
|
1909
|
+
id: C ? "step.docUpload.uploadInstructions" : "step.docUpload.documentsMustInclude",
|
1910
1910
|
defaultMessage: "Your documents must include:"
|
1911
1911
|
}
|
1912
1912
|
) }),
|
1913
|
-
/* @__PURE__ */ t.jsx("ul", { className: "sid-doc-upload-requirements", children:
|
1913
|
+
/* @__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)) })
|
1914
1914
|
] }),
|
1915
|
-
|
1916
|
-
|
1915
|
+
I.length === 0 && P,
|
1916
|
+
I.length > 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
1917
1917
|
/* @__PURE__ */ t.jsxs("div", { className: "sid-file-list sid-l-space-top-md", children: [
|
1918
|
-
|
1918
|
+
I.map((i, y) => /* @__PURE__ */ t.jsxs("div", { className: "sid-file-list__file", children: [
|
1919
1919
|
/* @__PURE__ */ t.jsx("div", { className: "sid-file-list__thumbnail-wrapper", children: i.url ? /* @__PURE__ */ t.jsx(
|
1920
1920
|
"img",
|
1921
1921
|
{
|
@@ -1939,19 +1939,19 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1939
1939
|
tabIndex: 0,
|
1940
1940
|
"aria-label": `Remove file ${i.name}`,
|
1941
1941
|
className: "sid-file-list__remove-btn",
|
1942
|
-
onClick: () =>
|
1943
|
-
onKeyPress: () =>
|
1942
|
+
onClick: () => Q(y),
|
1943
|
+
onKeyPress: () => Q(y)
|
1944
1944
|
}
|
1945
1945
|
)
|
1946
1946
|
] })
|
1947
1947
|
] }, i.name)),
|
1948
|
-
|
1948
|
+
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(
|
1949
1949
|
"label",
|
1950
1950
|
{
|
1951
1951
|
className: "sid-docdrop-wrap__dropzone thumbnail_wrapper",
|
1952
1952
|
htmlFor: "sid-take-photo-input",
|
1953
1953
|
role: "button",
|
1954
|
-
onKeyUp: (i) =>
|
1954
|
+
onKeyUp: (i) => fe(i),
|
1955
1955
|
tabIndex: 0,
|
1956
1956
|
children: [
|
1957
1957
|
/* @__PURE__ */ t.jsx(_t, { className: "sid-uploadzone__icon", width: "16px" }),
|
@@ -1965,7 +1965,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1965
1965
|
/* @__PURE__ */ t.jsx(
|
1966
1966
|
"input",
|
1967
1967
|
{
|
1968
|
-
onChange:
|
1968
|
+
onChange: ue,
|
1969
1969
|
type: "file",
|
1970
1970
|
id: "sid-take-photo-input",
|
1971
1971
|
hidden: !0,
|
@@ -1981,29 +1981,29 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1981
1981
|
/* @__PURE__ */ t.jsx(
|
1982
1982
|
ot,
|
1983
1983
|
{
|
1984
|
-
fieldValidationErrors:
|
1985
|
-
errorId:
|
1984
|
+
fieldValidationErrors: w,
|
1985
|
+
errorId: X,
|
1986
1986
|
erroredFileNames: x.erroredFileNames
|
1987
1987
|
}
|
1988
1988
|
),
|
1989
|
-
|
1990
|
-
|
1989
|
+
T && I.length >= 1 && /* @__PURE__ */ t.jsx(
|
1990
|
+
Ta,
|
1991
1991
|
{
|
1992
|
-
options:
|
1993
|
-
selected:
|
1994
|
-
onChange:
|
1995
|
-
showError:
|
1992
|
+
options: S,
|
1993
|
+
selected: M,
|
1994
|
+
onChange: j,
|
1995
|
+
showError: R
|
1996
1996
|
}
|
1997
1997
|
),
|
1998
1998
|
/* @__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(
|
1999
1999
|
"button",
|
2000
2000
|
{
|
2001
2001
|
id: "sid-submit-doc-upload",
|
2002
|
-
onClick:
|
2002
|
+
onClick: k,
|
2003
2003
|
type: "submit",
|
2004
2004
|
className: "sid-btn sid-btn--dark sid-doc-upload-submit-btn sid-submit__continue border-radius",
|
2005
|
-
"aria-disabled":
|
2006
|
-
children:
|
2005
|
+
"aria-disabled": I.length <= 0 || T && !S.every((i) => M.includes(i)),
|
2006
|
+
children: U === "doc-type-icons" ? /* @__PURE__ */ t.jsx(
|
2007
2007
|
h,
|
2008
2008
|
{
|
2009
2009
|
id: "_EXPERIMENTAL-VARIATION.step.docUpload.submitButtonLabel",
|
@@ -2012,55 +2012,48 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2012
2012
|
two {documents}
|
2013
2013
|
other {documents}
|
2014
2014
|
}`,
|
2015
|
-
values: { count:
|
2015
|
+
values: { count: I.length }
|
2016
2016
|
}
|
2017
2017
|
) : /* @__PURE__ */ t.jsx(
|
2018
2018
|
h,
|
2019
2019
|
{
|
2020
2020
|
id: "step.docUpload.submitButtonLabel",
|
2021
2021
|
defaultMessage: "Submit",
|
2022
|
-
values: { count:
|
2022
|
+
values: { count: I.length }
|
2023
2023
|
}
|
2024
2024
|
)
|
2025
2025
|
}
|
2026
2026
|
) })
|
2027
2027
|
] }) : null,
|
2028
|
-
|
2029
|
-
|
2030
|
-
/* @__PURE__ */ t.jsx(
|
2031
|
-
|
2028
|
+
U === "doc-type-icons" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2029
|
+
I.length > 0 && I.length < 2 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2030
|
+
/* @__PURE__ */ t.jsx(Oa, { children: "Add another document" }),
|
2031
|
+
P
|
2032
2032
|
] }),
|
2033
2033
|
/* @__PURE__ */ t.jsx("h3", { children: "FAQ" }),
|
2034
|
-
/* @__PURE__ */ t.jsx(
|
2035
|
-
] }) : /* @__PURE__ */ t.jsxs(
|
2036
|
-
|
2037
|
-
|
2038
|
-
|
2039
|
-
|
2040
|
-
|
2041
|
-
|
2042
|
-
|
2043
|
-
|
2044
|
-
|
2045
|
-
|
2046
|
-
|
2047
|
-
|
2048
|
-
|
2049
|
-
|
2050
|
-
(N ? Rt : Na)(
|
2051
|
-
m,
|
2052
|
-
c
|
2053
|
-
).map((i) => /* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(h, { id: i }) }, i)),
|
2054
|
-
/* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(h, { id: "step.docUpload.acceptedTypes" }) })
|
2055
|
-
] }),
|
2056
|
-
Q && (c === "activeDuty" || c === "reservist") && /* @__PURE__ */ t.jsx("div", { className: "sid-acceptable-document-types", children: /* @__PURE__ */ t.jsxs("p", { children: [
|
2057
|
-
/* @__PURE__ */ t.jsx("span", { className: "display-block", children: /* @__PURE__ */ t.jsx("strong", { children: /* @__PURE__ */ t.jsx(
|
2034
|
+
/* @__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)) }) })
|
2035
|
+
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2036
|
+
L === "add-doc-considerations" && H && (c === "activeDuty" || c === "reservist") && /* @__PURE__ */ t.jsx(
|
2037
|
+
re,
|
2038
|
+
{
|
2039
|
+
id: "docConsiderations",
|
2040
|
+
title: /* @__PURE__ */ t.jsx(
|
2041
|
+
h,
|
2042
|
+
{
|
2043
|
+
id: "experiment.step.docUpload.documentConsiderations",
|
2044
|
+
defaultMessage: "Document considerations"
|
2045
|
+
}
|
2046
|
+
),
|
2047
|
+
defaultState: "open",
|
2048
|
+
children: /* @__PURE__ */ t.jsx("span", { className: "sid-doc-upload-considerations", children: /* @__PURE__ */ t.jsxs("p", { children: [
|
2049
|
+
/* @__PURE__ */ t.jsx("strong", { children: /* @__PURE__ */ t.jsx(
|
2058
2050
|
h,
|
2059
2051
|
{
|
2060
2052
|
id: "step.docUpload.acceptableUploads.doNotUploadMilitaryIdTitle",
|
2061
2053
|
defaultMessage: "Do not upload a photo of your military ID."
|
2062
2054
|
}
|
2063
|
-
) })
|
2055
|
+
) }),
|
2056
|
+
" ",
|
2064
2057
|
/* @__PURE__ */ t.jsx(
|
2065
2058
|
h,
|
2066
2059
|
{
|
@@ -2069,11 +2062,51 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2069
2062
|
}
|
2070
2063
|
)
|
2071
2064
|
] }) })
|
2072
|
-
|
2073
|
-
|
2074
|
-
|
2065
|
+
}
|
2066
|
+
),
|
2067
|
+
/* @__PURE__ */ t.jsxs(
|
2068
|
+
re,
|
2069
|
+
{
|
2070
|
+
id: "suggestedDocs",
|
2071
|
+
title: /* @__PURE__ */ t.jsx(
|
2072
|
+
h,
|
2073
|
+
{
|
2074
|
+
id: "step.docUpload.suggestedDocumentTypes",
|
2075
|
+
defaultMessage: "Suggested document types"
|
2076
|
+
}
|
2077
|
+
),
|
2078
|
+
defaultState: U === "checkbox-requirements" ? "closed" : "open",
|
2079
|
+
children: [
|
2080
|
+
C && /* @__PURE__ */ t.jsx(h, { id: "step.docUpload.acceptableUploadExamples" }),
|
2081
|
+
/* @__PURE__ */ t.jsxs("ul", { className: "sid-acceptable-document-types", children: [
|
2082
|
+
(C ? wt : Na)(
|
2083
|
+
m,
|
2084
|
+
c
|
2085
|
+
).map((i) => /* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(h, { id: i }) }, i)),
|
2086
|
+
/* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(h, { id: "step.docUpload.acceptedTypes" }) })
|
2087
|
+
] }),
|
2088
|
+
L !== "add-doc-considerations" && H && (c === "activeDuty" || c === "reservist") && /* @__PURE__ */ t.jsx("div", { className: "sid-acceptable-document-types", children: /* @__PURE__ */ t.jsxs("p", { children: [
|
2089
|
+
/* @__PURE__ */ t.jsx("span", { className: "display-block", children: /* @__PURE__ */ t.jsx("strong", { children: /* @__PURE__ */ t.jsx(
|
2090
|
+
h,
|
2091
|
+
{
|
2092
|
+
id: "step.docUpload.acceptableUploads.doNotUploadMilitaryIdTitle",
|
2093
|
+
defaultMessage: "Do not upload a photo of your military ID."
|
2094
|
+
}
|
2095
|
+
) }) }),
|
2096
|
+
/* @__PURE__ */ t.jsx(
|
2097
|
+
h,
|
2098
|
+
{
|
2099
|
+
id: "step.docUpload.acceptableUploads.doNotUploadMilitaryIdContent",
|
2100
|
+
defaultMessage: "In accordance with federal law, SheerID does not accept submissions of active duty/reservist military ID cards."
|
2101
|
+
}
|
2102
|
+
)
|
2103
|
+
] }) })
|
2104
|
+
]
|
2105
|
+
}
|
2106
|
+
)
|
2107
|
+
] }),
|
2075
2108
|
/* @__PURE__ */ t.jsxs(
|
2076
|
-
|
2109
|
+
re,
|
2077
2110
|
{
|
2078
2111
|
id: "whatHappensNext",
|
2079
2112
|
title: /* @__PURE__ */ t.jsx(
|
@@ -2105,7 +2138,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2105
2138
|
id: "step.docUpload.reviewTime",
|
2106
2139
|
defaultMessage: "Expected review time is {estimatedWaitTime}.",
|
2107
2140
|
values: {
|
2108
|
-
estimatedWaitTime:
|
2141
|
+
estimatedWaitTime: Rt(s, v, a).estReviewTime
|
2109
2142
|
}
|
2110
2143
|
}
|
2111
2144
|
) }),
|
@@ -2114,7 +2147,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2114
2147
|
}
|
2115
2148
|
),
|
2116
2149
|
/* @__PURE__ */ t.jsx(
|
2117
|
-
|
2150
|
+
re,
|
2118
2151
|
{
|
2119
2152
|
id: "canIFinishLater",
|
2120
2153
|
title: /* @__PURE__ */ t.jsx(
|
@@ -2133,12 +2166,12 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2133
2166
|
) })
|
2134
2167
|
}
|
2135
2168
|
),
|
2136
|
-
|
2169
|
+
D && /* @__PURE__ */ t.jsx("div", { className: "sid-submit sid-override-submit sid-l-space-top-sm", children: /* @__PURE__ */ t.jsx(
|
2137
2170
|
"a",
|
2138
2171
|
{
|
2139
2172
|
href: "#",
|
2140
2173
|
className: "sid-link sid-override-link",
|
2141
|
-
onClick: () =>
|
2174
|
+
onClick: () => me(),
|
2142
2175
|
role: "button",
|
2143
2176
|
children: /* @__PURE__ */ t.jsx(
|
2144
2177
|
h,
|