@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
@@ -1,20 +1,20 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
3
|
+
* VERSION: 2.111.0-alpha.0
|
4
|
+
* BUILD_TIMESTAMP: 1748973958674
|
5
|
+
* BUILD_DATE: Tue Jun 03 2025 18:05:58 GMT+0000 (Coordinated Universal Time)
|
6
6
|
* BUILD_COMMIT: 1131f80d20a6bbdb0dedde7ae8aefd5ede8d726e
|
7
7
|
*/
|
8
|
-
import { m as
|
9
|
-
const Lt = (e, a, o) =>
|
10
|
-
Object.keys(e).filter((s) => !!e[s] && s.includes("file")).map((s) => e[s]).concat(a, Array(
|
8
|
+
import { m as 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 "../sheerid.js";
|
9
|
+
const Lt = (e, a, o) => Ie(e, (r) => {
|
10
|
+
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;
|
11
11
|
}), Mt = (e, a) => {
|
12
12
|
if (![1, 2, 3].includes(a))
|
13
13
|
throw new Error(
|
14
14
|
`Expected either 1, 2 or 3 for argument "fileNumber", but received ${a}`
|
15
15
|
);
|
16
|
-
return
|
17
|
-
Object.keys(e).filter((r) => r.includes("file") && !r.includes(a.toString())).map((r) => e[r]).concat(Array(
|
16
|
+
return Ie(e, (o) => {
|
17
|
+
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);
|
18
18
|
});
|
19
19
|
};
|
20
20
|
var kt = /* @__PURE__ */ new Map([
|
@@ -132,32 +132,32 @@ var Bt = [
|
|
132
132
|
// Windows
|
133
133
|
];
|
134
134
|
function Yt(e) {
|
135
|
-
return
|
136
|
-
return
|
137
|
-
return
|
135
|
+
return q(this, void 0, void 0, function() {
|
136
|
+
return Z(this, function(a) {
|
137
|
+
return Ee(e) && Ht(e) ? [2, Gt(e.dataTransfer, e.type)] : zt(e) ? [2, Vt(e)] : Array.isArray(e) && e.every(function(o) {
|
138
138
|
return "getFile" in o && typeof o.getFile == "function";
|
139
139
|
}) ? [2, Wt(e)] : [2, []];
|
140
140
|
});
|
141
141
|
});
|
142
142
|
}
|
143
143
|
function Ht(e) {
|
144
|
-
return
|
144
|
+
return Ee(e.dataTransfer);
|
145
145
|
}
|
146
146
|
function zt(e) {
|
147
|
-
return
|
147
|
+
return Ee(e) && Ee(e.target);
|
148
148
|
}
|
149
|
-
function
|
149
|
+
function Ee(e) {
|
150
150
|
return typeof e == "object" && e !== null;
|
151
151
|
}
|
152
152
|
function Vt(e) {
|
153
|
-
return
|
153
|
+
return Se(e.target.files).map(function(a) {
|
154
154
|
return ne(a);
|
155
155
|
});
|
156
156
|
}
|
157
157
|
function Wt(e) {
|
158
|
-
return
|
158
|
+
return q(this, void 0, void 0, function() {
|
159
159
|
var a;
|
160
|
-
return
|
160
|
+
return Z(this, function(o) {
|
161
161
|
switch (o.label) {
|
162
162
|
case 0:
|
163
163
|
return [4, Promise.all(e.map(function(r) {
|
@@ -172,18 +172,18 @@ function Wt(e) {
|
|
172
172
|
});
|
173
173
|
}
|
174
174
|
function Gt(e, a) {
|
175
|
-
return
|
175
|
+
return q(this, void 0, void 0, function() {
|
176
176
|
var o, r;
|
177
|
-
return
|
177
|
+
return Z(this, function(s) {
|
178
178
|
switch (s.label) {
|
179
179
|
case 0:
|
180
|
-
return e === null ? [2, []] : e.items ? (o =
|
180
|
+
return e === null ? [2, []] : e.items ? (o = Se(e.items).filter(function(d) {
|
181
181
|
return d.kind === "file";
|
182
182
|
}), a !== "drop" ? [2, o] : [4, Promise.all(o.map($t))]) : [3, 2];
|
183
183
|
case 1:
|
184
184
|
return r = s.sent(), [2, Ve(rt(r))];
|
185
185
|
case 2:
|
186
|
-
return [2, Ve(
|
186
|
+
return [2, Ve(Se(e.files).map(function(d) {
|
187
187
|
return ne(d);
|
188
188
|
}))];
|
189
189
|
}
|
@@ -195,7 +195,7 @@ function Ve(e) {
|
|
195
195
|
return Bt.indexOf(a.name) === -1;
|
196
196
|
});
|
197
197
|
}
|
198
|
-
function
|
198
|
+
function Se(e) {
|
199
199
|
if (e === null)
|
200
200
|
return [];
|
201
201
|
for (var a = [], o = 0; o < e.length; o++) {
|
@@ -223,8 +223,8 @@ function We(e) {
|
|
223
223
|
return Promise.resolve(o);
|
224
224
|
}
|
225
225
|
function Kt(e) {
|
226
|
-
return
|
227
|
-
return
|
226
|
+
return q(this, void 0, void 0, function() {
|
227
|
+
return Z(this, function(a) {
|
228
228
|
return [2, e.isDirectory ? nt(e) : qt(e)];
|
229
229
|
});
|
230
230
|
});
|
@@ -236,23 +236,23 @@ function nt(e) {
|
|
236
236
|
function d() {
|
237
237
|
var m = this;
|
238
238
|
a.readEntries(function(c) {
|
239
|
-
return
|
240
|
-
var v, x,
|
241
|
-
return
|
242
|
-
switch (
|
239
|
+
return q(m, void 0, void 0, function() {
|
240
|
+
var v, x, R;
|
241
|
+
return Z(this, function(U) {
|
242
|
+
switch (U.label) {
|
243
243
|
case 0:
|
244
244
|
if (c.length) return [3, 5];
|
245
|
-
|
245
|
+
U.label = 1;
|
246
246
|
case 1:
|
247
|
-
return
|
247
|
+
return U.trys.push([1, 3, , 4]), [4, Promise.all(s)];
|
248
248
|
case 2:
|
249
|
-
return v =
|
249
|
+
return v = U.sent(), o(v), [3, 4];
|
250
250
|
case 3:
|
251
|
-
return x =
|
251
|
+
return x = U.sent(), r(x), [3, 4];
|
252
252
|
case 4:
|
253
253
|
return [3, 6];
|
254
254
|
case 5:
|
255
|
-
|
255
|
+
R = Promise.all(c.map(Kt)), s.push(R), d(), U.label = 6;
|
256
256
|
case 6:
|
257
257
|
return [
|
258
258
|
2
|
@@ -269,8 +269,8 @@ function nt(e) {
|
|
269
269
|
});
|
270
270
|
}
|
271
271
|
function qt(e) {
|
272
|
-
return
|
273
|
-
return
|
272
|
+
return q(this, void 0, void 0, function() {
|
273
|
+
return Z(this, function(a) {
|
274
274
|
return [2, new Promise(function(o, r) {
|
275
275
|
e.file(function(s) {
|
276
276
|
var d = ne(s, e.fullPath);
|
@@ -388,30 +388,30 @@ function it(e, a) {
|
|
388
388
|
return [o, o ? null : na(a)];
|
389
389
|
}
|
390
390
|
function lt(e, a, o) {
|
391
|
-
if (
|
392
|
-
if (
|
391
|
+
if (re(e.size))
|
392
|
+
if (re(a) && re(o)) {
|
393
393
|
if (e.size > o) return [!1, Ze(o)];
|
394
394
|
if (e.size < a) return [!1, Qe(a)];
|
395
395
|
} else {
|
396
|
-
if (
|
397
|
-
if (
|
396
|
+
if (re(a) && e.size < a) return [!1, Qe(a)];
|
397
|
+
if (re(o) && e.size > o) return [!1, Ze(o)];
|
398
398
|
}
|
399
399
|
return [!0, null];
|
400
400
|
}
|
401
|
-
function
|
401
|
+
function re(e) {
|
402
402
|
return e != null;
|
403
403
|
}
|
404
404
|
function ia(e) {
|
405
405
|
var a = e.files, o = e.accept, r = e.minSize, s = e.maxSize, d = e.multiple, m = e.maxFiles;
|
406
406
|
return !d && a.length > 1 || d && m >= 1 && a.length > m ? !1 : a.every(function(c) {
|
407
|
-
var v = it(c, o), x = Ke(v, 1),
|
408
|
-
return
|
407
|
+
var v = it(c, o), x = Ke(v, 1), R = x[0], U = lt(c, r, s), N = Ke(U, 1), w = N[0];
|
408
|
+
return R && w;
|
409
409
|
});
|
410
410
|
}
|
411
|
-
function
|
411
|
+
function ve(e) {
|
412
412
|
return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
|
413
413
|
}
|
414
|
-
function
|
414
|
+
function be(e) {
|
415
415
|
return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(a) {
|
416
416
|
return a === "Files" || a === "application/x-moz-file";
|
417
417
|
}) : !!e.target && !!e.target.files;
|
@@ -429,14 +429,14 @@ function ca() {
|
|
429
429
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
430
430
|
return la(e) || da(e);
|
431
431
|
}
|
432
|
-
function
|
432
|
+
function S() {
|
433
433
|
for (var e = arguments.length, a = new Array(e), o = 0; o < e; o++)
|
434
434
|
a[o] = arguments[o];
|
435
435
|
return function(r) {
|
436
436
|
for (var s = arguments.length, d = new Array(s > 1 ? s - 1 : 0), m = 1; m < s; m++)
|
437
437
|
d[m - 1] = arguments[m];
|
438
438
|
return a.some(function(c) {
|
439
|
-
return !
|
439
|
+
return !ve(r) && c && c.apply(void 0, [r].concat(d)), ve(r);
|
440
440
|
});
|
441
441
|
};
|
442
442
|
}
|
@@ -466,9 +466,9 @@ function ba(e) {
|
|
466
466
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
467
467
|
}
|
468
468
|
function ya(e) {
|
469
|
-
if (Array.isArray(e)) return
|
469
|
+
if (Array.isArray(e)) return Le(e);
|
470
470
|
}
|
471
|
-
function
|
471
|
+
function Te(e, a) {
|
472
472
|
return va(e) || Ea(e, a) || dt(e, a) || Ia();
|
473
473
|
}
|
474
474
|
function Ia() {
|
@@ -477,13 +477,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
477
477
|
}
|
478
478
|
function dt(e, a) {
|
479
479
|
if (e) {
|
480
|
-
if (typeof e == "string") return
|
480
|
+
if (typeof e == "string") return Le(e, a);
|
481
481
|
var o = Object.prototype.toString.call(e).slice(8, -1);
|
482
482
|
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set") return Array.from(e);
|
483
|
-
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return
|
483
|
+
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return Le(e, a);
|
484
484
|
}
|
485
485
|
}
|
486
|
-
function
|
486
|
+
function Le(e, a) {
|
487
487
|
(a == null || a > e.length) && (a = e.length);
|
488
488
|
for (var o = 0, r = new Array(a); o < a; o++)
|
489
489
|
r[o] = e[o];
|
@@ -525,17 +525,17 @@ function b(e) {
|
|
525
525
|
for (var a = 1; a < arguments.length; a++) {
|
526
526
|
var o = arguments[a] != null ? arguments[a] : {};
|
527
527
|
a % 2 ? et(Object(o), !0).forEach(function(r) {
|
528
|
-
|
528
|
+
Me(e, r, o[r]);
|
529
529
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : et(Object(o)).forEach(function(r) {
|
530
530
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(o, r));
|
531
531
|
});
|
532
532
|
}
|
533
533
|
return e;
|
534
534
|
}
|
535
|
-
function
|
535
|
+
function Me(e, a, o) {
|
536
536
|
return a in e ? Object.defineProperty(e, a, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[a] = o, e;
|
537
537
|
}
|
538
|
-
function
|
538
|
+
function Ue(e, a) {
|
539
539
|
if (e == null) return {};
|
540
540
|
var o = Ua(e, a), r, s;
|
541
541
|
if (Object.getOwnPropertySymbols) {
|
@@ -553,7 +553,7 @@ function Ua(e, a) {
|
|
553
553
|
return o;
|
554
554
|
}
|
555
555
|
var se = /* @__PURE__ */ f.forwardRef(function(e, a) {
|
556
|
-
var o = e.children, r =
|
556
|
+
var o = e.children, r = Ue(e, ua), s = ja(r), d = s.open, m = Ue(s, fa);
|
557
557
|
return f.useImperativeHandle(a, function() {
|
558
558
|
return {
|
559
559
|
open: d
|
@@ -739,7 +739,7 @@ se.propTypes = {
|
|
739
739
|
*/
|
740
740
|
validator: g.func
|
741
741
|
};
|
742
|
-
var
|
742
|
+
var ke = {
|
743
743
|
isFocused: !1,
|
744
744
|
isFileDialogActive: !1,
|
745
745
|
isDragActive: !1,
|
@@ -750,97 +750,97 @@ var Pe = {
|
|
750
750
|
fileRejections: []
|
751
751
|
};
|
752
752
|
function ja() {
|
753
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = b(b({}, ct), e), o = a.accept, r = a.disabled, s = a.getFilesFromEvent, d = a.maxSize, m = a.minSize, c = a.multiple, v = a.maxFiles, x = a.onDragEnter,
|
753
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = b(b({}, ct), e), o = a.accept, r = a.disabled, s = a.getFilesFromEvent, d = a.maxSize, m = a.minSize, c = a.multiple, v = a.maxFiles, x = a.onDragEnter, 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() {
|
754
|
+
return typeof z == "function" ? z : tt;
|
755
|
+
}, [z]), H = f.useMemo(function() {
|
754
756
|
return typeof B == "function" ? B : tt;
|
755
|
-
}, [B]),
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
if (R.current) {
|
760
|
-
var p = R.current.files;
|
757
|
+
}, [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() {
|
758
|
+
ee && setTimeout(function() {
|
759
|
+
if (D.current) {
|
760
|
+
var p = D.current.files;
|
761
761
|
p.length || (_({
|
762
762
|
type: "closeDialog"
|
763
|
-
}),
|
763
|
+
}), H());
|
764
764
|
}
|
765
765
|
}, 300);
|
766
766
|
};
|
767
767
|
f.useEffect(function() {
|
768
|
-
return
|
769
|
-
} : (window.addEventListener("focus",
|
770
|
-
window.removeEventListener("focus",
|
768
|
+
return V && Je() ? function() {
|
769
|
+
} : (window.addEventListener("focus", ce, !1), function() {
|
770
|
+
window.removeEventListener("focus", ce, !1);
|
771
771
|
});
|
772
|
-
}, [
|
773
|
-
var
|
774
|
-
j.current && j.current.contains(p.target) || (p.preventDefault(),
|
772
|
+
}, [D, ee, H, V]);
|
773
|
+
var T = f.useRef([]), pe = function(p) {
|
774
|
+
j.current && j.current.contains(p.target) || (p.preventDefault(), T.current = []);
|
775
775
|
};
|
776
776
|
f.useEffect(function() {
|
777
|
-
return
|
778
|
-
|
777
|
+
return X && (document.addEventListener("dragover", Xe, !1), document.addEventListener("drop", pe, !1)), function() {
|
778
|
+
X && (document.removeEventListener("dragover", Xe), document.removeEventListener("drop", pe));
|
779
779
|
};
|
780
|
-
}, [j,
|
780
|
+
}, [j, X]);
|
781
781
|
var ue = f.useCallback(function(l) {
|
782
|
-
l.preventDefault(), l.persist(),
|
783
|
-
|
782
|
+
l.preventDefault(), l.persist(), he(l), T.current = [].concat(ga(T.current), [l.target]), be(l) && Promise.resolve(s(l)).then(function(p) {
|
783
|
+
ve(l) && !P || (_({
|
784
784
|
draggedFiles: p,
|
785
785
|
isDragActive: !0,
|
786
786
|
type: "setDraggedFiles"
|
787
787
|
}), x && x(l));
|
788
788
|
});
|
789
|
-
}, [s, x,
|
790
|
-
l.preventDefault(), l.persist(),
|
791
|
-
var p =
|
789
|
+
}, [s, x, P]), fe = f.useCallback(function(l) {
|
790
|
+
l.preventDefault(), l.persist(), he(l);
|
791
|
+
var p = be(l);
|
792
792
|
if (p && l.dataTransfer)
|
793
793
|
try {
|
794
794
|
l.dataTransfer.dropEffect = "copy";
|
795
795
|
} catch {
|
796
796
|
}
|
797
|
-
return p &&
|
798
|
-
}, [
|
799
|
-
l.preventDefault(), l.persist(),
|
800
|
-
var p =
|
797
|
+
return p && U && U(l), !1;
|
798
|
+
}, [U, P]), G = f.useCallback(function(l) {
|
799
|
+
l.preventDefault(), l.persist(), he(l);
|
800
|
+
var p = T.current.filter(function(A) {
|
801
801
|
return j.current && j.current.contains(A);
|
802
802
|
}), E = p.indexOf(l.target);
|
803
|
-
E !== -1 && p.splice(E, 1),
|
803
|
+
E !== -1 && p.splice(E, 1), T.current = p, !(p.length > 0) && (_({
|
804
804
|
isDragActive: !1,
|
805
805
|
type: "setDraggedFiles",
|
806
806
|
draggedFiles: []
|
807
|
-
}),
|
808
|
-
}, [j,
|
807
|
+
}), be(l) && R && R(l));
|
808
|
+
}, [j, R, P]), i = f.useCallback(function(l, p) {
|
809
809
|
var E = [], A = [];
|
810
|
-
l.forEach(function(
|
811
|
-
var
|
812
|
-
if (
|
813
|
-
E.push(
|
810
|
+
l.forEach(function(F) {
|
811
|
+
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;
|
812
|
+
if (De && Re && !Fe)
|
813
|
+
E.push(F);
|
814
814
|
else {
|
815
|
-
var
|
816
|
-
|
817
|
-
file:
|
818
|
-
errors:
|
815
|
+
var Ne = [_e, we];
|
816
|
+
Fe && (Ne = Ne.concat(Fe)), A.push({
|
817
|
+
file: F,
|
818
|
+
errors: Ne.filter(function(ht) {
|
819
819
|
return ht;
|
820
820
|
})
|
821
821
|
});
|
822
822
|
}
|
823
|
-
}), (!c && E.length > 1 || c && v >= 1 && E.length > v) && (E.forEach(function(
|
823
|
+
}), (!c && E.length > 1 || c && v >= 1 && E.length > v) && (E.forEach(function(F) {
|
824
824
|
A.push({
|
825
|
-
file:
|
825
|
+
file: F,
|
826
826
|
errors: [sa]
|
827
827
|
});
|
828
828
|
}), E.splice(0)), _({
|
829
829
|
acceptedFiles: E,
|
830
830
|
fileRejections: A,
|
831
831
|
type: "setFiles"
|
832
|
-
}),
|
833
|
-
}, [_, c, o, m, d, v,
|
834
|
-
l.preventDefault(), l.persist(),
|
835
|
-
|
832
|
+
}), N && N(E, A, p), A.length > 0 && Q && Q(A, p), E.length > 0 && w && w(E, p);
|
833
|
+
}, [_, c, o, m, d, v, N, w, Q, O]), I = f.useCallback(function(l) {
|
834
|
+
l.preventDefault(), l.persist(), he(l), T.current = [], be(l) && Promise.resolve(s(l)).then(function(p) {
|
835
|
+
ve(l) && !P || i(p, l);
|
836
836
|
}), _({
|
837
837
|
type: "reset"
|
838
838
|
});
|
839
|
-
}, [s,
|
840
|
-
if (
|
839
|
+
}, [s, i, P]), L = f.useCallback(function() {
|
840
|
+
if (V && Je()) {
|
841
841
|
_({
|
842
842
|
type: "openDialog"
|
843
|
-
}),
|
843
|
+
}), Y();
|
844
844
|
var l = {
|
845
845
|
multiple: c,
|
846
846
|
types: pa(o)
|
@@ -848,9 +848,9 @@ function ja() {
|
|
848
848
|
window.showOpenFilePicker(l).then(function(p) {
|
849
849
|
return s(p);
|
850
850
|
}).then(function(p) {
|
851
|
-
return
|
851
|
+
return i(p, null);
|
852
852
|
}).catch(function(p) {
|
853
|
-
return
|
853
|
+
return H(p);
|
854
854
|
}).finally(function() {
|
855
855
|
return _({
|
856
856
|
type: "closeDialog"
|
@@ -858,81 +858,81 @@ function ja() {
|
|
858
858
|
});
|
859
859
|
return;
|
860
860
|
}
|
861
|
-
|
861
|
+
D.current && (_({
|
862
862
|
type: "openDialog"
|
863
|
-
}),
|
864
|
-
}, [_,
|
865
|
-
!j.current || !j.current.isEqualNode(l.target) || (l.keyCode === 32 || l.keyCode === 13) && (l.preventDefault(),
|
866
|
-
}, [j,
|
863
|
+
}), Y(), D.current.value = null, D.current.click());
|
864
|
+
}, [_, Y, H, V, i, o, c]), $ = f.useCallback(function(l) {
|
865
|
+
!j.current || !j.current.isEqualNode(l.target) || (l.keyCode === 32 || l.keyCode === 13) && (l.preventDefault(), L());
|
866
|
+
}, [j, D, L]), te = f.useCallback(function() {
|
867
867
|
_({
|
868
868
|
type: "focus"
|
869
869
|
});
|
870
|
-
}, []),
|
870
|
+
}, []), ae = f.useCallback(function() {
|
871
871
|
_({
|
872
872
|
type: "blur"
|
873
873
|
});
|
874
|
-
}, []),
|
875
|
-
|
876
|
-
}, [
|
874
|
+
}, []), M = f.useCallback(function() {
|
875
|
+
y || (ca() ? setTimeout(L, 0) : L());
|
876
|
+
}, [D, y, L]), k = function(p) {
|
877
877
|
return r ? null : p;
|
878
|
-
},
|
879
|
-
return
|
878
|
+
}, je = function(p) {
|
879
|
+
return J ? null : k(p);
|
880
|
+
}, me = function(p) {
|
881
|
+
return C ? null : k(p);
|
880
882
|
}, he = function(p) {
|
881
|
-
|
882
|
-
}, ge = function(p) {
|
883
|
-
U && p.stopPropagation();
|
883
|
+
P && p.stopPropagation();
|
884
884
|
}, pt = f.useMemo(function() {
|
885
885
|
return function() {
|
886
|
-
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = l.refKey, E = p === void 0 ? "ref" : p, A = l.role,
|
887
|
-
return b(b(
|
888
|
-
onKeyDown:
|
889
|
-
onFocus:
|
890
|
-
onBlur:
|
891
|
-
onClick:
|
892
|
-
onDragEnter:
|
893
|
-
onDragOver:
|
894
|
-
onDragLeave:
|
895
|
-
onDrop:
|
886
|
+
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = l.refKey, E = p === void 0 ? "ref" : p, A = l.role, 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);
|
887
|
+
return b(b(Me({
|
888
|
+
onKeyDown: je(S(F, $)),
|
889
|
+
onFocus: je(S(oe, te)),
|
890
|
+
onBlur: je(S(K, ae)),
|
891
|
+
onClick: k(S(De, M)),
|
892
|
+
onDragEnter: me(S(_e, ue)),
|
893
|
+
onDragOver: me(S(Ae, fe)),
|
894
|
+
onDragLeave: me(S(ge, G)),
|
895
|
+
onDrop: me(S(Re, I)),
|
896
896
|
role: typeof A == "string" && A !== "" ? A : "button"
|
897
|
-
}, E, j), !r && !
|
897
|
+
}, E, j), !r && !J ? {
|
898
898
|
tabIndex: 0
|
899
|
-
} : {}),
|
899
|
+
} : {}), we);
|
900
900
|
};
|
901
|
-
}, [j,
|
901
|
+
}, [j, $, te, ae, M, ue, fe, G, I, J, C, r]), ut = f.useCallback(function(l) {
|
902
902
|
l.stopPropagation();
|
903
903
|
}, []), ft = f.useMemo(function() {
|
904
904
|
return function() {
|
905
|
-
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = l.refKey, E = p === void 0 ? "ref" : p, A = l.onChange,
|
905
|
+
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = l.refKey, E = p === void 0 ? "ref" : p, A = l.onChange, F = l.onClick, oe = Ue(l, ha), K = Me({
|
906
906
|
accept: o,
|
907
907
|
multiple: c,
|
908
908
|
type: "file",
|
909
909
|
style: {
|
910
910
|
display: "none"
|
911
911
|
},
|
912
|
-
onChange:
|
913
|
-
onClick:
|
912
|
+
onChange: k(S(A, I)),
|
913
|
+
onClick: k(S(F, ut)),
|
914
914
|
autoComplete: "off",
|
915
915
|
tabIndex: -1
|
916
|
-
}, E,
|
917
|
-
return b(b({},
|
916
|
+
}, E, D);
|
917
|
+
return b(b({}, K), oe);
|
918
918
|
};
|
919
|
-
}, [
|
920
|
-
files:
|
919
|
+
}, [D, o, c, I, r]), Ye = de.length, He = Ye > 0 && ia({
|
920
|
+
files: de,
|
921
921
|
accept: o,
|
922
922
|
minSize: m,
|
923
923
|
maxSize: d,
|
924
924
|
multiple: c,
|
925
925
|
maxFiles: v
|
926
926
|
}), mt = Ye > 0 && !He;
|
927
|
-
return b(b({},
|
927
|
+
return b(b({}, W), {}, {
|
928
928
|
isDragAccept: He,
|
929
929
|
isDragReject: mt,
|
930
|
-
isFocused:
|
930
|
+
isFocused: le && !r,
|
931
931
|
getRootProps: pt,
|
932
932
|
getInputProps: ft,
|
933
933
|
rootRef: j,
|
934
|
-
inputRef:
|
935
|
-
open:
|
934
|
+
inputRef: D,
|
935
|
+
open: k(L)
|
936
936
|
});
|
937
937
|
}
|
938
938
|
function Da(e, a) {
|
@@ -946,7 +946,7 @@ function Da(e, a) {
|
|
946
946
|
isFocused: !1
|
947
947
|
});
|
948
948
|
case "openDialog":
|
949
|
-
return b(b({},
|
949
|
+
return b(b({}, ke), {}, {
|
950
950
|
isFileDialogActive: !0
|
951
951
|
});
|
952
952
|
case "closeDialog":
|
@@ -965,14 +965,14 @@ function Da(e, a) {
|
|
965
965
|
fileRejections: a.fileRejections
|
966
966
|
});
|
967
967
|
case "reset":
|
968
|
-
return b({},
|
968
|
+
return b({}, ke);
|
969
969
|
default:
|
970
970
|
return e;
|
971
971
|
}
|
972
972
|
}
|
973
973
|
function tt() {
|
974
974
|
}
|
975
|
-
function
|
975
|
+
function ye({
|
976
976
|
title: e,
|
977
977
|
children: a,
|
978
978
|
id: o,
|
@@ -1111,7 +1111,7 @@ const _a = {
|
|
1111
1111
|
[n.LICENSED_REAL_ESTATE_AGENT]: [
|
1112
1112
|
"step.docUpload.acceptableUploads.licensedProfessional.license"
|
1113
1113
|
],
|
1114
|
-
[n.VETERINARIAN]: [],
|
1114
|
+
[n.VETERINARIAN]: ["step.docUpload.acceptableUploads.licensedProfessional.license"],
|
1115
1115
|
[n.SNAP_BENEFITS]: [
|
1116
1116
|
"step.docUpload.acceptableUploads.lowIncome.programCard",
|
1117
1117
|
"step.docUpload.acceptableUploads.lowIncome.programApprovalLetter",
|
@@ -1124,7 +1124,9 @@ const _a = {
|
|
1124
1124
|
"step.docUpload.acceptableUploads.lowIncome.programApprovalScreenshot",
|
1125
1125
|
"step.docUpload.acceptableUploads.lowIncome.programBankStatement"
|
1126
1126
|
],
|
1127
|
-
[n.CHILD_CARE_WORKER]: [
|
1127
|
+
[n.CHILD_CARE_WORKER]: [
|
1128
|
+
"step.docUpload.acceptableUploads.licensedProfessional.license"
|
1129
|
+
],
|
1128
1130
|
[n.LIBRARIAN]: [],
|
1129
1131
|
[n.INTERIOR_DESIGNER]: [],
|
1130
1132
|
[n.ARCHITECT]: [],
|
@@ -1132,7 +1134,7 @@ const _a = {
|
|
1132
1134
|
[n.NUTRITION_PROFESSIONAL]: [
|
1133
1135
|
"step.docUpload.acceptableUploads.licensedProfessional.license"
|
1134
1136
|
]
|
1135
|
-
},
|
1137
|
+
}, Ra = {
|
1136
1138
|
[u.STUDENT]: [
|
1137
1139
|
"step.docUpload.uploadInfo.fullName",
|
1138
1140
|
"step.docUpload.uploadInfo.institutionName",
|
@@ -1190,7 +1192,7 @@ const _a = {
|
|
1190
1192
|
"step.docUpload.uploadInfo.fullName",
|
1191
1193
|
"step.docUpload.uploadInfo.lowIncome.validDate"
|
1192
1194
|
]
|
1193
|
-
},
|
1195
|
+
}, wa = {
|
1194
1196
|
[n.ACTIVE_DUTY]: ["step.docUpload.uploadInfo.military.activeDuty.status"],
|
1195
1197
|
[n.VETERAN]: ["step.docUpload.uploadInfo.military.veteran.status"],
|
1196
1198
|
[n.RESERVIST]: ["step.docUpload.uploadInfo.military.reservist.status"],
|
@@ -1237,12 +1239,12 @@ function Na(e, a) {
|
|
1237
1239
|
function Ca(e, a) {
|
1238
1240
|
return Fa[a] || [
|
1239
1241
|
.../* @__PURE__ */ new Set([
|
1240
|
-
...
|
1241
|
-
...
|
1242
|
+
...wa[a] || [],
|
1243
|
+
...Ra[e] || []
|
1242
1244
|
])
|
1243
1245
|
];
|
1244
1246
|
}
|
1245
|
-
const
|
1247
|
+
const Oa = ({
|
1246
1248
|
options: e,
|
1247
1249
|
selected: a,
|
1248
1250
|
onChange: o,
|
@@ -1287,7 +1289,7 @@ const Ta = ({
|
|
1287
1289
|
] })
|
1288
1290
|
)) })
|
1289
1291
|
] });
|
1290
|
-
},
|
1292
|
+
}, Ta = ({ children: e }) => /* @__PURE__ */ t.jsxs("div", { className: "sid-named-divider", children: [
|
1291
1293
|
/* @__PURE__ */ t.jsx("hr", { className: "sid-named-divider__rule" }),
|
1292
1294
|
/* @__PURE__ */ t.jsx("p", { className: "sid-named-divider__text", children: e })
|
1293
1295
|
] });
|
@@ -1755,98 +1757,98 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1755
1757
|
),
|
1756
1758
|
a ? a.map((r) => /* @__PURE__ */ t.jsx("div", { className: "sid-field-error-redesign__doc-upload__span", children: r }, `error-${r}`)) : null
|
1757
1759
|
] }) : null, $a = ({ verificationService: e, intl: a }) => {
|
1758
|
-
const [o, r] = f.useState(!1), s = e.verificationResponse, { rejectionReasons: d, segment: m, subSegment: c } = s, { programTheme: v } = e, x = e.viewModel, { fieldValidationErrors:
|
1760
|
+
const [o, r] = f.useState(!1), s = e.verificationResponse, { rejectionReasons: d, segment: m, subSegment: c } = s, { programTheme: v } = e, x = e.viewModel, { fieldValidationErrors: R } = e, { overrideEnabled: U } = e.programTheme, N = Ce("doc-upload-redesign-use-legacy-message-keys"), w = (N ? Ga : Ca)(
|
1759
1761
|
m,
|
1760
1762
|
c
|
1761
|
-
),
|
1763
|
+
), Q = e.verificationResponse.country === "US", B = (i) => ({
|
1762
1764
|
name: i.name,
|
1763
1765
|
url: i.type.includes("image") ? URL.createObjectURL(i) : ""
|
1764
|
-
}), [
|
1765
|
-
It(Et) &&
|
1766
|
+
}), [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);
|
1767
|
+
It(Et) && y.push({
|
1766
1768
|
name: "myFile.png",
|
1767
1769
|
url: ""
|
1768
1770
|
});
|
1769
|
-
const
|
1771
|
+
const ie = a.formatMessage({
|
1770
1772
|
id: "step.docUpload.addFile",
|
1771
1773
|
defaultMessage: "Add documents"
|
1772
1774
|
});
|
1773
|
-
x.file1 && x.file1.name &&
|
1774
|
-
const
|
1775
|
-
r(!1), e.updateViewModel(Lt(x, i,
|
1776
|
-
},
|
1777
|
-
const
|
1778
|
-
r(!1),
|
1779
|
-
},
|
1780
|
-
const
|
1781
|
-
for (const
|
1782
|
-
const
|
1783
|
-
|
1784
|
-
|
1775
|
+
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));
|
1776
|
+
const W = y.map((i) => z[i.name]), _ = (i, I) => {
|
1777
|
+
r(!1), e.updateViewModel(Lt(x, i, I));
|
1778
|
+
}, le = (i) => {
|
1779
|
+
const I = i + 1;
|
1780
|
+
r(!1), H([]), D(!1), e.updateViewModel(Mt(x, I));
|
1781
|
+
}, ee = R.docUpload || vt(() => e.verificationResponse.errorIds[0], void 0), de = (i, I) => {
|
1782
|
+
const L = [], $ = [], te = [];
|
1783
|
+
for (const M of i) {
|
1784
|
+
const k = St(
|
1785
|
+
xe.docUpload,
|
1786
|
+
M,
|
1785
1787
|
e.formValidationOptions
|
1786
1788
|
);
|
1787
|
-
|
1789
|
+
k === void 0 ? (I && V({ ...z, [M.name]: I }), L.push(M)) : (te.push(M.name), $.push(k));
|
1788
1790
|
}
|
1789
|
-
let
|
1790
|
-
|
1791
|
-
|
1792
|
-
})), e.updateFieldValidationErrors(
|
1793
|
-
},
|
1794
|
-
Oe.info("StepDocUploadComponent submitting form"),
|
1795
|
-
|
1791
|
+
let ae;
|
1792
|
+
$ && (ae = Ie(R, (M) => {
|
1793
|
+
M.docUpload = $[0];
|
1794
|
+
})), e.updateFieldValidationErrors(ae), _(L, te);
|
1795
|
+
}, ce = () => {
|
1796
|
+
Oe.info("StepDocUploadComponent submitting form"), D(!0), (O && w.every((i) => Y.includes(i)) || !O) && (e.submitStep(
|
1797
|
+
xe.docUpload,
|
1796
1798
|
x,
|
1797
1799
|
e.verificationResponse
|
1798
|
-
),
|
1799
|
-
},
|
1800
|
-
i.length > 0 ?
|
1800
|
+
), X(Ot, Tt));
|
1801
|
+
}, T = (i, I) => {
|
1802
|
+
i.length > 0 ? de(i, I) : i.length <= 0 && Oe.error(
|
1801
1803
|
"No files were accepted or rejected. Unknown error.",
|
1802
|
-
|
1804
|
+
xe.docUpload
|
1803
1805
|
);
|
1806
|
+
}, pe = (i) => {
|
1807
|
+
T(Array.from(i.target.files));
|
1804
1808
|
}, ue = (i) => {
|
1805
|
-
|
1806
|
-
|
1807
|
-
|
1808
|
-
(i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), y.click());
|
1809
|
-
}, me = async () => {
|
1809
|
+
const I = Ct("addFile");
|
1810
|
+
(i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), I.click());
|
1811
|
+
}, fe = async () => {
|
1810
1812
|
Oe.info("StepDocUploadComponent submitting form after skipping document upload");
|
1811
|
-
const i =
|
1813
|
+
const i = Ie(x, () => {
|
1812
1814
|
});
|
1813
1815
|
e.submitStep(
|
1814
|
-
|
1816
|
+
xe.cancelDocUpload,
|
1815
1817
|
i,
|
1816
1818
|
e.verificationResponse
|
1817
1819
|
);
|
1818
|
-
},
|
1819
|
-
(i) => !
|
1820
|
+
}, 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(
|
1821
|
+
(i) => !W.includes(i) && /* @__PURE__ */ t.jsx(
|
1820
1822
|
Ha,
|
1821
1823
|
{
|
1822
|
-
onFileDrop:
|
1824
|
+
onFileDrop: T,
|
1823
1825
|
type: i,
|
1824
|
-
style: i === "ID_CARD" &&
|
1826
|
+
style: i === "ID_CARD" && y.length === 0 ? "large" : "small"
|
1825
1827
|
}
|
1826
1828
|
)
|
1827
1829
|
) }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
1828
1830
|
/* @__PURE__ */ t.jsx(
|
1829
1831
|
ot,
|
1830
1832
|
{
|
1831
|
-
fieldValidationErrors:
|
1832
|
-
errorId:
|
1833
|
+
fieldValidationErrors: R,
|
1834
|
+
errorId: ee,
|
1833
1835
|
erroredFileNames: x.erroredFileNames
|
1834
1836
|
}
|
1835
1837
|
),
|
1836
|
-
/* @__PURE__ */ t.jsx("div", { className: "sid-docdrop-wrap", children: /* @__PURE__ */ t.jsx(se, { onDrop: (i) =>
|
1838
|
+
/* @__PURE__ */ t.jsx("div", { className: "sid-docdrop-wrap", children: /* @__PURE__ */ t.jsx(se, { onDrop: (i) => T(i), accept: ze.join(","), children: ({ getRootProps: i, getInputProps: I }) => /* @__PURE__ */ t.jsxs(
|
1837
1839
|
"div",
|
1838
1840
|
{
|
1839
1841
|
...i(),
|
1840
1842
|
className: "sid-docdrop-wrap__dropzone sid-docdrop-wrap__dropzone_height",
|
1841
1843
|
children: [
|
1842
|
-
/* @__PURE__ */ t.jsx("input", { ...
|
1844
|
+
/* @__PURE__ */ t.jsx("input", { ...I({ accept: ze.join(",") }) }),
|
1843
1845
|
/* @__PURE__ */ t.jsx(
|
1844
1846
|
"button",
|
1845
1847
|
{
|
1846
1848
|
tabIndex: -1,
|
1847
1849
|
className: "sid-btn sid-btn--dark sid-doc-upload-submit-btn sid-submit__continue border-radius",
|
1848
1850
|
type: "button",
|
1849
|
-
"aria-label":
|
1851
|
+
"aria-label": ie,
|
1850
1852
|
children: /* @__PURE__ */ t.jsx(
|
1851
1853
|
h,
|
1852
1854
|
{
|
@@ -1864,7 +1866,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1864
1866
|
"div",
|
1865
1867
|
{
|
1866
1868
|
id: "sid-step-doc-upload",
|
1867
|
-
className: `sid-doc-upload-redesign-container sid-l-container sid-may24-variation__${
|
1869
|
+
className: `sid-doc-upload-redesign-container sid-l-container sid-may24-variation__${C}`,
|
1868
1870
|
children: [
|
1869
1871
|
/* @__PURE__ */ t.jsxs("div", { role: "main", children: [
|
1870
1872
|
/* @__PURE__ */ t.jsxs("div", { className: "sid-header sid-l-space-top-md", children: [
|
@@ -1895,21 +1897,21 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1895
1897
|
) })
|
1896
1898
|
] })
|
1897
1899
|
] }),
|
1898
|
-
|
1899
|
-
(
|
1900
|
+
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" }),
|
1901
|
+
(O && y.length === 0 || !O) && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
1900
1902
|
/* @__PURE__ */ t.jsx("h2", { className: "sid-header__subtitle sid-l-space-btm-md sid-l-space-top-md", children: /* @__PURE__ */ t.jsx(
|
1901
1903
|
h,
|
1902
1904
|
{
|
1903
|
-
id:
|
1905
|
+
id: N ? "step.docUpload.uploadInstructions" : "step.docUpload.documentsMustInclude",
|
1904
1906
|
defaultMessage: "Your documents must include:"
|
1905
1907
|
}
|
1906
1908
|
) }),
|
1907
|
-
/* @__PURE__ */ t.jsx("ul", { className: "sid-doc-upload-requirements", children:
|
1909
|
+
/* @__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)) })
|
1908
1910
|
] }),
|
1909
|
-
|
1910
|
-
|
1911
|
+
y.length === 0 && G,
|
1912
|
+
y.length > 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
1911
1913
|
/* @__PURE__ */ t.jsxs("div", { className: "sid-file-list sid-l-space-top-md", children: [
|
1912
|
-
|
1914
|
+
y.map((i, I) => /* @__PURE__ */ t.jsxs("div", { className: "sid-file-list__file", children: [
|
1913
1915
|
/* @__PURE__ */ t.jsx("div", { className: "sid-file-list__thumbnail-wrapper", children: i.url ? /* @__PURE__ */ t.jsx(
|
1914
1916
|
"img",
|
1915
1917
|
{
|
@@ -1933,19 +1935,19 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1933
1935
|
tabIndex: 0,
|
1934
1936
|
"aria-label": `Remove file ${i.name}`,
|
1935
1937
|
className: "sid-file-list__remove-btn",
|
1936
|
-
onClick: () =>
|
1937
|
-
onKeyPress: () =>
|
1938
|
+
onClick: () => le(I),
|
1939
|
+
onKeyPress: () => le(I)
|
1938
1940
|
}
|
1939
1941
|
)
|
1940
1942
|
] })
|
1941
1943
|
] }, i.name)),
|
1942
|
-
|
1944
|
+
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(
|
1943
1945
|
"label",
|
1944
1946
|
{
|
1945
1947
|
className: "sid-docdrop-wrap__dropzone thumbnail_wrapper",
|
1946
1948
|
htmlFor: "sid-take-photo-input",
|
1947
1949
|
role: "button",
|
1948
|
-
onKeyUp: (i) =>
|
1950
|
+
onKeyUp: (i) => ue(i),
|
1949
1951
|
tabIndex: 0,
|
1950
1952
|
children: [
|
1951
1953
|
/* @__PURE__ */ t.jsx(_t, { className: "sid-uploadzone__icon", width: "16px" }),
|
@@ -1959,7 +1961,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1959
1961
|
/* @__PURE__ */ t.jsx(
|
1960
1962
|
"input",
|
1961
1963
|
{
|
1962
|
-
onChange:
|
1964
|
+
onChange: pe,
|
1963
1965
|
type: "file",
|
1964
1966
|
id: "sid-take-photo-input",
|
1965
1967
|
hidden: !0,
|
@@ -1975,29 +1977,29 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1975
1977
|
/* @__PURE__ */ t.jsx(
|
1976
1978
|
ot,
|
1977
1979
|
{
|
1978
|
-
fieldValidationErrors:
|
1979
|
-
errorId:
|
1980
|
+
fieldValidationErrors: R,
|
1981
|
+
errorId: ee,
|
1980
1982
|
erroredFileNames: x.erroredFileNames
|
1981
1983
|
}
|
1982
1984
|
),
|
1983
|
-
|
1984
|
-
|
1985
|
+
O && y.length >= 1 && /* @__PURE__ */ t.jsx(
|
1986
|
+
Oa,
|
1985
1987
|
{
|
1986
|
-
options:
|
1987
|
-
selected:
|
1988
|
-
onChange:
|
1989
|
-
showError:
|
1988
|
+
options: w,
|
1989
|
+
selected: Y,
|
1990
|
+
onChange: H,
|
1991
|
+
showError: j
|
1990
1992
|
}
|
1991
1993
|
),
|
1992
1994
|
/* @__PURE__ */ t.jsx("div", { className: "sid-submit sid-doc-upload-submit sid-l-space-top-md sid-submit-doc-upload_pb", children: /* @__PURE__ */ t.jsx(
|
1993
1995
|
"button",
|
1994
1996
|
{
|
1995
1997
|
id: "sid-submit-doc-upload",
|
1996
|
-
onClick:
|
1998
|
+
onClick: ce,
|
1997
1999
|
type: "submit",
|
1998
2000
|
className: "sid-btn sid-btn--dark sid-doc-upload-submit-btn sid-submit__continue border-radius",
|
1999
|
-
"aria-disabled":
|
2000
|
-
children:
|
2001
|
+
"aria-disabled": y.length <= 0 || O && !w.every((i) => Y.includes(i)),
|
2002
|
+
children: C === "doc-type-icons" ? /* @__PURE__ */ t.jsx(
|
2001
2003
|
h,
|
2002
2004
|
{
|
2003
2005
|
id: "_EXPERIMENTAL-VARIATION.step.docUpload.submitButtonLabel",
|
@@ -2006,48 +2008,55 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2006
2008
|
two {documents}
|
2007
2009
|
other {documents}
|
2008
2010
|
}`,
|
2009
|
-
values: { count:
|
2011
|
+
values: { count: y.length }
|
2010
2012
|
}
|
2011
2013
|
) : /* @__PURE__ */ t.jsx(
|
2012
2014
|
h,
|
2013
2015
|
{
|
2014
2016
|
id: "step.docUpload.submitButtonLabel",
|
2015
2017
|
defaultMessage: "Submit",
|
2016
|
-
values: { count:
|
2018
|
+
values: { count: y.length }
|
2017
2019
|
}
|
2018
2020
|
)
|
2019
2021
|
}
|
2020
2022
|
) })
|
2021
2023
|
] }) : null,
|
2022
|
-
|
2023
|
-
|
2024
|
-
/* @__PURE__ */ t.jsx(
|
2025
|
-
|
2024
|
+
C === "doc-type-icons" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2025
|
+
y.length > 0 && y.length < 2 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2026
|
+
/* @__PURE__ */ t.jsx(Ta, { children: "Add another document" }),
|
2027
|
+
G
|
2026
2028
|
] }),
|
2027
2029
|
/* @__PURE__ */ t.jsx("h3", { children: "FAQ" }),
|
2028
|
-
/* @__PURE__ */ t.jsx(
|
2029
|
-
] }) : /* @__PURE__ */ t.jsxs(
|
2030
|
-
|
2031
|
-
|
2032
|
-
|
2033
|
-
|
2034
|
-
|
2035
|
-
|
2036
|
-
|
2037
|
-
|
2038
|
-
|
2039
|
-
|
2040
|
-
|
2041
|
-
|
2042
|
-
|
2043
|
-
|
2030
|
+
/* @__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)) }) })
|
2031
|
+
] }) : /* @__PURE__ */ t.jsxs(
|
2032
|
+
ye,
|
2033
|
+
{
|
2034
|
+
id: "suggestedDocs",
|
2035
|
+
title: /* @__PURE__ */ t.jsx(
|
2036
|
+
h,
|
2037
|
+
{
|
2038
|
+
id: "step.docUpload.suggestedDocumentTypes",
|
2039
|
+
defaultMessage: "Suggested document types"
|
2040
|
+
}
|
2041
|
+
),
|
2042
|
+
defaultState: C === "checkbox-requirements" ? "closed" : "open",
|
2043
|
+
children: [
|
2044
|
+
N && /* @__PURE__ */ t.jsx(h, { id: "step.docUpload.acceptableUploadExamples" }),
|
2045
|
+
/* @__PURE__ */ t.jsxs("ul", { className: "sid-acceptable-document-types", children: [
|
2046
|
+
(N ? Rt : Na)(
|
2047
|
+
m,
|
2048
|
+
c
|
2049
|
+
).map((i) => /* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(h, { id: i }) }, i)),
|
2050
|
+
/* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(h, { id: "step.docUpload.acceptedTypes" }) })
|
2051
|
+
] }),
|
2052
|
+
Q && (c === "activeDuty" || c === "reservist") && /* @__PURE__ */ t.jsx("div", { className: "sid-acceptable-document-types", children: /* @__PURE__ */ t.jsxs("p", { children: [
|
2053
|
+
/* @__PURE__ */ t.jsx("span", { className: "display-block", children: /* @__PURE__ */ t.jsx("strong", { children: /* @__PURE__ */ t.jsx(
|
2044
2054
|
h,
|
2045
2055
|
{
|
2046
2056
|
id: "step.docUpload.acceptableUploads.doNotUploadMilitaryIdTitle",
|
2047
2057
|
defaultMessage: "Do not upload a photo of your military ID."
|
2048
2058
|
}
|
2049
|
-
) }),
|
2050
|
-
" ",
|
2059
|
+
) }) }),
|
2051
2060
|
/* @__PURE__ */ t.jsx(
|
2052
2061
|
h,
|
2053
2062
|
{
|
@@ -2056,51 +2065,11 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2056
2065
|
}
|
2057
2066
|
)
|
2058
2067
|
] }) })
|
2059
|
-
|
2060
|
-
|
2061
|
-
|
2062
|
-
re,
|
2063
|
-
{
|
2064
|
-
id: "suggestedDocs",
|
2065
|
-
title: /* @__PURE__ */ t.jsx(
|
2066
|
-
h,
|
2067
|
-
{
|
2068
|
-
id: "step.docUpload.suggestedDocumentTypes",
|
2069
|
-
defaultMessage: "Suggested document types"
|
2070
|
-
}
|
2071
|
-
),
|
2072
|
-
defaultState: U === "checkbox-requirements" ? "closed" : "open",
|
2073
|
-
children: [
|
2074
|
-
C && /* @__PURE__ */ t.jsx(h, { id: "step.docUpload.acceptableUploadExamples" }),
|
2075
|
-
/* @__PURE__ */ t.jsxs("ul", { className: "sid-acceptable-document-types", children: [
|
2076
|
-
(C ? wt : Na)(
|
2077
|
-
m,
|
2078
|
-
c
|
2079
|
-
).map((i) => /* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(h, { id: i }) }, i)),
|
2080
|
-
/* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(h, { id: "step.docUpload.acceptedTypes" }) })
|
2081
|
-
] }),
|
2082
|
-
L !== "add-doc-considerations" && H && (c === "activeDuty" || c === "reservist") && /* @__PURE__ */ t.jsx("div", { className: "sid-acceptable-document-types", children: /* @__PURE__ */ t.jsxs("p", { children: [
|
2083
|
-
/* @__PURE__ */ t.jsx("span", { className: "display-block", children: /* @__PURE__ */ t.jsx("strong", { children: /* @__PURE__ */ t.jsx(
|
2084
|
-
h,
|
2085
|
-
{
|
2086
|
-
id: "step.docUpload.acceptableUploads.doNotUploadMilitaryIdTitle",
|
2087
|
-
defaultMessage: "Do not upload a photo of your military ID."
|
2088
|
-
}
|
2089
|
-
) }) }),
|
2090
|
-
/* @__PURE__ */ t.jsx(
|
2091
|
-
h,
|
2092
|
-
{
|
2093
|
-
id: "step.docUpload.acceptableUploads.doNotUploadMilitaryIdContent",
|
2094
|
-
defaultMessage: "In accordance with federal law, SheerID does not accept submissions of active duty/reservist military ID cards."
|
2095
|
-
}
|
2096
|
-
)
|
2097
|
-
] }) })
|
2098
|
-
]
|
2099
|
-
}
|
2100
|
-
)
|
2101
|
-
] }),
|
2068
|
+
]
|
2069
|
+
}
|
2070
|
+
),
|
2102
2071
|
/* @__PURE__ */ t.jsxs(
|
2103
|
-
|
2072
|
+
ye,
|
2104
2073
|
{
|
2105
2074
|
id: "whatHappensNext",
|
2106
2075
|
title: /* @__PURE__ */ t.jsx(
|
@@ -2132,7 +2101,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2132
2101
|
id: "step.docUpload.reviewTime",
|
2133
2102
|
defaultMessage: "Expected review time is {estimatedWaitTime}.",
|
2134
2103
|
values: {
|
2135
|
-
estimatedWaitTime:
|
2104
|
+
estimatedWaitTime: wt(s, v, a).estReviewTime
|
2136
2105
|
}
|
2137
2106
|
}
|
2138
2107
|
) }),
|
@@ -2141,7 +2110,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2141
2110
|
}
|
2142
2111
|
),
|
2143
2112
|
/* @__PURE__ */ t.jsx(
|
2144
|
-
|
2113
|
+
ye,
|
2145
2114
|
{
|
2146
2115
|
id: "canIFinishLater",
|
2147
2116
|
title: /* @__PURE__ */ t.jsx(
|
@@ -2160,12 +2129,12 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2160
2129
|
) })
|
2161
2130
|
}
|
2162
2131
|
),
|
2163
|
-
|
2132
|
+
U && /* @__PURE__ */ t.jsx("div", { className: "sid-submit sid-override-submit sid-l-space-top-sm", children: /* @__PURE__ */ t.jsx(
|
2164
2133
|
"a",
|
2165
2134
|
{
|
2166
2135
|
href: "#",
|
2167
2136
|
className: "sid-link sid-override-link",
|
2168
|
-
onClick: () =>
|
2137
|
+
onClick: () => fe(),
|
2169
2138
|
role: "button",
|
2170
2139
|
children: /* @__PURE__ */ t.jsx(
|
2171
2140
|
h,
|