@sheerid/jslib-nightly 2.110.0-alpha.3 → 2.111.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_mysheerid-preview.css +3 -3
- package/_mysheerid-preview.js +8 -9
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/EmailLoopPending-Dtf0p85F.js +3 -3
- package/chunk/EmailLoopPending-Dy8mLFvV.js +3 -3
- package/chunk/LicensedProfessionalOrganizationComponent-BYijEfDT.js +3 -3
- package/chunk/LicensedProfessionalOrganizationComponent-CiYU-2dW.js +3 -3
- package/chunk/Onfido-AyvUk6wg.js +3 -3
- package/chunk/StepIDCheckLoopOnfido-CmNwFqjD.js +3 -3
- package/chunk/StepIDCheckLoopOnfido-DtbplNxs.js +3 -3
- package/chunk/StepIDCheckLoopRegula-RoX971sR.js +3 -3
- package/chunk/StepIDCheckLoopRegula-oqf-QxHT.js +3 -3
- package/chunk/StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js +3 -3
- package/chunk/StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js +3 -3
- package/chunk/ar-cFyEJIaF.js +3 -3
- package/chunk/bg-CWxXfiDq.js +3 -3
- package/chunk/bn-IN-BA_ZFkiC.js +3 -3
- package/chunk/cs-HevyelX7.js +3 -3
- package/chunk/da-ZHKfCxcv.js +3 -3
- package/chunk/de-DTV1_ggb.js +3 -3
- package/chunk/el-B6NFmX7D.js +3 -3
- package/chunk/en-GB-ByNBaer-.js +3 -3
- package/chunk/es-CL_dUc9X.js +3 -3
- package/chunk/es-ES-DGgrEzrl.js +3 -3
- package/chunk/fi-CCyjkr-W.js +3 -3
- package/chunk/fr-BDU-1C6f.js +3 -3
- package/chunk/fr-CA-CzepV5Ug.js +3 -3
- package/chunk/ga--Z6POXE0.js +3 -3
- package/chunk/hi-IN-CnIX7S9Z.js +3 -3
- package/chunk/hr-CIwjOgZE.js +3 -3
- package/chunk/hu-DBtsZZjv.js +3 -3
- package/chunk/id-Cn95yKOu.js +3 -3
- package/chunk/index-4APUDd8S.js +3 -3
- package/chunk/index-9OD0Bw98.js +3 -3
- package/chunk/index-B-PpnUEO.js +3 -3
- package/chunk/index-B8F8N-JM.js +3 -3
- package/chunk/index-B8KPM--K.js +3 -3
- package/chunk/index-BD2bjH-C.js +3 -3
- package/chunk/index-BD_a0MZT.js +3 -3
- package/chunk/index-BDrKYann.js +3 -3
- package/chunk/index-BTMETMEE.js +3 -3
- package/chunk/index-Bi9QXN5x.js +3 -3
- package/chunk/index-Bmq6cJ3F.js +3 -3
- package/chunk/index-BpZoH-Wz.js +3 -3
- package/chunk/index-BuX76GyE.js +3 -3
- package/chunk/index-C2h0Wj84.js +3 -3
- package/chunk/index-C8MQD8EK.js +3 -3
- package/chunk/index-C8u9IJUa.js +3 -3
- package/chunk/index-C96ntS0u.js +3 -3
- package/chunk/index-CHK5i4jj.js +3 -3
- package/chunk/index-CTb96lOK.js +3 -3
- package/chunk/index-CcRowarb.js +3 -3
- package/chunk/index-CeHu2Npu.js +3 -3
- package/chunk/index-DIkWpujR.js +3 -3
- package/chunk/index-DKWjcFJK.js +3 -3
- package/chunk/index-DLz31Fzh.js +3 -3
- package/chunk/index-DO5Z3e-E.js +3 -3
- package/chunk/index-DRlGAW07.js +3 -3
- package/chunk/{index-DWyv9mdQ.js → index-DVmKzrKI.js} +263 -294
- package/chunk/index-DVmKzrKI.js.map +1 -0
- package/chunk/index-DVynViqA.js +3 -3
- package/chunk/index-D_9J6arc.js +3 -3
- package/chunk/index-Dg8t7-dm.js +3 -3
- package/chunk/index-DhGg9lvf.js +3 -3
- package/chunk/index-DsgCNIS5.js +3 -3
- package/chunk/index-DvQoVn8P.js +3 -3
- package/chunk/index-DzqRsB7_.js +3 -3
- package/chunk/index-FjzhfDlx.js +3 -3
- package/chunk/index-Gfy-1H7s.js +3 -3
- package/chunk/{index-CvKNMbJg.js → index-UDwOiPQx.js} +263 -294
- package/chunk/index-UDwOiPQx.js.map +1 -0
- package/chunk/index-YSVzGeq_.js +3 -3
- package/chunk/index-_t8SsXjy.js +3 -3
- package/chunk/is-C-35gV5O.js +3 -3
- package/chunk/it-1g1KCZ3_.js +3 -3
- package/chunk/iw-T3y_XkEz.js +3 -3
- package/chunk/ja-_LmLOV42.js +3 -3
- package/chunk/ko-BTqYp7gP.js +3 -3
- package/chunk/lo-BEf8aFjR.js +3 -3
- package/chunk/lt-9RarMLGX.js +3 -3
- package/chunk/ms-Bq94w_cc.js +3 -3
- package/chunk/nl-BE-Bn-CRfZN.js +3 -3
- package/chunk/nl-DUekr_NI.js +3 -3
- package/chunk/no-FJ46uIhb.js +3 -3
- package/chunk/pl-C6tVMqAz.js +3 -3
- package/chunk/pt-BR-DsIC74KO.js +3 -3
- package/chunk/pt-BnK7xRT_.js +3 -3
- package/chunk/ro-B8dYmJdF.js +3 -3
- package/chunk/ru-CfX_ugYU.js +3 -3
- package/chunk/sk-BRnHg9rH.js +3 -3
- package/chunk/sl-CNx-fEyK.js +3 -3
- package/chunk/sr-D6KuLRjU.js +3 -3
- package/chunk/sv-Fhl5RgKE.js +3 -3
- package/chunk/sw-2Q7Jo6wp.js +3 -3
- package/chunk/th-Dl_Lc--C.js +3 -3
- package/chunk/tr-DgJYEssx.js +3 -3
- package/chunk/uk-Ck6jZOSR.js +3 -3
- package/chunk/ur-DnISxIMR.js +3 -3
- package/chunk/useCollectFieldsEndpoint-C5fsaYJe.js +3 -3
- package/chunk/useCollectFieldsEndpoint-kmLFyUA-.js +3 -3
- package/chunk/useEmailFirstExperiment-BbDrKQEs.js +3 -3
- package/chunk/useEmailFirstExperiment-CgU-itQI.js +3 -3
- package/chunk/vi-DcYRuK_r.js +3 -3
- package/chunk/zh-HK-BI-IHOGG.js +3 -3
- package/chunk/zh-eoMG5RFC.js +3 -3
- package/chunk/zu-DXIuiqYP.js +3 -3
- package/es6.css +3 -3
- package/jslib.js +4 -4
- package/lib/{EmailLoopPending-Cre8qjIh.js → EmailLoopPending-DjN3vZ8h.js} +4 -4
- package/lib/{EmailLoopPending-Cre8qjIh.js.map → EmailLoopPending-DjN3vZ8h.js.map} +1 -1
- package/lib/{LicensedProfessionalOrganizationComponent-CgXOcHnS.js → LicensedProfessionalOrganizationComponent-lVfHy0UC.js} +4 -4
- package/lib/{LicensedProfessionalOrganizationComponent-CgXOcHnS.js.map → LicensedProfessionalOrganizationComponent-lVfHy0UC.js.map} +1 -1
- package/lib/Onfido-AyvUk6wg.js +3 -3
- package/lib/StepCollectMilitaryStatusComponent-Dt0eboK3.js +11 -0
- package/lib/{StepCollectMilitaryStatusComponent-BS5xb4Yd.js.map → StepCollectMilitaryStatusComponent-Dt0eboK3.js.map} +1 -1
- package/lib/{StepIDCheckLoopOnfido-BXwRpGGs.js → StepIDCheckLoopOnfido-YZJ-2a-D.js} +4 -4
- package/lib/{StepIDCheckLoopOnfido-BXwRpGGs.js.map → StepIDCheckLoopOnfido-YZJ-2a-D.js.map} +1 -1
- package/lib/{StepIDCheckLoopRegula-auo3RIsK.js → StepIDCheckLoopRegula-DqZNt7Ht.js} +4 -4
- package/lib/{StepIDCheckLoopRegula-auo3RIsK.js.map → StepIDCheckLoopRegula-DqZNt7Ht.js.map} +1 -1
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-BTqXxSbx.js → StepInactiveMilitaryPersonalInfoComponent-DE0jIIwv.js} +5 -5
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-BTqXxSbx.js.map → StepInactiveMilitaryPersonalInfoComponent-DE0jIIwv.js.map} +1 -1
- package/lib/{VerificationApiUtils-CYrhLAc5.js → VerificationApiUtils-Do_4_Dnv.js} +4 -4
- package/lib/{VerificationApiUtils-CYrhLAc5.js.map → VerificationApiUtils-Do_4_Dnv.js.map} +1 -1
- package/lib/ar-cFyEJIaF.js +3 -3
- package/lib/bg-CWxXfiDq.js +3 -3
- package/lib/bn-IN-BA_ZFkiC.js +3 -3
- package/lib/cs-HevyelX7.js +3 -3
- package/lib/da-ZHKfCxcv.js +3 -3
- package/lib/de-DTV1_ggb.js +3 -3
- package/lib/el-B6NFmX7D.js +3 -3
- package/lib/en-GB-ByNBaer-.js +3 -3
- package/lib/es-CL_dUc9X.js +3 -3
- package/lib/es-ES-DGgrEzrl.js +3 -3
- package/lib/{es6-DSl75XAT.js → es6-poxVoIzJ.js} +34 -35
- package/lib/{es6-DSl75XAT.js.map → es6-poxVoIzJ.js.map} +1 -1
- package/lib/fi-CCyjkr-W.js +3 -3
- package/lib/fr-BDU-1C6f.js +3 -3
- package/lib/fr-CA-CzepV5Ug.js +3 -3
- package/lib/ga--Z6POXE0.js +3 -3
- package/lib/hi-IN-CnIX7S9Z.js +3 -3
- package/lib/hr-CIwjOgZE.js +3 -3
- package/lib/hu-DBtsZZjv.js +3 -3
- package/lib/id-Cn95yKOu.js +3 -3
- package/lib/{index-I6AeeLDL.js → index-8gvNHNuQ.js} +4 -4
- package/lib/{index-I6AeeLDL.js.map → index-8gvNHNuQ.js.map} +1 -1
- package/lib/{index-B_370pYV.js → index-B9L18YbP.js} +4 -4
- package/lib/{index-B_370pYV.js.map → index-B9L18YbP.js.map} +1 -1
- package/lib/{index-D0pD3Ff_.js → index-BAA5-Q6s.js} +5 -5
- package/lib/{index-D0pD3Ff_.js.map → index-BAA5-Q6s.js.map} +1 -1
- package/lib/{index-Ckk4kPQ0.js → index-BBTKJMqc.js} +5 -5
- package/lib/{index-Ckk4kPQ0.js.map → index-BBTKJMqc.js.map} +1 -1
- package/lib/{index-CybAgREt.js → index-BNHoT25f.js} +4 -4
- package/lib/{index-CybAgREt.js.map → index-BNHoT25f.js.map} +1 -1
- package/lib/{index-CAS4KMwI.js → index-BUDQ6kB0.js} +5 -5
- package/lib/{index-CAS4KMwI.js.map → index-BUDQ6kB0.js.map} +1 -1
- package/lib/{index-BPBdoCZC.js → index-BXBbpLgr.js} +4 -4
- package/lib/{index-BPBdoCZC.js.map → index-BXBbpLgr.js.map} +1 -1
- package/lib/{index-Dp_S_XV2.js → index-BafpQcYR.js} +4 -4
- package/lib/{index-Dp_S_XV2.js.map → index-BafpQcYR.js.map} +1 -1
- package/lib/index-Bbn400m7.js +11 -0
- package/lib/index-Bbn400m7.js.map +1 -0
- package/lib/{index-olSfAcZP.js → index-Br7WHwsb.js} +4 -4
- package/lib/{index-olSfAcZP.js.map → index-Br7WHwsb.js.map} +1 -1
- package/lib/{index-DdgME0fB.js → index-COTaGNqp.js} +5 -5
- package/lib/{index-DdgME0fB.js.map → index-COTaGNqp.js.map} +1 -1
- package/lib/{index-C4XS_bZQ.js → index-CYo27bij.js} +5 -5
- package/lib/{index-C4XS_bZQ.js.map → index-CYo27bij.js.map} +1 -1
- package/lib/{index-BZVT2rtp.js → index-Ca1jYME7.js} +4 -4
- package/lib/{index-BZVT2rtp.js.map → index-Ca1jYME7.js.map} +1 -1
- package/lib/index-CrWMSGa9.js +11 -0
- package/lib/index-CrWMSGa9.js.map +1 -0
- package/lib/{index-D1vG2Egn.js → index-D6OMQaSW.js} +5 -5
- package/lib/{index-D1vG2Egn.js.map → index-D6OMQaSW.js.map} +1 -1
- package/lib/{index-BGiqQRJv.js → index-D6XQwzn4.js} +6 -6
- package/lib/{index-BGiqQRJv.js.map → index-D6XQwzn4.js.map} +1 -1
- package/lib/{index-Cf2izpm6.js → index-DETmoNz-.js} +4 -4
- package/lib/{index-Cf2izpm6.js.map → index-DETmoNz-.js.map} +1 -1
- package/lib/index-DIkWpujR.js +3 -3
- package/lib/index-DJZqeNC1.js +11 -0
- package/lib/index-DJZqeNC1.js.map +1 -0
- package/lib/index-DMMKTaJQ.js +11 -0
- package/lib/index-DMMKTaJQ.js.map +1 -0
- package/lib/{index-DpW_qPLD.js → index-Dfqgoe4S.js} +486 -517
- package/lib/index-Dfqgoe4S.js.map +1 -0
- package/lib/{index-2M1vkGQp.js → index-Do5fqw8L.js} +5 -5
- package/lib/{index-2M1vkGQp.js.map → index-Do5fqw8L.js.map} +1 -1
- package/lib/{index--7YcvqGB.js → index-DtlOIrRu.js} +4 -4
- package/lib/{index--7YcvqGB.js.map → index-DtlOIrRu.js.map} +1 -1
- package/lib/{index-CkGCV3iJ.js → index-L6wHHeDC.js} +6 -6
- package/lib/{index-CkGCV3iJ.js.map → index-L6wHHeDC.js.map} +1 -1
- package/lib/is-C-35gV5O.js +3 -3
- package/lib/it-1g1KCZ3_.js +3 -3
- package/lib/iw-T3y_XkEz.js +3 -3
- package/lib/ja-_LmLOV42.js +3 -3
- package/lib/ko-BTqYp7gP.js +3 -3
- package/lib/lo-BEf8aFjR.js +3 -3
- package/lib/lt-9RarMLGX.js +3 -3
- package/lib/ms-Bq94w_cc.js +3 -3
- package/lib/nl-BE-Bn-CRfZN.js +3 -3
- package/lib/nl-DUekr_NI.js +3 -3
- package/lib/no-FJ46uIhb.js +3 -3
- package/lib/pl-C6tVMqAz.js +3 -3
- package/lib/pt-BR-DsIC74KO.js +3 -3
- package/lib/pt-BnK7xRT_.js +3 -3
- package/lib/ro-B8dYmJdF.js +3 -3
- package/lib/ru-CfX_ugYU.js +3 -3
- package/lib/sk-BRnHg9rH.js +3 -3
- package/lib/sl-CNx-fEyK.js +3 -3
- package/lib/sr-D6KuLRjU.js +3 -3
- package/lib/sv-Fhl5RgKE.js +3 -3
- package/lib/sw-2Q7Jo6wp.js +3 -3
- package/lib/th-Dl_Lc--C.js +3 -3
- package/lib/tr-DgJYEssx.js +3 -3
- package/lib/uk-Ck6jZOSR.js +3 -3
- package/lib/ur-DnISxIMR.js +3 -3
- package/lib/{useCollectFieldsEndpoint-ns7qNsiO.js → useCollectFieldsEndpoint-gjfFTjKY.js} +5 -5
- package/lib/{useCollectFieldsEndpoint-ns7qNsiO.js.map → useCollectFieldsEndpoint-gjfFTjKY.js.map} +1 -1
- package/lib/{useEmailFirstExperiment-Pt42Fdx4.js → useEmailFirstExperiment-Bdboa39j.js} +4 -4
- package/lib/{useEmailFirstExperiment-Pt42Fdx4.js.map → useEmailFirstExperiment-Bdboa39j.js.map} +1 -1
- package/lib/vi-DcYRuK_r.js +3 -3
- package/lib/zh-HK-BI-IHOGG.js +3 -3
- package/lib/zh-eoMG5RFC.js +3 -3
- package/lib/zu-DXIuiqYP.js +3 -3
- package/package.json +1 -1
- package/sheerid-install.css +3 -3
- package/sheerid-install.js +4 -4
- package/sheerid.css +3 -3
- package/sheerid.js +8 -9
- package/sheerid.js.map +1 -1
- package/src/components/FeatureFlags/flags.d.ts +0 -1
- package/src/lib/types/runtimeTypes.d.ts +1 -1
- package/types-reference.zip +0 -0
- package/chunk/index-CvKNMbJg.js.map +0 -1
- package/chunk/index-DWyv9mdQ.js.map +0 -1
- package/lib/StepCollectMilitaryStatusComponent-BS5xb4Yd.js +0 -11
- package/lib/index-CdNQfqWr.js +0 -11
- package/lib/index-CdNQfqWr.js.map +0 -1
- package/lib/index-DUy4cVnB.js +0 -11
- package/lib/index-DUy4cVnB.js.map +0 -1
- package/lib/index-DpW_qPLD.js.map +0 -1
- package/lib/index-NT4L5pb-.js +0 -11
- package/lib/index-NT4L5pb-.js.map +0 -1
- package/lib/index-olrPjiQU.js +0 -11
- package/lib/index-olrPjiQU.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.
|
8
|
-
* BUILD_TIMESTAMP:
|
9
|
-
* BUILD_DATE:
|
7
|
+
* VERSION: 2.111.0-alpha.0
|
8
|
+
* BUILD_TIMESTAMP: 1748974011255
|
9
|
+
* BUILD_DATE: Tue Jun 03 2025 18:06:51 GMT+0000 (Coordinated Universal Time)
|
10
10
|
* BUILD_COMMIT: 1131f80d20a6bbdb0dedde7ae8aefd5ede8d726e
|
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 Ie, aU as Pe, aV as q, aW as Z, 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 Ce, 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 Rt, b2 as wt, b3 as Ft, k as Nt, l as Oe, V as xe, ah as Ct, b4 as Ot, b5 as Tt, b6 as St } from "../_mysheerid-preview.js";
|
13
|
+
const Lt = (e, a, o) => Ie(e, (r) => {
|
14
|
+
Object.keys(e).filter((s) => !!e[s] && s.includes("file")).map((s) => e[s]).concat(a, Array(Pe).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 Ie(e, (o) => {
|
21
|
+
Object.keys(e).filter((r) => r.includes("file") && !r.includes(a.toString())).map((r) => e[r]).concat(Array(Pe).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 q(this, void 0, void 0, function() {
|
140
|
+
return Z(this, function(a) {
|
141
|
+
return Ee(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 Ee(e.dataTransfer);
|
149
149
|
}
|
150
150
|
function zt(e) {
|
151
|
-
return
|
151
|
+
return Ee(e) && Ee(e.target);
|
152
152
|
}
|
153
|
-
function
|
153
|
+
function Ee(e) {
|
154
154
|
return typeof e == "object" && e !== null;
|
155
155
|
}
|
156
156
|
function Vt(e) {
|
157
|
-
return
|
157
|
+
return Se(e.target.files).map(function(a) {
|
158
158
|
return ne(a);
|
159
159
|
});
|
160
160
|
}
|
161
161
|
function Wt(e) {
|
162
|
-
return
|
162
|
+
return q(this, void 0, void 0, function() {
|
163
163
|
var a;
|
164
|
-
return
|
164
|
+
return Z(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 q(this, void 0, void 0, function() {
|
180
180
|
var o, r;
|
181
|
-
return
|
181
|
+
return Z(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 = Se(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(Se(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 Se(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 q(this, void 0, void 0, function() {
|
231
|
+
return Z(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 q(m, void 0, void 0, function() {
|
244
|
+
var v, x, R;
|
245
|
+
return Z(this, function(U) {
|
246
|
+
switch (U.label) {
|
247
247
|
case 0:
|
248
248
|
if (c.length) return [3, 5];
|
249
|
-
|
249
|
+
U.label = 1;
|
250
250
|
case 1:
|
251
|
-
return
|
251
|
+
return U.trys.push([1, 3, , 4]), [4, Promise.all(s)];
|
252
252
|
case 2:
|
253
|
-
return v =
|
253
|
+
return v = U.sent(), o(v), [3, 4];
|
254
254
|
case 3:
|
255
|
-
return x =
|
255
|
+
return x = U.sent(), r(x), [3, 4];
|
256
256
|
case 4:
|
257
257
|
return [3, 6];
|
258
258
|
case 5:
|
259
|
-
|
259
|
+
R = Promise.all(c.map(Kt)), s.push(R), d(), U.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 q(this, void 0, void 0, function() {
|
277
|
+
return Z(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 (re(e.size))
|
396
|
+
if (re(a) && re(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 (re(a) && e.size < a) return [!1, Qe(a)];
|
401
|
+
if (re(o) && e.size > o) return [!1, Ze(o)];
|
402
402
|
}
|
403
403
|
return [!0, null];
|
404
404
|
}
|
405
|
-
function
|
405
|
+
function re(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), R = x[0], U = lt(c, r, s), N = Ke(U, 1), w = N[0];
|
412
|
+
return R && w;
|
413
413
|
});
|
414
414
|
}
|
415
|
-
function
|
415
|
+
function ve(e) {
|
416
416
|
return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
|
417
417
|
}
|
418
|
-
function
|
418
|
+
function be(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 S() {
|
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 !ve(r) && c && c.apply(void 0, [r].concat(d)), ve(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 Le(e);
|
474
474
|
}
|
475
|
-
function
|
475
|
+
function Te(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 Le(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 Le(e, a);
|
488
488
|
}
|
489
489
|
}
|
490
|
-
function
|
490
|
+
function Le(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
|
+
Me(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 Me(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 Ue(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 = Ue(e, ua), s = ja(r), d = s.open, m = Ue(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 ke = {
|
747
747
|
isFocused: !1,
|
748
748
|
isFileDialogActive: !1,
|
749
749
|
isDragActive: !1,
|
@@ -754,97 +754,97 @@ var Pe = {
|
|
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,
|
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, R = a.onDragLeave, U = a.onDragOver, N = a.onDrop, w = a.onDropAccepted, Q = a.onDropRejected, B = a.onFileDialogCancel, z = a.onFileDialogOpen, V = a.useFsAccessApi, X = a.preventDropOnDocument, y = a.noClick, J = a.noKeyboard, C = a.noDrag, P = a.noDragEventsBubbling, O = a.validator, Y = f.useMemo(function() {
|
758
|
+
return typeof z == "function" ? z : tt;
|
759
|
+
}, [z]), H = f.useMemo(function() {
|
758
760
|
return typeof B == "function" ? B : tt;
|
759
|
-
}, [B]),
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
if (R.current) {
|
764
|
-
var p = R.current.files;
|
761
|
+
}, [B]), j = f.useRef(null), D = f.useRef(null), Be = f.useReducer(Da, ke), ie = Te(Be, 2), W = ie[0], _ = ie[1], le = W.isFocused, ee = W.isFileDialogActive, de = W.draggedFiles, ce = function() {
|
762
|
+
ee && setTimeout(function() {
|
763
|
+
if (D.current) {
|
764
|
+
var p = D.current.files;
|
765
765
|
p.length || (_({
|
766
766
|
type: "closeDialog"
|
767
|
-
}),
|
767
|
+
}), H());
|
768
768
|
}
|
769
769
|
}, 300);
|
770
770
|
};
|
771
771
|
f.useEffect(function() {
|
772
|
-
return
|
773
|
-
} : (window.addEventListener("focus",
|
774
|
-
window.removeEventListener("focus",
|
772
|
+
return V && Je() ? function() {
|
773
|
+
} : (window.addEventListener("focus", ce, !1), function() {
|
774
|
+
window.removeEventListener("focus", ce, !1);
|
775
775
|
});
|
776
|
-
}, [
|
777
|
-
var
|
778
|
-
j.current && j.current.contains(p.target) || (p.preventDefault(),
|
776
|
+
}, [D, ee, H, V]);
|
777
|
+
var T = f.useRef([]), pe = function(p) {
|
778
|
+
j.current && j.current.contains(p.target) || (p.preventDefault(), T.current = []);
|
779
779
|
};
|
780
780
|
f.useEffect(function() {
|
781
|
-
return
|
782
|
-
|
781
|
+
return X && (document.addEventListener("dragover", Xe, !1), document.addEventListener("drop", pe, !1)), function() {
|
782
|
+
X && (document.removeEventListener("dragover", Xe), document.removeEventListener("drop", pe));
|
783
783
|
};
|
784
|
-
}, [j,
|
784
|
+
}, [j, X]);
|
785
785
|
var ue = f.useCallback(function(l) {
|
786
|
-
l.preventDefault(), l.persist(),
|
787
|
-
|
786
|
+
l.preventDefault(), l.persist(), he(l), T.current = [].concat(ga(T.current), [l.target]), be(l) && Promise.resolve(s(l)).then(function(p) {
|
787
|
+
ve(l) && !P || (_({
|
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, P]), fe = f.useCallback(function(l) {
|
794
|
+
l.preventDefault(), l.persist(), he(l);
|
795
|
+
var p = be(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 && U && U(l), !1;
|
802
|
+
}, [U, P]), G = f.useCallback(function(l) {
|
803
|
+
l.preventDefault(), l.persist(), he(l);
|
804
|
+
var p = T.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), T.current = p, !(p.length > 0) && (_({
|
808
808
|
isDragActive: !1,
|
809
809
|
type: "setDraggedFiles",
|
810
810
|
draggedFiles: []
|
811
|
-
}),
|
812
|
-
}, [j,
|
811
|
+
}), be(l) && R && R(l));
|
812
|
+
}, [j, R, P]), i = 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(F) {
|
815
|
+
var oe = it(F, o), K = Te(oe, 2), De = K[0], _e = K[1], Ae = lt(F, m, d), ge = Te(Ae, 2), Re = ge[0], we = ge[1], Fe = O ? O(F) : null;
|
816
|
+
if (De && Re && !Fe)
|
817
|
+
E.push(F);
|
818
818
|
else {
|
819
|
-
var
|
820
|
-
|
821
|
-
file:
|
822
|
-
errors:
|
819
|
+
var Ne = [_e, we];
|
820
|
+
Fe && (Ne = Ne.concat(Fe)), A.push({
|
821
|
+
file: F,
|
822
|
+
errors: Ne.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(F) {
|
828
828
|
A.push({
|
829
|
-
file:
|
829
|
+
file: F,
|
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
|
+
}), N && N(E, A, p), A.length > 0 && Q && Q(A, p), E.length > 0 && w && w(E, p);
|
837
|
+
}, [_, c, o, m, d, v, N, w, Q, O]), I = f.useCallback(function(l) {
|
838
|
+
l.preventDefault(), l.persist(), he(l), T.current = [], be(l) && Promise.resolve(s(l)).then(function(p) {
|
839
|
+
ve(l) && !P || i(p, l);
|
840
840
|
}), _({
|
841
841
|
type: "reset"
|
842
842
|
});
|
843
|
-
}, [s,
|
844
|
-
if (
|
843
|
+
}, [s, i, P]), L = f.useCallback(function() {
|
844
|
+
if (V && Je()) {
|
845
845
|
_({
|
846
846
|
type: "openDialog"
|
847
|
-
}),
|
847
|
+
}), Y();
|
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 i(p, null);
|
856
856
|
}).catch(function(p) {
|
857
|
-
return
|
857
|
+
return H(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
|
+
D.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
|
+
}), Y(), D.current.value = null, D.current.click());
|
868
|
+
}, [_, Y, H, V, i, o, c]), $ = f.useCallback(function(l) {
|
869
|
+
!j.current || !j.current.isEqualNode(l.target) || (l.keyCode === 32 || l.keyCode === 13) && (l.preventDefault(), L());
|
870
|
+
}, [j, D, L]), te = f.useCallback(function() {
|
871
871
|
_({
|
872
872
|
type: "focus"
|
873
873
|
});
|
874
|
-
}, []),
|
874
|
+
}, []), ae = f.useCallback(function() {
|
875
875
|
_({
|
876
876
|
type: "blur"
|
877
877
|
});
|
878
|
-
}, []),
|
879
|
-
|
880
|
-
}, [
|
878
|
+
}, []), M = f.useCallback(function() {
|
879
|
+
y || (ca() ? setTimeout(L, 0) : L());
|
880
|
+
}, [D, y, L]), k = function(p) {
|
881
881
|
return r ? null : p;
|
882
|
-
},
|
883
|
-
return
|
882
|
+
}, je = function(p) {
|
883
|
+
return J ? null : k(p);
|
884
|
+
}, me = function(p) {
|
885
|
+
return C ? null : k(p);
|
884
886
|
}, he = function(p) {
|
885
|
-
|
886
|
-
}, ge = function(p) {
|
887
|
-
U && p.stopPropagation();
|
887
|
+
P && 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, F = l.onKeyDown, oe = l.onFocus, K = l.onBlur, De = l.onClick, _e = l.onDragEnter, Ae = l.onDragOver, ge = l.onDragLeave, Re = l.onDrop, we = Ue(l, ma);
|
891
|
+
return b(b(Me({
|
892
|
+
onKeyDown: je(S(F, $)),
|
893
|
+
onFocus: je(S(oe, te)),
|
894
|
+
onBlur: je(S(K, ae)),
|
895
|
+
onClick: k(S(De, M)),
|
896
|
+
onDragEnter: me(S(_e, ue)),
|
897
|
+
onDragOver: me(S(Ae, fe)),
|
898
|
+
onDragLeave: me(S(ge, G)),
|
899
|
+
onDrop: me(S(Re, I)),
|
900
900
|
role: typeof A == "string" && A !== "" ? A : "button"
|
901
|
-
}, E, j), !r && !
|
901
|
+
}, E, j), !r && !J ? {
|
902
902
|
tabIndex: 0
|
903
|
-
} : {}),
|
903
|
+
} : {}), we);
|
904
904
|
};
|
905
|
-
}, [j,
|
905
|
+
}, [j, $, te, ae, M, ue, fe, G, I, J, C, 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, F = l.onClick, oe = Ue(l, ha), K = Me({
|
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: k(S(A, I)),
|
917
|
+
onClick: k(S(F, ut)),
|
918
918
|
autoComplete: "off",
|
919
919
|
tabIndex: -1
|
920
|
-
}, E,
|
921
|
-
return b(b({},
|
920
|
+
}, E, D);
|
921
|
+
return b(b({}, K), oe);
|
922
922
|
};
|
923
|
-
}, [
|
924
|
-
files:
|
923
|
+
}, [D, o, c, I, r]), Ye = de.length, He = Ye > 0 && ia({
|
924
|
+
files: de,
|
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({}, W), {}, {
|
932
932
|
isDragAccept: He,
|
933
933
|
isDragReject: mt,
|
934
|
-
isFocused:
|
934
|
+
isFocused: le && !r,
|
935
935
|
getRootProps: pt,
|
936
936
|
getInputProps: ft,
|
937
937
|
rootRef: j,
|
938
|
-
inputRef:
|
939
|
-
open:
|
938
|
+
inputRef: D,
|
939
|
+
open: k(L)
|
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({}, ke), {}, {
|
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({}, ke);
|
973
973
|
default:
|
974
974
|
return e;
|
975
975
|
}
|
976
976
|
}
|
977
977
|
function tt() {
|
978
978
|
}
|
979
|
-
function
|
979
|
+
function ye({
|
980
980
|
title: e,
|
981
981
|
children: a,
|
982
982
|
id: o,
|
@@ -1115,7 +1115,7 @@ const _a = {
|
|
1115
1115
|
[n.LICENSED_REAL_ESTATE_AGENT]: [
|
1116
1116
|
"step.docUpload.acceptableUploads.licensedProfessional.license"
|
1117
1117
|
],
|
1118
|
-
[n.VETERINARIAN]: [],
|
1118
|
+
[n.VETERINARIAN]: ["step.docUpload.acceptableUploads.licensedProfessional.license"],
|
1119
1119
|
[n.SNAP_BENEFITS]: [
|
1120
1120
|
"step.docUpload.acceptableUploads.lowIncome.programCard",
|
1121
1121
|
"step.docUpload.acceptableUploads.lowIncome.programApprovalLetter",
|
@@ -1128,7 +1128,9 @@ const _a = {
|
|
1128
1128
|
"step.docUpload.acceptableUploads.lowIncome.programApprovalScreenshot",
|
1129
1129
|
"step.docUpload.acceptableUploads.lowIncome.programBankStatement"
|
1130
1130
|
],
|
1131
|
-
[n.CHILD_CARE_WORKER]: [
|
1131
|
+
[n.CHILD_CARE_WORKER]: [
|
1132
|
+
"step.docUpload.acceptableUploads.licensedProfessional.license"
|
1133
|
+
],
|
1132
1134
|
[n.LIBRARIAN]: [],
|
1133
1135
|
[n.INTERIOR_DESIGNER]: [],
|
1134
1136
|
[n.ARCHITECT]: [],
|
@@ -1136,7 +1138,7 @@ const _a = {
|
|
1136
1138
|
[n.NUTRITION_PROFESSIONAL]: [
|
1137
1139
|
"step.docUpload.acceptableUploads.licensedProfessional.license"
|
1138
1140
|
]
|
1139
|
-
},
|
1141
|
+
}, Ra = {
|
1140
1142
|
[u.STUDENT]: [
|
1141
1143
|
"step.docUpload.uploadInfo.fullName",
|
1142
1144
|
"step.docUpload.uploadInfo.institutionName",
|
@@ -1194,7 +1196,7 @@ const _a = {
|
|
1194
1196
|
"step.docUpload.uploadInfo.fullName",
|
1195
1197
|
"step.docUpload.uploadInfo.lowIncome.validDate"
|
1196
1198
|
]
|
1197
|
-
},
|
1199
|
+
}, wa = {
|
1198
1200
|
[n.ACTIVE_DUTY]: ["step.docUpload.uploadInfo.military.activeDuty.status"],
|
1199
1201
|
[n.VETERAN]: ["step.docUpload.uploadInfo.military.veteran.status"],
|
1200
1202
|
[n.RESERVIST]: ["step.docUpload.uploadInfo.military.reservist.status"],
|
@@ -1241,12 +1243,12 @@ function Na(e, a) {
|
|
1241
1243
|
function Ca(e, a) {
|
1242
1244
|
return Fa[a] || [
|
1243
1245
|
.../* @__PURE__ */ new Set([
|
1244
|
-
...
|
1245
|
-
...
|
1246
|
+
...wa[a] || [],
|
1247
|
+
...Ra[e] || []
|
1246
1248
|
])
|
1247
1249
|
];
|
1248
1250
|
}
|
1249
|
-
const
|
1251
|
+
const Oa = ({
|
1250
1252
|
options: e,
|
1251
1253
|
selected: a,
|
1252
1254
|
onChange: o,
|
@@ -1291,7 +1293,7 @@ const Ta = ({
|
|
1291
1293
|
] })
|
1292
1294
|
)) })
|
1293
1295
|
] });
|
1294
|
-
},
|
1296
|
+
}, Ta = ({ children: e }) => /* @__PURE__ */ t.jsxs("div", { className: "sid-named-divider", children: [
|
1295
1297
|
/* @__PURE__ */ t.jsx("hr", { className: "sid-named-divider__rule" }),
|
1296
1298
|
/* @__PURE__ */ t.jsx("p", { className: "sid-named-divider__text", children: e })
|
1297
1299
|
] });
|
@@ -1759,98 +1761,98 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1759
1761
|
),
|
1760
1762
|
a ? a.map((r) => /* @__PURE__ */ t.jsx("div", { className: "sid-field-error-redesign__doc-upload__span", children: r }, `error-${r}`)) : null
|
1761
1763
|
] }) : null, $a = ({ verificationService: e, intl: a }) => {
|
1762
|
-
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: R } = e, { overrideEnabled: U } = e.programTheme, N = Ce("doc-upload-redesign-use-legacy-message-keys"), w = (N ? Ga : Ca)(
|
1763
1765
|
m,
|
1764
1766
|
c
|
1765
|
-
),
|
1767
|
+
), Q = e.verificationResponse.country === "US", B = (i) => ({
|
1766
1768
|
name: i.name,
|
1767
1769
|
url: i.type.includes("image") ? URL.createObjectURL(i) : ""
|
1768
|
-
}), [
|
1769
|
-
It(Et) &&
|
1770
|
+
}), [z, V] = f.useState({}), { userDidConvert: X } = yt(m), y = [], J = Ce("doc-upload-may24"), C = s.segment === "student" && s.locale === "en-US" ? J : "default", O = Ce("docUpload-assertion-checklist") === "checklist", [Y, H] = f.useState([]), [j, D] = f.useState(!1);
|
1771
|
+
It(Et) && y.push({
|
1770
1772
|
name: "myFile.png",
|
1771
1773
|
url: ""
|
1772
1774
|
});
|
1773
|
-
const
|
1775
|
+
const ie = a.formatMessage({
|
1774
1776
|
id: "step.docUpload.addFile",
|
1775
1777
|
defaultMessage: "Add documents"
|
1776
1778
|
});
|
1777
|
-
x.file1 && x.file1.name &&
|
1778
|
-
const
|
1779
|
-
r(!1), e.updateViewModel(Lt(x, i,
|
1780
|
-
},
|
1781
|
-
const
|
1782
|
-
r(!1),
|
1783
|
-
},
|
1784
|
-
const
|
1785
|
-
for (const
|
1786
|
-
const
|
1787
|
-
|
1788
|
-
|
1779
|
+
x.file1 && x.file1.name && y.push(B(x.file1)), x.file2 && x.file2.name && y.push(B(x.file2)), x.file3 && x.file3.name && y.push(B(x.file3));
|
1780
|
+
const W = y.map((i) => z[i.name]), _ = (i, I) => {
|
1781
|
+
r(!1), e.updateViewModel(Lt(x, i, I));
|
1782
|
+
}, le = (i) => {
|
1783
|
+
const I = i + 1;
|
1784
|
+
r(!1), H([]), D(!1), e.updateViewModel(Mt(x, I));
|
1785
|
+
}, ee = R.docUpload || vt(() => e.verificationResponse.errorIds[0], void 0), de = (i, I) => {
|
1786
|
+
const L = [], $ = [], te = [];
|
1787
|
+
for (const M of i) {
|
1788
|
+
const k = St(
|
1789
|
+
xe.docUpload,
|
1790
|
+
M,
|
1789
1791
|
e.formValidationOptions
|
1790
1792
|
);
|
1791
|
-
|
1793
|
+
k === void 0 ? (I && V({ ...z, [M.name]: I }), L.push(M)) : (te.push(M.name), $.push(k));
|
1792
1794
|
}
|
1793
|
-
let
|
1794
|
-
|
1795
|
-
|
1796
|
-
})), e.updateFieldValidationErrors(
|
1797
|
-
},
|
1798
|
-
Oe.info("StepDocUploadComponent submitting form"),
|
1799
|
-
|
1795
|
+
let ae;
|
1796
|
+
$ && (ae = Ie(R, (M) => {
|
1797
|
+
M.docUpload = $[0];
|
1798
|
+
})), e.updateFieldValidationErrors(ae), _(L, te);
|
1799
|
+
}, ce = () => {
|
1800
|
+
Oe.info("StepDocUploadComponent submitting form"), D(!0), (O && w.every((i) => Y.includes(i)) || !O) && (e.submitStep(
|
1801
|
+
xe.docUpload,
|
1800
1802
|
x,
|
1801
1803
|
e.verificationResponse
|
1802
|
-
),
|
1803
|
-
},
|
1804
|
-
i.length > 0 ?
|
1804
|
+
), X(Ot, Tt));
|
1805
|
+
}, T = (i, I) => {
|
1806
|
+
i.length > 0 ? de(i, I) : i.length <= 0 && Oe.error(
|
1805
1807
|
"No files were accepted or rejected. Unknown error.",
|
1806
|
-
|
1808
|
+
xe.docUpload
|
1807
1809
|
);
|
1810
|
+
}, pe = (i) => {
|
1811
|
+
T(Array.from(i.target.files));
|
1808
1812
|
}, ue = (i) => {
|
1809
|
-
|
1810
|
-
|
1811
|
-
|
1812
|
-
(i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), y.click());
|
1813
|
-
}, me = async () => {
|
1813
|
+
const I = Ct("addFile");
|
1814
|
+
(i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), I.click());
|
1815
|
+
}, fe = async () => {
|
1814
1816
|
Oe.info("StepDocUploadComponent submitting form after skipping document upload");
|
1815
|
-
const i =
|
1817
|
+
const i = Ie(x, () => {
|
1816
1818
|
});
|
1817
1819
|
e.submitStep(
|
1818
|
-
|
1820
|
+
xe.cancelDocUpload,
|
1819
1821
|
i,
|
1820
1822
|
e.verificationResponse
|
1821
1823
|
);
|
1822
|
-
},
|
1823
|
-
(i) => !
|
1824
|
+
}, G = /* @__PURE__ */ t.jsx("div", { className: "sid-upload-wrap sid-l-space-top-md sid-l-space-btm-md", children: C === "doc-type-icons" ? /* @__PURE__ */ t.jsx(t.Fragment, { children: Ba.map(
|
1825
|
+
(i) => !W.includes(i) && /* @__PURE__ */ t.jsx(
|
1824
1826
|
Ha,
|
1825
1827
|
{
|
1826
|
-
onFileDrop:
|
1828
|
+
onFileDrop: T,
|
1827
1829
|
type: i,
|
1828
|
-
style: i === "ID_CARD" &&
|
1830
|
+
style: i === "ID_CARD" && y.length === 0 ? "large" : "small"
|
1829
1831
|
}
|
1830
1832
|
)
|
1831
1833
|
) }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
1832
1834
|
/* @__PURE__ */ t.jsx(
|
1833
1835
|
ot,
|
1834
1836
|
{
|
1835
|
-
fieldValidationErrors:
|
1836
|
-
errorId:
|
1837
|
+
fieldValidationErrors: R,
|
1838
|
+
errorId: ee,
|
1837
1839
|
erroredFileNames: x.erroredFileNames
|
1838
1840
|
}
|
1839
1841
|
),
|
1840
|
-
/* @__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) => T(i), accept: ze.join(","), children: ({ getRootProps: i, getInputProps: I }) => /* @__PURE__ */ t.jsxs(
|
1841
1843
|
"div",
|
1842
1844
|
{
|
1843
1845
|
...i(),
|
1844
1846
|
className: "sid-docdrop-wrap__dropzone sid-docdrop-wrap__dropzone_height",
|
1845
1847
|
children: [
|
1846
|
-
/* @__PURE__ */ t.jsx("input", { ...
|
1848
|
+
/* @__PURE__ */ t.jsx("input", { ...I({ accept: ze.join(",") }) }),
|
1847
1849
|
/* @__PURE__ */ t.jsx(
|
1848
1850
|
"button",
|
1849
1851
|
{
|
1850
1852
|
tabIndex: -1,
|
1851
1853
|
className: "sid-btn sid-btn--dark sid-doc-upload-submit-btn sid-submit__continue border-radius",
|
1852
1854
|
type: "button",
|
1853
|
-
"aria-label":
|
1855
|
+
"aria-label": ie,
|
1854
1856
|
children: /* @__PURE__ */ t.jsx(
|
1855
1857
|
h,
|
1856
1858
|
{
|
@@ -1868,7 +1870,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1868
1870
|
"div",
|
1869
1871
|
{
|
1870
1872
|
id: "sid-step-doc-upload",
|
1871
|
-
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__${C}`,
|
1872
1874
|
children: [
|
1873
1875
|
/* @__PURE__ */ t.jsxs("div", { role: "main", children: [
|
1874
1876
|
/* @__PURE__ */ t.jsxs("div", { className: "sid-header sid-l-space-top-md", children: [
|
@@ -1899,21 +1901,21 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1899
1901
|
) })
|
1900
1902
|
] })
|
1901
1903
|
] }),
|
1902
|
-
|
1903
|
-
(
|
1904
|
+
C === "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
|
+
(O && y.length === 0 || !O) && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
1904
1906
|
/* @__PURE__ */ t.jsx("h2", { className: "sid-header__subtitle sid-l-space-btm-md sid-l-space-top-md", children: /* @__PURE__ */ t.jsx(
|
1905
1907
|
h,
|
1906
1908
|
{
|
1907
|
-
id:
|
1909
|
+
id: N ? "step.docUpload.uploadInstructions" : "step.docUpload.documentsMustInclude",
|
1908
1910
|
defaultMessage: "Your documents must include:"
|
1909
1911
|
}
|
1910
1912
|
) }),
|
1911
|
-
/* @__PURE__ */ t.jsx("ul", { className: "sid-doc-upload-requirements", children:
|
1913
|
+
/* @__PURE__ */ t.jsx("ul", { className: "sid-doc-upload-requirements", children: w.map((i) => /* @__PURE__ */ t.jsx("li", { className: "sid-doc-upload-requirements__definition", children: /* @__PURE__ */ t.jsx(h, { id: i }) }, i)) })
|
1912
1914
|
] }),
|
1913
|
-
|
1914
|
-
|
1915
|
+
y.length === 0 && G,
|
1916
|
+
y.length > 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
1915
1917
|
/* @__PURE__ */ t.jsxs("div", { className: "sid-file-list sid-l-space-top-md", children: [
|
1916
|
-
|
1918
|
+
y.map((i, I) => /* @__PURE__ */ t.jsxs("div", { className: "sid-file-list__file", children: [
|
1917
1919
|
/* @__PURE__ */ t.jsx("div", { className: "sid-file-list__thumbnail-wrapper", children: i.url ? /* @__PURE__ */ t.jsx(
|
1918
1920
|
"img",
|
1919
1921
|
{
|
@@ -1937,19 +1939,19 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1937
1939
|
tabIndex: 0,
|
1938
1940
|
"aria-label": `Remove file ${i.name}`,
|
1939
1941
|
className: "sid-file-list__remove-btn",
|
1940
|
-
onClick: () =>
|
1941
|
-
onKeyPress: () =>
|
1942
|
+
onClick: () => le(I),
|
1943
|
+
onKeyPress: () => le(I)
|
1942
1944
|
}
|
1943
1945
|
)
|
1944
1946
|
] })
|
1945
1947
|
] }, i.name)),
|
1946
|
-
|
1948
|
+
y.length < Pe && C !== "doc-type-icons" && /* @__PURE__ */ t.jsx(t.Fragment, { children: o ? /* @__PURE__ */ t.jsx("div", { className: "sid-add-more-files", children: G }) : /* @__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(
|
1947
1949
|
"label",
|
1948
1950
|
{
|
1949
1951
|
className: "sid-docdrop-wrap__dropzone thumbnail_wrapper",
|
1950
1952
|
htmlFor: "sid-take-photo-input",
|
1951
1953
|
role: "button",
|
1952
|
-
onKeyUp: (i) =>
|
1954
|
+
onKeyUp: (i) => ue(i),
|
1953
1955
|
tabIndex: 0,
|
1954
1956
|
children: [
|
1955
1957
|
/* @__PURE__ */ t.jsx(_t, { className: "sid-uploadzone__icon", width: "16px" }),
|
@@ -1963,7 +1965,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1963
1965
|
/* @__PURE__ */ t.jsx(
|
1964
1966
|
"input",
|
1965
1967
|
{
|
1966
|
-
onChange:
|
1968
|
+
onChange: pe,
|
1967
1969
|
type: "file",
|
1968
1970
|
id: "sid-take-photo-input",
|
1969
1971
|
hidden: !0,
|
@@ -1979,29 +1981,29 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1979
1981
|
/* @__PURE__ */ t.jsx(
|
1980
1982
|
ot,
|
1981
1983
|
{
|
1982
|
-
fieldValidationErrors:
|
1983
|
-
errorId:
|
1984
|
+
fieldValidationErrors: R,
|
1985
|
+
errorId: ee,
|
1984
1986
|
erroredFileNames: x.erroredFileNames
|
1985
1987
|
}
|
1986
1988
|
),
|
1987
|
-
|
1988
|
-
|
1989
|
+
O && y.length >= 1 && /* @__PURE__ */ t.jsx(
|
1990
|
+
Oa,
|
1989
1991
|
{
|
1990
|
-
options:
|
1991
|
-
selected:
|
1992
|
-
onChange:
|
1993
|
-
showError:
|
1992
|
+
options: w,
|
1993
|
+
selected: Y,
|
1994
|
+
onChange: H,
|
1995
|
+
showError: j
|
1994
1996
|
}
|
1995
1997
|
),
|
1996
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(
|
1997
1999
|
"button",
|
1998
2000
|
{
|
1999
2001
|
id: "sid-submit-doc-upload",
|
2000
|
-
onClick:
|
2002
|
+
onClick: ce,
|
2001
2003
|
type: "submit",
|
2002
2004
|
className: "sid-btn sid-btn--dark sid-doc-upload-submit-btn sid-submit__continue border-radius",
|
2003
|
-
"aria-disabled":
|
2004
|
-
children:
|
2005
|
+
"aria-disabled": y.length <= 0 || O && !w.every((i) => Y.includes(i)),
|
2006
|
+
children: C === "doc-type-icons" ? /* @__PURE__ */ t.jsx(
|
2005
2007
|
h,
|
2006
2008
|
{
|
2007
2009
|
id: "_EXPERIMENTAL-VARIATION.step.docUpload.submitButtonLabel",
|
@@ -2010,48 +2012,55 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2010
2012
|
two {documents}
|
2011
2013
|
other {documents}
|
2012
2014
|
}`,
|
2013
|
-
values: { count:
|
2015
|
+
values: { count: y.length }
|
2014
2016
|
}
|
2015
2017
|
) : /* @__PURE__ */ t.jsx(
|
2016
2018
|
h,
|
2017
2019
|
{
|
2018
2020
|
id: "step.docUpload.submitButtonLabel",
|
2019
2021
|
defaultMessage: "Submit",
|
2020
|
-
values: { count:
|
2022
|
+
values: { count: y.length }
|
2021
2023
|
}
|
2022
2024
|
)
|
2023
2025
|
}
|
2024
2026
|
) })
|
2025
2027
|
] }) : null,
|
2026
|
-
|
2027
|
-
|
2028
|
-
/* @__PURE__ */ t.jsx(
|
2029
|
-
|
2028
|
+
C === "doc-type-icons" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2029
|
+
y.length > 0 && y.length < 2 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2030
|
+
/* @__PURE__ */ t.jsx(Ta, { children: "Add another document" }),
|
2031
|
+
G
|
2030
2032
|
] }),
|
2031
2033
|
/* @__PURE__ */ t.jsx("h3", { children: "FAQ" }),
|
2032
|
-
/* @__PURE__ */ t.jsx(
|
2033
|
-
] }) : /* @__PURE__ */ t.jsxs(
|
2034
|
-
|
2035
|
-
|
2036
|
-
|
2037
|
-
|
2038
|
-
|
2039
|
-
|
2040
|
-
|
2041
|
-
|
2042
|
-
|
2043
|
-
|
2044
|
-
|
2045
|
-
|
2046
|
-
|
2047
|
-
|
2034
|
+
/* @__PURE__ */ t.jsx(ye, { id: "suggestedDocs", title: "What information is needed?", children: /* @__PURE__ */ t.jsx("ul", { className: "sid-doc-upload-requirements", children: w.map((i) => /* @__PURE__ */ t.jsx("li", { className: "sid-doc-upload-requirements__definition", children: /* @__PURE__ */ t.jsx(h, { id: i }) }, i)) }) })
|
2035
|
+
] }) : /* @__PURE__ */ t.jsxs(
|
2036
|
+
ye,
|
2037
|
+
{
|
2038
|
+
id: "suggestedDocs",
|
2039
|
+
title: /* @__PURE__ */ t.jsx(
|
2040
|
+
h,
|
2041
|
+
{
|
2042
|
+
id: "step.docUpload.suggestedDocumentTypes",
|
2043
|
+
defaultMessage: "Suggested document types"
|
2044
|
+
}
|
2045
|
+
),
|
2046
|
+
defaultState: C === "checkbox-requirements" ? "closed" : "open",
|
2047
|
+
children: [
|
2048
|
+
N && /* @__PURE__ */ t.jsx(h, { id: "step.docUpload.acceptableUploadExamples" }),
|
2049
|
+
/* @__PURE__ */ t.jsxs("ul", { className: "sid-acceptable-document-types", children: [
|
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(
|
2048
2058
|
h,
|
2049
2059
|
{
|
2050
2060
|
id: "step.docUpload.acceptableUploads.doNotUploadMilitaryIdTitle",
|
2051
2061
|
defaultMessage: "Do not upload a photo of your military ID."
|
2052
2062
|
}
|
2053
|
-
) }),
|
2054
|
-
" ",
|
2063
|
+
) }) }),
|
2055
2064
|
/* @__PURE__ */ t.jsx(
|
2056
2065
|
h,
|
2057
2066
|
{
|
@@ -2060,51 +2069,11 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2060
2069
|
}
|
2061
2070
|
)
|
2062
2071
|
] }) })
|
2063
|
-
|
2064
|
-
|
2065
|
-
|
2066
|
-
re,
|
2067
|
-
{
|
2068
|
-
id: "suggestedDocs",
|
2069
|
-
title: /* @__PURE__ */ t.jsx(
|
2070
|
-
h,
|
2071
|
-
{
|
2072
|
-
id: "step.docUpload.suggestedDocumentTypes",
|
2073
|
-
defaultMessage: "Suggested document types"
|
2074
|
-
}
|
2075
|
-
),
|
2076
|
-
defaultState: U === "checkbox-requirements" ? "closed" : "open",
|
2077
|
-
children: [
|
2078
|
-
C && /* @__PURE__ */ t.jsx(h, { id: "step.docUpload.acceptableUploadExamples" }),
|
2079
|
-
/* @__PURE__ */ t.jsxs("ul", { className: "sid-acceptable-document-types", children: [
|
2080
|
-
(C ? wt : Na)(
|
2081
|
-
m,
|
2082
|
-
c
|
2083
|
-
).map((i) => /* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(h, { id: i }) }, i)),
|
2084
|
-
/* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(h, { id: "step.docUpload.acceptedTypes" }) })
|
2085
|
-
] }),
|
2086
|
-
L !== "add-doc-considerations" && H && (c === "activeDuty" || c === "reservist") && /* @__PURE__ */ t.jsx("div", { className: "sid-acceptable-document-types", children: /* @__PURE__ */ t.jsxs("p", { children: [
|
2087
|
-
/* @__PURE__ */ t.jsx("span", { className: "display-block", children: /* @__PURE__ */ t.jsx("strong", { children: /* @__PURE__ */ t.jsx(
|
2088
|
-
h,
|
2089
|
-
{
|
2090
|
-
id: "step.docUpload.acceptableUploads.doNotUploadMilitaryIdTitle",
|
2091
|
-
defaultMessage: "Do not upload a photo of your military ID."
|
2092
|
-
}
|
2093
|
-
) }) }),
|
2094
|
-
/* @__PURE__ */ t.jsx(
|
2095
|
-
h,
|
2096
|
-
{
|
2097
|
-
id: "step.docUpload.acceptableUploads.doNotUploadMilitaryIdContent",
|
2098
|
-
defaultMessage: "In accordance with federal law, SheerID does not accept submissions of active duty/reservist military ID cards."
|
2099
|
-
}
|
2100
|
-
)
|
2101
|
-
] }) })
|
2102
|
-
]
|
2103
|
-
}
|
2104
|
-
)
|
2105
|
-
] }),
|
2072
|
+
]
|
2073
|
+
}
|
2074
|
+
),
|
2106
2075
|
/* @__PURE__ */ t.jsxs(
|
2107
|
-
|
2076
|
+
ye,
|
2108
2077
|
{
|
2109
2078
|
id: "whatHappensNext",
|
2110
2079
|
title: /* @__PURE__ */ t.jsx(
|
@@ -2136,7 +2105,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2136
2105
|
id: "step.docUpload.reviewTime",
|
2137
2106
|
defaultMessage: "Expected review time is {estimatedWaitTime}.",
|
2138
2107
|
values: {
|
2139
|
-
estimatedWaitTime:
|
2108
|
+
estimatedWaitTime: wt(s, v, a).estReviewTime
|
2140
2109
|
}
|
2141
2110
|
}
|
2142
2111
|
) }),
|
@@ -2145,7 +2114,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2145
2114
|
}
|
2146
2115
|
),
|
2147
2116
|
/* @__PURE__ */ t.jsx(
|
2148
|
-
|
2117
|
+
ye,
|
2149
2118
|
{
|
2150
2119
|
id: "canIFinishLater",
|
2151
2120
|
title: /* @__PURE__ */ t.jsx(
|
@@ -2164,12 +2133,12 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2164
2133
|
) })
|
2165
2134
|
}
|
2166
2135
|
),
|
2167
|
-
|
2136
|
+
U && /* @__PURE__ */ t.jsx("div", { className: "sid-submit sid-override-submit sid-l-space-top-sm", children: /* @__PURE__ */ t.jsx(
|
2168
2137
|
"a",
|
2169
2138
|
{
|
2170
2139
|
href: "#",
|
2171
2140
|
className: "sid-link sid-override-link",
|
2172
|
-
onClick: () =>
|
2141
|
+
onClick: () => fe(),
|
2173
2142
|
role: "button",
|
2174
2143
|
children: /* @__PURE__ */ t.jsx(
|
2175
2144
|
h,
|